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

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

_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4sizeEv:
  116|  5.20M|        {
  117|  5.20M|            return size_;
  118|  5.20M|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2Ev:
   58|   753k|        {
   59|   753k|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|  1.49M|            : data_(data), size_(size)
   62|  1.49M|        {
   63|  1.49M|        }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4dataEv:
  111|  2.95M|        {
  112|  2.95M|            return data_;
  113|  2.95M|        }

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|   710k|        {
 1009|   710k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 29.9k, False: 680k]
  ------------------
 1010|  29.9k|            {
 1011|  29.9k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 24.3k, False: 5.65k]
  |  Branch (1011:86): [True: 22.1k, False: 2.19k]
  ------------------
 1012|  22.1k|                {
 1013|  22.1k|                    key_buffer_.push_back(',');
 1014|  22.1k|                }
 1015|  29.9k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|  29.9k|                key_buffer_.push_back('[');
 1017|  29.9k|            }
 1018|   680k|            else
 1019|   680k|            {
 1020|   680k|                switch (level_stack_.back().target_kind())
 1021|   680k|                {
 1022|   524k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 524k, False: 156k]
  ------------------
 1023|   524k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 500k, False: 23.4k]
  |  Branch (1023:65): [True: 309k, False: 190k]
  ------------------
 1024|   309k|                        {
 1025|   309k|                            key_buffer_.push_back(',');
 1026|   309k|                        }
 1027|   524k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|   524k|                        key_buffer_.push_back('[');
 1029|   524k|                        break;
 1030|   156k|                    default:
  ------------------
  |  Branch (1030:21): [True: 156k, False: 524k]
  ------------------
 1031|   156k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|   156k|                        destination_->begin_array(length, tag, context, ec);
 1033|   156k|                        break;
 1034|   680k|                }
 1035|   680k|            }
 1036|   710k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   710k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|   710k|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|   134M|            {
  816|   134M|                return even_odd_ == 0;
  817|   134M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|  82.3M|            {
  826|  82.3M|                return target_kind_;
  827|  82.3M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  34.2M|            {
  831|  34.2M|                return count_;
  832|  34.2M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|  1.02M|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 307k, False: 717k]
  ------------------
  799|  1.02M|            {
  800|  1.02M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|  79.4M|            {
  821|  79.4M|                return structure_kind_ == json_structure_kind::object;
  822|  79.4M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|   673k|        {
 1041|   673k|            switch (level_stack_.back().target_kind())
 1042|   673k|            {
 1043|   535k|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 535k, False: 138k]
  ------------------
 1044|   535k|                    key_buffer_.push_back(']');
 1045|   535k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   535k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 535k]
  |  |  ------------------
  |  |   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|   535k|                    level_stack_.pop_back();
 1047|   535k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 5.09k, False: 530k]
  ------------------
 1048|  5.09k|                    {
 1049|  5.09k|                        destination_->key(key_buffer_, context, ec);
 1050|  5.09k|                        key_buffer_.clear();
 1051|  5.09k|                    }
 1052|   530k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 22.9k, False: 507k]
  ------------------
 1053|  22.9k|                    {
 1054|  22.9k|                        key_buffer_.push_back(':');
 1055|  22.9k|                    }
 1056|   535k|                    level_stack_.back().advance();
 1057|   535k|                    break;
 1058|   138k|                default:
  ------------------
  |  Branch (1058:17): [True: 138k, False: 535k]
  ------------------
 1059|   138k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   138k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 138k]
  |  |  ------------------
  |  |   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|   138k|                    level_stack_.pop_back();
 1061|   138k|                    level_stack_.back().advance();
 1062|   138k|                    destination_->end_array(context, ec);
 1063|   138k|                    break;
 1064|   673k|            }
 1065|   673k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   673k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|   673k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|  45.1M|            {
  804|  45.1M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 36.9M, False: 8.27M]
  ------------------
  805|  36.9M|                {
  806|  36.9M|                    ++count_;
  807|  36.9M|                }
  808|  45.1M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 16.5M, False: 28.6M]
  ------------------
  809|  16.5M|                {
  810|  16.5M|                    even_odd_ = !even_odd_;
  811|  16.5M|                }
  812|  45.1M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  13.6M|        {
 1234|  13.6M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 4.22M, False: 9.41M]
  |  Branch (1234:49): [True: 8.18M, False: 1.23M]
  ------------------
 1235|  12.4M|            {
 1236|  12.4M|                key_.clear();
 1237|  12.4M|                jsoncons::from_integer(value,key_);
 1238|  12.4M|            }
 1239|       |
 1240|  13.6M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 4.22M, False: 9.41M]
  ------------------
 1241|  4.22M|            {
 1242|  4.22M|                switch (level_stack_.back().target_kind())
 1243|  4.22M|                {
 1244|  4.10M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 4.10M, False: 122k]
  ------------------
 1245|  4.10M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 4.09M, False: 15.7k]
  ------------------
 1246|  4.09M|                        {
 1247|  4.09M|                            key_buffer_.push_back(',');
 1248|  4.09M|                        }
 1249|  4.10M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  4.10M|                        key_buffer_.push_back(':');
 1251|  4.10M|                        break;
 1252|   122k|                    default:
  ------------------
  |  Branch (1252:21): [True: 122k, False: 4.10M]
  ------------------
 1253|   122k|                        destination_->key(key_, context, ec);
 1254|   122k|                        break;
 1255|  4.22M|                }
 1256|  4.22M|            }
 1257|  9.41M|            else
 1258|  9.41M|            {
 1259|  9.41M|                switch (level_stack_.back().target_kind())
 1260|  9.41M|                {
 1261|  8.18M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 8.18M, False: 1.23M]
  ------------------
 1262|  8.18M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 4.08M, False: 4.10M]
  |  Branch (1262:65): [True: 4.07M, False: 8.48k]
  ------------------
 1263|  4.07M|                        {
 1264|  4.07M|                            key_buffer_.push_back(',');
 1265|  4.07M|                        }
 1266|  8.18M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  8.18M|                        break;
 1268|  1.23M|                    default:
  ------------------
  |  Branch (1268:21): [True: 1.23M, False: 8.18M]
  ------------------
 1269|  1.23M|                        destination_->uint64_value(value, tag, context, ec);
 1270|  1.23M|                        break;
 1271|  9.41M|                }
 1272|  9.41M|            }
 1273|       |
 1274|  13.6M|            level_stack_.back().advance();
 1275|  13.6M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  13.6M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  2.97M|        {
 1280|  2.97M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 762k, False: 2.21M]
  |  Branch (1280:49): [True: 1.98M, False: 232k]
  ------------------
 1281|  2.74M|            {
 1282|  2.74M|                key_.clear();
 1283|  2.74M|                jsoncons::from_integer(value,key_);
 1284|  2.74M|            }
 1285|       |
 1286|  2.97M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 762k, False: 2.21M]
  ------------------
 1287|   762k|            {
 1288|   762k|                switch (level_stack_.back().target_kind())
 1289|   762k|                {
 1290|   726k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 726k, False: 36.0k]
  ------------------
 1291|   726k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 719k, False: 6.89k]
  ------------------
 1292|   719k|                        {
 1293|   719k|                            key_buffer_.push_back(',');
 1294|   719k|                        }
 1295|   726k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|   726k|                        key_buffer_.push_back(':');
 1297|   726k|                        break;
 1298|  36.0k|                    default:
  ------------------
  |  Branch (1298:21): [True: 36.0k, False: 726k]
  ------------------
 1299|  36.0k|                        destination_->key(key_, context, ec);
 1300|  36.0k|                        break;
 1301|   762k|                }
 1302|   762k|            }
 1303|  2.21M|            else
 1304|  2.21M|            {
 1305|  2.21M|                switch (level_stack_.back().target_kind())
 1306|  2.21M|                {
 1307|  1.98M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 1.98M, False: 232k]
  ------------------
 1308|  1.98M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 1.25M, False: 729k]
  |  Branch (1308:65): [True: 1.24M, False: 5.35k]
  ------------------
 1309|  1.24M|                        {
 1310|  1.24M|                            key_buffer_.push_back(',');
 1311|  1.24M|                        }
 1312|  1.98M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  1.98M|                        break;
 1314|   232k|                    default:
  ------------------
  |  Branch (1314:21): [True: 232k, False: 1.98M]
  ------------------
 1315|   232k|                        destination_->int64_value(value, tag, context, ec);
 1316|   232k|                        break;
 1317|  2.21M|                }
 1318|  2.21M|            }
 1319|       |
 1320|  2.97M|            level_stack_.back().advance();
 1321|  2.97M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  2.97M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  2.97M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|   172k|        {
 1375|   172k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 51.5k, False: 121k]
  |  Branch (1375:49): [True: 42.7k, False: 78.3k]
  ------------------
 1376|  94.2k|            {
 1377|  94.2k|                key_.clear();
 1378|  94.2k|                string_sink<string_type> sink(key_);
 1379|  94.2k|                jsoncons::write_double f{float_chars_format::general,0};
 1380|  94.2k|                f(value, sink);
 1381|  94.2k|            }
 1382|       |
 1383|   172k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 51.5k, False: 121k]
  ------------------
 1384|  51.5k|            {
 1385|  51.5k|                switch (level_stack_.back().target_kind())
 1386|  51.5k|                {
 1387|  19.7k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 19.7k, False: 31.7k]
  ------------------
 1388|  19.7k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 13.6k, False: 6.11k]
  ------------------
 1389|  13.6k|                        {
 1390|  13.6k|                            key_buffer_.push_back(',');
 1391|  13.6k|                        }
 1392|  19.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|  19.7k|                        key_buffer_.push_back(':');
 1394|  19.7k|                        break;
 1395|  31.7k|                    default:
  ------------------
  |  Branch (1395:21): [True: 31.7k, False: 19.7k]
  ------------------
 1396|  31.7k|                        destination_->key(key_, context, ec);
 1397|  31.7k|                        break;
 1398|  51.5k|                }
 1399|  51.5k|            }
 1400|   121k|            else
 1401|   121k|            {
 1402|   121k|                switch (level_stack_.back().target_kind())
 1403|   121k|                {
 1404|  42.7k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 42.7k, False: 78.3k]
  ------------------
 1405|  42.7k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 29.5k, False: 13.2k]
  |  Branch (1405:65): [True: 27.7k, False: 1.84k]
  ------------------
 1406|  27.7k|                        {
 1407|  27.7k|                            key_buffer_.push_back(',');
 1408|  27.7k|                        }
 1409|  42.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|  42.7k|                        break;
 1411|  78.3k|                    default:
  ------------------
  |  Branch (1411:21): [True: 78.3k, False: 42.7k]
  ------------------
 1412|  78.3k|                        destination_->double_value(value, tag, context, ec);
 1413|  78.3k|                        break;
 1414|   121k|                }
 1415|   121k|            }
 1416|       |
 1417|   172k|            level_stack_.back().advance();
 1418|   172k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   172k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|   172k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|  1.66k|        {
  882|  1.66k|            destination_->flush();
  883|  1.66k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|   307k|        {
  915|   307k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 95.4k, False: 212k]
  ------------------
  916|  95.4k|            {
  917|  95.4k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 90.5k, False: 4.94k]
  |  Branch (917:86): [True: 68.5k, False: 21.9k]
  ------------------
  918|  68.5k|                {
  919|  68.5k|                    key_buffer_.push_back(',');
  920|  68.5k|                }
  921|  95.4k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|  95.4k|                key_buffer_.push_back('{');
  923|  95.4k|            }
  924|   212k|            else
  925|   212k|            {
  926|   212k|                switch (level_stack_.back().target_kind())
  927|   212k|                {
  928|   188k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 188k, False: 23.6k]
  ------------------
  929|   188k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 99.5k, False: 89.1k]
  |  Branch (929:65): [True: 96.8k, False: 2.61k]
  ------------------
  930|  96.8k|                        {
  931|  96.8k|                            key_buffer_.push_back(',');
  932|  96.8k|                        }
  933|   188k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|   188k|                        key_buffer_.push_back('{');
  935|   188k|                        break;
  936|  23.6k|                    default:
  ------------------
  |  Branch (936:21): [True: 23.6k, False: 188k]
  ------------------
  937|  23.6k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  23.6k|                        destination_->begin_object(length, tag, context, ec);
  939|  23.6k|                        break;
  940|   212k|                }
  941|   212k|            }
  942|   307k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   307k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|   307k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|   283k|        {
  947|   283k|            switch (level_stack_.back().target_kind())
  948|   283k|            {
  949|   269k|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 269k, False: 14.0k]
  ------------------
  950|   269k|                    key_buffer_.push_back('}');
  951|   269k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   269k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 269k]
  |  |  ------------------
  |  |   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|   269k|                    level_stack_.pop_back();
  953|       |                    
  954|   269k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 4.04k, False: 265k]
  ------------------
  955|  4.04k|                    {
  956|  4.04k|                        destination_->key(key_buffer_,context, ec);
  957|  4.04k|                        key_buffer_.clear();
  958|  4.04k|                    }
  959|   265k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 85.3k, False: 180k]
  ------------------
  960|  85.3k|                    {
  961|  85.3k|                        key_buffer_.push_back(':');
  962|  85.3k|                    }
  963|   269k|                    level_stack_.back().advance();
  964|   269k|                    break;
  965|  14.0k|                default:
  ------------------
  |  Branch (965:17): [True: 14.0k, False: 269k]
  ------------------
  966|  14.0k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|  14.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 14.0k]
  |  |  ------------------
  |  |   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|  14.0k|                    level_stack_.pop_back();
  968|  14.0k|                    level_stack_.back().advance();
  969|  14.0k|                    destination_->end_object(context, ec);
  970|  14.0k|                    break;
  971|   283k|            }
  972|   283k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   283k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|   283k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|   557k|        {
 1476|   557k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 233k, False: 324k]
  |  Branch (1476:49): [True: 313k, False: 10.8k]
  ------------------
 1477|   546k|            {
 1478|   546k|                key_.clear(); 
 1479|   546k|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|   546k|            }
 1481|       |
 1482|   557k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 233k, False: 324k]
  ------------------
 1483|   233k|            {
 1484|   233k|                switch (level_stack_.back().target_kind())
 1485|   233k|                {
 1486|   231k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 231k, False: 1.37k]
  ------------------
 1487|   231k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 227k, False: 4.31k]
  ------------------
 1488|   227k|                        {
 1489|   227k|                            key_buffer_.push_back(',');
 1490|   227k|                        }
 1491|   231k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|   231k|                        key_buffer_.push_back(':');
 1493|   231k|                        break;
 1494|  1.37k|                    default:
  ------------------
  |  Branch (1494:21): [True: 1.37k, False: 231k]
  ------------------
 1495|  1.37k|                        destination_->key(key_, context, ec);
 1496|  1.37k|                        break;
 1497|   233k|                }
 1498|   233k|            }
 1499|   324k|            else
 1500|   324k|            {
 1501|   324k|                switch (level_stack_.back().target_kind())
 1502|   324k|                {
 1503|   313k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 313k, False: 10.8k]
  ------------------
 1504|   313k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 89.3k, False: 224k]
  |  Branch (1504:65): [True: 88.9k, False: 420]
  ------------------
 1505|  88.9k|                        {
 1506|  88.9k|                            key_buffer_.push_back(',');
 1507|  88.9k|                        }
 1508|   313k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|   313k|                        break;
 1510|  10.8k|                    default:
  ------------------
  |  Branch (1510:21): [True: 10.8k, False: 313k]
  ------------------
 1511|  10.8k|                        destination_->null_value(tag, context, ec);
 1512|  10.8k|                        break;
 1513|   324k|                }
 1514|   324k|            }
 1515|       |
 1516|   557k|            level_stack_.back().advance();
 1517|   557k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   557k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|   557k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  24.5M|        {
 1423|  24.5M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 2.26M, False: 22.2M]
  |  Branch (1423:49): [True: 21.9M, False: 270k]
  ------------------
 1424|  24.2M|            {
 1425|  24.2M|                key_.clear(); 
 1426|  24.2M|                if (value)
  ------------------
  |  Branch (1426:21): [True: 84.3k, False: 24.1M]
  ------------------
 1427|  84.3k|                {
 1428|  84.3k|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|  84.3k|                }
 1430|  24.1M|                else
 1431|  24.1M|                {
 1432|  24.1M|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|  24.1M|                }
 1434|  24.2M|            }
 1435|       |
 1436|  24.5M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 2.26M, False: 22.2M]
  ------------------
 1437|  2.26M|            {
 1438|  2.26M|                switch (level_stack_.back().target_kind())
 1439|  2.26M|                {
 1440|  2.19M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 2.19M, False: 67.6k]
  ------------------
 1441|  2.19M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 2.17M, False: 23.0k]
  ------------------
 1442|  2.17M|                        {
 1443|  2.17M|                            key_buffer_.push_back(',');
 1444|  2.17M|                        }
 1445|  2.19M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|  2.19M|                        key_buffer_.push_back(':');
 1447|  2.19M|                        break;
 1448|  67.6k|                    default:
  ------------------
  |  Branch (1448:21): [True: 67.6k, False: 2.19M]
  ------------------
 1449|  67.6k|                        destination_->key(key_, context, ec);
 1450|  67.6k|                        break;
 1451|  2.26M|                }
 1452|  2.26M|            }
 1453|  22.2M|            else
 1454|  22.2M|            {
 1455|  22.2M|                switch (level_stack_.back().target_kind())
 1456|  22.2M|                {
 1457|  21.9M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 21.9M, False: 270k]
  ------------------
 1458|  21.9M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 19.7M, False: 2.19M]
  |  Branch (1458:65): [True: 19.7M, False: 3.67k]
  ------------------
 1459|  19.7M|                        {
 1460|  19.7M|                            key_buffer_.push_back(',');
 1461|  19.7M|                        }
 1462|  21.9M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|  21.9M|                        break;
 1464|   270k|                    default:
  ------------------
  |  Branch (1464:21): [True: 270k, False: 21.9M]
  ------------------
 1465|   270k|                        destination_->bool_value(value, tag, context, ec);
 1466|   270k|                        break;
 1467|  22.2M|                }
 1468|  22.2M|            }
 1469|       |
 1470|  24.5M|            level_stack_.back().advance();
 1471|  24.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  24.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  24.5M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|   809k|        {
 1073|   809k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 82.6k, False: 726k]
  ------------------
 1074|  82.6k|            {
 1075|  82.6k|                switch (level_stack_.back().target_kind())
 1076|  82.6k|                {
 1077|  80.2k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 80.2k, False: 2.43k]
  ------------------
 1078|  80.2k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 78.3k, False: 1.90k]
  ------------------
 1079|  78.3k|                        {
 1080|  78.3k|                            key_buffer_.push_back(',');
 1081|  78.3k|                        }
 1082|  80.2k|                        key_buffer_.push_back('\"');
 1083|  80.2k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|  80.2k|                        key_buffer_.push_back('\"');
 1085|  80.2k|                        key_buffer_.push_back(':');
 1086|  80.2k|                        break;
 1087|  2.43k|                    default:
  ------------------
  |  Branch (1087:21): [True: 2.43k, False: 80.2k]
  ------------------
 1088|  2.43k|                        destination_->key(value, context, ec);
 1089|  2.43k|                        break;
 1090|  82.6k|                }
 1091|  82.6k|            }
 1092|   726k|            else
 1093|   726k|            {
 1094|   726k|                switch (level_stack_.back().target_kind())
 1095|   726k|                {
 1096|   698k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 698k, False: 28.2k]
  ------------------
 1097|   698k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 613k, False: 85.1k]
  |  Branch (1097:65): [True: 612k, False: 1.05k]
  ------------------
 1098|   612k|                        {
 1099|   612k|                            key_buffer_.push_back(',');
 1100|   612k|                        }
 1101|   698k|                        key_buffer_.push_back('\"');
 1102|   698k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|   698k|                        key_buffer_.push_back('\"');
 1104|   698k|                        break;
 1105|  28.2k|                    default:
  ------------------
  |  Branch (1105:21): [True: 28.2k, False: 698k]
  ------------------
 1106|  28.2k|                        destination_->string_value(value, tag, context, ec);
 1107|  28.2k|                        break;
 1108|   726k|                }
 1109|   726k|            }
 1110|       |
 1111|   809k|            level_stack_.back().advance();
 1112|   809k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   809k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|   809k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  68.2k|        {
 1120|  68.2k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 26.9k, False: 41.3k]
  |  Branch (1120:49): [True: 30.3k, False: 10.9k]
  ------------------
 1121|  57.2k|            {
 1122|  57.2k|                key_.clear();
 1123|  57.2k|                switch (tag)
 1124|  57.2k|                {
 1125|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 0, False: 57.2k]
  ------------------
 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: 57.2k]
  ------------------
 1129|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|      0|                        break;
 1131|  57.2k|                    default:
  ------------------
  |  Branch (1131:21): [True: 57.2k, False: 0]
  ------------------
 1132|  57.2k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  57.2k|                        break;
 1134|  57.2k|                }
 1135|  57.2k|            }
 1136|       |
 1137|  68.2k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 26.9k, False: 41.3k]
  ------------------
 1138|  26.9k|            {
 1139|  26.9k|                switch (level_stack_.back().target_kind())
 1140|  26.9k|                {
 1141|  25.5k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 25.5k, False: 1.35k]
  ------------------
 1142|  25.5k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 18.7k, False: 6.78k]
  ------------------
 1143|  18.7k|                        {
 1144|  18.7k|                            key_buffer_.push_back(',');
 1145|  18.7k|                        }
 1146|  25.5k|                        key_buffer_.push_back('\"');
 1147|  25.5k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|  25.5k|                        key_buffer_.push_back('\"');
 1149|  25.5k|                        key_buffer_.push_back(':');
 1150|  25.5k|                        break;
 1151|  1.35k|                    default:
  ------------------
  |  Branch (1151:21): [True: 1.35k, False: 25.5k]
  ------------------
 1152|  1.35k|                        destination_->key(key_, context, ec);
 1153|  1.35k|                        break;
 1154|  26.9k|                }
 1155|  26.9k|            }
 1156|  41.3k|            else
 1157|  41.3k|            {
 1158|  41.3k|                switch (level_stack_.back().target_kind())
 1159|  41.3k|                {
 1160|  30.3k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 30.3k, False: 10.9k]
  ------------------
 1161|  30.3k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 9.68k, False: 20.6k]
  |  Branch (1161:65): [True: 9.09k, False: 585]
  ------------------
 1162|  9.09k|                        {
 1163|  9.09k|                            key_buffer_.push_back(',');
 1164|  9.09k|                        }
 1165|  30.3k|                        key_buffer_.push_back('\"');
 1166|  30.3k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  30.3k|                        key_buffer_.push_back('\"');
 1168|  30.3k|                        break;
 1169|  10.9k|                    default:
  ------------------
  |  Branch (1169:21): [True: 10.9k, False: 30.3k]
  ------------------
 1170|  10.9k|                        destination_->byte_string_value(value, tag, context, ec);
 1171|  10.9k|                        break;
 1172|  41.3k|                }
 1173|  41.3k|            }
 1174|       |
 1175|  68.2k|            level_stack_.back().advance();
 1176|  68.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  68.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  68.2k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|  1.46M|        {
 1184|  1.46M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 506k, False: 957k]
  |  Branch (1184:49): [True: 255k, False: 702k]
  ------------------
 1185|   761k|            {
 1186|   761k|                key_.clear();
 1187|   761k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|   761k|            }
 1189|       |
 1190|  1.46M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 506k, False: 957k]
  ------------------
 1191|   506k|            {
 1192|   506k|                switch (level_stack_.back().target_kind())
 1193|   506k|                {
 1194|   180k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 180k, False: 325k]
  ------------------
 1195|   180k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 178k, False: 1.81k]
  ------------------
 1196|   178k|                        {
 1197|   178k|                            key_buffer_.push_back(',');
 1198|   178k|                        }
 1199|   180k|                        key_buffer_.push_back('\"');
 1200|   180k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|   180k|                        key_buffer_.push_back('\"');
 1202|   180k|                        key_buffer_.push_back(':');
 1203|   180k|                        break;
 1204|   325k|                    default:
  ------------------
  |  Branch (1204:21): [True: 325k, False: 180k]
  ------------------
 1205|   325k|                        destination_->key(key_, context, ec);
 1206|   325k|                        break;
 1207|   506k|                }
 1208|   506k|            }
 1209|   957k|            else
 1210|   957k|            {
 1211|   957k|                switch (level_stack_.back().target_kind())
 1212|   957k|                {
 1213|   255k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 255k, False: 702k]
  ------------------
 1214|   255k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 71.6k, False: 183k]
  |  Branch (1214:65): [True: 69.1k, False: 2.54k]
  ------------------
 1215|  69.1k|                        {
 1216|  69.1k|                            key_buffer_.push_back(',');
 1217|  69.1k|                        }
 1218|   255k|                        key_buffer_.push_back('\"');
 1219|   255k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|   255k|                        key_buffer_.push_back('\"');
 1221|   255k|                        break;
 1222|   702k|                    default:
  ------------------
  |  Branch (1222:21): [True: 702k, False: 255k]
  ------------------
 1223|   702k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|   702k|                        break;
 1225|   957k|                }
 1226|   957k|            }
 1227|       |
 1228|  1.46M|            level_stack_.back().advance();
 1229|  1.46M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.46M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|  1.46M|        }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|   710k|    {
  295|   710k|        visit_begin_array(length, tag, context, ec);
  296|   710k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   710k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|   710k|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|  13.6M|    {
  364|  13.6M|        visit_uint64(value, tag, context, ec);
  365|  13.6M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  13.6M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|   673k|    {
  301|   673k|        visit_end_array(context, ec);
  302|   673k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   673k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|   673k|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  2.97M|    {
  373|  2.97M|        visit_int64(value, tag, context, ec);
  374|  2.97M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  2.97M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  2.97M|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|   172k|    {
  391|   172k|        visit_double(value, tag, context, ec);
  392|   172k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   172k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|   172k|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  6.61k|            : destination_(std::addressof(visitor)), 
  856|  6.61k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  6.61k|        {
  858|  6.61k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  6.61k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|  6.61k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|   307k|    {
  277|   307k|        visit_begin_object(length, tag, context, ec);
  278|   307k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   307k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|   307k|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|   809k|    {
  333|   809k|        visit_string(value, tag, context, ec);
  334|   809k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   809k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|   809k|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|   557k|    {
  315|   557k|        visit_null(tag, context, ec);
  316|   557k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   557k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|   557k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  24.5M|    {
  324|  24.5M|        visit_bool(value, tag, context, ec);
  325|  24.5M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  24.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  24.5M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  68.2k|    {
  344|  68.2k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  68.2k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  68.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  68.2k|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|  1.46M|    {
  355|  1.46M|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|  1.46M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.46M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|  1.46M|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|   283k|    {
  283|   283k|        visit_end_object(context, ec);
  284|   283k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   283k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|   283k|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|  1.66k|    {
   58|  1.66k|        visit_flush();
   59|  1.66k|    }

_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  19.8k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|   156k|        {
  346|   156k|            visit_begin_array(length, tag, context, ec);
  347|   156k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   156k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|   156k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|   598k|        {
  358|   598k|            visit_key(name, context, ec);
  359|   598k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   598k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|   598k|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|   138k|        {
  352|   138k|            visit_end_array(context, ec);
  353|   138k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   138k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|   138k|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|  1.23M|        {
  415|  1.23M|            visit_uint64(value, tag, context, ec);
  416|  1.23M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.23M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|  1.23M|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|   232k|        {
  424|   232k|            visit_int64(value, tag, context, ec);
  425|   232k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   232k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|   232k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  78.3k|        {
  442|  78.3k|            visit_double(value, tag, context, ec);
  443|  78.3k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  78.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|  78.3k|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  1.66k|        {
  109|  1.66k|            visit_flush();
  110|  1.66k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  23.6k|        {
  328|  23.6k|            visit_begin_object(length, tag, context, ec);
  329|  23.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  23.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  23.6k|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  14.0k|        {
  334|  14.0k|            visit_end_object(context, ec);
  335|  14.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  14.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  14.0k|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  10.8k|        {
  366|  10.8k|            visit_null(tag, context, ec);
  367|  10.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  10.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  10.8k|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|   270k|        {
  375|   270k|            visit_bool(value, tag, context, ec);
  376|   270k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   270k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|   270k|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|  28.2k|        {
  384|  28.2k|            visit_string(value, tag, context, ec);
  385|  28.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  28.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  28.2k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|  10.9k|        {
  395|  10.9k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|  10.9k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  10.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|  10.9k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|   702k|        {
  406|   702k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|   702k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   702k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|   702k|        }
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  13.2k|        basic_json_visitor() = default;
_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  6.61k|        basic_default_json_visitor() = default;

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

_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2ERS7_:
  256|  94.2k|            : buf_ptr(std::addressof(buf))
  257|  94.2k|        {
  258|  94.2k|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE9push_backEc:
  287|  1.68M|        {
  288|  1.68M|            buf_ptr->push_back(ch);
  289|  1.68M|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvEC2ERS5_:
  315|  6.61k|            : buf_ptr(std::addressof(buf))
  316|  6.61k|        {
  317|  6.61k|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE9push_backEh:
  334|   120M|        {
  335|   120M|            buf_ptr->push_back(static_cast<value_type>(ch));
  336|   120M|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE5flushEv:
  325|  8.27k|        {
  326|  8.27k|        }

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

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

_ZN8jsoncons6binary13native_to_bigItNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  8.52k|    {
  128|  8.52k|        T val2 = byte_swap(val);
  129|  8.52k|        uint8_t buf[sizeof(T)];
  130|  8.52k|        std::memcpy(buf, &val2, sizeof(T));
  131|  8.52k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 17.0k, False: 8.52k]
  ------------------
  132|  17.0k|        {
  133|  17.0k|            *d_first++ = item;
  134|  17.0k|        }
  135|  8.52k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  21.9k|    {
   29|  21.9k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  21.9k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  21.9k|#      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|  21.9k|    }
_ZN8jsoncons6binary13native_to_bigIjNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  24.8k|    {
  128|  24.8k|        T val2 = byte_swap(val);
  129|  24.8k|        uint8_t buf[sizeof(T)];
  130|  24.8k|        std::memcpy(buf, &val2, sizeof(T));
  131|  24.8k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 99.2k, False: 24.8k]
  ------------------
  132|  99.2k|        {
  133|  99.2k|            *d_first++ = item;
  134|  99.2k|        }
  135|  24.8k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   246k|    {
   40|   246k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   246k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|   246k|#  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|   246k|    }
_ZN8jsoncons6binary13native_to_bigImNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  49.7k|    {
  128|  49.7k|        T val2 = byte_swap(val);
  129|  49.7k|        uint8_t buf[sizeof(T)];
  130|  49.7k|        std::memcpy(buf, &val2, sizeof(T));
  131|  49.7k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 397k, False: 49.7k]
  ------------------
  132|   397k|        {
  133|   397k|            *d_first++ = item;
  134|   397k|        }
  135|  49.7k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   215k|    {
   52|   215k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   215k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|   215k|#  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|   215k|    }
_ZN8jsoncons6binary13native_to_bigIaNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|   179k|    {
  128|   179k|        T val2 = byte_swap(val);
  129|   179k|        uint8_t buf[sizeof(T)];
  130|   179k|        std::memcpy(buf, &val2, sizeof(T));
  131|   179k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 179k, False: 179k]
  ------------------
  132|   179k|        {
  133|   179k|            *d_first++ = item;
  134|   179k|        }
  135|   179k|    }
_ZN8jsoncons6binary9byte_swapIaEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  1.90M|    {
   22|  1.90M|        return val;
   23|  1.90M|    }
_ZN8jsoncons6binary13native_to_bigIsNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  12.3k|    {
  128|  12.3k|        T val2 = byte_swap(val);
  129|  12.3k|        uint8_t buf[sizeof(T)];
  130|  12.3k|        std::memcpy(buf, &val2, sizeof(T));
  131|  12.3k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 24.6k, False: 12.3k]
  ------------------
  132|  24.6k|        {
  133|  24.6k|            *d_first++ = item;
  134|  24.6k|        }
  135|  12.3k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  40.2k|    {
   29|  40.2k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  40.2k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  40.2k|#      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|  40.2k|    }
_ZN8jsoncons6binary13native_to_bigIiNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  6.47k|    {
  128|  6.47k|        T val2 = byte_swap(val);
  129|  6.47k|        uint8_t buf[sizeof(T)];
  130|  6.47k|        std::memcpy(buf, &val2, sizeof(T));
  131|  6.47k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 25.9k, False: 6.47k]
  ------------------
  132|  25.9k|        {
  133|  25.9k|            *d_first++ = item;
  134|  25.9k|        }
  135|  6.47k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  22.3k|    {
   40|  22.3k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  22.3k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  22.3k|#  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|  22.3k|    }
_ZN8jsoncons6binary13native_to_bigIlNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  3.31k|    {
  128|  3.31k|        T val2 = byte_swap(val);
  129|  3.31k|        uint8_t buf[sizeof(T)];
  130|  3.31k|        std::memcpy(buf, &val2, sizeof(T));
  131|  3.31k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 26.5k, False: 3.31k]
  ------------------
  132|  26.5k|        {
  133|  26.5k|            *d_first++ = item;
  134|  26.5k|        }
  135|  3.31k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  73.7k|    {
   52|  73.7k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  73.7k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  73.7k|#  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|  73.7k|    }
_ZN8jsoncons6binary13native_to_bigIfNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  51.5k|    {
  128|  51.5k|        T val2 = byte_swap(val);
  129|  51.5k|        uint8_t buf[sizeof(T)];
  130|  51.5k|        std::memcpy(buf, &val2, sizeof(T));
  131|  51.5k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 206k, False: 51.5k]
  ------------------
  132|   206k|        {
  133|   206k|            *d_first++ = item;
  134|   206k|        }
  135|  51.5k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|   161k|    {
   65|   161k|        uint32_t x;
   66|   161k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|   161k|        uint32_t y = byte_swap(x);
   68|   161k|        T val2;
   69|   161k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|   161k|        return val2;
   71|   161k|    }
_ZN8jsoncons6binary13native_to_bigIdNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  26.7k|    {
  128|  26.7k|        T val2 = byte_swap(val);
  129|  26.7k|        uint8_t buf[sizeof(T)];
  130|  26.7k|        std::memcpy(buf, &val2, sizeof(T));
  131|  26.7k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 214k, False: 26.7k]
  ------------------
  132|   214k|        {
  133|   214k|            *d_first++ = item;
  134|   214k|        }
  135|  26.7k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|  89.6k|    {
   77|  89.6k|        uint64_t x;
   78|  89.6k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|  89.6k|        uint64_t y = byte_swap(x);
   80|  89.6k|        T val2;
   81|  89.6k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|  89.6k|        return val2;
   83|  89.6k|    }
_ZN8jsoncons6binary13big_to_nativeIfNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   109k|    {
  183|   109k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 109k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   109k|        T val;
  188|   109k|        std::memcpy(&val,first,sizeof(T));
  189|   109k|        return byte_swap(val);
  190|   109k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  62.8k|    {
  183|  62.8k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 62.8k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  62.8k|        T val;
  188|  62.8k|        std::memcpy(&val,first,sizeof(T));
  189|  62.8k|        return byte_swap(val);
  190|  62.8k|    }
_ZN8jsoncons6binary13big_to_nativeItNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  13.3k|    {
  183|  13.3k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 13.3k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  13.3k|        T val;
  188|  13.3k|        std::memcpy(&val,first,sizeof(T));
  189|  13.3k|        return byte_swap(val);
  190|  13.3k|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  60.5k|    {
  183|  60.5k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 60.5k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  60.5k|        T val;
  188|  60.5k|        std::memcpy(&val,first,sizeof(T));
  189|  60.5k|        return byte_swap(val);
  190|  60.5k|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  75.9k|    {
  183|  75.9k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 75.9k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  75.9k|        T val;
  188|  75.9k|        std::memcpy(&val,first,sizeof(T));
  189|  75.9k|        return byte_swap(val);
  190|  75.9k|    }
_ZN8jsoncons6binary13big_to_nativeIaNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  1.72M|    {
  183|  1.72M|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 1.72M]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  1.72M|        T val;
  188|  1.72M|        std::memcpy(&val,first,sizeof(T));
  189|  1.72M|        return byte_swap(val);
  190|  1.72M|    }
_ZN8jsoncons6binary13big_to_nativeIsNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  27.8k|    {
  183|  27.8k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 27.8k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  27.8k|        T val;
  188|  27.8k|        std::memcpy(&val,first,sizeof(T));
  189|  27.8k|        return byte_swap(val);
  190|  27.8k|    }
_ZN8jsoncons6binary13big_to_nativeIiNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  15.8k|    {
  183|  15.8k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 15.8k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  15.8k|        T val;
  188|  15.8k|        std::memcpy(&val,first,sizeof(T));
  189|  15.8k|        return byte_swap(val);
  190|  15.8k|    }
_ZN8jsoncons6binary13big_to_nativeIlNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  70.4k|    {
  183|  70.4k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 70.4k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  70.4k|        T val;
  188|  70.4k|        std::memcpy(&val,first,sizeof(T));
  189|  70.4k|        return byte_swap(val);
  190|  70.4k|    }
_ZN8jsoncons6binary13big_to_nativeIhNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  99.3k|    {
  183|  99.3k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 99.3k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  99.3k|        T val;
  188|  99.3k|        std::memcpy(&val,first,sizeof(T));
  189|  99.3k|        return byte_swap(val);
  190|  99.3k|    }
_ZN8jsoncons6binary9byte_swapIhEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  99.3k|    {
   22|  99.3k|        return val;
   23|  99.3k|    }

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

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

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

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   603k|    {
 1148|   603k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   603k|        const uint8_t* end = it + length;
 1150|       |
 1151|   603k|        unicode_errc  result{};
 1152|  14.3M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 13.7M, False: 603k]
  ------------------
 1153|  13.7M|        {
 1154|  13.7M|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 12.0M, False: 1.73M]
  ------------------
 1155|  12.0M|            {
 1156|  84.2M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|  24.0M|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 12.0M, False: 882]
  |  |  |  Branch (281:34): [True: 12.0M, False: 351]
  |  |  |  Branch (281:36): [True: 12.0M, False: 271]
  |  |  |  Branch (281:38): [True: 12.0M, False: 428]
  |  |  |  Branch (281:40): [True: 12.0M, False: 289]
  |  |  |  Branch (281:42): [True: 12.0M, False: 318]
  |  |  |  Branch (281:44): [True: 12.0M, False: 342]
  |  |  |  Branch (281:46): [True: 12.0M, False: 280]
  |  |  ------------------
  ------------------
 1157|  12.0M|                continue;
 1158|  84.2M|            }
 1159|  1.73M|    non_ascii:
 1160|  1.73M|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  1.73M|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 0, False: 1.73M]
  ------------------
 1162|      0|            {
 1163|      0|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|      0|            }
 1165|  1.73M|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 0, False: 1.73M]
  ------------------
 1166|      0|            {
 1167|      0|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|      0|            }
 1169|  1.73M|            it += len;
 1170|  1.73M|        }
 1171|   603k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   603k|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  1.75M|    {
  306|  1.75M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  1.75M|        const uint8_t* end = it+length;
  308|       |
  309|  1.75M|        uint8_t byte;
  310|  1.75M|        switch (length) {
  311|     28|        default:
  ------------------
  |  Branch (311:9): [True: 28, False: 1.75M]
  ------------------
  312|     28|            return unicode_errc::over_long_utf8_sequence;
  313|  1.47k|        case 4:
  ------------------
  |  Branch (313:9): [True: 1.47k, False: 1.75M]
  ------------------
  314|  1.47k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 5, False: 1.46k]
  ------------------
  315|      5|                return unicode_errc::bad_continuation_byte;
  316|  1.46k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.46k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  3.70k|        case 3:
  ------------------
  |  Branch (317:9): [True: 2.23k, False: 1.74M]
  ------------------
  318|  3.70k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 12, False: 3.69k]
  ------------------
  319|     12|                return unicode_errc::bad_continuation_byte;
  320|  3.69k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  3.69k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  8.93k|        case 2:
  ------------------
  |  Branch (321:9): [True: 5.24k, False: 1.74M]
  ------------------
  322|  8.93k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 35, False: 8.90k]
  ------------------
  323|     35|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  8.90k|            switch (*it) 
  326|  8.90k|            {
  327|       |                // no fall-through in this inner switch
  328|    877|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 877, False: 8.02k]
  |  Branch (328:32): [True: 4, False: 873]
  ------------------
  329|  1.17k|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 1.17k, False: 7.72k]
  |  Branch (329:32): [True: 4, False: 1.17k]
  ------------------
  330|  1.17k|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 622, False: 8.28k]
  |  Branch (330:32): [True: 6, False: 616]
  ------------------
  331|    709|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 709, False: 8.19k]
  |  Branch (331:32): [True: 5, False: 704]
  ------------------
  332|  5.51k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 5.51k, False: 3.38k]
  |  Branch (332:32): [True: 0, False: 5.51k]
  ------------------
  333|  8.90k|            }
  334|       |
  335|  8.88k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  8.88k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  1.75M|        case 1:
  ------------------
  |  Branch (336:9): [True: 1.74M, False: 8.98k]
  ------------------
  337|  1.75M|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 8.94k, False: 1.74M]
  |  Branch (337:32): [True: 59, False: 8.88k]
  ------------------
  338|     59|                return unicode_errc::source_illegal;
  339|  1.75M|            break;
  340|  1.75M|        }
  341|  1.75M|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 1, False: 1.75M]
  ------------------
  342|      1|            return unicode_errc::source_illegal;
  343|       |
  344|  1.75M|        return unicode_errc();
  345|  1.75M|    }
_ZN8jsoncons14unicode_traits8validateIhEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   712k|    {
 1148|   712k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   712k|        const uint8_t* end = it + length;
 1150|       |
 1151|   712k|        unicode_errc  result{};
 1152|   870k|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 158k, False: 712k]
  ------------------
 1153|   158k|        {
 1154|   158k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 147k, False: 10.8k]
  ------------------
 1155|   147k|            {
 1156|  1.01M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|   294k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 145k, False: 1.40k]
  |  |  |  Branch (281:34): [True: 145k, False: 370]
  |  |  |  Branch (281:36): [True: 145k, False: 283]
  |  |  |  Branch (281:38): [True: 144k, False: 254]
  |  |  |  Branch (281:40): [True: 144k, False: 296]
  |  |  |  Branch (281:42): [True: 144k, False: 222]
  |  |  |  Branch (281:44): [True: 143k, False: 426]
  |  |  |  Branch (281:46): [True: 143k, False: 345]
  |  |  ------------------
  ------------------
 1157|   143k|                continue;
 1158|  1.01M|            }
 1159|  14.4k|    non_ascii:
 1160|  14.4k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  14.4k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 35, False: 14.4k]
  ------------------
 1162|     35|            {
 1163|     35|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     35|            }
 1165|  14.4k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 159, False: 14.2k]
  ------------------
 1166|    159|            {
 1167|    159|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    159|            }
 1169|  14.2k|            it += len;
 1170|  14.2k|        }
 1171|   712k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   712k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  12.4M|{
   43|  12.4M|    using char_type = typename Result::value_type;
   44|       |
   45|  12.4M|    char_type buf[255];
   46|  12.4M|    char_type *p = buf;
   47|  12.4M|    const char_type* last = buf+255;
   48|       |
   49|  12.4M|    bool is_negative = value < 0;
   50|       |
   51|  12.4M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 12.4M]
  ------------------
   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|  12.4M|    else
   60|  12.4M|    {
   61|       |
   62|  12.4M|        do
   63|  15.8M|        {
   64|  15.8M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  15.8M|        }
   66|  15.8M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 3.38M, False: 12.4M]
  |  Branch (66:33): [True: 3.38M, False: 0]
  ------------------
   67|  12.4M|    }
   68|  12.4M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  12.4M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 12.4M]
  |  |  ------------------
  |  |   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|  12.4M|    std::size_t count = (p - buf);
   71|  12.4M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 12.4M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  28.2M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 15.8M, False: 12.4M]
  ------------------
   77|  15.8M|    {
   78|  15.8M|        result.push_back(*p);
   79|  15.8M|    }
   80|       |
   81|  12.4M|    return count;
   82|  12.4M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  2.74M|{
   43|  2.74M|    using char_type = typename Result::value_type;
   44|       |
   45|  2.74M|    char_type buf[255];
   46|  2.74M|    char_type *p = buf;
   47|  2.74M|    const char_type* last = buf+255;
   48|       |
   49|  2.74M|    bool is_negative = value < 0;
   50|       |
   51|  2.74M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 2.73M, False: 15.0k]
  ------------------
   52|  2.73M|    {
   53|  2.73M|        do
   54|  3.52M|        {
   55|  3.52M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  3.52M|        }
   57|  3.52M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 791k, False: 2.73M]
  |  Branch (57:33): [True: 791k, False: 0]
  ------------------
   58|  2.73M|    }
   59|  15.0k|    else
   60|  15.0k|    {
   61|       |
   62|  15.0k|        do
   63|   119k|        {
   64|   119k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|   119k|        }
   66|   119k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 104k, False: 15.0k]
  |  Branch (66:33): [True: 104k, False: 0]
  ------------------
   67|  15.0k|    }
   68|  2.74M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  2.74M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.74M]
  |  |  ------------------
  |  |   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.74M|    std::size_t count = (p - buf);
   71|  2.74M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 2.73M, False: 15.0k]
  ------------------
   72|  2.73M|    {
   73|  2.73M|        result.push_back('-');
   74|  2.73M|        ++count;
   75|  2.73M|    }
   76|  6.39M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 3.64M, False: 2.74M]
  ------------------
   77|  3.64M|    {
   78|  3.64M|        result.push_back(*p);
   79|  3.64M|    }
   80|       |
   81|  2.74M|    return count;
   82|  2.74M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  94.2k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  94.2k|    {
  489|  94.2k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  94.2k|        struct lconv *lc = localeconv();
  491|  94.2k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 94.2k, False: 0]
  |  Branch (491:30): [True: 94.2k, False: 0]
  ------------------
  492|  94.2k|        {
  493|  94.2k|            decimal_point_ = lc->decimal_point[0];
  494|  94.2k|        }
  495|  94.2k|#endif
  496|  94.2k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  94.2k|    {
  504|  94.2k|        std::size_t count = 0;
  505|       |
  506|  94.2k|        char number_buffer[200];
  507|  94.2k|        int length = 0;
  508|       |
  509|  94.2k|        switch (float_format_)
  510|  94.2k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 94.2k]
  ------------------
  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: 94.2k]
  ------------------
  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|  94.2k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 94.2k, False: 0]
  ------------------
  552|  94.2k|            {
  553|  94.2k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 94.2k]
  ------------------
  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|  94.2k|                else
  563|  94.2k|                {
  564|  94.2k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 94.2k]
  ------------------
  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|  94.2k|                }             
  569|  94.2k|                break;
  570|  94.2k|            }
  571|  94.2k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 94.2k]
  ------------------
  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|  94.2k|        }
  575|  94.2k|        return count;
  576|  94.2k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  6.02k|{
  244|  6.02k|    const char *sbeg = buffer;
  245|  6.02k|    const char *send = sbeg + length;
  246|       |
  247|  6.02k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 6.02k, False: 0]
  ------------------
  248|  6.02k|    {
  249|  6.02k|        bool needs_dot = true;
  250|  91.0k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 84.9k, False: 6.02k]
  ------------------
  251|  84.9k|        {
  252|  84.9k|            switch (*q)
  253|  84.9k|            {
  254|  3.77k|            case '-':
  ------------------
  |  Branch (254:13): [True: 3.77k, False: 81.2k]
  ------------------
  255|  10.4k|            case '0':
  ------------------
  |  Branch (255:13): [True: 6.66k, False: 78.3k]
  ------------------
  256|  17.7k|            case '1':
  ------------------
  |  Branch (256:13): [True: 7.35k, False: 77.6k]
  ------------------
  257|  29.6k|            case '2':
  ------------------
  |  Branch (257:13): [True: 11.8k, False: 73.1k]
  ------------------
  258|  32.9k|            case '3':
  ------------------
  |  Branch (258:13): [True: 3.31k, False: 81.6k]
  ------------------
  259|  42.9k|            case '4':
  ------------------
  |  Branch (259:13): [True: 10.0k, False: 74.9k]
  ------------------
  260|  48.2k|            case '5':
  ------------------
  |  Branch (260:13): [True: 5.27k, False: 79.7k]
  ------------------
  261|  57.4k|            case '6':
  ------------------
  |  Branch (261:13): [True: 9.20k, False: 75.7k]
  ------------------
  262|  63.0k|            case '7':
  ------------------
  |  Branch (262:13): [True: 5.61k, False: 79.3k]
  ------------------
  263|  69.8k|            case '8':
  ------------------
  |  Branch (263:13): [True: 6.80k, False: 78.1k]
  ------------------
  264|  74.1k|            case '9':
  ------------------
  |  Branch (264:13): [True: 4.24k, False: 80.7k]
  ------------------
  265|  76.4k|            case '+':
  ------------------
  |  Branch (265:13): [True: 2.31k, False: 82.6k]
  ------------------
  266|  76.4k|                result.push_back(*q);
  267|  76.4k|                break;
  268|  3.39k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 3.39k, False: 81.5k]
  ------------------
  269|  3.39k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 84.9k]
  ------------------
  270|  3.39k|                result.push_back('e');
  271|  3.39k|                needs_dot = false;
  272|  3.39k|                break;
  273|  5.16k|            default:
  ------------------
  |  Branch (273:13): [True: 5.16k, False: 79.8k]
  ------------------
  274|  5.16k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 3.60k, False: 1.55k]
  ------------------
  275|  3.60k|                {
  276|  3.60k|                    needs_dot = false;
  277|  3.60k|                    result.push_back('.');
  278|  3.60k|                }
  279|  5.16k|                break;
  280|  84.9k|            }
  281|  84.9k|        }
  282|  6.02k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 2.41k, False: 3.60k]
  ------------------
  283|  2.41k|        {
  284|  2.41k|            result.push_back('.');
  285|  2.41k|            result.push_back('0');
  286|  2.41k|        }
  287|  6.02k|    }
  288|  6.02k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKciiiiRT_:
  171|  87.7k|{
  172|  87.7k|    int nb_digits = length;
  173|  87.7k|    int offset;
  174|       |    /* v = buffer * 10^k
  175|       |       kk is such that 10^(kk-1) <= v < 10^kk
  176|       |       this way kk gives the position of the decimal point.
  177|       |    */
  178|  87.7k|    int kk = nb_digits + k;
  179|       |
  180|  87.7k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 59.7k, False: 27.9k]
  |  Branch (180:28): [True: 20.1k, False: 39.6k]
  ------------------
  181|  20.1k|    {
  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|   160k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 139k, False: 20.1k]
  ------------------
  186|   139k|        {
  187|   139k|            result.push_back(buffer[i]);
  188|   139k|        }
  189|  22.6k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 2.50k, False: 20.1k]
  ------------------
  190|  2.50k|        {
  191|  2.50k|            result.push_back('0');
  192|  2.50k|        }
  193|  20.1k|        result.push_back('.');
  194|  20.1k|        result.push_back('0');
  195|  20.1k|    } 
  196|  67.6k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 46.9k, False: 20.6k]
  |  Branch (196:24): [True: 7.28k, False: 39.6k]
  ------------------
  197|  7.28k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  27.3k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 20.0k, False: 7.28k]
  ------------------
  200|  20.0k|        {
  201|  20.0k|            result.push_back(buffer[i]);
  202|  20.0k|        }
  203|  7.28k|        result.push_back('.');
  204|   100k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 93.7k, False: 7.28k]
  ------------------
  205|  93.7k|        {
  206|  93.7k|            result.push_back(buffer[i]);
  207|  93.7k|        }
  208|  7.28k|    } 
  209|  60.3k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 41.2k, False: 19.0k]
  |  Branch (209:30): [True: 1.58k, False: 39.6k]
  ------------------
  210|  1.58k|    {
  211|  1.58k|        offset = 2 - kk;
  212|       |
  213|  1.58k|        result.push_back('0');
  214|  1.58k|        result.push_back('.');
  215|  3.59k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 2.00k, False: 1.58k]
  ------------------
  216|  2.00k|            result.push_back('0');
  217|  24.3k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 22.8k, False: 1.58k]
  ------------------
  218|  22.8k|        {
  219|  22.8k|            result.push_back(buffer[i]);
  220|  22.8k|        }
  221|  1.58k|    } 
  222|  58.7k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 877, False: 57.8k]
  ------------------
  223|    877|    {
  224|    877|        result.push_back(buffer[0]);
  225|    877|        result.push_back('e');
  226|    877|        fill_exponent(kk - 1, result);
  227|    877|    } 
  228|  57.8k|    else
  229|  57.8k|    {
  230|  57.8k|        result.push_back(buffer[0]);
  231|  57.8k|        result.push_back('.');
  232|   870k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 812k, False: 57.8k]
  ------------------
  233|   812k|        {
  234|   812k|            result.push_back(buffer[i]);
  235|   812k|        }
  236|  57.8k|        result.push_back('e');
  237|  57.8k|        fill_exponent(kk - 1, result);
  238|  57.8k|    }
  239|  87.7k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  58.7k|{
  137|  58.7k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 19.0k, False: 39.6k]
  ------------------
  138|  19.0k|    {
  139|  19.0k|        result.push_back('-');
  140|  19.0k|        K = -K;
  141|  19.0k|    }
  142|  39.6k|    else
  143|  39.6k|    {
  144|  39.6k|        result.push_back('+'); // compatibility with sprintf
  145|  39.6k|    }
  146|       |
  147|  58.7k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 607, False: 58.1k]
  ------------------
  148|    607|    {
  149|    607|        result.push_back('0'); // compatibility with sprintf
  150|    607|        result.push_back((char)('0' + K));
  151|    607|    }
  152|  58.1k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 36.4k, False: 21.6k]
  ------------------
  153|  36.4k|    {
  154|  36.4k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  36.4k|        result.push_back((char)('0' + K));
  156|  36.4k|    }
  157|  21.6k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 21.6k, False: 0]
  ------------------
  158|  21.6k|    {
  159|  21.6k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  21.6k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  21.6k|        result.push_back((char)('0' + K));
  162|  21.6k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  58.7k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  94.2k|{
  476|  94.2k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  94.2k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  94.2k|{
  367|  94.2k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 528, False: 93.7k]
  ------------------
  368|    528|    {
  369|    528|        result.push_back('0');
  370|    528|        result.push_back('.');
  371|    528|        result.push_back('0');
  372|    528|        return true;
  373|    528|    }
  374|       |
  375|  93.7k|    int length = 0;
  376|  93.7k|    int k;
  377|       |
  378|  93.7k|    char buffer[100];
  379|       |
  380|  93.7k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 76.2k, False: 17.5k]
  ------------------
  381|  93.7k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 87.7k, False: 6.02k]
  ------------------
  382|  87.7k|    {
  383|  87.7k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 73.5k, False: 14.1k]
  ------------------
  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|  87.7k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  87.7k|        return true;
  391|  87.7k|    }
  392|  6.02k|    else
  393|  6.02k|    {
  394|  6.02k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  6.02k|    }
  396|  93.7k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  6.02k|{
  330|  6.02k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 6.02k]
  ------------------
  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|  6.02k|    char buffer[100];
  339|  6.02k|    int precision = std::numeric_limits<double>::digits10;
  340|  6.02k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  6.02k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 6.02k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  6.02k|    double x{0};
  346|  6.02k|    auto res = decstr_to_double(buffer, length, x);
  347|  6.02k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 6.02k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  6.02k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 3.64k, False: 2.37k]
  ------------------
  352|  3.64k|    {
  353|  3.64k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  3.64k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  3.64k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 3.64k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  3.64k|    }
  360|  6.02k|    dump_buffer(buffer, length, decimal_point, result);
  361|  6.02k|    return true;
  362|  6.02k|}

