LLVMFuzzerTestOneInput:
   11|  6.42k|{
   12|  6.42k|    std::string s(reinterpret_cast<const char*>(data), size);
   13|  6.42k|    std::istringstream is(s);
   14|  6.42k|    std::vector<uint8_t> s1;
   15|  6.42k|    msgpack_bytes_encoder encoder(s1);
   16|  6.42k|    msgpack_stream_reader reader(is, encoder);
   17|       |
   18|  6.42k|    std::error_code ec;
   19|  6.42k|    reader.read(ec);
   20|       |
   21|  6.42k|    return 0;
   22|  6.42k|}

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

_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4sizeEv:
  116|  4.47M|        {
  117|  4.47M|            return size_;
  118|  4.47M|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2Ev:
   58|   803k|        {
   59|   803k|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|  1.05M|            : data_(data), size_(size)
   62|  1.05M|        {
   63|  1.05M|        }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4dataEv:
  111|  2.61M|        {
  112|  2.61M|            return data_;
  113|  2.61M|        }

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|   789k|        {
 1009|   789k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 51.0k, False: 738k]
  ------------------
 1010|  51.0k|            {
 1011|  51.0k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 46.4k, False: 4.58k]
  |  Branch (1011:86): [True: 43.9k, False: 2.55k]
  ------------------
 1012|  43.9k|                {
 1013|  43.9k|                    key_buffer_.push_back(',');
 1014|  43.9k|                }
 1015|  51.0k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|  51.0k|                key_buffer_.push_back('[');
 1017|  51.0k|            }
 1018|   738k|            else
 1019|   738k|            {
 1020|   738k|                switch (level_stack_.back().target_kind())
 1021|   738k|                {
 1022|   613k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 613k, False: 125k]
  ------------------
 1023|   613k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 567k, False: 45.4k]
  |  Branch (1023:65): [True: 400k, False: 167k]
  ------------------
 1024|   400k|                        {
 1025|   400k|                            key_buffer_.push_back(',');
 1026|   400k|                        }
 1027|   613k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|   613k|                        key_buffer_.push_back('[');
 1029|   613k|                        break;
 1030|   125k|                    default:
  ------------------
  |  Branch (1030:21): [True: 125k, False: 613k]
  ------------------
 1031|   125k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|   125k|                        destination_->begin_array(length, tag, context, ec);
 1033|   125k|                        break;
 1034|   738k|                }
 1035|   738k|            }
 1036|   789k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   789k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|   789k|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|   129M|            {
  816|   129M|                return even_odd_ == 0;
  817|   129M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|  78.9M|            {
  826|  78.9M|                return target_kind_;
  827|  78.9M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  32.8M|            {
  831|  32.8M|                return count_;
  832|  32.8M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|  1.10M|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 314k, False: 795k]
  ------------------
  799|  1.10M|            {
  800|  1.10M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|  76.4M|            {
  821|  76.4M|                return structure_kind_ == json_structure_kind::object;
  822|  76.4M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|   753k|        {
 1041|   753k|            switch (level_stack_.back().target_kind())
 1042|   753k|            {
 1043|   643k|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 643k, False: 110k]
  ------------------
 1044|   643k|                    key_buffer_.push_back(']');
 1045|   643k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   643k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 643k]
  |  |  ------------------
  |  |   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|   643k|                    level_stack_.pop_back();
 1047|   643k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 4.00k, False: 639k]
  ------------------
 1048|  4.00k|                    {
 1049|  4.00k|                        destination_->key(key_buffer_, context, ec);
 1050|  4.00k|                        key_buffer_.clear();
 1051|  4.00k|                    }
 1052|   639k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 45.0k, False: 594k]
  ------------------
 1053|  45.0k|                    {
 1054|  45.0k|                        key_buffer_.push_back(':');
 1055|  45.0k|                    }
 1056|   643k|                    level_stack_.back().advance();
 1057|   643k|                    break;
 1058|   110k|                default:
  ------------------
  |  Branch (1058:17): [True: 110k, False: 643k]
  ------------------
 1059|   110k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   110k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 110k]
  |  |  ------------------
  |  |   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|   110k|                    level_stack_.pop_back();
 1061|   110k|                    level_stack_.back().advance();
 1062|   110k|                    destination_->end_array(context, ec);
 1063|   110k|                    break;
 1064|   753k|            }
 1065|   753k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   753k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|   753k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|  43.5M|            {
  804|  43.5M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 35.0M, False: 8.56M]
  ------------------
  805|  35.0M|                {
  806|  35.0M|                    ++count_;
  807|  35.0M|                }
  808|  43.5M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 17.1M, False: 26.4M]
  ------------------
  809|  17.1M|                {
  810|  17.1M|                    even_odd_ = !even_odd_;
  811|  17.1M|                }
  812|  43.5M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  12.5M|        {
 1234|  12.5M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 3.91M, False: 8.68M]
  |  Branch (1234:49): [True: 7.83M, False: 845k]
  ------------------
 1235|  11.7M|            {
 1236|  11.7M|                key_.clear();
 1237|  11.7M|                jsoncons::from_integer(value,key_);
 1238|  11.7M|            }
 1239|       |
 1240|  12.5M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 3.91M, False: 8.68M]
  ------------------
 1241|  3.91M|            {
 1242|  3.91M|                switch (level_stack_.back().target_kind())
 1243|  3.91M|                {
 1244|  3.79M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 3.79M, False: 118k]
  ------------------
 1245|  3.79M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 3.77M, False: 22.9k]
  ------------------
 1246|  3.77M|                        {
 1247|  3.77M|                            key_buffer_.push_back(',');
 1248|  3.77M|                        }
 1249|  3.79M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  3.79M|                        key_buffer_.push_back(':');
 1251|  3.79M|                        break;
 1252|   118k|                    default:
  ------------------
  |  Branch (1252:21): [True: 118k, False: 3.79M]
  ------------------
 1253|   118k|                        destination_->key(key_, context, ec);
 1254|   118k|                        break;
 1255|  3.91M|                }
 1256|  3.91M|            }
 1257|  8.68M|            else
 1258|  8.68M|            {
 1259|  8.68M|                switch (level_stack_.back().target_kind())
 1260|  8.68M|                {
 1261|  7.83M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 7.83M, False: 845k]
  ------------------
 1262|  7.83M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 4.04M, False: 3.79M]
  |  Branch (1262:65): [True: 4.03M, False: 8.08k]
  ------------------
 1263|  4.03M|                        {
 1264|  4.03M|                            key_buffer_.push_back(',');
 1265|  4.03M|                        }
 1266|  7.83M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  7.83M|                        break;
 1268|   845k|                    default:
  ------------------
  |  Branch (1268:21): [True: 845k, False: 7.83M]
  ------------------
 1269|   845k|                        destination_->uint64_value(value, tag, context, ec);
 1270|   845k|                        break;
 1271|  8.68M|                }
 1272|  8.68M|            }
 1273|       |
 1274|  12.5M|            level_stack_.back().advance();
 1275|  12.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  12.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  12.5M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  3.04M|        {
 1280|  3.04M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 862k, False: 2.18M]
  |  Branch (1280:49): [True: 1.98M, False: 201k]
  ------------------
 1281|  2.84M|            {
 1282|  2.84M|                key_.clear();
 1283|  2.84M|                jsoncons::from_integer(value,key_);
 1284|  2.84M|            }
 1285|       |
 1286|  3.04M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 862k, False: 2.18M]
  ------------------
 1287|   862k|            {
 1288|   862k|                switch (level_stack_.back().target_kind())
 1289|   862k|                {
 1290|   831k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 831k, False: 30.5k]
  ------------------
 1291|   831k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 823k, False: 8.09k]
  ------------------
 1292|   823k|                        {
 1293|   823k|                            key_buffer_.push_back(',');
 1294|   823k|                        }
 1295|   831k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|   831k|                        key_buffer_.push_back(':');
 1297|   831k|                        break;
 1298|  30.5k|                    default:
  ------------------
  |  Branch (1298:21): [True: 30.5k, False: 831k]
  ------------------
 1299|  30.5k|                        destination_->key(key_, context, ec);
 1300|  30.5k|                        break;
 1301|   862k|                }
 1302|   862k|            }
 1303|  2.18M|            else
 1304|  2.18M|            {
 1305|  2.18M|                switch (level_stack_.back().target_kind())
 1306|  2.18M|                {
 1307|  1.98M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 1.98M, False: 201k]
  ------------------
 1308|  1.98M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 1.14M, False: 837k]
  |  Branch (1308:65): [True: 1.13M, False: 5.58k]
  ------------------
 1309|  1.13M|                        {
 1310|  1.13M|                            key_buffer_.push_back(',');
 1311|  1.13M|                        }
 1312|  1.98M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  1.98M|                        break;
 1314|   201k|                    default:
  ------------------
  |  Branch (1314:21): [True: 201k, False: 1.98M]
  ------------------
 1315|   201k|                        destination_->int64_value(value, tag, context, ec);
 1316|   201k|                        break;
 1317|  2.18M|                }
 1318|  2.18M|            }
 1319|       |
 1320|  3.04M|            level_stack_.back().advance();
 1321|  3.04M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.04M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  3.04M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|   185k|        {
 1375|   185k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 51.3k, False: 134k]
  |  Branch (1375:49): [True: 46.2k, False: 88.1k]
  ------------------
 1376|  97.5k|            {
 1377|  97.5k|                key_.clear();
 1378|  97.5k|                string_sink<string_type> sink(key_);
 1379|  97.5k|                jsoncons::write_double f{float_chars_format::general,0};
 1380|  97.5k|                f(value, sink);
 1381|  97.5k|            }
 1382|       |
 1383|   185k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 51.3k, False: 134k]
  ------------------
 1384|  51.3k|            {
 1385|  51.3k|                switch (level_stack_.back().target_kind())
 1386|  51.3k|                {
 1387|  25.6k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 25.6k, False: 25.6k]
  ------------------
 1388|  25.6k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 18.0k, False: 7.58k]
  ------------------
 1389|  18.0k|                        {
 1390|  18.0k|                            key_buffer_.push_back(',');
 1391|  18.0k|                        }
 1392|  25.6k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|  25.6k|                        key_buffer_.push_back(':');
 1394|  25.6k|                        break;
 1395|  25.6k|                    default:
  ------------------
  |  Branch (1395:21): [True: 25.6k, False: 25.6k]
  ------------------
 1396|  25.6k|                        destination_->key(key_, context, ec);
 1397|  25.6k|                        break;
 1398|  51.3k|                }
 1399|  51.3k|            }
 1400|   134k|            else
 1401|   134k|            {
 1402|   134k|                switch (level_stack_.back().target_kind())
 1403|   134k|                {
 1404|  46.2k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 46.2k, False: 88.1k]
  ------------------
 1405|  46.2k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 29.9k, False: 16.3k]
  |  Branch (1405:65): [True: 28.0k, False: 1.94k]
  ------------------
 1406|  28.0k|                        {
 1407|  28.0k|                            key_buffer_.push_back(',');
 1408|  28.0k|                        }
 1409|  46.2k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|  46.2k|                        break;
 1411|  88.1k|                    default:
  ------------------
  |  Branch (1411:21): [True: 88.1k, False: 46.2k]
  ------------------
 1412|  88.1k|                        destination_->double_value(value, tag, context, ec);
 1413|  88.1k|                        break;
 1414|   134k|                }
 1415|   134k|            }
 1416|       |
 1417|   185k|            level_stack_.back().advance();
 1418|   185k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   185k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|   185k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|  1.58k|        {
  882|  1.58k|            destination_->flush();
  883|  1.58k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|   314k|        {
  915|   314k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 105k, False: 208k]
  ------------------
  916|   105k|            {
  917|   105k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 100k, False: 4.85k]
  |  Branch (917:86): [True: 69.9k, False: 30.4k]
  ------------------
  918|  69.9k|                {
  919|  69.9k|                    key_buffer_.push_back(',');
  920|  69.9k|                }
  921|   105k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|   105k|                key_buffer_.push_back('{');
  923|   105k|            }
  924|   208k|            else
  925|   208k|            {
  926|   208k|                switch (level_stack_.back().target_kind())
  927|   208k|                {
  928|   184k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 184k, False: 24.2k]
  ------------------
  929|   184k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 95.4k, False: 89.2k]
  |  Branch (929:65): [True: 92.6k, False: 2.76k]
  ------------------
  930|  92.6k|                        {
  931|  92.6k|                            key_buffer_.push_back(',');
  932|  92.6k|                        }
  933|   184k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|   184k|                        key_buffer_.push_back('{');
  935|   184k|                        break;
  936|  24.2k|                    default:
  ------------------
  |  Branch (936:21): [True: 24.2k, False: 184k]
  ------------------
  937|  24.2k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  24.2k|                        destination_->begin_object(length, tag, context, ec);
  939|  24.2k|                        break;
  940|   208k|                }
  941|   208k|            }
  942|   314k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   314k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|   314k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|   289k|        {
  947|   289k|            switch (level_stack_.back().target_kind())
  948|   289k|            {
  949|   273k|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 273k, False: 15.5k]
  ------------------
  950|   273k|                    key_buffer_.push_back('}');
  951|   273k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   273k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 273k]
  |  |  ------------------
  |  |   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|   273k|                    level_stack_.pop_back();
  953|       |                    
  954|   273k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 3.98k, False: 269k]
  ------------------
  955|  3.98k|                    {
  956|  3.98k|                        destination_->key(key_buffer_,context, ec);
  957|  3.98k|                        key_buffer_.clear();
  958|  3.98k|                    }
  959|   269k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 94.7k, False: 175k]
  ------------------
  960|  94.7k|                    {
  961|  94.7k|                        key_buffer_.push_back(':');
  962|  94.7k|                    }
  963|   273k|                    level_stack_.back().advance();
  964|   273k|                    break;
  965|  15.5k|                default:
  ------------------
  |  Branch (965:17): [True: 15.5k, False: 273k]
  ------------------
  966|  15.5k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|  15.5k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 15.5k]
  |  |  ------------------
  |  |   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|  15.5k|                    level_stack_.pop_back();
  968|  15.5k|                    level_stack_.back().advance();
  969|  15.5k|                    destination_->end_object(context, ec);
  970|  15.5k|                    break;
  971|   289k|            }
  972|   289k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   289k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|   289k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|   930k|        {
 1476|   930k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 417k, False: 513k]
  |  Branch (1476:49): [True: 504k, False: 8.91k]
  ------------------
 1477|   921k|            {
 1478|   921k|                key_.clear(); 
 1479|   921k|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|   921k|            }
 1481|       |
 1482|   930k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 417k, False: 513k]
  ------------------
 1483|   417k|            {
 1484|   417k|                switch (level_stack_.back().target_kind())
 1485|   417k|                {
 1486|   416k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 416k, False: 1.06k]
  ------------------
 1487|   416k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 410k, False: 5.77k]
  ------------------
 1488|   410k|                        {
 1489|   410k|                            key_buffer_.push_back(',');
 1490|   410k|                        }
 1491|   416k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|   416k|                        key_buffer_.push_back(':');
 1493|   416k|                        break;
 1494|  1.06k|                    default:
  ------------------
  |  Branch (1494:21): [True: 1.06k, False: 416k]
  ------------------
 1495|  1.06k|                        destination_->key(key_, context, ec);
 1496|  1.06k|                        break;
 1497|   417k|                }
 1498|   417k|            }
 1499|   513k|            else
 1500|   513k|            {
 1501|   513k|                switch (level_stack_.back().target_kind())
 1502|   513k|                {
 1503|   504k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 504k, False: 8.91k]
  ------------------
 1504|   504k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 98.5k, False: 405k]
  |  Branch (1504:65): [True: 98.1k, False: 401]
  ------------------
 1505|  98.1k|                        {
 1506|  98.1k|                            key_buffer_.push_back(',');
 1507|  98.1k|                        }
 1508|   504k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|   504k|                        break;
 1510|  8.91k|                    default:
  ------------------
  |  Branch (1510:21): [True: 8.91k, False: 504k]
  ------------------
 1511|  8.91k|                        destination_->null_value(tag, context, ec);
 1512|  8.91k|                        break;
 1513|   513k|                }
 1514|   513k|            }
 1515|       |
 1516|   930k|            level_stack_.back().advance();
 1517|   930k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   930k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|   930k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  23.8M|        {
 1423|  23.8M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 2.65M, False: 21.1M]
  |  Branch (1423:49): [True: 20.8M, False: 267k]
  ------------------
 1424|  23.5M|            {
 1425|  23.5M|                key_.clear(); 
 1426|  23.5M|                if (value)
  ------------------
  |  Branch (1426:21): [True: 80.6k, False: 23.4M]
  ------------------
 1427|  80.6k|                {
 1428|  80.6k|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|  80.6k|                }
 1430|  23.4M|                else
 1431|  23.4M|                {
 1432|  23.4M|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|  23.4M|                }
 1434|  23.5M|            }
 1435|       |
 1436|  23.8M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 2.65M, False: 21.1M]
  ------------------
 1437|  2.65M|            {
 1438|  2.65M|                switch (level_stack_.back().target_kind())
 1439|  2.65M|                {
 1440|  2.58M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 2.58M, False: 70.0k]
  ------------------
 1441|  2.58M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 2.56M, False: 20.7k]
  ------------------
 1442|  2.56M|                        {
 1443|  2.56M|                            key_buffer_.push_back(',');
 1444|  2.56M|                        }
 1445|  2.58M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|  2.58M|                        key_buffer_.push_back(':');
 1447|  2.58M|                        break;
 1448|  70.0k|                    default:
  ------------------
  |  Branch (1448:21): [True: 70.0k, False: 2.58M]
  ------------------
 1449|  70.0k|                        destination_->key(key_, context, ec);
 1450|  70.0k|                        break;
 1451|  2.65M|                }
 1452|  2.65M|            }
 1453|  21.1M|            else
 1454|  21.1M|            {
 1455|  21.1M|                switch (level_stack_.back().target_kind())
 1456|  21.1M|                {
 1457|  20.8M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 20.8M, False: 267k]
  ------------------
 1458|  20.8M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 18.2M, False: 2.60M]
  |  Branch (1458:65): [True: 18.2M, False: 3.50k]
  ------------------
 1459|  18.2M|                        {
 1460|  18.2M|                            key_buffer_.push_back(',');
 1461|  18.2M|                        }
 1462|  20.8M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|  20.8M|                        break;
 1464|   267k|                    default:
  ------------------
  |  Branch (1464:21): [True: 267k, False: 20.8M]
  ------------------
 1465|   267k|                        destination_->bool_value(value, tag, context, ec);
 1466|   267k|                        break;
 1467|  21.1M|                }
 1468|  21.1M|            }
 1469|       |
 1470|  23.8M|            level_stack_.back().advance();
 1471|  23.8M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  23.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  23.8M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|   871k|        {
 1073|   871k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 129k, False: 741k]
  ------------------
 1074|   129k|            {
 1075|   129k|                switch (level_stack_.back().target_kind())
 1076|   129k|                {
 1077|   127k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 127k, False: 2.40k]
  ------------------
 1078|   127k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 124k, False: 2.27k]
  ------------------
 1079|   124k|                        {
 1080|   124k|                            key_buffer_.push_back(',');
 1081|   124k|                        }
 1082|   127k|                        key_buffer_.push_back('\"');
 1083|   127k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|   127k|                        key_buffer_.push_back('\"');
 1085|   127k|                        key_buffer_.push_back(':');
 1086|   127k|                        break;
 1087|  2.40k|                    default:
  ------------------
  |  Branch (1087:21): [True: 2.40k, False: 127k]
  ------------------
 1088|  2.40k|                        destination_->key(value, context, ec);
 1089|  2.40k|                        break;
 1090|   129k|                }
 1091|   129k|            }
 1092|   741k|            else
 1093|   741k|            {
 1094|   741k|                switch (level_stack_.back().target_kind())
 1095|   741k|                {
 1096|   724k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 724k, False: 17.3k]
  ------------------
 1097|   724k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 587k, False: 136k]
  |  Branch (1097:65): [True: 586k, False: 1.22k]
  ------------------
 1098|   586k|                        {
 1099|   586k|                            key_buffer_.push_back(',');
 1100|   586k|                        }
 1101|   724k|                        key_buffer_.push_back('\"');
 1102|   724k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|   724k|                        key_buffer_.push_back('\"');
 1104|   724k|                        break;
 1105|  17.3k|                    default:
  ------------------
  |  Branch (1105:21): [True: 17.3k, False: 724k]
  ------------------
 1106|  17.3k|                        destination_->string_value(value, tag, context, ec);
 1107|  17.3k|                        break;
 1108|   741k|                }
 1109|   741k|            }
 1110|       |
 1111|   871k|            level_stack_.back().advance();
 1112|   871k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   871k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|   871k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  68.6k|        {
 1120|  68.6k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 31.4k, False: 37.1k]
  |  Branch (1120:49): [True: 33.2k, False: 3.91k]
  ------------------
 1121|  64.6k|            {
 1122|  64.6k|                key_.clear();
 1123|  64.6k|                switch (tag)
 1124|  64.6k|                {
 1125|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 0, False: 64.6k]
  ------------------
 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: 64.6k]
  ------------------
 1129|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|      0|                        break;
 1131|  64.6k|                    default:
  ------------------
  |  Branch (1131:21): [True: 64.6k, False: 0]
  ------------------
 1132|  64.6k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  64.6k|                        break;
 1134|  64.6k|                }
 1135|  64.6k|            }
 1136|       |
 1137|  68.6k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 31.4k, False: 37.1k]
  ------------------
 1138|  31.4k|            {
 1139|  31.4k|                switch (level_stack_.back().target_kind())
 1140|  31.4k|                {
 1141|  30.3k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 30.3k, False: 1.17k]
  ------------------
 1142|  30.3k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 21.1k, False: 9.18k]
  ------------------
 1143|  21.1k|                        {
 1144|  21.1k|                            key_buffer_.push_back(',');
 1145|  21.1k|                        }
 1146|  30.3k|                        key_buffer_.push_back('\"');
 1147|  30.3k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|  30.3k|                        key_buffer_.push_back('\"');
 1149|  30.3k|                        key_buffer_.push_back(':');
 1150|  30.3k|                        break;
 1151|  1.17k|                    default:
  ------------------
  |  Branch (1151:21): [True: 1.17k, False: 30.3k]
  ------------------
 1152|  1.17k|                        destination_->key(key_, context, ec);
 1153|  1.17k|                        break;
 1154|  31.4k|                }
 1155|  31.4k|            }
 1156|  37.1k|            else
 1157|  37.1k|            {
 1158|  37.1k|                switch (level_stack_.back().target_kind())
 1159|  37.1k|                {
 1160|  33.2k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 33.2k, False: 3.91k]
  ------------------
 1161|  33.2k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 8.88k, False: 24.3k]
  |  Branch (1161:65): [True: 8.32k, False: 559]
  ------------------
 1162|  8.32k|                        {
 1163|  8.32k|                            key_buffer_.push_back(',');
 1164|  8.32k|                        }
 1165|  33.2k|                        key_buffer_.push_back('\"');
 1166|  33.2k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  33.2k|                        key_buffer_.push_back('\"');
 1168|  33.2k|                        break;
 1169|  3.91k|                    default:
  ------------------
  |  Branch (1169:21): [True: 3.91k, False: 33.2k]
  ------------------
 1170|  3.91k|                        destination_->byte_string_value(value, tag, context, ec);
 1171|  3.91k|                        break;
 1172|  37.1k|                }
 1173|  37.1k|            }
 1174|       |
 1175|  68.6k|            level_stack_.back().advance();
 1176|  68.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  68.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  68.6k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|  1.02M|        {
 1184|  1.02M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 349k, False: 680k]
  |  Branch (1184:49): [True: 84.2k, False: 595k]
  ------------------
 1185|   434k|            {
 1186|   434k|                key_.clear();
 1187|   434k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|   434k|            }
 1189|       |
 1190|  1.02M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 349k, False: 680k]
  ------------------
 1191|   349k|            {
 1192|   349k|                switch (level_stack_.back().target_kind())
 1193|   349k|                {
 1194|  52.1k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 52.1k, False: 297k]
  ------------------
 1195|  52.1k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 47.5k, False: 4.53k]
  ------------------
 1196|  47.5k|                        {
 1197|  47.5k|                            key_buffer_.push_back(',');
 1198|  47.5k|                        }
 1199|  52.1k|                        key_buffer_.push_back('\"');
 1200|  52.1k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|  52.1k|                        key_buffer_.push_back('\"');
 1202|  52.1k|                        key_buffer_.push_back(':');
 1203|  52.1k|                        break;
 1204|   297k|                    default:
  ------------------
  |  Branch (1204:21): [True: 297k, False: 52.1k]
  ------------------
 1205|   297k|                        destination_->key(key_, context, ec);
 1206|   297k|                        break;
 1207|   349k|                }
 1208|   349k|            }
 1209|   680k|            else
 1210|   680k|            {
 1211|   680k|                switch (level_stack_.back().target_kind())
 1212|   680k|                {
 1213|  84.2k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 84.2k, False: 595k]
  ------------------
 1214|  84.2k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 29.1k, False: 55.0k]
  |  Branch (1214:65): [True: 26.4k, False: 2.75k]
  ------------------
 1215|  26.4k|                        {
 1216|  26.4k|                            key_buffer_.push_back(',');
 1217|  26.4k|                        }
 1218|  84.2k|                        key_buffer_.push_back('\"');
 1219|  84.2k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|  84.2k|                        key_buffer_.push_back('\"');
 1221|  84.2k|                        break;
 1222|   595k|                    default:
  ------------------
  |  Branch (1222:21): [True: 595k, False: 84.2k]
  ------------------
 1223|   595k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|   595k|                        break;
 1225|   680k|                }
 1226|   680k|            }
 1227|       |
 1228|  1.02M|            level_stack_.back().advance();
 1229|  1.02M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.02M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|  1.02M|        }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|   789k|    {
  295|   789k|        visit_begin_array(length, tag, context, ec);
  296|   789k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   789k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|   789k|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|  12.5M|    {
  364|  12.5M|        visit_uint64(value, tag, context, ec);
  365|  12.5M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  12.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  12.5M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|   753k|    {
  301|   753k|        visit_end_array(context, ec);
  302|   753k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   753k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|   753k|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  3.04M|    {
  373|  3.04M|        visit_int64(value, tag, context, ec);
  374|  3.04M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.04M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  3.04M|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|   185k|    {
  391|   185k|        visit_double(value, tag, context, ec);
  392|   185k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   185k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|   185k|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  6.42k|            : destination_(std::addressof(visitor)), 
  856|  6.42k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  6.42k|        {
  858|  6.42k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  6.42k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|  6.42k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|   314k|    {
  277|   314k|        visit_begin_object(length, tag, context, ec);
  278|   314k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   314k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|   314k|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|   871k|    {
  333|   871k|        visit_string(value, tag, context, ec);
  334|   871k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   871k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|   871k|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|   930k|    {
  315|   930k|        visit_null(tag, context, ec);
  316|   930k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   930k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|   930k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  23.8M|    {
  324|  23.8M|        visit_bool(value, tag, context, ec);
  325|  23.8M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  23.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  23.8M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  68.6k|    {
  344|  68.6k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  68.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  68.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  68.6k|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|  1.02M|    {
  355|  1.02M|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|  1.02M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.02M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|  1.02M|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|   289k|    {
  283|   289k|        visit_end_object(context, ec);
  284|   289k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   289k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|   289k|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|  1.58k|    {
   58|  1.58k|        visit_flush();
   59|  1.58k|    }

_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  19.2k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|   125k|        {
  346|   125k|            visit_begin_array(length, tag, context, ec);
  347|   125k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   125k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|   125k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|   554k|        {
  358|   554k|            visit_key(name, context, ec);
  359|   554k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   554k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|   554k|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|   110k|        {
  352|   110k|            visit_end_array(context, ec);
  353|   110k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   110k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|   110k|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|   845k|        {
  415|   845k|            visit_uint64(value, tag, context, ec);
  416|   845k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   845k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|   845k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|   201k|        {
  424|   201k|            visit_int64(value, tag, context, ec);
  425|   201k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   201k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|   201k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  88.1k|        {
  442|  88.1k|            visit_double(value, tag, context, ec);
  443|  88.1k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  88.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|  88.1k|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  1.58k|        {
  109|  1.58k|            visit_flush();
  110|  1.58k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  24.2k|        {
  328|  24.2k|            visit_begin_object(length, tag, context, ec);
  329|  24.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  24.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  24.2k|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  15.5k|        {
  334|  15.5k|            visit_end_object(context, ec);
  335|  15.5k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  15.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  15.5k|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  8.91k|        {
  366|  8.91k|            visit_null(tag, context, ec);
  367|  8.91k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  8.91k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  8.91k|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|   267k|        {
  375|   267k|            visit_bool(value, tag, context, ec);
  376|   267k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   267k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|   267k|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|  17.3k|        {
  384|  17.3k|            visit_string(value, tag, context, ec);
  385|  17.3k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  17.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  17.3k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|  3.91k|        {
  395|  3.91k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|  3.91k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.91k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|  3.91k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|   595k|        {
  406|   595k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|   595k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   595k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|   595k|        }
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  12.8k|        basic_json_visitor() = default;
_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  6.42k|        basic_default_json_visitor() = default;

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

_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2ERS7_:
  256|  97.5k|            : buf_ptr(std::addressof(buf))
  257|  97.5k|        {
  258|  97.5k|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE9push_backEc:
  287|  1.77M|        {
  288|  1.77M|            buf_ptr->push_back(ch);
  289|  1.77M|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvEC2ERS5_:
  315|  6.42k|            : buf_ptr(std::addressof(buf))
  316|  6.42k|        {
  317|  6.42k|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE9push_backEh:
  334|   106M|        {
  335|   106M|            buf_ptr->push_back(static_cast<value_type>(ch));
  336|   106M|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE5flushEv:
  325|  8.00k|        {
  326|  8.00k|        }

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  6.42k|    {
  194|  6.42k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 6.42k, False: 0]
  ------------------
  195|  6.42k|        {
  196|  6.42k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  6.42k|        }
  198|  6.42k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  6.42k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  6.42k|          chunk_size_(default_max_chunk_size)
  178|  6.42k|    {
  179|  6.42k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  6.42k|        data_end_ = chunk_;
  181|  6.42k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  6.42k|      : std::basic_istream<CharT>(&nb_)
   58|  6.42k|    {
   59|  6.42k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  6.42k|        null_buffer() = default;
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8is_errorEv:
  276|  43.6M|    {
  277|  43.6M|        return stream_ptr_->bad();  
  278|  43.6M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  45.5M|    {
  378|  45.5M|        std::size_t len = 0;
  379|  45.5M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 45.5M, False: 12.9k]
  ------------------
  380|  45.5M|        {
  381|  45.5M|            len = (std::min)(remaining_, length);
  382|  45.5M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  45.5M|            data_end_ += len;
  384|  45.5M|            remaining_ -= len;
  385|  45.5M|            position_ += len;
  386|  45.5M|        }
  387|  45.5M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 45.5M, False: 15.5k]
  ------------------
  388|  45.5M|        {
  389|  45.5M|            return len;
  390|  45.5M|        }
  391|  15.5k|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 15.5k, False: 0]
  ------------------
  392|  15.5k|        {
  393|  15.5k|            data_end_ = chunk_;
  394|  15.5k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|  15.5k|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 11.2k, False: 4.34k]
  ------------------
  396|  11.2k|            {
  397|  11.2k|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|  11.2k|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|  11.2k|                data_end_ += len2;
  400|  11.2k|                remaining_ -= len2;
  401|  11.2k|                position_ += len2;
  402|  11.2k|                len += len2;
  403|  11.2k|            }
  404|  15.5k|            return len;
  405|  15.5k|        }
  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|  45.5M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  16.2k|    {
  443|  16.2k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 4.41k, False: 11.8k]
  ------------------
  444|  4.41k|        {
  445|  4.41k|            return 0;
  446|  4.41k|        }
  447|       |
  448|  11.8k|        JSONCONS_TRY
  ------------------
  |  |   37|  11.8k|    #define JSONCONS_TRY try
  ------------------
  449|  11.8k|        {
  450|  11.8k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  11.8k|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  11.8k|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 6.40k, False: 5.45k]
  ------------------
  454|  6.40k|            {
  455|  6.40k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  6.40k|            }
  457|  11.8k|            return length;
  458|  11.8k|        }
  459|  11.8k|        JSONCONS_CATCH(const std::exception&)     
  460|  11.8k|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  11.8k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6detail4spanIKhLm18446744073709551615EEEmOT_:
  352|  1.85M|    {
  353|  1.85M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  1.85M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 803k, False: 1.05M]
  |  |  ------------------
  ------------------
  354|   803k|        {
  355|   803k|            return span<const value_type>{};
  356|   803k|        }
  357|  1.05M|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 320, False: 1.05M]
  |  Branch (357:32): [True: 153, False: 167]
  ------------------
  358|    153|        {
  359|    153|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|    153|            data_end_ = chunk_;
  361|    153|        }
  362|  1.05M|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 1.05k, False: 1.05M]
  ------------------
  363|  1.05k|        {
  364|  1.05k|            buffer.clear();
  365|  1.05k|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|  1.05k|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|  1.05k|        }
  368|       |
  369|  1.05M|        const value_type* data = data_end_;
  370|  1.05M|        data_end_ += length;
  371|  1.05M|        remaining_ -= length;
  372|  1.05M|        position_ += length;
  373|  1.05M|        return span<const value_type>(data, length);
  374|  1.05M|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  746|  1.05k|    {
  747|  1.05k|        std::size_t unread = length;
  748|       |
  749|  4.24k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 3.70k, False: 539]
  |  Branch (749:30): [True: 3.18k, False: 515]
  ------------------
  750|  3.18k|        {
  751|  3.18k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 556, False: 2.63k]
  |  Branch (751:44): [True: 555, False: 1]
  ------------------
  752|    555|            {
  753|    555|                std::size_t n = source.chunk_size();
  754|    555|                std::size_t offset = buffer.size();
  755|    555|                buffer.resize(offset+n);
  756|    555|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|    555|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|    555|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 62, False: 493]
  |  |  ------------------
  ------------------
  758|     62|                {
  759|     62|                    buffer.resize(offset+actual);
  760|     62|                }
  761|    555|                unread -= actual;
  762|    555|            }
  763|  2.63k|            else
  764|  2.63k|            {
  765|  2.63k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  2.63k|                std::size_t offset = buffer.size();
  767|  2.63k|                buffer.resize(offset+n);
  768|  2.63k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  2.63k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|  2.63k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 264, False: 2.37k]
  |  |  ------------------
  ------------------
  770|    264|                {
  771|    264|                    buffer.resize(offset + actual);
  772|    264|                }
  773|  2.63k|                unread -= actual;
  774|  2.63k|            }
  775|  3.18k|        }
  776|  1.05k|        return length - unread;
  777|  1.05k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  3.70k|    {
  272|  3.70k|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 1.07k, False: 2.63k]
  |  Branch (272:35): [True: 515, False: 556]
  ------------------
  273|  3.70k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|  3.18k|    {
  347|  3.18k|        return remaining_;
  348|  3.18k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|  3.74k|    {
  262|  3.74k|        return chunk_size_;
  263|  3.74k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|    555|    {
  436|    555|        auto len = fill_buffer(chunk, chunk_size);
  437|    555|        position_ += len;
  438|    555|        return len;
  439|    555|    }

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  641|  35.4k|    basic_bigint() = default;
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  293|   145k|        : word_allocator_type(alloc)
  294|   145k|    {
  295|   145k|        ::new (&inlined_) inlined_storage();
  296|   145k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  113|   145k|            : is_allocated_(false),
  114|   145k|            is_negative_(false),
  115|   145k|            size_(0),
  116|   145k|            values_{0, 0}
  117|   145k|        {
  118|   145k|        }
_ZN8jsoncons9to_bigintIcEENS_16to_bigint_resultIT_EEPKS2_mRNS_12basic_bigintINSt3__19allocatorImEEEE:
 2135|  12.4k|{
 2136|  12.4k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  12.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 12.4k]
  |  |  ------------------
  ------------------
 2137|      0|    {
 2138|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2139|      0|    }
 2140|       |
 2141|  12.4k|    if (*data == '-')
  ------------------
  |  Branch (2141:9): [True: 2.85k, False: 9.62k]
  ------------------
 2142|  2.85k|    {
 2143|  2.85k|        return jsoncons::detail::to_bigint(data+1, length-1, true, value, std::allocator<uint64_t>{}); 
 2144|  2.85k|    }
 2145|  9.62k|    else
 2146|  9.62k|    {
 2147|  9.62k|        return jsoncons::detail::to_bigint(data, length, false, value, std::allocator<uint64_t>{}); 
 2148|  9.62k|    }
 2149|  12.4k|}
_ZN8jsoncons16to_bigint_resultIcEC2EPKcNSt3__14errcE:
  569|  12.4k|        : ptr(ptr_), ec(ec_)
  570|  12.4k|    {
  571|  12.4k|    }
_ZN8jsoncons6detail9to_bigintIcNSt3__19allocatorImEEEENS_16to_bigint_resultIT_EEPKS6_mbRNS_12basic_bigintIT0_EERKSB_:
 2048|  12.4k|{
 2049|  12.4k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  12.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 12.4k]
  |  |  ------------------
  ------------------
 2050|      0|    {
 2051|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2052|      0|    }
 2053|       |
 2054|  12.4k|    using word_type = typename basic_bigint<Allocator>::word_type;
 2055|       |
 2056|  12.4k|    const CharT* last = data + length;
 2057|  12.4k|    const CharT* p = data;
 2058|       |
 2059|  13.4k|    while (p < last && *p == '0')
  ------------------
  |  Branch (2059:12): [True: 12.4k, False: 1.00k]
  |  Branch (2059:24): [True: 1.00k, False: 11.4k]
  ------------------
 2060|  1.00k|    {
 2061|  1.00k|        ++p;
 2062|  1.00k|    }
 2063|  12.4k|    if (p == last)
  ------------------
  |  Branch (2063:9): [True: 1.00k, False: 11.4k]
  ------------------
 2064|  1.00k|    {
 2065|  1.00k|        value = std::move(basic_bigint<Allocator>{0, alloc});
 2066|  1.00k|        return to_bigint_result<CharT>(last, std::errc{});
 2067|  1.00k|    }
 2068|  11.4k|    std::size_t num_digits = last - data;
 2069|  11.4k|    std::size_t num_words;
 2070|  11.4k|    if (length < 10)
  ------------------
  |  Branch (2070:9): [True: 733, False: 10.7k]
  ------------------
 2071|    733|    {
 2072|    733|        num_words = 1;
 2073|    733|    }
 2074|  10.7k|    else
 2075|  10.7k|    {
 2076|  10.7k|        std::size_t num_bits = (std::size_t)(((num_digits * detail::bits_per_digit[10]) >> 10) + 1);
 2077|  10.7k|        num_words = (num_bits + 63) >> 6;
 2078|  10.7k|    }
 2079|       |
 2080|  11.4k|    basic_bigint<Allocator> v(0, alloc);
 2081|  11.4k|    v.reserve(num_words);
 2082|   253k|    for (std::size_t i = 0; i < length; i++)
  ------------------
  |  Branch (2082:29): [True: 241k, False: 11.4k]
  ------------------
 2083|   241k|    {
 2084|   241k|        CharT c = data[i];
 2085|   241k|        if (JSONCONS_LIKELY(c >= '0' && c <= '9'))
  ------------------
  |  |   77|   483k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 241k, False: 0]
  |  |  |  Branch (77:48): [True: 241k, False: 0]
  |  |  |  Branch (77:48): [True: 241k, False: 0]
  |  |  ------------------
  ------------------
 2086|   241k|        {
 2087|   241k|            v *= 10u;
 2088|   241k|            v += (word_type)(c - '0');
 2089|   241k|        }
 2090|      0|        else
 2091|      0|        {
 2092|      0|            return to_bigint_result<CharT>(data + i, std::errc::invalid_argument);
 2093|      0|        }
 2094|   241k|    }
 2095|       |
 2096|  11.4k|    if (neg)
  ------------------
  |  Branch (2096:9): [True: 2.85k, False: 8.61k]
  ------------------
 2097|  2.85k|    {
 2098|  2.85k|        v.set_negative(true);
 2099|  2.85k|    }
 2100|       |
 2101|  11.4k|    value = std::move(v);
 2102|  11.4k|    return to_bigint_result<CharT>(last, std::errc{});
 2103|  11.4k|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  24.9k|        : storage_(n, alloc)
  694|  24.9k|    {
  695|  24.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  24.9k|        : word_allocator_type(alloc)
  361|  24.9k|    {
  362|  24.9k|        ::new (&inlined_) inlined_storage(n);
  363|  24.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  24.9k|            : is_allocated_(false),
  126|  24.9k|            is_negative_(n < 0),
  127|  24.9k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 24.9k, False: 0]
  ------------------
  128|  24.9k|        {
  129|  24.9k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 0, False: 24.9k]
  ------------------
  130|  24.9k|            values_[1] = 0;
  131|  24.9k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  842|   381k|    {
  843|   381k|        storage_ = y.storage_;
  844|   381k|        return *this;
  845|   381k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  366|   381k|    {
  367|   381k|        if (this != &other)
  ------------------
  |  Branch (367:13): [True: 381k, False: 0]
  ------------------
  368|   381k|        {
  369|   381k|            auto other_view = other.get_storage_view();
  370|   381k|            resize(other_view.size());
  371|   381k|            auto this_view = get_storage_view();
  372|   381k|            if (other_view.size() > 0)
  ------------------
  |  Branch (372:17): [True: 227k, False: 153k]
  ------------------
  373|   227k|            {
  374|   227k|                common_.is_negative_ = other.common_.is_negative_;
  375|   227k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  376|   227k|            }
  377|   381k|        }
  378|   381k|        return *this;
  379|   381k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  527|   985k|    {
  528|   985k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (528:16): [True: 102k, False: 882k]
  ------------------
  529|   102k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  530|   985k|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  531|   985k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   64|   985k|            : data_(data), size_(size)
   65|   985k|        {
   66|   985k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  534|  1.11M|    {
  535|  1.11M|        size_type old_length = common_.size_;
  536|  1.11M|        reserve(new_length);
  537|  1.11M|        common_.size_ = new_length;
  538|       |
  539|  1.11M|        if (old_length < new_length)
  ------------------
  |  Branch (539:13): [True: 848k, False: 263k]
  ------------------
  540|   848k|        {
  541|   848k|            if (is_allocated())
  ------------------
  |  Branch (541:17): [True: 79.7k, False: 768k]
  ------------------
  542|  79.7k|            {
  543|  79.7k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  544|  79.7k|            }
  545|   768k|            else
  546|   768k|            {
  547|   768k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   49|   768k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 768k]
  |  |  ------------------
  |  |   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|  1.71M|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (548:48): [True: 943k, False: 768k]
  ------------------
  549|   943k|                {
  550|   943k|                    inlined_.values_[i] = 0;
  551|   943k|                }
  552|   768k|            }
  553|   848k|        }
  554|  1.11M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  452|  1.12M|    {
  453|  1.12M|       if (capacity() < n)
  ------------------
  |  Branch (453:12): [True: 23.9k, False: 1.09M]
  ------------------
  454|  23.9k|       {
  455|  23.9k|           if (!is_allocated())
  ------------------
  |  Branch (455:16): [True: 23.9k, False: 0]
  ------------------
  456|  23.9k|           {
  457|  23.9k|               size_type size = inlined_.size_;
  458|  23.9k|               size_type is_neg = inlined_.is_negative_;
  459|  23.9k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  460|       |
  461|  23.9k|               ::new (&allocated_) allocated_storage();
  462|  23.9k|               allocated_.reserve(n, get_allocator());
  463|  23.9k|               allocated_.size_ = size;
  464|  23.9k|               allocated_.is_negative_ = is_neg;
  465|  23.9k|               if (n >= 1)
  ------------------
  |  Branch (465:20): [True: 23.9k, False: 0]
  ------------------
  466|  23.9k|               {
  467|  23.9k|                   allocated_.data_[0] = values[0];
  468|  23.9k|               }
  469|  23.9k|               if (n >= 2)
  ------------------
  |  Branch (469:20): [True: 23.9k, False: 0]
  ------------------
  470|  23.9k|               {
  471|  23.9k|                   allocated_.data_[1] = values[1];
  472|  23.9k|               }
  473|  23.9k|           }
  474|      0|           else
  475|      0|           {
  476|      0|               allocated_.reserve(n, get_allocator());
  477|      0|           }
  478|  23.9k|       }
  479|  1.12M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  505|  1.12M|    {
  506|  1.12M|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (506:16): [True: 95.0k, False: 1.02M]
  ------------------
  507|  1.12M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  203|  23.9k|            : is_allocated_(true),
  204|  23.9k|            is_negative_(false)
  205|  23.9k|        {
  206|  23.9k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  255|  23.9k|        {
  256|  23.9k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   49|  23.9k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 23.9k]
  |  |  ------------------
  |  |   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|  23.9k|            size_type capacity_new = round_up(n);
  258|       |
  259|  23.9k|            real_allocator_type alloc(a);
  260|  23.9k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  261|  23.9k|            if (size_ > 0)
  ------------------
  |  Branch (261:17): [True: 0, False: 23.9k]
  ------------------
  262|      0|            {
  263|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  264|      0|            }
  265|  23.9k|            if (data_ != nullptr)
  ------------------
  |  Branch (265:17): [True: 0, False: 23.9k]
  ------------------
  266|      0|            {
  267|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  268|      0|            }
  269|  23.9k|            capacity_ = capacity_new;
  270|  23.9k|            data_ = data_new;
  271|  23.9k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  275|  23.9k|        {
  276|  23.9k|            size_type remainder = i % mem_unit;
  277|  23.9k|            size_type off = mem_unit - remainder;
  278|  23.9k|            bool testoff = i < max_size - off;
  279|  23.9k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   49|  23.9k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 23.9k]
  |  |  ------------------
  |  |   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|  23.9k|            return i + off;
  282|  23.9k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  482|   926k|    {
  483|   926k|        return static_cast<const word_allocator_type&>(*this);
  484|   926k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  500|  3.79M|    {
  501|  3.79M|        return common_.is_allocated_;
  502|  3.79M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   84|  2.10M|        {
   85|  2.10M|            return size_;
   86|  2.10M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  520|  3.60M|    {
  521|  3.60M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (521:16): [True: 431k, False: 3.16M]
  ------------------
  522|   431k|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  523|  3.60M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  524|  3.60M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   64|  3.60M|            : data_(data), size_(size)
   65|  3.60M|        {
   66|  3.60M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   79|   267k|        {
   80|   267k|            return data_;
   81|   267k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   79|   227k|        {
   80|   227k|            return data_;
   81|   227k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  823|  11.4k|    {
  824|  11.4k|        storage_.reserve(n);
  825|  11.4k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIjEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  998|   241k|    {
  999|   241k|        auto this_view = get_storage_view();
 1000|   241k|        size_type len0 = this_view.size();
 1001|   241k|        word_type dig = this_view[0];
 1002|   241k|        word_type carry = 0;
 1003|       |
 1004|   241k|        resize(this_view.size() + 1);
 1005|   241k|        this_view = get_storage_view();
 1006|       |
 1007|   241k|        size_type i = 0;
 1008|   500k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 258k, False: 241k]
  ------------------
 1009|   258k|        {
 1010|   258k|            word_type hi;
 1011|   258k|            word_type lo;
 1012|   258k|            DDproduct( dig, y, hi, lo );
 1013|   258k|            this_view[i] = lo + carry;
 1014|   258k|            dig = this_view[i+1];
 1015|   258k|            carry = hi + (this_view[i] < lo);
 1016|   258k|        }
 1017|   241k|        this_view[i] = carry;
 1018|   241k|        reduce();
 1019|   241k|        return *this;
 1020|   241k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  718|  2.42M|    {
  719|  2.42M|        return storage_.get_storage_view();
  720|  2.42M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   84|  4.70M|        {
   85|  4.70M|            return size_;
   86|  4.70M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   69|  3.46M|        {
   70|  3.46M|            return data_[i];
   71|  3.46M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  818|   730k|    {
  819|   730k|        storage_.resize(new_length);
  820|   730k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1781|   385k|    {
 1782|   385k|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1783|   385k|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1784|       |
 1785|   385k|        lo = loA * loB;
 1786|   385k|        hi = hiA * hiB;
 1787|   385k|        word_type mid1 = loA * hiB;
 1788|   385k|        word_type mid2 = hiA * loB;
 1789|   385k|        word_type old = lo;
 1790|   385k|        lo += mid1 << word_type_half_bits;
 1791|   385k|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1792|   385k|        old = lo;
 1793|   385k|        lo += mid2 << word_type_half_bits;
 1794|   385k|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1795|   385k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1917|   791k|    {
 1918|   791k|        storage_.reduce();
 1919|   791k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  429|   791k|    {
  430|   791k|        if (common_.size_ > 0)
  ------------------
  |  Branch (430:13): [True: 791k, False: 0]
  ------------------
  431|   791k|        {
  432|   791k|            auto this_view = get_storage_view();
  433|   791k|            word_type* p = this_view.end() - 1;
  434|   791k|            word_type* first = this_view.begin();
  435|  1.48M|            while ( p >= first )
  ------------------
  |  Branch (435:21): [True: 1.46M, False: 19.2k]
  ------------------
  436|  1.46M|            {
  437|  1.46M|                if ( *p )
  ------------------
  |  Branch (437:22): [True: 772k, False: 692k]
  ------------------
  438|   772k|                {
  439|   772k|                    break;
  440|   772k|                }
  441|   692k|                --common_.size_;
  442|   692k|                --p;
  443|   692k|            }
  444|   791k|        }
  445|   791k|        if (common_.size_ == 0)
  ------------------
  |  Branch (445:13): [True: 19.2k, False: 772k]
  ------------------
  446|  19.2k|        {
  447|  19.2k|            common_.is_negative_ = false;
  448|  19.2k|        }
  449|   791k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   93|   791k|        {
   94|   791k|            return data_ + size_;
   95|   791k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   88|   791k|        {
   89|   791k|            return data_;
   90|   791k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  889|   330k|    {
  890|   330k|        if ( is_negative())
  ------------------
  |  Branch (890:14): [True: 0, False: 330k]
  ------------------
  891|      0|            return *this -= -basic_bigint<Allocator>(y);
  892|       |
  893|   330k|        word_type d;
  894|   330k|        word_type carry = 0;
  895|       |
  896|   330k|        auto this_view = get_storage_view();
  897|   330k|        resize(this_view.size() + 1);
  898|       |
  899|   330k|        this_view = get_storage_view();
  900|   330k|        const size_type this_size = this_view.size();
  901|   330k|        size_type y_size = 1;
  902|       |
  903|   330k|        d = this_view[0] + carry;
  904|   330k|        carry = d < carry;
  905|   330k|        this_view[0] = d + y;
  906|   330k|        if (this_view[0] < d)
  ------------------
  |  Branch (906:13): [True: 1.46k, False: 329k]
  ------------------
  907|  1.46k|            carry = 1;
  908|       |
  909|   332k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (909:36): [True: 315k, False: 16.3k]
  |  Branch (909:53): [True: 1.46k, False: 314k]
  ------------------
  910|  1.46k|        {
  911|  1.46k|            d = this_view[i] + carry;
  912|  1.46k|            carry = d < carry;
  913|  1.46k|            this_view[i] = d;
  914|  1.46k|        }
  915|   330k|        reduce();
  916|   330k|        return *this;
  917|   330k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  728|  1.84M|    {
  729|  1.84M|        return storage_.is_negative();
  730|  1.84M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  510|  1.84M|    {
  511|  1.84M|        return common_.is_negative_;
  512|  1.84M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|   436k|        : storage_(n, alloc)
  694|   436k|    {
  695|   436k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|   436k|        : word_allocator_type(alloc)
  361|   436k|    {
  362|   436k|        ::new (&inlined_) inlined_storage(n);
  363|   436k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|   436k|            : is_allocated_(false),
  139|   436k|            is_negative_(false),
  140|   436k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 156k, False: 280k]
  ------------------
  141|   436k|        {
  142|   436k|            values_[0] = n;
  143|   436k|            values_[1] = 0;
  144|   436k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  835|  15.8k|    {
  836|  15.8k|        basic_bigint<Allocator> v(*this);
  837|  15.8k|        v.set_negative(!v.is_negative());
  838|  15.8k|        return v;
  839|  15.8k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  671|   127k|        : storage_(other.storage_)
  672|   127k|    {
  673|   127k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  299|   127k|        : word_allocator_type(other.get_allocator())
  300|   127k|    {
  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|   127k|        if (!other.is_allocated())
  ------------------
  |  Branch (305:13): [True: 107k, False: 19.6k]
  ------------------
  306|   107k|        {
  307|   107k|            ::new (&inlined_) inlined_storage(other.inlined_);
  308|   107k|        }
  309|  19.6k|        else
  310|  19.6k|        {
  311|  19.6k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  312|  19.6k|        }
  313|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  314|       |# pragma GCC diagnostic pop
  315|       |#endif
  316|   127k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  178|   482k|            : is_allocated_(false),
  179|   482k|            is_negative_(stor.is_negative_),
  180|   482k|            size_(stor.size_)
  181|   482k|        {
  182|   482k|            values_[0] = stor.values_[0];
  183|   482k|            values_[1] = stor.values_[1];
  184|   482k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  209|  78.5k|            : is_allocated_(true),
  210|  78.5k|              is_negative_(stor.is_negative_),
  211|  78.5k|              size_(stor.size_),
  212|  78.5k|              capacity_(stor.capacity_)
  213|  78.5k|        {
  214|  78.5k|            real_allocator_type alloc(a);
  215|       |
  216|  78.5k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  217|  78.5k|            JSONCONS_TRY
  ------------------
  |  |   37|  78.5k|    #define JSONCONS_TRY try
  ------------------
  218|  78.5k|            {
  219|  78.5k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  220|  78.5k|            }
  221|  78.5k|            JSONCONS_CATCH(...)
  222|  78.5k|            {
  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|  78.5k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   49|  78.5k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 78.5k]
  |  |  ------------------
  |  |   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|  78.5k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  229|  78.5k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  954|  15.8k|    {
  955|  15.8k|        auto y_view = y.get_storage_view();
  956|       |
  957|  15.8k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (957:14): [True: 15.8k, False: 0]
  ------------------
  958|  15.8k|            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|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  723|   603k|    {
  724|   603k|        return storage_.get_storage_view();
  725|   603k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  920|  15.8k|    {
  921|  15.8k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (921:14): [True: 0, False: 15.8k]
  ------------------
  922|      0|            return *this -= -y;
  923|       |
  924|  15.8k|        auto y_view = y.get_storage_view();
  925|       |        
  926|  15.8k|        word_type d;
  927|  15.8k|        word_type carry = 0;
  928|       |
  929|  15.8k|        auto this_view = get_storage_view();
  930|  15.8k|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  931|  15.8k|        this_view = get_storage_view();
  932|       |
  933|  15.8k|        const size_t this_size = this_view.size();
  934|  15.8k|        const size_t y_size = y_view.size();
  935|  31.2k|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (935:31): [True: 15.4k, False: 15.8k]
  ------------------
  936|  15.4k|        {
  937|  15.4k|            d = this_view[i] + carry;
  938|  15.4k|            carry = d < carry;
  939|  15.4k|            this_view[i] = d + y_view[i];
  940|  15.4k|            if (this_view[i] < d)
  ------------------
  |  Branch (940:17): [True: 3.60k, False: 11.8k]
  ------------------
  941|  3.60k|                carry = 1;
  942|  15.4k|        }
  943|  19.4k|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (943:36): [True: 19.2k, False: 216]
  |  Branch (943:53): [True: 3.60k, False: 15.5k]
  ------------------
  944|  3.60k|        {
  945|  3.60k|            d = this_view[i] + carry;
  946|  3.60k|            carry = d < carry;
  947|  3.60k|            this_view[i] = d;
  948|  3.60k|        }
  949|  15.8k|        reduce();
  950|  15.8k|        return *this;
  951|  15.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1641|   231k|    {
 1642|   231k|        auto this_view = get_storage_view();
 1643|   231k|        auto y_view = y.get_storage_view();
 1644|       |
 1645|   231k|        const size_type y_size = y_view.size();
 1646|   231k|        if ( this_view.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1646:14): [True: 2.63k, False: 228k]
  |  Branch (1646:39): [True: 2.63k, False: 0]
  ------------------
 1647|  2.63k|            return 0;
 1648|   228k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1648:14): [True: 18.6k, False: 210k]
  ------------------
 1649|  18.6k|            return y.is_negative() - is_negative();
 1650|   210k|        int code = 0;
 1651|   210k|        if ( this_view.size() < y_size)
  ------------------
  |  Branch (1651:14): [True: 0, False: 210k]
  ------------------
 1652|      0|            code = -1;
 1653|   210k|        else if ( this_view.size() > y_size)
  ------------------
  |  Branch (1653:19): [True: 38.2k, False: 172k]
  ------------------
 1654|  38.2k|            code = +1;
 1655|   172k|        else
 1656|   172k|        {
 1657|   211k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1657:50): [True: 172k, False: 39.8k]
  ------------------
 1658|   172k|            {
 1659|   172k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1659:21): [True: 21.7k, False: 150k]
  ------------------
 1660|  21.7k|                {
 1661|  21.7k|                    code = 1;
 1662|  21.7k|                    break;
 1663|  21.7k|                }
 1664|   150k|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1664:26): [True: 110k, False: 39.8k]
  ------------------
 1665|   110k|                {
 1666|   110k|                    code = -1;
 1667|   110k|                    break;
 1668|   110k|                }
 1669|   172k|            }
 1670|   172k|        }
 1671|   210k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1671:16): [True: 0, False: 210k]
  ------------------
 1672|   228k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1476|   196k|    {
 1477|   196k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1477:15): [True: 110k, False: 86.0k]
  ------------------
 1478|   196k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   69|   697k|        {
   70|   697k|            return data_[i];
   71|   697k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  733|   804k|    {
  734|   804k|        storage_.set_negative(value);
  735|   804k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  515|   804k|    {
  516|   804k|        common_.is_negative_ = value;
  517|   804k|    }
_ZNK8jsoncons16to_bigint_resultIcEcvbEv:
  578|  12.4k|    {
  579|  12.4k|        return ec == std::errc{};
  580|  12.4k|    }
_ZN8jsonconsneERKNS_12basic_bigintINSt3__19allocatorImEEEEi:
 1471|  12.4k|    {
 1472|  12.4k|        return x.compare(basic_bigint<Allocator>(y)) != 0 ? true : false;
  ------------------
  |  Branch (1472:16): [True: 11.4k, False: 1.00k]
  ------------------
 1473|  12.4k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1675|   196k|    {
 1676|   196k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1677|   196k|        auto denom_view = denom.get_storage_view();
 1678|       |
 1679|   196k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1679:13): [True: 0, False: 196k]
  ------------------
 1680|      0|        {
 1681|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1682|      0|        }
 1683|   196k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1684|   196k|        bool rem_neg = is_negative();
 1685|   196k|        basic_bigint<Allocator> num(*this, get_allocator());
 1686|   196k|        num.set_negative(false);
 1687|   196k|        denom.set_negative(false);
 1688|   196k|        if ( num < denom )
  ------------------
  |  Branch (1688:14): [True: 110k, False: 86.0k]
  ------------------
 1689|   110k|        {
 1690|   110k|            quot = word_type(0);
 1691|   110k|            quot.set_negative(quot_neg);
 1692|   110k|            rem = num;
 1693|   110k|            rem.set_negative(rem_neg);
 1694|   110k|            return;
 1695|   110k|        }
 1696|       |
 1697|  86.0k|        auto num_view = num.get_storage_view();
 1698|  86.0k|        auto quot_view = quot.get_storage_view();
 1699|  86.0k|        auto this_view = get_storage_view();
 1700|       |
 1701|  86.0k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1701:14): [True: 86.0k, False: 0]
  |  Branch (1701:40): [True: 61.6k, False: 24.4k]
  ------------------
 1702|  61.6k|        {
 1703|  61.6k|            quot = word_type( num_view[0]/denom_view[0] );
 1704|  61.6k|            rem = word_type( num_view[0]%denom_view[0] );
 1705|  61.6k|            quot.set_negative(quot_neg);
 1706|  61.6k|            rem.set_negative(rem_neg);
 1707|  61.6k|            return;
 1708|  61.6k|        }
 1709|  24.4k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1709:13): [True: 24.4k, False: 0]
  |  Branch (1709:39): [True: 4.30k, False: 20.1k]
  ------------------
 1710|  4.30k|        {
 1711|       |            // Denominator fits into a half word
 1712|  4.30k|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1713|  4.30k|            quot.resize(this_view.size());
 1714|  4.30k|            quot_view = quot.get_storage_view();
 1715|  12.9k|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1715:48): [True: 8.61k, False: 4.30k]
  ------------------
 1716|  8.61k|            {
 1717|  8.61k|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1718|  8.61k|                q1 = dividend/divisor;
 1719|  8.61k|                r = dividend % divisor;
 1720|  8.61k|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1721|  8.61k|                q2 = dividend/divisor;
 1722|  8.61k|                dHi = dividend % divisor;
 1723|  8.61k|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1724|  8.61k|            }
 1725|  4.30k|            quot.reduce();
 1726|  4.30k|            rem = dHi;
 1727|  4.30k|            quot.set_negative(quot_neg);
 1728|  4.30k|            rem.set_negative(rem_neg);
 1729|  4.30k|            return;
 1730|  4.30k|        }
 1731|  20.1k|        basic_bigint<Allocator> num0(num, get_allocator());
 1732|  20.1k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1733|  20.1k|        int x = 0;
 1734|  20.1k|        bool second_done = normalize(denom, num, x);
 1735|  20.1k|        denom_view = denom.get_storage_view();
 1736|  20.1k|        num_view = num.get_storage_view();
 1737|       |
 1738|  20.1k|        size_type l = denom_view.size() - 1;
 1739|  20.1k|        size_type n = num_view.size() - 1;
 1740|  20.1k|        quot.resize(n - l);
 1741|  20.1k|        quot_view = quot.get_storage_view();
 1742|  40.2k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1742:46): [True: 20.1k, False: 20.1k]
  ------------------
 1743|  20.1k|        {
 1744|  20.1k|            quot_view[i] = 0;
 1745|  20.1k|        }
 1746|  20.1k|        rem = num;
 1747|  20.1k|        auto rem_view = rem.get_storage_view();
 1748|  20.1k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1748:14): [True: 0, False: 20.1k]
  ------------------
 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|  20.1k|        word_type d = denom_view[l];
 1757|       |
 1758|  40.2k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1758:32): [True: 20.1k, False: 20.1k]
  ------------------
 1759|  20.1k|        {
 1760|  20.1k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1761|  20.1k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1762|  20.1k|            quot_view[k - l - 1] = q;
 1763|  20.1k|        }
 1764|  20.1k|        quot.reduce();
 1765|  20.1k|        quot.set_negative(quot_neg);
 1766|  20.1k|        if (remDesired)
  ------------------
  |  Branch (1766:13): [True: 20.1k, False: 0]
  ------------------
 1767|  20.1k|        {
 1768|  20.1k|            unnormalize(rem, x, second_done);
 1769|  20.1k|            rem.set_negative(rem_neg);
 1770|  20.1k|        }
 1771|  20.1k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  713|   652k|    {
  714|   652k|        return storage_.get_allocator();
  715|   652k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  676|   433k|        : storage_(other.storage_, alloc)
  677|   433k|    {
  678|   433k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  319|   433k|        : word_allocator_type(alloc)
  320|   433k|    {
  321|   433k|        if (!other.is_allocated())
  ------------------
  |  Branch (321:13): [True: 374k, False: 58.9k]
  ------------------
  322|   374k|        {
  323|   374k|            ::new (&inlined_) inlined_storage(other.inlined_);
  324|   374k|        }
  325|  58.9k|        else
  326|  58.9k|        {
  327|  58.9k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  328|  58.9k|        }
  329|   433k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1872|  20.1k|    {
 1873|  20.1k|        auto denom_view = denom.get_storage_view();
 1874|  20.1k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1874:13): [True: 0, False: 20.1k]
  ------------------
 1875|      0|        {
 1876|      0|            return false;
 1877|      0|        }
 1878|  20.1k|        size_type r = denom_view.size() - 1;
 1879|  20.1k|        word_type y = denom_view[r];
 1880|       |
 1881|  20.1k|        x = 0;
 1882|  20.1k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1882:17): [True: 0, False: 20.1k]
  ------------------
 1883|      0|        {
 1884|      0|            y <<= 1;
 1885|      0|            x++;
 1886|      0|        }
 1887|  20.1k|        denom <<= x;
 1888|  20.1k|        num <<= x;
 1889|       |
 1890|  20.1k|        denom_view = denom.get_storage_view();
 1891|  20.1k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1891:14): [True: 0, False: 20.1k]
  |  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|  20.1k|        return false;
 1898|  20.1k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1117|  40.2k|    {
 1118|  40.2k|        auto this_view = get_storage_view();
 1119|  40.2k|        size_type q = k / word_type_bits;
 1120|  40.2k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1120:14): [True: 0, False: 40.2k]
  ------------------
 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|  40.2k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1128:14): [True: 0, False: 40.2k]
  ------------------
 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|  40.2k|        reduce();
 1142|  40.2k|        return *this;
 1143|  40.2k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  998|   111k|    {
  999|   111k|        auto this_view = get_storage_view();
 1000|   111k|        size_type len0 = this_view.size();
 1001|   111k|        word_type dig = this_view[0];
 1002|   111k|        word_type carry = 0;
 1003|       |
 1004|   111k|        resize(this_view.size() + 1);
 1005|   111k|        this_view = get_storage_view();
 1006|       |
 1007|   111k|        size_type i = 0;
 1008|   217k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 106k, False: 111k]
  ------------------
 1009|   106k|        {
 1010|   106k|            word_type hi;
 1011|   106k|            word_type lo;
 1012|   106k|            DDproduct( dig, y, hi, lo );
 1013|   106k|            this_view[i] = lo + carry;
 1014|   106k|            dig = this_view[i+1];
 1015|   106k|            carry = hi + (this_view[i] < lo);
 1016|   106k|        }
 1017|   111k|        this_view[i] = carry;
 1018|   111k|        reduce();
 1019|   111k|        return *this;
 1020|   111k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1799|  20.1k|    {
 1800|  20.1k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1801|  20.1k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1802|  20.1k|        qHi = A/(dHi + 1);
 1803|       |        // This initial guess of qHi may be too small.
 1804|  20.1k|        middle = qHi * dLo;
 1805|  20.1k|        left = qHi * dHi;
 1806|  20.1k|        x = B - (middle << word_type_half_bits);
 1807|  20.1k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1808|  20.1k|        B = x;
 1809|  20.1k|        dLo1 = dLo << word_type_half_bits;
 1810|       |        // Increase qHi if necessary:
 1811|  20.1k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1811:17): [True: 0, False: 20.1k]
  |  Branch (1811:29): [True: 0, False: 20.1k]
  |  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|  20.1k|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1819|       |        // This initial guess of qLo may be too small.
 1820|  20.1k|        right = qLo * dLo;
 1821|  20.1k|        middle = qLo * dHi;
 1822|  20.1k|        x = B - right;
 1823|  20.1k|        A -= (x > B);
 1824|  20.1k|        B = x;
 1825|  20.1k|        x = B - (middle << word_type_half_bits);
 1826|  20.1k|            A -= (middle >> word_type_half_bits) + (x > B);
 1827|  20.1k|        B = x;
 1828|       |        // Increase qLo if necessary:
 1829|  21.7k|        while ( A || B >= d )
  ------------------
  |  Branch (1829:17): [True: 0, False: 21.7k]
  |  Branch (1829:22): [True: 1.57k, False: 20.1k]
  ------------------
 1830|  1.57k|        {
 1831|  1.57k|            x = B - d;
 1832|  1.57k|            A -= (x > B);
 1833|  1.57k|            B = x;
 1834|  1.57k|            qLo++;
 1835|  1.57k|        }
 1836|  20.1k|        return (qHi << word_type_half_bits) + qLo;
 1837|  20.1k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1841|  20.1k|    {
 1842|  20.1k|        word_type hi, lo, d, carry = 0;
 1843|  20.1k|        size_type i;
 1844|  40.2k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1844:22): [True: 20.1k, False: 20.1k]
  ------------------
 1845|  20.1k|        {
 1846|  20.1k|            DDproduct( b[i], q, hi, lo );
 1847|  20.1k|            d = a[i];
 1848|  20.1k|            a[i] -= lo;
 1849|  20.1k|            if ( a[i] > d )
  ------------------
  |  Branch (1849:18): [True: 6.42k, False: 13.6k]
  ------------------
 1850|  6.42k|                carry++;
 1851|  20.1k|            d = a[i + 1];
 1852|  20.1k|            a[i + 1] -= hi + carry;
 1853|  20.1k|            carry = a[i + 1] > d;
 1854|  20.1k|        }
 1855|  20.1k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1855:14): [True: 0, False: 20.1k]
  ------------------
 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|  20.1k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1901|  20.1k|    {
 1902|  20.1k|        if (secondDone)
  ------------------
  |  Branch (1902:13): [True: 0, False: 20.1k]
  ------------------
 1903|      0|        {
 1904|      0|            rem /= max_word;
 1905|      0|        }
 1906|  20.1k|        if ( x > 0 )
  ------------------
  |  Branch (1906:14): [True: 0, False: 20.1k]
  ------------------
 1907|      0|        {
 1908|      0|            rem >>= x;
 1909|      0|        }
 1910|  20.1k|        else
 1911|  20.1k|        {
 1912|  20.1k|            rem.reduce();
 1913|  20.1k|        }
 1914|  20.1k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  56.7k|        : storage_(n, alloc)
  694|  56.7k|    {
  695|  56.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  56.7k|        : word_allocator_type(alloc)
  361|  56.7k|    {
  362|  56.7k|        ::new (&inlined_) inlined_storage(n);
  363|  56.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  56.7k|            : is_allocated_(false),
  126|  56.7k|            is_negative_(n < 0),
  127|  56.7k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 24.2k, False: 32.4k]
  ------------------
  128|  56.7k|        {
  129|  56.7k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 15.8k, False: 40.8k]
  ------------------
  130|  56.7k|            values_[1] = 0;
  131|  56.7k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  708|  1.24M|    {
  709|  1.24M|        storage_.destroy();
  710|  1.24M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  487|  1.24M|    {
  488|  1.24M|        if (is_allocated())
  ------------------
  |  Branch (488:13): [True: 102k, False: 1.13M]
  ------------------
  489|   102k|        {
  490|   102k|            allocated_.destroy(get_allocator());
  491|   102k|            allocated_.~allocated_storage();
  492|   102k|        }
  493|  1.13M|        else
  494|  1.13M|        {
  495|  1.13M|            inlined_.~inlined_storage();
  496|  1.13M|        }
  497|  1.24M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  246|   102k|        {
  247|   102k|            if (data_ != nullptr)
  ------------------
  |  Branch (247:17): [True: 102k, False: 0]
  ------------------
  248|   102k|            {
  249|   102k|                real_allocator_type alloc(a);
  250|   102k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  251|   102k|            }
  252|   102k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEcvT_IlvEEv:
 1275|  22.9k|    {
 1276|  22.9k|        auto this_view = get_storage_view();
 1277|  22.9k|        Integer x = 0;
 1278|  22.9k|        if (this_view.size() > 0)
  ------------------
  |  Branch (1278:13): [True: 19.7k, False: 3.21k]
  ------------------
 1279|  19.7k|        {
 1280|  19.7k|            x = static_cast<Integer>(this_view[0]);
 1281|  19.7k|        }
 1282|       |
 1283|  22.9k|        return is_negative() ? x*(-1) : x;
  ------------------
  |  Branch (1283:16): [True: 5.71k, False: 17.2k]
  ------------------
 1284|  22.9k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12write_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1359|   111k|    {
 1360|   111k|        basic_bigint<Allocator> v(*this);
 1361|   111k|        auto v_view = v.get_storage_view();
 1362|       |
 1363|   111k|        size_type len = (v_view.size() * word_type_bits / 3) + 2;
 1364|   111k|        data.reserve(len);
 1365|       |
 1366|   111k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1366:14): [True: 1.74k, False: 109k]
  ------------------
 1367|  1.74k|        {
 1368|  1.74k|            data.push_back('0');
 1369|  1.74k|        }
 1370|   109k|        else
 1371|   109k|        {
 1372|   109k|            word_type r;
 1373|   109k|            basic_bigint<Allocator> R(get_allocator());
 1374|   109k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1375|       |
 1376|   109k|            do
 1377|   185k|            {
 1378|   185k|                v.divide( LP10, v, R, true );
 1379|   185k|                v_view = v.get_storage_view();
 1380|       |
 1381|   185k|                auto R_view = R.get_storage_view();
 1382|   185k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1382:22): [True: 144k, False: 40.6k]
  ------------------
 1383|  2.28M|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1383:38): [True: 2.20M, False: 75.2k]
  ------------------
 1384|  2.20M|                {
 1385|  2.20M|                    data.push_back(char(r % 10u + '0'));
 1386|  2.20M|                    r /= 10u;
 1387|  2.20M|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1387:26): [True: 109k, False: 2.09M]
  ------------------
 1388|   109k|                        break;
 1389|  2.20M|                }
 1390|   185k|            } 
 1391|   185k|            while ( v_view.size() > 0);
  ------------------
  |  Branch (1391:21): [True: 75.2k, False: 109k]
  ------------------
 1392|       |
 1393|   109k|            if (is_negative())
  ------------------
  |  Branch (1393:17): [True: 15.8k, False: 93.9k]
  ------------------
 1394|  15.8k|            {
 1395|  15.8k|                data.push_back('-');
 1396|  15.8k|            }
 1397|   109k|            std::reverse(data.begin(),data.end());
 1398|   109k|        }
 1399|   111k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  644|   109k|        : storage_(alloc)
  645|   109k|    {
  646|   109k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEEl:
 1481|  22.6k|    {
 1482|  22.6k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1482:15): [True: 15.8k, False: 6.80k]
  ------------------
 1483|  22.6k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IjEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  15.8k|        : storage_(n, alloc)
  694|  15.8k|    {
  695|  15.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IjEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  15.8k|        : word_allocator_type(alloc)
  361|  15.8k|    {
  362|  15.8k|        ::new (&inlined_) inlined_storage(n);
  363|  15.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IjEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  15.8k|            : is_allocated_(false),
  139|  15.8k|            is_negative_(false),
  140|  15.8k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 373, False: 15.4k]
  ------------------
  141|  15.8k|        {
  142|  15.8k|            values_[0] = n;
  143|  15.8k|            values_[1] = 0;
  144|  15.8k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLIjEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  889|  6.80k|    {
  890|  6.80k|        if ( is_negative())
  ------------------
  |  Branch (890:14): [True: 0, False: 6.80k]
  ------------------
  891|      0|            return *this -= -basic_bigint<Allocator>(y);
  892|       |
  893|  6.80k|        word_type d;
  894|  6.80k|        word_type carry = 0;
  895|       |
  896|  6.80k|        auto this_view = get_storage_view();
  897|  6.80k|        resize(this_view.size() + 1);
  898|       |
  899|  6.80k|        this_view = get_storage_view();
  900|  6.80k|        const size_type this_size = this_view.size();
  901|  6.80k|        size_type y_size = 1;
  902|       |
  903|  6.80k|        d = this_view[0] + carry;
  904|  6.80k|        carry = d < carry;
  905|  6.80k|        this_view[0] = d + y;
  906|  6.80k|        if (this_view[0] < d)
  ------------------
  |  Branch (906:13): [True: 554, False: 6.24k]
  ------------------
  907|    554|            carry = 1;
  908|       |
  909|  7.35k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (909:36): [True: 5.45k, False: 1.90k]
  |  Branch (909:53): [True: 554, False: 4.89k]
  ------------------
  910|    554|        {
  911|    554|            d = this_view[i] + carry;
  912|    554|            carry = d < carry;
  913|    554|            this_view[i] = d;
  914|    554|        }
  915|  6.80k|        reduce();
  916|  6.80k|        return *this;
  917|  6.80k|    }

_ZN8jsoncons6binary13native_to_bigItNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  6.02k|    {
  128|  6.02k|        T val2 = byte_swap(val);
  129|  6.02k|        uint8_t buf[sizeof(T)];
  130|  6.02k|        std::memcpy(buf, &val2, sizeof(T));
  131|  6.02k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 12.0k, False: 6.02k]
  ------------------
  132|  12.0k|        {
  133|  12.0k|            *d_first++ = item;
  134|  12.0k|        }
  135|  6.02k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  18.7k|    {
   29|  18.7k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  18.7k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  18.7k|#      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|  18.7k|    }
_ZN8jsoncons6binary13native_to_bigIjNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  22.1k|    {
  128|  22.1k|        T val2 = byte_swap(val);
  129|  22.1k|        uint8_t buf[sizeof(T)];
  130|  22.1k|        std::memcpy(buf, &val2, sizeof(T));
  131|  22.1k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 88.5k, False: 22.1k]
  ------------------
  132|  88.5k|        {
  133|  88.5k|            *d_first++ = item;
  134|  88.5k|        }
  135|  22.1k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   258k|    {
   40|   258k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   258k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|   258k|#  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|   258k|    }
_ZN8jsoncons6binary13native_to_bigImNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  17.2k|    {
  128|  17.2k|        T val2 = byte_swap(val);
  129|  17.2k|        uint8_t buf[sizeof(T)];
  130|  17.2k|        std::memcpy(buf, &val2, sizeof(T));
  131|  17.2k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 137k, False: 17.2k]
  ------------------
  132|   137k|        {
  133|   137k|            *d_first++ = item;
  134|   137k|        }
  135|  17.2k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   205k|    {
   52|   205k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   205k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|   205k|#  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|   205k|    }
_ZN8jsoncons6binary13native_to_bigIaNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|   174k|    {
  128|   174k|        T val2 = byte_swap(val);
  129|   174k|        uint8_t buf[sizeof(T)];
  130|   174k|        std::memcpy(buf, &val2, sizeof(T));
  131|   174k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 174k, False: 174k]
  ------------------
  132|   174k|        {
  133|   174k|            *d_first++ = item;
  134|   174k|        }
  135|   174k|    }
_ZN8jsoncons6binary9byte_swapIaEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  1.50M|    {
   22|  1.50M|        return val;
   23|  1.50M|    }
_ZN8jsoncons6binary13native_to_bigIsNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  12.5k|    {
  128|  12.5k|        T val2 = byte_swap(val);
  129|  12.5k|        uint8_t buf[sizeof(T)];
  130|  12.5k|        std::memcpy(buf, &val2, sizeof(T));
  131|  12.5k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 25.1k, False: 12.5k]
  ------------------
  132|  25.1k|        {
  133|  25.1k|            *d_first++ = item;
  134|  25.1k|        }
  135|  12.5k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  43.3k|    {
   29|  43.3k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  43.3k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  43.3k|#      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|  43.3k|    }
_ZN8jsoncons6binary13native_to_bigIiNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  6.56k|    {
  128|  6.56k|        T val2 = byte_swap(val);
  129|  6.56k|        uint8_t buf[sizeof(T)];
  130|  6.56k|        std::memcpy(buf, &val2, sizeof(T));
  131|  6.56k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 26.2k, False: 6.56k]
  ------------------
  132|  26.2k|        {
  133|  26.2k|            *d_first++ = item;
  134|  26.2k|        }
  135|  6.56k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  25.1k|    {
   40|  25.1k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  25.1k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  25.1k|#  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|  25.1k|    }
_ZN8jsoncons6binary13native_to_bigIlNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  2.29k|    {
  128|  2.29k|        T val2 = byte_swap(val);
  129|  2.29k|        uint8_t buf[sizeof(T)];
  130|  2.29k|        std::memcpy(buf, &val2, sizeof(T));
  131|  2.29k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 18.3k, False: 2.29k]
  ------------------
  132|  18.3k|        {
  133|  18.3k|            *d_first++ = item;
  134|  18.3k|        }
  135|  2.29k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  43.8k|    {
   52|  43.8k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  43.8k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  43.8k|#  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|  43.8k|    }
_ZN8jsoncons6binary13native_to_bigIfNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  60.9k|    {
  128|  60.9k|        T val2 = byte_swap(val);
  129|  60.9k|        uint8_t buf[sizeof(T)];
  130|  60.9k|        std::memcpy(buf, &val2, sizeof(T));
  131|  60.9k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 243k, False: 60.9k]
  ------------------
  132|   243k|        {
  133|   243k|            *d_first++ = item;
  134|   243k|        }
  135|  60.9k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|   181k|    {
   65|   181k|        uint32_t x;
   66|   181k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|   181k|        uint32_t y = byte_swap(x);
   68|   181k|        T val2;
   69|   181k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|   181k|        return val2;
   71|   181k|    }
_ZN8jsoncons6binary13native_to_bigIdNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  27.2k|    {
  128|  27.2k|        T val2 = byte_swap(val);
  129|  27.2k|        uint8_t buf[sizeof(T)];
  130|  27.2k|        std::memcpy(buf, &val2, sizeof(T));
  131|  27.2k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 218k, False: 27.2k]
  ------------------
  132|   218k|        {
  133|   218k|            *d_first++ = item;
  134|   218k|        }
  135|  27.2k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|  92.7k|    {
   77|  92.7k|        uint64_t x;
   78|  92.7k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|  92.7k|        uint64_t y = byte_swap(x);
   80|  92.7k|        T val2;
   81|  92.7k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|  92.7k|        return val2;
   83|  92.7k|    }
_ZN8jsoncons6binary13big_to_nativeIfNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   120k|    {
  183|   120k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 120k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   120k|        T val;
  188|   120k|        std::memcpy(&val,first,sizeof(T));
  189|   120k|        return byte_swap(val);
  190|   120k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  65.5k|    {
  183|  65.5k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 65.5k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  65.5k|        T val;
  188|  65.5k|        std::memcpy(&val,first,sizeof(T));
  189|  65.5k|        return byte_swap(val);
  190|  65.5k|    }
_ZN8jsoncons6binary13big_to_nativeItNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  12.7k|    {
  183|  12.7k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 12.7k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  12.7k|        T val;
  188|  12.7k|        std::memcpy(&val,first,sizeof(T));
  189|  12.7k|        return byte_swap(val);
  190|  12.7k|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  55.3k|    {
  183|  55.3k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 55.3k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  55.3k|        T val;
  188|  55.3k|        std::memcpy(&val,first,sizeof(T));
  189|  55.3k|        return byte_swap(val);
  190|  55.3k|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  95.2k|    {
  183|  95.2k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 95.2k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  95.2k|        T val;
  188|  95.2k|        std::memcpy(&val,first,sizeof(T));
  189|  95.2k|        return byte_swap(val);
  190|  95.2k|    }
_ZN8jsoncons6binary13big_to_nativeIaNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  1.32M|    {
  183|  1.32M|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 1.32M]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  1.32M|        T val;
  188|  1.32M|        std::memcpy(&val,first,sizeof(T));
  189|  1.32M|        return byte_swap(val);
  190|  1.32M|    }
_ZN8jsoncons6binary13big_to_nativeIsNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  30.7k|    {
  183|  30.7k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 30.7k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  30.7k|        T val;
  188|  30.7k|        std::memcpy(&val,first,sizeof(T));
  189|  30.7k|        return byte_swap(val);
  190|  30.7k|    }
_ZN8jsoncons6binary13big_to_nativeIiNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  18.5k|    {
  183|  18.5k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 18.5k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  18.5k|        T val;
  188|  18.5k|        std::memcpy(&val,first,sizeof(T));
  189|  18.5k|        return byte_swap(val);
  190|  18.5k|    }
_ZN8jsoncons6binary13big_to_nativeIlNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  41.5k|    {
  183|  41.5k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 41.5k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  41.5k|        T val;
  188|  41.5k|        std::memcpy(&val,first,sizeof(T));
  189|  41.5k|        return byte_swap(val);
  190|  41.5k|    }
_ZN8jsoncons6binary13big_to_nativeIhNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  94.5k|    {
  183|  94.5k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 94.5k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  94.5k|        T val;
  188|  94.5k|        std::memcpy(&val,first,sizeof(T));
  189|  94.5k|        return byte_swap(val);
  190|  94.5k|    }
_ZN8jsoncons6binary9byte_swapIhEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  94.5k|    {
   22|  94.5k|        return val;
   23|  94.5k|    }

_ZN8jsoncons6detail23bytes_to_base64_genericIPKhNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS4_9enable_ifIXsr3std7is_sameINS4_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESD_SD_PKcRT0_:
   44|   498k|    {
   45|   498k|        std::size_t count = 0;
   46|   498k|        unsigned char a3[3];
   47|   498k|        unsigned char a4[4];
   48|   498k|        unsigned char fill = alphabet[64];
   49|   498k|        int i = 0;
   50|   498k|        int j = 0;
   51|       |
   52|  5.71M|        while (first != last)
  ------------------
  |  Branch (52:16): [True: 5.21M, False: 498k]
  ------------------
   53|  5.21M|        {
   54|  5.21M|            a3[i++] = *first++;
   55|  5.21M|            if (i == 3)
  ------------------
  |  Branch (55:17): [True: 1.45M, False: 3.76M]
  ------------------
   56|  1.45M|            {
   57|  1.45M|                a4[0] = (a3[0] & 0xfc) >> 2;
   58|  1.45M|                a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   59|  1.45M|                a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   60|  1.45M|                a4[3] = a3[2] & 0x3f;
   61|       |
   62|  7.25M|                for (i = 0; i < 4; i++) 
  ------------------
  |  Branch (62:29): [True: 5.80M, False: 1.45M]
  ------------------
   63|  5.80M|                {
   64|  5.80M|                    result.push_back(alphabet[a4[i]]);
   65|  5.80M|                    ++count;
   66|  5.80M|                }
   67|  1.45M|                i = 0;
   68|  1.45M|            }
   69|  5.21M|        }
   70|       |
   71|   498k|        if (i > 0)
  ------------------
  |  Branch (71:13): [True: 451k, False: 47.6k]
  ------------------
   72|   451k|        {
   73|   941k|            for (j = i; j < 3; ++j) 
  ------------------
  |  Branch (73:25): [True: 490k, False: 451k]
  ------------------
   74|   490k|            {
   75|   490k|                a3[j] = 0;
   76|   490k|            }
   77|       |
   78|   451k|            a4[0] = (a3[0] & 0xfc) >> 2;
   79|   451k|            a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   80|   451k|            a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   81|       |
   82|  1.76M|            for (j = 0; j < i + 1; ++j) 
  ------------------
  |  Branch (82:25): [True: 1.31M, False: 451k]
  ------------------
   83|  1.31M|            {
   84|  1.31M|                result.push_back(alphabet[a4[j]]);
   85|  1.31M|                ++count;
   86|  1.31M|            }
   87|       |
   88|   451k|            if (fill != 0)
  ------------------
  |  Branch (88:17): [True: 0, False: 451k]
  ------------------
   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|   451k|        }
   97|       |
   98|   498k|        return count;
   99|   498k|    }
_ZNK8jsoncons16byte_string_view5beginEv:
  409|  1.09M|        {
  410|  1.09M|            return data_;
  411|  1.09M|        }
_ZNK8jsoncons16byte_string_view3endEv:
  413|  1.09M|        {
  414|  1.09M|            return data_ + size_;
  415|  1.09M|        }
_ZN8jsoncons18bytes_to_base64urlIPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  177|   498k|    {
  178|   498k|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  179|   498k|                                                      "abcdefghijklmnopqrstuvwxyz"
  180|   498k|                                                      "0123456789-_"
  181|   498k|                                                      "\0";
  182|   498k|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  183|   498k|    }
_ZNK8jsoncons16byte_string_view4dataEv:
  399|  1.69M|        {
  400|  1.69M|            return data_;
  401|  1.69M|        }
_ZNK8jsoncons16byte_string_view4sizeEv:
  403|  2.29M|        {
  404|  2.29M|            return size_;
  405|  2.29M|        }
_ZN8jsoncons16byte_string_viewC2EPKhm:
  362|  2.79M|            : data_(data), size_(length)
  363|  2.79M|        {
  364|  2.79M|        }

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

_ZN8jsoncons16decstr_to_doubleEPKcmRd:
  866|  5.77k|{
  867|  5.77k|    const char* cur = s+length;
  868|  5.77k|    char *end = nullptr;
  869|  5.77k|    val = strtod(s, &end);
  870|  5.77k|    const char* str_end = end;
  871|  5.77k|    if (JSONCONS_UNLIKELY(end < cur))
  ------------------
  |  |   78|  5.77k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5.77k]
  |  |  ------------------
  ------------------
  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.77k|    if (JSONCONS_UNLIKELY(val <= -HUGE_VAL || val >= HUGE_VAL))
  ------------------
  |  |   78|  11.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5.77k]
  |  |  |  Branch (78:50): [True: 0, False: 5.77k]
  |  |  |  Branch (78:50): [True: 0, False: 5.77k]
  |  |  ------------------
  ------------------
  888|      0|    {
  889|      0|        return to_number_result<char>{str_end, std::errc::result_out_of_range};
  890|      0|    }
  891|  5.77k|    return to_number_result<char>{str_end};
  892|  5.77k|}
_ZN8jsoncons16to_number_resultIcEC2EPKc:
  137|  5.77k|        : ptr(ptr_), ec(std::errc{})
  138|  5.77k|    {
  139|  5.77k|    }

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   559k|    {
 1148|   559k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   559k|        const uint8_t* end = it + length;
 1150|       |
 1151|   559k|        unicode_errc  result{};
 1152|  12.7M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 12.1M, False: 559k]
  ------------------
 1153|  12.1M|        {
 1154|  12.1M|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 10.5M, False: 1.62M]
  ------------------
 1155|  10.5M|            {
 1156|  73.9M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|  21.1M|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 10.5M, False: 650]
  |  |  |  Branch (281:34): [True: 10.5M, False: 285]
  |  |  |  Branch (281:36): [True: 10.5M, False: 274]
  |  |  |  Branch (281:38): [True: 10.5M, False: 643]
  |  |  |  Branch (281:40): [True: 10.5M, False: 357]
  |  |  |  Branch (281:42): [True: 10.5M, False: 227]
  |  |  |  Branch (281:44): [True: 10.5M, False: 244]
  |  |  |  Branch (281:46): [True: 10.5M, False: 265]
  |  |  ------------------
  ------------------
 1157|  10.5M|                continue;
 1158|  73.9M|            }
 1159|  1.63M|    non_ascii:
 1160|  1.63M|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  1.63M|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 0, False: 1.63M]
  ------------------
 1162|      0|            {
 1163|      0|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|      0|            }
 1165|  1.63M|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 0, False: 1.63M]
  ------------------
 1166|      0|            {
 1167|      0|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|      0|            }
 1169|  1.63M|            it += len;
 1170|  1.63M|        }
 1171|   559k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   559k|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  1.64M|    {
  306|  1.64M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  1.64M|        const uint8_t* end = it+length;
  308|       |
  309|  1.64M|        uint8_t byte;
  310|  1.64M|        switch (length) {
  311|     32|        default:
  ------------------
  |  Branch (311:9): [True: 32, False: 1.64M]
  ------------------
  312|     32|            return unicode_errc::over_long_utf8_sequence;
  313|  1.51k|        case 4:
  ------------------
  |  Branch (313:9): [True: 1.51k, False: 1.64M]
  ------------------
  314|  1.51k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 5, False: 1.50k]
  ------------------
  315|      5|                return unicode_errc::bad_continuation_byte;
  316|  1.50k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.50k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  3.58k|        case 3:
  ------------------
  |  Branch (317:9): [True: 2.08k, False: 1.64M]
  ------------------
  318|  3.58k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 12, False: 3.57k]
  ------------------
  319|     12|                return unicode_errc::bad_continuation_byte;
  320|  3.57k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  3.57k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  8.20k|        case 2:
  ------------------
  |  Branch (321:9): [True: 4.62k, False: 1.64M]
  ------------------
  322|  8.20k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 35, False: 8.16k]
  ------------------
  323|     35|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  8.16k|            switch (*it) 
  326|  8.16k|            {
  327|       |                // no fall-through in this inner switch
  328|    717|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 717, False: 7.45k]
  |  Branch (328:32): [True: 2, False: 715]
  ------------------
  329|  1.17k|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 1.17k, False: 6.99k]
  |  Branch (329:32): [True: 5, False: 1.17k]
  ------------------
  330|  1.17k|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 600, False: 7.56k]
  |  Branch (330:32): [True: 5, False: 595]
  ------------------
  331|    612|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 612, False: 7.55k]
  |  Branch (331:32): [True: 4, False: 608]
  ------------------
  332|  5.06k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 5.06k, False: 3.10k]
  |  Branch (332:32): [True: 0, False: 5.06k]
  ------------------
  333|  8.16k|            }
  334|       |
  335|  8.15k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  8.15k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  1.64M|        case 1:
  ------------------
  |  Branch (336:9): [True: 1.63M, False: 8.25k]
  ------------------
  337|  1.64M|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 8.20k, False: 1.63M]
  |  Branch (337:32): [True: 57, False: 8.15k]
  ------------------
  338|     57|                return unicode_errc::source_illegal;
  339|  1.64M|            break;
  340|  1.64M|        }
  341|  1.64M|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 2, False: 1.64M]
  ------------------
  342|      2|            return unicode_errc::source_illegal;
  343|       |
  344|  1.64M|        return unicode_errc();
  345|  1.64M|    }
_ZN8jsoncons14unicode_traits8validateIhEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   759k|    {
 1148|   759k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   759k|        const uint8_t* end = it + length;
 1150|       |
 1151|   759k|        unicode_errc  result{};
 1152|   949k|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 189k, False: 759k]
  ------------------
 1153|   189k|        {
 1154|   189k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 178k, False: 11.0k]
  ------------------
 1155|   178k|            {
 1156|  1.23M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|   356k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 177k, False: 1.33k]
  |  |  |  Branch (281:34): [True: 176k, False: 387]
  |  |  |  Branch (281:36): [True: 176k, False: 379]
  |  |  |  Branch (281:38): [True: 176k, False: 278]
  |  |  |  Branch (281:40): [True: 175k, False: 300]
  |  |  |  Branch (281:42): [True: 175k, False: 233]
  |  |  |  Branch (281:44): [True: 175k, False: 223]
  |  |  |  Branch (281:46): [True: 174k, False: 359]
  |  |  ------------------
  ------------------
 1157|   174k|                continue;
 1158|  1.23M|            }
 1159|  14.5k|    non_ascii:
 1160|  14.5k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  14.5k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 36, False: 14.5k]
  ------------------
 1162|     36|            {
 1163|     36|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     36|            }
 1165|  14.5k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 159, False: 14.3k]
  ------------------
 1166|    159|            {
 1167|    159|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    159|            }
 1169|  14.3k|            it += len;
 1170|  14.3k|        }
 1171|   759k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   759k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  11.7M|{
   43|  11.7M|    using char_type = typename Result::value_type;
   44|       |
   45|  11.7M|    char_type buf[255];
   46|  11.7M|    char_type *p = buf;
   47|  11.7M|    const char_type* last = buf+255;
   48|       |
   49|  11.7M|    bool is_negative = value < 0;
   50|       |
   51|  11.7M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 11.7M]
  ------------------
   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|  11.7M|    else
   60|  11.7M|    {
   61|       |
   62|  11.7M|        do
   63|  15.9M|        {
   64|  15.9M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  15.9M|        }
   66|  15.9M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 4.17M, False: 11.7M]
  |  Branch (66:33): [True: 4.17M, False: 0]
  ------------------
   67|  11.7M|    }
   68|  11.7M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  11.7M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 11.7M]
  |  |  ------------------
  |  |   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|  11.7M|    std::size_t count = (p - buf);
   71|  11.7M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 11.7M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  27.6M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 15.9M, False: 11.7M]
  ------------------
   77|  15.9M|    {
   78|  15.9M|        result.push_back(*p);
   79|  15.9M|    }
   80|       |
   81|  11.7M|    return count;
   82|  11.7M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  2.84M|{
   43|  2.84M|    using char_type = typename Result::value_type;
   44|       |
   45|  2.84M|    char_type buf[255];
   46|  2.84M|    char_type *p = buf;
   47|  2.84M|    const char_type* last = buf+255;
   48|       |
   49|  2.84M|    bool is_negative = value < 0;
   50|       |
   51|  2.84M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 2.82M, False: 18.2k]
  ------------------
   52|  2.82M|    {
   53|  2.82M|        do
   54|  3.55M|        {
   55|  3.55M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  3.55M|        }
   57|  3.55M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 729k, False: 2.82M]
  |  Branch (57:33): [True: 729k, False: 0]
  ------------------
   58|  2.82M|    }
   59|  18.2k|    else
   60|  18.2k|    {
   61|       |
   62|  18.2k|        do
   63|   109k|        {
   64|   109k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|   109k|        }
   66|   109k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 91.6k, False: 18.2k]
  |  Branch (66:33): [True: 91.6k, False: 0]
  ------------------
   67|  18.2k|    }
   68|  2.84M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  2.84M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.84M]
  |  |  ------------------
  |  |   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|  2.84M|    std::size_t count = (p - buf);
   71|  2.84M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 2.82M, False: 18.2k]
  ------------------
   72|  2.82M|    {
   73|  2.82M|        result.push_back('-');
   74|  2.82M|        ++count;
   75|  2.82M|    }
   76|  6.50M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 3.66M, False: 2.84M]
  ------------------
   77|  3.66M|    {
   78|  3.66M|        result.push_back(*p);
   79|  3.66M|    }
   80|       |
   81|  2.84M|    return count;
   82|  2.84M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  97.5k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  97.5k|    {
  489|  97.5k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  97.5k|        struct lconv *lc = localeconv();
  491|  97.5k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 97.5k, False: 0]
  |  Branch (491:30): [True: 97.5k, False: 0]
  ------------------
  492|  97.5k|        {
  493|  97.5k|            decimal_point_ = lc->decimal_point[0];
  494|  97.5k|        }
  495|  97.5k|#endif
  496|  97.5k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  97.5k|    {
  504|  97.5k|        std::size_t count = 0;
  505|       |
  506|  97.5k|        char number_buffer[200];
  507|  97.5k|        int length = 0;
  508|       |
  509|  97.5k|        switch (float_format_)
  510|  97.5k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 97.5k]
  ------------------
  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: 97.5k]
  ------------------
  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|  97.5k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 97.5k, False: 0]
  ------------------
  552|  97.5k|            {
  553|  97.5k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 97.5k]
  ------------------
  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|  97.5k|                else
  563|  97.5k|                {
  564|  97.5k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 97.5k]
  ------------------
  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|  97.5k|                }             
  569|  97.5k|                break;
  570|  97.5k|            }
  571|  97.5k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 97.5k]
  ------------------
  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|  97.5k|        }
  575|  97.5k|        return count;
  576|  97.5k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  5.77k|{
  244|  5.77k|    const char *sbeg = buffer;
  245|  5.77k|    const char *send = sbeg + length;
  246|       |
  247|  5.77k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 5.77k, False: 0]
  ------------------
  248|  5.77k|    {
  249|  5.77k|        bool needs_dot = true;
  250|  78.3k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 72.5k, False: 5.77k]
  ------------------
  251|  72.5k|        {
  252|  72.5k|            switch (*q)
  253|  72.5k|            {
  254|  2.66k|            case '-':
  ------------------
  |  Branch (254:13): [True: 2.66k, False: 69.8k]
  ------------------
  255|  7.81k|            case '0':
  ------------------
  |  Branch (255:13): [True: 5.15k, False: 67.3k]
  ------------------
  256|  14.0k|            case '1':
  ------------------
  |  Branch (256:13): [True: 6.24k, False: 66.3k]
  ------------------
  257|  23.1k|            case '2':
  ------------------
  |  Branch (257:13): [True: 9.14k, False: 63.4k]
  ------------------
  258|  26.1k|            case '3':
  ------------------
  |  Branch (258:13): [True: 2.92k, False: 69.6k]
  ------------------
  259|  35.1k|            case '4':
  ------------------
  |  Branch (259:13): [True: 9.00k, False: 63.5k]
  ------------------
  260|  39.6k|            case '5':
  ------------------
  |  Branch (260:13): [True: 4.49k, False: 68.0k]
  ------------------
  261|  47.9k|            case '6':
  ------------------
  |  Branch (261:13): [True: 8.30k, False: 64.2k]
  ------------------
  262|  52.6k|            case '7':
  ------------------
  |  Branch (262:13): [True: 4.73k, False: 67.8k]
  ------------------
  263|  57.6k|            case '8':
  ------------------
  |  Branch (263:13): [True: 4.95k, False: 67.6k]
  ------------------
  264|  60.8k|            case '9':
  ------------------
  |  Branch (264:13): [True: 3.23k, False: 69.3k]
  ------------------
  265|  63.5k|            case '+':
  ------------------
  |  Branch (265:13): [True: 2.75k, False: 69.8k]
  ------------------
  266|  63.5k|                result.push_back(*q);
  267|  63.5k|                break;
  268|  3.40k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 3.40k, False: 69.1k]
  ------------------
  269|  3.40k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 72.5k]
  ------------------
  270|  3.40k|                result.push_back('e');
  271|  3.40k|                needs_dot = false;
  272|  3.40k|                break;
  273|  5.55k|            default:
  ------------------
  |  Branch (273:13): [True: 5.55k, False: 66.9k]
  ------------------
  274|  5.55k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 3.63k, False: 1.92k]
  ------------------
  275|  3.63k|                {
  276|  3.63k|                    needs_dot = false;
  277|  3.63k|                    result.push_back('.');
  278|  3.63k|                }
  279|  5.55k|                break;
  280|  72.5k|            }
  281|  72.5k|        }
  282|  5.77k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 2.13k, False: 3.63k]
  ------------------
  283|  2.13k|        {
  284|  2.13k|            result.push_back('.');
  285|  2.13k|            result.push_back('0');
  286|  2.13k|        }
  287|  5.77k|    }
  288|  5.77k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKciiiiRT_:
  171|  91.2k|{
  172|  91.2k|    int nb_digits = length;
  173|  91.2k|    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|  91.2k|    int kk = nb_digits + k;
  179|       |
  180|  91.2k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 54.4k, False: 36.8k]
  |  Branch (180:28): [True: 14.6k, False: 39.7k]
  ------------------
  181|  14.6k|    {
  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|   109k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 94.7k, False: 14.6k]
  ------------------
  186|  94.7k|        {
  187|  94.7k|            result.push_back(buffer[i]);
  188|  94.7k|        }
  189|  17.1k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 2.42k, False: 14.6k]
  ------------------
  190|  2.42k|        {
  191|  2.42k|            result.push_back('0');
  192|  2.42k|        }
  193|  14.6k|        result.push_back('.');
  194|  14.6k|        result.push_back('0');
  195|  14.6k|    } 
  196|  76.6k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 48.6k, False: 27.9k]
  |  Branch (196:24): [True: 8.88k, False: 39.7k]
  ------------------
  197|  8.88k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  31.7k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 22.8k, False: 8.88k]
  ------------------
  200|  22.8k|        {
  201|  22.8k|            result.push_back(buffer[i]);
  202|  22.8k|        }
  203|  8.88k|        result.push_back('.');
  204|   125k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 116k, False: 8.88k]
  ------------------
  205|   116k|        {
  206|   116k|            result.push_back(buffer[i]);
  207|   116k|        }
  208|  8.88k|    } 
  209|  67.7k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 41.3k, False: 26.3k]
  |  Branch (209:30): [True: 1.66k, False: 39.7k]
  ------------------
  210|  1.66k|    {
  211|  1.66k|        offset = 2 - kk;
  212|       |
  213|  1.66k|        result.push_back('0');
  214|  1.66k|        result.push_back('.');
  215|  4.23k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 2.57k, False: 1.66k]
  ------------------
  216|  2.57k|            result.push_back('0');
  217|  26.2k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 24.5k, False: 1.66k]
  ------------------
  218|  24.5k|        {
  219|  24.5k|            result.push_back(buffer[i]);
  220|  24.5k|        }
  221|  1.66k|    } 
  222|  66.0k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 1.03k, False: 65.0k]
  ------------------
  223|  1.03k|    {
  224|  1.03k|        result.push_back(buffer[0]);
  225|  1.03k|        result.push_back('e');
  226|  1.03k|        fill_exponent(kk - 1, result);
  227|  1.03k|    } 
  228|  65.0k|    else
  229|  65.0k|    {
  230|  65.0k|        result.push_back(buffer[0]);
  231|  65.0k|        result.push_back('.');
  232|   960k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 895k, False: 65.0k]
  ------------------
  233|   895k|        {
  234|   895k|            result.push_back(buffer[i]);
  235|   895k|        }
  236|  65.0k|        result.push_back('e');
  237|  65.0k|        fill_exponent(kk - 1, result);
  238|  65.0k|    }
  239|  91.2k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  66.0k|{
  137|  66.0k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 26.3k, False: 39.7k]
  ------------------
  138|  26.3k|    {
  139|  26.3k|        result.push_back('-');
  140|  26.3k|        K = -K;
  141|  26.3k|    }
  142|  39.7k|    else
  143|  39.7k|    {
  144|  39.7k|        result.push_back('+'); // compatibility with sprintf
  145|  39.7k|    }
  146|       |
  147|  66.0k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 493, False: 65.5k]
  ------------------
  148|    493|    {
  149|    493|        result.push_back('0'); // compatibility with sprintf
  150|    493|        result.push_back((char)('0' + K));
  151|    493|    }
  152|  65.5k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 40.8k, False: 24.7k]
  ------------------
  153|  40.8k|    {
  154|  40.8k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  40.8k|        result.push_back((char)('0' + K));
  156|  40.8k|    }
  157|  24.7k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 24.7k, False: 0]
  ------------------
  158|  24.7k|    {
  159|  24.7k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  24.7k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  24.7k|        result.push_back((char)('0' + K));
  162|  24.7k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  66.0k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  97.5k|{
  476|  97.5k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  97.5k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  97.5k|{
  367|  97.5k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 506, False: 97.0k]
  ------------------
  368|    506|    {
  369|    506|        result.push_back('0');
  370|    506|        result.push_back('.');
  371|    506|        result.push_back('0');
  372|    506|        return true;
  373|    506|    }
  374|       |
  375|  97.0k|    int length = 0;
  376|  97.0k|    int k;
  377|       |
  378|  97.0k|    char buffer[100];
  379|       |
  380|  97.0k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 75.5k, False: 21.4k]
  ------------------
  381|  97.0k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 91.2k, False: 5.77k]
  ------------------
  382|  91.2k|    {
  383|  91.2k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 73.5k, False: 17.7k]
  ------------------
  384|  73.5k|        {
  385|  73.5k|            result.push_back('-');
  386|  73.5k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  91.2k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  91.2k|        return true;
  391|  91.2k|    }
  392|  5.77k|    else
  393|  5.77k|    {
  394|  5.77k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  5.77k|    }
  396|  97.0k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  5.77k|{
  330|  5.77k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 5.77k]
  ------------------
  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.77k|    char buffer[100];
  339|  5.77k|    int precision = std::numeric_limits<double>::digits10;
  340|  5.77k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  5.77k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 5.77k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  5.77k|    double x{0};
  346|  5.77k|    auto res = decstr_to_double(buffer, length, x);
  347|  5.77k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 5.77k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  5.77k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 2.98k, False: 2.79k]
  ------------------
  352|  2.98k|    {
  353|  2.98k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  2.98k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  2.98k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 2.98k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  2.98k|    }
  360|  5.77k|    dump_buffer(buffer, length, decimal_point, result);
  361|  5.77k|    return true;
  362|  5.77k|}

_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEEC2EOS8_RKS9_:
   97|  6.42k|           : basic_msgpack_encoder(std::forward<Sink>(sink), msgpack_encode_options(), alloc)
   98|  6.42k|        {
   99|  6.42k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEEC2EOS8_RKNS0_22msgpack_encode_optionsERKS9_:
  104|  6.42k|           : sink_(std::forward<Sink>(sink)),
  105|  6.42k|             max_nesting_depth_(options.max_nesting_depth()),
  106|  6.42k|             alloc_(alloc)
  107|  6.42k|        {
  108|  6.42k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  204|   125k|        {
  205|   125k|            if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|   125k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 125k]
  |  |  ------------------
  ------------------
  206|      0|            {
  207|      0|                ec = msgpack_errc::max_nesting_depth_exceeded;
  208|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  209|      0|            } 
  210|   125k|            stack_.emplace_back(msgpack_container_type::array, length);
  211|   125k|            if (length <= 15)
  ------------------
  |  Branch (211:17): [True: 120k, False: 4.22k]
  ------------------
  212|   120k|            {
  213|       |                // fixarray
  214|   120k|                sink_.push_back(jsoncons::msgpack::msgpack_type::fixarray_base_type | (length & 0xf));
  215|   120k|            }
  216|  4.22k|            else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (216:22): [True: 1.68k, False: 2.54k]
  ------------------
  217|  1.68k|            {
  218|       |                // array 16
  219|  1.68k|                sink_.push_back(jsoncons::msgpack::msgpack_type::array16_type);
  220|  1.68k|                binary::native_to_big(static_cast<uint16_t>(length),std::back_inserter(sink_));
  221|  1.68k|            }
  222|  2.54k|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (222:22): [True: 2.54k, False: 0]
  ------------------
  223|  2.54k|            {
  224|       |                // array 32
  225|  2.54k|                sink_.push_back(jsoncons::msgpack::msgpack_type::array32_type);
  226|  2.54k|                binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  227|  2.54k|            }
  228|   125k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   125k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  229|   125k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_itemC2ENS0_22msgpack_container_typeEm:
   64|   149k|               : type_(type), length_(length)
   65|   149k|            {
   66|   149k|            }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE15visit_end_arrayERKNS_11ser_contextERNS3_10error_codeE:
  232|   110k|        {
  233|   110k|            JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   49|   110k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 110k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  234|       |
  235|   110k|            --nesting_depth_;
  236|       |
  237|   110k|            if (stack_.back().count() < stack_.back().length())
  ------------------
  |  Branch (237:17): [True: 495, False: 109k]
  ------------------
  238|    495|            {
  239|    495|                ec = msgpack_errc::too_few_items;
  240|    495|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    495|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  241|    495|            }
  242|   109k|            else if (stack_.back().count() > stack_.back().length())
  ------------------
  |  Branch (242:22): [True: 0, False: 109k]
  ------------------
  243|      0|            {
  244|      0|                ec = msgpack_errc::too_many_items;
  245|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  246|      0|            }
  247|       |
  248|   109k|            stack_.pop_back();
  249|   109k|            end_value();
  250|   109k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   109k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  251|   110k|        }
_ZNK8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item5countEv:
   74|   250k|            {
   75|   250k|                return is_object() ? index_/2 : index_;
  ------------------
  |  Branch (75:24): [True: 30.5k, False: 219k]
  ------------------
   76|   250k|            }
_ZNK8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item9is_objectEv:
   79|   250k|            {
   80|   250k|                return type_ == msgpack_container_type::object;
   81|   250k|            }
_ZNK8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item6lengthEv:
   69|   250k|            {
   70|   250k|                return length_;
   71|   250k|            }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9end_valueEv:
  755|  2.69M|        {
  756|  2.69M|            if (!stack_.empty())
  ------------------
  |  Branch (756:17): [True: 2.69M, False: 833]
  ------------------
  757|  2.69M|            {
  758|  2.69M|                ++stack_.back().index_;
  759|  2.69M|            }
  760|  2.69M|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  663|   845k|        {
  664|   845k|            switch (tag)
  665|   845k|            {
  666|  1.13k|                case semantic_tag::epoch_second:
  ------------------
  |  Branch (666:17): [True: 1.13k, False: 844k]
  ------------------
  667|  1.13k|                    write_timestamp(static_cast<int64_t>(val), 0);
  668|  1.13k|                    break;
  669|      0|                case semantic_tag::epoch_milli:
  ------------------
  |  Branch (669:17): [True: 0, False: 845k]
  ------------------
  670|      0|                {
  671|      0|                    if (val != 0)
  ------------------
  |  Branch (671:25): [True: 0, False: 0]
  ------------------
  672|      0|                    {
  673|      0|                        auto dv = std::div(static_cast<int64_t>(val), static_cast<int64_t>(millis_in_second));
  674|      0|                        int64_t seconds = dv.quot;
  675|      0|                        int64_t nanoseconds = dv.rem*nanos_in_milli;
  676|      0|                        if (nanoseconds < 0)
  ------------------
  |  Branch (676:29): [True: 0, False: 0]
  ------------------
  677|      0|                        {
  678|      0|                            nanoseconds = -nanoseconds; 
  679|      0|                        }
  680|      0|                        write_timestamp(seconds, nanoseconds);
  681|      0|                    }
  682|      0|                    else
  683|      0|                    {
  684|      0|                        write_timestamp(0, 0);
  685|      0|                    }
  686|      0|                    break;
  687|      0|                }
  688|      0|                case semantic_tag::epoch_nano:
  ------------------
  |  Branch (688:17): [True: 0, False: 845k]
  ------------------
  689|      0|                {
  690|      0|                    if (val != 0)
  ------------------
  |  Branch (690:25): [True: 0, False: 0]
  ------------------
  691|      0|                    {
  692|      0|                        auto dv = std::div(static_cast<int64_t>(val), static_cast<int64_t>(nanos_in_second));
  693|      0|                        int64_t seconds = dv.quot;
  694|      0|                        int64_t nanoseconds = dv.rem;
  695|      0|                        if (nanoseconds < 0)
  ------------------
  |  Branch (695:29): [True: 0, False: 0]
  ------------------
  696|      0|                        {
  697|      0|                            nanoseconds = -nanoseconds; 
  698|      0|                        }
  699|      0|                        write_timestamp(seconds, nanoseconds);
  700|      0|                    }
  701|      0|                    else
  702|      0|                    {
  703|      0|                        write_timestamp(0, 0);
  704|      0|                    }
  705|      0|                    break;
  706|      0|                }
  707|   844k|                default:
  ------------------
  |  Branch (707:17): [True: 844k, False: 1.13k]
  ------------------
  708|   844k|                {
  709|   844k|                    if (val <= static_cast<uint64_t>((std::numeric_limits<int8_t>::max)()))
  ------------------
  |  Branch (709:25): [True: 825k, False: 19.1k]
  ------------------
  710|   825k|                    {
  711|       |                        // positive fixnum stores 7-bit positive integer
  712|   825k|                        sink_.push_back(static_cast<uint8_t>(val));
  713|   825k|                    }
  714|  19.1k|                    else if (val <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (714:30): [True: 7.35k, False: 11.7k]
  ------------------
  715|  7.35k|                    {
  716|       |                        // uint 8 stores a 8-bit unsigned integer
  717|  7.35k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint8_type);
  718|  7.35k|                        sink_.push_back(static_cast<uint8_t>(val));
  719|  7.35k|                    }
  720|  11.7k|                    else if (val <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (720:30): [True: 868, False: 10.8k]
  ------------------
  721|    868|                    {
  722|       |                        // uint 16 stores a 16-bit big-endian unsigned integer
  723|    868|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint16_type);
  724|    868|                        binary::native_to_big(static_cast<uint16_t>(val),std::back_inserter(sink_));
  725|    868|                    }
  726|  10.8k|                    else if (val <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (726:30): [True: 9.03k, False: 1.85k]
  ------------------
  727|  9.03k|                    {
  728|       |                        // uint 32 stores a 32-bit big-endian unsigned integer
  729|  9.03k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint32_type);
  730|  9.03k|                        binary::native_to_big(static_cast<uint32_t>(val),std::back_inserter(sink_));
  731|  9.03k|                    }
  732|  1.85k|                    else if (val <= (std::numeric_limits<uint64_t>::max)())
  ------------------
  |  Branch (732:30): [True: 1.85k, False: 0]
  ------------------
  733|  1.85k|                    {
  734|       |                        // uint 64 stores a 64-bit big-endian unsigned integer
  735|  1.85k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint64_type);
  736|  1.85k|                        binary::native_to_big(static_cast<uint64_t>(val),std::back_inserter(sink_));
  737|  1.85k|                    }
  738|   844k|                    break;
  739|      0|                }
  740|   845k|            }
  741|   845k|            end_value();
  742|   845k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   845k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  743|   845k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE15write_timestampEll:
  268|  13.6k|        {
  269|  13.6k|            if ((seconds >> 34) == 0) 
  ------------------
  |  Branch (269:17): [True: 7.29k, False: 6.31k]
  ------------------
  270|  7.29k|            {
  271|  7.29k|                uint64_t data64 = (nanoseconds << 34) | seconds;
  272|  7.29k|                if ((data64 & 0xffffffff00000000L) == 0) 
  ------------------
  |  Branch (272:21): [True: 2.19k, False: 5.10k]
  ------------------
  273|  2.19k|                {
  274|       |                    // timestamp 32
  275|  2.19k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext4_type);
  276|  2.19k|                    sink_.push_back(0xff);
  277|  2.19k|                    binary::native_to_big(static_cast<uint32_t>(data64), std::back_inserter(sink_));
  278|  2.19k|                }
  279|  5.10k|                else 
  280|  5.10k|                {
  281|       |                    // timestamp 64
  282|  5.10k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext8_type);
  283|  5.10k|                    sink_.push_back(0xff);
  284|  5.10k|                    binary::native_to_big(static_cast<uint64_t>(data64), std::back_inserter(sink_));
  285|  5.10k|                }
  286|  7.29k|            }
  287|  6.31k|            else 
  288|  6.31k|            {
  289|       |                // timestamp 96
  290|  6.31k|                sink_.push_back(jsoncons::msgpack::msgpack_type::ext8_type);
  291|  6.31k|                sink_.push_back(0x0c); // 12
  292|  6.31k|                sink_.push_back(0xff);
  293|  6.31k|                binary::native_to_big(static_cast<uint32_t>(nanoseconds), std::back_inserter(sink_));
  294|  6.31k|                binary::native_to_big(static_cast<uint64_t>(seconds), std::back_inserter(sink_));
  295|  6.31k|            }
  296|  13.6k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  542|   201k|        {
  543|   201k|            switch (tag)
  544|   201k|            {
  545|      0|                case semantic_tag::epoch_second:
  ------------------
  |  Branch (545:17): [True: 0, False: 201k]
  ------------------
  546|      0|                    write_timestamp(val, 0);
  547|      0|                    break;
  548|      0|                case semantic_tag::epoch_milli:
  ------------------
  |  Branch (548:17): [True: 0, False: 201k]
  ------------------
  549|      0|                {
  550|      0|                    if (val != 0)
  ------------------
  |  Branch (550:25): [True: 0, False: 0]
  ------------------
  551|      0|                    {
  552|      0|                        auto dv = std::div(val,millis_in_second);
  553|      0|                        int64_t seconds = dv.quot;
  554|      0|                        int64_t nanoseconds = dv.rem*nanos_in_milli;
  555|      0|                        if (nanoseconds < 0)
  ------------------
  |  Branch (555:29): [True: 0, False: 0]
  ------------------
  556|      0|                        {
  557|      0|                            nanoseconds = -nanoseconds; 
  558|      0|                        }
  559|      0|                        write_timestamp(seconds, nanoseconds);
  560|      0|                    }
  561|      0|                    else
  562|      0|                    {
  563|      0|                        write_timestamp(0, 0);
  564|      0|                    }
  565|      0|                    break;
  566|      0|                }
  567|      0|                case semantic_tag::epoch_nano:
  ------------------
  |  Branch (567:17): [True: 0, False: 201k]
  ------------------
  568|      0|                {
  569|      0|                    if (val != 0)
  ------------------
  |  Branch (569:25): [True: 0, False: 0]
  ------------------
  570|      0|                    {
  571|      0|                        auto dv = std::div(val,static_cast<int64_t>(nanos_in_second));
  572|      0|                        int64_t seconds = dv.quot;
  573|      0|                        int64_t nanoseconds = dv.rem;
  574|      0|                        if (nanoseconds < 0)
  ------------------
  |  Branch (574:29): [True: 0, False: 0]
  ------------------
  575|      0|                        {
  576|      0|                            nanoseconds = -nanoseconds; 
  577|      0|                        }
  578|      0|                        write_timestamp(seconds, nanoseconds);
  579|      0|                    }
  580|      0|                    else
  581|      0|                    {
  582|      0|                        write_timestamp(0, 0);
  583|      0|                    }
  584|      0|                    break;
  585|      0|                }
  586|   201k|                default:
  ------------------
  |  Branch (586:17): [True: 201k, False: 0]
  ------------------
  587|   201k|                {
  588|   201k|                    if (val >= 0)
  ------------------
  |  Branch (588:25): [True: 5.74k, False: 195k]
  ------------------
  589|  5.74k|                    {
  590|  5.74k|                        if (val <= 0x7f)
  ------------------
  |  Branch (590:29): [True: 460, False: 5.28k]
  ------------------
  591|    460|                        {
  592|       |                            // positive fixnum stores 7-bit positive integer
  593|    460|                            sink_.push_back(static_cast<uint8_t>(val));
  594|    460|                        }
  595|  5.28k|                        else if (val <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (595:34): [True: 507, False: 4.77k]
  ------------------
  596|    507|                        {
  597|       |                            // uint 8 stores a 8-bit unsigned integer
  598|    507|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint8_type);
  599|    507|                            sink_.push_back(static_cast<uint8_t>(val));
  600|    507|                        }
  601|  4.77k|                        else if (val <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (601:34): [True: 487, False: 4.29k]
  ------------------
  602|    487|                        {
  603|       |                            // uint 16 stores a 16-bit big-endian unsigned integer
  604|    487|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint16_type);
  605|    487|                            binary::native_to_big(static_cast<uint16_t>(val),std::back_inserter(sink_));
  606|    487|                        }
  607|  4.29k|                        else if (val <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (607:34): [True: 334, False: 3.95k]
  ------------------
  608|    334|                        {
  609|       |                            // uint 32 stores a 32-bit big-endian unsigned integer
  610|    334|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint32_type);
  611|    334|                            binary::native_to_big(static_cast<uint32_t>(val),std::back_inserter(sink_));
  612|    334|                        }
  613|  3.95k|                        else if (val <= (std::numeric_limits<int64_t>::max)())
  ------------------
  |  Branch (613:34): [True: 3.95k, False: 0]
  ------------------
  614|  3.95k|                        {
  615|       |                            // int 64 stores a 64-bit big-endian signed integer
  616|  3.95k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint64_type);
  617|  3.95k|                            binary::native_to_big(static_cast<uint64_t>(val),std::back_inserter(sink_));
  618|  3.95k|                        }
  619|  5.74k|                    }
  620|   195k|                    else
  621|   195k|                    {
  622|   195k|                        if (val >= -32)
  ------------------
  |  Branch (622:29): [True: 127k, False: 68.3k]
  ------------------
  623|   127k|                        {
  624|       |                            // negative fixnum stores 5-bit negative integer
  625|   127k|                            binary::native_to_big(static_cast<int8_t>(val), std::back_inserter(sink_));
  626|   127k|                        }
  627|  68.3k|                        else if (val >= (std::numeric_limits<int8_t>::lowest)())
  ------------------
  |  Branch (627:34): [True: 46.9k, False: 21.4k]
  ------------------
  628|  46.9k|                        {
  629|       |                            // int 8 stores a 8-bit signed integer
  630|  46.9k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::int8_type);
  631|  46.9k|                            binary::native_to_big(static_cast<int8_t>(val),std::back_inserter(sink_));
  632|  46.9k|                        }
  633|  21.4k|                        else if (val >= (std::numeric_limits<int16_t>::lowest)())
  ------------------
  |  Branch (633:34): [True: 12.5k, False: 8.86k]
  ------------------
  634|  12.5k|                        {
  635|       |                            // int 16 stores a 16-bit big-endian signed integer
  636|  12.5k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::int16_type);
  637|  12.5k|                            binary::native_to_big(static_cast<int16_t>(val),std::back_inserter(sink_));
  638|  12.5k|                        }
  639|  8.86k|                        else if (val >= (std::numeric_limits<int32_t>::lowest)())
  ------------------
  |  Branch (639:34): [True: 6.56k, False: 2.29k]
  ------------------
  640|  6.56k|                        {
  641|       |                            // int 32 stores a 32-bit big-endian signed integer
  642|  6.56k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::int32_type);
  643|  6.56k|                            binary::native_to_big(static_cast<int32_t>(val),std::back_inserter(sink_));
  644|  6.56k|                        }
  645|  2.29k|                        else if (val >= (std::numeric_limits<int64_t>::lowest)())
  ------------------
  |  Branch (645:34): [True: 2.29k, False: 0]
  ------------------
  646|  2.29k|                        {
  647|       |                            // int 64 stores a 64-bit big-endian signed integer
  648|  2.29k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::int64_type);
  649|  2.29k|                            binary::native_to_big(static_cast<int64_t>(val),std::back_inserter(sink_));
  650|  2.29k|                        }
  651|   195k|                    }
  652|   201k|                }
  653|   201k|                break;
  654|   201k|            }
  655|   201k|            end_value();
  656|   201k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   201k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  657|   201k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  517|  88.1k|        {
  518|  88.1k|            float valf = (float)val;
  519|  88.1k|            if ((double)valf == val)
  ------------------
  |  Branch (519:17): [True: 60.9k, False: 27.2k]
  ------------------
  520|  60.9k|            {
  521|       |                // float 32
  522|  60.9k|                sink_.push_back(jsoncons::msgpack::msgpack_type::float32_type);
  523|  60.9k|                binary::native_to_big(valf,std::back_inserter(sink_));
  524|  60.9k|            }
  525|  27.2k|            else
  526|  27.2k|            {
  527|       |                // float 64
  528|  27.2k|                sink_.push_back(jsoncons::msgpack::msgpack_type::float64_type);
  529|  27.2k|                binary::native_to_big(val,std::back_inserter(sink_));
  530|  27.2k|            }
  531|       |
  532|       |            // write double
  533|       |
  534|  88.1k|            end_value();
  535|  88.1k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  88.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  536|  88.1k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE11visit_flushEv:
  134|  1.58k|        {
  135|  1.58k|            sink_.flush();
  136|  1.58k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  145|  24.2k|        {
  146|  24.2k|            if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|  24.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 24.2k]
  |  |  ------------------
  ------------------
  147|      0|            {
  148|      0|                ec = msgpack_errc::max_nesting_depth_exceeded;
  149|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  150|      0|            } 
  151|  24.2k|            stack_.emplace_back(msgpack_container_type::object, length);
  152|       |
  153|  24.2k|            if (length <= 15)
  ------------------
  |  Branch (153:17): [True: 22.0k, False: 2.19k]
  ------------------
  154|  22.0k|            {
  155|       |                // fixmap
  156|  22.0k|                sink_.push_back(jsoncons::msgpack::msgpack_type::fixmap_base_type | (length & 0xf));
  157|  22.0k|            }
  158|  2.19k|            else if (length <= 65535)
  ------------------
  |  Branch (158:22): [True: 975, False: 1.21k]
  ------------------
  159|    975|            {
  160|       |                // map 16
  161|    975|                sink_.push_back(jsoncons::msgpack::msgpack_type::map16_type);
  162|    975|                binary::native_to_big(static_cast<uint16_t>(length), 
  163|    975|                                      std::back_inserter(sink_));
  164|    975|            }
  165|  1.21k|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (165:22): [True: 1.21k, False: 0]
  ------------------
  166|  1.21k|            {
  167|       |                // map 32
  168|  1.21k|                sink_.push_back(jsoncons::msgpack::msgpack_type::map32_type);
  169|  1.21k|                binary::native_to_big(static_cast<uint32_t>(length),
  170|  1.21k|                                      std::back_inserter(sink_));
  171|  1.21k|            }
  172|       |
  173|  24.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  24.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  174|  24.2k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE16visit_end_objectERKNS_11ser_contextERNS3_10error_codeE:
  177|  15.5k|        {
  178|  15.5k|            JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   49|  15.5k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 15.5k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  179|  15.5k|            --nesting_depth_;
  180|       |
  181|  15.5k|            if (stack_.back().count() < stack_.back().length())
  ------------------
  |  Branch (181:17): [True: 425, False: 15.0k]
  ------------------
  182|    425|            {
  183|    425|                ec = msgpack_errc::too_few_items;
  184|    425|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    425|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  185|    425|            }
  186|  15.0k|            else if (stack_.back().count() > stack_.back().length())
  ------------------
  |  Branch (186:22): [True: 0, False: 15.0k]
  ------------------
  187|      0|            {
  188|      0|                ec = msgpack_errc::too_many_items;
  189|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  190|      0|            }
  191|       |
  192|  15.0k|            stack_.pop_back();
  193|  15.0k|            end_value();
  194|  15.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  15.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  195|  15.5k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9visit_keyERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  254|   554k|        {
  255|   554k|            visit_string(name, semantic_tag::none, context, ec);
  256|   554k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   554k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  257|   554k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  260|  8.91k|        {
  261|       |            // nil
  262|  8.91k|            sink_.push_back(jsoncons::msgpack::msgpack_type::nil_type);
  263|  8.91k|            end_value();
  264|  8.91k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  8.91k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  265|  8.91k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  746|   267k|        {
  747|       |            // true and false
  748|   267k|            sink_.push_back(static_cast<uint8_t>(val ? jsoncons::msgpack::msgpack_type::true_type : jsoncons::msgpack::msgpack_type::false_type));
  ------------------
  |  Branch (748:50): [True: 7.16k, False: 260k]
  ------------------
  749|       |
  750|   267k|            end_value();
  751|   267k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   267k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  752|   267k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  299|   572k|        {
  300|   572k|            switch (tag)
  301|   572k|            {
  302|      0|                case semantic_tag::epoch_second:
  ------------------
  |  Branch (302:17): [True: 0, False: 572k]
  ------------------
  303|      0|                {
  304|      0|                    int64_t seconds;
  305|      0|                    auto result = jsoncons::to_integer(sv.data(), sv.length(), seconds);
  306|      0|                    if (!result)
  ------------------
  |  Branch (306:25): [True: 0, False: 0]
  ------------------
  307|      0|                    {
  308|      0|                        ec = msgpack_errc::invalid_timestamp;
  309|      0|                        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  310|      0|                    }
  311|      0|                    write_timestamp(seconds, 0);
  312|      0|                    break;
  313|      0|                }
  314|      0|                case semantic_tag::epoch_milli:
  ------------------
  |  Branch (314:17): [True: 0, False: 572k]
  ------------------
  315|      0|                {
  316|      0|                    bigint n;
  317|      0|                    auto result = to_bigint(sv.data(), sv.length(), n);
  318|      0|                    if (!result)
  ------------------
  |  Branch (318:25): [True: 0, False: 0]
  ------------------
  319|      0|                    {
  320|      0|                        ec = msgpack_errc::invalid_timestamp;
  321|      0|                        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  322|      0|                    }
  323|      0|                    if (n != 0)
  ------------------
  |  Branch (323:25): [True: 0, False: 0]
  ------------------
  324|      0|                    {
  325|      0|                        bigint q;
  326|      0|                        bigint rem;
  327|      0|                        n.divide(millis_in_second, q, rem, true);
  328|      0|                        auto seconds = static_cast<int64_t>(q);
  329|      0|                        auto nanoseconds = static_cast<int64_t>(rem) * nanos_in_milli;
  330|      0|                        if (nanoseconds < 0)
  ------------------
  |  Branch (330:29): [True: 0, False: 0]
  ------------------
  331|      0|                        {
  332|      0|                            nanoseconds = -nanoseconds; 
  333|      0|                        }
  334|      0|                        write_timestamp(seconds, nanoseconds);
  335|      0|                    }
  336|      0|                    else
  337|      0|                    {
  338|      0|                        write_timestamp(0, 0);
  339|      0|                    }
  340|      0|                    break;
  341|      0|                }
  342|  12.4k|                case semantic_tag::epoch_nano:
  ------------------
  |  Branch (342:17): [True: 12.4k, False: 559k]
  ------------------
  343|  12.4k|                {
  344|  12.4k|                    bigint n;
  345|  12.4k|                    auto result = to_bigint(sv.data(), sv.length(), n);
  346|  12.4k|                    if (!result)
  ------------------
  |  Branch (346:25): [True: 0, False: 12.4k]
  ------------------
  347|      0|                    {
  348|      0|                        ec = msgpack_errc::invalid_timestamp;
  349|      0|                        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  350|      0|                    }
  351|  12.4k|                    if (n != 0)
  ------------------
  |  Branch (351:25): [True: 11.4k, False: 1.00k]
  ------------------
  352|  11.4k|                    {
  353|  11.4k|                        bigint q;
  354|  11.4k|                        bigint rem;
  355|  11.4k|                        n.divide(nanos_in_second, q, rem, true);
  356|  11.4k|                        auto seconds = static_cast<int64_t>(q);
  357|  11.4k|                        auto nanoseconds = static_cast<int64_t>(rem);
  358|  11.4k|                        if (nanoseconds < 0)
  ------------------
  |  Branch (358:29): [True: 2.73k, False: 8.74k]
  ------------------
  359|  2.73k|                        {
  360|  2.73k|                            nanoseconds = -nanoseconds; 
  361|  2.73k|                        }
  362|  11.4k|                        write_timestamp(seconds, nanoseconds);
  363|  11.4k|                    }
  364|  1.00k|                    else
  365|  1.00k|                    {
  366|  1.00k|                        write_timestamp(0, 0);
  367|  1.00k|                    }
  368|  12.4k|                    break;
  369|  12.4k|                }
  370|   559k|                default:
  ------------------
  |  Branch (370:17): [True: 559k, False: 12.4k]
  ------------------
  371|   559k|                {
  372|   559k|                    write_string_value(sv);
  373|   559k|                    end_value();
  374|   559k|                    break;
  375|  12.4k|                }
  376|   572k|            }
  377|   572k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   572k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  378|   572k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE18write_string_valueERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEE:
  381|   559k|        {
  382|   559k|            auto sink = unicode_traits::validate(sv.data(), sv.size());
  383|   559k|            if (sink.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (383:17): [True: 0, False: 559k]
  ------------------
  384|      0|            {
  385|      0|                JSONCONS_THROW(ser_error(msgpack_errc::invalid_utf8_text_string));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  386|      0|            }
  387|       |
  388|   559k|            const size_t length = sv.length();
  389|   559k|            if (length <= 31)
  ------------------
  |  Branch (389:17): [True: 557k, False: 2.40k]
  ------------------
  390|   557k|            {
  391|       |                // fixstr stores a byte array whose length is upto 31 bytes
  392|   557k|                sink_.push_back(jsoncons::msgpack::msgpack_type::fixstr_base_type | static_cast<uint8_t>(length));
  393|   557k|            }
  394|  2.40k|            else if (length <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (394:22): [True: 1.31k, False: 1.08k]
  ------------------
  395|  1.31k|            {
  396|       |                // str 8 stores a byte array whose length is upto (2^8)-1 bytes
  397|  1.31k|                sink_.push_back(jsoncons::msgpack::msgpack_type::str8_type);
  398|  1.31k|                sink_.push_back(static_cast<uint8_t>(length));
  399|  1.31k|            }
  400|  1.08k|            else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (400:22): [True: 739, False: 350]
  ------------------
  401|    739|            {
  402|       |                // str 16 stores a byte array whose length is upto (2^16)-1 bytes
  403|    739|                sink_.push_back(jsoncons::msgpack::msgpack_type::str16_type);
  404|    739|                binary::native_to_big(static_cast<uint16_t>(length), std::back_inserter(sink_));
  405|    739|            }
  406|    350|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (406:22): [True: 350, False: 0]
  ------------------
  407|    350|            {
  408|       |                // str 32 stores a byte array whose length is upto (2^32)-1 bytes
  409|    350|                sink_.push_back(jsoncons::msgpack::msgpack_type::str32_type);
  410|    350|                binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  411|    350|            }
  412|       |
  413|   559k|            for (auto c : sv)
  ------------------
  |  Branch (413:25): [True: 86.1M, False: 559k]
  ------------------
  414|  86.1M|            {
  415|  86.1M|                sink_.push_back(c);
  416|  86.1M|            }
  417|   559k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  423|  3.91k|        {
  424|       |
  425|  3.91k|            const std::size_t length = b.size();
  426|  3.91k|            if (length <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (426:17): [True: 3.20k, False: 702]
  ------------------
  427|  3.20k|            {
  428|       |                // bin 8 stores a byte array whose length is upto (2^8)-1 bytes
  429|  3.20k|                sink_.push_back(jsoncons::msgpack::msgpack_type::bin8_type);
  430|  3.20k|                sink_.push_back(static_cast<uint8_t>(length));
  431|  3.20k|            }
  432|    702|            else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (432:22): [True: 641, False: 61]
  ------------------
  433|    641|            {
  434|       |                // bin 16 stores a byte array whose length is upto (2^16)-1 bytes
  435|    641|                sink_.push_back(jsoncons::msgpack::msgpack_type::bin16_type);
  436|    641|                binary::native_to_big(static_cast<uint16_t>(length), std::back_inserter(sink_));
  437|    641|            }
  438|     61|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (438:22): [True: 61, False: 0]
  ------------------
  439|     61|            {
  440|       |                // bin 32 stores a byte array whose length is upto (2^32)-1 bytes
  441|     61|                sink_.push_back(jsoncons::msgpack::msgpack_type::bin32_type);
  442|     61|                binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  443|     61|            }
  444|       |
  445|  3.91k|            for (auto c : b)
  ------------------
  |  Branch (445:25): [True: 6.17M, False: 3.91k]
  ------------------
  446|  6.17M|            {
  447|  6.17M|                sink_.push_back(c);
  448|  6.17M|            }
  449|       |
  450|  3.91k|            end_value();
  451|  3.91k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.91k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  452|  3.91k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS3_10error_codeE:
  458|   595k|        {
  459|   595k|            const std::size_t length = b.size();
  460|   595k|            switch (length)
  461|   595k|            {
  462|  1.59k|                case 1:
  ------------------
  |  Branch (462:17): [True: 1.59k, False: 594k]
  ------------------
  463|  1.59k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext1_type);
  464|  1.59k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  465|  1.59k|                    break;
  466|   583k|                case 2:
  ------------------
  |  Branch (466:17): [True: 583k, False: 12.5k]
  ------------------
  467|   583k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext2_type);
  468|   583k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  469|   583k|                    break;
  470|    554|                case 4:
  ------------------
  |  Branch (470:17): [True: 554, False: 595k]
  ------------------
  471|    554|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext4_type);
  472|    554|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  473|    554|                    break;
  474|  3.35k|                case 8:
  ------------------
  |  Branch (474:17): [True: 3.35k, False: 592k]
  ------------------
  475|  3.35k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext8_type);
  476|  3.35k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  477|  3.35k|                    break;
  478|  4.74k|                case 16:
  ------------------
  |  Branch (478:17): [True: 4.74k, False: 591k]
  ------------------
  479|  4.74k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext16_type);
  480|  4.74k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  481|  4.74k|                    break;
  482|  2.34k|                default:
  ------------------
  |  Branch (482:17): [True: 2.34k, False: 593k]
  ------------------
  483|  2.34k|                    if (length <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (483:25): [True: 1.61k, False: 722]
  ------------------
  484|  1.61k|                    {
  485|  1.61k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::ext8_type);
  486|  1.61k|                        sink_.push_back(static_cast<uint8_t>(length));
  487|  1.61k|                        sink_.push_back(static_cast<uint8_t>(raw_tag));
  488|  1.61k|                    }
  489|    722|                    else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (489:30): [True: 634, False: 88]
  ------------------
  490|    634|                    {
  491|    634|                        sink_.push_back(jsoncons::msgpack::msgpack_type::ext16_type);
  492|    634|                        binary::native_to_big(static_cast<uint16_t>(length), std::back_inserter(sink_));
  493|    634|                        sink_.push_back(static_cast<uint8_t>(raw_tag));
  494|    634|                    }
  495|     88|                    else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (495:30): [True: 88, False: 0]
  ------------------
  496|     88|                    {
  497|     88|                        sink_.push_back(jsoncons::msgpack::msgpack_type::ext32_type);
  498|     88|                        binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  499|     88|                        sink_.push_back(static_cast<uint8_t>(raw_tag));
  500|     88|                    }
  501|  2.34k|                    break;
  502|   595k|            }
  503|       |
  504|   595k|            for (auto c : b)
  ------------------
  |  Branch (504:25): [True: 10.5M, False: 595k]
  ------------------
  505|  10.5M|            {
  506|  10.5M|                sink_.push_back(c);
  507|  10.5M|            }
  508|       |
  509|   595k|            end_value();
  510|   595k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   595k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  511|   595k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEED2Ev:
  111|  6.42k|        {
  112|  6.42k|            sink_.flush();
  113|  6.42k|        }

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

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

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

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

