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

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

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

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|   659k|        {
 1009|   659k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 29.9k, False: 629k]
  ------------------
 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.4k, False: 5.50k]
  |  Branch (1011:86): [True: 22.2k, False: 2.18k]
  ------------------
 1012|  22.2k|                {
 1013|  22.2k|                    key_buffer_.push_back(',');
 1014|  22.2k|                }
 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|   629k|            else
 1019|   629k|            {
 1020|   629k|                switch (level_stack_.back().target_kind())
 1021|   629k|                {
 1022|   491k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 491k, False: 138k]
  ------------------
 1023|   491k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 467k, False: 23.5k]
  |  Branch (1023:65): [True: 286k, False: 180k]
  ------------------
 1024|   286k|                        {
 1025|   286k|                            key_buffer_.push_back(',');
 1026|   286k|                        }
 1027|   491k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|   491k|                        key_buffer_.push_back('[');
 1029|   491k|                        break;
 1030|   138k|                    default:
  ------------------
  |  Branch (1030:21): [True: 138k, False: 491k]
  ------------------
 1031|   138k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|   138k|                        destination_->begin_array(length, tag, context, ec);
 1033|   138k|                        break;
 1034|   629k|                }
 1035|   629k|            }
 1036|   659k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   659k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|   659k|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|   131M|            {
  816|   131M|                return even_odd_ == 0;
  817|   131M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|  80.2M|            {
  826|  80.2M|                return target_kind_;
  827|  80.2M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  33.5M|            {
  831|  33.5M|                return count_;
  832|  33.5M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|   959k|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 293k, False: 665k]
  ------------------
  799|   959k|            {
  800|   959k|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|  77.5M|            {
  821|  77.5M|                return structure_kind_ == json_structure_kind::object;
  822|  77.5M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|   623k|        {
 1041|   623k|            switch (level_stack_.back().target_kind())
 1042|   623k|            {
 1043|   503k|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 503k, False: 120k]
  ------------------
 1044|   503k|                    key_buffer_.push_back(']');
 1045|   503k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   503k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 503k]
  |  |  ------------------
  |  |   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|   503k|                    level_stack_.pop_back();
 1047|   503k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 4.95k, False: 498k]
  ------------------
 1048|  4.95k|                    {
 1049|  4.95k|                        destination_->key(key_buffer_, context, ec);
 1050|  4.95k|                        key_buffer_.clear();
 1051|  4.95k|                    }
 1052|   498k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 23.1k, False: 475k]
  ------------------
 1053|  23.1k|                    {
 1054|  23.1k|                        key_buffer_.push_back(':');
 1055|  23.1k|                    }
 1056|   503k|                    level_stack_.back().advance();
 1057|   503k|                    break;
 1058|   120k|                default:
  ------------------
  |  Branch (1058:17): [True: 120k, False: 503k]
  ------------------
 1059|   120k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   120k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 120k]
  |  |  ------------------
  |  |   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|   120k|                    level_stack_.pop_back();
 1061|   120k|                    level_stack_.back().advance();
 1062|   120k|                    destination_->end_array(context, ec);
 1063|   120k|                    break;
 1064|   623k|            }
 1065|   623k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   623k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|   623k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|  44.0M|            {
  804|  44.0M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 35.8M, False: 8.16M]
  ------------------
  805|  35.8M|                {
  806|  35.8M|                    ++count_;
  807|  35.8M|                }
  808|  44.0M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 16.3M, False: 27.7M]
  ------------------
  809|  16.3M|                {
  810|  16.3M|                    even_odd_ = !even_odd_;
  811|  16.3M|                }
  812|  44.0M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  13.9M|        {
 1234|  13.9M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 4.34M, False: 9.64M]
  |  Branch (1234:49): [True: 8.61M, False: 1.02M]
  ------------------
 1235|  12.9M|            {
 1236|  12.9M|                key_.clear();
 1237|  12.9M|                jsoncons::from_integer(value,key_);
 1238|  12.9M|            }
 1239|       |
 1240|  13.9M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 4.34M, False: 9.64M]
  ------------------
 1241|  4.34M|            {
 1242|  4.34M|                switch (level_stack_.back().target_kind())
 1243|  4.34M|                {
 1244|  4.14M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 4.14M, False: 202k]
  ------------------
 1245|  4.14M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 4.12M, False: 16.4k]
  ------------------
 1246|  4.12M|                        {
 1247|  4.12M|                            key_buffer_.push_back(',');
 1248|  4.12M|                        }
 1249|  4.14M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  4.14M|                        key_buffer_.push_back(':');
 1251|  4.14M|                        break;
 1252|   202k|                    default:
  ------------------
  |  Branch (1252:21): [True: 202k, False: 4.14M]
  ------------------
 1253|   202k|                        destination_->key(key_, context, ec);
 1254|   202k|                        break;
 1255|  4.34M|                }
 1256|  4.34M|            }
 1257|  9.64M|            else
 1258|  9.64M|            {
 1259|  9.64M|                switch (level_stack_.back().target_kind())
 1260|  9.64M|                {
 1261|  8.61M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 8.61M, False: 1.02M]
  ------------------
 1262|  8.61M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 4.46M, False: 4.14M]
  |  Branch (1262:65): [True: 4.46M, False: 8.34k]
  ------------------
 1263|  4.46M|                        {
 1264|  4.46M|                            key_buffer_.push_back(',');
 1265|  4.46M|                        }
 1266|  8.61M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  8.61M|                        break;
 1268|  1.02M|                    default:
  ------------------
  |  Branch (1268:21): [True: 1.02M, False: 8.61M]
  ------------------
 1269|  1.02M|                        destination_->uint64_value(value, tag, context, ec);
 1270|  1.02M|                        break;
 1271|  9.64M|                }
 1272|  9.64M|            }
 1273|       |
 1274|  13.9M|            level_stack_.back().advance();
 1275|  13.9M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  13.9M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  2.94M|        {
 1280|  2.94M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 749k, False: 2.19M]
  |  Branch (1280:49): [True: 1.97M, False: 217k]
  ------------------
 1281|  2.72M|            {
 1282|  2.72M|                key_.clear();
 1283|  2.72M|                jsoncons::from_integer(value,key_);
 1284|  2.72M|            }
 1285|       |
 1286|  2.94M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 749k, False: 2.19M]
  ------------------
 1287|   749k|            {
 1288|   749k|                switch (level_stack_.back().target_kind())
 1289|   749k|                {
 1290|   714k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 714k, False: 35.2k]
  ------------------
 1291|   714k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 707k, False: 6.50k]
  ------------------
 1292|   707k|                        {
 1293|   707k|                            key_buffer_.push_back(',');
 1294|   707k|                        }
 1295|   714k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|   714k|                        key_buffer_.push_back(':');
 1297|   714k|                        break;
 1298|  35.2k|                    default:
  ------------------
  |  Branch (1298:21): [True: 35.2k, False: 714k]
  ------------------
 1299|  35.2k|                        destination_->key(key_, context, ec);
 1300|  35.2k|                        break;
 1301|   749k|                }
 1302|   749k|            }
 1303|  2.19M|            else
 1304|  2.19M|            {
 1305|  2.19M|                switch (level_stack_.back().target_kind())
 1306|  2.19M|                {
 1307|  1.97M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 1.97M, False: 217k]
  ------------------
 1308|  1.97M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 1.25M, False: 717k]
  |  Branch (1308:65): [True: 1.25M, False: 5.21k]
  ------------------
 1309|  1.25M|                        {
 1310|  1.25M|                            key_buffer_.push_back(',');
 1311|  1.25M|                        }
 1312|  1.97M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  1.97M|                        break;
 1314|   217k|                    default:
  ------------------
  |  Branch (1314:21): [True: 217k, False: 1.97M]
  ------------------
 1315|   217k|                        destination_->int64_value(value, tag, context, ec);
 1316|   217k|                        break;
 1317|  2.19M|                }
 1318|  2.19M|            }
 1319|       |
 1320|  2.94M|            level_stack_.back().advance();
 1321|  2.94M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  2.94M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  2.94M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|   164k|        {
 1375|   164k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 44.6k, False: 120k]
  |  Branch (1375:49): [True: 44.4k, False: 75.7k]
  ------------------
 1376|  89.1k|            {
 1377|  89.1k|                key_.clear();
 1378|  89.1k|                string_sink<string_type> sink(key_);
 1379|  89.1k|                jsoncons::write_double f{float_chars_format::general,0};
 1380|  89.1k|                f(value, sink);
 1381|  89.1k|            }
 1382|       |
 1383|   164k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 44.6k, False: 120k]
  ------------------
 1384|  44.6k|            {
 1385|  44.6k|                switch (level_stack_.back().target_kind())
 1386|  44.6k|                {
 1387|  19.4k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 19.4k, False: 25.2k]
  ------------------
 1388|  19.4k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 13.7k, False: 5.63k]
  ------------------
 1389|  13.7k|                        {
 1390|  13.7k|                            key_buffer_.push_back(',');
 1391|  13.7k|                        }
 1392|  19.4k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|  19.4k|                        key_buffer_.push_back(':');
 1394|  19.4k|                        break;
 1395|  25.2k|                    default:
  ------------------
  |  Branch (1395:21): [True: 25.2k, False: 19.4k]
  ------------------
 1396|  25.2k|                        destination_->key(key_, context, ec);
 1397|  25.2k|                        break;
 1398|  44.6k|                }
 1399|  44.6k|            }
 1400|   120k|            else
 1401|   120k|            {
 1402|   120k|                switch (level_stack_.back().target_kind())
 1403|   120k|                {
 1404|  44.4k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 44.4k, False: 75.7k]
  ------------------
 1405|  44.4k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 31.3k, False: 13.1k]
  |  Branch (1405:65): [True: 29.1k, False: 2.13k]
  ------------------
 1406|  29.1k|                        {
 1407|  29.1k|                            key_buffer_.push_back(',');
 1408|  29.1k|                        }
 1409|  44.4k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|  44.4k|                        break;
 1411|  75.7k|                    default:
  ------------------
  |  Branch (1411:21): [True: 75.7k, False: 44.4k]
  ------------------
 1412|  75.7k|                        destination_->double_value(value, tag, context, ec);
 1413|  75.7k|                        break;
 1414|   120k|                }
 1415|   120k|            }
 1416|       |
 1417|   164k|            level_stack_.back().advance();
 1418|   164k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   164k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|   164k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|  1.58k|        {
  882|  1.58k|            destination_->flush();
  883|  1.58k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|   293k|        {
  915|   293k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 90.6k, False: 203k]
  ------------------
  916|  90.6k|            {
  917|  90.6k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 85.7k, False: 4.86k]
  |  Branch (917:86): [True: 62.4k, False: 23.3k]
  ------------------
  918|  62.4k|                {
  919|  62.4k|                    key_buffer_.push_back(',');
  920|  62.4k|                }
  921|  90.6k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|  90.6k|                key_buffer_.push_back('{');
  923|  90.6k|            }
  924|   203k|            else
  925|   203k|            {
  926|   203k|                switch (level_stack_.back().target_kind())
  927|   203k|                {
  928|   181k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 181k, False: 21.8k]
  ------------------
  929|   181k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 97.7k, False: 83.3k]
  |  Branch (929:65): [True: 95.2k, False: 2.52k]
  ------------------
  930|  95.2k|                        {
  931|  95.2k|                            key_buffer_.push_back(',');
  932|  95.2k|                        }
  933|   181k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|   181k|                        key_buffer_.push_back('{');
  935|   181k|                        break;
  936|  21.8k|                    default:
  ------------------
  |  Branch (936:21): [True: 21.8k, False: 181k]
  ------------------
  937|  21.8k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  21.8k|                        destination_->begin_object(length, tag, context, ec);
  939|  21.8k|                        break;
  940|   203k|                }
  941|   203k|            }
  942|   293k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   293k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|   293k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|   269k|        {
  947|   269k|            switch (level_stack_.back().target_kind())
  948|   269k|            {
  949|   256k|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 256k, False: 13.0k]
  ------------------
  950|   256k|                    key_buffer_.push_back('}');
  951|   256k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   256k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 256k]
  |  |  ------------------
  |  |   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|   256k|                    level_stack_.pop_back();
  953|       |                    
  954|   256k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 3.95k, False: 252k]
  ------------------
  955|  3.95k|                    {
  956|  3.95k|                        destination_->key(key_buffer_,context, ec);
  957|  3.95k|                        key_buffer_.clear();
  958|  3.95k|                    }
  959|   252k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 80.2k, False: 172k]
  ------------------
  960|  80.2k|                    {
  961|  80.2k|                        key_buffer_.push_back(':');
  962|  80.2k|                    }
  963|   256k|                    level_stack_.back().advance();
  964|   256k|                    break;
  965|  13.0k|                default:
  ------------------
  |  Branch (965:17): [True: 13.0k, False: 256k]
  ------------------
  966|  13.0k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|  13.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 13.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|  13.0k|                    level_stack_.pop_back();
  968|  13.0k|                    level_stack_.back().advance();
  969|  13.0k|                    destination_->end_object(context, ec);
  970|  13.0k|                    break;
  971|   269k|            }
  972|   269k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   269k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|   269k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|   585k|        {
 1476|   585k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 249k, False: 335k]
  |  Branch (1476:49): [True: 323k, False: 11.7k]
  ------------------
 1477|   573k|            {
 1478|   573k|                key_.clear(); 
 1479|   573k|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|   573k|            }
 1481|       |
 1482|   585k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 249k, False: 335k]
  ------------------
 1483|   249k|            {
 1484|   249k|                switch (level_stack_.back().target_kind())
 1485|   249k|                {
 1486|   248k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 248k, False: 1.29k]
  ------------------
 1487|   248k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 244k, False: 3.98k]
  ------------------
 1488|   244k|                        {
 1489|   244k|                            key_buffer_.push_back(',');
 1490|   244k|                        }
 1491|   248k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|   248k|                        key_buffer_.push_back(':');
 1493|   248k|                        break;
 1494|  1.29k|                    default:
  ------------------
  |  Branch (1494:21): [True: 1.29k, False: 248k]
  ------------------
 1495|  1.29k|                        destination_->key(key_, context, ec);
 1496|  1.29k|                        break;
 1497|   249k|                }
 1498|   249k|            }
 1499|   335k|            else
 1500|   335k|            {
 1501|   335k|                switch (level_stack_.back().target_kind())
 1502|   335k|                {
 1503|   323k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 323k, False: 11.7k]
  ------------------
 1504|   323k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 82.0k, False: 241k]
  |  Branch (1504:65): [True: 81.6k, False: 414]
  ------------------
 1505|  81.6k|                        {
 1506|  81.6k|                            key_buffer_.push_back(',');
 1507|  81.6k|                        }
 1508|   323k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|   323k|                        break;
 1510|  11.7k|                    default:
  ------------------
  |  Branch (1510:21): [True: 11.7k, False: 323k]
  ------------------
 1511|  11.7k|                        destination_->null_value(tag, context, ec);
 1512|  11.7k|                        break;
 1513|   335k|                }
 1514|   335k|            }
 1515|       |
 1516|   585k|            level_stack_.back().advance();
 1517|   585k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   585k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|   585k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  23.4M|        {
 1423|  23.4M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 2.12M, False: 21.3M]
  |  Branch (1423:49): [True: 21.1M, False: 249k]
  ------------------
 1424|  23.2M|            {
 1425|  23.2M|                key_.clear(); 
 1426|  23.2M|                if (value)
  ------------------
  |  Branch (1426:21): [True: 82.9k, False: 23.1M]
  ------------------
 1427|  82.9k|                {
 1428|  82.9k|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|  82.9k|                }
 1430|  23.1M|                else
 1431|  23.1M|                {
 1432|  23.1M|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|  23.1M|                }
 1434|  23.2M|            }
 1435|       |
 1436|  23.4M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 2.12M, False: 21.3M]
  ------------------
 1437|  2.12M|            {
 1438|  2.12M|                switch (level_stack_.back().target_kind())
 1439|  2.12M|                {
 1440|  2.06M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 2.06M, False: 66.1k]
  ------------------
 1441|  2.06M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 2.03M, False: 22.0k]
  ------------------
 1442|  2.03M|                        {
 1443|  2.03M|                            key_buffer_.push_back(',');
 1444|  2.03M|                        }
 1445|  2.06M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|  2.06M|                        key_buffer_.push_back(':');
 1447|  2.06M|                        break;
 1448|  66.1k|                    default:
  ------------------
  |  Branch (1448:21): [True: 66.1k, False: 2.06M]
  ------------------
 1449|  66.1k|                        destination_->key(key_, context, ec);
 1450|  66.1k|                        break;
 1451|  2.12M|                }
 1452|  2.12M|            }
 1453|  21.3M|            else
 1454|  21.3M|            {
 1455|  21.3M|                switch (level_stack_.back().target_kind())
 1456|  21.3M|                {
 1457|  21.1M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 21.1M, False: 249k]
  ------------------
 1458|  21.1M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 19.0M, False: 2.06M]
  |  Branch (1458:65): [True: 19.0M, False: 3.39k]
  ------------------
 1459|  19.0M|                        {
 1460|  19.0M|                            key_buffer_.push_back(',');
 1461|  19.0M|                        }
 1462|  21.1M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|  21.1M|                        break;
 1464|   249k|                    default:
  ------------------
  |  Branch (1464:21): [True: 249k, False: 21.1M]
  ------------------
 1465|   249k|                        destination_->bool_value(value, tag, context, ec);
 1466|   249k|                        break;
 1467|  21.3M|                }
 1468|  21.3M|            }
 1469|       |
 1470|  23.4M|            level_stack_.back().advance();
 1471|  23.4M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  23.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  23.4M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|   746k|        {
 1073|   746k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 78.7k, False: 668k]
  ------------------
 1074|  78.7k|            {
 1075|  78.7k|                switch (level_stack_.back().target_kind())
 1076|  78.7k|                {
 1077|  76.3k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 76.3k, False: 2.48k]
  ------------------
 1078|  76.3k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 74.3k, False: 1.99k]
  ------------------
 1079|  74.3k|                        {
 1080|  74.3k|                            key_buffer_.push_back(',');
 1081|  74.3k|                        }
 1082|  76.3k|                        key_buffer_.push_back('\"');
 1083|  76.3k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|  76.3k|                        key_buffer_.push_back('\"');
 1085|  76.3k|                        key_buffer_.push_back(':');
 1086|  76.3k|                        break;
 1087|  2.48k|                    default:
  ------------------
  |  Branch (1087:21): [True: 2.48k, False: 76.3k]
  ------------------
 1088|  2.48k|                        destination_->key(value, context, ec);
 1089|  2.48k|                        break;
 1090|  78.7k|                }
 1091|  78.7k|            }
 1092|   668k|            else
 1093|   668k|            {
 1094|   668k|                switch (level_stack_.back().target_kind())
 1095|   668k|                {
 1096|   639k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 639k, False: 28.2k]
  ------------------
 1097|   639k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 558k, False: 81.5k]
  |  Branch (1097:65): [True: 557k, False: 1.01k]
  ------------------
 1098|   557k|                        {
 1099|   557k|                            key_buffer_.push_back(',');
 1100|   557k|                        }
 1101|   639k|                        key_buffer_.push_back('\"');
 1102|   639k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|   639k|                        key_buffer_.push_back('\"');
 1104|   639k|                        break;
 1105|  28.2k|                    default:
  ------------------
  |  Branch (1105:21): [True: 28.2k, False: 639k]
  ------------------
 1106|  28.2k|                        destination_->string_value(value, tag, context, ec);
 1107|  28.2k|                        break;
 1108|   668k|                }
 1109|   668k|            }
 1110|       |
 1111|   746k|            level_stack_.back().advance();
 1112|   746k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   746k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|   746k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  55.5k|        {
 1120|  55.5k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 24.4k, False: 31.0k]
  |  Branch (1120:49): [True: 27.7k, False: 3.32k]
  ------------------
 1121|  52.2k|            {
 1122|  52.2k|                key_.clear();
 1123|  52.2k|                switch (tag)
 1124|  52.2k|                {
 1125|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 0, False: 52.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: 52.2k]
  ------------------
 1129|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|      0|                        break;
 1131|  52.2k|                    default:
  ------------------
  |  Branch (1131:21): [True: 52.2k, False: 0]
  ------------------
 1132|  52.2k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  52.2k|                        break;
 1134|  52.2k|                }
 1135|  52.2k|            }
 1136|       |
 1137|  55.5k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 24.4k, False: 31.0k]
  ------------------
 1138|  24.4k|            {
 1139|  24.4k|                switch (level_stack_.back().target_kind())
 1140|  24.4k|                {
 1141|  23.2k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 23.2k, False: 1.21k]
  ------------------
 1142|  23.2k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 17.0k, False: 6.28k]
  ------------------
 1143|  17.0k|                        {
 1144|  17.0k|                            key_buffer_.push_back(',');
 1145|  17.0k|                        }
 1146|  23.2k|                        key_buffer_.push_back('\"');
 1147|  23.2k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|  23.2k|                        key_buffer_.push_back('\"');
 1149|  23.2k|                        key_buffer_.push_back(':');
 1150|  23.2k|                        break;
 1151|  1.21k|                    default:
  ------------------
  |  Branch (1151:21): [True: 1.21k, False: 23.2k]
  ------------------
 1152|  1.21k|                        destination_->key(key_, context, ec);
 1153|  1.21k|                        break;
 1154|  24.4k|                }
 1155|  24.4k|            }
 1156|  31.0k|            else
 1157|  31.0k|            {
 1158|  31.0k|                switch (level_stack_.back().target_kind())
 1159|  31.0k|                {
 1160|  27.7k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 27.7k, False: 3.32k]
  ------------------
 1161|  27.7k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 9.13k, False: 18.5k]
  |  Branch (1161:65): [True: 8.61k, False: 524]
  ------------------
 1162|  8.61k|                        {
 1163|  8.61k|                            key_buffer_.push_back(',');
 1164|  8.61k|                        }
 1165|  27.7k|                        key_buffer_.push_back('\"');
 1166|  27.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  27.7k|                        key_buffer_.push_back('\"');
 1168|  27.7k|                        break;
 1169|  3.32k|                    default:
  ------------------
  |  Branch (1169:21): [True: 3.32k, False: 27.7k]
  ------------------
 1170|  3.32k|                        destination_->byte_string_value(value, tag, context, ec);
 1171|  3.32k|                        break;
 1172|  31.0k|                }
 1173|  31.0k|            }
 1174|       |
 1175|  55.5k|            level_stack_.back().advance();
 1176|  55.5k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  55.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  55.5k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|  1.18M|        {
 1184|  1.18M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 425k, False: 762k]
  |  Branch (1184:49): [True: 130k, False: 631k]
  ------------------
 1185|   556k|            {
 1186|   556k|                key_.clear();
 1187|   556k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|   556k|            }
 1189|       |
 1190|  1.18M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 425k, False: 762k]
  ------------------
 1191|   425k|            {
 1192|   425k|                switch (level_stack_.back().target_kind())
 1193|   425k|                {
 1194|  55.1k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 55.1k, False: 370k]
  ------------------
 1195|  55.1k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 53.2k, False: 1.88k]
  ------------------
 1196|  53.2k|                        {
 1197|  53.2k|                            key_buffer_.push_back(',');
 1198|  53.2k|                        }
 1199|  55.1k|                        key_buffer_.push_back('\"');
 1200|  55.1k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|  55.1k|                        key_buffer_.push_back('\"');
 1202|  55.1k|                        key_buffer_.push_back(':');
 1203|  55.1k|                        break;
 1204|   370k|                    default:
  ------------------
  |  Branch (1204:21): [True: 370k, False: 55.1k]
  ------------------
 1205|   370k|                        destination_->key(key_, context, ec);
 1206|   370k|                        break;
 1207|   425k|                }
 1208|   425k|            }
 1209|   762k|            else
 1210|   762k|            {
 1211|   762k|                switch (level_stack_.back().target_kind())
 1212|   762k|                {
 1213|   130k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 130k, False: 631k]
  ------------------
 1214|   130k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 72.4k, False: 58.0k]
  |  Branch (1214:65): [True: 70.0k, False: 2.45k]
  ------------------
 1215|  70.0k|                        {
 1216|  70.0k|                            key_buffer_.push_back(',');
 1217|  70.0k|                        }
 1218|   130k|                        key_buffer_.push_back('\"');
 1219|   130k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|   130k|                        key_buffer_.push_back('\"');
 1221|   130k|                        break;
 1222|   631k|                    default:
  ------------------
  |  Branch (1222:21): [True: 631k, False: 130k]
  ------------------
 1223|   631k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|   631k|                        break;
 1225|   762k|                }
 1226|   762k|            }
 1227|       |
 1228|  1.18M|            level_stack_.back().advance();
 1229|  1.18M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.18M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|  1.18M|        }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|   659k|    {
  295|   659k|        visit_begin_array(length, tag, context, ec);
  296|   659k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   659k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|   659k|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|  13.9M|    {
  364|  13.9M|        visit_uint64(value, tag, context, ec);
  365|  13.9M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  13.9M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|   623k|    {
  301|   623k|        visit_end_array(context, ec);
  302|   623k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   623k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|   623k|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  2.94M|    {
  373|  2.94M|        visit_int64(value, tag, context, ec);
  374|  2.94M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  2.94M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  2.94M|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|   164k|    {
  391|   164k|        visit_double(value, tag, context, ec);
  392|   164k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   164k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|   164k|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  6.48k|            : destination_(std::addressof(visitor)), 
  856|  6.48k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  6.48k|        {
  858|  6.48k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  6.48k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|  6.48k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|   293k|    {
  277|   293k|        visit_begin_object(length, tag, context, ec);
  278|   293k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   293k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|   293k|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|   746k|    {
  333|   746k|        visit_string(value, tag, context, ec);
  334|   746k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   746k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|   746k|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|   585k|    {
  315|   585k|        visit_null(tag, context, ec);
  316|   585k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   585k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|   585k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  23.4M|    {
  324|  23.4M|        visit_bool(value, tag, context, ec);
  325|  23.4M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  23.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  23.4M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  55.5k|    {
  344|  55.5k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  55.5k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  55.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  55.5k|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|  1.18M|    {
  355|  1.18M|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|  1.18M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.18M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|  1.18M|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|   269k|    {
  283|   269k|        visit_end_object(context, ec);
  284|   269k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   269k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|   269k|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|  1.58k|    {
   58|  1.58k|        visit_flush();
   59|  1.58k|    }

_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  19.4k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|   138k|        {
  346|   138k|            visit_begin_array(length, tag, context, ec);
  347|   138k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   138k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|   138k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|   714k|        {
  358|   714k|            visit_key(name, context, ec);
  359|   714k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   714k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|   714k|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|   120k|        {
  352|   120k|            visit_end_array(context, ec);
  353|   120k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   120k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|   120k|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|  1.02M|        {
  415|  1.02M|            visit_uint64(value, tag, context, ec);
  416|  1.02M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.02M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|  1.02M|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|   217k|        {
  424|   217k|            visit_int64(value, tag, context, ec);
  425|   217k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   217k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|   217k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  75.7k|        {
  442|  75.7k|            visit_double(value, tag, context, ec);
  443|  75.7k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  75.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|  75.7k|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  1.58k|        {
  109|  1.58k|            visit_flush();
  110|  1.58k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  21.8k|        {
  328|  21.8k|            visit_begin_object(length, tag, context, ec);
  329|  21.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  21.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  21.8k|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  13.0k|        {
  334|  13.0k|            visit_end_object(context, ec);
  335|  13.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  13.0k|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  11.7k|        {
  366|  11.7k|            visit_null(tag, context, ec);
  367|  11.7k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  11.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  11.7k|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|   249k|        {
  375|   249k|            visit_bool(value, tag, context, ec);
  376|   249k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   249k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|   249k|        }
_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|  3.32k|        {
  395|  3.32k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|  3.32k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.32k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|  3.32k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|   631k|        {
  406|   631k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|   631k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   631k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|   631k|        }
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  12.9k|        basic_json_visitor() = default;
_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  6.48k|        basic_default_json_visitor() = default;

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

_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2ERS7_:
  256|  89.1k|            : buf_ptr(std::addressof(buf))
  257|  89.1k|        {
  258|  89.1k|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE9push_backEc:
  287|  1.64M|        {
  288|  1.64M|            buf_ptr->push_back(ch);
  289|  1.64M|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvEC2ERS5_:
  315|  6.48k|            : buf_ptr(std::addressof(buf))
  316|  6.48k|        {
  317|  6.48k|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE9push_backEh:
  334|   116M|        {
  335|   116M|            buf_ptr->push_back(static_cast<value_type>(ch));
  336|   116M|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE5flushEv:
  325|  8.06k|        {
  326|  8.06k|        }

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  6.48k|    {
  194|  6.48k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 6.48k, False: 0]
  ------------------
  195|  6.48k|        {
  196|  6.48k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  6.48k|        }
  198|  6.48k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  6.48k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  6.48k|          chunk_size_(default_max_chunk_size)
  178|  6.48k|    {
  179|  6.48k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  6.48k|        data_end_ = chunk_;
  181|  6.48k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  6.48k|      : std::basic_istream<CharT>(&nb_)
   58|  6.48k|    {
   59|  6.48k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  6.48k|        null_buffer() = default;
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8is_errorEv:
  276|  44.1M|    {
  277|  44.1M|        return stream_ptr_->bad();  
  278|  44.1M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  46.0M|    {
  378|  46.0M|        std::size_t len = 0;
  379|  46.0M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 46.0M, False: 13.0k]
  ------------------
  380|  46.0M|        {
  381|  46.0M|            len = (std::min)(remaining_, length);
  382|  46.0M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  46.0M|            data_end_ += len;
  384|  46.0M|            remaining_ -= len;
  385|  46.0M|            position_ += len;
  386|  46.0M|        }
  387|  46.0M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 46.0M, False: 15.8k]
  ------------------
  388|  46.0M|        {
  389|  46.0M|            return len;
  390|  46.0M|        }
  391|  15.8k|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 15.8k, False: 0]
  ------------------
  392|  15.8k|        {
  393|  15.8k|            data_end_ = chunk_;
  394|  15.8k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|  15.8k|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 11.4k, False: 4.39k]
  ------------------
  396|  11.4k|            {
  397|  11.4k|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|  11.4k|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|  11.4k|                data_end_ += len2;
  400|  11.4k|                remaining_ -= len2;
  401|  11.4k|                position_ += len2;
  402|  11.4k|                len += len2;
  403|  11.4k|            }
  404|  15.8k|            return len;
  405|  15.8k|        }
  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|  46.0M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  16.6k|    {
  443|  16.6k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 4.47k, False: 12.1k]
  ------------------
  444|  4.47k|        {
  445|  4.47k|            return 0;
  446|  4.47k|        }
  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.46k, False: 5.73k]
  ------------------
  454|  6.46k|            {
  455|  6.46k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  6.46k|            }
  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|  1.90M|    {
  353|  1.90M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  1.90M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 694k, False: 1.21M]
  |  |  ------------------
  ------------------
  354|   694k|        {
  355|   694k|            return span<const value_type>{};
  356|   694k|        }
  357|  1.21M|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 332, False: 1.21M]
  |  Branch (357:32): [True: 160, False: 172]
  ------------------
  358|    160|        {
  359|    160|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|    160|            data_end_ = chunk_;
  361|    160|        }
  362|  1.21M|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 1.09k, False: 1.21M]
  ------------------
  363|  1.09k|        {
  364|  1.09k|            buffer.clear();
  365|  1.09k|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|  1.09k|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|  1.09k|        }
  368|       |
  369|  1.21M|        const value_type* data = data_end_;
  370|  1.21M|        data_end_ += length;
  371|  1.21M|        remaining_ -= length;
  372|  1.21M|        position_ += length;
  373|  1.21M|        return span<const value_type>(data, length);
  374|  1.21M|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  746|  1.09k|    {
  747|  1.09k|        std::size_t unread = length;
  748|       |
  749|  4.55k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 3.97k, False: 581]
  |  Branch (749:30): [True: 3.45k, False: 514]
  ------------------
  750|  3.45k|        {
  751|  3.45k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 626, False: 2.83k]
  |  Branch (751:44): [True: 623, False: 3]
  ------------------
  752|    623|            {
  753|    623|                std::size_t n = source.chunk_size();
  754|    623|                std::size_t offset = buffer.size();
  755|    623|                buffer.resize(offset+n);
  756|    623|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|    623|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|    623|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 72, False: 551]
  |  |  ------------------
  ------------------
  758|     72|                {
  759|     72|                    buffer.resize(offset+actual);
  760|     72|                }
  761|    623|                unread -= actual;
  762|    623|            }
  763|  2.83k|            else
  764|  2.83k|            {
  765|  2.83k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  2.83k|                std::size_t offset = buffer.size();
  767|  2.83k|                buffer.resize(offset+n);
  768|  2.83k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  2.83k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|  2.83k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 254, False: 2.58k]
  |  |  ------------------
  ------------------
  770|    254|                {
  771|    254|                    buffer.resize(offset + actual);
  772|    254|                }
  773|  2.83k|                unread -= actual;
  774|  2.83k|            }
  775|  3.45k|        }
  776|  1.09k|        return length - unread;
  777|  1.09k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  3.97k|    {
  272|  3.97k|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 1.14k, False: 2.83k]
  |  Branch (272:35): [True: 514, False: 626]
  ------------------
  273|  3.97k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|  3.45k|    {
  347|  3.45k|        return remaining_;
  348|  3.45k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|  4.08k|    {
  262|  4.08k|        return chunk_size_;
  263|  4.08k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|    623|    {
  436|    623|        auto len = fill_buffer(chunk, chunk_size);
  437|    623|        position_ += len;
  438|    623|        return len;
  439|    623|    }

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  641|  64.9k|    basic_bigint() = default;
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  293|   145k|        : word_allocator_type(alloc)
  294|   145k|    {
  295|   145k|        ::new (&inlined_) inlined_storage();
  296|   145k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  113|   145k|            : is_allocated_(false),
  114|   145k|            is_negative_(false),
  115|   145k|            size_(0),
  116|   145k|            values_{0, 0}
  117|   145k|        {
  118|   145k|        }
_ZN8jsoncons9to_bigintIcEENS_16to_bigint_resultIT_EEPKS2_mRNS_12basic_bigintINSt3__19allocatorImEEEE:
 2135|  22.8k|{
 2136|  22.8k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  22.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 22.8k]
  |  |  ------------------
  ------------------
 2137|      0|    {
 2138|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2139|      0|    }
 2140|       |
 2141|  22.8k|    if (*data == '-')
  ------------------
  |  Branch (2141:9): [True: 3.56k, False: 19.3k]
  ------------------
 2142|  3.56k|    {
 2143|  3.56k|        return jsoncons::detail::to_bigint(data+1, length-1, true, value, std::allocator<uint64_t>{}); 
 2144|  3.56k|    }
 2145|  19.3k|    else
 2146|  19.3k|    {
 2147|  19.3k|        return jsoncons::detail::to_bigint(data, length, false, value, std::allocator<uint64_t>{}); 
 2148|  19.3k|    }
 2149|  22.8k|}
_ZN8jsoncons16to_bigint_resultIcEC2EPKcNSt3__14errcE:
  569|  22.8k|        : ptr(ptr_), ec(ec_)
  570|  22.8k|    {
  571|  22.8k|    }
_ZN8jsoncons6detail9to_bigintIcNSt3__19allocatorImEEEENS_16to_bigint_resultIT_EEPKS6_mbRNS_12basic_bigintIT0_EERKSB_:
 2048|  22.8k|{
 2049|  22.8k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  22.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 22.8k]
  |  |  ------------------
  ------------------
 2050|      0|    {
 2051|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2052|      0|    }
 2053|       |
 2054|  22.8k|    using word_type = typename basic_bigint<Allocator>::word_type;
 2055|       |
 2056|  22.8k|    const CharT* last = data + length;
 2057|  22.8k|    const CharT* p = data;
 2058|       |
 2059|  24.6k|    while (p < last && *p == '0')
  ------------------
  |  Branch (2059:12): [True: 22.8k, False: 1.80k]
  |  Branch (2059:24): [True: 1.80k, False: 21.0k]
  ------------------
 2060|  1.80k|    {
 2061|  1.80k|        ++p;
 2062|  1.80k|    }
 2063|  22.8k|    if (p == last)
  ------------------
  |  Branch (2063:9): [True: 1.80k, False: 21.0k]
  ------------------
 2064|  1.80k|    {
 2065|  1.80k|        value = std::move(basic_bigint<Allocator>{0, alloc});
 2066|  1.80k|        return to_bigint_result<CharT>(last, std::errc{});
 2067|  1.80k|    }
 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: 744, False: 20.3k]
  ------------------
 2071|    744|    {
 2072|    744|        num_words = 1;
 2073|    744|    }
 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|   447k|    for (std::size_t i = 0; i < length; i++)
  ------------------
  |  Branch (2082:29): [True: 426k, False: 21.0k]
  ------------------
 2083|   426k|    {
 2084|   426k|        CharT c = data[i];
 2085|   426k|        if (JSONCONS_LIKELY(c >= '0' && c <= '9'))
  ------------------
  |  |   77|   852k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 426k, False: 0]
  |  |  |  Branch (77:48): [True: 426k, False: 0]
  |  |  |  Branch (77:48): [True: 426k, False: 0]
  |  |  ------------------
  ------------------
 2086|   426k|        {
 2087|   426k|            v *= 10u;
 2088|   426k|            v += (word_type)(c - '0');
 2089|   426k|        }
 2090|      0|        else
 2091|      0|        {
 2092|      0|            return to_bigint_result<CharT>(data + i, std::errc::invalid_argument);
 2093|      0|        }
 2094|   426k|    }
 2095|       |
 2096|  21.0k|    if (neg)
  ------------------
  |  Branch (2096:9): [True: 3.56k, False: 17.4k]
  ------------------
 2097|  3.56k|    {
 2098|  3.56k|        v.set_negative(true);
 2099|  3.56k|    }
 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.7k|        : storage_(n, alloc)
  694|  45.7k|    {
  695|  45.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  45.7k|        : word_allocator_type(alloc)
  361|  45.7k|    {
  362|  45.7k|        ::new (&inlined_) inlined_storage(n);
  363|  45.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  45.7k|            : is_allocated_(false),
  126|  45.7k|            is_negative_(n < 0),
  127|  45.7k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 45.7k, False: 0]
  ------------------
  128|  45.7k|        {
  129|  45.7k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 0, False: 45.7k]
  ------------------
  130|  45.7k|            values_[1] = 0;
  131|  45.7k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  842|   300k|    {
  843|   300k|        storage_ = y.storage_;
  844|   300k|        return *this;
  845|   300k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  366|   300k|    {
  367|   300k|        if (this != &other)
  ------------------
  |  Branch (367:13): [True: 300k, False: 0]
  ------------------
  368|   300k|        {
  369|   300k|            auto other_view = other.get_storage_view();
  370|   300k|            resize(other_view.size());
  371|   300k|            auto this_view = get_storage_view();
  372|   300k|            if (other_view.size() > 0)
  ------------------
  |  Branch (372:17): [True: 195k, False: 104k]
  ------------------
  373|   195k|            {
  374|   195k|                common_.is_negative_ = other.common_.is_negative_;
  375|   195k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  376|   195k|            }
  377|   300k|        }
  378|   300k|        return *this;
  379|   300k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  527|   834k|    {
  528|   834k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (528:16): [True: 97.1k, False: 737k]
  ------------------
  529|  97.1k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  530|   834k|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  531|   834k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   64|   834k|            : data_(data), size_(size)
   65|   834k|        {
   66|   834k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  534|  1.34M|    {
  535|  1.34M|        size_type old_length = common_.size_;
  536|  1.34M|        reserve(new_length);
  537|  1.34M|        common_.size_ = new_length;
  538|       |
  539|  1.34M|        if (old_length < new_length)
  ------------------
  |  Branch (539:13): [True: 1.16M, False: 183k]
  ------------------
  540|  1.16M|        {
  541|  1.16M|            if (is_allocated())
  ------------------
  |  Branch (541:17): [True: 89.2k, False: 1.07M]
  ------------------
  542|  89.2k|            {
  543|  89.2k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  544|  89.2k|            }
  545|  1.07M|            else
  546|  1.07M|            {
  547|  1.07M|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   49|  1.07M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 1.07M]
  |  |  ------------------
  |  |   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.33M|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (548:48): [True: 1.26M, False: 1.07M]
  ------------------
  549|  1.26M|                {
  550|  1.26M|                    inlined_.values_[i] = 0;
  551|  1.26M|                }
  552|  1.07M|            }
  553|  1.16M|        }
  554|  1.34M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  452|  1.36M|    {
  453|  1.36M|       if (capacity() < n)
  ------------------
  |  Branch (453:12): [True: 23.6k, False: 1.34M]
  ------------------
  454|  23.6k|       {
  455|  23.6k|           if (!is_allocated())
  ------------------
  |  Branch (455:16): [True: 23.6k, False: 0]
  ------------------
  456|  23.6k|           {
  457|  23.6k|               size_type size = inlined_.size_;
  458|  23.6k|               size_type is_neg = inlined_.is_negative_;
  459|  23.6k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  460|       |
  461|  23.6k|               ::new (&allocated_) allocated_storage();
  462|  23.6k|               allocated_.reserve(n, get_allocator());
  463|  23.6k|               allocated_.size_ = size;
  464|  23.6k|               allocated_.is_negative_ = is_neg;
  465|  23.6k|               if (n >= 1)
  ------------------
  |  Branch (465:20): [True: 23.6k, False: 0]
  ------------------
  466|  23.6k|               {
  467|  23.6k|                   allocated_.data_[0] = values[0];
  468|  23.6k|               }
  469|  23.6k|               if (n >= 2)
  ------------------
  |  Branch (469:20): [True: 23.6k, False: 0]
  ------------------
  470|  23.6k|               {
  471|  23.6k|                   allocated_.data_[1] = values[1];
  472|  23.6k|               }
  473|  23.6k|           }
  474|      0|           else
  475|      0|           {
  476|      0|               allocated_.reserve(n, get_allocator());
  477|      0|           }
  478|  23.6k|       }
  479|  1.36M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  505|  1.36M|    {
  506|  1.36M|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (506:16): [True: 102k, False: 1.26M]
  ------------------
  507|  1.36M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  203|  23.6k|            : is_allocated_(true),
  204|  23.6k|            is_negative_(false)
  205|  23.6k|        {
  206|  23.6k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  255|  23.6k|        {
  256|  23.6k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   49|  23.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 23.6k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  257|  23.6k|            size_type capacity_new = round_up(n);
  258|       |
  259|  23.6k|            real_allocator_type alloc(a);
  260|  23.6k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  261|  23.6k|            if (size_ > 0)
  ------------------
  |  Branch (261:17): [True: 0, False: 23.6k]
  ------------------
  262|      0|            {
  263|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  264|      0|            }
  265|  23.6k|            if (data_ != nullptr)
  ------------------
  |  Branch (265:17): [True: 0, False: 23.6k]
  ------------------
  266|      0|            {
  267|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  268|      0|            }
  269|  23.6k|            capacity_ = capacity_new;
  270|  23.6k|            data_ = data_new;
  271|  23.6k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  275|  23.6k|        {
  276|  23.6k|            size_type remainder = i % mem_unit;
  277|  23.6k|            size_type off = mem_unit - remainder;
  278|  23.6k|            bool testoff = i < max_size - off;
  279|  23.6k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   49|  23.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 23.6k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  280|       |
  281|  23.6k|            return i + off;
  282|  23.6k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  482|   739k|    {
  483|   739k|        return static_cast<const word_allocator_type&>(*this);
  484|   739k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  500|  4.01M|    {
  501|  4.01M|        return common_.is_allocated_;
  502|  4.01M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   84|  1.74M|        {
   85|  1.74M|            return size_;
   86|  1.74M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  520|  4.23M|    {
  521|  4.23M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (521:16): [True: 446k, False: 3.78M]
  ------------------
  522|   446k|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  523|  4.23M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  524|  4.23M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   64|  4.23M|            : data_(data), size_(size)
   65|  4.23M|        {
   66|  4.23M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   79|   233k|        {
   80|   233k|            return data_;
   81|   233k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   79|   195k|        {
   80|   195k|            return data_;
   81|   195k|        }
_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|   426k|    {
  999|   426k|        auto this_view = get_storage_view();
 1000|   426k|        size_type len0 = this_view.size();
 1001|   426k|        word_type dig = this_view[0];
 1002|   426k|        word_type carry = 0;
 1003|       |
 1004|   426k|        resize(this_view.size() + 1);
 1005|   426k|        this_view = get_storage_view();
 1006|       |
 1007|   426k|        size_type i = 0;
 1008|   865k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 438k, False: 426k]
  ------------------
 1009|   438k|        {
 1010|   438k|            word_type hi;
 1011|   438k|            word_type lo;
 1012|   438k|            DDproduct( dig, y, hi, lo );
 1013|   438k|            this_view[i] = lo + carry;
 1014|   438k|            dig = this_view[i+1];
 1015|   438k|            carry = hi + (this_view[i] < lo);
 1016|   438k|        }
 1017|   426k|        this_view[i] = carry;
 1018|   426k|        reduce();
 1019|   426k|        return *this;
 1020|   426k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  718|  2.83M|    {
  719|  2.83M|        return storage_.get_storage_view();
  720|  2.83M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   84|  4.52M|        {
   85|  4.52M|            return size_;
   86|  4.52M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   69|  4.59M|        {
   70|  4.59M|            return data_[i];
   71|  4.59M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  818|  1.04M|    {
  819|  1.04M|        storage_.resize(new_length);
  820|  1.04M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1781|   536k|    {
 1782|   536k|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1783|   536k|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1784|       |
 1785|   536k|        lo = loA * loB;
 1786|   536k|        hi = hiA * hiB;
 1787|   536k|        word_type mid1 = loA * hiB;
 1788|   536k|        word_type mid2 = hiA * loB;
 1789|   536k|        word_type old = lo;
 1790|   536k|        lo += mid1 << word_type_half_bits;
 1791|   536k|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1792|   536k|        old = lo;
 1793|   536k|        lo += mid2 << word_type_half_bits;
 1794|   536k|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1795|   536k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1917|  1.10M|    {
 1918|  1.10M|        storage_.reduce();
 1919|  1.10M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  429|  1.10M|    {
  430|  1.10M|        if (common_.size_ > 0)
  ------------------
  |  Branch (430:13): [True: 1.10M, False: 0]
  ------------------
  431|  1.10M|        {
  432|  1.10M|            auto this_view = get_storage_view();
  433|  1.10M|            word_type* p = this_view.end() - 1;
  434|  1.10M|            word_type* first = this_view.begin();
  435|  2.09M|            while ( p >= first )
  ------------------
  |  Branch (435:21): [True: 2.06M, False: 29.7k]
  ------------------
  436|  2.06M|            {
  437|  2.06M|                if ( *p )
  ------------------
  |  Branch (437:22): [True: 1.07M, False: 997k]
  ------------------
  438|  1.07M|                {
  439|  1.07M|                    break;
  440|  1.07M|                }
  441|   997k|                --common_.size_;
  442|   997k|                --p;
  443|   997k|            }
  444|  1.10M|        }
  445|  1.10M|        if (common_.size_ == 0)
  ------------------
  |  Branch (445:13): [True: 29.7k, False: 1.07M]
  ------------------
  446|  29.7k|        {
  447|  29.7k|            common_.is_negative_ = false;
  448|  29.7k|        }
  449|  1.10M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   93|  1.10M|        {
   94|  1.10M|            return data_ + size_;
   95|  1.10M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   88|  1.10M|        {
   89|  1.10M|            return data_;
   90|  1.10M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  889|   487k|    {
  890|   487k|        if ( is_negative())
  ------------------
  |  Branch (890:14): [True: 0, False: 487k]
  ------------------
  891|      0|            return *this -= -basic_bigint<Allocator>(y);
  892|       |
  893|   487k|        word_type d;
  894|   487k|        word_type carry = 0;
  895|       |
  896|   487k|        auto this_view = get_storage_view();
  897|   487k|        resize(this_view.size() + 1);
  898|       |
  899|   487k|        this_view = get_storage_view();
  900|   487k|        const size_type this_size = this_view.size();
  901|   487k|        size_type y_size = 1;
  902|       |
  903|   487k|        d = this_view[0] + carry;
  904|   487k|        carry = d < carry;
  905|   487k|        this_view[0] = d + y;
  906|   487k|        if (this_view[0] < d)
  ------------------
  |  Branch (906:13): [True: 1.61k, False: 485k]
  ------------------
  907|  1.61k|            carry = 1;
  908|       |
  909|   488k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (909:36): [True: 463k, False: 25.1k]
  |  Branch (909:53): [True: 1.61k, False: 461k]
  ------------------
  910|  1.61k|        {
  911|  1.61k|            d = this_view[i] + carry;
  912|  1.61k|            carry = d < carry;
  913|  1.61k|            this_view[i] = d;
  914|  1.61k|        }
  915|   487k|        reduce();
  916|   487k|        return *this;
  917|   487k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  728|  1.74M|    {
  729|  1.74M|        return storage_.is_negative();
  730|  1.74M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  510|  1.74M|    {
  511|  1.74M|        return common_.is_negative_;
  512|  1.74M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|   318k|        : storage_(n, alloc)
  694|   318k|    {
  695|   318k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|   318k|        : word_allocator_type(alloc)
  361|   318k|    {
  362|   318k|        ::new (&inlined_) inlined_storage(n);
  363|   318k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|   318k|            : is_allocated_(false),
  139|   318k|            is_negative_(false),
  140|   318k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 105k, False: 212k]
  ------------------
  141|   318k|        {
  142|   318k|            values_[0] = n;
  143|   318k|            values_[1] = 0;
  144|   318k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  835|  14.8k|    {
  836|  14.8k|        basic_bigint<Allocator> v(*this);
  837|  14.8k|        v.set_negative(!v.is_negative());
  838|  14.8k|        return v;
  839|  14.8k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  671|  98.6k|        : storage_(other.storage_)
  672|  98.6k|    {
  673|  98.6k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  299|  98.6k|        : word_allocator_type(other.get_allocator())
  300|  98.6k|    {
  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|  98.6k|        if (!other.is_allocated())
  ------------------
  |  Branch (305:13): [True: 80.2k, False: 18.3k]
  ------------------
  306|  80.2k|        {
  307|  80.2k|            ::new (&inlined_) inlined_storage(other.inlined_);
  308|  80.2k|        }
  309|  18.3k|        else
  310|  18.3k|        {
  311|  18.3k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  312|  18.3k|        }
  313|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  314|       |# pragma GCC diagnostic pop
  315|       |#endif
  316|  98.6k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  178|   364k|            : is_allocated_(false),
  179|   364k|            is_negative_(stor.is_negative_),
  180|   364k|            size_(stor.size_)
  181|   364k|        {
  182|   364k|            values_[0] = stor.values_[0];
  183|   364k|            values_[1] = stor.values_[1];
  184|   364k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  209|  73.5k|            : is_allocated_(true),
  210|  73.5k|              is_negative_(stor.is_negative_),
  211|  73.5k|              size_(stor.size_),
  212|  73.5k|              capacity_(stor.capacity_)
  213|  73.5k|        {
  214|  73.5k|            real_allocator_type alloc(a);
  215|       |
  216|  73.5k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  217|  73.5k|            JSONCONS_TRY
  ------------------
  |  |   37|  73.5k|    #define JSONCONS_TRY try
  ------------------
  218|  73.5k|            {
  219|  73.5k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  220|  73.5k|            }
  221|  73.5k|            JSONCONS_CATCH(...)
  222|  73.5k|            {
  223|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  224|      0|                data_ = nullptr;
  225|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  226|      0|            }
  227|  73.5k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   49|  73.5k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 73.5k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  228|  73.5k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  229|  73.5k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  954|  14.8k|    {
  955|  14.8k|        auto y_view = y.get_storage_view();
  956|       |
  957|  14.8k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (957:14): [True: 14.8k, False: 0]
  ------------------
  958|  14.8k|            return *this += -y;
  959|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (959:15): [True: 0, False: 0]
  |  Branch (959:33): [True: 0, False: 0]
  |  Branch (959:48): [True: 0, False: 0]
  |  Branch (959:65): [True: 0, False: 0]
  ------------------
  960|      0|            return *this = -(y - *this);
  961|      0|        word_type borrow = 0;
  962|      0|        word_type d;
  963|      0|        auto this_view = get_storage_view();
  964|      0|        const size_type this_size = this_view.size();
  965|      0|        const size_type y_size = y_view.size();
  966|       |
  967|      0|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (967:31): [True: 0, False: 0]
  ------------------
  968|      0|        {
  969|      0|            d = this_view[i] - borrow;
  970|      0|            borrow = d > this_view[i];
  971|      0|            this_view[i] = d - y_view[i];
  972|      0|            if ( this_view[i] > d )
  ------------------
  |  Branch (972:18): [True: 0, False: 0]
  ------------------
  973|      0|                borrow = 1;
  974|      0|        }
  975|      0|        for (size_type i = y_size; i < this_size && borrow != 0; i++ )
  ------------------
  |  Branch (975:36): [True: 0, False: 0]
  |  Branch (975:53): [True: 0, False: 0]
  ------------------
  976|      0|        {
  977|      0|            d = this_view[i] - borrow;
  978|      0|            borrow = d > this_view[i];
  979|      0|            this_view[i] = d;
  980|      0|        }
  981|      0|        reduce();
  982|      0|        return *this;
  983|      0|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  723|   534k|    {
  724|   534k|        return storage_.get_storage_view();
  725|   534k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  920|  14.8k|    {
  921|  14.8k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (921:14): [True: 0, False: 14.8k]
  ------------------
  922|      0|            return *this -= -y;
  923|       |
  924|  14.8k|        auto y_view = y.get_storage_view();
  925|       |        
  926|  14.8k|        word_type d;
  927|  14.8k|        word_type carry = 0;
  928|       |
  929|  14.8k|        auto this_view = get_storage_view();
  930|  14.8k|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  931|  14.8k|        this_view = get_storage_view();
  932|       |
  933|  14.8k|        const size_t this_size = this_view.size();
  934|  14.8k|        const size_t y_size = y_view.size();
  935|  28.6k|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (935:31): [True: 13.7k, False: 14.8k]
  ------------------
  936|  13.7k|        {
  937|  13.7k|            d = this_view[i] + carry;
  938|  13.7k|            carry = d < carry;
  939|  13.7k|            this_view[i] = d + y_view[i];
  940|  13.7k|            if (this_view[i] < d)
  ------------------
  |  Branch (940:17): [True: 4.22k, False: 9.54k]
  ------------------
  941|  4.22k|                carry = 1;
  942|  13.7k|        }
  943|  19.0k|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (943:36): [True: 18.7k, False: 333]
  |  Branch (943:53): [True: 4.22k, False: 14.5k]
  ------------------
  944|  4.22k|        {
  945|  4.22k|            d = this_view[i] + carry;
  946|  4.22k|            carry = d < carry;
  947|  4.22k|            this_view[i] = d;
  948|  4.22k|        }
  949|  14.8k|        reduce();
  950|  14.8k|        return *this;
  951|  14.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1641|   196k|    {
 1642|   196k|        auto this_view = get_storage_view();
 1643|   196k|        auto y_view = y.get_storage_view();
 1644|       |
 1645|   196k|        const size_type y_size = y_view.size();
 1646|   196k|        if ( this_view.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1646:14): [True: 4.48k, False: 192k]
  |  Branch (1646:39): [True: 4.48k, False: 0]
  ------------------
 1647|  4.48k|            return 0;
 1648|   192k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1648:14): [True: 18.4k, False: 173k]
  ------------------
 1649|  18.4k|            return y.is_negative() - is_negative();
 1650|   173k|        int code = 0;
 1651|   173k|        if ( this_view.size() < y_size)
  ------------------
  |  Branch (1651:14): [True: 0, False: 173k]
  ------------------
 1652|      0|            code = -1;
 1653|   173k|        else if ( this_view.size() > y_size)
  ------------------
  |  Branch (1653:19): [True: 47.1k, False: 126k]
  ------------------
 1654|  47.1k|            code = +1;
 1655|   126k|        else
 1656|   126k|        {
 1657|   144k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1657:50): [True: 126k, False: 18.0k]
  ------------------
 1658|   126k|            {
 1659|   126k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1659:21): [True: 26.8k, False: 99.7k]
  ------------------
 1660|  26.8k|                {
 1661|  26.8k|                    code = 1;
 1662|  26.8k|                    break;
 1663|  26.8k|                }
 1664|  99.7k|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1664:26): [True: 81.7k, False: 18.0k]
  ------------------
 1665|  81.7k|                {
 1666|  81.7k|                    code = -1;
 1667|  81.7k|                    break;
 1668|  81.7k|                }
 1669|   126k|            }
 1670|   126k|        }
 1671|   173k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1671:16): [True: 0, False: 173k]
  ------------------
 1672|   192k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1476|   150k|    {
 1477|   150k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1477:15): [True: 81.7k, False: 69.1k]
  ------------------
 1478|   150k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   69|   525k|        {
   70|   525k|            return data_[i];
   71|   525k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  733|   621k|    {
  734|   621k|        storage_.set_negative(value);
  735|   621k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  515|   621k|    {
  516|   621k|        common_.is_negative_ = value;
  517|   621k|    }
_ZNK8jsoncons16to_bigint_resultIcEcvbEv:
  578|  22.8k|    {
  579|  22.8k|        return ec == std::errc{};
  580|  22.8k|    }
_ZN8jsonconsneERKNS_12basic_bigintINSt3__19allocatorImEEEEi:
 1471|  22.8k|    {
 1472|  22.8k|        return x.compare(basic_bigint<Allocator>(y)) != 0 ? true : false;
  ------------------
  |  Branch (1472:16): [True: 21.0k, False: 1.80k]
  ------------------
 1473|  22.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1675|   150k|    {
 1676|   150k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1677|   150k|        auto denom_view = denom.get_storage_view();
 1678|       |
 1679|   150k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1679:13): [True: 0, False: 150k]
  ------------------
 1680|      0|        {
 1681|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1682|      0|        }
 1683|   150k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1684|   150k|        bool rem_neg = is_negative();
 1685|   150k|        basic_bigint<Allocator> num(*this, get_allocator());
 1686|   150k|        num.set_negative(false);
 1687|   150k|        denom.set_negative(false);
 1688|   150k|        if ( num < denom )
  ------------------
  |  Branch (1688:14): [True: 81.7k, False: 69.1k]
  ------------------
 1689|  81.7k|        {
 1690|  81.7k|            quot = word_type(0);
 1691|  81.7k|            quot.set_negative(quot_neg);
 1692|  81.7k|            rem = num;
 1693|  81.7k|            rem.set_negative(rem_neg);
 1694|  81.7k|            return;
 1695|  81.7k|        }
 1696|       |
 1697|  69.1k|        auto num_view = num.get_storage_view();
 1698|  69.1k|        auto quot_view = quot.get_storage_view();
 1699|  69.1k|        auto this_view = get_storage_view();
 1700|       |
 1701|  69.1k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1701:14): [True: 69.1k, False: 0]
  |  Branch (1701:40): [True: 44.8k, False: 24.2k]
  ------------------
 1702|  44.8k|        {
 1703|  44.8k|            quot = word_type( num_view[0]/denom_view[0] );
 1704|  44.8k|            rem = word_type( num_view[0]%denom_view[0] );
 1705|  44.8k|            quot.set_negative(quot_neg);
 1706|  44.8k|            rem.set_negative(rem_neg);
 1707|  44.8k|            return;
 1708|  44.8k|        }
 1709|  24.2k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1709:13): [True: 24.2k, False: 0]
  |  Branch (1709:39): [True: 5.27k, False: 18.9k]
  ------------------
 1710|  5.27k|        {
 1711|       |            // Denominator fits into a half word
 1712|  5.27k|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1713|  5.27k|            quot.resize(this_view.size());
 1714|  5.27k|            quot_view = quot.get_storage_view();
 1715|  15.8k|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1715:48): [True: 10.5k, False: 5.27k]
  ------------------
 1716|  10.5k|            {
 1717|  10.5k|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1718|  10.5k|                q1 = dividend/divisor;
 1719|  10.5k|                r = dividend % divisor;
 1720|  10.5k|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1721|  10.5k|                q2 = dividend/divisor;
 1722|  10.5k|                dHi = dividend % divisor;
 1723|  10.5k|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1724|  10.5k|            }
 1725|  5.27k|            quot.reduce();
 1726|  5.27k|            rem = dHi;
 1727|  5.27k|            quot.set_negative(quot_neg);
 1728|  5.27k|            rem.set_negative(rem_neg);
 1729|  5.27k|            return;
 1730|  5.27k|        }
 1731|  18.9k|        basic_bigint<Allocator> num0(num, get_allocator());
 1732|  18.9k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1733|  18.9k|        int x = 0;
 1734|  18.9k|        bool second_done = normalize(denom, num, x);
 1735|  18.9k|        denom_view = denom.get_storage_view();
 1736|  18.9k|        num_view = num.get_storage_view();
 1737|       |
 1738|  18.9k|        size_type l = denom_view.size() - 1;
 1739|  18.9k|        size_type n = num_view.size() - 1;
 1740|  18.9k|        quot.resize(n - l);
 1741|  18.9k|        quot_view = quot.get_storage_view();
 1742|  37.9k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1742:46): [True: 18.9k, False: 18.9k]
  ------------------
 1743|  18.9k|        {
 1744|  18.9k|            quot_view[i] = 0;
 1745|  18.9k|        }
 1746|  18.9k|        rem = num;
 1747|  18.9k|        auto rem_view = rem.get_storage_view();
 1748|  18.9k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1748:14): [True: 0, False: 18.9k]
  ------------------
 1749|      0|        {
 1750|      0|            rem.resize(rem_view.size() + 1);
 1751|      0|            rem_view = rem.get_storage_view();
 1752|      0|            n++;
 1753|      0|            quot.resize(quot_view.size() + 1);
 1754|      0|            quot_view = quot.get_storage_view();
 1755|      0|        }
 1756|  18.9k|        word_type d = denom_view[l];
 1757|       |
 1758|  37.9k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1758:32): [True: 18.9k, False: 18.9k]
  ------------------
 1759|  18.9k|        {
 1760|  18.9k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1761|  18.9k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1762|  18.9k|            quot_view[k - l - 1] = q;
 1763|  18.9k|        }
 1764|  18.9k|        quot.reduce();
 1765|  18.9k|        quot.set_negative(quot_neg);
 1766|  18.9k|        if (remDesired)
  ------------------
  |  Branch (1766:13): [True: 18.9k, False: 0]
  ------------------
 1767|  18.9k|        {
 1768|  18.9k|            unnormalize(rem, x, second_done);
 1769|  18.9k|            rem.set_negative(rem_neg);
 1770|  18.9k|        }
 1771|  18.9k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  713|   501k|    {
  714|   501k|        return storage_.get_allocator();
  715|   501k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  676|   339k|        : storage_(other.storage_, alloc)
  677|   339k|    {
  678|   339k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  319|   339k|        : word_allocator_type(alloc)
  320|   339k|    {
  321|   339k|        if (!other.is_allocated())
  ------------------
  |  Branch (321:13): [True: 284k, False: 55.1k]
  ------------------
  322|   284k|        {
  323|   284k|            ::new (&inlined_) inlined_storage(other.inlined_);
  324|   284k|        }
  325|  55.1k|        else
  326|  55.1k|        {
  327|  55.1k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  328|  55.1k|        }
  329|   339k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1872|  18.9k|    {
 1873|  18.9k|        auto denom_view = denom.get_storage_view();
 1874|  18.9k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1874:13): [True: 0, False: 18.9k]
  ------------------
 1875|      0|        {
 1876|      0|            return false;
 1877|      0|        }
 1878|  18.9k|        size_type r = denom_view.size() - 1;
 1879|  18.9k|        word_type y = denom_view[r];
 1880|       |
 1881|  18.9k|        x = 0;
 1882|  18.9k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1882:17): [True: 0, False: 18.9k]
  ------------------
 1883|      0|        {
 1884|      0|            y <<= 1;
 1885|      0|            x++;
 1886|      0|        }
 1887|  18.9k|        denom <<= x;
 1888|  18.9k|        num <<= x;
 1889|       |
 1890|  18.9k|        denom_view = denom.get_storage_view();
 1891|  18.9k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1891:14): [True: 0, False: 18.9k]
  |  Branch (1891:23): [True: 0, False: 0]
  ------------------
 1892|      0|        {
 1893|      0|            denom *= max_word;
 1894|      0|            num *= max_word;
 1895|      0|            return true;
 1896|      0|        }
 1897|  18.9k|        return false;
 1898|  18.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1117|  37.9k|    {
 1118|  37.9k|        auto this_view = get_storage_view();
 1119|  37.9k|        size_type q = k / word_type_bits;
 1120|  37.9k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1120:14): [True: 0, False: 37.9k]
  ------------------
 1121|      0|        {
 1122|      0|            resize(this_view.size() + q);
 1123|      0|            this_view = get_storage_view();
 1124|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1124:50): [True: 0, False: 0]
  ------------------
 1125|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1125:34): [True: 0, False: 0]
  ------------------
 1126|      0|            k %= word_type_bits;
 1127|      0|        }
 1128|  37.9k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1128:14): [True: 0, False: 37.9k]
  ------------------
 1129|      0|        {
 1130|      0|            size_type k1 = word_type_bits - k;
 1131|      0|            word_type mask = (word_type(1) << k) - word_type(1);
 1132|      0|            resize( this_view.size() + 1 );
 1133|      0|            this_view = get_storage_view();
 1134|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1134:50): [True: 0, False: 0]
  ------------------
 1135|      0|            {
 1136|      0|                this_view[i] <<= k;
 1137|      0|                if ( i > 0 )
  ------------------
  |  Branch (1137:22): [True: 0, False: 0]
  ------------------
 1138|      0|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1139|      0|            }
 1140|      0|        }
 1141|  37.9k|        reduce();
 1142|  37.9k|        return *this;
 1143|  37.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  998|  83.7k|    {
  999|  83.7k|        auto this_view = get_storage_view();
 1000|  83.7k|        size_type len0 = this_view.size();
 1001|  83.7k|        word_type dig = this_view[0];
 1002|  83.7k|        word_type carry = 0;
 1003|       |
 1004|  83.7k|        resize(this_view.size() + 1);
 1005|  83.7k|        this_view = get_storage_view();
 1006|       |
 1007|  83.7k|        size_type i = 0;
 1008|   162k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 78.5k, False: 83.7k]
  ------------------
 1009|  78.5k|        {
 1010|  78.5k|            word_type hi;
 1011|  78.5k|            word_type lo;
 1012|  78.5k|            DDproduct( dig, y, hi, lo );
 1013|  78.5k|            this_view[i] = lo + carry;
 1014|  78.5k|            dig = this_view[i+1];
 1015|  78.5k|            carry = hi + (this_view[i] < lo);
 1016|  78.5k|        }
 1017|  83.7k|        this_view[i] = carry;
 1018|  83.7k|        reduce();
 1019|  83.7k|        return *this;
 1020|  83.7k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1799|  18.9k|    {
 1800|  18.9k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1801|  18.9k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1802|  18.9k|        qHi = A/(dHi + 1);
 1803|       |        // This initial guess of qHi may be too small.
 1804|  18.9k|        middle = qHi * dLo;
 1805|  18.9k|        left = qHi * dHi;
 1806|  18.9k|        x = B - (middle << word_type_half_bits);
 1807|  18.9k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1808|  18.9k|        B = x;
 1809|  18.9k|        dLo1 = dLo << word_type_half_bits;
 1810|       |        // Increase qHi if necessary:
 1811|  18.9k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1811:17): [True: 0, False: 18.9k]
  |  Branch (1811:29): [True: 0, False: 18.9k]
  |  Branch (1811:41): [True: 0, False: 0]
  ------------------
 1812|      0|        {
 1813|      0|            x = B - dLo1;
 1814|      0|            A -= dHi + (x > B);
 1815|      0|            B = x;
 1816|      0|            qHi++;
 1817|      0|        }
 1818|  18.9k|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1819|       |        // This initial guess of qLo may be too small.
 1820|  18.9k|        right = qLo * dLo;
 1821|  18.9k|        middle = qLo * dHi;
 1822|  18.9k|        x = B - right;
 1823|  18.9k|        A -= (x > B);
 1824|  18.9k|        B = x;
 1825|  18.9k|        x = B - (middle << word_type_half_bits);
 1826|  18.9k|            A -= (middle >> word_type_half_bits) + (x > B);
 1827|  18.9k|        B = x;
 1828|       |        // Increase qLo if necessary:
 1829|  20.5k|        while ( A || B >= d )
  ------------------
  |  Branch (1829:17): [True: 0, False: 20.5k]
  |  Branch (1829:22): [True: 1.56k, False: 18.9k]
  ------------------
 1830|  1.56k|        {
 1831|  1.56k|            x = B - d;
 1832|  1.56k|            A -= (x > B);
 1833|  1.56k|            B = x;
 1834|  1.56k|            qLo++;
 1835|  1.56k|        }
 1836|  18.9k|        return (qHi << word_type_half_bits) + qLo;
 1837|  18.9k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1841|  18.9k|    {
 1842|  18.9k|        word_type hi, lo, d, carry = 0;
 1843|  18.9k|        size_type i;
 1844|  37.9k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1844:22): [True: 18.9k, False: 18.9k]
  ------------------
 1845|  18.9k|        {
 1846|  18.9k|            DDproduct( b[i], q, hi, lo );
 1847|  18.9k|            d = a[i];
 1848|  18.9k|            a[i] -= lo;
 1849|  18.9k|            if ( a[i] > d )
  ------------------
  |  Branch (1849:18): [True: 8.04k, False: 10.9k]
  ------------------
 1850|  8.04k|                carry++;
 1851|  18.9k|            d = a[i + 1];
 1852|  18.9k|            a[i + 1] -= hi + carry;
 1853|  18.9k|            carry = a[i + 1] > d;
 1854|  18.9k|        }
 1855|  18.9k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1855:14): [True: 0, False: 18.9k]
  ------------------
 1856|      0|        {
 1857|      0|            q--;
 1858|      0|            carry = 0;
 1859|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1859:26): [True: 0, False: 0]
  ------------------
 1860|      0|            {
 1861|      0|                d = a[i] + carry;
 1862|      0|                carry = d < carry;
 1863|      0|                a[i] = d + b[i];
 1864|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1864:22): [True: 0, False: 0]
  ------------------
 1865|      0|                    carry = 1;
 1866|      0|            }
 1867|      0|            a[n] = 0;
 1868|      0|        }
 1869|  18.9k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1901|  18.9k|    {
 1902|  18.9k|        if (secondDone)
  ------------------
  |  Branch (1902:13): [True: 0, False: 18.9k]
  ------------------
 1903|      0|        {
 1904|      0|            rem /= max_word;
 1905|      0|        }
 1906|  18.9k|        if ( x > 0 )
  ------------------
  |  Branch (1906:14): [True: 0, False: 18.9k]
  ------------------
 1907|      0|        {
 1908|      0|            rem >>= x;
 1909|      0|        }
 1910|  18.9k|        else
 1911|  18.9k|        {
 1912|  18.9k|            rem.reduce();
 1913|  18.9k|        }
 1914|  18.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  67.0k|        : storage_(n, alloc)
  694|  67.0k|    {
  695|  67.0k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  67.0k|        : word_allocator_type(alloc)
  361|  67.0k|    {
  362|  67.0k|        ::new (&inlined_) inlined_storage(n);
  363|  67.0k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  67.0k|            : is_allocated_(false),
  126|  67.0k|            is_negative_(n < 0),
  127|  67.0k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 25.6k, False: 41.3k]
  ------------------
  128|  67.0k|        {
  129|  67.0k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 14.8k, False: 52.1k]
  ------------------
  130|  67.0k|            values_[1] = 0;
  131|  67.0k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  708|  1.03M|    {
  709|  1.03M|        storage_.destroy();
  710|  1.03M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  487|  1.03M|    {
  488|  1.03M|        if (is_allocated())
  ------------------
  |  Branch (488:13): [True: 97.1k, False: 933k]
  ------------------
  489|  97.1k|        {
  490|  97.1k|            allocated_.destroy(get_allocator());
  491|  97.1k|            allocated_.~allocated_storage();
  492|  97.1k|        }
  493|   933k|        else
  494|   933k|        {
  495|   933k|            inlined_.~inlined_storage();
  496|   933k|        }
  497|  1.03M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  246|  97.1k|        {
  247|  97.1k|            if (data_ != nullptr)
  ------------------
  |  Branch (247:17): [True: 97.1k, False: 0]
  ------------------
  248|  97.1k|            {
  249|  97.1k|                real_allocator_type alloc(a);
  250|  97.1k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  251|  97.1k|            }
  252|  97.1k|        }
_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: 37.9k, False: 4.15k]
  ------------------
 1279|  37.9k|        {
 1280|  37.9k|            x = static_cast<Integer>(this_view[0]);
 1281|  37.9k|        }
 1282|       |
 1283|  42.1k|        return is_negative() ? x*(-1) : x;
  ------------------
  |  Branch (1283:16): [True: 7.12k, False: 34.9k]
  ------------------
 1284|  42.1k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12write_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1359|  83.7k|    {
 1360|  83.7k|        basic_bigint<Allocator> v(*this);
 1361|  83.7k|        auto v_view = v.get_storage_view();
 1362|       |
 1363|  83.7k|        size_type len = (v_view.size() * word_type_bits / 3) + 2;
 1364|  83.7k|        data.reserve(len);
 1365|       |
 1366|  83.7k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1366:14): [True: 2.76k, False: 80.9k]
  ------------------
 1367|  2.76k|        {
 1368|  2.76k|            data.push_back('0');
 1369|  2.76k|        }
 1370|  80.9k|        else
 1371|  80.9k|        {
 1372|  80.9k|            word_type r;
 1373|  80.9k|            basic_bigint<Allocator> R(get_allocator());
 1374|  80.9k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1375|       |
 1376|  80.9k|            do
 1377|   129k|            {
 1378|   129k|                v.divide( LP10, v, R, true );
 1379|   129k|                v_view = v.get_storage_view();
 1380|       |
 1381|   129k|                auto R_view = R.get_storage_view();
 1382|   129k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1382:22): [True: 111k, False: 18.6k]
  ------------------
 1383|  1.69M|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1383:38): [True: 1.64M, False: 48.8k]
  ------------------
 1384|  1.64M|                {
 1385|  1.64M|                    data.push_back(char(r % 10u + '0'));
 1386|  1.64M|                    r /= 10u;
 1387|  1.64M|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1387:26): [True: 80.9k, False: 1.56M]
  ------------------
 1388|  80.9k|                        break;
 1389|  1.64M|                }
 1390|   129k|            } 
 1391|   129k|            while ( v_view.size() > 0);
  ------------------
  |  Branch (1391:21): [True: 48.8k, False: 80.9k]
  ------------------
 1392|       |
 1393|  80.9k|            if (is_negative())
  ------------------
  |  Branch (1393:17): [True: 14.8k, False: 66.1k]
  ------------------
 1394|  14.8k|            {
 1395|  14.8k|                data.push_back('-');
 1396|  14.8k|            }
 1397|  80.9k|            std::reverse(data.begin(),data.end());
 1398|  80.9k|        }
 1399|  83.7k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  644|  80.9k|        : storage_(alloc)
  645|  80.9k|    {
  646|  80.9k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEEl:
 1481|  22.9k|    {
 1482|  22.9k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1482:15): [True: 14.8k, False: 8.11k]
  ------------------
 1483|  22.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IjEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  14.8k|        : storage_(n, alloc)
  694|  14.8k|    {
  695|  14.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IjEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  14.8k|        : word_allocator_type(alloc)
  361|  14.8k|    {
  362|  14.8k|        ::new (&inlined_) inlined_storage(n);
  363|  14.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IjEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  14.8k|            : is_allocated_(false),
  139|  14.8k|            is_negative_(false),
  140|  14.8k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 1.10k, False: 13.7k]
  ------------------
  141|  14.8k|        {
  142|  14.8k|            values_[0] = n;
  143|  14.8k|            values_[1] = 0;
  144|  14.8k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLIjEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  889|  8.11k|    {
  890|  8.11k|        if ( is_negative())
  ------------------
  |  Branch (890:14): [True: 0, False: 8.11k]
  ------------------
  891|      0|            return *this -= -basic_bigint<Allocator>(y);
  892|       |
  893|  8.11k|        word_type d;
  894|  8.11k|        word_type carry = 0;
  895|       |
  896|  8.11k|        auto this_view = get_storage_view();
  897|  8.11k|        resize(this_view.size() + 1);
  898|       |
  899|  8.11k|        this_view = get_storage_view();
  900|  8.11k|        const size_type this_size = this_view.size();
  901|  8.11k|        size_type y_size = 1;
  902|       |
  903|  8.11k|        d = this_view[0] + carry;
  904|  8.11k|        carry = d < carry;
  905|  8.11k|        this_view[0] = d + y;
  906|  8.11k|        if (this_view[0] < d)
  ------------------
  |  Branch (906:13): [True: 541, False: 7.57k]
  ------------------
  907|    541|            carry = 1;
  908|       |
  909|  8.65k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (909:36): [True: 5.71k, False: 2.94k]
  |  Branch (909:53): [True: 541, False: 5.17k]
  ------------------
  910|    541|        {
  911|    541|            d = this_view[i] + carry;
  912|    541|            carry = d < carry;
  913|    541|            this_view[i] = d;
  914|    541|        }
  915|  8.11k|        reduce();
  916|  8.11k|        return *this;
  917|  8.11k|    }

_ZN8jsoncons6binary13native_to_bigItNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  6.53k|    {
  128|  6.53k|        T val2 = byte_swap(val);
  129|  6.53k|        uint8_t buf[sizeof(T)];
  130|  6.53k|        std::memcpy(buf, &val2, sizeof(T));
  131|  6.53k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 13.0k, False: 6.53k]
  ------------------
  132|  13.0k|        {
  133|  13.0k|            *d_first++ = item;
  134|  13.0k|        }
  135|  6.53k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  18.7k|    {
   29|  18.7k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  18.7k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  18.7k|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|  18.7k|    }
_ZN8jsoncons6binary13native_to_bigIjNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  25.0k|    {
  128|  25.0k|        T val2 = byte_swap(val);
  129|  25.0k|        uint8_t buf[sizeof(T)];
  130|  25.0k|        std::memcpy(buf, &val2, sizeof(T));
  131|  25.0k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 100k, False: 25.0k]
  ------------------
  132|   100k|        {
  133|   100k|            *d_first++ = item;
  134|   100k|        }
  135|  25.0k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   230k|    {
   40|   230k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   230k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|   230k|#  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|   230k|    }
_ZN8jsoncons6binary13native_to_bigImNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  39.3k|    {
  128|  39.3k|        T val2 = byte_swap(val);
  129|  39.3k|        uint8_t buf[sizeof(T)];
  130|  39.3k|        std::memcpy(buf, &val2, sizeof(T));
  131|  39.3k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 314k, False: 39.3k]
  ------------------
  132|   314k|        {
  133|   314k|            *d_first++ = item;
  134|   314k|        }
  135|  39.3k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   196k|    {
   52|   196k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   196k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|   196k|#  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|   196k|    }
_ZN8jsoncons6binary13native_to_bigIaNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|   176k|    {
  128|   176k|        T val2 = byte_swap(val);
  129|   176k|        uint8_t buf[sizeof(T)];
  130|   176k|        std::memcpy(buf, &val2, sizeof(T));
  131|   176k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 176k, False: 176k]
  ------------------
  132|   176k|        {
  133|   176k|            *d_first++ = item;
  134|   176k|        }
  135|   176k|    }
_ZN8jsoncons6binary9byte_swapIaEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  1.64M|    {
   22|  1.64M|        return val;
   23|  1.64M|    }
_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|  37.7k|    {
   29|  37.7k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  37.7k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  37.7k|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|  37.7k|    }
_ZN8jsoncons6binary13native_to_bigIiNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  6.58k|    {
  128|  6.58k|        T val2 = byte_swap(val);
  129|  6.58k|        uint8_t buf[sizeof(T)];
  130|  6.58k|        std::memcpy(buf, &val2, sizeof(T));
  131|  6.58k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 26.3k, False: 6.58k]
  ------------------
  132|  26.3k|        {
  133|  26.3k|            *d_first++ = item;
  134|  26.3k|        }
  135|  6.58k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  22.6k|    {
   40|  22.6k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  22.6k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  22.6k|#  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.6k|    }
_ZN8jsoncons6binary13native_to_bigIlNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  3.47k|    {
  128|  3.47k|        T val2 = byte_swap(val);
  129|  3.47k|        uint8_t buf[sizeof(T)];
  130|  3.47k|        std::memcpy(buf, &val2, sizeof(T));
  131|  3.47k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 27.8k, False: 3.47k]
  ------------------
  132|  27.8k|        {
  133|  27.8k|            *d_first++ = item;
  134|  27.8k|        }
  135|  3.47k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  58.4k|    {
   52|  58.4k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  58.4k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  58.4k|#  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|  58.4k|    }
_ZN8jsoncons6binary13native_to_bigIfNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  49.0k|    {
  128|  49.0k|        T val2 = byte_swap(val);
  129|  49.0k|        uint8_t buf[sizeof(T)];
  130|  49.0k|        std::memcpy(buf, &val2, sizeof(T));
  131|  49.0k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 196k, False: 49.0k]
  ------------------
  132|   196k|        {
  133|   196k|            *d_first++ = item;
  134|   196k|        }
  135|  49.0k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|   150k|    {
   65|   150k|        uint32_t x;
   66|   150k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|   150k|        uint32_t y = byte_swap(x);
   68|   150k|        T val2;
   69|   150k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|   150k|        return val2;
   71|   150k|    }
_ZN8jsoncons6binary13native_to_bigIdNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  26.6k|    {
  128|  26.6k|        T val2 = byte_swap(val);
  129|  26.6k|        uint8_t buf[sizeof(T)];
  130|  26.6k|        std::memcpy(buf, &val2, sizeof(T));
  131|  26.6k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 213k, False: 26.6k]
  ------------------
  132|   213k|        {
  133|   213k|            *d_first++ = item;
  134|   213k|        }
  135|  26.6k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|  89.8k|    {
   77|  89.8k|        uint64_t x;
   78|  89.8k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|  89.8k|        uint64_t y = byte_swap(x);
   80|  89.8k|        T val2;
   81|  89.8k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|  89.8k|        return val2;
   83|  89.8k|    }
_ZN8jsoncons6binary13big_to_nativeIfNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   101k|    {
  183|   101k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 101k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   101k|        T val;
  188|   101k|        std::memcpy(&val,first,sizeof(T));
  189|   101k|        return byte_swap(val);
  190|   101k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  63.1k|    {
  183|  63.1k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 63.1k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  63.1k|        T val;
  188|  63.1k|        std::memcpy(&val,first,sizeof(T));
  189|  63.1k|        return byte_swap(val);
  190|  63.1k|    }
_ZN8jsoncons6binary13big_to_nativeItNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  12.2k|    {
  183|  12.2k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 12.2k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  12.2k|        T val;
  188|  12.2k|        std::memcpy(&val,first,sizeof(T));
  189|  12.2k|        return byte_swap(val);
  190|  12.2k|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  54.7k|    {
  183|  54.7k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 54.7k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  54.7k|        T val;
  188|  54.7k|        std::memcpy(&val,first,sizeof(T));
  189|  54.7k|        return byte_swap(val);
  190|  54.7k|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  67.7k|    {
  183|  67.7k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 67.7k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  67.7k|        T val;
  188|  67.7k|        std::memcpy(&val,first,sizeof(T));
  189|  67.7k|        return byte_swap(val);
  190|  67.7k|    }
_ZN8jsoncons6binary13big_to_nativeIaNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  1.46M|    {
  183|  1.46M|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 1.46M]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  1.46M|        T val;
  188|  1.46M|        std::memcpy(&val,first,sizeof(T));
  189|  1.46M|        return byte_swap(val);
  190|  1.46M|    }
_ZN8jsoncons6binary13big_to_nativeIsNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  25.4k|    {
  183|  25.4k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 25.4k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  25.4k|        T val;
  188|  25.4k|        std::memcpy(&val,first,sizeof(T));
  189|  25.4k|        return byte_swap(val);
  190|  25.4k|    }
_ZN8jsoncons6binary13big_to_nativeIiNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  16.0k|    {
  183|  16.0k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 16.0k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  16.0k|        T val;
  188|  16.0k|        std::memcpy(&val,first,sizeof(T));
  189|  16.0k|        return byte_swap(val);
  190|  16.0k|    }
_ZN8jsoncons6binary13big_to_nativeIlNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  54.9k|    {
  183|  54.9k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 54.9k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  54.9k|        T val;
  188|  54.9k|        std::memcpy(&val,first,sizeof(T));
  189|  54.9k|        return byte_swap(val);
  190|  54.9k|    }
_ZN8jsoncons6binary13big_to_nativeIhNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  81.4k|    {
  183|  81.4k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 81.4k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  81.4k|        T val;
  188|  81.4k|        std::memcpy(&val,first,sizeof(T));
  189|  81.4k|        return byte_swap(val);
  190|  81.4k|    }
_ZN8jsoncons6binary9byte_swapIhEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  81.4k|    {
   22|  81.4k|        return val;
   23|  81.4k|    }

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

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

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

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   719k|    {
 1148|   719k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   719k|        const uint8_t* end = it + length;
 1150|       |
 1151|   719k|        unicode_errc  result{};
 1152|  14.2M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 13.5M, False: 719k]
  ------------------
 1153|  13.5M|        {
 1154|  13.5M|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 11.5M, False: 1.99M]
  ------------------
 1155|  11.5M|            {
 1156|  80.6M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|  23.0M|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 11.5M, False: 809]
  |  |  |  Branch (281:34): [True: 11.5M, False: 295]
  |  |  |  Branch (281:36): [True: 11.5M, False: 271]
  |  |  |  Branch (281:38): [True: 11.5M, False: 423]
  |  |  |  Branch (281:40): [True: 11.5M, False: 285]
  |  |  |  Branch (281:42): [True: 11.5M, False: 294]
  |  |  |  Branch (281:44): [True: 11.5M, False: 297]
  |  |  |  Branch (281:46): [True: 11.5M, False: 244]
  |  |  ------------------
  ------------------
 1157|  11.5M|                continue;
 1158|  80.6M|            }
 1159|  1.99M|    non_ascii:
 1160|  1.99M|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  1.99M|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 0, False: 1.99M]
  ------------------
 1162|      0|            {
 1163|      0|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|      0|            }
 1165|  1.99M|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 0, False: 1.99M]
  ------------------
 1166|      0|            {
 1167|      0|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|      0|            }
 1169|  1.99M|            it += len;
 1170|  1.99M|        }
 1171|   719k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   719k|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  2.00M|    {
  306|  2.00M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  2.00M|        const uint8_t* end = it+length;
  308|       |
  309|  2.00M|        uint8_t byte;
  310|  2.00M|        switch (length) {
  311|     34|        default:
  ------------------
  |  Branch (311:9): [True: 34, False: 2.00M]
  ------------------
  312|     34|            return unicode_errc::over_long_utf8_sequence;
  313|  1.46k|        case 4:
  ------------------
  |  Branch (313:9): [True: 1.46k, False: 2.00M]
  ------------------
  314|  1.46k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 4, False: 1.46k]
  ------------------
  315|      4|                return unicode_errc::bad_continuation_byte;
  316|  1.46k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.46k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  3.60k|        case 3:
  ------------------
  |  Branch (317:9): [True: 2.14k, False: 2.00M]
  ------------------
  318|  3.60k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 11, False: 3.59k]
  ------------------
  319|     11|                return unicode_errc::bad_continuation_byte;
  320|  3.59k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  3.59k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  8.38k|        case 2:
  ------------------
  |  Branch (321:9): [True: 4.79k, False: 2.00M]
  ------------------
  322|  8.38k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 33, False: 8.35k]
  ------------------
  323|     33|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  8.35k|            switch (*it) 
  326|  8.35k|            {
  327|       |                // no fall-through in this inner switch
  328|    876|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 876, False: 7.47k]
  |  Branch (328:32): [True: 3, False: 873]
  ------------------
  329|  1.07k|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 1.07k, False: 7.27k]
  |  Branch (329:32): [True: 3, False: 1.07k]
  ------------------
  330|  1.07k|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 623, False: 7.72k]
  |  Branch (330:32): [True: 7, False: 616]
  ------------------
  331|    700|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 700, False: 7.65k]
  |  Branch (331:32): [True: 3, False: 697]
  ------------------
  332|  5.07k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 5.07k, False: 3.27k]
  |  Branch (332:32): [True: 0, False: 5.07k]
  ------------------
  333|  8.35k|            }
  334|       |
  335|  8.33k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  8.33k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  2.00M|        case 1:
  ------------------
  |  Branch (336:9): [True: 2.00M, False: 8.43k]
  ------------------
  337|  2.00M|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 8.40k, False: 2.00M]
  |  Branch (337:32): [True: 66, False: 8.33k]
  ------------------
  338|     66|                return unicode_errc::source_illegal;
  339|  2.00M|            break;
  340|  2.00M|        }
  341|  2.00M|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 1, False: 2.00M]
  ------------------
  342|      1|            return unicode_errc::source_illegal;
  343|       |
  344|  2.00M|        return unicode_errc();
  345|  2.00M|    }
_ZN8jsoncons14unicode_traits8validateIhEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   663k|    {
 1148|   663k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   663k|        const uint8_t* end = it + length;
 1150|       |
 1151|   663k|        unicode_errc  result{};
 1152|   820k|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 157k, False: 663k]
  ------------------
 1153|   157k|        {
 1154|   157k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 147k, False: 10.3k]
  ------------------
 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.35k]
  |  |  |  Branch (281:34): [True: 145k, False: 317]
  |  |  |  Branch (281:36): [True: 145k, False: 285]
  |  |  |  Branch (281:38): [True: 144k, False: 240]
  |  |  |  Branch (281:40): [True: 144k, False: 303]
  |  |  |  Branch (281:42): [True: 144k, False: 248]
  |  |  |  Branch (281:44): [True: 144k, False: 339]
  |  |  |  Branch (281:46): [True: 143k, False: 317]
  |  |  ------------------
  ------------------
 1157|   143k|                continue;
 1158|  1.01M|            }
 1159|  13.7k|    non_ascii:
 1160|  13.7k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  13.7k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 36, False: 13.7k]
  ------------------
 1162|     36|            {
 1163|     36|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     36|            }
 1165|  13.7k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 165, False: 13.5k]
  ------------------
 1166|    165|            {
 1167|    165|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    165|            }
 1169|  13.5k|            it += len;
 1170|  13.5k|        }
 1171|   663k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   663k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  12.9M|{
   43|  12.9M|    using char_type = typename Result::value_type;
   44|       |
   45|  12.9M|    char_type buf[255];
   46|  12.9M|    char_type *p = buf;
   47|  12.9M|    const char_type* last = buf+255;
   48|       |
   49|  12.9M|    bool is_negative = value < 0;
   50|       |
   51|  12.9M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 12.9M]
  ------------------
   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.9M|    else
   60|  12.9M|    {
   61|       |
   62|  12.9M|        do
   63|  16.8M|        {
   64|  16.8M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  16.8M|        }
   66|  16.8M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 3.86M, False: 12.9M]
  |  Branch (66:33): [True: 3.86M, False: 0]
  ------------------
   67|  12.9M|    }
   68|  12.9M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  12.9M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 12.9M]
  |  |  ------------------
  |  |   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.9M|    std::size_t count = (p - buf);
   71|  12.9M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 12.9M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  29.7M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 16.8M, False: 12.9M]
  ------------------
   77|  16.8M|    {
   78|  16.8M|        result.push_back(*p);
   79|  16.8M|    }
   80|       |
   81|  12.9M|    return count;
   82|  12.9M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  2.72M|{
   43|  2.72M|    using char_type = typename Result::value_type;
   44|       |
   45|  2.72M|    char_type buf[255];
   46|  2.72M|    char_type *p = buf;
   47|  2.72M|    const char_type* last = buf+255;
   48|       |
   49|  2.72M|    bool is_negative = value < 0;
   50|       |
   51|  2.72M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 2.71M, False: 14.2k]
  ------------------
   52|  2.71M|    {
   53|  2.71M|        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: 817k, False: 2.71M]
  |  Branch (57:33): [True: 817k, False: 0]
  ------------------
   58|  2.71M|    }
   59|  14.2k|    else
   60|  14.2k|    {
   61|       |
   62|  14.2k|        do
   63|   112k|        {
   64|   112k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|   112k|        }
   66|   112k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 98.2k, False: 14.2k]
  |  Branch (66:33): [True: 98.2k, False: 0]
  ------------------
   67|  14.2k|    }
   68|  2.72M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  2.72M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.72M]
  |  |  ------------------
  |  |   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.72M|    std::size_t count = (p - buf);
   71|  2.72M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 2.71M, False: 14.2k]
  ------------------
   72|  2.71M|    {
   73|  2.71M|        result.push_back('-');
   74|  2.71M|        ++count;
   75|  2.71M|    }
   76|  6.36M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 3.64M, False: 2.72M]
  ------------------
   77|  3.64M|    {
   78|  3.64M|        result.push_back(*p);
   79|  3.64M|    }
   80|       |
   81|  2.72M|    return count;
   82|  2.72M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  89.1k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  89.1k|    {
  489|  89.1k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  89.1k|        struct lconv *lc = localeconv();
  491|  89.1k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 89.1k, False: 0]
  |  Branch (491:30): [True: 89.1k, False: 0]
  ------------------
  492|  89.1k|        {
  493|  89.1k|            decimal_point_ = lc->decimal_point[0];
  494|  89.1k|        }
  495|  89.1k|#endif
  496|  89.1k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  89.1k|    {
  504|  89.1k|        std::size_t count = 0;
  505|       |
  506|  89.1k|        char number_buffer[200];
  507|  89.1k|        int length = 0;
  508|       |
  509|  89.1k|        switch (float_format_)
  510|  89.1k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 89.1k]
  ------------------
  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: 89.1k]
  ------------------
  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|  89.1k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 89.1k, False: 0]
  ------------------
  552|  89.1k|            {
  553|  89.1k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 89.1k]
  ------------------
  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|  89.1k|                else
  563|  89.1k|                {
  564|  89.1k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 89.1k]
  ------------------
  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|  89.1k|                }             
  569|  89.1k|                break;
  570|  89.1k|            }
  571|  89.1k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 89.1k]
  ------------------
  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|  89.1k|        }
  575|  89.1k|        return count;
  576|  89.1k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  5.78k|{
  244|  5.78k|    const char *sbeg = buffer;
  245|  5.78k|    const char *send = sbeg + length;
  246|       |
  247|  5.78k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 5.78k, False: 0]
  ------------------
  248|  5.78k|    {
  249|  5.78k|        bool needs_dot = true;
  250|  88.4k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 82.6k, False: 5.78k]
  ------------------
  251|  82.6k|        {
  252|  82.6k|            switch (*q)
  253|  82.6k|            {
  254|  3.73k|            case '-':
  ------------------
  |  Branch (254:13): [True: 3.73k, False: 78.9k]
  ------------------
  255|  10.3k|            case '0':
  ------------------
  |  Branch (255:13): [True: 6.57k, False: 76.0k]
  ------------------
  256|  17.5k|            case '1':
  ------------------
  |  Branch (256:13): [True: 7.28k, False: 75.3k]
  ------------------
  257|  29.0k|            case '2':
  ------------------
  |  Branch (257:13): [True: 11.4k, False: 71.2k]
  ------------------
  258|  32.2k|            case '3':
  ------------------
  |  Branch (258:13): [True: 3.21k, False: 79.4k]
  ------------------
  259|  41.8k|            case '4':
  ------------------
  |  Branch (259:13): [True: 9.53k, False: 73.1k]
  ------------------
  260|  47.0k|            case '5':
  ------------------
  |  Branch (260:13): [True: 5.19k, False: 77.4k]
  ------------------
  261|  55.9k|            case '6':
  ------------------
  |  Branch (261:13): [True: 8.92k, False: 73.7k]
  ------------------
  262|  61.4k|            case '7':
  ------------------
  |  Branch (262:13): [True: 5.48k, False: 77.1k]
  ------------------
  263|  68.0k|            case '8':
  ------------------
  |  Branch (263:13): [True: 6.59k, False: 76.0k]
  ------------------
  264|  72.2k|            case '9':
  ------------------
  |  Branch (264:13): [True: 4.19k, False: 78.4k]
  ------------------
  265|  74.3k|            case '+':
  ------------------
  |  Branch (265:13): [True: 2.18k, False: 80.4k]
  ------------------
  266|  74.3k|                result.push_back(*q);
  267|  74.3k|                break;
  268|  3.25k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 3.25k, False: 79.4k]
  ------------------
  269|  3.25k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 82.6k]
  ------------------
  270|  3.25k|                result.push_back('e');
  271|  3.25k|                needs_dot = false;
  272|  3.25k|                break;
  273|  5.01k|            default:
  ------------------
  |  Branch (273:13): [True: 5.01k, False: 77.6k]
  ------------------
  274|  5.01k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 3.46k, False: 1.55k]
  ------------------
  275|  3.46k|                {
  276|  3.46k|                    needs_dot = false;
  277|  3.46k|                    result.push_back('.');
  278|  3.46k|                }
  279|  5.01k|                break;
  280|  82.6k|            }
  281|  82.6k|        }
  282|  5.78k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 2.31k, False: 3.46k]
  ------------------
  283|  2.31k|        {
  284|  2.31k|            result.push_back('.');
  285|  2.31k|            result.push_back('0');
  286|  2.31k|        }
  287|  5.78k|    }
  288|  5.78k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKciiiiRT_:
  171|  82.8k|{
  172|  82.8k|    int nb_digits = length;
  173|  82.8k|    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|  82.8k|    int kk = nb_digits + k;
  179|       |
  180|  82.8k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 55.1k, False: 27.7k]
  |  Branch (180:28): [True: 14.3k, False: 40.7k]
  ------------------
  181|  14.3k|    {
  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|   114k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 99.7k, False: 14.3k]
  ------------------
  186|  99.7k|        {
  187|  99.7k|            result.push_back(buffer[i]);
  188|  99.7k|        }
  189|  16.9k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 2.56k, False: 14.3k]
  ------------------
  190|  2.56k|        {
  191|  2.56k|            result.push_back('0');
  192|  2.56k|        }
  193|  14.3k|        result.push_back('.');
  194|  14.3k|        result.push_back('0');
  195|  14.3k|    } 
  196|  68.4k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 47.8k, False: 20.6k]
  |  Branch (196:24): [True: 7.15k, False: 40.7k]
  ------------------
  197|  7.15k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  27.0k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 19.8k, False: 7.15k]
  ------------------
  200|  19.8k|        {
  201|  19.8k|            result.push_back(buffer[i]);
  202|  19.8k|        }
  203|  7.15k|        result.push_back('.');
  204|  98.4k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 91.2k, False: 7.15k]
  ------------------
  205|  91.2k|        {
  206|  91.2k|            result.push_back(buffer[i]);
  207|  91.2k|        }
  208|  7.15k|    } 
  209|  61.3k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 42.3k, False: 18.9k]
  |  Branch (209:30): [True: 1.67k, False: 40.7k]
  ------------------
  210|  1.67k|    {
  211|  1.67k|        offset = 2 - kk;
  212|       |
  213|  1.67k|        result.push_back('0');
  214|  1.67k|        result.push_back('.');
  215|  4.12k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 2.44k, False: 1.67k]
  ------------------
  216|  2.44k|            result.push_back('0');
  217|  26.0k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 24.4k, False: 1.67k]
  ------------------
  218|  24.4k|        {
  219|  24.4k|            result.push_back(buffer[i]);
  220|  24.4k|        }
  221|  1.67k|    } 
  222|  59.6k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 902, False: 58.7k]
  ------------------
  223|    902|    {
  224|    902|        result.push_back(buffer[0]);
  225|    902|        result.push_back('e');
  226|    902|        fill_exponent(kk - 1, result);
  227|    902|    } 
  228|  58.7k|    else
  229|  58.7k|    {
  230|  58.7k|        result.push_back(buffer[0]);
  231|  58.7k|        result.push_back('.');
  232|   892k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 833k, False: 58.7k]
  ------------------
  233|   833k|        {
  234|   833k|            result.push_back(buffer[i]);
  235|   833k|        }
  236|  58.7k|        result.push_back('e');
  237|  58.7k|        fill_exponent(kk - 1, result);
  238|  58.7k|    }
  239|  82.8k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  59.6k|{
  137|  59.6k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 18.9k, False: 40.7k]
  ------------------
  138|  18.9k|    {
  139|  18.9k|        result.push_back('-');
  140|  18.9k|        K = -K;
  141|  18.9k|    }
  142|  40.7k|    else
  143|  40.7k|    {
  144|  40.7k|        result.push_back('+'); // compatibility with sprintf
  145|  40.7k|    }
  146|       |
  147|  59.6k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 575, False: 59.0k]
  ------------------
  148|    575|    {
  149|    575|        result.push_back('0'); // compatibility with sprintf
  150|    575|        result.push_back((char)('0' + K));
  151|    575|    }
  152|  59.0k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 38.3k, False: 20.7k]
  ------------------
  153|  38.3k|    {
  154|  38.3k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  38.3k|        result.push_back((char)('0' + K));
  156|  38.3k|    }
  157|  20.7k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 20.7k, False: 0]
  ------------------
  158|  20.7k|    {
  159|  20.7k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  20.7k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  20.7k|        result.push_back((char)('0' + K));
  162|  20.7k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  59.6k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  89.1k|{
  476|  89.1k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  89.1k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  89.1k|{
  367|  89.1k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 535, False: 88.6k]
  ------------------
  368|    535|    {
  369|    535|        result.push_back('0');
  370|    535|        result.push_back('.');
  371|    535|        result.push_back('0');
  372|    535|        return true;
  373|    535|    }
  374|       |
  375|  88.6k|    int length = 0;
  376|  88.6k|    int k;
  377|       |
  378|  88.6k|    char buffer[100];
  379|       |
  380|  88.6k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 72.1k, False: 16.5k]
  ------------------
  381|  88.6k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 82.8k, False: 5.78k]
  ------------------
  382|  82.8k|    {
  383|  82.8k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 69.4k, False: 13.4k]
  ------------------
  384|  69.4k|        {
  385|  69.4k|            result.push_back('-');
  386|  69.4k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  82.8k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  82.8k|        return true;
  391|  82.8k|    }
  392|  5.78k|    else
  393|  5.78k|    {
  394|  5.78k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  5.78k|    }
  396|  88.6k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  5.78k|{
  330|  5.78k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 5.78k]
  ------------------
  331|      0|    {
  332|      0|        result.push_back('0');
  333|      0|        result.push_back('.');
  334|      0|        result.push_back('0');
  335|      0|        return true;
  336|      0|    }
  337|       |
  338|  5.78k|    char buffer[100];
  339|  5.78k|    int precision = std::numeric_limits<double>::digits10;
  340|  5.78k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  5.78k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 5.78k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  5.78k|    double x{0};
  346|  5.78k|    auto res = decstr_to_double(buffer, length, x);
  347|  5.78k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 5.78k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  5.78k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 3.55k, False: 2.22k]
  ------------------
  352|  3.55k|    {
  353|  3.55k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  3.55k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  3.55k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 3.55k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  3.55k|    }
  360|  5.78k|    dump_buffer(buffer, length, decimal_point, result);
  361|  5.78k|    return true;
  362|  5.78k|}

_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEEC2EOS8_RKS9_:
   97|  6.48k|           : basic_msgpack_encoder(std::forward<Sink>(sink), msgpack_encode_options(), alloc)
   98|  6.48k|        {
   99|  6.48k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEEC2EOS8_RKNS0_22msgpack_encode_optionsERKS9_:
  104|  6.48k|           : sink_(std::forward<Sink>(sink)),
  105|  6.48k|             max_nesting_depth_(options.max_nesting_depth()),
  106|  6.48k|             alloc_(alloc)
  107|  6.48k|        {
  108|  6.48k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  204|   138k|        {
  205|   138k|            if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|   138k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 138k]
  |  |  ------------------
  ------------------
  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|   138k|            stack_.emplace_back(msgpack_container_type::array, length);
  211|   138k|            if (length <= 15)
  ------------------
  |  Branch (211:17): [True: 132k, False: 5.72k]
  ------------------
  212|   132k|            {
  213|       |                // fixarray
  214|   132k|                sink_.push_back(jsoncons::msgpack::msgpack_type::fixarray_base_type | (length & 0xf));
  215|   132k|            }
  216|  5.72k|            else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (216:22): [True: 2.08k, False: 3.64k]
  ------------------
  217|  2.08k|            {
  218|       |                // array 16
  219|  2.08k|                sink_.push_back(jsoncons::msgpack::msgpack_type::array16_type);
  220|  2.08k|                binary::native_to_big(static_cast<uint16_t>(length),std::back_inserter(sink_));
  221|  2.08k|            }
  222|  3.64k|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (222:22): [True: 3.64k, False: 0]
  ------------------
  223|  3.64k|            {
  224|       |                // array 32
  225|  3.64k|                sink_.push_back(jsoncons::msgpack::msgpack_type::array32_type);
  226|  3.64k|                binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  227|  3.64k|            }
  228|   138k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   138k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  229|   138k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_itemC2ENS0_22msgpack_container_typeEm:
   64|   159k|               : type_(type), length_(length)
   65|   159k|            {
   66|   159k|            }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE15visit_end_arrayERKNS_11ser_contextERNS3_10error_codeE:
  232|   120k|        {
  233|   120k|            JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   49|   120k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 120k]
  |  |  ------------------
  |  |   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|   120k|            --nesting_depth_;
  236|       |
  237|   120k|            if (stack_.back().count() < stack_.back().length())
  ------------------
  |  Branch (237:17): [True: 494, False: 119k]
  ------------------
  238|    494|            {
  239|    494|                ec = msgpack_errc::too_few_items;
  240|    494|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    494|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  241|    494|            }
  242|   119k|            else if (stack_.back().count() > stack_.back().length())
  ------------------
  |  Branch (242:22): [True: 0, False: 119k]
  ------------------
  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|   119k|            stack_.pop_back();
  249|   119k|            end_value();
  250|   119k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   119k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  251|   120k|        }
_ZNK8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item5countEv:
   74|   265k|            {
   75|   265k|                return is_object() ? index_/2 : index_;
  ------------------
  |  Branch (75:24): [True: 25.7k, False: 239k]
  ------------------
   76|   265k|            }
_ZNK8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item9is_objectEv:
   79|   265k|            {
   80|   265k|                return type_ == msgpack_container_type::object;
   81|   265k|            }
_ZNK8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item6lengthEv:
   69|   265k|            {
   70|   265k|                return length_;
   71|   265k|            }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9end_valueEv:
  755|  3.06M|        {
  756|  3.06M|            if (!stack_.empty())
  ------------------
  |  Branch (756:17): [True: 3.06M, False: 836]
  ------------------
  757|  3.06M|            {
  758|  3.06M|                ++stack_.back().index_;
  759|  3.06M|            }
  760|  3.06M|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  663|  1.02M|        {
  664|  1.02M|            switch (tag)
  665|  1.02M|            {
  666|  1.46k|                case semantic_tag::epoch_second:
  ------------------
  |  Branch (666:17): [True: 1.46k, False: 1.02M]
  ------------------
  667|  1.46k|                    write_timestamp(static_cast<int64_t>(val), 0);
  668|  1.46k|                    break;
  669|      0|                case semantic_tag::epoch_milli:
  ------------------
  |  Branch (669:17): [True: 0, False: 1.02M]
  ------------------
  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.02M]
  ------------------
  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.02M|                default:
  ------------------
  |  Branch (707:17): [True: 1.02M, False: 1.46k]
  ------------------
  708|  1.02M|                {
  709|  1.02M|                    if (val <= static_cast<uint64_t>((std::numeric_limits<int8_t>::max)()))
  ------------------
  |  Branch (709:25): [True: 997k, False: 25.9k]
  ------------------
  710|   997k|                    {
  711|       |                        // positive fixnum stores 7-bit positive integer
  712|   997k|                        sink_.push_back(static_cast<uint8_t>(val));
  713|   997k|                    }
  714|  25.9k|                    else if (val <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (714:30): [True: 13.9k, False: 11.9k]
  ------------------
  715|  13.9k|                    {
  716|       |                        // uint 8 stores a 8-bit unsigned integer
  717|  13.9k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint8_type);
  718|  13.9k|                        sink_.push_back(static_cast<uint8_t>(val));
  719|  13.9k|                    }
  720|  11.9k|                    else if (val <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (720:30): [True: 857, False: 11.1k]
  ------------------
  721|    857|                    {
  722|       |                        // uint 16 stores a 16-bit big-endian unsigned integer
  723|    857|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint16_type);
  724|    857|                        binary::native_to_big(static_cast<uint16_t>(val),std::back_inserter(sink_));
  725|    857|                    }
  726|  11.1k|                    else if (val <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (726:30): [True: 8.27k, False: 2.83k]
  ------------------
  727|  8.27k|                    {
  728|       |                        // uint 32 stores a 32-bit big-endian unsigned integer
  729|  8.27k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint32_type);
  730|  8.27k|                        binary::native_to_big(static_cast<uint32_t>(val),std::back_inserter(sink_));
  731|  8.27k|                    }
  732|  2.83k|                    else if (val <= (std::numeric_limits<uint64_t>::max)())
  ------------------
  |  Branch (732:30): [True: 2.83k, False: 0]
  ------------------
  733|  2.83k|                    {
  734|       |                        // uint 64 stores a 64-bit big-endian unsigned integer
  735|  2.83k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::uint64_type);
  736|  2.83k|                        binary::native_to_big(static_cast<uint64_t>(val),std::back_inserter(sink_));
  737|  2.83k|                    }
  738|  1.02M|                    break;
  739|      0|                }
  740|  1.02M|            }
  741|  1.02M|            end_value();
  742|  1.02M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.02M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  743|  1.02M|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE15write_timestampEll:
  268|  24.3k|        {
  269|  24.3k|            if ((seconds >> 34) == 0) 
  ------------------
  |  Branch (269:17): [True: 17.0k, False: 7.26k]
  ------------------
  270|  17.0k|            {
  271|  17.0k|                uint64_t data64 = (nanoseconds << 34) | seconds;
  272|  17.0k|                if ((data64 & 0xffffffff00000000L) == 0) 
  ------------------
  |  Branch (272:21): [True: 3.58k, False: 13.4k]
  ------------------
  273|  3.58k|                {
  274|       |                    // timestamp 32
  275|  3.58k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext4_type);
  276|  3.58k|                    sink_.push_back(0xff);
  277|  3.58k|                    binary::native_to_big(static_cast<uint32_t>(data64), std::back_inserter(sink_));
  278|  3.58k|                }
  279|  13.4k|                else 
  280|  13.4k|                {
  281|       |                    // timestamp 64
  282|  13.4k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext8_type);
  283|  13.4k|                    sink_.push_back(0xff);
  284|  13.4k|                    binary::native_to_big(static_cast<uint64_t>(data64), std::back_inserter(sink_));
  285|  13.4k|                }
  286|  17.0k|            }
  287|  7.26k|            else 
  288|  7.26k|            {
  289|       |                // timestamp 96
  290|  7.26k|                sink_.push_back(jsoncons::msgpack::msgpack_type::ext8_type);
  291|  7.26k|                sink_.push_back(0x0c); // 12
  292|  7.26k|                sink_.push_back(0xff);
  293|  7.26k|                binary::native_to_big(static_cast<uint32_t>(nanoseconds), std::back_inserter(sink_));
  294|  7.26k|                binary::native_to_big(static_cast<uint64_t>(seconds), std::back_inserter(sink_));
  295|  7.26k|            }
  296|  24.3k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  542|   217k|        {
  543|   217k|            switch (tag)
  544|   217k|            {
  545|      0|                case semantic_tag::epoch_second:
  ------------------
  |  Branch (545:17): [True: 0, False: 217k]
  ------------------
  546|      0|                    write_timestamp(val, 0);
  547|      0|                    break;
  548|      0|                case semantic_tag::epoch_milli:
  ------------------
  |  Branch (548:17): [True: 0, False: 217k]
  ------------------
  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: 217k]
  ------------------
  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|   217k|                default:
  ------------------
  |  Branch (586:17): [True: 217k, False: 0]
  ------------------
  587|   217k|                {
  588|   217k|                    if (val >= 0)
  ------------------
  |  Branch (588:25): [True: 18.3k, False: 199k]
  ------------------
  589|  18.3k|                    {
  590|  18.3k|                        if (val <= 0x7f)
  ------------------
  |  Branch (590:29): [True: 1.12k, False: 17.2k]
  ------------------
  591|  1.12k|                        {
  592|       |                            // positive fixnum stores 7-bit positive integer
  593|  1.12k|                            sink_.push_back(static_cast<uint8_t>(val));
  594|  1.12k|                        }
  595|  17.2k|                        else if (val <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (595:34): [True: 646, False: 16.5k]
  ------------------
  596|    646|                        {
  597|       |                            // uint 8 stores a 8-bit unsigned integer
  598|    646|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint8_type);
  599|    646|                            sink_.push_back(static_cast<uint8_t>(val));
  600|    646|                        }
  601|  16.5k|                        else if (val <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (601:34): [True: 483, False: 16.0k]
  ------------------
  602|    483|                        {
  603|       |                            // uint 16 stores a 16-bit big-endian unsigned integer
  604|    483|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint16_type);
  605|    483|                            binary::native_to_big(static_cast<uint16_t>(val),std::back_inserter(sink_));
  606|    483|                        }
  607|  16.0k|                        else if (val <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (607:34): [True: 349, False: 15.7k]
  ------------------
  608|    349|                        {
  609|       |                            // uint 32 stores a 32-bit big-endian unsigned integer
  610|    349|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint32_type);
  611|    349|                            binary::native_to_big(static_cast<uint32_t>(val),std::back_inserter(sink_));
  612|    349|                        }
  613|  15.7k|                        else if (val <= (std::numeric_limits<int64_t>::max)())
  ------------------
  |  Branch (613:34): [True: 15.7k, False: 0]
  ------------------
  614|  15.7k|                        {
  615|       |                            // int 64 stores a 64-bit big-endian signed integer
  616|  15.7k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::uint64_type);
  617|  15.7k|                            binary::native_to_big(static_cast<uint64_t>(val),std::back_inserter(sink_));
  618|  15.7k|                        }
  619|  18.3k|                    }
  620|   199k|                    else
  621|   199k|                    {
  622|   199k|                        if (val >= -32)
  ------------------
  |  Branch (622:29): [True: 133k, False: 65.6k]
  ------------------
  623|   133k|                        {
  624|       |                            // negative fixnum stores 5-bit negative integer
  625|   133k|                            binary::native_to_big(static_cast<int8_t>(val), std::back_inserter(sink_));
  626|   133k|                        }
  627|  65.6k|                        else if (val >= (std::numeric_limits<int8_t>::lowest)())
  ------------------
  |  Branch (627:34): [True: 43.2k, False: 22.3k]
  ------------------
  628|  43.2k|                        {
  629|       |                            // int 8 stores a 8-bit signed integer
  630|  43.2k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::int8_type);
  631|  43.2k|                            binary::native_to_big(static_cast<int8_t>(val),std::back_inserter(sink_));
  632|  43.2k|                        }
  633|  22.3k|                        else if (val >= (std::numeric_limits<int16_t>::lowest)())
  ------------------
  |  Branch (633:34): [True: 12.3k, False: 10.0k]
  ------------------
  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|  10.0k|                        else if (val >= (std::numeric_limits<int32_t>::lowest)())
  ------------------
  |  Branch (639:34): [True: 6.58k, False: 3.47k]
  ------------------
  640|  6.58k|                        {
  641|       |                            // int 32 stores a 32-bit big-endian signed integer
  642|  6.58k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::int32_type);
  643|  6.58k|                            binary::native_to_big(static_cast<int32_t>(val),std::back_inserter(sink_));
  644|  6.58k|                        }
  645|  3.47k|                        else if (val >= (std::numeric_limits<int64_t>::lowest)())
  ------------------
  |  Branch (645:34): [True: 3.47k, False: 0]
  ------------------
  646|  3.47k|                        {
  647|       |                            // int 64 stores a 64-bit big-endian signed integer
  648|  3.47k|                            sink_.push_back(jsoncons::msgpack::msgpack_type::int64_type);
  649|  3.47k|                            binary::native_to_big(static_cast<int64_t>(val),std::back_inserter(sink_));
  650|  3.47k|                        }
  651|   199k|                    }
  652|   217k|                }
  653|   217k|                break;
  654|   217k|            }
  655|   217k|            end_value();
  656|   217k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   217k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  657|   217k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  517|  75.7k|        {
  518|  75.7k|            float valf = (float)val;
  519|  75.7k|            if ((double)valf == val)
  ------------------
  |  Branch (519:17): [True: 49.0k, False: 26.6k]
  ------------------
  520|  49.0k|            {
  521|       |                // float 32
  522|  49.0k|                sink_.push_back(jsoncons::msgpack::msgpack_type::float32_type);
  523|  49.0k|                binary::native_to_big(valf,std::back_inserter(sink_));
  524|  49.0k|            }
  525|  26.6k|            else
  526|  26.6k|            {
  527|       |                // float 64
  528|  26.6k|                sink_.push_back(jsoncons::msgpack::msgpack_type::float64_type);
  529|  26.6k|                binary::native_to_big(val,std::back_inserter(sink_));
  530|  26.6k|            }
  531|       |
  532|       |            // write double
  533|       |
  534|  75.7k|            end_value();
  535|  75.7k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  75.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  536|  75.7k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE11visit_flushEv:
  134|  1.58k|        {
  135|  1.58k|            sink_.flush();
  136|  1.58k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  145|  21.8k|        {
  146|  21.8k|            if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|  21.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 21.8k]
  |  |  ------------------
  ------------------
  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|  21.8k|            stack_.emplace_back(msgpack_container_type::object, length);
  152|       |
  153|  21.8k|            if (length <= 15)
  ------------------
  |  Branch (153:17): [True: 19.6k, False: 2.23k]
  ------------------
  154|  19.6k|            {
  155|       |                // fixmap
  156|  19.6k|                sink_.push_back(jsoncons::msgpack::msgpack_type::fixmap_base_type | (length & 0xf));
  157|  19.6k|            }
  158|  2.23k|            else if (length <= 65535)
  ------------------
  |  Branch (158:22): [True: 796, False: 1.43k]
  ------------------
  159|    796|            {
  160|       |                // map 16
  161|    796|                sink_.push_back(jsoncons::msgpack::msgpack_type::map16_type);
  162|    796|                binary::native_to_big(static_cast<uint16_t>(length), 
  163|    796|                                      std::back_inserter(sink_));
  164|    796|            }
  165|  1.43k|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (165:22): [True: 1.43k, False: 0]
  ------------------
  166|  1.43k|            {
  167|       |                // map 32
  168|  1.43k|                sink_.push_back(jsoncons::msgpack::msgpack_type::map32_type);
  169|  1.43k|                binary::native_to_big(static_cast<uint32_t>(length),
  170|  1.43k|                                      std::back_inserter(sink_));
  171|  1.43k|            }
  172|       |
  173|  21.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  21.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  174|  21.8k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE16visit_end_objectERKNS_11ser_contextERNS3_10error_codeE:
  177|  13.0k|        {
  178|  13.0k|            JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   49|  13.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 13.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|  13.0k|            --nesting_depth_;
  180|       |
  181|  13.0k|            if (stack_.back().count() < stack_.back().length())
  ------------------
  |  Branch (181:17): [True: 419, False: 12.6k]
  ------------------
  182|    419|            {
  183|    419|                ec = msgpack_errc::too_few_items;
  184|    419|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    419|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  185|    419|            }
  186|  12.6k|            else if (stack_.back().count() > stack_.back().length())
  ------------------
  |  Branch (186:22): [True: 0, False: 12.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|  12.6k|            stack_.pop_back();
  193|  12.6k|            end_value();
  194|  12.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  12.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  195|  13.0k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9visit_keyERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  254|   714k|        {
  255|   714k|            visit_string(name, semantic_tag::none, context, ec);
  256|   714k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   714k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  257|   714k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  260|  11.7k|        {
  261|       |            // nil
  262|  11.7k|            sink_.push_back(jsoncons::msgpack::msgpack_type::nil_type);
  263|  11.7k|            end_value();
  264|  11.7k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  11.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  265|  11.7k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  746|   249k|        {
  747|       |            // true and false
  748|   249k|            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.83k, False: 242k]
  ------------------
  749|       |
  750|   249k|            end_value();
  751|   249k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   249k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  752|   249k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  299|   742k|        {
  300|   742k|            switch (tag)
  301|   742k|            {
  302|      0|                case semantic_tag::epoch_second:
  ------------------
  |  Branch (302:17): [True: 0, False: 742k]
  ------------------
  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: 742k]
  ------------------
  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.8k|                case semantic_tag::epoch_nano:
  ------------------
  |  Branch (342:17): [True: 22.8k, False: 719k]
  ------------------
  343|  22.8k|                {
  344|  22.8k|                    bigint n;
  345|  22.8k|                    auto result = to_bigint(sv.data(), sv.length(), n);
  346|  22.8k|                    if (!result)
  ------------------
  |  Branch (346:25): [True: 0, False: 22.8k]
  ------------------
  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.8k|                    if (n != 0)
  ------------------
  |  Branch (351:25): [True: 21.0k, False: 1.80k]
  ------------------
  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.36k, False: 17.6k]
  ------------------
  359|  3.36k|                        {
  360|  3.36k|                            nanoseconds = -nanoseconds; 
  361|  3.36k|                        }
  362|  21.0k|                        write_timestamp(seconds, nanoseconds);
  363|  21.0k|                    }
  364|  1.80k|                    else
  365|  1.80k|                    {
  366|  1.80k|                        write_timestamp(0, 0);
  367|  1.80k|                    }
  368|  22.8k|                    break;
  369|  22.8k|                }
  370|   719k|                default:
  ------------------
  |  Branch (370:17): [True: 719k, False: 22.8k]
  ------------------
  371|   719k|                {
  372|   719k|                    write_string_value(sv);
  373|   719k|                    end_value();
  374|   719k|                    break;
  375|  22.8k|                }
  376|   742k|            }
  377|   742k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   742k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  378|   742k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE18write_string_valueERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEE:
  381|   719k|        {
  382|   719k|            auto sink = unicode_traits::validate(sv.data(), sv.size());
  383|   719k|            if (sink.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (383:17): [True: 0, False: 719k]
  ------------------
  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|   719k|            const size_t length = sv.length();
  389|   719k|            if (length <= 31)
  ------------------
  |  Branch (389:17): [True: 716k, False: 2.61k]
  ------------------
  390|   716k|            {
  391|       |                // fixstr stores a byte array whose length is upto 31 bytes
  392|   716k|                sink_.push_back(jsoncons::msgpack::msgpack_type::fixstr_base_type | static_cast<uint8_t>(length));
  393|   716k|            }
  394|  2.61k|            else if (length <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (394:22): [True: 1.50k, False: 1.10k]
  ------------------
  395|  1.50k|            {
  396|       |                // str 8 stores a byte array whose length is upto (2^8)-1 bytes
  397|  1.50k|                sink_.push_back(jsoncons::msgpack::msgpack_type::str8_type);
  398|  1.50k|                sink_.push_back(static_cast<uint8_t>(length));
  399|  1.50k|            }
  400|  1.10k|            else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (400:22): [True: 729, False: 379]
  ------------------
  401|    729|            {
  402|       |                // str 16 stores a byte array whose length is upto (2^16)-1 bytes
  403|    729|                sink_.push_back(jsoncons::msgpack::msgpack_type::str16_type);
  404|    729|                binary::native_to_big(static_cast<uint16_t>(length), std::back_inserter(sink_));
  405|    729|            }
  406|    379|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (406:22): [True: 379, False: 0]
  ------------------
  407|    379|            {
  408|       |                // str 32 stores a byte array whose length is upto (2^32)-1 bytes
  409|    379|                sink_.push_back(jsoncons::msgpack::msgpack_type::str32_type);
  410|    379|                binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  411|    379|            }
  412|       |
  413|   719k|            for (auto c : sv)
  ------------------
  |  Branch (413:25): [True: 94.1M, False: 719k]
  ------------------
  414|  94.1M|            {
  415|  94.1M|                sink_.push_back(c);
  416|  94.1M|            }
  417|   719k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  423|  3.32k|        {
  424|       |
  425|  3.32k|            const std::size_t length = b.size();
  426|  3.32k|            if (length <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (426:17): [True: 2.51k, False: 801]
  ------------------
  427|  2.51k|            {
  428|       |                // bin 8 stores a byte array whose length is upto (2^8)-1 bytes
  429|  2.51k|                sink_.push_back(jsoncons::msgpack::msgpack_type::bin8_type);
  430|  2.51k|                sink_.push_back(static_cast<uint8_t>(length));
  431|  2.51k|            }
  432|    801|            else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (432:22): [True: 735, False: 66]
  ------------------
  433|    735|            {
  434|       |                // bin 16 stores a byte array whose length is upto (2^16)-1 bytes
  435|    735|                sink_.push_back(jsoncons::msgpack::msgpack_type::bin16_type);
  436|    735|                binary::native_to_big(static_cast<uint16_t>(length), std::back_inserter(sink_));
  437|    735|            }
  438|     66|            else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (438:22): [True: 66, False: 0]
  ------------------
  439|     66|            {
  440|       |                // bin 32 stores a byte array whose length is upto (2^32)-1 bytes
  441|     66|                sink_.push_back(jsoncons::msgpack::msgpack_type::bin32_type);
  442|     66|                binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  443|     66|            }
  444|       |
  445|  3.32k|            for (auto c : b)
  ------------------
  |  Branch (445:25): [True: 6.60M, False: 3.32k]
  ------------------
  446|  6.60M|            {
  447|  6.60M|                sink_.push_back(c);
  448|  6.60M|            }
  449|       |
  450|  3.32k|            end_value();
  451|  3.32k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.32k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  452|  3.32k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS3_10error_codeE:
  458|   631k|        {
  459|   631k|            const std::size_t length = b.size();
  460|   631k|            switch (length)
  461|   631k|            {
  462|  1.30k|                case 1:
  ------------------
  |  Branch (462:17): [True: 1.30k, False: 630k]
  ------------------
  463|  1.30k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext1_type);
  464|  1.30k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  465|  1.30k|                    break;
  466|   616k|                case 2:
  ------------------
  |  Branch (466:17): [True: 616k, False: 15.6k]
  ------------------
  467|   616k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext2_type);
  468|   616k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  469|   616k|                    break;
  470|    630|                case 4:
  ------------------
  |  Branch (470:17): [True: 630, False: 631k]
  ------------------
  471|    630|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext4_type);
  472|    630|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  473|    630|                    break;
  474|  3.97k|                case 8:
  ------------------
  |  Branch (474:17): [True: 3.97k, False: 627k]
  ------------------
  475|  3.97k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext8_type);
  476|  3.97k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  477|  3.97k|                    break;
  478|  6.87k|                case 16:
  ------------------
  |  Branch (478:17): [True: 6.87k, False: 624k]
  ------------------
  479|  6.87k|                    sink_.push_back(jsoncons::msgpack::msgpack_type::fixext16_type);
  480|  6.87k|                    sink_.push_back(static_cast<uint8_t>(raw_tag));
  481|  6.87k|                    break;
  482|  2.88k|                default:
  ------------------
  |  Branch (482:17): [True: 2.88k, False: 628k]
  ------------------
  483|  2.88k|                    if (length <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (483:25): [True: 1.93k, False: 951]
  ------------------
  484|  1.93k|                    {
  485|  1.93k|                        sink_.push_back(jsoncons::msgpack::msgpack_type::ext8_type);
  486|  1.93k|                        sink_.push_back(static_cast<uint8_t>(length));
  487|  1.93k|                        sink_.push_back(static_cast<uint8_t>(raw_tag));
  488|  1.93k|                    }
  489|    951|                    else if (length <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (489:30): [True: 858, False: 93]
  ------------------
  490|    858|                    {
  491|    858|                        sink_.push_back(jsoncons::msgpack::msgpack_type::ext16_type);
  492|    858|                        binary::native_to_big(static_cast<uint16_t>(length), std::back_inserter(sink_));
  493|    858|                        sink_.push_back(static_cast<uint8_t>(raw_tag));
  494|    858|                    }
  495|     93|                    else if (length <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (495:30): [True: 93, False: 0]
  ------------------
  496|     93|                    {
  497|     93|                        sink_.push_back(jsoncons::msgpack::msgpack_type::ext32_type);
  498|     93|                        binary::native_to_big(static_cast<uint32_t>(length),std::back_inserter(sink_));
  499|     93|                        sink_.push_back(static_cast<uint8_t>(raw_tag));
  500|     93|                    }
  501|  2.88k|                    break;
  502|   631k|            }
  503|       |
  504|   631k|            for (auto c : b)
  ------------------
  |  Branch (504:25): [True: 11.0M, False: 631k]
  ------------------
  505|  11.0M|            {
  506|  11.0M|                sink_.push_back(c);
  507|  11.0M|            }
  508|       |
  509|   631k|            end_value();
  510|   631k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   631k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  511|   631k|        }
_ZN8jsoncons7msgpack21basic_msgpack_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEED2Ev:
  111|  6.48k|        {
  112|  6.48k|            sink_.flush();
  113|  6.48k|        }

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

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

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

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