_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEEC2EOS8_RKS9_:
   97|  6.61k|           : basic_msgpack_encoder(std::forward<Sink>(sink), msgpack_encode_options(), alloc)
   98|  6.61k|        {
   99|  6.61k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEEC2EOS8_RKNS0_22msgpack_encode_optionsERKS9_:
  104|  6.61k|           : sink_(std::forward<Sink>(sink)),
  105|  6.61k|             max_nesting_depth_(options.max_nesting_depth()),
  106|  6.61k|             alloc_(alloc)
  107|  6.61k|        {
  108|  6.61k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  204|   156k|        {
  205|   156k|            if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|   156k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 156k]
  |  |  ------------------
  ------------------
  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|   156k|            stack_.emplace_back(msgpack_container_type::array, length);
  211|   156k|            if (length <= 15)
  ------------------
  |  Branch (211:17): [True: 150k, False: 5.56k]
  ------------------
  212|   150k|            {
  213|       |                // fixarray
  214|   150k|                sink_.push_back(jsoncons::msgpack::msgpack_type::fixarray_base_type | (length & 0xf));
  215|   150k|            }
  216|  5.56k|            else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (216:22): [True: 1.98k, False: 3.57k]
  ------------------
  217|  1.98k|            {
  218|       |                // array 16
  219|  1.98k|                sink_.push_back(jsoncons::msgpack::msgpack_type::array16_type);
  220|  1.98k|                binary::native_to_big(static_cast<uint16_t>(length),std::back_inserter(sink_));
  221|  1.98k|            }
  222|  3.57k|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (222:22): [True: 3.57k, False: 0]
  ------------------
  223|  3.57k|            {
  224|       |                // array 32
  225|  3.57k|                sink_.push_back(jsoncons::msgpack::msgpack_type::array32_type);
  226|  3.57k|                binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  227|  3.57k|            }
  228|   156k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   156k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  229|   156k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_itemC2ENS0_22msgpack_container_typeEm:
   64|   180k|               : type_(type), length_(length)
   65|   180k|            {
   66|   180k|            }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE15visit_end_arrayERKNS_11ser_contextERNS3_10error_codeE:
  232|   138k|        {
  233|   138k|            JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   49|   138k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 138k]
  |  |  ------------------
  |  |   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|   138k|            --nesting_depth_;
  236|       |
  237|   138k|            if (stack_.back().count() < stack_.back().length())
  ------------------
  |  Branch (237:17): [True: 495, False: 137k]
  ------------------
  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|   137k|            else if (stack_.back().count() > stack_.back().length())
  ------------------
  |  Branch (242:22): [True: 0, False: 137k]
  ------------------
  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|   137k|            stack_.pop_back();
  249|   137k|            end_value();
  250|   137k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   137k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  251|   138k|        }
_ZNK8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item5countEv:
   74|   303k|            {
   75|   303k|                return is_object() ? index_/2 : index_;
  ------------------
  |  Branch (75:24): [True: 27.6k, False: 275k]
  ------------------
   76|   303k|            }
_ZNK8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item9is_objectEv:
   79|   303k|            {
   80|   303k|                return type_ == msgpack_container_type::object;
   81|   303k|            }
_ZNK8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item6lengthEv:
   69|   303k|            {
   70|   303k|                return length_;
   71|   303k|            }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9end_valueEv:
  755|  3.29M|        {
  756|  3.29M|            if (!stack_.empty())
  ------------------
  |  Branch (756:17): [True: 3.28M, False: 882]
  ------------------
  757|  3.28M|            {
  758|  3.28M|                ++stack_.back().index_;
  759|  3.28M|            }
  760|  3.29M|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  663|  1.23M|        {
  664|  1.23M|            switch (tag)
  665|  1.23M|            {
  666|  1.43k|                case semantic_tag::epoch_second:
  ------------------
  |  Branch (666:17): [True: 1.43k, False: 1.22M]
  ------------------
  667|  1.43k|                    write_timestamp(static_cast<int64_t>(val), 0);
  668|  1.43k|                    break;
  669|      0|                case semantic_tag::epoch_milli:
  ------------------
  |  Branch (669:17): [True: 0, False: 1.23M]
  ------------------
  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: 1.23M]
  ------------------
  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|  1.22M|                default:
  ------------------
  |  Branch (707:17): [True: 1.22M, False: 1.43k]
  ------------------
  708|  1.22M|                {
  709|  1.22M|                    if (val <= static_cast<uint64_t>((std::numeric_limits<int8_t>::max)()))
  ------------------
  |  Branch (709:25): [True: 1.20M, False: 26.5k]
  ------------------
  710|  1.20M|                    {
  711|       |                        // positive fixnum stores 7-bit positive integer
  712|  1.20M|                        sink_.push_back(static_cast<uint8_t>(val));
  713|  1.20M|                    }
  714|  26.5k|                    else if (val <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (714:30): [True: 14.4k, False: 12.1k]
  ------------------
  715|  14.4k|                    {
  716|       |                        // uint 8 stores a 8-bit unsigned integer
  717|  14.4k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint8_type);
  718|  14.4k|                        sink_.push_back(static_cast<uint8_t>(val));
  719|  14.4k|                    }
  720|  12.1k|                    else if (val <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (720:30): [True: 1.05k, False: 11.0k]
  ------------------
  721|  1.05k|                    {
  722|       |                        // uint 16 stores a 16-bit big-endian unsigned integer
  723|  1.05k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint16_type);
  724|  1.05k|                        binary::native_to_big(static_cast<uint16_t>(val),std::back_inserter(sink_));
  725|  1.05k|                    }
  726|  11.0k|                    else if (val <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (726:30): [True: 8.24k, False: 2.85k]
  ------------------
  727|  8.24k|                    {
  728|       |                        // uint 32 stores a 32-bit big-endian unsigned integer
  729|  8.24k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint32_type);
  730|  8.24k|                        binary::native_to_big(static_cast<uint32_t>(val),std::back_inserter(sink_));
  731|  8.24k|                    }
  732|  2.85k|                    else if (val <= (std::numeric_limits<uint64_t>::max)())
  ------------------
  |  Branch (732:30): [True: 2.85k, False: 0]
  ------------------
  733|  2.85k|                    {
  734|       |                        // uint 64 stores a 64-bit big-endian unsigned integer
  735|  2.85k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint64_type);
  736|  2.85k|                        binary::native_to_big(static_cast<uint64_t>(val),std::back_inserter(sink_));
  737|  2.85k|                    }
  738|  1.22M|                    break;
  739|      0|                }
  740|  1.23M|            }
  741|  1.23M|            end_value();
  742|  1.23M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.23M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  743|  1.23M|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE15write_timestampEll:
  268|  24.3k|        {
  269|  24.3k|            if ((seconds >> 34) == 0) 
  ------------------
  |  Branch (269:17): [True: 17.2k, False: 7.15k]
  ------------------
  270|  17.2k|            {
  271|  17.2k|                uint64_t data64 = (nanoseconds << 34) | seconds;
  272|  17.2k|                if ((data64 & 0xffffffff00000000L) == 0) 
  ------------------
  |  Branch (272:21): [True: 3.50k, False: 13.7k]
  ------------------
  273|  3.50k|                {
  274|       |                    // timestamp 32
  275|  3.50k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext4_type);
  276|  3.50k|                    sink_.push_back(0xff);
  277|  3.50k|                    binary::native_to_big(static_cast<uint32_t>(data64), std::back_inserter(sink_));
  278|  3.50k|                }
  279|  13.7k|                else 
  280|  13.7k|                {
  281|       |                    // timestamp 64
  282|  13.7k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext8_type);
  283|  13.7k|                    sink_.push_back(0xff);
  284|  13.7k|                    binary::native_to_big(static_cast<uint64_t>(data64), std::back_inserter(sink_));
  285|  13.7k|                }
  286|  17.2k|            }
  287|  7.15k|            else 
  288|  7.15k|            {
  289|       |                // timestamp 96
  290|  7.15k|                sink_.push_back(jsoncons::msgpack::msgpack_type::ext8_type);
  291|  7.15k|                sink_.push_back(0x0c); // 12
  292|  7.15k|                sink_.push_back(0xff);
  293|  7.15k|                binary::native_to_big(static_cast<uint32_t>(nanoseconds), std::back_inserter(sink_));
  294|  7.15k|                binary::native_to_big(static_cast<uint64_t>(seconds), std::back_inserter(sink_));
  295|  7.15k|            }
  296|  24.3k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  542|   232k|        {
  543|   232k|            switch (tag)
  544|   232k|            {
  545|      0|                case semantic_tag::epoch_second:
  ------------------
  |  Branch (545:17): [True: 0, False: 232k]
  ------------------
  546|      0|                    write_timestamp(val, 0);
  547|      0|                    break;
  548|      0|                case semantic_tag::epoch_milli:
  ------------------
  |  Branch (548:17): [True: 0, False: 232k]
  ------------------
  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: 232k]
  ------------------
  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|   232k|                default:
  ------------------
  |  Branch (586:17): [True: 232k, False: 0]
  ------------------
  587|   232k|                {
  588|   232k|                    if (val >= 0)
  ------------------
  |  Branch (588:25): [True: 30.4k, False: 202k]
  ------------------
  589|  30.4k|                    {
  590|  30.4k|                        if (val <= 0x7f)
  ------------------
  |  Branch (590:29): [True: 1.71k, False: 28.6k]
  ------------------
  591|  1.71k|                        {
  592|       |                            // positive fixnum stores 7-bit positive integer
  593|  1.71k|                            sink_.push_back(static_cast<uint8_t>(val));
  594|  1.71k|                        }
  595|  28.6k|                        else if (val <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (595:34): [True: 676, False: 28.0k]
  ------------------
  596|    676|                        {
  597|       |                            // uint 8 stores a 8-bit unsigned integer
  598|    676|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint8_type);
  599|    676|                            sink_.push_back(static_cast<uint8_t>(val));
  600|    676|                        }
  601|  28.0k|                        else if (val <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (601:34): [True: 1.66k, False: 26.3k]
  ------------------
  602|  1.66k|                        {
  603|       |                            // uint 16 stores a 16-bit big-endian unsigned integer
  604|  1.66k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint16_type);
  605|  1.66k|                            binary::native_to_big(static_cast<uint16_t>(val),std::back_inserter(sink_));
  606|  1.66k|                        }
  607|  26.3k|                        else if (val <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (607:34): [True: 353, False: 26.0k]
  ------------------
  608|    353|                        {
  609|       |                            // uint 32 stores a 32-bit big-endian unsigned integer
  610|    353|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint32_type);
  611|    353|                            binary::native_to_big(static_cast<uint32_t>(val),std::back_inserter(sink_));
  612|    353|                        }
  613|  26.0k|                        else if (val <= (std::numeric_limits<int64_t>::max)())
  ------------------
  |  Branch (613:34): [True: 26.0k, False: 0]
  ------------------
  614|  26.0k|                        {
  615|       |                            // int 64 stores a 64-bit big-endian signed integer
  616|  26.0k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint64_type);
  617|  26.0k|                            binary::native_to_big(static_cast<uint64_t>(val),std::back_inserter(sink_));
  618|  26.0k|                        }
  619|  30.4k|                    }
  620|   202k|                    else
  621|   202k|                    {
  622|   202k|                        if (val >= -32)
  ------------------
  |  Branch (622:29): [True: 137k, False: 64.7k]
  ------------------
  623|   137k|                        {
  624|       |                            // negative fixnum stores 5-bit negative integer
  625|   137k|                            binary::native_to_big(static_cast<int8_t>(val), std::back_inserter(sink_));
  626|   137k|                        }
  627|  64.7k|                        else if (val >= (std::numeric_limits<int8_t>::lowest)())
  ------------------
  |  Branch (627:34): [True: 42.6k, False: 22.1k]
  ------------------
  628|  42.6k|                        {
  629|       |                            // int 8 stores a 8-bit signed integer
  630|  42.6k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::int8_type);
  631|  42.6k|                            binary::native_to_big(static_cast<int8_t>(val),std::back_inserter(sink_));
  632|  42.6k|                        }
  633|  22.1k|                        else if (val >= (std::numeric_limits<int16_t>::lowest)())
  ------------------
  |  Branch (633:34): [True: 12.3k, False: 9.79k]
  ------------------
  634|  12.3k|                        {
  635|       |                            // int 16 stores a 16-bit big-endian signed integer
  636|  12.3k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::int16_type);
  637|  12.3k|                            binary::native_to_big(static_cast<int16_t>(val),std::back_inserter(sink_));
  638|  12.3k|                        }
  639|  9.79k|                        else if (val >= (std::numeric_limits<int32_t>::lowest)())
  ------------------
  |  Branch (639:34): [True: 6.47k, False: 3.31k]
  ------------------
  640|  6.47k|                        {
  641|       |                            // int 32 stores a 32-bit big-endian signed integer
  642|  6.47k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::int32_type);
  643|  6.47k|                            binary::native_to_big(static_cast<int32_t>(val),std::back_inserter(sink_));
  644|  6.47k|                        }
  645|  3.31k|                        else if (val >= (std::numeric_limits<int64_t>::lowest)())
  ------------------
  |  Branch (645:34): [True: 3.31k, False: 0]
  ------------------
  646|  3.31k|                        {
  647|       |                            // int 64 stores a 64-bit big-endian signed integer
  648|  3.31k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::int64_type);
  649|  3.31k|                            binary::native_to_big(static_cast<int64_t>(val),std::back_inserter(sink_));
  650|  3.31k|                        }
  651|   202k|                    }
  652|   232k|                }
  653|   232k|                break;
  654|   232k|            }
  655|   232k|            end_value();
  656|   232k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   232k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  657|   232k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  517|  78.3k|        {
  518|  78.3k|            float valf = (float)val;
  519|  78.3k|            if ((double)valf == val)
  ------------------
  |  Branch (519:17): [True: 51.5k, False: 26.7k]
  ------------------
  520|  51.5k|            {
  521|       |                // float 32
  522|  51.5k|                sink_.push_back(jsoncons::msgpack::msgpack_type::float32_type);
  523|  51.5k|                binary::native_to_big(valf,std::back_inserter(sink_));
  524|  51.5k|            }
  525|  26.7k|            else
  526|  26.7k|            {
  527|       |                // float 64
  528|  26.7k|                sink_.push_back(jsoncons::msgpack::msgpack_type::float64_type);
  529|  26.7k|                binary::native_to_big(val,std::back_inserter(sink_));
  530|  26.7k|            }
  531|       |
  532|       |            // write double
  533|       |
  534|  78.3k|            end_value();
  535|  78.3k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  78.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  536|  78.3k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE11visit_flushEv:
  134|  1.66k|        {
  135|  1.66k|            sink_.flush();
  136|  1.66k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  145|  23.6k|        {
  146|  23.6k|            if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|  23.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 23.6k]
  |  |  ------------------
  ------------------
  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|  23.6k|            stack_.emplace_back(msgpack_container_type::object, length);
  152|       |
  153|  23.6k|            if (length <= 15)
  ------------------
  |  Branch (153:17): [True: 20.7k, False: 2.85k]
  ------------------
  154|  20.7k|            {
  155|       |                // fixmap
  156|  20.7k|                sink_.push_back(jsoncons::msgpack::msgpack_type::fixmap_base_type | (length & 0xf));
  157|  20.7k|            }
  158|  2.85k|            else if (length <= 65535)
  ------------------
  |  Branch (158:22): [True: 1.47k, False: 1.38k]
  ------------------
  159|  1.47k|            {
  160|       |                // map 16
  161|  1.47k|                sink_.push_back(jsoncons::msgpack::msgpack_type::map16_type);
  162|  1.47k|                binary::native_to_big(static_cast<uint16_t>(length), 
  163|  1.47k|                                      std::back_inserter(sink_));
  164|  1.47k|            }
  165|  1.38k|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (165:22): [True: 1.38k, False: 0]
  ------------------
  166|  1.38k|            {
  167|       |                // map 32
  168|  1.38k|                sink_.push_back(jsoncons::msgpack::msgpack_type::map32_type);
  169|  1.38k|                binary::native_to_big(static_cast<uint32_t>(length),
  170|  1.38k|                                      std::back_inserter(sink_));
  171|  1.38k|            }
  172|       |
  173|  23.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  23.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  174|  23.6k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE16visit_end_objectERKNS_11ser_contextERNS3_10error_codeE:
  177|  14.0k|        {
  178|  14.0k|            JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   49|  14.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 14.0k]
  |  |  ------------------
  |  |   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|  14.0k|            --nesting_depth_;
  180|       |
  181|  14.0k|            if (stack_.back().count() < stack_.back().length())
  ------------------
  |  Branch (181:17): [True: 417, False: 13.6k]
  ------------------
  182|    417|            {
  183|    417|                ec = msgpack_errc::too_few_items;
  184|    417|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    417|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  185|    417|            }
  186|  13.6k|            else if (stack_.back().count() > stack_.back().length())
  ------------------
  |  Branch (186:22): [True: 0, False: 13.6k]
  ------------------
  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|  13.6k|            stack_.pop_back();
  193|  13.6k|            end_value();
  194|  13.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  195|  14.0k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9visit_keyERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  254|   598k|        {
  255|   598k|            visit_string(name, semantic_tag::none, context, ec);
  256|   598k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   598k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  257|   598k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  260|  10.8k|        {
  261|       |            // nil
  262|  10.8k|            sink_.push_back(jsoncons::msgpack::msgpack_type::nil_type);
  263|  10.8k|            end_value();
  264|  10.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  10.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  265|  10.8k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  746|   270k|        {
  747|       |            // true and false
  748|   270k|            sink_.push_back(static_cast<uint8_t>(val ? jsoncons::msgpack::msgpack_type::true_type : jsoncons::msgpack::msgpack_type::false_type));
  ------------------
  |  Branch (748:50): [True: 6.44k, False: 263k]
  ------------------
  749|       |
  750|   270k|            end_value();
  751|   270k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   270k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  752|   270k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  299|   626k|        {
  300|   626k|            switch (tag)
  301|   626k|            {
  302|      0|                case semantic_tag::epoch_second:
  ------------------
  |  Branch (302:17): [True: 0, False: 626k]
  ------------------
  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: 626k]
  ------------------
  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|  22.9k|                case semantic_tag::epoch_nano:
  ------------------
  |  Branch (342:17): [True: 22.9k, False: 603k]
  ------------------
  343|  22.9k|                {
  344|  22.9k|                    bigint n;
  345|  22.9k|                    auto result = to_bigint(sv.data(), sv.length(), n);
  346|  22.9k|                    if (!result)
  ------------------
  |  Branch (346:25): [True: 0, False: 22.9k]
  ------------------
  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|  22.9k|                    if (n != 0)
  ------------------
  |  Branch (351:25): [True: 21.0k, False: 1.89k]
  ------------------
  352|  21.0k|                    {
  353|  21.0k|                        bigint q;
  354|  21.0k|                        bigint rem;
  355|  21.0k|                        n.divide(nanos_in_second, q, rem, true);
  356|  21.0k|                        auto seconds = static_cast<int64_t>(q);
  357|  21.0k|                        auto nanoseconds = static_cast<int64_t>(rem);
  358|  21.0k|                        if (nanoseconds < 0)
  ------------------
  |  Branch (358:29): [True: 3.27k, False: 17.7k]
  ------------------
  359|  3.27k|                        {
  360|  3.27k|                            nanoseconds = -nanoseconds; 
  361|  3.27k|                        }
  362|  21.0k|                        write_timestamp(seconds, nanoseconds);
  363|  21.0k|                    }
  364|  1.89k|                    else
  365|  1.89k|                    {
  366|  1.89k|                        write_timestamp(0, 0);
  367|  1.89k|                    }
  368|  22.9k|                    break;
  369|  22.9k|                }
  370|   603k|                default:
  ------------------
  |  Branch (370:17): [True: 603k, False: 22.9k]
  ------------------
  371|   603k|                {
  372|   603k|                    write_string_value(sv);
  373|   603k|                    end_value();
  374|   603k|                    break;
  375|  22.9k|                }
  376|   626k|            }
  377|   626k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   626k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  378|   626k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE18write_string_valueERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEE:
  381|   603k|        {
  382|   603k|            auto sink = unicode_traits::validate(sv.data(), sv.size());
  383|   603k|            if (sink.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (383:17): [True: 0, False: 603k]
  ------------------
  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|   603k|            const size_t length = sv.length();
  389|   603k|            if (length <= 31)
  ------------------
  |  Branch (389:17): [True: 600k, False: 2.82k]
  ------------------
  390|   600k|            {
  391|       |                // fixstr stores a byte array whose length is upto 31 bytes
  392|   600k|                sink_.push_back(jsoncons::msgpack::msgpack_type::fixstr_base_type | static_cast<uint8_t>(length));
  393|   600k|            }
  394|  2.82k|            else if (length <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (394:22): [True: 1.61k, False: 1.20k]
  ------------------
  395|  1.61k|            {
  396|       |                // str 8 stores a byte array whose length is upto (2^8)-1 bytes
  397|  1.61k|                sink_.push_back(jsoncons::msgpack::msgpack_type::str8_type);
  398|  1.61k|                sink_.push_back(static_cast<uint8_t>(length));
  399|  1.61k|            }
  400|  1.20k|            else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (400:22): [True: 758, False: 446]
  ------------------
  401|    758|            {
  402|       |                // str 16 stores a byte array whose length is upto (2^16)-1 bytes
  403|    758|                sink_.push_back(jsoncons::msgpack::msgpack_type::str16_type);
  404|    758|                binary::native_to_big(static_cast<uint16_t>(length), std::back_inserter(sink_));
  405|    758|            }
  406|    446|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (406:22): [True: 446, False: 0]
  ------------------
  407|    446|            {
  408|       |                // str 32 stores a byte array whose length is upto (2^32)-1 bytes
  409|    446|                sink_.push_back(jsoncons::msgpack::msgpack_type::str32_type);
  410|    446|                binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  411|    446|            }
  412|       |
  413|   603k|            for (auto c : sv)
  ------------------
  |  Branch (413:25): [True: 98.0M, False: 603k]
  ------------------
  414|  98.0M|            {
  415|  98.0M|                sink_.push_back(c);
  416|  98.0M|            }
  417|   603k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  423|  10.9k|        {
  424|       |
  425|  10.9k|            const std::size_t length = b.size();
  426|  10.9k|            if (length <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (426:17): [True: 10.2k, False: 772]
  ------------------
  427|  10.2k|            {
  428|       |                // bin 8 stores a byte array whose length is upto (2^8)-1 bytes
  429|  10.2k|                sink_.push_back(jsoncons::msgpack::msgpack_type::bin8_type);
  430|  10.2k|                sink_.push_back(static_cast<uint8_t>(length));
  431|  10.2k|            }
  432|    772|            else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (432:22): [True: 708, False: 64]
  ------------------
  433|    708|            {
  434|       |                // bin 16 stores a byte array whose length is upto (2^16)-1 bytes
  435|    708|                sink_.push_back(jsoncons::msgpack::msgpack_type::bin16_type);
  436|    708|                binary::native_to_big(static_cast<uint16_t>(length), std::back_inserter(sink_));
  437|    708|            }
  438|     64|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (438:22): [True: 64, False: 0]
  ------------------
  439|     64|            {
  440|       |                // bin 32 stores a byte array whose length is upto (2^32)-1 bytes
  441|     64|                sink_.push_back(jsoncons::msgpack::msgpack_type::bin32_type);
  442|     64|                binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  443|     64|            }
  444|       |
  445|  10.9k|            for (auto c : b)
  ------------------
  |  Branch (445:25): [True: 6.54M, False: 10.9k]
  ------------------
  446|  6.54M|            {
  447|  6.54M|                sink_.push_back(c);
  448|  6.54M|            }
  449|       |
  450|  10.9k|            end_value();
  451|  10.9k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  10.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  452|  10.9k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS3_10error_codeE:
  458|   702k|        {
  459|   702k|            const std::size_t length = b.size();
  460|   702k|            switch (length)
  461|   702k|            {
  462|  1.32k|                case 1:
  ------------------
  |  Branch (462:17): [True: 1.32k, False: 701k]
  ------------------
  463|  1.32k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext1_type);
  464|  1.32k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  465|  1.32k|                    break;
  466|   686k|                case 2:
  ------------------
  |  Branch (466:17): [True: 686k, False: 15.6k]
  ------------------
  467|   686k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext2_type);
  468|   686k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  469|   686k|                    break;
  470|    645|                case 4:
  ------------------
  |  Branch (470:17): [True: 645, False: 701k]
  ------------------
  471|    645|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext4_type);
  472|    645|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  473|    645|                    break;
  474|  4.04k|                case 8:
  ------------------
  |  Branch (474:17): [True: 4.04k, False: 698k]
  ------------------
  475|  4.04k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext8_type);
  476|  4.04k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  477|  4.04k|                    break;
  478|  7.10k|                case 16:
  ------------------
  |  Branch (478:17): [True: 7.10k, False: 695k]
  ------------------
  479|  7.10k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext16_type);
  480|  7.10k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  481|  7.10k|                    break;
  482|  2.55k|                default:
  ------------------
  |  Branch (482:17): [True: 2.55k, False: 699k]
  ------------------
  483|  2.55k|                    if (length <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (483:25): [True: 1.59k, False: 960]
  ------------------
  484|  1.59k|                    {
  485|  1.59k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::ext8_type);
  486|  1.59k|                        sink_.push_back(static_cast<uint8_t>(length));
  487|  1.59k|                        sink_.push_back(static_cast<uint8_t>(raw_tag));
  488|  1.59k|                    }
  489|    960|                    else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (489:30): [True: 876, False: 84]
  ------------------
  490|    876|                    {
  491|    876|                        sink_.push_back(jsoncons::msgpack::msgpack_type::ext16_type);
  492|    876|                        binary::native_to_big(static_cast<uint16_t>(length), std::back_inserter(sink_));
  493|    876|                        sink_.push_back(static_cast<uint8_t>(raw_tag));
  494|    876|                    }
  495|     84|                    else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (495:30): [True: 84, False: 0]
  ------------------
  496|     84|                    {
  497|     84|                        sink_.push_back(jsoncons::msgpack::msgpack_type::ext32_type);
  498|     84|                        binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  499|     84|                        sink_.push_back(static_cast<uint8_t>(raw_tag));
  500|     84|                    }
  501|  2.55k|                    break;
  502|   702k|            }
  503|       |
  504|   702k|            for (auto c : b)
  ------------------
  |  Branch (504:25): [True: 10.5M, False: 702k]
  ------------------
  505|  10.5M|            {
  506|  10.5M|                sink_.push_back(c);
  507|  10.5M|            }
  508|       |
  509|   702k|            end_value();
  510|   702k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   702k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  511|   702k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEED2Ev:
  111|  6.61k|        {
  112|  6.61k|            sink_.flush();
  113|  6.61k|        }

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

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

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

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

