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

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

_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4sizeEv:
  116|  15.3M|        {
  117|  15.3M|            return size_;
  118|  15.3M|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2Ev:
   58|  5.12M|        {
   59|  5.12M|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|  23.5k|            : data_(data), size_(size)
   62|  23.5k|        {
   63|  23.5k|        }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4dataEv:
  111|  10.2M|        {
  112|  10.2M|            return data_;
  113|  10.2M|        }

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|   190k|        {
 1009|   190k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 33.8k, False: 156k]
  ------------------
 1010|  33.8k|            {
 1011|  33.8k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 31.7k, False: 2.12k]
  |  Branch (1011:86): [True: 29.5k, False: 2.20k]
  ------------------
 1012|  29.5k|                {
 1013|  29.5k|                    key_buffer_.push_back(',');
 1014|  29.5k|                }
 1015|  33.8k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|  33.8k|                key_buffer_.push_back('[');
 1017|  33.8k|            }
 1018|   156k|            else
 1019|   156k|            {
 1020|   156k|                switch (level_stack_.back().target_kind())
 1021|   156k|                {
 1022|   144k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 144k, False: 11.9k]
  ------------------
 1023|   144k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 113k, False: 30.7k]
  |  Branch (1023:65): [True: 43.2k, False: 70.4k]
  ------------------
 1024|  43.2k|                        {
 1025|  43.2k|                            key_buffer_.push_back(',');
 1026|  43.2k|                        }
 1027|   144k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|   144k|                        key_buffer_.push_back('[');
 1029|   144k|                        break;
 1030|  11.9k|                    default:
  ------------------
  |  Branch (1030:21): [True: 11.9k, False: 144k]
  ------------------
 1031|  11.9k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|  11.9k|                        destination_->begin_array(length, tag, context, ec);
 1033|  11.9k|                        break;
 1034|   156k|                }
 1035|   156k|            }
 1036|   190k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   190k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|   190k|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|  66.5M|            {
  816|  66.5M|                return even_odd_ == 0;
  817|  66.5M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|  37.4M|            {
  826|  37.4M|                return target_kind_;
  827|  37.4M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  16.4M|            {
  831|  16.4M|                return count_;
  832|  16.4M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|   370k|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 175k, False: 194k]
  ------------------
  799|   370k|            {
  800|   370k|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|  40.3M|            {
  821|  40.3M|                return structure_kind_ == json_structure_kind::object;
  822|  40.3M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|   170k|        {
 1041|   170k|            switch (level_stack_.back().target_kind())
 1042|   170k|            {
 1043|   167k|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 167k, False: 2.87k]
  ------------------
 1044|   167k|                    key_buffer_.push_back(']');
 1045|   167k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   167k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 167k]
  |  |  ------------------
  |  |   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|   167k|                    level_stack_.pop_back();
 1047|   167k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 1.59k, False: 165k]
  ------------------
 1048|  1.59k|                    {
 1049|  1.59k|                        destination_->key(key_buffer_, context, ec);
 1050|  1.59k|                        key_buffer_.clear();
 1051|  1.59k|                    }
 1052|   165k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 30.1k, False: 135k]
  ------------------
 1053|  30.1k|                    {
 1054|  30.1k|                        key_buffer_.push_back(':');
 1055|  30.1k|                    }
 1056|   167k|                    level_stack_.back().advance();
 1057|   167k|                    break;
 1058|  2.87k|                default:
  ------------------
  |  Branch (1058:17): [True: 2.87k, False: 167k]
  ------------------
 1059|  2.87k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|  2.87k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.87k]
  |  |  ------------------
  |  |   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|  2.87k|                    level_stack_.pop_back();
 1061|  2.87k|                    level_stack_.back().advance();
 1062|  2.87k|                    destination_->end_array(context, ec);
 1063|  2.87k|                    break;
 1064|   170k|            }
 1065|   170k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   170k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|   170k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|  23.8M|            {
  804|  23.8M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 17.1M, False: 6.75M]
  ------------------
  805|  17.1M|                {
  806|  17.1M|                    ++count_;
  807|  17.1M|                }
  808|  23.8M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 13.5M, False: 10.3M]
  ------------------
  809|  13.5M|                {
  810|  13.5M|                    even_odd_ = !even_odd_;
  811|  13.5M|                }
  812|  23.8M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  7.27M|        {
 1234|  7.27M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 1.70M, False: 5.56M]
  |  Branch (1234:49): [True: 4.94M, False: 615k]
  ------------------
 1235|  6.65M|            {
 1236|  6.65M|                key_.clear();
 1237|  6.65M|                jsoncons::from_integer(value,key_);
 1238|  6.65M|            }
 1239|       |
 1240|  7.27M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 1.70M, False: 5.56M]
  ------------------
 1241|  1.70M|            {
 1242|  1.70M|                switch (level_stack_.back().target_kind())
 1243|  1.70M|                {
 1244|  1.63M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 1.63M, False: 71.1k]
  ------------------
 1245|  1.63M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 1.61M, False: 20.1k]
  ------------------
 1246|  1.61M|                        {
 1247|  1.61M|                            key_buffer_.push_back(',');
 1248|  1.61M|                        }
 1249|  1.63M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  1.63M|                        key_buffer_.push_back(':');
 1251|  1.63M|                        break;
 1252|  71.1k|                    default:
  ------------------
  |  Branch (1252:21): [True: 71.1k, False: 1.63M]
  ------------------
 1253|  71.1k|                        destination_->key(key_, context, ec);
 1254|  71.1k|                        break;
 1255|  1.70M|                }
 1256|  1.70M|            }
 1257|  5.56M|            else
 1258|  5.56M|            {
 1259|  5.56M|                switch (level_stack_.back().target_kind())
 1260|  5.56M|                {
 1261|  4.94M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 4.94M, False: 615k]
  ------------------
 1262|  4.94M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 3.30M, False: 1.64M]
  |  Branch (1262:65): [True: 3.30M, False: 3.69k]
  ------------------
 1263|  3.30M|                        {
 1264|  3.30M|                            key_buffer_.push_back(',');
 1265|  3.30M|                        }
 1266|  4.94M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  4.94M|                        break;
 1268|   615k|                    default:
  ------------------
  |  Branch (1268:21): [True: 615k, False: 4.94M]
  ------------------
 1269|   615k|                        destination_->uint64_value(value, tag, context, ec);
 1270|   615k|                        break;
 1271|  5.56M|                }
 1272|  5.56M|            }
 1273|       |
 1274|  7.27M|            level_stack_.back().advance();
 1275|  7.27M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  7.27M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  7.27M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  2.79M|        {
 1280|  2.79M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 817k, False: 1.97M]
  |  Branch (1280:49): [True: 1.96M, False: 14.2k]
  ------------------
 1281|  2.77M|            {
 1282|  2.77M|                key_.clear();
 1283|  2.77M|                jsoncons::from_integer(value,key_);
 1284|  2.77M|            }
 1285|       |
 1286|  2.79M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 817k, False: 1.97M]
  ------------------
 1287|   817k|            {
 1288|   817k|                switch (level_stack_.back().target_kind())
 1289|   817k|                {
 1290|   806k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 806k, False: 10.9k]
  ------------------
 1291|   806k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 802k, False: 4.05k]
  ------------------
 1292|   802k|                        {
 1293|   802k|                            key_buffer_.push_back(',');
 1294|   802k|                        }
 1295|   806k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|   806k|                        key_buffer_.push_back(':');
 1297|   806k|                        break;
 1298|  10.9k|                    default:
  ------------------
  |  Branch (1298:21): [True: 10.9k, False: 806k]
  ------------------
 1299|  10.9k|                        destination_->key(key_, context, ec);
 1300|  10.9k|                        break;
 1301|   817k|                }
 1302|   817k|            }
 1303|  1.97M|            else
 1304|  1.97M|            {
 1305|  1.97M|                switch (level_stack_.back().target_kind())
 1306|  1.97M|                {
 1307|  1.96M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 1.96M, False: 14.2k]
  ------------------
 1308|  1.96M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 1.14M, False: 820k]
  |  Branch (1308:65): [True: 1.13M, False: 3.68k]
  ------------------
 1309|  1.13M|                        {
 1310|  1.13M|                            key_buffer_.push_back(',');
 1311|  1.13M|                        }
 1312|  1.96M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  1.96M|                        break;
 1314|  14.2k|                    default:
  ------------------
  |  Branch (1314:21): [True: 14.2k, False: 1.96M]
  ------------------
 1315|  14.2k|                        destination_->int64_value(value, tag, context, ec);
 1316|  14.2k|                        break;
 1317|  1.97M|                }
 1318|  1.97M|            }
 1319|       |
 1320|  2.79M|            level_stack_.back().advance();
 1321|  2.79M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  2.79M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  2.79M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|  40.8k|        {
 1375|  40.8k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 15.4k, False: 25.3k]
  |  Branch (1375:49): [True: 24.9k, False: 472]
  ------------------
 1376|  40.3k|            {
 1377|  40.3k|                key_.clear();
 1378|  40.3k|                string_sink<string_type> sink(key_);
 1379|  40.3k|                jsoncons::write_double f{float_chars_format::general,0};
 1380|  40.3k|                f(value, sink);
 1381|  40.3k|            }
 1382|       |
 1383|  40.8k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 15.4k, False: 25.3k]
  ------------------
 1384|  15.4k|            {
 1385|  15.4k|                switch (level_stack_.back().target_kind())
 1386|  15.4k|                {
 1387|  13.8k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 13.8k, False: 1.55k]
  ------------------
 1388|  13.8k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 9.26k, False: 4.61k]
  ------------------
 1389|  9.26k|                        {
 1390|  9.26k|                            key_buffer_.push_back(',');
 1391|  9.26k|                        }
 1392|  13.8k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|  13.8k|                        key_buffer_.push_back(':');
 1394|  13.8k|                        break;
 1395|  1.55k|                    default:
  ------------------
  |  Branch (1395:21): [True: 1.55k, False: 13.8k]
  ------------------
 1396|  1.55k|                        destination_->key(key_, context, ec);
 1397|  1.55k|                        break;
 1398|  15.4k|                }
 1399|  15.4k|            }
 1400|  25.3k|            else
 1401|  25.3k|            {
 1402|  25.3k|                switch (level_stack_.back().target_kind())
 1403|  25.3k|                {
 1404|  24.9k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 24.9k, False: 472]
  ------------------
 1405|  24.9k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 14.6k, False: 10.2k]
  |  Branch (1405:65): [True: 11.4k, False: 3.20k]
  ------------------
 1406|  11.4k|                        {
 1407|  11.4k|                            key_buffer_.push_back(',');
 1408|  11.4k|                        }
 1409|  24.9k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|  24.9k|                        break;
 1411|    472|                    default:
  ------------------
  |  Branch (1411:21): [True: 472, False: 24.9k]
  ------------------
 1412|    472|                        destination_->double_value(value, tag, context, ec);
 1413|    472|                        break;
 1414|  25.3k|                }
 1415|  25.3k|            }
 1416|       |
 1417|  40.8k|            level_stack_.back().advance();
 1418|  40.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  40.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|  40.8k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|    982|        {
  882|    982|            destination_->flush();
  883|    982|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|   175k|        {
  915|   175k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 92.3k, False: 83.2k]
  ------------------
  916|  92.3k|            {
  917|  92.3k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 88.9k, False: 3.38k]
  |  Branch (917:86): [True: 20.9k, False: 68.0k]
  ------------------
  918|  20.9k|                {
  919|  20.9k|                    key_buffer_.push_back(',');
  920|  20.9k|                }
  921|  92.3k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|  92.3k|                key_buffer_.push_back('{');
  923|  92.3k|            }
  924|  83.2k|            else
  925|  83.2k|            {
  926|  83.2k|                switch (level_stack_.back().target_kind())
  927|  83.2k|                {
  928|  71.1k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 71.1k, False: 12.0k]
  ------------------
  929|  71.1k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 39.1k, False: 31.9k]
  |  Branch (929:65): [True: 37.2k, False: 1.94k]
  ------------------
  930|  37.2k|                        {
  931|  37.2k|                            key_buffer_.push_back(',');
  932|  37.2k|                        }
  933|  71.1k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|  71.1k|                        key_buffer_.push_back('{');
  935|  71.1k|                        break;
  936|  12.0k|                    default:
  ------------------
  |  Branch (936:21): [True: 12.0k, False: 71.1k]
  ------------------
  937|  12.0k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  12.0k|                        destination_->begin_object(length, tag, context, ec);
  939|  12.0k|                        break;
  940|  83.2k|                }
  941|  83.2k|            }
  942|   175k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   175k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|   175k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|   154k|        {
  947|   154k|            switch (level_stack_.back().target_kind())
  948|   154k|            {
  949|   147k|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 147k, False: 6.59k]
  ------------------
  950|   147k|                    key_buffer_.push_back('}');
  951|   147k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   147k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 147k]
  |  |  ------------------
  |  |   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|   147k|                    level_stack_.pop_back();
  953|       |                    
  954|   147k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 2.50k, False: 145k]
  ------------------
  955|  2.50k|                    {
  956|  2.50k|                        destination_->key(key_buffer_,context, ec);
  957|  2.50k|                        key_buffer_.clear();
  958|  2.50k|                    }
  959|   145k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 80.8k, False: 64.6k]
  ------------------
  960|  80.8k|                    {
  961|  80.8k|                        key_buffer_.push_back(':');
  962|  80.8k|                    }
  963|   147k|                    level_stack_.back().advance();
  964|   147k|                    break;
  965|  6.59k|                default:
  ------------------
  |  Branch (965:17): [True: 6.59k, False: 147k]
  ------------------
  966|  6.59k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|  6.59k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 6.59k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  967|  6.59k|                    level_stack_.pop_back();
  968|  6.59k|                    level_stack_.back().advance();
  969|  6.59k|                    destination_->end_object(context, ec);
  970|  6.59k|                    break;
  971|   154k|            }
  972|   154k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   154k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|   154k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|  81.8k|        {
 1476|  81.8k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 29.5k, False: 52.2k]
  |  Branch (1476:49): [True: 51.3k, False: 922]
  ------------------
 1477|  80.9k|            {
 1478|  80.9k|                key_.clear(); 
 1479|  80.9k|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|  80.9k|            }
 1481|       |
 1482|  81.8k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 29.5k, False: 52.2k]
  ------------------
 1483|  29.5k|            {
 1484|  29.5k|                switch (level_stack_.back().target_kind())
 1485|  29.5k|                {
 1486|  28.7k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 28.7k, False: 810]
  ------------------
 1487|  28.7k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 25.0k, False: 3.68k]
  ------------------
 1488|  25.0k|                        {
 1489|  25.0k|                            key_buffer_.push_back(',');
 1490|  25.0k|                        }
 1491|  28.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|  28.7k|                        key_buffer_.push_back(':');
 1493|  28.7k|                        break;
 1494|    810|                    default:
  ------------------
  |  Branch (1494:21): [True: 810, False: 28.7k]
  ------------------
 1495|    810|                        destination_->key(key_, context, ec);
 1496|    810|                        break;
 1497|  29.5k|                }
 1498|  29.5k|            }
 1499|  52.2k|            else
 1500|  52.2k|            {
 1501|  52.2k|                switch (level_stack_.back().target_kind())
 1502|  52.2k|                {
 1503|  51.3k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 51.3k, False: 922]
  ------------------
 1504|  51.3k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 24.8k, False: 26.5k]
  |  Branch (1504:65): [True: 24.2k, False: 514]
  ------------------
 1505|  24.2k|                        {
 1506|  24.2k|                            key_buffer_.push_back(',');
 1507|  24.2k|                        }
 1508|  51.3k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|  51.3k|                        break;
 1510|    922|                    default:
  ------------------
  |  Branch (1510:21): [True: 922, False: 51.3k]
  ------------------
 1511|    922|                        destination_->null_value(tag, context, ec);
 1512|    922|                        break;
 1513|  52.2k|                }
 1514|  52.2k|            }
 1515|       |
 1516|  81.8k|            level_stack_.back().advance();
 1517|  81.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  81.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|  81.8k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  8.19M|        {
 1423|  8.19M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 2.97M, False: 5.21M]
  |  Branch (1423:49): [True: 5.21M, False: 8.58k]
  ------------------
 1424|  8.18M|            {
 1425|  8.18M|                key_.clear(); 
 1426|  8.18M|                if (value)
  ------------------
  |  Branch (1426:21): [True: 5.02M, False: 3.15M]
  ------------------
 1427|  5.02M|                {
 1428|  5.02M|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|  5.02M|                }
 1430|  3.15M|                else
 1431|  3.15M|                {
 1432|  3.15M|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|  3.15M|                }
 1434|  8.18M|            }
 1435|       |
 1436|  8.19M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 2.97M, False: 5.21M]
  ------------------
 1437|  2.97M|            {
 1438|  2.97M|                switch (level_stack_.back().target_kind())
 1439|  2.97M|                {
 1440|  2.96M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 2.96M, False: 7.83k]
  ------------------
 1441|  2.96M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 2.95M, False: 8.74k]
  ------------------
 1442|  2.95M|                        {
 1443|  2.95M|                            key_buffer_.push_back(',');
 1444|  2.95M|                        }
 1445|  2.96M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|  2.96M|                        key_buffer_.push_back(':');
 1447|  2.96M|                        break;
 1448|  7.83k|                    default:
  ------------------
  |  Branch (1448:21): [True: 7.83k, False: 2.96M]
  ------------------
 1449|  7.83k|                        destination_->key(key_, context, ec);
 1450|  7.83k|                        break;
 1451|  2.97M|                }
 1452|  2.97M|            }
 1453|  5.21M|            else
 1454|  5.21M|            {
 1455|  5.21M|                switch (level_stack_.back().target_kind())
 1456|  5.21M|                {
 1457|  5.21M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 5.21M, False: 8.58k]
  ------------------
 1458|  5.21M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 2.21M, False: 2.99M]
  |  Branch (1458:65): [True: 2.20M, False: 4.12k]
  ------------------
 1459|  2.20M|                        {
 1460|  2.20M|                            key_buffer_.push_back(',');
 1461|  2.20M|                        }
 1462|  5.21M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|  5.21M|                        break;
 1464|  8.58k|                    default:
  ------------------
  |  Branch (1464:21): [True: 8.58k, False: 5.21M]
  ------------------
 1465|  8.58k|                        destination_->bool_value(value, tag, context, ec);
 1466|  8.58k|                        break;
 1467|  5.21M|                }
 1468|  5.21M|            }
 1469|       |
 1470|  8.19M|            level_stack_.back().advance();
 1471|  8.19M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  8.19M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  8.19M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|  5.13M|        {
 1073|  5.13M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 1.07M, False: 4.05M]
  ------------------
 1074|  1.07M|            {
 1075|  1.07M|                switch (level_stack_.back().target_kind())
 1076|  1.07M|                {
 1077|  1.07M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 1.07M, False: 2.78k]
  ------------------
 1078|  1.07M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 1.07M, False: 1.49k]
  ------------------
 1079|  1.07M|                        {
 1080|  1.07M|                            key_buffer_.push_back(',');
 1081|  1.07M|                        }
 1082|  1.07M|                        key_buffer_.push_back('\"');
 1083|  1.07M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|  1.07M|                        key_buffer_.push_back('\"');
 1085|  1.07M|                        key_buffer_.push_back(':');
 1086|  1.07M|                        break;
 1087|  2.78k|                    default:
  ------------------
  |  Branch (1087:21): [True: 2.78k, False: 1.07M]
  ------------------
 1088|  2.78k|                        destination_->key(value, context, ec);
 1089|  2.78k|                        break;
 1090|  1.07M|                }
 1091|  1.07M|            }
 1092|  4.05M|            else
 1093|  4.05M|            {
 1094|  4.05M|                switch (level_stack_.back().target_kind())
 1095|  4.05M|                {
 1096|  4.04M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 4.04M, False: 6.93k]
  ------------------
 1097|  4.04M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 2.96M, False: 1.07M]
  |  Branch (1097:65): [True: 2.96M, False: 964]
  ------------------
 1098|  2.96M|                        {
 1099|  2.96M|                            key_buffer_.push_back(',');
 1100|  2.96M|                        }
 1101|  4.04M|                        key_buffer_.push_back('\"');
 1102|  4.04M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|  4.04M|                        key_buffer_.push_back('\"');
 1104|  4.04M|                        break;
 1105|  6.93k|                    default:
  ------------------
  |  Branch (1105:21): [True: 6.93k, False: 4.04M]
  ------------------
 1106|  6.93k|                        destination_->string_value(value, tag, context, ec);
 1107|  6.93k|                        break;
 1108|  4.05M|                }
 1109|  4.05M|            }
 1110|       |
 1111|  5.13M|            level_stack_.back().advance();
 1112|  5.13M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  5.13M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|  5.13M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  14.4k|        {
 1120|  14.4k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 5.54k, False: 8.94k]
  |  Branch (1120:49): [True: 7.99k, False: 951]
  ------------------
 1121|  13.5k|            {
 1122|  13.5k|                key_.clear();
 1123|  13.5k|                switch (tag)
 1124|  13.5k|                {
 1125|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 0, False: 13.5k]
  ------------------
 1126|      0|                        bytes_to_base64(value.begin(), value.end(), key_);
 1127|      0|                        break;
 1128|      0|                    case semantic_tag::base16:
  ------------------
  |  Branch (1128:21): [True: 0, False: 13.5k]
  ------------------
 1129|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|      0|                        break;
 1131|  13.5k|                    default:
  ------------------
  |  Branch (1131:21): [True: 13.5k, False: 0]
  ------------------
 1132|  13.5k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  13.5k|                        break;
 1134|  13.5k|                }
 1135|  13.5k|            }
 1136|       |
 1137|  14.4k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 5.54k, False: 8.94k]
  ------------------
 1138|  5.54k|            {
 1139|  5.54k|                switch (level_stack_.back().target_kind())
 1140|  5.54k|                {
 1141|  4.73k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 4.73k, False: 807]
  ------------------
 1142|  4.73k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 3.45k, False: 1.27k]
  ------------------
 1143|  3.45k|                        {
 1144|  3.45k|                            key_buffer_.push_back(',');
 1145|  3.45k|                        }
 1146|  4.73k|                        key_buffer_.push_back('\"');
 1147|  4.73k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|  4.73k|                        key_buffer_.push_back('\"');
 1149|  4.73k|                        key_buffer_.push_back(':');
 1150|  4.73k|                        break;
 1151|    807|                    default:
  ------------------
  |  Branch (1151:21): [True: 807, False: 4.73k]
  ------------------
 1152|    807|                        destination_->key(key_, context, ec);
 1153|    807|                        break;
 1154|  5.54k|                }
 1155|  5.54k|            }
 1156|  8.94k|            else
 1157|  8.94k|            {
 1158|  8.94k|                switch (level_stack_.back().target_kind())
 1159|  8.94k|                {
 1160|  7.99k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 7.99k, False: 951]
  ------------------
 1161|  7.99k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 2.87k, False: 5.12k]
  |  Branch (1161:65): [True: 2.31k, False: 553]
  ------------------
 1162|  2.31k|                        {
 1163|  2.31k|                            key_buffer_.push_back(',');
 1164|  2.31k|                        }
 1165|  7.99k|                        key_buffer_.push_back('\"');
 1166|  7.99k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  7.99k|                        key_buffer_.push_back('\"');
 1168|  7.99k|                        break;
 1169|    951|                    default:
  ------------------
  |  Branch (1169:21): [True: 951, False: 7.99k]
  ------------------
 1170|    951|                        destination_->byte_string_value(value, tag, context, ec);
 1171|    951|                        break;
 1172|  8.94k|                }
 1173|  8.94k|            }
 1174|       |
 1175|  14.4k|            level_stack_.back().advance();
 1176|  14.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  14.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  14.4k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|  21.3k|        {
 1184|  21.3k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 11.5k, False: 9.78k]
  |  Branch (1184:49): [True: 7.28k, False: 2.50k]
  ------------------
 1185|  18.8k|            {
 1186|  18.8k|                key_.clear();
 1187|  18.8k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|  18.8k|            }
 1189|       |
 1190|  21.3k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 11.5k, False: 9.78k]
  ------------------
 1191|  11.5k|            {
 1192|  11.5k|                switch (level_stack_.back().target_kind())
 1193|  11.5k|                {
 1194|  6.46k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 6.46k, False: 5.06k]
  ------------------
 1195|  6.46k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 4.31k, False: 2.14k]
  ------------------
 1196|  4.31k|                        {
 1197|  4.31k|                            key_buffer_.push_back(',');
 1198|  4.31k|                        }
 1199|  6.46k|                        key_buffer_.push_back('\"');
 1200|  6.46k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|  6.46k|                        key_buffer_.push_back('\"');
 1202|  6.46k|                        key_buffer_.push_back(':');
 1203|  6.46k|                        break;
 1204|  5.06k|                    default:
  ------------------
  |  Branch (1204:21): [True: 5.06k, False: 6.46k]
  ------------------
 1205|  5.06k|                        destination_->key(key_, context, ec);
 1206|  5.06k|                        break;
 1207|  11.5k|                }
 1208|  11.5k|            }
 1209|  9.78k|            else
 1210|  9.78k|            {
 1211|  9.78k|                switch (level_stack_.back().target_kind())
 1212|  9.78k|                {
 1213|  7.28k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 7.28k, False: 2.50k]
  ------------------
 1214|  7.28k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 2.73k, False: 4.54k]
  |  Branch (1214:65): [True: 2.29k, False: 438]
  ------------------
 1215|  2.29k|                        {
 1216|  2.29k|                            key_buffer_.push_back(',');
 1217|  2.29k|                        }
 1218|  7.28k|                        key_buffer_.push_back('\"');
 1219|  7.28k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|  7.28k|                        key_buffer_.push_back('\"');
 1221|  7.28k|                        break;
 1222|  2.50k|                    default:
  ------------------
  |  Branch (1222:21): [True: 2.50k, False: 7.28k]
  ------------------
 1223|  2.50k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|  2.50k|                        break;
 1225|  9.78k|                }
 1226|  9.78k|            }
 1227|       |
 1228|  21.3k|            level_stack_.back().advance();
 1229|  21.3k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  21.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|  21.3k|        }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|   190k|    {
  295|   190k|        visit_begin_array(length, tag, context, ec);
  296|   190k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   190k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|   190k|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|  7.27M|    {
  364|  7.27M|        visit_uint64(value, tag, context, ec);
  365|  7.27M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  7.27M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  7.27M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|   170k|    {
  301|   170k|        visit_end_array(context, ec);
  302|   170k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   170k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|   170k|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  2.79M|    {
  373|  2.79M|        visit_int64(value, tag, context, ec);
  374|  2.79M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  2.79M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  2.79M|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|  40.8k|    {
  391|  40.8k|        visit_double(value, tag, context, ec);
  392|  40.8k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  40.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|  40.8k|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  4.63k|            : destination_(std::addressof(visitor)), 
  856|  4.63k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  4.63k|        {
  858|  4.63k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  4.63k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|  4.63k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|   175k|    {
  277|   175k|        visit_begin_object(length, tag, context, ec);
  278|   175k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   175k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|   175k|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|  5.13M|    {
  333|  5.13M|        visit_string(value, tag, context, ec);
  334|  5.13M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  5.13M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|  5.13M|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|  81.8k|    {
  315|  81.8k|        visit_null(tag, context, ec);
  316|  81.8k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  81.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|  81.8k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  8.19M|    {
  324|  8.19M|        visit_bool(value, tag, context, ec);
  325|  8.19M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  8.19M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  8.19M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  14.4k|    {
  344|  14.4k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  14.4k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  14.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  14.4k|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|  21.3k|    {
  355|  21.3k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|  21.3k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  21.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|  21.3k|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|   154k|    {
  283|   154k|        visit_end_object(context, ec);
  284|   154k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   154k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|   154k|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|    982|    {
   58|    982|        visit_flush();
   59|    982|    }

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

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

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

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  4.63k|    {
  194|  4.63k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 4.63k, False: 0]
  ------------------
  195|  4.63k|        {
  196|  4.63k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  4.63k|        }
  198|  4.63k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  4.63k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  4.63k|          chunk_size_(default_max_chunk_size)
  178|  4.63k|    {
  179|  4.63k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  4.63k|        data_ = chunk_;
  181|  4.63k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  4.63k|      : std::basic_istream<CharT>(&nb_)
   58|  4.63k|    {
   59|  4.63k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  4.63k|        null_buffer() = default;
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8is_errorEv:
  276|  23.9M|    {
  277|  23.9M|        return stream_ptr_->bad();  
  278|  23.9M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  372|  24.3M|    {
  373|  24.3M|        std::size_t len = 0;
  374|  24.3M|        if (count_ > 0)
  ------------------
  |  Branch (374:13): [True: 24.3M, False: 9.11k]
  ------------------
  375|  24.3M|        {
  376|  24.3M|            len = (std::min)(count_, length);
  377|  24.3M|            std::memcpy(p, data_, len*sizeof(value_type));
  378|  24.3M|            data_ += len;
  379|  24.3M|            count_ -= len;
  380|  24.3M|            position_ += len;
  381|  24.3M|        }
  382|  24.3M|        if (length - len == 0)
  ------------------
  |  Branch (382:13): [True: 24.3M, False: 10.3k]
  ------------------
  383|  24.3M|        {
  384|  24.3M|            return len;
  385|  24.3M|        }
  386|  10.3k|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (386:18): [True: 10.3k, False: 0]
  ------------------
  387|  10.3k|        {
  388|  10.3k|            data_ = chunk_;
  389|  10.3k|            count_ = fill_buffer(chunk_, chunk_size_);
  390|  10.3k|            if (count_ > 0)
  ------------------
  |  Branch (390:17): [True: 7.00k, False: 3.34k]
  ------------------
  391|  7.00k|            {
  392|  7.00k|                std::size_t len2 = (std::min)(count_, length-len);
  393|  7.00k|                std::memcpy(p+len, data_, len2*sizeof(value_type));
  394|  7.00k|                data_ += len2;
  395|  7.00k|                count_ -= len2;
  396|  7.00k|                position_ += len2;
  397|  7.00k|                len += len2;
  398|  7.00k|            }
  399|  10.3k|            return len;
  400|  10.3k|        }
  401|      0|        else
  402|      0|        {
  403|      0|            if (stream_ptr_->eof())
  ------------------
  |  Branch (403:17): [True: 0, False: 0]
  ------------------
  404|      0|            {
  405|      0|                count_ = 0;
  406|      0|                return 0;
  407|      0|            }
  408|      0|            JSONCONS_TRY
  ------------------
  |  |   37|      0|    #define JSONCONS_TRY try
  ------------------
  409|      0|            {
  410|      0|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  411|      0|                std::size_t len2 = static_cast<std::size_t>(count);
  412|      0|                if (len2 < length-len)
  ------------------
  |  Branch (412:21): [True: 0, False: 0]
  ------------------
  413|      0|                {
  414|      0|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  415|      0|                }
  416|      0|                len += len2;
  417|      0|                position_ += len2;
  418|      0|                return len;
  419|      0|            }
  420|      0|            JSONCONS_CATCH(const std::exception&)     
  421|      0|            {
  422|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  423|      0|                return 0;
  424|      0|            }
  425|      0|        }
  426|  24.3M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  430|  10.7k|    {
  431|  10.7k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (431:13): [True: 3.33k, False: 7.39k]
  ------------------
  432|  3.33k|        {
  433|  3.33k|            return 0;
  434|  3.33k|        }
  435|       |
  436|  7.39k|        JSONCONS_TRY
  ------------------
  |  |   37|  7.39k|    #define JSONCONS_TRY try
  ------------------
  437|  7.39k|        {
  438|  7.39k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  439|  7.39k|            std::size_t length = static_cast<std::size_t>(count);
  440|       |
  441|  7.39k|            if (length < chunk_size)
  ------------------
  |  Branch (441:17): [True: 4.62k, False: 2.77k]
  ------------------
  442|  4.62k|            {
  443|  4.62k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  444|  4.62k|            }
  445|  7.39k|            return length;
  446|  7.39k|        }
  447|  7.39k|        JSONCONS_CATCH(const std::exception&)     
  448|  7.39k|        {
  449|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  450|      0|            return 0;
  451|      0|        }
  452|  7.39k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6detail4spanIKhLm18446744073709551615EEEmOT_:
  352|  5.14M|    {
  353|  5.14M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  5.14M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5.12M, False: 23.5k]
  |  |  ------------------
  ------------------
  354|  5.12M|        {
  355|  5.12M|            return span<const value_type>{};
  356|  5.12M|        }
  357|  23.5k|        if (length > count_)
  ------------------
  |  Branch (357:13): [True: 608, False: 22.9k]
  ------------------
  358|    608|        {
  359|    608|            buffer.clear();
  360|    608|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  361|    608|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  362|    608|        }
  363|       |
  364|  22.9k|        const value_type* data = data_;
  365|  22.9k|        data_ += length;
  366|  22.9k|        count_ -= length;
  367|  22.9k|        position_ += length;
  368|  22.9k|        return span<const value_type>(data, length);
  369|  23.5k|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  996|    608|    {
  997|    608|        std::size_t unread = length;
  998|       |
  999|  2.18k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (999:16): [True: 1.99k, False: 190]
  |  Branch (999:30): [True: 1.57k, False: 418]
  ------------------
 1000|  1.57k|        {
 1001|  1.57k|            if (source.count() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (1001:17): [True: 381, False: 1.19k]
  |  Branch (1001:40): [True: 381, False: 0]
  ------------------
 1002|    381|            {
 1003|    381|                std::size_t n = source.chunk_size();
 1004|    381|                std::size_t offset = buffer.size();
 1005|    381|                buffer.resize(buffer.size()+n);
 1006|    381|                std::size_t actual = source.fill_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
 1007|    381|                unread -= actual;
 1008|    381|            }
 1009|  1.19k|            else
 1010|  1.19k|            {
 1011|  1.19k|                std::size_t n = (std::min)(source.chunk_size(), unread);
 1012|  1.19k|                std::size_t offset = buffer.size();
 1013|  1.19k|                buffer.resize(buffer.size()+n);
 1014|  1.19k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
 1015|  1.19k|                unread -= actual;
 1016|  1.19k|            }
 1017|  1.57k|        }
 1018|    608|        return length - unread;
 1019|    608|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  1.99k|    {
  272|  1.99k|        return count_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 799, False: 1.19k]
  |  Branch (272:31): [True: 418, False: 381]
  ------------------
  273|  1.99k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE5countEv:
  346|  1.57k|    {
  347|  1.57k|        return count_;
  348|  1.57k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|  1.95k|    {
  262|  1.95k|        return chunk_size_;
  263|  1.95k|    }

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

_ZN8jsoncons6binary13big_to_nativeIfNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  32.7k|    {
  183|  32.7k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 32.7k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  32.7k|        T val;
  188|  32.7k|        std::memcpy(&val,first,sizeof(T));
  189|  32.7k|        return byte_swap(val);
  190|  32.7k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|  32.7k|    {
   65|  32.7k|        uint32_t x;
   66|  32.7k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|  32.7k|        uint32_t y = byte_swap(x);
   68|  32.7k|        T val2;
   69|  32.7k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|  32.7k|        return val2;
   71|  32.7k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   116k|    {
   40|   116k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   116k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|   116k|#  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|   116k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  8.02k|    {
  183|  8.02k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 8.02k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  8.02k|        T val;
  188|  8.02k|        std::memcpy(&val,first,sizeof(T));
  189|  8.02k|        return byte_swap(val);
  190|  8.02k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|  8.02k|    {
   77|  8.02k|        uint64_t x;
   78|  8.02k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|  8.02k|        uint64_t y = byte_swap(x);
   80|  8.02k|        T val2;
   81|  8.02k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|  8.02k|        return val2;
   83|  8.02k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  16.8k|    {
   52|  16.8k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  16.8k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  16.8k|#  define JSONCONS_BYTE_SWAP_64 __builtin_bswap64
  ------------------
   54|       |    #else
   55|       |        uint64_t tmp = ((static_cast<uint64_t>(val) & 0x00000000ffffffffull) << 32) | ((static_cast<uint64_t>(val) & 0xffffffff00000000ull) >> 32);
   56|       |        tmp = ((tmp & 0x0000ffff0000ffffull) << 16) | ((tmp & 0xffff0000ffff0000ull) >> 16);
   57|       |        return ((tmp & 0x00ff00ff00ff00ffull) << 8)  | ((tmp & 0xff00ff00ff00ff00ull) >> 8);
   58|       |    #endif
   59|  16.8k|    }
_ZN8jsoncons6binary13big_to_nativeItNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   215k|    {
  183|   215k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 215k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   215k|        T val;
  188|   215k|        std::memcpy(&val,first,sizeof(T));
  189|   215k|        return byte_swap(val);
  190|   215k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|   215k|    {
   29|   215k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|   215k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|   215k|#      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|   215k|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  84.1k|    {
  183|  84.1k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 84.1k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  84.1k|        T val;
  188|  84.1k|        std::memcpy(&val,first,sizeof(T));
  189|  84.1k|        return byte_swap(val);
  190|  84.1k|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  8.80k|    {
  183|  8.80k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 8.80k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  8.80k|        T val;
  188|  8.80k|        std::memcpy(&val,first,sizeof(T));
  189|  8.80k|        return byte_swap(val);
  190|  8.80k|    }
_ZN8jsoncons6binary13big_to_nativeIaNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  49.0k|    {
  183|  49.0k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 49.0k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  49.0k|        T val;
  188|  49.0k|        std::memcpy(&val,first,sizeof(T));
  189|  49.0k|        return byte_swap(val);
  190|  49.0k|    }
_ZN8jsoncons6binary9byte_swapIaEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  49.0k|    {
   22|  49.0k|        return val;
   23|  49.0k|    }
_ZN8jsoncons6binary13big_to_nativeIsNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|    908|    {
  183|    908|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 908]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|    908|        T val;
  188|    908|        std::memcpy(&val,first,sizeof(T));
  189|    908|        return byte_swap(val);
  190|    908|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|    908|    {
   29|    908|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|    908|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|    908|#      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|    908|    }
_ZN8jsoncons6binary13big_to_nativeIiNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  3.90k|    {
  183|  3.90k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 3.90k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  3.90k|        T val;
  188|  3.90k|        std::memcpy(&val,first,sizeof(T));
  189|  3.90k|        return byte_swap(val);
  190|  3.90k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  3.90k|    {
   40|  3.90k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  3.90k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  3.90k|#  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|  3.90k|    }
_ZN8jsoncons6binary13big_to_nativeIlNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  19.9k|    {
  183|  19.9k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 19.9k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  19.9k|        T val;
  188|  19.9k|        std::memcpy(&val,first,sizeof(T));
  189|  19.9k|        return byte_swap(val);
  190|  19.9k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  19.9k|    {
   52|  19.9k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  19.9k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  19.9k|#  define JSONCONS_BYTE_SWAP_64 __builtin_bswap64
  ------------------
   54|       |    #else
   55|       |        uint64_t tmp = ((static_cast<uint64_t>(val) & 0x00000000ffffffffull) << 32) | ((static_cast<uint64_t>(val) & 0xffffffff00000000ull) >> 32);
   56|       |        tmp = ((tmp & 0x0000ffff0000ffffull) << 16) | ((tmp & 0xffff0000ffff0000ull) >> 16);
   57|       |        return ((tmp & 0x00ff00ff00ff00ffull) << 8)  | ((tmp & 0xff00ff00ff00ff00ull) >> 8);
   58|       |    #endif
   59|  19.9k|    }
_ZN8jsoncons6binary13big_to_nativeIhNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  30.0k|    {
  183|  30.0k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 30.0k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  30.0k|        T val;
  188|  30.0k|        std::memcpy(&val,first,sizeof(T));
  189|  30.0k|        return byte_swap(val);
  190|  30.0k|    }
_ZN8jsoncons6binary9byte_swapIhEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  30.0k|    {
   22|  30.0k|        return val;
   23|  30.0k|    }

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

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

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

_ZN8jsoncons14unicode_traits8validateIhEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|  5.10M|    {
 1148|  5.10M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|  5.10M|        const uint8_t* end = it + length;
 1150|       |
 1151|  5.10M|        unicode_errc  result{};
 1152|  5.27M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 166k, False: 5.10M]
  ------------------
 1153|   166k|        {
 1154|   166k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 158k, False: 7.92k]
  ------------------
 1155|   158k|            {
 1156|  1.09M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|   316k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 157k, False: 1.12k]
  |  |  |  Branch (281:34): [True: 156k, False: 477]
  |  |  |  Branch (281:36): [True: 156k, False: 324]
  |  |  |  Branch (281:38): [True: 156k, False: 327]
  |  |  |  Branch (281:40): [True: 155k, False: 223]
  |  |  |  Branch (281:42): [True: 155k, False: 210]
  |  |  |  Branch (281:44): [True: 155k, False: 211]
  |  |  |  Branch (281:46): [True: 155k, False: 204]
  |  |  ------------------
  ------------------
 1157|   155k|                continue;
 1158|  1.09M|            }
 1159|  11.0k|    non_ascii:
 1160|  11.0k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  11.0k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 36, False: 10.9k]
  ------------------
 1162|     36|            {
 1163|     36|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     36|            }
 1165|  10.9k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 203, False: 10.7k]
  ------------------
 1166|    203|            {
 1167|    203|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    203|            }
 1169|  10.7k|            it += len;
 1170|  10.7k|        }
 1171|  5.10M|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|  5.10M|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  10.9k|    {
  306|  10.9k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  10.9k|        const uint8_t* end = it+length;
  308|       |
  309|  10.9k|        uint8_t byte;
  310|  10.9k|        switch (length) {
  311|     31|        default:
  ------------------
  |  Branch (311:9): [True: 31, False: 10.9k]
  ------------------
  312|     31|            return unicode_errc::over_long_utf8_sequence;
  313|    627|        case 4:
  ------------------
  |  Branch (313:9): [True: 627, False: 10.3k]
  ------------------
  314|    627|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 13, False: 614]
  ------------------
  315|     13|                return unicode_errc::bad_continuation_byte;
  316|    614|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    614|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  1.13k|        case 3:
  ------------------
  |  Branch (317:9): [True: 525, False: 10.4k]
  ------------------
  318|  1.13k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 16, False: 1.12k]
  ------------------
  319|     16|                return unicode_errc::bad_continuation_byte;
  320|  1.12k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.12k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  3.43k|        case 2:
  ------------------
  |  Branch (321:9): [True: 2.30k, False: 8.68k]
  ------------------
  322|  3.43k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 46, False: 3.38k]
  ------------------
  323|     46|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  3.38k|            switch (*it) 
  326|  3.38k|            {
  327|       |                // no fall-through in this inner switch
  328|    204|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 204, False: 3.18k]
  |  Branch (328:32): [True: 9, False: 195]
  ------------------
  329|    289|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 289, False: 3.09k]
  |  Branch (329:32): [True: 1, False: 288]
  ------------------
  330|    288|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 203, False: 3.18k]
  |  Branch (330:32): [True: 5, False: 198]
  ------------------
  331|    331|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 331, False: 3.05k]
  |  Branch (331:32): [True: 4, False: 327]
  ------------------
  332|  2.35k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 2.35k, False: 1.02k]
  |  Branch (332:32): [True: 0, False: 2.35k]
  ------------------
  333|  3.38k|            }
  334|       |
  335|  3.36k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  3.36k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  10.8k|        case 1:
  ------------------
  |  Branch (336:9): [True: 7.50k, False: 3.49k]
  ------------------
  337|  10.8k|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 3.43k, False: 7.43k]
  |  Branch (337:32): [True: 75, False: 3.36k]
  ------------------
  338|     75|                return unicode_errc::source_illegal;
  339|  10.7k|            break;
  340|  10.9k|        }
  341|  10.7k|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 3, False: 10.7k]
  ------------------
  342|      3|            return unicode_errc::source_illegal;
  343|       |
  344|  10.7k|        return unicode_errc();
  345|  10.7k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  6.65M|{
   43|  6.65M|    using char_type = typename Result::value_type;
   44|       |
   45|  6.65M|    char_type buf[255];
   46|  6.65M|    char_type *p = buf;
   47|  6.65M|    const char_type* last = buf+255;
   48|       |
   49|  6.65M|    bool is_negative = value < 0;
   50|       |
   51|  6.65M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 6.65M]
  ------------------
   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|  6.65M|    else
   60|  6.65M|    {
   61|       |
   62|  6.65M|        do
   63|  13.3M|        {
   64|  13.3M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  13.3M|        }
   66|  13.3M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 6.72M, False: 6.65M]
  |  Branch (66:33): [True: 6.72M, False: 0]
  ------------------
   67|  6.65M|    }
   68|  6.65M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  6.65M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 6.65M]
  |  |  ------------------
  |  |   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|  6.65M|    std::size_t count = (p - buf);
   71|  6.65M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 6.65M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  20.0M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 13.3M, False: 6.65M]
  ------------------
   77|  13.3M|    {
   78|  13.3M|        result.push_back(*p);
   79|  13.3M|    }
   80|       |
   81|  6.65M|    return count;
   82|  6.65M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  2.77M|{
   43|  2.77M|    using char_type = typename Result::value_type;
   44|       |
   45|  2.77M|    char_type buf[255];
   46|  2.77M|    char_type *p = buf;
   47|  2.77M|    const char_type* last = buf+255;
   48|       |
   49|  2.77M|    bool is_negative = value < 0;
   50|       |
   51|  2.77M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 2.77M, False: 2.67k]
  ------------------
   52|  2.77M|    {
   53|  2.77M|        do
   54|  2.93M|        {
   55|  2.93M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  2.93M|        }
   57|  2.93M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 159k, False: 2.77M]
  |  Branch (57:33): [True: 159k, False: 0]
  ------------------
   58|  2.77M|    }
   59|  2.67k|    else
   60|  2.67k|    {
   61|       |
   62|  2.67k|        do
   63|  24.0k|        {
   64|  24.0k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  24.0k|        }
   66|  24.0k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 21.3k, False: 2.67k]
  |  Branch (66:33): [True: 21.3k, False: 0]
  ------------------
   67|  2.67k|    }
   68|  2.77M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  2.77M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.77M]
  |  |  ------------------
  |  |   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.77M|    std::size_t count = (p - buf);
   71|  2.77M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 2.77M, False: 2.67k]
  ------------------
   72|  2.77M|    {
   73|  2.77M|        result.push_back('-');
   74|  2.77M|        ++count;
   75|  2.77M|    }
   76|  5.73M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 2.96M, False: 2.77M]
  ------------------
   77|  2.96M|    {
   78|  2.96M|        result.push_back(*p);
   79|  2.96M|    }
   80|       |
   81|  2.77M|    return count;
   82|  2.77M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  40.3k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  40.3k|    {
  489|  40.3k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  40.3k|        struct lconv *lc = localeconv();
  491|  40.3k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 40.3k, False: 0]
  |  Branch (491:30): [True: 40.3k, False: 0]
  ------------------
  492|  40.3k|        {
  493|  40.3k|            decimal_point_ = lc->decimal_point[0];
  494|  40.3k|        }
  495|  40.3k|#endif
  496|  40.3k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  40.3k|    {
  504|  40.3k|        std::size_t count = 0;
  505|       |
  506|  40.3k|        char number_buffer[200];
  507|  40.3k|        int length = 0;
  508|       |
  509|  40.3k|        switch (float_format_)
  510|  40.3k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 40.3k]
  ------------------
  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: 40.3k]
  ------------------
  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|  40.3k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 40.3k, False: 0]
  ------------------
  552|  40.3k|            {
  553|  40.3k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 40.3k]
  ------------------
  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|  40.3k|                else
  563|  40.3k|                {
  564|  40.3k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 40.3k]
  ------------------
  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|  40.3k|                }             
  569|  40.3k|                break;
  570|  40.3k|            }
  571|  40.3k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 40.3k]
  ------------------
  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|  40.3k|        }
  575|  40.3k|        return count;
  576|  40.3k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  3.72k|{
  244|  3.72k|    const char *sbeg = buffer;
  245|  3.72k|    const char *send = sbeg + length;
  246|       |
  247|  3.72k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 3.72k, False: 0]
  ------------------
  248|  3.72k|    {
  249|  3.72k|        bool needs_dot = true;
  250|  66.4k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 62.7k, False: 3.72k]
  ------------------
  251|  62.7k|        {
  252|  62.7k|            switch (*q)
  253|  62.7k|            {
  254|  3.17k|            case '-':
  ------------------
  |  Branch (254:13): [True: 3.17k, False: 59.5k]
  ------------------
  255|  9.13k|            case '0':
  ------------------
  |  Branch (255:13): [True: 5.95k, False: 56.7k]
  ------------------
  256|  15.9k|            case '1':
  ------------------
  |  Branch (256:13): [True: 6.80k, False: 55.9k]
  ------------------
  257|  21.7k|            case '2':
  ------------------
  |  Branch (257:13): [True: 5.82k, False: 56.9k]
  ------------------
  258|  26.4k|            case '3':
  ------------------
  |  Branch (258:13): [True: 4.70k, False: 58.0k]
  ------------------
  259|  30.0k|            case '4':
  ------------------
  |  Branch (259:13): [True: 3.62k, False: 59.1k]
  ------------------
  260|  35.4k|            case '5':
  ------------------
  |  Branch (260:13): [True: 5.35k, False: 57.3k]
  ------------------
  261|  41.8k|            case '6':
  ------------------
  |  Branch (261:13): [True: 6.43k, False: 56.3k]
  ------------------
  262|  46.3k|            case '7':
  ------------------
  |  Branch (262:13): [True: 4.45k, False: 58.2k]
  ------------------
  263|  51.2k|            case '8':
  ------------------
  |  Branch (263:13): [True: 4.92k, False: 57.8k]
  ------------------
  264|  54.8k|            case '9':
  ------------------
  |  Branch (264:13): [True: 3.58k, False: 59.1k]
  ------------------
  265|  55.7k|            case '+':
  ------------------
  |  Branch (265:13): [True: 884, False: 61.8k]
  ------------------
  266|  55.7k|                result.push_back(*q);
  267|  55.7k|                break;
  268|  1.80k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 1.80k, False: 60.9k]
  ------------------
  269|  1.80k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 62.7k]
  ------------------
  270|  1.80k|                result.push_back('e');
  271|  1.80k|                needs_dot = false;
  272|  1.80k|                break;
  273|  5.20k|            default:
  ------------------
  |  Branch (273:13): [True: 5.20k, False: 57.5k]
  ------------------
  274|  5.20k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 2.76k, False: 2.44k]
  ------------------
  275|  2.76k|                {
  276|  2.76k|                    needs_dot = false;
  277|  2.76k|                    result.push_back('.');
  278|  2.76k|                }
  279|  5.20k|                break;
  280|  62.7k|            }
  281|  62.7k|        }
  282|  3.72k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 962, False: 2.76k]
  ------------------
  283|    962|        {
  284|    962|            result.push_back('.');
  285|    962|            result.push_back('0');
  286|    962|        }
  287|  3.72k|    }
  288|  3.72k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmiiiRT_:
  171|  35.8k|{
  172|  35.8k|    int nb_digits = (int)length;
  173|  35.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|  35.8k|    int kk = nb_digits + k;
  179|       |
  180|  35.8k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 9.35k, False: 26.5k]
  |  Branch (180:28): [True: 6.84k, False: 2.50k]
  ------------------
  181|  6.84k|    {
  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|  49.3k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 42.5k, False: 6.84k]
  ------------------
  186|  42.5k|        {
  187|  42.5k|            result.push_back(buffer[i]);
  188|  42.5k|        }
  189|  27.0k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 20.1k, False: 6.84k]
  ------------------
  190|  20.1k|        {
  191|  20.1k|            result.push_back('0');
  192|  20.1k|        }
  193|  6.84k|        result.push_back('.');
  194|  6.84k|        result.push_back('0');
  195|  6.84k|    } 
  196|  29.0k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 13.2k, False: 15.7k]
  |  Branch (196:24): [True: 10.7k, False: 2.50k]
  ------------------
  197|  10.7k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  45.5k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 34.8k, False: 10.7k]
  ------------------
  200|  34.8k|        {
  201|  34.8k|            result.push_back(buffer[i]);
  202|  34.8k|        }
  203|  10.7k|        result.push_back('.');
  204|   132k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 122k, False: 10.7k]
  ------------------
  205|   122k|        {
  206|   122k|            result.push_back(buffer[i]);
  207|   122k|        }
  208|  10.7k|    } 
  209|  18.3k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 4.20k, False: 14.1k]
  |  Branch (209:30): [True: 1.69k, False: 2.50k]
  ------------------
  210|  1.69k|    {
  211|  1.69k|        offset = 2 - kk;
  212|       |
  213|  1.69k|        result.push_back('0');
  214|  1.69k|        result.push_back('.');
  215|  4.62k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 2.92k, False: 1.69k]
  ------------------
  216|  2.92k|            result.push_back('0');
  217|  23.3k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 21.6k, False: 1.69k]
  ------------------
  218|  21.6k|        {
  219|  21.6k|            result.push_back(buffer[i]);
  220|  21.6k|        }
  221|  1.69k|    } 
  222|  16.6k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 1.70k, False: 14.9k]
  ------------------
  223|  1.70k|    {
  224|  1.70k|        result.push_back(buffer[0]);
  225|  1.70k|        result.push_back('e');
  226|  1.70k|        fill_exponent(kk - 1, result);
  227|  1.70k|    } 
  228|  14.9k|    else
  229|  14.9k|    {
  230|  14.9k|        result.push_back(buffer[0]);
  231|  14.9k|        result.push_back('.');
  232|   210k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 195k, False: 14.9k]
  ------------------
  233|   195k|        {
  234|   195k|            result.push_back(buffer[i]);
  235|   195k|        }
  236|  14.9k|        result.push_back('e');
  237|  14.9k|        fill_exponent(kk - 1, result);
  238|  14.9k|    }
  239|  35.8k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  16.6k|{
  137|  16.6k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 14.1k, False: 2.50k]
  ------------------
  138|  14.1k|    {
  139|  14.1k|        result.push_back('-');
  140|  14.1k|        K = -K;
  141|  14.1k|    }
  142|  2.50k|    else
  143|  2.50k|    {
  144|  2.50k|        result.push_back('+'); // compatibility with sprintf
  145|  2.50k|    }
  146|       |
  147|  16.6k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 540, False: 16.0k]
  ------------------
  148|    540|    {
  149|    540|        result.push_back('0'); // compatibility with sprintf
  150|    540|        result.push_back((char)('0' + K));
  151|    540|    }
  152|  16.0k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 8.15k, False: 7.92k]
  ------------------
  153|  8.15k|    {
  154|  8.15k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  8.15k|        result.push_back((char)('0' + K));
  156|  8.15k|    }
  157|  7.92k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 7.92k, False: 0]
  ------------------
  158|  7.92k|    {
  159|  7.92k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  7.92k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  7.92k|        result.push_back((char)('0' + K));
  162|  7.92k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  16.6k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  40.3k|{
  476|  40.3k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  40.3k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  40.3k|{
  367|  40.3k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 757, False: 39.5k]
  ------------------
  368|    757|    {
  369|    757|        result.push_back('0');
  370|    757|        result.push_back('.');
  371|    757|        result.push_back('0');
  372|    757|        return true;
  373|    757|    }
  374|       |
  375|  39.5k|    int length = 0;
  376|  39.5k|    int k;
  377|       |
  378|  39.5k|    char buffer[100];
  379|       |
  380|  39.5k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 24.5k, False: 15.0k]
  ------------------
  381|  39.5k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 35.8k, False: 3.72k]
  ------------------
  382|  35.8k|    {
  383|  35.8k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 22.2k, False: 13.5k]
  ------------------
  384|  22.2k|        {
  385|  22.2k|            result.push_back('-');
  386|  22.2k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  35.8k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  35.8k|        return true;
  391|  35.8k|    }
  392|  3.72k|    else
  393|  3.72k|    {
  394|  3.72k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  3.72k|    }
  396|  39.5k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  3.72k|{
  330|  3.72k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 3.72k]
  ------------------
  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|  3.72k|    char buffer[100];
  339|  3.72k|    int precision = std::numeric_limits<double>::digits10;
  340|  3.72k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  3.72k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 3.72k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  3.72k|    double x{0};
  346|  3.72k|    auto res = decstr_to_double(buffer, length, x);
  347|  3.72k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 3.72k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  3.72k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 3.12k, False: 600]
  ------------------
  352|  3.12k|    {
  353|  3.12k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  3.12k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  3.12k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 3.12k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  3.12k|    }
  360|  3.72k|    dump_buffer(buffer, length, decimal_point, result);
  361|  3.72k|    return true;
  362|  3.72k|}

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

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

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

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

