LLVMFuzzerTestOneInput:
   12|  4.74k|{
   13|  4.74k|    std::string s(reinterpret_cast<const char*>(data), size);
   14|  4.74k|    std::istringstream is(s);
   15|       |
   16|  4.74k|    default_json_visitor visitor;
   17|       |
   18|  4.74k|    msgpack_stream_reader reader(is, visitor);
   19|  4.74k|    std::error_code ec;
   20|  4.74k|    reader.read(ec);
   21|       |
   22|  4.74k|    return 0;
   23|  4.74k|}

_ZN8jsoncons6detail6grisu3EdPcPiS2_:
  293|   101k|{
  294|   101k|    diy_fp_t w_m, w_p;
  295|   101k|    int q = 64, alpha = -59, gamma = -56;
  296|   101k|    normalized_boundaries(v, &w_m, &w_p);
  297|   101k|    diy_fp_t w = normalize_diy_fp(double2diy_fp(v));
  298|   101k|    int mk = k_comp(w_p.e + q, alpha, gamma);
  299|   101k|    diy_fp_t c_mk = cached_power(mk);
  300|   101k|    diy_fp_t W  = multiply(w,   c_mk);
  301|   101k|    diy_fp_t Wp = multiply(w_p, c_mk);
  302|   101k|    diy_fp_t Wm = multiply(w_m, c_mk);
  303|   101k|    *K = -mk;
  304|   101k|    bool result = digit_gen(Wm, W, Wp, buffer, length, K);
  305|   101k|    buffer[*length] = 0;
  306|   101k|    return result;
  307|   101k|}
_ZN8jsoncons6detail21normalized_boundariesEdPNS0_8diy_fp_tES2_:
  188|   101k|{
  189|   101k|    diy_fp_t v = double2diy_fp(d);
  190|   101k|    diy_fp_t pl, mi;
  191|   101k|    bool significand_is_zero = v.f == dp_hidden_bit;
  192|   101k|    pl.f  = (v.f << 1) + 1; pl.e  = v.e - 1;
  193|   101k|    pl = normalize_boundary(pl);
  194|   101k|    if (significand_is_zero)
  ------------------
  |  Branch (194:9): [True: 3.75k, False: 97.6k]
  ------------------
  195|  3.75k|    {
  196|  3.75k|        mi.f = (v.f << 2) - 1;
  197|  3.75k|        mi.e = v.e - 2;
  198|  3.75k|    } else
  199|  97.6k|    {
  200|  97.6k|        mi.f = (v.f << 1) - 1;
  201|  97.6k|        mi.e = v.e - 1;
  202|  97.6k|    }
  203|   101k|    int x = mi.e - pl.e;
  204|   101k|    mi.f <<= x;
  205|   101k|    mi.e = pl.e;
  206|   101k|    *out_m_plus = pl;
  207|   101k|    *out_m_minus = mi;
  208|   101k|}
_ZN8jsoncons6detail18normalize_boundaryENS0_8diy_fp_tE:
  171|   101k|{
  172|   101k|    diy_fp_t res = in;
  173|       |    /* Normalize now */
  174|       |    /* the original number could have been a denormal. */
  175|   394k|    while (!(res.f & (dp_hidden_bit << 1)))
  ------------------
  |  Branch (175:12): [True: 292k, False: 101k]
  ------------------
  176|   292k|    {
  177|   292k|        res.f <<= 1;
  178|   292k|        res.e--;
  179|   292k|    }
  180|       |    /* do the final shifts in one go. Don't forget the hidden bit (the '-1') */
  181|   101k|    res.f <<= (diy_significand_size - dp_significand_size - 2);
  182|   101k|    res.e = res.e - (diy_significand_size - dp_significand_size - 2);
  183|   101k|    return res;
  184|   101k|}
_ZN8jsoncons6detail16normalize_diy_fpENS0_8diy_fp_tE:
  134|   101k|{
  135|   101k|    diy_fp_t res = in;
  136|       |    /* Normalize now */
  137|       |    /* the original number could have been a denormal. */
  138|   394k|    while (!(res.f & dp_hidden_bit))
  ------------------
  |  Branch (138:12): [True: 292k, False: 101k]
  ------------------
  139|   292k|    {
  140|   292k|        res.f <<= 1;
  141|   292k|        res.e--;
  142|   292k|    }
  143|       |    /* do the final shifts in one go. Don't forget the hidden bit (the '-1') */
  144|   101k|    res.f <<= (diy_significand_size - dp_significand_size - 1);
  145|   101k|    res.e = res.e - (diy_significand_size - dp_significand_size - 1);
  146|   101k|    return res;
  147|   101k|}
_ZN8jsoncons6detail13double2diy_fpEd:
  151|   202k|{
  152|   202k|    uint64_t d64 = double_to_uint64(d);
  153|   202k|    int biased_e = (d64 & dp_exponent_mask) >> dp_significand_size;
  154|   202k|    uint64_t significand = (d64 & dp_significand_mask);
  155|   202k|    diy_fp_t res;
  156|   202k|    if (biased_e != 0)
  ------------------
  |  Branch (156:9): [True: 185k, False: 17.1k]
  ------------------
  157|   185k|    {
  158|   185k|        res.f = significand + dp_hidden_bit;
  159|   185k|        res.e = biased_e - dp_exponent_bias;
  160|   185k|    } 
  161|  17.1k|    else
  162|  17.1k|    {
  163|  17.1k|        res.f = significand;
  164|  17.1k|        res.e = dp_min_exponent + 1;
  165|  17.1k|    }
  166|   202k|    return res;
  167|   202k|}
_ZN8jsoncons6detail16double_to_uint64Ed:
  120|   202k|uint64_t double_to_uint64(double d) {uint64_t d64; std::memcpy(&d64,&d,sizeof(double)); return d64; }
_ZN8jsoncons6detail6k_compEiii:
   82|   101k|{
   83|   101k|    constexpr double d_1_log2_10 = 0.30102999566398114; //  1 / lg(10)
   84|   101k|    int x = alpha - e + 63;
   85|   101k|    return static_cast<int>(std::ceil(x * d_1_log2_10));
   86|   101k|}
_ZN8jsoncons6detail12cached_powerEi:
   97|   101k|{
   98|   101k|    diy_fp_t res;
   99|   101k|    int index = 343 + k;
  100|   101k|    res.f = powers_ten[index];
  101|   101k|    res.e = powers_ten_e[index];
  102|   101k|    return res;
  103|   101k|}
_ZN8jsoncons6detail8multiplyENS0_8diy_fp_tES1_:
   65|   304k|{
   66|   304k|    uint64_t a, b, c, d, ac, bc, ad, bd, tmp;
   67|   304k|    diy_fp_t r; uint64_t M32 = 0xFFFFFFFF;
   68|   304k|    a = x.f >> 32; b = x.f & M32;
   69|   304k|    c = y.f >> 32; d = y.f & M32;
   70|   304k|    ac = a * c; bc = b * c; ad = a * d; bd = b * d;
   71|   304k|    tmp = (bd >> 32) + (ad & M32) + (bc & M32);
   72|   304k|    tmp += 1U << 31; /// mult_round
   73|   304k|    r.f = ac + (ad >> 32) + (bc >> 32) + (tmp >> 32);
   74|   304k|    r.e = x.e + y.e + 64;
   75|   304k|    return r;
   76|   304k|}
_ZN8jsoncons6detail9digit_genENS0_8diy_fp_tES1_S1_PcPiS3_:
  250|   101k|{
  251|   101k|    static constexpr uint32_t TEN2 = 100;
  252|       |
  253|   101k|    uint32_t div, p1; uint64_t p2, tmp, unit = 1;
  254|   101k|    int d, kappa;
  255|   101k|    diy_fp_t one, wp_W, Delta;
  256|   101k|    Delta = minus(Wp, Wm); Delta.f += 2 * unit;
  257|   101k|    wp_W = minus(Wp, W); wp_W.f += unit;
  258|   101k|    one.f = ((uint64_t)1) << -Wp.e; one.e = Wp.e;
  259|   101k|    p1 = static_cast<uint32_t>((Wp.f + 1) >> -one.e);
  260|   101k|    p2 = (Wp.f + 1) & (one.f - 1);
  261|   101k|    *len = 0; kappa = 3; div = TEN2;
  262|   395k|    while (kappa > 0)
  ------------------
  |  Branch (262:12): [True: 299k, False: 96.0k]
  ------------------
  263|   299k|    {
  264|   299k|        d = p1 / div;
  265|   299k|        if (d || *len) buffer[(*len)++] = (char)('0' + d);
  ------------------
  |  Branch (265:13): [True: 194k, False: 105k]
  |  Branch (265:18): [True: 6.11k, False: 99.0k]
  ------------------
  266|   299k|        p1 %= div; kappa--;
  267|   299k|        tmp = (((uint64_t)p1) << -one.e) + p2;
  268|   299k|        if (tmp < Delta.f)
  ------------------
  |  Branch (268:13): [True: 5.41k, False: 294k]
  ------------------
  269|  5.41k|        {
  270|  5.41k|            *K += kappa;
  271|  5.41k|            return round_weed(buffer, *len, wp_W.f, Delta.f, tmp,
  272|  5.41k|                              ((uint64_t)div) << -one.e, unit);
  273|  5.41k|        }
  274|   294k|        div /= 10;
  275|   294k|    }
  276|   946k|    while (1)
  ------------------
  |  Branch (276:12): [True: 946k, Folded]
  ------------------
  277|   946k|    {
  278|   946k|        p2 *= 10; Delta.f *= 10; unit *= 10;
  279|   946k|        d = static_cast<int>(p2 >> -one.e);
  280|   946k|        if (d || *len) buffer[(*len)++] = (char)('0' + d);
  ------------------
  |  Branch (280:13): [True: 839k, False: 107k]
  |  Branch (280:18): [True: 107k, False: 0]
  ------------------
  281|   946k|        p2 &= one.f - 1; kappa--;
  282|   946k|        if (p2 < Delta.f)
  ------------------
  |  Branch (282:13): [True: 96.0k, False: 850k]
  ------------------
  283|  96.0k|        {
  284|  96.0k|            *K += kappa;
  285|  96.0k|            return round_weed(buffer, *len, wp_W.f * unit, Delta.f, p2,
  286|  96.0k|                              one.f, unit);
  287|  96.0k|        }
  288|   946k|    }
  289|  96.0k|}
_ZN8jsoncons6detail5minusENS0_8diy_fp_tES1_:
   56|   202k|{
   57|   202k|    assert(x.e == y.e);
  ------------------
  |  Branch (57:5): [True: 202k, False: 0]
  ------------------
   58|   202k|    assert(x.f >= y.f);
  ------------------
  |  Branch (58:5): [True: 202k, False: 0]
  ------------------
   59|   202k|    diy_fp_t r = { x.f = x.f - y.f, x.e };
   60|   202k|    return r;
   61|   202k|}
_ZN8jsoncons6detail10round_weedEPcimmmmm:
  230|   101k|{
  231|   101k|    uint64_t wp_Wup = wp_W - ulp;
  232|   101k|    uint64_t wp_Wdown = wp_W + ulp;
  233|   131k|    while (rest < wp_Wup &&  /// round1
  ------------------
  |  Branch (233:12): [True: 57.7k, False: 73.3k]
  ------------------
  234|  57.7k|           Delta - rest >= ten_kappa &&
  ------------------
  |  Branch (234:12): [True: 45.7k, False: 11.9k]
  ------------------
  235|  45.7k|           (rest + ten_kappa < wp_Wup || /// closer
  ------------------
  |  Branch (235:13): [True: 23.5k, False: 22.2k]
  ------------------
  236|  22.2k|            wp_Wup - rest >= rest + ten_kappa - wp_Wup))
  ------------------
  |  Branch (236:13): [True: 6.11k, False: 16.1k]
  ------------------
  237|  29.6k|    {
  238|  29.6k|        buffer[len - 1]--; rest += ten_kappa;
  239|  29.6k|    }
  240|   101k|    if (rest < wp_Wdown && /// round2
  ------------------
  |  Branch (240:9): [True: 75.3k, False: 26.1k]
  ------------------
  241|  75.3k|        Delta - rest >= ten_kappa &&
  ------------------
  |  Branch (241:9): [True: 17.3k, False: 57.9k]
  ------------------
  242|  17.3k|        (rest + ten_kappa < wp_Wdown ||
  ------------------
  |  Branch (242:10): [True: 0, False: 17.3k]
  ------------------
  243|  17.3k|         wp_Wdown - rest > rest + ten_kappa - wp_Wdown)) return 0;
  ------------------
  |  Branch (243:10): [True: 3.43k, False: 13.9k]
  ------------------
  244|  98.0k|    return 2 * ulp <= rest && rest <= Delta - 4 * ulp; /// weed
  ------------------
  |  Branch (244:12): [True: 96.5k, False: 1.46k]
  |  Branch (244:31): [True: 95.7k, False: 805]
  ------------------
  245|   101k|}

_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4sizeEv:
  116|  16.3M|        {
  117|  16.3M|            return size_;
  118|  16.3M|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2Ev:
   58|  5.07M|        {
   59|  5.07M|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|   578k|            : data_(data), size_(size)
   62|   578k|        {
   63|   578k|        }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4dataEv:
  111|  10.7M|        {
  112|  10.7M|            return data_;
  113|  10.7M|        }

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|   257k|        {
 1009|   257k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 52.7k, False: 204k]
  ------------------
 1010|  52.7k|            {
 1011|  52.7k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 48.4k, False: 4.35k]
  |  Branch (1011:86): [True: 45.6k, False: 2.74k]
  ------------------
 1012|  45.6k|                {
 1013|  45.6k|                    key_buffer_.push_back(',');
 1014|  45.6k|                }
 1015|  52.7k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|  52.7k|                key_buffer_.push_back('[');
 1017|  52.7k|            }
 1018|   204k|            else
 1019|   204k|            {
 1020|   204k|                switch (level_stack_.back().target_kind())
 1021|   204k|                {
 1022|   189k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 189k, False: 15.2k]
  ------------------
 1023|   189k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 141k, False: 47.7k]
  |  Branch (1023:65): [True: 54.7k, False: 86.5k]
  ------------------
 1024|  54.7k|                        {
 1025|  54.7k|                            key_buffer_.push_back(',');
 1026|  54.7k|                        }
 1027|   189k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|   189k|                        key_buffer_.push_back('[');
 1029|   189k|                        break;
 1030|  15.2k|                    default:
  ------------------
  |  Branch (1030:21): [True: 15.2k, False: 189k]
  ------------------
 1031|  15.2k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|  15.2k|                        destination_->begin_array(length, tag, context, ec);
 1033|  15.2k|                        break;
 1034|   204k|                }
 1035|   204k|            }
 1036|   257k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   257k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|   257k|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|  86.1M|            {
  816|  86.1M|                return even_odd_ == 0;
  817|  86.1M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|  49.2M|            {
  826|  49.2M|                return target_kind_;
  827|  49.2M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  21.1M|            {
  831|  21.1M|                return count_;
  832|  21.1M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|   489k|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 227k, False: 261k]
  ------------------
  799|   489k|            {
  800|   489k|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|  51.5M|            {
  821|  51.5M|                return structure_kind_ == json_structure_kind::object;
  822|  51.5M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|   229k|        {
 1041|   229k|            switch (level_stack_.back().target_kind())
 1042|   229k|            {
 1043|   224k|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 224k, False: 5.50k]
  ------------------
 1044|   224k|                    key_buffer_.push_back(']');
 1045|   224k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   224k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 224k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1046|   224k|                    level_stack_.pop_back();
 1047|   224k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 3.69k, False: 220k]
  ------------------
 1048|  3.69k|                    {
 1049|  3.69k|                        destination_->key(key_buffer_, context, ec);
 1050|  3.69k|                        key_buffer_.clear();
 1051|  3.69k|                    }
 1052|   220k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 46.5k, False: 173k]
  ------------------
 1053|  46.5k|                    {
 1054|  46.5k|                        key_buffer_.push_back(':');
 1055|  46.5k|                    }
 1056|   224k|                    level_stack_.back().advance();
 1057|   224k|                    break;
 1058|  5.50k|                default:
  ------------------
  |  Branch (1058:17): [True: 5.50k, False: 224k]
  ------------------
 1059|  5.50k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|  5.50k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 5.50k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1060|  5.50k|                    level_stack_.pop_back();
 1061|  5.50k|                    level_stack_.back().advance();
 1062|  5.50k|                    destination_->end_array(context, ec);
 1063|  5.50k|                    break;
 1064|   229k|            }
 1065|   229k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   229k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|   229k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|  30.4M|            {
  804|  30.4M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 21.9M, False: 8.48M]
  ------------------
  805|  21.9M|                {
  806|  21.9M|                    ++count_;
  807|  21.9M|                }
  808|  30.4M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 16.9M, False: 13.4M]
  ------------------
  809|  16.9M|                {
  810|  16.9M|                    even_odd_ = !even_odd_;
  811|  16.9M|                }
  812|  30.4M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  8.88M|        {
 1234|  8.88M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 2.75M, False: 6.12M]
  |  Branch (1234:49): [True: 5.45M, False: 670k]
  ------------------
 1235|  8.21M|            {
 1236|  8.21M|                key_.clear();
 1237|  8.21M|                jsoncons::from_integer(value,key_);
 1238|  8.21M|            }
 1239|       |
 1240|  8.88M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 2.75M, False: 6.12M]
  ------------------
 1241|  2.75M|            {
 1242|  2.75M|                switch (level_stack_.back().target_kind())
 1243|  2.75M|                {
 1244|  2.63M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 2.63M, False: 118k]
  ------------------
 1245|  2.63M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 2.60M, False: 26.3k]
  ------------------
 1246|  2.60M|                        {
 1247|  2.60M|                            key_buffer_.push_back(',');
 1248|  2.60M|                        }
 1249|  2.63M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  2.63M|                        key_buffer_.push_back(':');
 1251|  2.63M|                        break;
 1252|   118k|                    default:
  ------------------
  |  Branch (1252:21): [True: 118k, False: 2.63M]
  ------------------
 1253|   118k|                        destination_->key(key_, context, ec);
 1254|   118k|                        break;
 1255|  2.75M|                }
 1256|  2.75M|            }
 1257|  6.12M|            else
 1258|  6.12M|            {
 1259|  6.12M|                switch (level_stack_.back().target_kind())
 1260|  6.12M|                {
 1261|  5.45M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 5.45M, False: 670k]
  ------------------
 1262|  5.45M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 2.81M, False: 2.64M]
  |  Branch (1262:65): [True: 2.80M, False: 6.16k]
  ------------------
 1263|  2.80M|                        {
 1264|  2.80M|                            key_buffer_.push_back(',');
 1265|  2.80M|                        }
 1266|  5.45M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  5.45M|                        break;
 1268|   670k|                    default:
  ------------------
  |  Branch (1268:21): [True: 670k, False: 5.45M]
  ------------------
 1269|   670k|                        destination_->uint64_value(value, tag, context, ec);
 1270|   670k|                        break;
 1271|  6.12M|                }
 1272|  6.12M|            }
 1273|       |
 1274|  8.88M|            level_stack_.back().advance();
 1275|  8.88M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  8.88M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  8.88M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  4.03M|        {
 1280|  4.03M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 984k, False: 3.04M]
  |  Branch (1280:49): [True: 3.01M, False: 32.3k]
  ------------------
 1281|  4.00M|            {
 1282|  4.00M|                key_.clear();
 1283|  4.00M|                jsoncons::from_integer(value,key_);
 1284|  4.00M|            }
 1285|       |
 1286|  4.03M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 984k, False: 3.04M]
  ------------------
 1287|   984k|            {
 1288|   984k|                switch (level_stack_.back().target_kind())
 1289|   984k|                {
 1290|   966k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 966k, False: 17.8k]
  ------------------
 1291|   966k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 962k, False: 4.67k]
  ------------------
 1292|   962k|                        {
 1293|   962k|                            key_buffer_.push_back(',');
 1294|   962k|                        }
 1295|   966k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|   966k|                        key_buffer_.push_back(':');
 1297|   966k|                        break;
 1298|  17.8k|                    default:
  ------------------
  |  Branch (1298:21): [True: 17.8k, False: 966k]
  ------------------
 1299|  17.8k|                        destination_->key(key_, context, ec);
 1300|  17.8k|                        break;
 1301|   984k|                }
 1302|   984k|            }
 1303|  3.04M|            else
 1304|  3.04M|            {
 1305|  3.04M|                switch (level_stack_.back().target_kind())
 1306|  3.04M|                {
 1307|  3.01M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 3.01M, False: 32.3k]
  ------------------
 1308|  3.01M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 2.02M, False: 986k]
  |  Branch (1308:65): [True: 2.02M, False: 4.90k]
  ------------------
 1309|  2.02M|                        {
 1310|  2.02M|                            key_buffer_.push_back(',');
 1311|  2.02M|                        }
 1312|  3.01M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  3.01M|                        break;
 1314|  32.3k|                    default:
  ------------------
  |  Branch (1314:21): [True: 32.3k, False: 3.01M]
  ------------------
 1315|  32.3k|                        destination_->int64_value(value, tag, context, ec);
 1316|  32.3k|                        break;
 1317|  3.04M|                }
 1318|  3.04M|            }
 1319|       |
 1320|  4.03M|            level_stack_.back().advance();
 1321|  4.03M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  4.03M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  4.03M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|   105k|        {
 1375|   105k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 37.0k, False: 68.8k]
  |  Branch (1375:49): [True: 65.6k, False: 3.23k]
  ------------------
 1376|   102k|            {
 1377|   102k|                key_.clear();
 1378|   102k|                string_sink<string_type> sink(key_);
 1379|   102k|                jsoncons::write_double f{float_chars_format::general,0};
 1380|   102k|                f(value, sink);
 1381|   102k|            }
 1382|       |
 1383|   105k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 37.0k, False: 68.8k]
  ------------------
 1384|  37.0k|            {
 1385|  37.0k|                switch (level_stack_.back().target_kind())
 1386|  37.0k|                {
 1387|  32.7k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 32.7k, False: 4.24k]
  ------------------
 1388|  32.7k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 21.8k, False: 10.9k]
  ------------------
 1389|  21.8k|                        {
 1390|  21.8k|                            key_buffer_.push_back(',');
 1391|  21.8k|                        }
 1392|  32.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|  32.7k|                        key_buffer_.push_back(':');
 1394|  32.7k|                        break;
 1395|  4.24k|                    default:
  ------------------
  |  Branch (1395:21): [True: 4.24k, False: 32.7k]
  ------------------
 1396|  4.24k|                        destination_->key(key_, context, ec);
 1397|  4.24k|                        break;
 1398|  37.0k|                }
 1399|  37.0k|            }
 1400|  68.8k|            else
 1401|  68.8k|            {
 1402|  68.8k|                switch (level_stack_.back().target_kind())
 1403|  68.8k|                {
 1404|  65.6k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 65.6k, False: 3.23k]
  ------------------
 1405|  65.6k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 41.8k, False: 23.7k]
  |  Branch (1405:65): [True: 37.7k, False: 4.08k]
  ------------------
 1406|  37.7k|                        {
 1407|  37.7k|                            key_buffer_.push_back(',');
 1408|  37.7k|                        }
 1409|  65.6k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|  65.6k|                        break;
 1411|  3.23k|                    default:
  ------------------
  |  Branch (1411:21): [True: 3.23k, False: 65.6k]
  ------------------
 1412|  3.23k|                        destination_->double_value(value, tag, context, ec);
 1413|  3.23k|                        break;
 1414|  68.8k|                }
 1415|  68.8k|            }
 1416|       |
 1417|   105k|            level_stack_.back().advance();
 1418|   105k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   105k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|   105k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|    942|        {
  882|    942|            destination_->flush();
  883|    942|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|   227k|        {
  915|   227k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 115k, False: 112k]
  ------------------
  916|   115k|            {
  917|   115k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 110k, False: 4.51k]
  |  Branch (917:86): [True: 29.8k, False: 80.9k]
  ------------------
  918|  29.8k|                {
  919|  29.8k|                    key_buffer_.push_back(',');
  920|  29.8k|                }
  921|   115k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|   115k|                key_buffer_.push_back('{');
  923|   115k|            }
  924|   112k|            else
  925|   112k|            {
  926|   112k|                switch (level_stack_.back().target_kind())
  927|   112k|                {
  928|   100k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 100k, False: 11.5k]
  ------------------
  929|   100k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 54.5k, False: 46.4k]
  |  Branch (929:65): [True: 52.1k, False: 2.44k]
  ------------------
  930|  52.1k|                        {
  931|  52.1k|                            key_buffer_.push_back(',');
  932|  52.1k|                        }
  933|   100k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|   100k|                        key_buffer_.push_back('{');
  935|   100k|                        break;
  936|  11.5k|                    default:
  ------------------
  |  Branch (936:21): [True: 11.5k, False: 100k]
  ------------------
  937|  11.5k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  11.5k|                        destination_->begin_object(length, tag, context, ec);
  939|  11.5k|                        break;
  940|   112k|                }
  941|   112k|            }
  942|   227k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   227k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|   227k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|   196k|        {
  947|   196k|            switch (level_stack_.back().target_kind())
  948|   196k|            {
  949|   190k|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 190k, False: 6.18k]
  ------------------
  950|   190k|                    key_buffer_.push_back('}');
  951|   190k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   190k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 190k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  952|   190k|                    level_stack_.pop_back();
  953|       |                    
  954|   190k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 3.61k, False: 186k]
  ------------------
  955|  3.61k|                    {
  956|  3.61k|                        destination_->key(key_buffer_,context, ec);
  957|  3.61k|                        key_buffer_.clear();
  958|  3.61k|                    }
  959|   186k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 94.6k, False: 91.7k]
  ------------------
  960|  94.6k|                    {
  961|  94.6k|                        key_buffer_.push_back(':');
  962|  94.6k|                    }
  963|   190k|                    level_stack_.back().advance();
  964|   190k|                    break;
  965|  6.18k|                default:
  ------------------
  |  Branch (965:17): [True: 6.18k, False: 190k]
  ------------------
  966|  6.18k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|  6.18k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 6.18k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  967|  6.18k|                    level_stack_.pop_back();
  968|  6.18k|                    level_stack_.back().advance();
  969|  6.18k|                    destination_->end_object(context, ec);
  970|  6.18k|                    break;
  971|   196k|            }
  972|   196k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   196k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|   196k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|   120k|        {
 1476|   120k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 34.4k, False: 86.5k]
  |  Branch (1476:49): [True: 85.2k, False: 1.28k]
  ------------------
 1477|   119k|            {
 1478|   119k|                key_.clear(); 
 1479|   119k|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|   119k|            }
 1481|       |
 1482|   120k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 34.4k, False: 86.5k]
  ------------------
 1483|  34.4k|            {
 1484|  34.4k|                switch (level_stack_.back().target_kind())
 1485|  34.4k|                {
 1486|  33.4k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 33.4k, False: 1.03k]
  ------------------
 1487|  33.4k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 29.8k, False: 3.54k]
  ------------------
 1488|  29.8k|                        {
 1489|  29.8k|                            key_buffer_.push_back(',');
 1490|  29.8k|                        }
 1491|  33.4k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|  33.4k|                        key_buffer_.push_back(':');
 1493|  33.4k|                        break;
 1494|  1.03k|                    default:
  ------------------
  |  Branch (1494:21): [True: 1.03k, False: 33.4k]
  ------------------
 1495|  1.03k|                        destination_->key(key_, context, ec);
 1496|  1.03k|                        break;
 1497|  34.4k|                }
 1498|  34.4k|            }
 1499|  86.5k|            else
 1500|  86.5k|            {
 1501|  86.5k|                switch (level_stack_.back().target_kind())
 1502|  86.5k|                {
 1503|  85.2k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 85.2k, False: 1.28k]
  ------------------
 1504|  85.2k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 53.6k, False: 31.5k]
  |  Branch (1504:65): [True: 52.7k, False: 939]
  ------------------
 1505|  52.7k|                        {
 1506|  52.7k|                            key_buffer_.push_back(',');
 1507|  52.7k|                        }
 1508|  85.2k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|  85.2k|                        break;
 1510|  1.28k|                    default:
  ------------------
  |  Branch (1510:21): [True: 1.28k, False: 85.2k]
  ------------------
 1511|  1.28k|                        destination_->null_value(tag, context, ec);
 1512|  1.28k|                        break;
 1513|  86.5k|                }
 1514|  86.5k|            }
 1515|       |
 1516|   120k|            level_stack_.back().advance();
 1517|   120k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   120k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|   120k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  11.1M|        {
 1423|  11.1M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 3.02M, False: 8.11M]
  |  Branch (1423:49): [True: 8.08M, False: 36.3k]
  ------------------
 1424|  11.1M|            {
 1425|  11.1M|                key_.clear(); 
 1426|  11.1M|                if (value)
  ------------------
  |  Branch (1426:21): [True: 7.71M, False: 3.39M]
  ------------------
 1427|  7.71M|                {
 1428|  7.71M|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|  7.71M|                }
 1430|  3.39M|                else
 1431|  3.39M|                {
 1432|  3.39M|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|  3.39M|                }
 1434|  11.1M|            }
 1435|       |
 1436|  11.1M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 3.02M, False: 8.11M]
  ------------------
 1437|  3.02M|            {
 1438|  3.02M|                switch (level_stack_.back().target_kind())
 1439|  3.02M|                {
 1440|  3.00M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 3.00M, False: 26.6k]
  ------------------
 1441|  3.00M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 2.99M, False: 9.24k]
  ------------------
 1442|  2.99M|                        {
 1443|  2.99M|                            key_buffer_.push_back(',');
 1444|  2.99M|                        }
 1445|  3.00M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|  3.00M|                        key_buffer_.push_back(':');
 1447|  3.00M|                        break;
 1448|  26.6k|                    default:
  ------------------
  |  Branch (1448:21): [True: 26.6k, False: 3.00M]
  ------------------
 1449|  26.6k|                        destination_->key(key_, context, ec);
 1450|  26.6k|                        break;
 1451|  3.02M|                }
 1452|  3.02M|            }
 1453|  8.11M|            else
 1454|  8.11M|            {
 1455|  8.11M|                switch (level_stack_.back().target_kind())
 1456|  8.11M|                {
 1457|  8.08M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 8.08M, False: 36.3k]
  ------------------
 1458|  8.08M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 5.04M, False: 3.03M]
  |  Branch (1458:65): [True: 5.04M, False: 5.31k]
  ------------------
 1459|  5.04M|                        {
 1460|  5.04M|                            key_buffer_.push_back(',');
 1461|  5.04M|                        }
 1462|  8.08M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|  8.08M|                        break;
 1464|  36.3k|                    default:
  ------------------
  |  Branch (1464:21): [True: 36.3k, False: 8.08M]
  ------------------
 1465|  36.3k|                        destination_->bool_value(value, tag, context, ec);
 1466|  36.3k|                        break;
 1467|  8.11M|                }
 1468|  8.11M|            }
 1469|       |
 1470|  11.1M|            level_stack_.back().advance();
 1471|  11.1M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  11.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  11.1M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|  5.09M|        {
 1073|  5.09M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 1.42M, False: 3.67M]
  ------------------
 1074|  1.42M|            {
 1075|  1.42M|                switch (level_stack_.back().target_kind())
 1076|  1.42M|                {
 1077|  1.41M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 1.41M, False: 8.62k]
  ------------------
 1078|  1.41M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 1.41M, False: 2.81k]
  ------------------
 1079|  1.41M|                        {
 1080|  1.41M|                            key_buffer_.push_back(',');
 1081|  1.41M|                        }
 1082|  1.41M|                        key_buffer_.push_back('\"');
 1083|  1.41M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|  1.41M|                        key_buffer_.push_back('\"');
 1085|  1.41M|                        key_buffer_.push_back(':');
 1086|  1.41M|                        break;
 1087|  8.62k|                    default:
  ------------------
  |  Branch (1087:21): [True: 8.62k, False: 1.41M]
  ------------------
 1088|  8.62k|                        destination_->key(value, context, ec);
 1089|  8.62k|                        break;
 1090|  1.42M|                }
 1091|  1.42M|            }
 1092|  3.67M|            else
 1093|  3.67M|            {
 1094|  3.67M|                switch (level_stack_.back().target_kind())
 1095|  3.67M|                {
 1096|  3.65M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 3.65M, False: 13.7k]
  ------------------
 1097|  3.65M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 2.24M, False: 1.41M]
  |  Branch (1097:65): [True: 2.24M, False: 1.36k]
  ------------------
 1098|  2.24M|                        {
 1099|  2.24M|                            key_buffer_.push_back(',');
 1100|  2.24M|                        }
 1101|  3.65M|                        key_buffer_.push_back('\"');
 1102|  3.65M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|  3.65M|                        key_buffer_.push_back('\"');
 1104|  3.65M|                        break;
 1105|  13.7k|                    default:
  ------------------
  |  Branch (1105:21): [True: 13.7k, False: 3.65M]
  ------------------
 1106|  13.7k|                        destination_->string_value(value, tag, context, ec);
 1107|  13.7k|                        break;
 1108|  3.67M|                }
 1109|  3.67M|            }
 1110|       |
 1111|  5.09M|            level_stack_.back().advance();
 1112|  5.09M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  5.09M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|  5.09M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  14.8k|        {
 1120|  14.8k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 5.92k, False: 8.95k]
  |  Branch (1120:49): [True: 8.05k, False: 902]
  ------------------
 1121|  13.9k|            {
 1122|  13.9k|                key_.clear();
 1123|  13.9k|                switch (tag)
 1124|  13.9k|                {
 1125|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 0, False: 13.9k]
  ------------------
 1126|      0|                        bytes_to_base64(value.begin(), value.end(), key_);
 1127|      0|                        break;
 1128|      0|                    case semantic_tag::base16:
  ------------------
  |  Branch (1128:21): [True: 0, False: 13.9k]
  ------------------
 1129|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|      0|                        break;
 1131|  13.9k|                    default:
  ------------------
  |  Branch (1131:21): [True: 13.9k, False: 0]
  ------------------
 1132|  13.9k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  13.9k|                        break;
 1134|  13.9k|                }
 1135|  13.9k|            }
 1136|       |
 1137|  14.8k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 5.92k, False: 8.95k]
  ------------------
 1138|  5.92k|            {
 1139|  5.92k|                switch (level_stack_.back().target_kind())
 1140|  5.92k|                {
 1141|  5.09k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 5.09k, False: 823]
  ------------------
 1142|  5.09k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 3.64k, False: 1.45k]
  ------------------
 1143|  3.64k|                        {
 1144|  3.64k|                            key_buffer_.push_back(',');
 1145|  3.64k|                        }
 1146|  5.09k|                        key_buffer_.push_back('\"');
 1147|  5.09k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|  5.09k|                        key_buffer_.push_back('\"');
 1149|  5.09k|                        key_buffer_.push_back(':');
 1150|  5.09k|                        break;
 1151|    823|                    default:
  ------------------
  |  Branch (1151:21): [True: 823, False: 5.09k]
  ------------------
 1152|    823|                        destination_->key(key_, context, ec);
 1153|    823|                        break;
 1154|  5.92k|                }
 1155|  5.92k|            }
 1156|  8.95k|            else
 1157|  8.95k|            {
 1158|  8.95k|                switch (level_stack_.back().target_kind())
 1159|  8.95k|                {
 1160|  8.05k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 8.05k, False: 902]
  ------------------
 1161|  8.05k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 3.07k, False: 4.97k]
  |  Branch (1161:65): [True: 2.55k, False: 519]
  ------------------
 1162|  2.55k|                        {
 1163|  2.55k|                            key_buffer_.push_back(',');
 1164|  2.55k|                        }
 1165|  8.05k|                        key_buffer_.push_back('\"');
 1166|  8.05k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  8.05k|                        key_buffer_.push_back('\"');
 1168|  8.05k|                        break;
 1169|    902|                    default:
  ------------------
  |  Branch (1169:21): [True: 902, False: 8.05k]
  ------------------
 1170|    902|                        destination_->byte_string_value(value, tag, context, ec);
 1171|    902|                        break;
 1172|  8.95k|                }
 1173|  8.95k|            }
 1174|       |
 1175|  14.8k|            level_stack_.back().advance();
 1176|  14.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  14.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  14.8k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|   577k|        {
 1184|   577k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 67.1k, False: 510k]
  |  Branch (1184:49): [True: 507k, False: 3.05k]
  ------------------
 1185|   574k|            {
 1186|   574k|                key_.clear();
 1187|   574k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|   574k|            }
 1189|       |
 1190|   577k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 67.1k, False: 510k]
  ------------------
 1191|  67.1k|            {
 1192|  67.1k|                switch (level_stack_.back().target_kind())
 1193|  67.1k|                {
 1194|  63.6k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 63.6k, False: 3.45k]
  ------------------
 1195|  63.6k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 55.9k, False: 7.70k]
  ------------------
 1196|  55.9k|                        {
 1197|  55.9k|                            key_buffer_.push_back(',');
 1198|  55.9k|                        }
 1199|  63.6k|                        key_buffer_.push_back('\"');
 1200|  63.6k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|  63.6k|                        key_buffer_.push_back('\"');
 1202|  63.6k|                        key_buffer_.push_back(':');
 1203|  63.6k|                        break;
 1204|  3.45k|                    default:
  ------------------
  |  Branch (1204:21): [True: 3.45k, False: 63.6k]
  ------------------
 1205|  3.45k|                        destination_->key(key_, context, ec);
 1206|  3.45k|                        break;
 1207|  67.1k|                }
 1208|  67.1k|            }
 1209|   510k|            else
 1210|   510k|            {
 1211|   510k|                switch (level_stack_.back().target_kind())
 1212|   510k|                {
 1213|   507k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 507k, False: 3.05k]
  ------------------
 1214|   507k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 451k, False: 56.7k]
  |  Branch (1214:65): [True: 449k, False: 1.77k]
  ------------------
 1215|   449k|                        {
 1216|   449k|                            key_buffer_.push_back(',');
 1217|   449k|                        }
 1218|   507k|                        key_buffer_.push_back('\"');
 1219|   507k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|   507k|                        key_buffer_.push_back('\"');
 1221|   507k|                        break;
 1222|  3.05k|                    default:
  ------------------
  |  Branch (1222:21): [True: 3.05k, False: 507k]
  ------------------
 1223|  3.05k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|  3.05k|                        break;
 1225|   510k|                }
 1226|   510k|            }
 1227|       |
 1228|   577k|            level_stack_.back().advance();
 1229|   577k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   577k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|   577k|        }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|   257k|    {
  295|   257k|        visit_begin_array(length, tag, context, ec);
  296|   257k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   257k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|   257k|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|  8.88M|    {
  364|  8.88M|        visit_uint64(value, tag, context, ec);
  365|  8.88M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  8.88M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  8.88M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|   229k|    {
  301|   229k|        visit_end_array(context, ec);
  302|   229k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   229k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|   229k|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  4.03M|    {
  373|  4.03M|        visit_int64(value, tag, context, ec);
  374|  4.03M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  4.03M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  4.03M|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|   105k|    {
  391|   105k|        visit_double(value, tag, context, ec);
  392|   105k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   105k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|   105k|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  4.74k|            : destination_(std::addressof(visitor)), 
  856|  4.74k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  4.74k|        {
  858|  4.74k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  4.74k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|  4.74k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|   227k|    {
  277|   227k|        visit_begin_object(length, tag, context, ec);
  278|   227k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   227k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|   227k|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|  5.09M|    {
  333|  5.09M|        visit_string(value, tag, context, ec);
  334|  5.09M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  5.09M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|  5.09M|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|   120k|    {
  315|   120k|        visit_null(tag, context, ec);
  316|   120k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   120k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|   120k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  11.1M|    {
  324|  11.1M|        visit_bool(value, tag, context, ec);
  325|  11.1M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  11.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  11.1M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  14.8k|    {
  344|  14.8k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  14.8k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  14.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  14.8k|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|   577k|    {
  355|   577k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|   577k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   577k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|   577k|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|   196k|    {
  283|   196k|        visit_end_object(context, ec);
  284|   196k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   196k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|   196k|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|    942|    {
   58|    942|        visit_flush();
   59|    942|    }

_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  9.48k|        basic_default_json_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  9.48k|        basic_json_visitor() = default;
_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  14.2k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  560|  15.2k|        {
  561|  15.2k|            visit_begin_array(tag, context, ec);
  562|  15.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  15.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  563|  15.2k|        }
_ZN8jsoncons26basic_default_json_visitorIcE15visit_end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  833|  5.50k|        {
  834|  5.50k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  5.50k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  835|  5.50k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  858|   670k|        {
  859|   670k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   670k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  860|   670k|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  863|  32.3k|        {
  864|  32.3k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  32.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  865|  32.3k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  873|  3.23k|        {
  874|  3.23k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.23k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  875|  3.23k|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_flushEv:
  814|    942|        {
  815|    942|        }
_ZN8jsoncons26basic_default_json_visitorIcE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  818|  11.5k|        {
  819|  11.5k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  11.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  820|  11.5k|        }
_ZN8jsoncons18basic_json_visitorIcE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  544|  11.5k|        {
  545|  11.5k|            visit_begin_object(tag, context, ec);
  546|  11.5k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  11.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  547|  11.5k|        }
_ZN8jsoncons26basic_default_json_visitorIcE16visit_end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  823|  6.18k|        {
  824|  6.18k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  6.18k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  825|  6.18k|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  828|  15.2k|        {
  829|  15.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  15.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  830|  15.2k|        }
_ZN8jsoncons26basic_default_json_visitorIcE9visit_keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  838|   188k|        {
  839|   188k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   188k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|   188k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  843|  1.28k|        {
  844|  1.28k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.28k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  845|  1.28k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  878|  36.3k|        {
  879|  36.3k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  36.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  880|  36.3k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_stringERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  848|  13.7k|        {
  849|  13.7k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  850|  13.7k|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  853|  3.95k|        {
  854|  3.95k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.95k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  855|  3.95k|        }
_ZN8jsoncons18basic_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNSt3__110error_codeE:
  595|  3.05k|        {
  596|  3.05k|            visit_byte_string(value, semantic_tag::none, context, ec);
  597|  3.05k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.05k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  598|  3.05k|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|  15.2k|        {
  346|  15.2k|            visit_begin_array(length, tag, context, ec);
  347|  15.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  15.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|  15.2k|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|   670k|        {
  415|   670k|            visit_uint64(value, tag, context, ec);
  416|   670k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   670k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|   670k|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|  5.50k|        {
  352|  5.50k|            visit_end_array(context, ec);
  353|  5.50k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  5.50k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|  5.50k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|  32.3k|        {
  424|  32.3k|            visit_int64(value, tag, context, ec);
  425|  32.3k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  32.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|  32.3k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  3.23k|        {
  442|  3.23k|            visit_double(value, tag, context, ec);
  443|  3.23k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.23k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|  3.23k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|   188k|        {
  358|   188k|            visit_key(name, context, ec);
  359|   188k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   188k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|   188k|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|    942|        {
  109|    942|            visit_flush();
  110|    942|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  11.5k|        {
  328|  11.5k|            visit_begin_object(length, tag, context, ec);
  329|  11.5k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  11.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  11.5k|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  6.18k|        {
  334|  6.18k|            visit_end_object(context, ec);
  335|  6.18k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  6.18k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  6.18k|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  1.28k|        {
  366|  1.28k|            visit_null(tag, context, ec);
  367|  1.28k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.28k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  1.28k|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|  36.3k|        {
  375|  36.3k|            visit_bool(value, tag, context, ec);
  376|  36.3k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  36.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|  36.3k|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|  13.7k|        {
  384|  13.7k|            visit_string(value, tag, context, ec);
  385|  13.7k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  13.7k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|    902|        {
  395|    902|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|    902|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    902|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|    902|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|  3.05k|        {
  406|  3.05k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|  3.05k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.05k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|  3.05k|        }

_ZN8jsoncons11ser_contextD2Ev:
   21|  4.74k|    virtual ~ser_context() = default;

_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2ERS7_:
  256|   102k|            : buf_ptr(std::addressof(buf))
  257|   102k|        {
  258|   102k|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE9push_backEc:
  287|  1.51M|        {
  288|  1.51M|            buf_ptr->push_back(ch);
  289|  1.51M|        }

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  4.74k|    {
  194|  4.74k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 4.74k, False: 0]
  ------------------
  195|  4.74k|        {
  196|  4.74k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  4.74k|        }
  198|  4.74k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  4.74k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  4.74k|          chunk_size_(default_max_chunk_size)
  178|  4.74k|    {
  179|  4.74k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  4.74k|        data_end_ = chunk_;
  181|  4.74k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  4.74k|      : std::basic_istream<CharT>(&nb_)
   58|  4.74k|    {
   59|  4.74k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  4.74k|        null_buffer() = default;
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8is_errorEv:
  276|  30.4M|    {
  277|  30.4M|        return stream_ptr_->bad();  
  278|  30.4M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  31.8M|    {
  378|  31.8M|        std::size_t len = 0;
  379|  31.8M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 31.8M, False: 9.53k]
  ------------------
  380|  31.8M|        {
  381|  31.8M|            len = (std::min)(remaining_, length);
  382|  31.8M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  31.8M|            data_end_ += len;
  384|  31.8M|            remaining_ -= len;
  385|  31.8M|            position_ += len;
  386|  31.8M|        }
  387|  31.8M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 31.8M, False: 11.1k]
  ------------------
  388|  31.8M|        {
  389|  31.8M|            return len;
  390|  31.8M|        }
  391|  11.1k|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 11.1k, False: 0]
  ------------------
  392|  11.1k|        {
  393|  11.1k|            data_end_ = chunk_;
  394|  11.1k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|  11.1k|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 7.85k, False: 3.31k]
  ------------------
  396|  7.85k|            {
  397|  7.85k|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|  7.85k|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|  7.85k|                data_end_ += len2;
  400|  7.85k|                remaining_ -= len2;
  401|  7.85k|                position_ += len2;
  402|  7.85k|                len += len2;
  403|  7.85k|            }
  404|  11.1k|            return len;
  405|  11.1k|        }
  406|      0|        else
  407|      0|        {
  408|      0|            if (stream_ptr_->eof())
  ------------------
  |  Branch (408:17): [True: 0, False: 0]
  ------------------
  409|      0|            {
  410|      0|                remaining_ = 0;
  411|      0|                return 0;
  412|      0|            }
  413|      0|            JSONCONS_TRY
  ------------------
  |  |   37|      0|    #define JSONCONS_TRY try
  ------------------
  414|      0|            {
  415|      0|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  416|      0|                std::size_t len2 = static_cast<std::size_t>(count);
  417|      0|                if (len2 < length-len)
  ------------------
  |  Branch (417:21): [True: 0, False: 0]
  ------------------
  418|      0|                {
  419|      0|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  420|      0|                }
  421|      0|                len += len2;
  422|      0|                position_ += len2;
  423|      0|                return len;
  424|      0|            }
  425|      0|            JSONCONS_CATCH(const std::exception&)     
  426|      0|            {
  427|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  428|      0|                return 0;
  429|      0|            }
  430|      0|        }
  431|  31.8M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  11.9k|    {
  443|  11.9k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 3.37k, False: 8.54k]
  ------------------
  444|  3.37k|        {
  445|  3.37k|            return 0;
  446|  3.37k|        }
  447|       |
  448|  8.54k|        JSONCONS_TRY
  ------------------
  |  |   37|  8.54k|    #define JSONCONS_TRY try
  ------------------
  449|  8.54k|        {
  450|  8.54k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  8.54k|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  8.54k|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 4.73k, False: 3.80k]
  ------------------
  454|  4.73k|            {
  455|  4.73k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  4.73k|            }
  457|  8.54k|            return length;
  458|  8.54k|        }
  459|  8.54k|        JSONCONS_CATCH(const std::exception&)     
  460|  8.54k|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  8.54k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6detail4spanIKhLm18446744073709551615EEEmOT_:
  352|  5.64M|    {
  353|  5.64M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  5.64M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5.07M, False: 578k]
  |  |  ------------------
  ------------------
  354|  5.07M|        {
  355|  5.07M|            return span<const value_type>{};
  356|  5.07M|        }
  357|   578k|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 309, False: 578k]
  |  Branch (357:32): [True: 134, False: 175]
  ------------------
  358|    134|        {
  359|    134|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|    134|            data_end_ = chunk_;
  361|    134|        }
  362|   578k|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 862, False: 578k]
  ------------------
  363|    862|        {
  364|    862|            buffer.clear();
  365|    862|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|    862|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|    862|        }
  368|       |
  369|   578k|        const value_type* data = data_end_;
  370|   578k|        data_end_ += length;
  371|   578k|        remaining_ -= length;
  372|   578k|        position_ += length;
  373|   578k|        return span<const value_type>(data, length);
  374|   578k|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  746|    862|    {
  747|    862|        std::size_t unread = length;
  748|       |
  749|  3.13k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 2.74k, False: 389]
  |  Branch (749:30): [True: 2.27k, False: 473]
  ------------------
  750|  2.27k|        {
  751|  2.27k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 614, False: 1.65k]
  |  Branch (751:44): [True: 612, False: 2]
  ------------------
  752|    612|            {
  753|    612|                std::size_t n = source.chunk_size();
  754|    612|                std::size_t offset = buffer.size();
  755|    612|                buffer.resize(offset+n);
  756|    612|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|    612|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|    612|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 63, False: 549]
  |  |  ------------------
  ------------------
  758|     63|                {
  759|     63|                    buffer.resize(offset+actual);
  760|     63|                }
  761|    612|                unread -= actual;
  762|    612|            }
  763|  1.66k|            else
  764|  1.66k|            {
  765|  1.66k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  1.66k|                std::size_t offset = buffer.size();
  767|  1.66k|                buffer.resize(offset+n);
  768|  1.66k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  1.66k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|  1.66k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 227, False: 1.43k]
  |  |  ------------------
  ------------------
  770|    227|                {
  771|    227|                    buffer.resize(offset + actual);
  772|    227|                }
  773|  1.66k|                unread -= actual;
  774|  1.66k|            }
  775|  2.27k|        }
  776|    862|        return length - unread;
  777|    862|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  2.74k|    {
  272|  2.74k|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 1.08k, False: 1.65k]
  |  Branch (272:35): [True: 473, False: 614]
  ------------------
  273|  2.74k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|  2.27k|    {
  347|  2.27k|        return remaining_;
  348|  2.27k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|  2.88k|    {
  262|  2.88k|        return chunk_size_;
  263|  2.88k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|    612|    {
  436|    612|        auto len = fill_buffer(chunk, chunk_size);
  437|    612|        position_ += len;
  438|    612|        return len;
  439|    612|    }

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  94.0k|        : storage_(n, alloc)
  694|  94.0k|    {
  695|  94.0k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  94.0k|        : word_allocator_type(alloc)
  361|  94.0k|    {
  362|  94.0k|        ::new (&inlined_) inlined_storage(n);
  363|  94.0k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  94.0k|            : is_allocated_(false),
  139|  94.0k|            is_negative_(false),
  140|  94.0k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 39.2k, False: 54.8k]
  ------------------
  141|  94.0k|        {
  142|  94.0k|            values_[0] = n;
  143|  94.0k|            values_[1] = 0;
  144|  94.0k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  998|  40.0k|    {
  999|  40.0k|        auto this_view = get_storage_view();
 1000|  40.0k|        size_type len0 = this_view.size();
 1001|  40.0k|        word_type dig = this_view[0];
 1002|  40.0k|        word_type carry = 0;
 1003|       |
 1004|  40.0k|        resize(this_view.size() + 1);
 1005|  40.0k|        this_view = get_storage_view();
 1006|       |
 1007|  40.0k|        size_type i = 0;
 1008|  76.0k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 35.9k, False: 40.0k]
  ------------------
 1009|  35.9k|        {
 1010|  35.9k|            word_type hi;
 1011|  35.9k|            word_type lo;
 1012|  35.9k|            DDproduct( dig, y, hi, lo );
 1013|  35.9k|            this_view[i] = lo + carry;
 1014|  35.9k|            dig = this_view[i+1];
 1015|  35.9k|            carry = hi + (this_view[i] < lo);
 1016|  35.9k|        }
 1017|  40.0k|        this_view[i] = carry;
 1018|  40.0k|        reduce();
 1019|  40.0k|        return *this;
 1020|  40.0k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  718|   690k|    {
  719|   690k|        return storage_.get_storage_view();
  720|   690k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  520|   990k|    {
  521|   990k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (521:16): [True: 340k, False: 650k]
  ------------------
  522|   340k|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  523|   990k|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  524|   990k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   64|   990k|            : data_(data), size_(size)
   65|   990k|        {
   66|   990k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   84|  1.56M|        {
   85|  1.56M|            return size_;
   86|  1.56M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   69|   657k|        {
   70|   657k|            return data_[i];
   71|   657k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  818|   107k|    {
  819|   107k|        storage_.resize(new_length);
  820|   107k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  534|   219k|    {
  535|   219k|        size_type old_length = common_.size_;
  536|   219k|        reserve(new_length);
  537|   219k|        common_.size_ = new_length;
  538|       |
  539|   219k|        if (old_length < new_length)
  ------------------
  |  Branch (539:13): [True: 117k, False: 102k]
  ------------------
  540|   117k|        {
  541|   117k|            if (is_allocated())
  ------------------
  |  Branch (541:17): [True: 26.2k, False: 91.3k]
  ------------------
  542|  26.2k|            {
  543|  26.2k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  544|  26.2k|            }
  545|  91.3k|            else
  546|  91.3k|            {
  547|  91.3k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   49|  91.3k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 91.3k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  548|   228k|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (548:48): [True: 136k, False: 91.3k]
  ------------------
  549|   136k|                {
  550|   136k|                    inlined_.values_[i] = 0;
  551|   136k|                }
  552|  91.3k|            }
  553|   117k|        }
  554|   219k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  452|   219k|    {
  453|   219k|       if (capacity() < n)
  ------------------
  |  Branch (453:12): [True: 26.2k, False: 193k]
  ------------------
  454|  26.2k|       {
  455|  26.2k|           if (!is_allocated())
  ------------------
  |  Branch (455:16): [True: 26.2k, False: 0]
  ------------------
  456|  26.2k|           {
  457|  26.2k|               size_type size = inlined_.size_;
  458|  26.2k|               size_type is_neg = inlined_.is_negative_;
  459|  26.2k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  460|       |
  461|  26.2k|               ::new (&allocated_) allocated_storage();
  462|  26.2k|               allocated_.reserve(n, get_allocator());
  463|  26.2k|               allocated_.size_ = size;
  464|  26.2k|               allocated_.is_negative_ = is_neg;
  465|  26.2k|               if (n >= 1)
  ------------------
  |  Branch (465:20): [True: 26.2k, False: 0]
  ------------------
  466|  26.2k|               {
  467|  26.2k|                   allocated_.data_[0] = values[0];
  468|  26.2k|               }
  469|  26.2k|               if (n >= 2)
  ------------------
  |  Branch (469:20): [True: 26.2k, False: 0]
  ------------------
  470|  26.2k|               {
  471|  26.2k|                   allocated_.data_[1] = values[1];
  472|  26.2k|               }
  473|  26.2k|           }
  474|      0|           else
  475|      0|           {
  476|      0|               allocated_.reserve(n, get_allocator());
  477|      0|           }
  478|  26.2k|       }
  479|   219k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  505|   219k|    {
  506|   219k|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (506:16): [True: 52.4k, False: 167k]
  ------------------
  507|   219k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  203|  26.2k|            : is_allocated_(true),
  204|  26.2k|            is_negative_(false)
  205|  26.2k|        {
  206|  26.2k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  255|  26.2k|        {
  256|  26.2k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   49|  26.2k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 26.2k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  257|  26.2k|            size_type capacity_new = round_up(n);
  258|       |
  259|  26.2k|            real_allocator_type alloc(a);
  260|  26.2k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  261|  26.2k|            if (size_ > 0)
  ------------------
  |  Branch (261:17): [True: 0, False: 26.2k]
  ------------------
  262|      0|            {
  263|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  264|      0|            }
  265|  26.2k|            if (data_ != nullptr)
  ------------------
  |  Branch (265:17): [True: 0, False: 26.2k]
  ------------------
  266|      0|            {
  267|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  268|      0|            }
  269|  26.2k|            capacity_ = capacity_new;
  270|  26.2k|            data_ = data_new;
  271|  26.2k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  275|  26.2k|        {
  276|  26.2k|            size_type remainder = i % mem_unit;
  277|  26.2k|            size_type off = mem_unit - remainder;
  278|  26.2k|            bool testoff = i < max_size - off;
  279|  26.2k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   49|  26.2k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 26.2k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  280|       |
  281|  26.2k|            return i + off;
  282|  26.2k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  482|   503k|    {
  483|   503k|        return static_cast<const word_allocator_type&>(*this);
  484|   503k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  500|  1.06M|    {
  501|  1.06M|        return common_.is_allocated_;
  502|  1.06M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1781|  62.9k|    {
 1782|  62.9k|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1783|  62.9k|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1784|       |
 1785|  62.9k|        lo = loA * loB;
 1786|  62.9k|        hi = hiA * hiB;
 1787|  62.9k|        word_type mid1 = loA * hiB;
 1788|  62.9k|        word_type mid2 = hiA * loB;
 1789|  62.9k|        word_type old = lo;
 1790|  62.9k|        lo += mid1 << word_type_half_bits;
 1791|  62.9k|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1792|  62.9k|        old = lo;
 1793|  62.9k|        lo += mid2 << word_type_half_bits;
 1794|  62.9k|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1795|  62.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1917|   188k|    {
 1918|   188k|        storage_.reduce();
 1919|   188k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  429|   188k|    {
  430|   188k|        if (common_.size_ > 0)
  ------------------
  |  Branch (430:13): [True: 188k, False: 0]
  ------------------
  431|   188k|        {
  432|   188k|            auto this_view = get_storage_view();
  433|   188k|            word_type* p = this_view.end() - 1;
  434|   188k|            word_type* first = this_view.begin();
  435|   267k|            while ( p >= first )
  ------------------
  |  Branch (435:21): [True: 259k, False: 7.26k]
  ------------------
  436|   259k|            {
  437|   259k|                if ( *p )
  ------------------
  |  Branch (437:22): [True: 180k, False: 79.1k]
  ------------------
  438|   180k|                {
  439|   180k|                    break;
  440|   180k|                }
  441|  79.1k|                --common_.size_;
  442|  79.1k|                --p;
  443|  79.1k|            }
  444|   188k|        }
  445|   188k|        if (common_.size_ == 0)
  ------------------
  |  Branch (445:13): [True: 7.26k, False: 180k]
  ------------------
  446|  7.26k|        {
  447|  7.26k|            common_.is_negative_ = false;
  448|  7.26k|        }
  449|   188k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   93|   188k|        {
   94|   188k|            return data_ + size_;
   95|   188k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   88|   188k|        {
   89|   188k|            return data_;
   90|   188k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  889|  8.62k|    {
  890|  8.62k|        if ( is_negative())
  ------------------
  |  Branch (890:14): [True: 0, False: 8.62k]
  ------------------
  891|      0|            return *this -= -basic_bigint<Allocator>(y);
  892|       |
  893|  8.62k|        word_type d;
  894|  8.62k|        word_type carry = 0;
  895|       |
  896|  8.62k|        auto this_view = get_storage_view();
  897|  8.62k|        resize(this_view.size() + 1);
  898|       |
  899|  8.62k|        this_view = get_storage_view();
  900|  8.62k|        const size_type this_size = this_view.size();
  901|  8.62k|        size_type y_size = 1;
  902|       |
  903|  8.62k|        d = this_view[0] + carry;
  904|  8.62k|        carry = d < carry;
  905|  8.62k|        this_view[0] = d + y;
  906|  8.62k|        if (this_view[0] < d)
  ------------------
  |  Branch (906:13): [True: 0, False: 8.62k]
  ------------------
  907|      0|            carry = 1;
  908|       |
  909|  8.62k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (909:36): [True: 6.90k, False: 1.72k]
  |  Branch (909:53): [True: 0, False: 6.90k]
  ------------------
  910|      0|        {
  911|      0|            d = this_view[i] + carry;
  912|      0|            carry = d < carry;
  913|      0|            this_view[i] = d;
  914|      0|        }
  915|  8.62k|        reduce();
  916|  8.62k|        return *this;
  917|  8.62k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  728|   642k|    {
  729|   642k|        return storage_.is_negative();
  730|   642k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  510|   642k|    {
  511|   642k|        return common_.is_negative_;
  512|   642k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  835|  12.0k|    {
  836|  12.0k|        basic_bigint<Allocator> v(*this);
  837|  12.0k|        v.set_negative(!v.is_negative());
  838|  12.0k|        return v;
  839|  12.0k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  671|  52.1k|        : storage_(other.storage_)
  672|  52.1k|    {
  673|  52.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  299|  52.1k|        : word_allocator_type(other.get_allocator())
  300|  52.1k|    {
  301|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  302|       |# pragma GCC diagnostic push
  303|       |# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  304|       |#endif
  305|  52.1k|        if (!other.is_allocated())
  ------------------
  |  Branch (305:13): [True: 25.8k, False: 26.2k]
  ------------------
  306|  25.8k|        {
  307|  25.8k|            ::new (&inlined_) inlined_storage(other.inlined_);
  308|  25.8k|        }
  309|  26.2k|        else
  310|  26.2k|        {
  311|  26.2k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  312|  26.2k|        }
  313|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  314|       |# pragma GCC diagnostic pop
  315|       |#endif
  316|  52.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  178|   140k|            : is_allocated_(false),
  179|   140k|            is_negative_(stor.is_negative_),
  180|   140k|            size_(stor.size_)
  181|   140k|        {
  182|   140k|            values_[0] = stor.values_[0];
  183|   140k|            values_[1] = stor.values_[1];
  184|   140k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  209|   104k|            : is_allocated_(true),
  210|   104k|              is_negative_(stor.is_negative_),
  211|   104k|              size_(stor.size_),
  212|   104k|              capacity_(stor.capacity_)
  213|   104k|        {
  214|   104k|            real_allocator_type alloc(a);
  215|       |
  216|   104k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  217|   104k|            JSONCONS_TRY
  ------------------
  |  |   37|   104k|    #define JSONCONS_TRY try
  ------------------
  218|   104k|            {
  219|   104k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  220|   104k|            }
  221|   104k|            JSONCONS_CATCH(...)
  222|   104k|            {
  223|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  224|      0|                data_ = nullptr;
  225|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  226|      0|            }
  227|   104k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   49|   104k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 104k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  228|   104k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  229|   104k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  733|   290k|    {
  734|   290k|        storage_.set_negative(value);
  735|   290k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  515|   290k|    {
  516|   290k|        common_.is_negative_ = value;
  517|   290k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12write_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1359|  40.0k|    {
 1360|  40.0k|        basic_bigint<Allocator> v(*this);
 1361|  40.0k|        auto v_view = v.get_storage_view();
 1362|       |
 1363|  40.0k|        size_type len = (v_view.size() * word_type_bits / 3) + 2;
 1364|  40.0k|        data.reserve(len);
 1365|       |
 1366|  40.0k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1366:14): [True: 2.90k, False: 37.1k]
  ------------------
 1367|  2.90k|        {
 1368|  2.90k|            data.push_back('0');
 1369|  2.90k|        }
 1370|  37.1k|        else
 1371|  37.1k|        {
 1372|  37.1k|            word_type r;
 1373|  37.1k|            basic_bigint<Allocator> R(get_allocator());
 1374|  37.1k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1375|       |
 1376|  37.1k|            do
 1377|  69.7k|            {
 1378|  69.7k|                v.divide( LP10, v, R, true );
 1379|  69.7k|                v_view = v.get_storage_view();
 1380|       |
 1381|  69.7k|                auto R_view = R.get_storage_view();
 1382|  69.7k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1382:22): [True: 69.1k, False: 550]
  ------------------
 1383|   924k|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1383:38): [True: 891k, False: 32.5k]
  ------------------
 1384|   891k|                {
 1385|   891k|                    data.push_back(char(r % 10u + '0'));
 1386|   891k|                    r /= 10u;
 1387|   891k|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1387:26): [True: 37.1k, False: 854k]
  ------------------
 1388|  37.1k|                        break;
 1389|   891k|                }
 1390|  69.7k|            } 
 1391|  69.7k|            while ( v_view.size() > 0);
  ------------------
  |  Branch (1391:21): [True: 32.5k, False: 37.1k]
  ------------------
 1392|       |
 1393|  37.1k|            if (is_negative())
  ------------------
  |  Branch (1393:17): [True: 12.0k, False: 25.1k]
  ------------------
 1394|  12.0k|            {
 1395|  12.0k|                data.push_back('-');
 1396|  12.0k|            }
 1397|  37.1k|            std::reverse(data.begin(),data.end());
 1398|  37.1k|        }
 1399|  40.0k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  713|   267k|    {
  714|   267k|        return storage_.get_allocator();
  715|   267k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  644|  37.1k|        : storage_(alloc)
  645|  37.1k|    {
  646|  37.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  293|  37.1k|        : word_allocator_type(alloc)
  294|  37.1k|    {
  295|  37.1k|        ::new (&inlined_) inlined_storage();
  296|  37.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  113|  37.1k|            : is_allocated_(false),
  114|  37.1k|            is_negative_(false),
  115|  37.1k|            size_(0),
  116|  37.1k|            values_{0, 0}
  117|  37.1k|        {
  118|  37.1k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1675|  69.7k|    {
 1676|  69.7k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1677|  69.7k|        auto denom_view = denom.get_storage_view();
 1678|       |
 1679|  69.7k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1679:13): [True: 0, False: 69.7k]
  ------------------
 1680|      0|        {
 1681|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1682|      0|        }
 1683|  69.7k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1684|  69.7k|        bool rem_neg = is_negative();
 1685|  69.7k|        basic_bigint<Allocator> num(*this, get_allocator());
 1686|  69.7k|        num.set_negative(false);
 1687|  69.7k|        denom.set_negative(false);
 1688|  69.7k|        if ( num < denom )
  ------------------
  |  Branch (1688:14): [True: 37.1k, False: 32.5k]
  ------------------
 1689|  37.1k|        {
 1690|  37.1k|            quot = word_type(0);
 1691|  37.1k|            quot.set_negative(quot_neg);
 1692|  37.1k|            rem = num;
 1693|  37.1k|            rem.set_negative(rem_neg);
 1694|  37.1k|            return;
 1695|  37.1k|        }
 1696|       |
 1697|  32.5k|        auto num_view = num.get_storage_view();
 1698|  32.5k|        auto quot_view = quot.get_storage_view();
 1699|  32.5k|        auto this_view = get_storage_view();
 1700|       |
 1701|  32.5k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1701:14): [True: 32.5k, False: 0]
  |  Branch (1701:40): [True: 5.55k, False: 26.9k]
  ------------------
 1702|  5.55k|        {
 1703|  5.55k|            quot = word_type( num_view[0]/denom_view[0] );
 1704|  5.55k|            rem = word_type( num_view[0]%denom_view[0] );
 1705|  5.55k|            quot.set_negative(quot_neg);
 1706|  5.55k|            rem.set_negative(rem_neg);
 1707|  5.55k|            return;
 1708|  5.55k|        }
 1709|  26.9k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1709:13): [True: 26.9k, False: 0]
  |  Branch (1709:39): [True: 0, False: 26.9k]
  ------------------
 1710|      0|        {
 1711|       |            // Denominator fits into a half word
 1712|      0|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1713|      0|            quot.resize(this_view.size());
 1714|      0|            quot_view = quot.get_storage_view();
 1715|      0|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1715:48): [True: 0, False: 0]
  ------------------
 1716|      0|            {
 1717|      0|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1718|      0|                q1 = dividend/divisor;
 1719|      0|                r = dividend % divisor;
 1720|      0|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1721|      0|                q2 = dividend/divisor;
 1722|      0|                dHi = dividend % divisor;
 1723|      0|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1724|      0|            }
 1725|      0|            quot.reduce();
 1726|      0|            rem = dHi;
 1727|      0|            quot.set_negative(quot_neg);
 1728|      0|            rem.set_negative(rem_neg);
 1729|      0|            return;
 1730|      0|        }
 1731|  26.9k|        basic_bigint<Allocator> num0(num, get_allocator());
 1732|  26.9k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1733|  26.9k|        int x = 0;
 1734|  26.9k|        bool second_done = normalize(denom, num, x);
 1735|  26.9k|        denom_view = denom.get_storage_view();
 1736|  26.9k|        num_view = num.get_storage_view();
 1737|       |
 1738|  26.9k|        size_type l = denom_view.size() - 1;
 1739|  26.9k|        size_type n = num_view.size() - 1;
 1740|  26.9k|        quot.resize(n - l);
 1741|  26.9k|        quot_view = quot.get_storage_view();
 1742|  53.9k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1742:46): [True: 26.9k, False: 26.9k]
  ------------------
 1743|  26.9k|        {
 1744|  26.9k|            quot_view[i] = 0;
 1745|  26.9k|        }
 1746|  26.9k|        rem = num;
 1747|  26.9k|        auto rem_view = rem.get_storage_view();
 1748|  26.9k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1748:14): [True: 0, False: 26.9k]
  ------------------
 1749|      0|        {
 1750|      0|            rem.resize(rem_view.size() + 1);
 1751|      0|            rem_view = rem.get_storage_view();
 1752|      0|            n++;
 1753|      0|            quot.resize(quot_view.size() + 1);
 1754|      0|            quot_view = quot.get_storage_view();
 1755|      0|        }
 1756|  26.9k|        word_type d = denom_view[l];
 1757|       |
 1758|  53.9k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1758:32): [True: 26.9k, False: 26.9k]
  ------------------
 1759|  26.9k|        {
 1760|  26.9k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1761|  26.9k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1762|  26.9k|            quot_view[k - l - 1] = q;
 1763|  26.9k|        }
 1764|  26.9k|        quot.reduce();
 1765|  26.9k|        quot.set_negative(quot_neg);
 1766|  26.9k|        if (remDesired)
  ------------------
  |  Branch (1766:13): [True: 26.9k, False: 0]
  ------------------
 1767|  26.9k|        {
 1768|  26.9k|            unnormalize(rem, x, second_done);
 1769|  26.9k|            rem.set_negative(rem_neg);
 1770|  26.9k|        }
 1771|  26.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  676|   193k|        : storage_(other.storage_, alloc)
  677|   193k|    {
  678|   193k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  319|   193k|        : word_allocator_type(alloc)
  320|   193k|    {
  321|   193k|        if (!other.is_allocated())
  ------------------
  |  Branch (321:13): [True: 114k, False: 78.6k]
  ------------------
  322|   114k|        {
  323|   114k|            ::new (&inlined_) inlined_storage(other.inlined_);
  324|   114k|        }
  325|  78.6k|        else
  326|  78.6k|        {
  327|  78.6k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  328|  78.6k|        }
  329|   193k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1476|  69.7k|    {
 1477|  69.7k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1477:15): [True: 37.1k, False: 32.5k]
  ------------------
 1478|  69.7k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1641|   101k|    {
 1642|   101k|        auto this_view = get_storage_view();
 1643|   101k|        auto y_view = y.get_storage_view();
 1644|       |
 1645|   101k|        const size_type y_size = y_view.size();
 1646|   101k|        if ( this_view.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1646:14): [True: 2.40k, False: 98.7k]
  |  Branch (1646:39): [True: 2.40k, False: 0]
  ------------------
 1647|  2.40k|            return 0;
 1648|  98.7k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1648:14): [True: 12.0k, False: 86.7k]
  ------------------
 1649|  12.0k|            return y.is_negative() - is_negative();
 1650|  86.7k|        int code = 0;
 1651|  86.7k|        if ( this_view.size() < y_size)
  ------------------
  |  Branch (1651:14): [True: 0, False: 86.7k]
  ------------------
 1652|      0|            code = -1;
 1653|  86.7k|        else if ( this_view.size() > y_size)
  ------------------
  |  Branch (1653:19): [True: 43.9k, False: 42.7k]
  ------------------
 1654|  43.9k|            code = +1;
 1655|  42.7k|        else
 1656|  42.7k|        {
 1657|  43.0k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1657:50): [True: 42.7k, False: 321]
  ------------------
 1658|  42.7k|            {
 1659|  42.7k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1659:21): [True: 5.23k, False: 37.4k]
  ------------------
 1660|  5.23k|                {
 1661|  5.23k|                    code = 1;
 1662|  5.23k|                    break;
 1663|  5.23k|                }
 1664|  37.4k|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1664:26): [True: 37.1k, False: 321]
  ------------------
 1665|  37.1k|                {
 1666|  37.1k|                    code = -1;
 1667|  37.1k|                    break;
 1668|  37.1k|                }
 1669|  42.7k|            }
 1670|  42.7k|        }
 1671|  86.7k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1671:16): [True: 0, False: 86.7k]
  ------------------
 1672|  98.7k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  842|   112k|    {
  843|   112k|        storage_ = y.storage_;
  844|   112k|        return *this;
  845|   112k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  366|   112k|    {
  367|   112k|        if (this != &other)
  ------------------
  |  Branch (367:13): [True: 112k, False: 0]
  ------------------
  368|   112k|        {
  369|   112k|            auto other_view = other.get_storage_view();
  370|   112k|            resize(other_view.size());
  371|   112k|            auto this_view = get_storage_view();
  372|   112k|            if (other_view.size() > 0)
  ------------------
  |  Branch (372:17): [True: 74.9k, False: 37.4k]
  ------------------
  373|  74.9k|            {
  374|  74.9k|                common_.is_negative_ = other.common_.is_negative_;
  375|  74.9k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  376|  74.9k|            }
  377|   112k|        }
  378|   112k|        return *this;
  379|   112k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  527|   371k|    {
  528|   371k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (528:16): [True: 131k, False: 240k]
  ------------------
  529|   131k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  530|   371k|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  531|   371k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   64|   371k|            : data_(data), size_(size)
   65|   371k|        {
   66|   371k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   79|  74.9k|        {
   80|  74.9k|            return data_;
   81|  74.9k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  723|   258k|    {
  724|   258k|        return storage_.get_storage_view();
  725|   258k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   84|   742k|        {
   85|   742k|            return size_;
   86|   742k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   69|   170k|        {
   70|   170k|            return data_[i];
   71|   170k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1872|  26.9k|    {
 1873|  26.9k|        auto denom_view = denom.get_storage_view();
 1874|  26.9k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1874:13): [True: 0, False: 26.9k]
  ------------------
 1875|      0|        {
 1876|      0|            return false;
 1877|      0|        }
 1878|  26.9k|        size_type r = denom_view.size() - 1;
 1879|  26.9k|        word_type y = denom_view[r];
 1880|       |
 1881|  26.9k|        x = 0;
 1882|  26.9k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1882:17): [True: 0, False: 26.9k]
  ------------------
 1883|      0|        {
 1884|      0|            y <<= 1;
 1885|      0|            x++;
 1886|      0|        }
 1887|  26.9k|        denom <<= x;
 1888|  26.9k|        num <<= x;
 1889|       |
 1890|  26.9k|        denom_view = denom.get_storage_view();
 1891|  26.9k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1891:14): [True: 0, False: 26.9k]
  |  Branch (1891:23): [True: 0, False: 0]
  ------------------
 1892|      0|        {
 1893|      0|            denom *= max_word;
 1894|      0|            num *= max_word;
 1895|      0|            return true;
 1896|      0|        }
 1897|  26.9k|        return false;
 1898|  26.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1117|  53.9k|    {
 1118|  53.9k|        auto this_view = get_storage_view();
 1119|  53.9k|        size_type q = k / word_type_bits;
 1120|  53.9k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1120:14): [True: 0, False: 53.9k]
  ------------------
 1121|      0|        {
 1122|      0|            resize(this_view.size() + q);
 1123|      0|            this_view = get_storage_view();
 1124|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1124:50): [True: 0, False: 0]
  ------------------
 1125|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1125:34): [True: 0, False: 0]
  ------------------
 1126|      0|            k %= word_type_bits;
 1127|      0|        }
 1128|  53.9k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1128:14): [True: 0, False: 53.9k]
  ------------------
 1129|      0|        {
 1130|      0|            size_type k1 = word_type_bits - k;
 1131|      0|            word_type mask = (word_type(1) << k) - word_type(1);
 1132|      0|            resize( this_view.size() + 1 );
 1133|      0|            this_view = get_storage_view();
 1134|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1134:50): [True: 0, False: 0]
  ------------------
 1135|      0|            {
 1136|      0|                this_view[i] <<= k;
 1137|      0|                if ( i > 0 )
  ------------------
  |  Branch (1137:22): [True: 0, False: 0]
  ------------------
 1138|      0|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1139|      0|            }
 1140|      0|        }
 1141|  53.9k|        reduce();
 1142|  53.9k|        return *this;
 1143|  53.9k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1799|  26.9k|    {
 1800|  26.9k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1801|  26.9k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1802|  26.9k|        qHi = A/(dHi + 1);
 1803|       |        // This initial guess of qHi may be too small.
 1804|  26.9k|        middle = qHi * dLo;
 1805|  26.9k|        left = qHi * dHi;
 1806|  26.9k|        x = B - (middle << word_type_half_bits);
 1807|  26.9k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1808|  26.9k|        B = x;
 1809|  26.9k|        dLo1 = dLo << word_type_half_bits;
 1810|       |        // Increase qHi if necessary:
 1811|  26.9k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1811:17): [True: 0, False: 26.9k]
  |  Branch (1811:29): [True: 0, False: 26.9k]
  |  Branch (1811:41): [True: 0, False: 0]
  ------------------
 1812|      0|        {
 1813|      0|            x = B - dLo1;
 1814|      0|            A -= dHi + (x > B);
 1815|      0|            B = x;
 1816|      0|            qHi++;
 1817|      0|        }
 1818|  26.9k|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1819|       |        // This initial guess of qLo may be too small.
 1820|  26.9k|        right = qLo * dLo;
 1821|  26.9k|        middle = qLo * dHi;
 1822|  26.9k|        x = B - right;
 1823|  26.9k|        A -= (x > B);
 1824|  26.9k|        B = x;
 1825|  26.9k|        x = B - (middle << word_type_half_bits);
 1826|  26.9k|            A -= (middle >> word_type_half_bits) + (x > B);
 1827|  26.9k|        B = x;
 1828|       |        // Increase qLo if necessary:
 1829|  30.8k|        while ( A || B >= d )
  ------------------
  |  Branch (1829:17): [True: 0, False: 30.8k]
  |  Branch (1829:22): [True: 3.87k, False: 26.9k]
  ------------------
 1830|  3.87k|        {
 1831|  3.87k|            x = B - d;
 1832|  3.87k|            A -= (x > B);
 1833|  3.87k|            B = x;
 1834|  3.87k|            qLo++;
 1835|  3.87k|        }
 1836|  26.9k|        return (qHi << word_type_half_bits) + qLo;
 1837|  26.9k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1841|  26.9k|    {
 1842|  26.9k|        word_type hi, lo, d, carry = 0;
 1843|  26.9k|        size_type i;
 1844|  53.9k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1844:22): [True: 26.9k, False: 26.9k]
  ------------------
 1845|  26.9k|        {
 1846|  26.9k|            DDproduct( b[i], q, hi, lo );
 1847|  26.9k|            d = a[i];
 1848|  26.9k|            a[i] -= lo;
 1849|  26.9k|            if ( a[i] > d )
  ------------------
  |  Branch (1849:18): [True: 15.5k, False: 11.4k]
  ------------------
 1850|  15.5k|                carry++;
 1851|  26.9k|            d = a[i + 1];
 1852|  26.9k|            a[i + 1] -= hi + carry;
 1853|  26.9k|            carry = a[i + 1] > d;
 1854|  26.9k|        }
 1855|  26.9k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1855:14): [True: 0, False: 26.9k]
  ------------------
 1856|      0|        {
 1857|      0|            q--;
 1858|      0|            carry = 0;
 1859|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1859:26): [True: 0, False: 0]
  ------------------
 1860|      0|            {
 1861|      0|                d = a[i] + carry;
 1862|      0|                carry = d < carry;
 1863|      0|                a[i] = d + b[i];
 1864|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1864:22): [True: 0, False: 0]
  ------------------
 1865|      0|                    carry = 1;
 1866|      0|            }
 1867|      0|            a[n] = 0;
 1868|      0|        }
 1869|  26.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   79|   128k|        {
   80|   128k|            return data_;
   81|   128k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1901|  26.9k|    {
 1902|  26.9k|        if (secondDone)
  ------------------
  |  Branch (1902:13): [True: 0, False: 26.9k]
  ------------------
 1903|      0|        {
 1904|      0|            rem /= max_word;
 1905|      0|        }
 1906|  26.9k|        if ( x > 0 )
  ------------------
  |  Branch (1906:14): [True: 0, False: 26.9k]
  ------------------
 1907|      0|        {
 1908|      0|            rem >>= x;
 1909|      0|        }
 1910|  26.9k|        else
 1911|  26.9k|        {
 1912|  26.9k|            rem.reduce();
 1913|  26.9k|        }
 1914|  26.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  708|   451k|    {
  709|   451k|        storage_.destroy();
  710|   451k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  487|   451k|    {
  488|   451k|        if (is_allocated())
  ------------------
  |  Branch (488:13): [True: 131k, False: 320k]
  ------------------
  489|   131k|        {
  490|   131k|            allocated_.destroy(get_allocator());
  491|   131k|            allocated_.~allocated_storage();
  492|   131k|        }
  493|   320k|        else
  494|   320k|        {
  495|   320k|            inlined_.~inlined_storage();
  496|   320k|        }
  497|   451k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  246|   131k|        {
  247|   131k|            if (data_ != nullptr)
  ------------------
  |  Branch (247:17): [True: 131k, False: 0]
  ------------------
  248|   131k|            {
  249|   131k|                real_allocator_type alloc(a);
  250|   131k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  251|   131k|            }
  252|   131k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  62.9k|        : storage_(n, alloc)
  694|  62.9k|    {
  695|  62.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  62.9k|        : word_allocator_type(alloc)
  361|  62.9k|    {
  362|  62.9k|        ::new (&inlined_) inlined_storage(n);
  363|  62.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  62.9k|            : is_allocated_(false),
  126|  62.9k|            is_negative_(n < 0),
  127|  62.9k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 33.8k, False: 29.0k]
  ------------------
  128|  62.9k|        {
  129|  62.9k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 12.0k, False: 50.8k]
  ------------------
  130|  62.9k|            values_[1] = 0;
  131|  62.9k|        }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEEl:
 1481|  31.4k|    {
 1482|  31.4k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1482:15): [True: 12.0k, False: 19.4k]
  ------------------
 1483|  31.4k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IjEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  12.0k|        : storage_(n, alloc)
  694|  12.0k|    {
  695|  12.0k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IjEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  12.0k|        : word_allocator_type(alloc)
  361|  12.0k|    {
  362|  12.0k|        ::new (&inlined_) inlined_storage(n);
  363|  12.0k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IjEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  12.0k|            : is_allocated_(false),
  139|  12.0k|            is_negative_(false),
  140|  12.0k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 1.61k, False: 10.4k]
  ------------------
  141|  12.0k|        {
  142|  12.0k|            values_[0] = n;
  143|  12.0k|            values_[1] = 0;
  144|  12.0k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  954|  12.0k|    {
  955|  12.0k|        auto y_view = y.get_storage_view();
  956|       |
  957|  12.0k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (957:14): [True: 12.0k, False: 0]
  ------------------
  958|  12.0k|            return *this += -y;
  959|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (959:15): [True: 0, False: 0]
  |  Branch (959:33): [True: 0, False: 0]
  |  Branch (959:48): [True: 0, False: 0]
  |  Branch (959:65): [True: 0, False: 0]
  ------------------
  960|      0|            return *this = -(y - *this);
  961|      0|        word_type borrow = 0;
  962|      0|        word_type d;
  963|      0|        auto this_view = get_storage_view();
  964|      0|        const size_type this_size = this_view.size();
  965|      0|        const size_type y_size = y_view.size();
  966|       |
  967|      0|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (967:31): [True: 0, False: 0]
  ------------------
  968|      0|        {
  969|      0|            d = this_view[i] - borrow;
  970|      0|            borrow = d > this_view[i];
  971|      0|            this_view[i] = d - y_view[i];
  972|      0|            if ( this_view[i] > d )
  ------------------
  |  Branch (972:18): [True: 0, False: 0]
  ------------------
  973|      0|                borrow = 1;
  974|      0|        }
  975|      0|        for (size_type i = y_size; i < this_size && borrow != 0; i++ )
  ------------------
  |  Branch (975:36): [True: 0, False: 0]
  |  Branch (975:53): [True: 0, False: 0]
  ------------------
  976|      0|        {
  977|      0|            d = this_view[i] - borrow;
  978|      0|            borrow = d > this_view[i];
  979|      0|            this_view[i] = d;
  980|      0|        }
  981|      0|        reduce();
  982|      0|        return *this;
  983|      0|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  920|  12.0k|    {
  921|  12.0k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (921:14): [True: 0, False: 12.0k]
  ------------------
  922|      0|            return *this -= -y;
  923|       |
  924|  12.0k|        auto y_view = y.get_storage_view();
  925|       |        
  926|  12.0k|        word_type d;
  927|  12.0k|        word_type carry = 0;
  928|       |
  929|  12.0k|        auto this_view = get_storage_view();
  930|  12.0k|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  931|  12.0k|        this_view = get_storage_view();
  932|       |
  933|  12.0k|        const size_t this_size = this_view.size();
  934|  12.0k|        const size_t y_size = y_view.size();
  935|  22.4k|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (935:31): [True: 10.4k, False: 12.0k]
  ------------------
  936|  10.4k|        {
  937|  10.4k|            d = this_view[i] + carry;
  938|  10.4k|            carry = d < carry;
  939|  10.4k|            this_view[i] = d + y_view[i];
  940|  10.4k|            if (this_view[i] < d)
  ------------------
  |  Branch (940:17): [True: 892, False: 9.52k]
  ------------------
  941|    892|                carry = 1;
  942|  10.4k|        }
  943|  12.9k|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (943:36): [True: 12.1k, False: 762]
  |  Branch (943:53): [True: 892, False: 11.2k]
  ------------------
  944|    892|        {
  945|    892|            d = this_view[i] + carry;
  946|    892|            carry = d < carry;
  947|    892|            this_view[i] = d;
  948|    892|        }
  949|  12.0k|        reduce();
  950|  12.0k|        return *this;
  951|  12.0k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLIjEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  889|  19.4k|    {
  890|  19.4k|        if ( is_negative())
  ------------------
  |  Branch (890:14): [True: 0, False: 19.4k]
  ------------------
  891|      0|            return *this -= -basic_bigint<Allocator>(y);
  892|       |
  893|  19.4k|        word_type d;
  894|  19.4k|        word_type carry = 0;
  895|       |
  896|  19.4k|        auto this_view = get_storage_view();
  897|  19.4k|        resize(this_view.size() + 1);
  898|       |
  899|  19.4k|        this_view = get_storage_view();
  900|  19.4k|        const size_type this_size = this_view.size();
  901|  19.4k|        size_type y_size = 1;
  902|       |
  903|  19.4k|        d = this_view[0] + carry;
  904|  19.4k|        carry = d < carry;
  905|  19.4k|        this_view[0] = d + y;
  906|  19.4k|        if (this_view[0] < d)
  ------------------
  |  Branch (906:13): [True: 8.91k, False: 10.5k]
  ------------------
  907|  8.91k|            carry = 1;
  908|       |
  909|  28.3k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (909:36): [True: 25.9k, False: 2.41k]
  |  Branch (909:53): [True: 8.91k, False: 17.0k]
  ------------------
  910|  8.91k|        {
  911|  8.91k|            d = this_view[i] + carry;
  912|  8.91k|            carry = d < carry;
  913|  8.91k|            this_view[i] = d;
  914|  8.91k|        }
  915|  19.4k|        reduce();
  916|  19.4k|        return *this;
  917|  19.4k|    }

_ZN8jsoncons6binary13big_to_nativeIfNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  92.2k|    {
  183|  92.2k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 92.2k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  92.2k|        T val;
  188|  92.2k|        std::memcpy(&val,first,sizeof(T));
  189|  92.2k|        return byte_swap(val);
  190|  92.2k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|  92.2k|    {
   65|  92.2k|        uint32_t x;
   66|  92.2k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|  92.2k|        uint32_t y = byte_swap(x);
   68|  92.2k|        T val2;
   69|  92.2k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|  92.2k|        return val2;
   71|  92.2k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   239k|    {
   40|   239k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   239k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|   239k|#  define JSONCONS_BYTE_SWAP_32 __builtin_bswap32
  ------------------
   42|       |    #else
   43|       |        uint32_t tmp = ((static_cast<uint32_t>(val) << 8) & 0xff00ff00) | ((static_cast<uint32_t>(val) >> 8) & 0xff00ff);
   44|       |        return (tmp << 16) | (tmp >> 16);
   45|       |    #endif
   46|   239k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  13.6k|    {
  183|  13.6k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 13.6k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  13.6k|        T val;
  188|  13.6k|        std::memcpy(&val,first,sizeof(T));
  189|  13.6k|        return byte_swap(val);
  190|  13.6k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|  13.6k|    {
   77|  13.6k|        uint64_t x;
   78|  13.6k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|  13.6k|        uint64_t y = byte_swap(x);
   80|  13.6k|        T val2;
   81|  13.6k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|  13.6k|        return val2;
   83|  13.6k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  24.5k|    {
   52|  24.5k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  24.5k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  24.5k|#  define JSONCONS_BYTE_SWAP_64 __builtin_bswap64
  ------------------
   54|       |    #else
   55|       |        uint64_t tmp = ((static_cast<uint64_t>(val) & 0x00000000ffffffffull) << 32) | ((static_cast<uint64_t>(val) & 0xffffffff00000000ull) >> 32);
   56|       |        tmp = ((tmp & 0x0000ffff0000ffffull) << 16) | ((tmp & 0xffff0000ffff0000ull) >> 16);
   57|       |        return ((tmp & 0x00ff00ff00ff00ffull) << 8)  | ((tmp & 0xff00ff00ff00ff00ull) >> 8);
   58|       |    #endif
   59|  24.5k|    }
_ZN8jsoncons6binary13big_to_nativeItNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   218k|    {
  183|   218k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 218k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   218k|        T val;
  188|   218k|        std::memcpy(&val,first,sizeof(T));
  189|   218k|        return byte_swap(val);
  190|   218k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|   218k|    {
   29|   218k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|   218k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|   218k|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|   218k|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   147k|    {
  183|   147k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 147k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   147k|        T val;
  188|   147k|        std::memcpy(&val,first,sizeof(T));
  189|   147k|        return byte_swap(val);
  190|   147k|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  10.9k|    {
  183|  10.9k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 10.9k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  10.9k|        T val;
  188|  10.9k|        std::memcpy(&val,first,sizeof(T));
  189|  10.9k|        return byte_swap(val);
  190|  10.9k|    }
_ZN8jsoncons6binary13big_to_nativeIaNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   833k|    {
  183|   833k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 833k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   833k|        T val;
  188|   833k|        std::memcpy(&val,first,sizeof(T));
  189|   833k|        return byte_swap(val);
  190|   833k|    }
_ZN8jsoncons6binary9byte_swapIaEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|   833k|    {
   22|   833k|        return val;
   23|   833k|    }
_ZN8jsoncons6binary13big_to_nativeIsNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  2.25k|    {
  183|  2.25k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 2.25k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  2.25k|        T val;
  188|  2.25k|        std::memcpy(&val,first,sizeof(T));
  189|  2.25k|        return byte_swap(val);
  190|  2.25k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  2.25k|    {
   29|  2.25k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  2.25k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  2.25k|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|  2.25k|    }
_ZN8jsoncons6binary13big_to_nativeIiNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  4.27k|    {
  183|  4.27k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 4.27k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  4.27k|        T val;
  188|  4.27k|        std::memcpy(&val,first,sizeof(T));
  189|  4.27k|        return byte_swap(val);
  190|  4.27k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  4.27k|    {
   40|  4.27k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  4.27k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  4.27k|#  define JSONCONS_BYTE_SWAP_32 __builtin_bswap32
  ------------------
   42|       |    #else
   43|       |        uint32_t tmp = ((static_cast<uint32_t>(val) << 8) & 0xff00ff00) | ((static_cast<uint32_t>(val) >> 8) & 0xff00ff);
   44|       |        return (tmp << 16) | (tmp >> 16);
   45|       |    #endif
   46|  4.27k|    }
_ZN8jsoncons6binary13big_to_nativeIlNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  35.9k|    {
  183|  35.9k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 35.9k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  35.9k|        T val;
  188|  35.9k|        std::memcpy(&val,first,sizeof(T));
  189|  35.9k|        return byte_swap(val);
  190|  35.9k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  35.9k|    {
   52|  35.9k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  35.9k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  35.9k|#  define JSONCONS_BYTE_SWAP_64 __builtin_bswap64
  ------------------
   54|       |    #else
   55|       |        uint64_t tmp = ((static_cast<uint64_t>(val) & 0x00000000ffffffffull) << 32) | ((static_cast<uint64_t>(val) & 0xffffffff00000000ull) >> 32);
   56|       |        tmp = ((tmp & 0x0000ffff0000ffffull) << 16) | ((tmp & 0xffff0000ffff0000ull) >> 16);
   57|       |        return ((tmp & 0x00ff00ff00ff00ffull) << 8)  | ((tmp & 0xff00ff00ff00ff00ull) >> 8);
   58|       |    #endif
   59|  35.9k|    }
_ZN8jsoncons6binary13big_to_nativeIhNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  52.7k|    {
  183|  52.7k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 52.7k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  52.7k|        T val;
  188|  52.7k|        std::memcpy(&val,first,sizeof(T));
  189|  52.7k|        return byte_swap(val);
  190|  52.7k|    }
_ZN8jsoncons6binary9byte_swapIhEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  52.7k|    {
   22|  52.7k|        return val;
   23|  52.7k|    }

_ZN8jsoncons6detail23bytes_to_base64_genericIPKhNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS4_9enable_ifIXsr3std7is_sameINS4_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESD_SD_PKcRT0_:
   44|   588k|    {
   45|   588k|        std::size_t count = 0;
   46|   588k|        unsigned char a3[3];
   47|   588k|        unsigned char a4[4];
   48|   588k|        unsigned char fill = alphabet[64];
   49|   588k|        int i = 0;
   50|   588k|        int j = 0;
   51|       |
   52|  9.48M|        while (first != last)
  ------------------
  |  Branch (52:16): [True: 8.89M, False: 588k]
  ------------------
   53|  8.89M|        {
   54|  8.89M|            a3[i++] = *first++;
   55|  8.89M|            if (i == 3)
  ------------------
  |  Branch (55:17): [True: 2.59M, False: 6.29M]
  ------------------
   56|  2.59M|            {
   57|  2.59M|                a4[0] = (a3[0] & 0xfc) >> 2;
   58|  2.59M|                a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   59|  2.59M|                a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   60|  2.59M|                a4[3] = a3[2] & 0x3f;
   61|       |
   62|  12.9M|                for (i = 0; i < 4; i++) 
  ------------------
  |  Branch (62:29): [True: 10.3M, False: 2.59M]
  ------------------
   63|  10.3M|                {
   64|  10.3M|                    result.push_back(alphabet[a4[i]]);
   65|  10.3M|                    ++count;
   66|  10.3M|                }
   67|  2.59M|                i = 0;
   68|  2.59M|            }
   69|  8.89M|        }
   70|       |
   71|   588k|        if (i > 0)
  ------------------
  |  Branch (71:13): [True: 565k, False: 23.6k]
  ------------------
   72|   565k|        {
   73|  1.15M|            for (j = i; j < 3; ++j) 
  ------------------
  |  Branch (73:25): [True: 586k, False: 565k]
  ------------------
   74|   586k|            {
   75|   586k|                a3[j] = 0;
   76|   586k|            }
   77|       |
   78|   565k|            a4[0] = (a3[0] & 0xfc) >> 2;
   79|   565k|            a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   80|   565k|            a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   81|       |
   82|  2.23M|            for (j = 0; j < i + 1; ++j) 
  ------------------
  |  Branch (82:25): [True: 1.67M, False: 565k]
  ------------------
   83|  1.67M|            {
   84|  1.67M|                result.push_back(alphabet[a4[j]]);
   85|  1.67M|                ++count;
   86|  1.67M|            }
   87|       |
   88|   565k|            if (fill != 0)
  ------------------
  |  Branch (88:17): [True: 0, False: 565k]
  ------------------
   89|      0|            {
   90|      0|                while (i++ < 3) 
  ------------------
  |  Branch (90:24): [True: 0, False: 0]
  ------------------
   91|      0|                {
   92|      0|                    result.push_back(fill);
   93|      0|                    ++count;
   94|      0|                }
   95|      0|            }
   96|   565k|        }
   97|       |
   98|   588k|        return count;
   99|   588k|    }
_ZNK8jsoncons16byte_string_view5beginEv:
  409|   588k|        {
  410|   588k|            return data_;
  411|   588k|        }
_ZNK8jsoncons16byte_string_view3endEv:
  413|   588k|        {
  414|   588k|            return data_ + size_;
  415|   588k|        }
_ZN8jsoncons18bytes_to_base64urlIPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  177|   588k|    {
  178|   588k|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  179|   588k|                                                      "abcdefghijklmnopqrstuvwxyz"
  180|   588k|                                                      "0123456789-_"
  181|   588k|                                                      "\0";
  182|   588k|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  183|   588k|    }
_ZNK8jsoncons16byte_string_view4dataEv:
  399|   596k|        {
  400|   596k|            return data_;
  401|   596k|        }
_ZNK8jsoncons16byte_string_view4sizeEv:
  403|   596k|        {
  404|   596k|            return size_;
  405|   596k|        }
_ZN8jsoncons16byte_string_viewC2EPKhm:
  362|  1.18M|            : data_(data), size_(length)
  363|  1.18M|        {
  364|  1.18M|        }

_ZN8jsoncons10ext_traits16to_plain_pointerImEEPT_S3_:
  241|   104k|    {       
  242|   104k|        return (ptr);
  243|   104k|    }  

_ZN8jsoncons16decstr_to_doubleEPKcmRd:
  866|  5.69k|{
  867|  5.69k|    const char* cur = s+length;
  868|  5.69k|    char *end = nullptr;
  869|  5.69k|    val = strtod(s, &end);
  870|  5.69k|    const char* str_end = end;
  871|  5.69k|    if (JSONCONS_UNLIKELY(end < cur))
  ------------------
  |  |   78|  5.69k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5.69k]
  |  |  ------------------
  ------------------
  872|      0|    {
  873|      0|        if (*end == '.')
  ------------------
  |  Branch (873:13): [True: 0, False: 0]
  ------------------
  874|      0|        {
  875|      0|            std::string buf{s, length};
  876|      0|            char* dot_ptr = &buf[0] + (cur - end - 1);
  877|      0|            *dot_ptr = ',';
  878|      0|            end = nullptr;
  879|      0|            val = strtod(buf.c_str(), &end);
  880|      0|            str_end = s + (end - &buf[0]);
  881|      0|        }
  882|      0|        if (JSONCONS_UNLIKELY(str_end != cur))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  883|      0|        {
  884|      0|            return to_number_result<char>{str_end,std::errc::invalid_argument};
  885|      0|        }
  886|      0|    }
  887|  5.69k|    if (JSONCONS_UNLIKELY(val <= -HUGE_VAL || val >= HUGE_VAL))
  ------------------
  |  |   78|  11.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5.69k]
  |  |  |  Branch (78:50): [True: 0, False: 5.69k]
  |  |  |  Branch (78:50): [True: 0, False: 5.69k]
  |  |  ------------------
  ------------------
  888|      0|    {
  889|      0|        return to_number_result<char>{str_end, std::errc::result_out_of_range};
  890|      0|    }
  891|  5.69k|    return to_number_result<char>{str_end};
  892|  5.69k|}
_ZN8jsoncons16to_number_resultIcEC2EPKc:
  137|  5.69k|        : ptr(ptr_), ec(std::errc{})
  138|  5.69k|    {
  139|  5.69k|    }

_ZN8jsoncons14unicode_traits8validateIhEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|  5.05M|    {
 1148|  5.05M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|  5.05M|        const uint8_t* end = it + length;
 1150|       |
 1151|  5.05M|        unicode_errc  result{};
 1152|  5.13M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 81.1k, False: 5.05M]
  ------------------
 1153|  81.1k|        {
 1154|  81.1k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 72.1k, False: 8.97k]
  ------------------
 1155|  72.1k|            {
 1156|   490k|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|   144k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 71.2k, False: 968]
  |  |  |  Branch (281:34): [True: 70.7k, False: 433]
  |  |  |  Branch (281:36): [True: 70.3k, False: 385]
  |  |  |  Branch (281:38): [True: 69.8k, False: 540]
  |  |  |  Branch (281:40): [True: 69.5k, False: 265]
  |  |  |  Branch (281:42): [True: 69.3k, False: 253]
  |  |  |  Branch (281:44): [True: 69.1k, False: 209]
  |  |  |  Branch (281:46): [True: 68.9k, False: 207]
  |  |  ------------------
  ------------------
 1157|  68.9k|                continue;
 1158|   490k|            }
 1159|  12.2k|    non_ascii:
 1160|  12.2k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  12.2k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 35, False: 12.1k]
  ------------------
 1162|     35|            {
 1163|     35|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     35|            }
 1165|  12.1k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 176, False: 12.0k]
  ------------------
 1166|    176|            {
 1167|    176|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    176|            }
 1169|  12.0k|            it += len;
 1170|  12.0k|        }
 1171|  5.05M|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|  5.05M|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  12.1k|    {
  306|  12.1k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  12.1k|        const uint8_t* end = it+length;
  308|       |
  309|  12.1k|        uint8_t byte;
  310|  12.1k|        switch (length) {
  311|     17|        default:
  ------------------
  |  Branch (311:9): [True: 17, False: 12.1k]
  ------------------
  312|     17|            return unicode_errc::over_long_utf8_sequence;
  313|    472|        case 4:
  ------------------
  |  Branch (313:9): [True: 472, False: 11.7k]
  ------------------
  314|    472|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 10, False: 462]
  ------------------
  315|     10|                return unicode_errc::bad_continuation_byte;
  316|    462|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    462|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  1.12k|        case 3:
  ------------------
  |  Branch (317:9): [True: 663, False: 11.5k]
  ------------------
  318|  1.12k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 12, False: 1.11k]
  ------------------
  319|     12|                return unicode_errc::bad_continuation_byte;
  320|  1.11k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.11k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  3.77k|        case 2:
  ------------------
  |  Branch (321:9): [True: 2.65k, False: 9.53k]
  ------------------
  322|  3.77k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 45, False: 3.72k]
  ------------------
  323|     45|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  3.72k|            switch (*it) 
  326|  3.72k|            {
  327|       |                // no fall-through in this inner switch
  328|    207|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 207, False: 3.52k]
  |  Branch (328:32): [True: 7, False: 200]
  ------------------
  329|    442|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 442, False: 3.28k]
  |  Branch (329:32): [True: 1, False: 441]
  ------------------
  330|    441|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 206, False: 3.52k]
  |  Branch (330:32): [True: 5, False: 201]
  ------------------
  331|    237|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 237, False: 3.49k]
  |  Branch (331:32): [True: 4, False: 233]
  ------------------
  332|  2.63k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 2.63k, False: 1.09k]
  |  Branch (332:32): [True: 0, False: 2.63k]
  ------------------
  333|  3.72k|            }
  334|       |
  335|  3.71k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  3.71k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  12.0k|        case 1:
  ------------------
  |  Branch (336:9): [True: 8.38k, False: 3.81k]
  ------------------
  337|  12.0k|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 3.77k, False: 8.31k]
  |  Branch (337:32): [True: 74, False: 3.70k]
  ------------------
  338|     74|                return unicode_errc::source_illegal;
  339|  12.0k|            break;
  340|  12.1k|        }
  341|  12.0k|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 1, False: 12.0k]
  ------------------
  342|      1|            return unicode_errc::source_illegal;
  343|       |
  344|  12.0k|        return unicode_errc();
  345|  12.0k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  8.21M|{
   43|  8.21M|    using char_type = typename Result::value_type;
   44|       |
   45|  8.21M|    char_type buf[255];
   46|  8.21M|    char_type *p = buf;
   47|  8.21M|    const char_type* last = buf+255;
   48|       |
   49|  8.21M|    bool is_negative = value < 0;
   50|       |
   51|  8.21M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 8.21M]
  ------------------
   52|      0|    {
   53|      0|        do
   54|      0|        {
   55|      0|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|      0|        }
   57|      0|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 0, False: 0]
  |  Branch (57:33): [True: 0, False: 0]
  ------------------
   58|      0|    }
   59|  8.21M|    else
   60|  8.21M|    {
   61|       |
   62|  8.21M|        do
   63|  15.5M|        {
   64|  15.5M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  15.5M|        }
   66|  15.5M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 7.33M, False: 8.21M]
  |  Branch (66:33): [True: 7.33M, False: 0]
  ------------------
   67|  8.21M|    }
   68|  8.21M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  8.21M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 8.21M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  8.21M|    std::size_t count = (p - buf);
   71|  8.21M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 8.21M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  23.7M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 15.5M, False: 8.21M]
  ------------------
   77|  15.5M|    {
   78|  15.5M|        result.push_back(*p);
   79|  15.5M|    }
   80|       |
   81|  8.21M|    return count;
   82|  8.21M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  4.00M|{
   43|  4.00M|    using char_type = typename Result::value_type;
   44|       |
   45|  4.00M|    char_type buf[255];
   46|  4.00M|    char_type *p = buf;
   47|  4.00M|    const char_type* last = buf+255;
   48|       |
   49|  4.00M|    bool is_negative = value < 0;
   50|       |
   51|  4.00M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 3.99M, False: 4.82k]
  ------------------
   52|  3.99M|    {
   53|  3.99M|        do
   54|  4.41M|        {
   55|  4.41M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  4.41M|        }
   57|  4.41M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 417k, False: 3.99M]
  |  Branch (57:33): [True: 417k, False: 0]
  ------------------
   58|  3.99M|    }
   59|  4.82k|    else
   60|  4.82k|    {
   61|       |
   62|  4.82k|        do
   63|  34.7k|        {
   64|  34.7k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  34.7k|        }
   66|  34.7k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 29.8k, False: 4.82k]
  |  Branch (66:33): [True: 29.8k, False: 0]
  ------------------
   67|  4.82k|    }
   68|  4.00M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  4.00M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 4.00M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  4.00M|    std::size_t count = (p - buf);
   71|  4.00M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 3.99M, False: 4.82k]
  ------------------
   72|  3.99M|    {
   73|  3.99M|        result.push_back('-');
   74|  3.99M|        ++count;
   75|  3.99M|    }
   76|  8.44M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 4.44M, False: 4.00M]
  ------------------
   77|  4.44M|    {
   78|  4.44M|        result.push_back(*p);
   79|  4.44M|    }
   80|       |
   81|  4.00M|    return count;
   82|  4.00M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|   102k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|   102k|    {
  489|   102k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|   102k|        struct lconv *lc = localeconv();
  491|   102k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 102k, False: 0]
  |  Branch (491:30): [True: 102k, False: 0]
  ------------------
  492|   102k|        {
  493|   102k|            decimal_point_ = lc->decimal_point[0];
  494|   102k|        }
  495|   102k|#endif
  496|   102k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|   102k|    {
  504|   102k|        std::size_t count = 0;
  505|       |
  506|   102k|        char number_buffer[200];
  507|   102k|        int length = 0;
  508|       |
  509|   102k|        switch (float_format_)
  510|   102k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 102k]
  ------------------
  512|      0|            {
  513|      0|                if (precision_ > 0)
  ------------------
  |  Branch (513:21): [True: 0, False: 0]
  ------------------
  514|      0|                {
  515|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*f", precision_, val);
  516|      0|                    if (length < 0)
  ------------------
  |  Branch (516:25): [True: 0, False: 0]
  ------------------
  517|      0|                    {
  518|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  519|      0|                    }
  520|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  521|      0|                }
  522|      0|                else
  523|      0|                {
  524|      0|                    if (!dtoa_fixed(val, decimal_point_, result))
  ------------------
  |  Branch (524:25): [True: 0, False: 0]
  ------------------
  525|      0|                    {
  526|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  527|      0|                    }
  528|      0|                }
  529|      0|            }
  530|      0|            break;
  531|      0|        case float_chars_format::scientific:
  ------------------
  |  Branch (531:9): [True: 0, False: 102k]
  ------------------
  532|      0|            {
  533|      0|                if (precision_ > 0)
  ------------------
  |  Branch (533:21): [True: 0, False: 0]
  ------------------
  534|      0|                {
  535|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*e", precision_, val);
  536|      0|                    if (length < 0)
  ------------------
  |  Branch (536:25): [True: 0, False: 0]
  ------------------
  537|      0|                    {
  538|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  539|      0|                    }
  540|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  541|      0|                }
  542|      0|                else
  543|      0|                {
  544|      0|                    if (!dtoa_scientific(val, decimal_point_, result))
  ------------------
  |  Branch (544:25): [True: 0, False: 0]
  ------------------
  545|      0|                    {
  546|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  547|      0|                    }
  548|      0|                }
  549|      0|            }
  550|      0|            break;
  551|   102k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 102k, False: 0]
  ------------------
  552|   102k|            {
  553|   102k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 102k]
  ------------------
  554|      0|                {
  555|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*g", precision_, val);
  556|      0|                    if (length < 0)
  ------------------
  |  Branch (556:25): [True: 0, False: 0]
  ------------------
  557|      0|                    {
  558|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  559|      0|                    }
  560|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  561|      0|                }
  562|   102k|                else
  563|   102k|                {
  564|   102k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 102k]
  ------------------
  565|      0|                    {
  566|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  567|      0|                    }
  568|   102k|                }             
  569|   102k|                break;
  570|   102k|            }
  571|   102k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 102k]
  ------------------
  572|      0|                JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  573|      0|                break;
  574|   102k|        }
  575|   102k|        return count;
  576|   102k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  5.69k|{
  244|  5.69k|    const char *sbeg = buffer;
  245|  5.69k|    const char *send = sbeg + length;
  246|       |
  247|  5.69k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 5.69k, False: 0]
  ------------------
  248|  5.69k|    {
  249|  5.69k|        bool needs_dot = true;
  250|   110k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 104k, False: 5.69k]
  ------------------
  251|   104k|        {
  252|   104k|            switch (*q)
  253|   104k|            {
  254|  5.20k|            case '-':
  ------------------
  |  Branch (254:13): [True: 5.20k, False: 99.3k]
  ------------------
  255|  16.6k|            case '0':
  ------------------
  |  Branch (255:13): [True: 11.4k, False: 93.1k]
  ------------------
  256|  25.4k|            case '1':
  ------------------
  |  Branch (256:13): [True: 8.86k, False: 95.7k]
  ------------------
  257|  35.0k|            case '2':
  ------------------
  |  Branch (257:13): [True: 9.62k, False: 94.9k]
  ------------------
  258|  41.9k|            case '3':
  ------------------
  |  Branch (258:13): [True: 6.86k, False: 97.7k]
  ------------------
  259|  48.3k|            case '4':
  ------------------
  |  Branch (259:13): [True: 6.37k, False: 98.2k]
  ------------------
  260|  57.7k|            case '5':
  ------------------
  |  Branch (260:13): [True: 9.42k, False: 95.1k]
  ------------------
  261|  67.5k|            case '6':
  ------------------
  |  Branch (261:13): [True: 9.82k, False: 94.7k]
  ------------------
  262|  77.7k|            case '7':
  ------------------
  |  Branch (262:13): [True: 10.1k, False: 94.4k]
  ------------------
  263|  86.7k|            case '8':
  ------------------
  |  Branch (263:13): [True: 9.01k, False: 95.5k]
  ------------------
  264|  92.0k|            case '9':
  ------------------
  |  Branch (264:13): [True: 5.32k, False: 99.2k]
  ------------------
  265|  94.0k|            case '+':
  ------------------
  |  Branch (265:13): [True: 1.95k, False: 102k]
  ------------------
  266|  94.0k|                result.push_back(*q);
  267|  94.0k|                break;
  268|  3.28k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 3.28k, False: 101k]
  ------------------
  269|  3.28k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 104k]
  ------------------
  270|  3.28k|                result.push_back('e');
  271|  3.28k|                needs_dot = false;
  272|  3.28k|                break;
  273|  7.26k|            default:
  ------------------
  |  Branch (273:13): [True: 7.26k, False: 97.3k]
  ------------------
  274|  7.26k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 4.67k, False: 2.58k]
  ------------------
  275|  4.67k|                {
  276|  4.67k|                    needs_dot = false;
  277|  4.67k|                    result.push_back('.');
  278|  4.67k|                }
  279|  7.26k|                break;
  280|   104k|            }
  281|   104k|        }
  282|  5.69k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 1.02k, False: 4.67k]
  ------------------
  283|  1.02k|        {
  284|  1.02k|            result.push_back('.');
  285|  1.02k|            result.push_back('0');
  286|  1.02k|        }
  287|  5.69k|    }
  288|  5.69k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKciiiiRT_:
  171|  95.7k|{
  172|  95.7k|    int nb_digits = length;
  173|  95.7k|    int offset;
  174|       |    /* v = buffer * 10^k
  175|       |       kk is such that 10^(kk-1) <= v < 10^kk
  176|       |       this way kk gives the position of the decimal point.
  177|       |    */
  178|  95.7k|    int kk = nb_digits + k;
  179|       |
  180|  95.7k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 42.3k, False: 53.4k]
  |  Branch (180:28): [True: 37.8k, False: 4.44k]
  ------------------
  181|  37.8k|    {
  182|       |        /* the first digits are already in. Add some 0s and call it a day. */
  183|       |        /* the max_exp is a personal choice. Only 16 digits could possibly be relevant.
  184|       |         * Basically we want to print 12340000000 rather than 1234.0e7 or 1.234e10 */
  185|   298k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 260k, False: 37.8k]
  ------------------
  186|   260k|        {
  187|   260k|            result.push_back(buffer[i]);
  188|   260k|        }
  189|  59.9k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 22.0k, False: 37.8k]
  ------------------
  190|  22.0k|        {
  191|  22.0k|            result.push_back('0');
  192|  22.0k|        }
  193|  37.8k|        result.push_back('.');
  194|  37.8k|        result.push_back('0');
  195|  37.8k|    } 
  196|  57.8k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 33.7k, False: 24.1k]
  |  Branch (196:24): [True: 29.2k, False: 4.44k]
  ------------------
  197|  29.2k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|   137k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 108k, False: 29.2k]
  ------------------
  200|   108k|        {
  201|   108k|            result.push_back(buffer[i]);
  202|   108k|        }
  203|  29.2k|        result.push_back('.');
  204|   340k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 310k, False: 29.2k]
  ------------------
  205|   310k|        {
  206|   310k|            result.push_back(buffer[i]);
  207|   310k|        }
  208|  29.2k|    } 
  209|  28.6k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 7.43k, False: 21.1k]
  |  Branch (209:30): [True: 2.98k, False: 4.44k]
  ------------------
  210|  2.98k|    {
  211|  2.98k|        offset = 2 - kk;
  212|       |
  213|  2.98k|        result.push_back('0');
  214|  2.98k|        result.push_back('.');
  215|  7.77k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 4.78k, False: 2.98k]
  ------------------
  216|  4.78k|            result.push_back('0');
  217|  46.7k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 43.7k, False: 2.98k]
  ------------------
  218|  43.7k|        {
  219|  43.7k|            result.push_back(buffer[i]);
  220|  43.7k|        }
  221|  2.98k|    } 
  222|  25.6k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 3.30k, False: 22.3k]
  ------------------
  223|  3.30k|    {
  224|  3.30k|        result.push_back(buffer[0]);
  225|  3.30k|        result.push_back('e');
  226|  3.30k|        fill_exponent(kk - 1, result);
  227|  3.30k|    } 
  228|  22.3k|    else
  229|  22.3k|    {
  230|  22.3k|        result.push_back(buffer[0]);
  231|  22.3k|        result.push_back('.');
  232|   327k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 304k, False: 22.3k]
  ------------------
  233|   304k|        {
  234|   304k|            result.push_back(buffer[i]);
  235|   304k|        }
  236|  22.3k|        result.push_back('e');
  237|  22.3k|        fill_exponent(kk - 1, result);
  238|  22.3k|    }
  239|  95.7k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  25.6k|{
  137|  25.6k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 21.1k, False: 4.44k]
  ------------------
  138|  21.1k|    {
  139|  21.1k|        result.push_back('-');
  140|  21.1k|        K = -K;
  141|  21.1k|    }
  142|  4.44k|    else
  143|  4.44k|    {
  144|  4.44k|        result.push_back('+'); // compatibility with sprintf
  145|  4.44k|    }
  146|       |
  147|  25.6k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 1.60k, False: 24.0k]
  ------------------
  148|  1.60k|    {
  149|  1.60k|        result.push_back('0'); // compatibility with sprintf
  150|  1.60k|        result.push_back((char)('0' + K));
  151|  1.60k|    }
  152|  24.0k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 12.1k, False: 11.8k]
  ------------------
  153|  12.1k|    {
  154|  12.1k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  12.1k|        result.push_back((char)('0' + K));
  156|  12.1k|    }
  157|  11.8k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 11.8k, False: 0]
  ------------------
  158|  11.8k|    {
  159|  11.8k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  11.8k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  11.8k|        result.push_back((char)('0' + K));
  162|  11.8k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  25.6k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|   102k|{
  476|   102k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|   102k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|   102k|{
  367|   102k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 1.20k, False: 101k]
  ------------------
  368|  1.20k|    {
  369|  1.20k|        result.push_back('0');
  370|  1.20k|        result.push_back('.');
  371|  1.20k|        result.push_back('0');
  372|  1.20k|        return true;
  373|  1.20k|    }
  374|       |
  375|   101k|    int length = 0;
  376|   101k|    int k;
  377|       |
  378|   101k|    char buffer[100];
  379|       |
  380|   101k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 78.3k, False: 23.1k]
  ------------------
  381|   101k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 95.7k, False: 5.69k]
  ------------------
  382|  95.7k|    {
  383|  95.7k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 74.4k, False: 21.3k]
  ------------------
  384|  74.4k|        {
  385|  74.4k|            result.push_back('-');
  386|  74.4k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  95.7k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  95.7k|        return true;
  391|  95.7k|    }
  392|  5.69k|    else
  393|  5.69k|    {
  394|  5.69k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  5.69k|    }
  396|   101k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  5.69k|{
  330|  5.69k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 5.69k]
  ------------------
  331|      0|    {
  332|      0|        result.push_back('0');
  333|      0|        result.push_back('.');
  334|      0|        result.push_back('0');
  335|      0|        return true;
  336|      0|    }
  337|       |
  338|  5.69k|    char buffer[100];
  339|  5.69k|    int precision = std::numeric_limits<double>::digits10;
  340|  5.69k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  5.69k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 5.69k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  5.69k|    double x{0};
  346|  5.69k|    auto res = decstr_to_double(buffer, length, x);
  347|  5.69k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 5.69k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  5.69k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 4.83k, False: 867]
  ------------------
  352|  4.83k|    {
  353|  4.83k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  4.83k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  4.83k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 4.83k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  4.83k|    }
  360|  5.69k|    dump_buffer(buffer, length, decimal_point, result);
  361|  5.69k|    return true;
  362|  5.69k|}

_ZN8jsoncons7msgpack15make_error_codeENS0_12msgpack_errcE:
   82|  3.80k|{
   83|  3.80k|    return std::error_code(static_cast<int>(e),msgpack_error_category());
   84|  3.80k|}
_ZN8jsoncons7msgpack22msgpack_error_categoryEv:
   75|  3.80k|{
   76|  3.80k|  static msgpack_error_category_impl instance;
   77|  3.80k|  return instance;
   78|  3.80k|}

_ZN8jsoncons7msgpack22msgpack_decode_optionsC1Ev:
   40|  4.74k|    msgpack_decode_options() = default;
_ZN8jsoncons7msgpack22msgpack_options_commonC2Ev:
   23|  4.74k|    msgpack_options_common() = default;
_ZN8jsoncons7msgpack22msgpack_options_commonD2Ev:
   26|  4.74k|    virtual ~msgpack_options_common() = default;
_ZNK8jsoncons7msgpack22msgpack_options_common17max_nesting_depthEv:
   31|  4.74k|    {
   32|  4.74k|        return max_nesting_depth_;
   33|  4.74k|    }

_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RKNS0_22msgpack_decode_optionsERKS7_:
   86|  4.74k|       : source_(std::forward<Sourceable>(source)),
   87|  4.74k|         max_nesting_depth_(options.max_nesting_depth()),
   88|  4.74k|         text_buffer_(alloc),
   89|  4.74k|         bytes_buffer_(alloc),
   90|  4.74k|         state_stack_(alloc)
   91|  4.74k|    {
   92|  4.74k|        state_stack_.emplace_back(parse_mode::root,0);
   93|  4.74k|    }
_ZN8jsoncons7msgpack11parse_stateC2ENS0_10parse_modeEm:
   46|   494k|        : mode(mode), length(length)
   47|   494k|    {
   48|   494k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  101|  4.74k|    {
  102|  4.74k|        more_ = true;
  103|  4.74k|        done_ = false;
  104|  4.74k|        text_buffer_.clear();
  105|  4.74k|        bytes_buffer_.clear();
  106|  4.74k|        state_stack_.clear();
  107|  4.74k|        state_stack_.emplace_back(parse_mode::root,0);
  108|  4.74k|        nesting_depth_ = 0;
  109|  4.74k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  159|  4.74k|    {
  160|  30.8M|        while (!done_ && more_)
  ------------------
  |  Branch (160:16): [True: 30.8M, False: 942]
  |  Branch (160:26): [True: 30.8M, False: 0]
  ------------------
  161|  30.8M|        {
  162|  30.8M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (162:21): [True: 30.8M, False: 0]
  ------------------
  163|  30.8M|            {
  164|  13.7M|                case parse_mode::array:
  ------------------
  |  Branch (164:17): [True: 13.7M, False: 17.1M]
  ------------------
  165|  13.7M|                {
  166|  13.7M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (166:25): [True: 13.4M, False: 229k]
  ------------------
  167|  13.4M|                    {
  168|  13.4M|                        ++state_stack_.back().index;
  169|  13.4M|                        read_item(visitor, ec);
  170|  13.4M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  13.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 827, False: 13.4M]
  |  |  ------------------
  ------------------
  171|    827|                        {
  172|    827|                            return;
  173|    827|                        }
  174|  13.4M|                    }
  175|   229k|                    else
  176|   229k|                    {
  177|   229k|                        end_array(visitor, ec);
  178|   229k|                    }
  179|  13.7M|                    break;
  180|  13.7M|                }
  181|  13.7M|                case parse_mode::map_key:
  ------------------
  |  Branch (181:17): [True: 8.70M, False: 22.1M]
  ------------------
  182|  8.70M|                {
  183|  8.70M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (183:25): [True: 8.50M, False: 196k]
  ------------------
  184|  8.50M|                    {
  185|  8.50M|                        ++state_stack_.back().index;
  186|  8.50M|                        state_stack_.back().mode = parse_mode::map_value;
  187|  8.50M|                        read_item(visitor, ec);
  188|  8.50M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  8.50M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 691, False: 8.50M]
  |  |  ------------------
  ------------------
  189|    691|                        {
  190|    691|                            return;
  191|    691|                        }
  192|  8.50M|                    }
  193|   196k|                    else
  194|   196k|                    {
  195|   196k|                        end_object(visitor, ec);
  196|   196k|                    }
  197|  8.69M|                    break;
  198|  8.70M|                }
  199|  8.69M|                case parse_mode::map_value:
  ------------------
  |  Branch (199:17): [True: 8.48M, False: 22.4M]
  ------------------
  200|  8.48M|                {
  201|  8.48M|                    state_stack_.back().mode = parse_mode::map_key;
  202|  8.48M|                    read_item(visitor, ec);
  203|  8.48M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  8.48M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.83k, False: 8.48M]
  |  |  ------------------
  ------------------
  204|  1.83k|                    {
  205|  1.83k|                        return;
  206|  1.83k|                    }
  207|  8.48M|                    break;
  208|  8.48M|                }
  209|  8.48M|                case parse_mode::root:
  ------------------
  |  Branch (209:17): [True: 4.74k, False: 30.8M]
  ------------------
  210|  4.74k|                {
  211|  4.74k|                    state_stack_.back().mode = parse_mode::accept;
  212|  4.74k|                    read_item(visitor, ec);
  213|  4.74k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  4.74k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 453, False: 4.29k]
  |  |  ------------------
  ------------------
  214|    453|                    {
  215|    453|                        return;
  216|    453|                    }
  217|  4.29k|                    break;
  218|  4.74k|                }
  219|  4.29k|                case parse_mode::accept:
  ------------------
  |  Branch (219:17): [True: 942, False: 30.8M]
  ------------------
  220|    942|                {
  221|    942|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   49|    942|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 942]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  222|    942|                    state_stack_.clear();
  223|    942|                    more_ = false;
  224|    942|                    done_ = true;
  225|    942|                    visitor.flush();
  226|    942|                    break;
  227|    942|                }
  228|  30.8M|            }
  229|  30.8M|        }
  230|  4.74k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  234|  30.4M|    {
  235|  30.4M|        if (source_.is_error())
  ------------------
  |  Branch (235:13): [True: 0, False: 30.4M]
  ------------------
  236|      0|        {
  237|      0|            ec = msgpack_errc::source_error;
  238|      0|            more_ = false;
  239|      0|            return;
  240|      0|        }   
  241|       |
  242|  30.4M|        uint8_t type;
  243|  30.4M|        if (source_.read(&type, 1) == 0)
  ------------------
  |  Branch (243:13): [True: 2.88k, False: 30.4M]
  ------------------
  244|  2.88k|        {
  245|  2.88k|            ec = msgpack_errc::unexpected_eof;
  246|  2.88k|            more_ = false;
  247|  2.88k|            return;
  248|  2.88k|        }
  249|       |
  250|  30.4M|        if (type <= 0xbf)
  ------------------
  |  Branch (250:13): [True: 14.0M, False: 16.3M]
  ------------------
  251|  14.0M|        {
  252|  14.0M|            if (type <= 0x7f) 
  ------------------
  |  Branch (252:17): [True: 8.56M, False: 5.52M]
  ------------------
  253|  8.56M|            {
  254|       |                // positive fixint
  255|  8.56M|                visitor.uint64_value(type, semantic_tag::none, *this, ec);
  256|  8.56M|                more_ = !cursor_mode_;
  257|  8.56M|            }
  258|  5.52M|            else if (type <= 0x8f) 
  ------------------
  |  Branch (258:22): [True: 224k, False: 5.30M]
  ------------------
  259|   224k|            {
  260|   224k|                begin_object(visitor,type,ec); // fixmap
  261|   224k|            }
  262|  5.30M|            else if (type <= 0x9f) 
  ------------------
  |  Branch (262:22): [True: 251k, False: 5.05M]
  ------------------
  263|   251k|            {
  264|   251k|                begin_array(visitor,type,ec); // fixarray
  265|   251k|            }
  266|  5.05M|            else 
  267|  5.05M|            {
  268|       |                // fixstr
  269|  5.05M|                const size_t len = type & 0x1f;
  270|       |
  271|  5.05M|                auto data = source_.read_span(len, bytes_buffer_);
  272|  5.05M|                if (data.size() != static_cast<std::size_t>(len))
  ------------------
  |  Branch (272:21): [True: 33, False: 5.05M]
  ------------------
  273|     33|                {
  274|     33|                    ec = msgpack_errc::unexpected_eof;
  275|     33|                    more_ = false;
  276|     33|                    return;
  277|     33|                }
  278|       |
  279|  5.05M|                auto result = unicode_traits::validate(data.data(), data.size());
  280|  5.05M|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (280:21): [True: 170, False: 5.05M]
  ------------------
  281|    170|                {
  282|    170|                    ec = msgpack_errc::invalid_utf8_text_string;
  283|    170|                    more_ = false;
  284|    170|                    return;
  285|    170|                }
  286|  5.05M|                visitor.string_value(jsoncons::string_view(reinterpret_cast<const char*>(data.data()),data.size()), 
  287|  5.05M|                    semantic_tag::none, *this, ec);
  288|  5.05M|                more_ = !cursor_mode_;
  289|  5.05M|            }
  290|  14.0M|        }
  291|  16.3M|        else if (type >= 0xe0) 
  ------------------
  |  Branch (291:18): [True: 3.80M, False: 12.5M]
  ------------------
  292|  3.80M|        {
  293|       |            // negative fixint
  294|  3.80M|            visitor.int64_value(static_cast<int8_t>(type), semantic_tag::none, *this, ec);
  295|  3.80M|            more_ = !cursor_mode_;
  296|  3.80M|        }
  297|  12.5M|        else
  298|  12.5M|        {
  299|  12.5M|            switch (type)
  300|  12.5M|            {
  301|   120k|                case jsoncons::msgpack::msgpack_type::nil_type: 
  ------------------
  |  Branch (301:17): [True: 120k, False: 12.4M]
  ------------------
  302|   120k|                {
  303|   120k|                    visitor.null_value(semantic_tag::none, *this, ec);
  304|   120k|                    more_ = !cursor_mode_;
  305|   120k|                    break;
  306|      0|                }
  307|  7.72M|                case jsoncons::msgpack::msgpack_type::true_type:
  ------------------
  |  Branch (307:17): [True: 7.72M, False: 4.83M]
  ------------------
  308|  7.72M|                {
  309|  7.72M|                    visitor.bool_value(true, semantic_tag::none, *this, ec);
  310|  7.72M|                    more_ = !cursor_mode_;
  311|  7.72M|                    break;
  312|      0|                }
  313|  3.41M|                case jsoncons::msgpack::msgpack_type::false_type:
  ------------------
  |  Branch (313:17): [True: 3.41M, False: 9.14M]
  ------------------
  314|  3.41M|                {
  315|  3.41M|                    visitor.bool_value(false, semantic_tag::none, *this, ec);
  316|  3.41M|                    more_ = !cursor_mode_;
  317|  3.41M|                    break;
  318|      0|                }
  319|  92.2k|                case jsoncons::msgpack::msgpack_type::float32_type: 
  ------------------
  |  Branch (319:17): [True: 92.2k, False: 12.4M]
  ------------------
  320|  92.2k|                {
  321|  92.2k|                    uint8_t buf[sizeof(float)];
  322|  92.2k|                    if (source_.read(buf, sizeof(float)) != sizeof(float))
  ------------------
  |  Branch (322:25): [True: 7, False: 92.2k]
  ------------------
  323|      7|                    {
  324|      7|                        ec = msgpack_errc::unexpected_eof;
  325|      7|                        more_ = false;
  326|      7|                        return;
  327|      7|                    }
  328|  92.2k|                    float val = binary::big_to_native<float>(buf, sizeof(buf));
  329|  92.2k|                    visitor.double_value(val, semantic_tag::none, *this, ec);
  330|  92.2k|                    more_ = !cursor_mode_;
  331|  92.2k|                    break;
  332|  92.2k|                }
  333|       |
  334|  13.6k|                case jsoncons::msgpack::msgpack_type::float64_type: 
  ------------------
  |  Branch (334:17): [True: 13.6k, False: 12.5M]
  ------------------
  335|  13.6k|                {
  336|  13.6k|                    uint8_t buf[sizeof(double)];
  337|  13.6k|                    if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (337:25): [True: 9, False: 13.6k]
  ------------------
  338|      9|                    {
  339|      9|                        ec = msgpack_errc::unexpected_eof;
  340|      9|                        more_ = false;
  341|      9|                        return;
  342|      9|                    }
  343|  13.6k|                    double val = binary::big_to_native<double>(buf, sizeof(buf));
  344|  13.6k|                    visitor.double_value(val, semantic_tag::none, *this, ec);
  345|  13.6k|                    more_ = !cursor_mode_;
  346|  13.6k|                    break;
  347|  13.6k|                }
  348|       |
  349|  2.48k|                case jsoncons::msgpack::msgpack_type::uint8_type: 
  ------------------
  |  Branch (349:17): [True: 2.48k, False: 12.5M]
  ------------------
  350|  2.48k|                {
  351|  2.48k|                    uint8_t b;
  352|  2.48k|                    if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (352:25): [True: 1, False: 2.48k]
  ------------------
  353|      1|                    {
  354|      1|                        ec = msgpack_errc::unexpected_eof;
  355|      1|                        more_ = false;
  356|      1|                        return;
  357|      1|                    }
  358|  2.48k|                    visitor.uint64_value(b, semantic_tag::none, *this, ec);
  359|  2.48k|                    more_ = !cursor_mode_;
  360|  2.48k|                    break;
  361|  2.48k|                }
  362|       |
  363|   205k|                case jsoncons::msgpack::msgpack_type::uint16_type: 
  ------------------
  |  Branch (363:17): [True: 205k, False: 12.3M]
  ------------------
  364|   205k|                {
  365|   205k|                    uint8_t buf[sizeof(uint16_t)];
  366|   205k|                    if (source_.read(buf, sizeof(uint16_t)) !=sizeof(uint16_t)) 
  ------------------
  |  Branch (366:25): [True: 3, False: 205k]
  ------------------
  367|      3|                    {
  368|      3|                        ec = msgpack_errc::unexpected_eof;
  369|      3|                        more_ = false;
  370|      3|                        return;
  371|      3|                    }
  372|   205k|                    uint16_t val = binary::big_to_native<uint16_t>(buf, sizeof(buf));
  373|   205k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  374|   205k|                    more_ = !cursor_mode_;
  375|   205k|                    break;
  376|   205k|                }
  377|       |
  378|   110k|                case jsoncons::msgpack::msgpack_type::uint32_type: 
  ------------------
  |  Branch (378:17): [True: 110k, False: 12.4M]
  ------------------
  379|   110k|                {
  380|   110k|                    uint8_t buf[sizeof(uint32_t)];
  381|   110k|                    if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (381:25): [True: 4, False: 110k]
  ------------------
  382|      4|                    {
  383|      4|                        ec = msgpack_errc::unexpected_eof;
  384|      4|                        more_ = false;
  385|      4|                        return;
  386|      4|                    }
  387|   110k|                    uint32_t val = binary::big_to_native<uint32_t>(buf, sizeof(buf));
  388|   110k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  389|   110k|                    more_ = !cursor_mode_;
  390|   110k|                    break;
  391|   110k|                }
  392|       |
  393|  2.30k|                case jsoncons::msgpack::msgpack_type::uint64_type: 
  ------------------
  |  Branch (393:17): [True: 2.30k, False: 12.5M]
  ------------------
  394|  2.30k|                {
  395|  2.30k|                    uint8_t buf[sizeof(uint64_t)];
  396|  2.30k|                    if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (396:25): [True: 4, False: 2.30k]
  ------------------
  397|      4|                    {
  398|      4|                        ec = msgpack_errc::unexpected_eof;
  399|      4|                        more_ = false;
  400|      4|                        return;
  401|      4|                    }
  402|  2.30k|                    uint64_t val = binary::big_to_native<uint64_t>(buf, sizeof(buf));
  403|  2.30k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  404|  2.30k|                    more_ = !cursor_mode_;
  405|  2.30k|                    break;
  406|  2.30k|                }
  407|       |
  408|   213k|                case jsoncons::msgpack::msgpack_type::int8_type: 
  ------------------
  |  Branch (408:17): [True: 213k, False: 12.3M]
  ------------------
  409|   213k|                {
  410|   213k|                    uint8_t buf[sizeof(int8_t)];
  411|   213k|                    if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (411:25): [True: 1, False: 213k]
  ------------------
  412|      1|                    {
  413|      1|                        ec = msgpack_errc::unexpected_eof;
  414|      1|                        more_ = false;
  415|      1|                        return;
  416|      1|                    }
  417|   213k|                    int8_t val = binary::big_to_native<int8_t>(buf, sizeof(buf));
  418|   213k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  419|   213k|                    more_ = !cursor_mode_;
  420|   213k|                    break;
  421|   213k|                }
  422|       |
  423|  2.25k|                case jsoncons::msgpack::msgpack_type::int16_type: 
  ------------------
  |  Branch (423:17): [True: 2.25k, False: 12.5M]
  ------------------
  424|  2.25k|                {
  425|  2.25k|                    uint8_t buf[sizeof(int16_t)];
  426|  2.25k|                    if (source_.read(buf, sizeof(int16_t)) != sizeof(int16_t))
  ------------------
  |  Branch (426:25): [True: 2, False: 2.25k]
  ------------------
  427|      2|                    {
  428|      2|                        ec = msgpack_errc::unexpected_eof;
  429|      2|                        more_ = false;
  430|      2|                        return;
  431|      2|                    }
  432|  2.25k|                    int16_t val = binary::big_to_native<int16_t>(buf, sizeof(buf));
  433|  2.25k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  434|  2.25k|                    more_ = !cursor_mode_;
  435|  2.25k|                    break;
  436|  2.25k|                }
  437|       |
  438|  4.27k|                case jsoncons::msgpack::msgpack_type::int32_type: 
  ------------------
  |  Branch (438:17): [True: 4.27k, False: 12.5M]
  ------------------
  439|  4.27k|                {
  440|  4.27k|                    uint8_t buf[sizeof(int32_t)];
  441|  4.27k|                    if (source_.read(buf, sizeof(int32_t)) != sizeof(int32_t))
  ------------------
  |  Branch (441:25): [True: 4, False: 4.27k]
  ------------------
  442|      4|                    {
  443|      4|                        ec = msgpack_errc::unexpected_eof;
  444|      4|                        more_ = false;
  445|      4|                        return;
  446|      4|                    }
  447|  4.27k|                    int32_t val = binary::big_to_native<int32_t>(buf, sizeof(buf));
  448|  4.27k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  449|  4.27k|                    more_ = !cursor_mode_;
  450|  4.27k|                    break;
  451|  4.27k|                }
  452|       |
  453|  4.46k|                case jsoncons::msgpack::msgpack_type::int64_type: 
  ------------------
  |  Branch (453:17): [True: 4.46k, False: 12.5M]
  ------------------
  454|  4.46k|                {
  455|  4.46k|                    uint8_t buf[sizeof(int64_t)];
  456|  4.46k|                    if (source_.read(buf, sizeof(int64_t)) != sizeof(int64_t))
  ------------------
  |  Branch (456:25): [True: 5, False: 4.45k]
  ------------------
  457|      5|                    {
  458|      5|                        ec = msgpack_errc::unexpected_eof;
  459|      5|                        more_ = false;
  460|      5|                        return;
  461|      5|                    }
  462|  4.45k|                    int64_t val = binary::big_to_native<int64_t>(buf, sizeof(buf));
  463|  4.45k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  464|  4.45k|                    more_ = !cursor_mode_;
  465|  4.45k|                    break;
  466|  4.46k|                }
  467|       |
  468|    936|                case jsoncons::msgpack::msgpack_type::str8_type: 
  ------------------
  |  Branch (468:17): [True: 936, False: 12.5M]
  ------------------
  469|  1.47k|                case jsoncons::msgpack::msgpack_type::str16_type: 
  ------------------
  |  Branch (469:17): [True: 540, False: 12.5M]
  ------------------
  470|  1.93k|                case jsoncons::msgpack::msgpack_type::str32_type: 
  ------------------
  |  Branch (470:17): [True: 454, False: 12.5M]
  ------------------
  471|  1.93k|                {
  472|  1.93k|                    std::size_t len = get_size(type, ec);
  473|  1.93k|                    if (!more_)
  ------------------
  |  Branch (473:25): [True: 23, False: 1.90k]
  ------------------
  474|     23|                    {
  475|     23|                        return;
  476|     23|                    }
  477|       |
  478|  1.90k|                    auto data = source_.read_span(len, bytes_buffer_);
  479|  1.90k|                    if (data.size() != static_cast<std::size_t>(len))
  ------------------
  |  Branch (479:25): [True: 122, False: 1.78k]
  ------------------
  480|    122|                    {
  481|    122|                        ec = msgpack_errc::unexpected_eof;
  482|    122|                        more_ = false;
  483|    122|                        return;
  484|    122|                    }
  485|       |
  486|  1.78k|                    auto result = unicode_traits::validate(data.data(), data.size());
  487|  1.78k|                    if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (487:25): [True: 41, False: 1.74k]
  ------------------
  488|     41|                    {
  489|     41|                        ec = msgpack_errc::invalid_utf8_text_string;
  490|     41|                        more_ = false;
  491|     41|                        return;
  492|     41|                    }
  493|  1.74k|                    visitor.string_value(jsoncons::string_view(reinterpret_cast<const char*>(data.data()),data.size()), 
  494|  1.74k|                        semantic_tag::none, *this, ec);
  495|  1.74k|                    more_ = !cursor_mode_;
  496|  1.74k|                    break;
  497|  1.78k|                }
  498|       |
  499|  10.4k|                case jsoncons::msgpack::msgpack_type::bin8_type: 
  ------------------
  |  Branch (499:17): [True: 10.4k, False: 12.5M]
  ------------------
  500|  14.6k|                case jsoncons::msgpack::msgpack_type::bin16_type: 
  ------------------
  |  Branch (500:17): [True: 4.16k, False: 12.5M]
  ------------------
  501|  15.0k|                case jsoncons::msgpack::msgpack_type::bin32_type: 
  ------------------
  |  Branch (501:17): [True: 396, False: 12.5M]
  ------------------
  502|  15.0k|                {
  503|  15.0k|                    std::size_t len = get_size(type,ec);
  504|  15.0k|                    if (!more_)
  ------------------
  |  Branch (504:25): [True: 27, False: 15.0k]
  ------------------
  505|     27|                    {
  506|     27|                        return;
  507|     27|                    }
  508|  15.0k|                    auto data = source_.read_span(len, bytes_buffer_);
  509|  15.0k|                    if (JSONCONS_UNLIKELY(data.size() != static_cast<std::size_t>(len)))
  ------------------
  |  |   78|  15.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 147, False: 14.8k]
  |  |  ------------------
  ------------------
  510|    147|                    {
  511|    147|                        ec = msgpack_errc::unexpected_eof;
  512|    147|                        more_ = false;
  513|    147|                        return;
  514|    147|                    }
  515|       |
  516|  14.8k|                    visitor.byte_string_value(byte_string_view(data.data(),data.size()), 
  517|  14.8k|                        semantic_tag::none, 
  518|  14.8k|                        *this,
  519|  14.8k|                        ec);
  520|  14.8k|                    more_ = !cursor_mode_;
  521|  14.8k|                    break;
  522|  15.0k|                }
  523|  17.8k|                case jsoncons::msgpack::msgpack_type::fixext1_type: 
  ------------------
  |  Branch (523:17): [True: 17.8k, False: 12.5M]
  ------------------
  524|   559k|                case jsoncons::msgpack::msgpack_type::fixext2_type: 
  ------------------
  |  Branch (524:17): [True: 541k, False: 12.0M]
  ------------------
  525|   563k|                case jsoncons::msgpack::msgpack_type::fixext4_type: 
  ------------------
  |  Branch (525:17): [True: 4.10k, False: 12.5M]
  ------------------
  526|   574k|                case jsoncons::msgpack::msgpack_type::fixext8_type: 
  ------------------
  |  Branch (526:17): [True: 11.5k, False: 12.5M]
  ------------------
  527|   576k|                case jsoncons::msgpack::msgpack_type::fixext16_type: 
  ------------------
  |  Branch (527:17): [True: 1.98k, False: 12.5M]
  ------------------
  528|   618k|                case jsoncons::msgpack::msgpack_type::ext8_type: 
  ------------------
  |  Branch (528:17): [True: 41.3k, False: 12.5M]
  ------------------
  529|   618k|                case jsoncons::msgpack::msgpack_type::ext16_type: 
  ------------------
  |  Branch (529:17): [True: 733, False: 12.5M]
  ------------------
  530|   619k|                case jsoncons::msgpack::msgpack_type::ext32_type: 
  ------------------
  |  Branch (530:17): [True: 734, False: 12.5M]
  ------------------
  531|   619k|                {
  532|   619k|                    std::size_t len = get_size(type,ec);
  533|   619k|                    if (!more_)
  ------------------
  |  Branch (533:25): [True: 31, False: 619k]
  ------------------
  534|     31|                    {
  535|     31|                        return;
  536|     31|                    }
  537|       |
  538|       |                    // type
  539|   619k|                    uint8_t buf[sizeof(int8_t)];
  540|   619k|                    if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (540:25): [True: 47, False: 619k]
  ------------------
  541|     47|                    {
  542|     47|                        ec = msgpack_errc::unexpected_eof;
  543|     47|                        more_ = false;
  544|     47|                        return;
  545|     47|                    }
  546|       |
  547|   619k|                    int8_t ext_type = binary::big_to_native<int8_t>(buf, sizeof(buf));
  548|       |
  549|   619k|                    bool is_timestamp = false; 
  550|   619k|                    if (ext_type == -1)
  ------------------
  |  Branch (550:25): [True: 42.7k, False: 576k]
  ------------------
  551|  42.7k|                    {
  552|  42.7k|                        is_timestamp = true;;
  553|  42.7k|                    }
  554|       |
  555|       |                    // payload
  556|   619k|                    if (is_timestamp && len == 4)
  ------------------
  |  Branch (556:25): [True: 42.7k, False: 576k]
  |  Branch (556:41): [True: 1.38k, False: 41.3k]
  ------------------
  557|  1.38k|                    {
  558|  1.38k|                        uint8_t buf32[sizeof(uint32_t)];
  559|  1.38k|                        if (source_.read(buf32, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (559:29): [True: 3, False: 1.38k]
  ------------------
  560|      3|                        {
  561|      3|                            ec = msgpack_errc::unexpected_eof;
  562|      3|                            more_ = false;
  563|      3|                            return;
  564|      3|                        }
  565|  1.38k|                        uint32_t val = binary::big_to_native<uint32_t>(buf32, sizeof(buf32));
  566|  1.38k|                        visitor.uint64_value(val, semantic_tag::epoch_second, *this, ec);
  567|  1.38k|                        more_ = !cursor_mode_;
  568|  1.38k|                    }
  569|   618k|                    else if (is_timestamp && len == 8)
  ------------------
  |  Branch (569:30): [True: 41.3k, False: 576k]
  |  Branch (569:46): [True: 8.63k, False: 32.7k]
  ------------------
  570|  8.63k|                    {
  571|  8.63k|                        uint8_t buf64[sizeof(uint64_t)];
  572|  8.63k|                        if (source_.read(buf64, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (572:29): [True: 7, False: 8.62k]
  ------------------
  573|      7|                        {
  574|      7|                            ec = msgpack_errc::unexpected_eof;
  575|      7|                            more_ = false;
  576|      7|                            return;
  577|      7|                        }
  578|  8.62k|                        uint64_t data64 = binary::big_to_native<uint64_t>(buf64, sizeof(buf64));
  579|  8.62k|                        uint64_t sec = data64 & 0x00000003ffffffffL;
  580|  8.62k|                        uint64_t nsec = data64 >> 34;
  581|       |
  582|  8.62k|                        bigint nano(sec);
  583|  8.62k|                        nano *= uint64_t(nanos_in_second);
  584|  8.62k|                        nano += nsec;
  585|  8.62k|                        text_buffer_.clear();
  586|  8.62k|                        nano.write_string(text_buffer_);
  587|  8.62k|                        visitor.string_value(text_buffer_, semantic_tag::epoch_nano, *this, ec);
  588|  8.62k|                        more_ = !cursor_mode_;
  589|  8.62k|                        if (!more_) return;
  ------------------
  |  Branch (589:29): [True: 0, False: 8.62k]
  ------------------
  590|  8.62k|                    }
  591|   609k|                    else if (is_timestamp && len == 12)
  ------------------
  |  Branch (591:30): [True: 32.7k, False: 576k]
  |  Branch (591:46): [True: 31.4k, False: 1.24k]
  ------------------
  592|  31.4k|                    {
  593|  31.4k|                        uint8_t buf1[sizeof(uint32_t)];
  594|  31.4k|                        if (source_.read(buf1, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (594:29): [True: 5, False: 31.4k]
  ------------------
  595|      5|                        {
  596|      5|                            ec = msgpack_errc::unexpected_eof;
  597|      5|                            more_ = false;
  598|      5|                            return;
  599|      5|                        }
  600|  31.4k|                        uint32_t nsec = binary::big_to_native<uint32_t>(buf1, sizeof(buf1));
  601|       |
  602|  31.4k|                        uint8_t buf2[sizeof(int64_t)];
  603|  31.4k|                        if (source_.read(buf2, sizeof(int64_t)) != sizeof(int64_t))
  ------------------
  |  Branch (603:29): [True: 3, False: 31.4k]
  ------------------
  604|      3|                        {
  605|      3|                            ec = msgpack_errc::unexpected_eof;
  606|      3|                            more_ = false;
  607|      3|                            return;
  608|      3|                        }
  609|  31.4k|                        int64_t sec = binary::big_to_native<int64_t>(buf2, sizeof(buf2));
  610|       |
  611|  31.4k|                        bigint nano(sec);
  612|       |
  613|  31.4k|                        nano *= uint64_t(nanos_in_second);
  614|       |
  615|  31.4k|                        if (nano < 0)
  ------------------
  |  Branch (615:29): [True: 12.0k, False: 19.4k]
  ------------------
  616|  12.0k|                        {
  617|  12.0k|                            nano -= nsec;
  618|  12.0k|                        }
  619|  19.4k|                        else
  620|  19.4k|                        {
  621|  19.4k|                            nano += nsec;
  622|  19.4k|                        }
  623|       |
  624|  31.4k|                        text_buffer_.clear();
  625|  31.4k|                        nano.write_string(text_buffer_);
  626|  31.4k|                        visitor.string_value(text_buffer_, semantic_tag::epoch_nano, *this, ec);
  627|  31.4k|                        more_ = !cursor_mode_;
  628|  31.4k|                        if (!more_) return;
  ------------------
  |  Branch (628:29): [True: 0, False: 31.4k]
  ------------------
  629|  31.4k|                    }
  630|   578k|                    else
  631|   578k|                    {
  632|   578k|                        auto data = source_.read_span(len, bytes_buffer_);
  633|   578k|                        if (JSONCONS_UNLIKELY(data.size() != static_cast<std::size_t>(len)))
  ------------------
  |  |   78|   578k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 171, False: 577k]
  |  |  ------------------
  ------------------
  634|    171|                        {
  635|    171|                            ec = msgpack_errc::unexpected_eof;
  636|    171|                            more_ = false;
  637|    171|                            return;
  638|    171|                        }
  639|       |
  640|   577k|                        visitor.byte_string_value(byte_string_view(data.data(),data.size()), 
  641|   577k|                                                          static_cast<uint8_t>(ext_type), 
  642|   577k|                                                          *this,
  643|   577k|                                                          ec);
  644|   577k|                        more_ = !cursor_mode_;
  645|   577k|                    }
  646|   619k|                    break;
  647|   619k|                }
  648|       |
  649|   619k|                case jsoncons::msgpack::msgpack_type::array16_type: 
  ------------------
  |  Branch (649:17): [True: 4.64k, False: 12.5M]
  ------------------
  650|  5.59k|                case jsoncons::msgpack::msgpack_type::array32_type: 
  ------------------
  |  Branch (650:17): [True: 951, False: 12.5M]
  ------------------
  651|  5.59k|                {
  652|  5.59k|                    begin_array(visitor,type,ec);
  653|  5.59k|                    break;
  654|  4.64k|                }
  655|       |
  656|  2.33k|                case jsoncons::msgpack::msgpack_type::map16_type : 
  ------------------
  |  Branch (656:17): [True: 2.33k, False: 12.5M]
  ------------------
  657|  3.63k|                case jsoncons::msgpack::msgpack_type::map32_type : 
  ------------------
  |  Branch (657:17): [True: 1.29k, False: 12.5M]
  ------------------
  658|  3.63k|                {
  659|  3.63k|                    begin_object(visitor, type, ec);
  660|  3.63k|                    break;
  661|  2.33k|                }
  662|       |
  663|      3|                default:
  ------------------
  |  Branch (663:17): [True: 3, False: 12.5M]
  ------------------
  664|      3|                {
  665|      3|                    ec = msgpack_errc::unknown_type;
  666|      3|                    more_ = false;
  667|      3|                    return;
  668|  2.33k|                }
  669|  12.5M|            }
  670|  12.5M|        }
  671|  30.4M|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectERNS_21basic_generic_visitorIcEEhRNS3_10error_codeE:
  701|   227k|    {
  702|   227k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|   227k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 227k]
  |  |  ------------------
  ------------------
  703|      2|        {
  704|      2|            ec = msgpack_errc::max_nesting_depth_exceeded;
  705|      2|            more_ = false;
  706|      2|            return;
  707|      2|        } 
  708|   227k|        std::size_t length = get_size(type, ec);
  709|   227k|        if (!more_)
  ------------------
  |  Branch (709:13): [True: 20, False: 227k]
  ------------------
  710|     20|        {
  711|     20|            return;
  712|     20|        }
  713|   227k|        state_stack_.emplace_back(parse_mode::map_key,length);
  714|   227k|        visitor.begin_object(length, semantic_tag::none, *this, ec);
  715|   227k|        more_ = !cursor_mode_;
  716|   227k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayERNS_21basic_generic_visitorIcEEhRNS3_10error_codeE:
  674|   257k|    {
  675|   257k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|   257k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5, False: 257k]
  |  |  ------------------
  ------------------
  676|      5|        {
  677|      5|            ec = msgpack_errc::max_nesting_depth_exceeded;
  678|      5|            more_ = false;
  679|      5|            return;
  680|      5|        } 
  681|   257k|        std::size_t length = get_size(type, ec);
  682|   257k|        if (!more_)
  ------------------
  |  Branch (682:13): [True: 18, False: 257k]
  ------------------
  683|     18|        {
  684|     18|            return;
  685|     18|        }
  686|   257k|        state_stack_.emplace_back(parse_mode::array,length);
  687|   257k|        visitor.begin_array(length, semantic_tag::none, *this, ec);
  688|   257k|        more_ = !cursor_mode_;
  689|   257k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE8get_sizeEhRNS3_10error_codeE:
  727|  1.12M|    {
  728|  1.12M|        switch (type)
  729|  1.12M|        {
  730|    936|            case jsoncons::msgpack::msgpack_type::str8_type: 
  ------------------
  |  Branch (730:13): [True: 936, False: 1.12M]
  ------------------
  731|  11.4k|            case jsoncons::msgpack::msgpack_type::bin8_type: 
  ------------------
  |  Branch (731:13): [True: 10.4k, False: 1.11M]
  ------------------
  732|  52.7k|            case jsoncons::msgpack::msgpack_type::ext8_type: 
  ------------------
  |  Branch (732:13): [True: 41.3k, False: 1.08M]
  ------------------
  733|  52.7k|            {
  734|  52.7k|                uint8_t buf[sizeof(int8_t)];
  735|  52.7k|                if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (735:21): [True: 29, False: 52.7k]
  ------------------
  736|     29|                {
  737|     29|                    ec = msgpack_errc::unexpected_eof;
  738|     29|                    more_ = false;
  739|     29|                    return 0;
  740|     29|                }
  741|  52.7k|                uint8_t len = binary::big_to_native<uint8_t>(buf, sizeof(buf));
  742|  52.7k|                return static_cast<std::size_t>(len);
  743|  52.7k|            }
  744|       |
  745|    540|            case jsoncons::msgpack::msgpack_type::str16_type: 
  ------------------
  |  Branch (745:13): [True: 540, False: 1.12M]
  ------------------
  746|  4.70k|            case jsoncons::msgpack::msgpack_type::bin16_type: 
  ------------------
  |  Branch (746:13): [True: 4.16k, False: 1.11M]
  ------------------
  747|  5.44k|            case jsoncons::msgpack::msgpack_type::ext16_type: 
  ------------------
  |  Branch (747:13): [True: 733, False: 1.12M]
  ------------------
  748|  10.0k|            case jsoncons::msgpack::msgpack_type::array16_type: 
  ------------------
  |  Branch (748:13): [True: 4.64k, False: 1.11M]
  ------------------
  749|  12.4k|            case jsoncons::msgpack::msgpack_type::map16_type:
  ------------------
  |  Branch (749:13): [True: 2.33k, False: 1.11M]
  ------------------
  750|  12.4k|            {
  751|  12.4k|                uint8_t buf[sizeof(int16_t)];
  752|  12.4k|                if (source_.read(buf, sizeof(int16_t)) != sizeof(int16_t))
  ------------------
  |  Branch (752:21): [True: 45, False: 12.3k]
  ------------------
  753|     45|                {
  754|     45|                    ec = msgpack_errc::unexpected_eof;
  755|     45|                    more_ = false;
  756|     45|                    return 0;
  757|     45|                }
  758|  12.3k|                uint16_t len = binary::big_to_native<uint16_t>(buf, sizeof(buf));
  759|  12.3k|                return static_cast<std::size_t>(len);
  760|  12.4k|            }
  761|       |
  762|    454|            case jsoncons::msgpack::msgpack_type::str32_type: 
  ------------------
  |  Branch (762:13): [True: 454, False: 1.12M]
  ------------------
  763|    850|            case jsoncons::msgpack::msgpack_type::bin32_type: 
  ------------------
  |  Branch (763:13): [True: 396, False: 1.12M]
  ------------------
  764|  1.58k|            case jsoncons::msgpack::msgpack_type::ext32_type: 
  ------------------
  |  Branch (764:13): [True: 734, False: 1.12M]
  ------------------
  765|  2.53k|            case jsoncons::msgpack::msgpack_type::array32_type: 
  ------------------
  |  Branch (765:13): [True: 951, False: 1.12M]
  ------------------
  766|  3.83k|            case jsoncons::msgpack::msgpack_type::map32_type : 
  ------------------
  |  Branch (766:13): [True: 1.29k, False: 1.12M]
  ------------------
  767|  3.83k|            {
  768|  3.83k|                uint8_t buf[sizeof(int32_t)];
  769|  3.83k|                if (source_.read(buf, sizeof(int32_t)) != sizeof(int32_t))
  ------------------
  |  Branch (769:21): [True: 45, False: 3.78k]
  ------------------
  770|     45|                {
  771|     45|                    ec = msgpack_errc::unexpected_eof;
  772|     45|                    more_ = false;
  773|     45|                    return 0;
  774|     45|                }
  775|  3.78k|                uint32_t len = binary::big_to_native<uint32_t>(buf, sizeof(buf));
  776|  3.78k|                return static_cast<std::size_t>(len);
  777|  3.83k|            }
  778|  17.8k|            case jsoncons::msgpack::msgpack_type::fixext1_type: 
  ------------------
  |  Branch (778:13): [True: 17.8k, False: 1.10M]
  ------------------
  779|  17.8k|                return 1;
  780|   541k|            case jsoncons::msgpack::msgpack_type::fixext2_type: 
  ------------------
  |  Branch (780:13): [True: 541k, False: 580k]
  ------------------
  781|   541k|                return 2;
  782|  4.10k|            case jsoncons::msgpack::msgpack_type::fixext4_type: 
  ------------------
  |  Branch (782:13): [True: 4.10k, False: 1.11M]
  ------------------
  783|  4.10k|                return 4;
  784|  11.5k|            case jsoncons::msgpack::msgpack_type::fixext8_type: 
  ------------------
  |  Branch (784:13): [True: 11.5k, False: 1.11M]
  ------------------
  785|  11.5k|                return 8;
  786|  1.98k|            case jsoncons::msgpack::msgpack_type::fixext16_type: 
  ------------------
  |  Branch (786:13): [True: 1.98k, False: 1.11M]
  ------------------
  787|  1.98k|                return 16;
  788|   475k|            default:
  ------------------
  |  Branch (788:13): [True: 475k, False: 645k]
  ------------------
  789|   475k|                if ((type > 0x8f && type <= 0x9f) // fixarray
  ------------------
  |  Branch (789:22): [True: 251k, False: 224k]
  |  Branch (789:37): [True: 251k, False: 0]
  ------------------
  790|   224k|                    || (type > 0x7f && type <= 0x8f) // fixmap
  ------------------
  |  Branch (790:25): [True: 224k, False: 0]
  |  Branch (790:40): [True: 224k, False: 0]
  ------------------
  791|   475k|        )
  792|   475k|                {
  793|   475k|                    return type & 0x0f;
  794|   475k|                }
  795|      0|                else
  796|      0|                {
  797|      0|                    ec = msgpack_errc::unknown_type;
  798|      0|                    more_ = false;
  799|      0|                    return 0;
  800|      0|                }
  801|      0|                break;
  802|  1.12M|        }
  803|  1.12M|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  692|   229k|    {
  693|   229k|        --nesting_depth_;
  694|       |
  695|   229k|        visitor.end_array(*this, ec);
  696|   229k|        more_ = !cursor_mode_;
  697|   229k|        state_stack_.pop_back();
  698|   229k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  719|   196k|    {
  720|   196k|        --nesting_depth_;
  721|   196k|        visitor.end_object(*this, ec);
  722|   196k|        more_ = !cursor_mode_;
  723|   196k|        state_stack_.pop_back();
  724|   196k|    }

_ZN8jsoncons7msgpack20basic_msgpack_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RNS_18basic_json_visitorIcEERKNS0_22msgpack_decode_optionsERKS7_:
   51|  4.74k|       : parser_(std::forward<Sourceable>(source), options, alloc),
   52|  4.74k|         adaptor_(visitor, alloc), visitor_(adaptor_)
   53|  4.74k|    {
   54|  4.74k|    }
_ZN8jsoncons7msgpack20basic_msgpack_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4readERNS3_10error_codeE:
   87|  4.74k|    {
   88|  4.74k|        parser_.reset();
   89|  4.74k|        parser_.parse(visitor_, ec);
   90|  4.74k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  4.74k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3.80k, False: 942]
  |  |  ------------------
  ------------------
   91|  3.80k|        {
   92|  3.80k|            return;
   93|  3.80k|        }
   94|  4.74k|    }

