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

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

_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1011|   459k|        {
 1012|   459k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1012:17): [True: 23.8k, False: 435k]
  ------------------
 1013|  23.8k|            {
 1014|  23.8k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1014:21): [True: 20.0k, False: 3.80k]
  |  Branch (1014:73): [True: 17.9k, False: 2.15k]
  ------------------
 1015|  17.9k|                {
 1016|  17.9k|                    key_buffer_.push_back(',');
 1017|  17.9k|                }
 1018|  23.8k|                level_stack_.emplace_back(target_t::buffer, container_t::array);
 1019|  23.8k|                key_buffer_.push_back('[');
 1020|  23.8k|            }
 1021|   435k|            else
 1022|   435k|            {
 1023|   435k|                switch (level_stack_.back().target())
 1024|   435k|                {
 1025|   309k|                    case target_t::buffer:
  ------------------
  |  Branch (1025:21): [True: 309k, False: 125k]
  ------------------
 1026|   309k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1026:29): [True: 290k, False: 19.0k]
  |  Branch (1026:65): [True: 132k, False: 158k]
  ------------------
 1027|   132k|                        {
 1028|   132k|                            key_buffer_.push_back(',');
 1029|   132k|                        }
 1030|   309k|                        level_stack_.emplace_back(target_t::buffer, container_t::array);
 1031|   309k|                        key_buffer_.push_back('[');
 1032|   309k|                        break;
 1033|   125k|                    default:
  ------------------
  |  Branch (1033:21): [True: 125k, False: 309k]
  ------------------
 1034|   125k|                        level_stack_.emplace_back(target_t::destination, container_t::array);
 1035|   125k|                        destination_->begin_array(length, tag, context, ec);
 1036|   125k|                        break;
 1037|   435k|                }
 1038|   435k|            }
 1039|   459k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   459k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1040|   459k|        }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6is_keyEv:
  814|   115M|            {
  815|   115M|                return even_odd_ == 0;
  816|   115M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6targetEv:
  824|  70.9M|            {
  825|  70.9M|                return state_;
  826|  70.9M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level5countEv:
  829|  30.0M|            {
  830|  30.0M|                return count_;
  831|  30.0M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5levelC2ENS4_8target_tENS4_11container_tE:
  797|   740k|                : state_(state), type_(type), even_odd_(type == container_t::object ? 0 : 1)
  ------------------
  |  Branch (797:57): [True: 275k, False: 465k]
  ------------------
  798|   740k|            {
  799|   740k|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level9is_objectEv:
  819|  68.5M|            {
  820|  68.5M|                return type_ == container_t::object;
  821|  68.5M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1043|   428k|        {
 1044|   428k|            switch (level_stack_.back().target())
 1045|   428k|            {
 1046|   320k|                case target_t::buffer:
  ------------------
  |  Branch (1046:17): [True: 320k, False: 107k]
  ------------------
 1047|   320k|                    key_buffer_.push_back(']');
 1048|   320k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   320k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 320k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1049|   320k|                    level_stack_.pop_back();
 1050|   320k|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (1050:25): [True: 3.25k, False: 317k]
  ------------------
 1051|  3.25k|                    {
 1052|  3.25k|                        destination_->key(key_buffer_, context, ec);
 1053|  3.25k|                        key_buffer_.clear();
 1054|  3.25k|                    }
 1055|   317k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1055:30): [True: 18.8k, False: 298k]
  ------------------
 1056|  18.8k|                    {
 1057|  18.8k|                        key_buffer_.push_back(':');
 1058|  18.8k|                    }
 1059|   320k|                    level_stack_.back().advance();
 1060|   320k|                    break;
 1061|   107k|                default:
  ------------------
  |  Branch (1061:17): [True: 107k, False: 320k]
  ------------------
 1062|   107k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   107k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 107k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1063|   107k|                    level_stack_.pop_back();
 1064|   107k|                    level_stack_.back().advance();
 1065|   107k|                    destination_->end_array(context, ec);
 1066|   107k|                    break;
 1067|   428k|            }
 1068|   428k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   428k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1069|   428k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level7advanceEv:
  802|  38.5M|            {
  803|  38.5M|                if (!is_key())
  ------------------
  |  Branch (803:21): [True: 32.0M, False: 6.44M]
  ------------------
  804|  32.0M|                {
  805|  32.0M|                    ++count_;
  806|  32.0M|                }
  807|  38.5M|                if (is_object())
  ------------------
  |  Branch (807:21): [True: 12.8M, False: 25.6M]
  ------------------
  808|  12.8M|                {
  809|  12.8M|                    even_odd_ = !even_odd_;
  810|  12.8M|                }
  811|  38.5M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1236|  15.1M|        {
 1237|  15.1M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1237:17): [True: 4.48M, False: 10.6M]
  |  Branch (1237:49): [True: 9.41M, False: 1.23M]
  ------------------
 1238|  13.8M|            {
 1239|  13.8M|                key_.clear();
 1240|  13.8M|                jsoncons::from_integer(value,key_);
 1241|  13.8M|            }
 1242|       |
 1243|  15.1M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1243:17): [True: 4.48M, False: 10.6M]
  ------------------
 1244|  4.48M|            {
 1245|  4.48M|                switch (level_stack_.back().target())
 1246|  4.48M|                {
 1247|  4.38M|                    case target_t::buffer:
  ------------------
  |  Branch (1247:21): [True: 4.38M, False: 93.7k]
  ------------------
 1248|  4.38M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1248:29): [True: 4.38M, False: 7.11k]
  ------------------
 1249|  4.38M|                        {
 1250|  4.38M|                            key_buffer_.push_back(',');
 1251|  4.38M|                        }
 1252|  4.38M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1253|  4.38M|                        key_buffer_.push_back(':');
 1254|  4.38M|                        break;
 1255|  93.7k|                    default:
  ------------------
  |  Branch (1255:21): [True: 93.7k, False: 4.38M]
  ------------------
 1256|  93.7k|                        destination_->key(key_, context, ec);
 1257|  93.7k|                        break;
 1258|  4.48M|                }
 1259|  4.48M|            }
 1260|  10.6M|            else
 1261|  10.6M|            {
 1262|  10.6M|                switch (level_stack_.back().target())
 1263|  10.6M|                {
 1264|  9.41M|                    case target_t::buffer:
  ------------------
  |  Branch (1264:21): [True: 9.41M, False: 1.23M]
  ------------------
 1265|  9.41M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1265:29): [True: 5.01M, False: 4.39M]
  |  Branch (1265:65): [True: 5.01M, False: 5.36k]
  ------------------
 1266|  5.01M|                        {
 1267|  5.01M|                            key_buffer_.push_back(',');
 1268|  5.01M|                        }
 1269|  9.41M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1270|  9.41M|                        break;
 1271|  1.23M|                    default:
  ------------------
  |  Branch (1271:21): [True: 1.23M, False: 9.41M]
  ------------------
 1272|  1.23M|                        destination_->uint64_value(value, tag, context, ec);
 1273|  1.23M|                        break;
 1274|  10.6M|                }
 1275|  10.6M|            }
 1276|       |
 1277|  15.1M|            level_stack_.back().advance();
 1278|  15.1M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  15.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1279|  15.1M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1282|  2.03M|        {
 1283|  2.03M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1283:17): [True: 260k, False: 1.77M]
  |  Branch (1283:49): [True: 1.53M, False: 234k]
  ------------------
 1284|  1.79M|            {
 1285|  1.79M|                key_.clear();
 1286|  1.79M|                jsoncons::from_integer(value,key_);
 1287|  1.79M|            }
 1288|       |
 1289|  2.03M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1289:17): [True: 260k, False: 1.77M]
  ------------------
 1290|   260k|            {
 1291|   260k|                switch (level_stack_.back().target())
 1292|   260k|                {
 1293|   214k|                    case target_t::buffer:
  ------------------
  |  Branch (1293:21): [True: 214k, False: 46.2k]
  ------------------
 1294|   214k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1294:29): [True: 211k, False: 3.29k]
  ------------------
 1295|   211k|                        {
 1296|   211k|                            key_buffer_.push_back(',');
 1297|   211k|                        }
 1298|   214k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1299|   214k|                        key_buffer_.push_back(':');
 1300|   214k|                        break;
 1301|  46.2k|                    default:
  ------------------
  |  Branch (1301:21): [True: 46.2k, False: 214k]
  ------------------
 1302|  46.2k|                        destination_->key(key_, context, ec);
 1303|  46.2k|                        break;
 1304|   260k|                }
 1305|   260k|            }
 1306|  1.77M|            else
 1307|  1.77M|            {
 1308|  1.77M|                switch (level_stack_.back().target())
 1309|  1.77M|                {
 1310|  1.53M|                    case target_t::buffer:
  ------------------
  |  Branch (1310:21): [True: 1.53M, False: 234k]
  ------------------
 1311|  1.53M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1311:29): [True: 1.32M, False: 215k]
  |  Branch (1311:65): [True: 1.32M, False: 2.33k]
  ------------------
 1312|  1.32M|                        {
 1313|  1.32M|                            key_buffer_.push_back(',');
 1314|  1.32M|                        }
 1315|  1.53M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1316|  1.53M|                        break;
 1317|   234k|                    default:
  ------------------
  |  Branch (1317:21): [True: 234k, False: 1.53M]
  ------------------
 1318|   234k|                        destination_->int64_value(value, tag, context, ec);
 1319|   234k|                        break;
 1320|  1.77M|                }
 1321|  1.77M|            }
 1322|       |
 1323|  2.03M|            level_stack_.back().advance();
 1324|  2.03M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  2.03M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1325|  2.03M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1377|  66.0k|        {
 1378|  66.0k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1378:17): [True: 18.3k, False: 47.7k]
  |  Branch (1378:49): [True: 32.9k, False: 14.7k]
  ------------------
 1379|  51.2k|            {
 1380|  51.2k|                key_.clear();
 1381|  51.2k|                string_sink<string_type> sink(key_);
 1382|  51.2k|                jsoncons::write_double f{float_chars_format::general,0};
 1383|  51.2k|                f(value, sink);
 1384|  51.2k|            }
 1385|       |
 1386|  66.0k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1386:17): [True: 18.3k, False: 47.7k]
  ------------------
 1387|  18.3k|            {
 1388|  18.3k|                switch (level_stack_.back().target())
 1389|  18.3k|                {
 1390|  13.8k|                    case target_t::buffer:
  ------------------
  |  Branch (1390:21): [True: 13.8k, False: 4.49k]
  ------------------
 1391|  13.8k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1391:29): [True: 9.45k, False: 4.39k]
  ------------------
 1392|  9.45k|                        {
 1393|  9.45k|                            key_buffer_.push_back(',');
 1394|  9.45k|                        }
 1395|  13.8k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1396|  13.8k|                        key_buffer_.push_back(':');
 1397|  13.8k|                        break;
 1398|  4.49k|                    default:
  ------------------
  |  Branch (1398:21): [True: 4.49k, False: 13.8k]
  ------------------
 1399|  4.49k|                        destination_->key(key_, context, ec);
 1400|  4.49k|                        break;
 1401|  18.3k|                }
 1402|  18.3k|            }
 1403|  47.7k|            else
 1404|  47.7k|            {
 1405|  47.7k|                switch (level_stack_.back().target())
 1406|  47.7k|                {
 1407|  32.9k|                    case target_t::buffer:
  ------------------
  |  Branch (1407:21): [True: 32.9k, False: 14.7k]
  ------------------
 1408|  32.9k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1408:29): [True: 23.2k, False: 9.70k]
  |  Branch (1408:65): [True: 21.5k, False: 1.61k]
  ------------------
 1409|  21.5k|                        {
 1410|  21.5k|                            key_buffer_.push_back(',');
 1411|  21.5k|                        }
 1412|  32.9k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1413|  32.9k|                        break;
 1414|  14.7k|                    default:
  ------------------
  |  Branch (1414:21): [True: 14.7k, False: 32.9k]
  ------------------
 1415|  14.7k|                        destination_->double_value(value, tag, context, ec);
 1416|  14.7k|                        break;
 1417|  47.7k|                }
 1418|  47.7k|            }
 1419|       |
 1420|  66.0k|            level_stack_.back().advance();
 1421|  66.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  66.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1422|  66.0k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  884|  1.66k|        {
  885|  1.66k|            destination_->flush();
  886|  1.66k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  917|   275k|        {
  918|   275k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (918:17): [True: 55.3k, False: 220k]
  ------------------
  919|  55.3k|            {
  920|  55.3k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (920:21): [True: 42.3k, False: 12.9k]
  |  Branch (920:73): [True: 17.6k, False: 24.7k]
  ------------------
  921|  17.6k|                {
  922|  17.6k|                    key_buffer_.push_back(',');
  923|  17.6k|                }
  924|  55.3k|                level_stack_.emplace_back(target_t::buffer, container_t::object);
  925|  55.3k|                key_buffer_.push_back('{');
  926|  55.3k|            }
  927|   220k|            else
  928|   220k|            {
  929|   220k|                switch (level_stack_.back().target())
  930|   220k|                {
  931|   173k|                    case target_t::buffer:
  ------------------
  |  Branch (931:21): [True: 173k, False: 46.5k]
  ------------------
  932|   173k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (932:29): [True: 133k, False: 39.6k]
  |  Branch (932:65): [True: 131k, False: 2.10k]
  ------------------
  933|   131k|                        {
  934|   131k|                            key_buffer_.push_back(',');
  935|   131k|                        }
  936|   173k|                        level_stack_.emplace_back(target_t::buffer, container_t::object);
  937|   173k|                        key_buffer_.push_back('{');
  938|   173k|                        break;
  939|  46.5k|                    default:
  ------------------
  |  Branch (939:21): [True: 46.5k, False: 173k]
  ------------------
  940|  46.5k|                        level_stack_.emplace_back(target_t::destination, container_t::object);
  941|  46.5k|                        destination_->begin_object(length, tag, context, ec);
  942|  46.5k|                        break;
  943|   220k|                }
  944|   220k|            }
  945|   275k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   275k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  946|   275k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  949|   253k|        {
  950|   253k|            switch (level_stack_.back().target())
  951|   253k|            {
  952|   214k|                case target_t::buffer:
  ------------------
  |  Branch (952:17): [True: 214k, False: 38.6k]
  ------------------
  953|   214k|                    key_buffer_.push_back('}');
  954|   214k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   214k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 214k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  955|   214k|                    level_stack_.pop_back();
  956|       |                    
  957|   214k|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (957:25): [True: 12.1k, False: 202k]
  ------------------
  958|  12.1k|                    {
  959|  12.1k|                        destination_->key(key_buffer_,context, ec);
  960|  12.1k|                        key_buffer_.clear();
  961|  12.1k|                    }
  962|   202k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (962:30): [True: 36.1k, False: 166k]
  ------------------
  963|  36.1k|                    {
  964|  36.1k|                        key_buffer_.push_back(':');
  965|  36.1k|                    }
  966|   214k|                    level_stack_.back().advance();
  967|   214k|                    break;
  968|  38.6k|                default:
  ------------------
  |  Branch (968:17): [True: 38.6k, False: 214k]
  ------------------
  969|  38.6k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  38.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 38.6k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  970|  38.6k|                    level_stack_.pop_back();
  971|  38.6k|                    level_stack_.back().advance();
  972|  38.6k|                    destination_->end_object(context, ec);
  973|  38.6k|                    break;
  974|   253k|            }
  975|   253k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   253k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  976|   253k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1478|   150k|        {
 1479|   150k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1479:17): [True: 45.7k, False: 104k]
  |  Branch (1479:49): [True: 77.9k, False: 26.3k]
  ------------------
 1480|   123k|            {
 1481|   123k|                key_.clear(); 
 1482|   123k|                key_.insert(key_.begin(), null_constant.begin(), null_constant.end());
 1483|   123k|            }
 1484|       |
 1485|   150k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1485:17): [True: 45.7k, False: 104k]
  ------------------
 1486|  45.7k|            {
 1487|  45.7k|                switch (level_stack_.back().target())
 1488|  45.7k|                {
 1489|  42.8k|                    case target_t::buffer:
  ------------------
  |  Branch (1489:21): [True: 42.8k, False: 2.91k]
  ------------------
 1490|  42.8k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1490:29): [True: 40.4k, False: 2.39k]
  ------------------
 1491|  40.4k|                        {
 1492|  40.4k|                            key_buffer_.push_back(',');
 1493|  40.4k|                        }
 1494|  42.8k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1495|  42.8k|                        key_buffer_.push_back(':');
 1496|  42.8k|                        break;
 1497|  2.91k|                    default:
  ------------------
  |  Branch (1497:21): [True: 2.91k, False: 42.8k]
  ------------------
 1498|  2.91k|                        destination_->key(key_, context, ec);
 1499|  2.91k|                        break;
 1500|  45.7k|                }
 1501|  45.7k|            }
 1502|   104k|            else
 1503|   104k|            {
 1504|   104k|                switch (level_stack_.back().target())
 1505|   104k|                {
 1506|  77.9k|                    case target_t::buffer:
  ------------------
  |  Branch (1506:21): [True: 77.9k, False: 26.3k]
  ------------------
 1507|  77.9k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1507:29): [True: 37.2k, False: 40.7k]
  |  Branch (1507:65): [True: 36.9k, False: 377]
  ------------------
 1508|  36.9k|                        {
 1509|  36.9k|                            key_buffer_.push_back(',');
 1510|  36.9k|                        }
 1511|  77.9k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1512|  77.9k|                        break;
 1513|  26.3k|                    default:
  ------------------
  |  Branch (1513:21): [True: 26.3k, False: 77.9k]
  ------------------
 1514|  26.3k|                        destination_->null_value(tag, context, ec);
 1515|  26.3k|                        break;
 1516|   104k|                }
 1517|   104k|            }
 1518|       |
 1519|   150k|            level_stack_.back().advance();
 1520|   150k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   150k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1521|   150k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1425|  20.0M|        {
 1426|  20.0M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1426:17): [True: 1.54M, False: 18.4M]
  |  Branch (1426:49): [True: 18.2M, False: 256k]
  ------------------
 1427|  19.7M|            {
 1428|  19.7M|                key_.clear(); 
 1429|  19.7M|                if (value)
  ------------------
  |  Branch (1429:21): [True: 69.1k, False: 19.6M]
  ------------------
 1430|  69.1k|                {
 1431|  69.1k|                    key_.insert(key_.begin(), true_constant.begin(), true_constant.end());
 1432|  69.1k|                }
 1433|  19.6M|                else
 1434|  19.6M|                {
 1435|  19.6M|                    key_.insert(key_.begin(), false_constant.begin(), false_constant.end());
 1436|  19.6M|                }
 1437|  19.7M|            }
 1438|       |
 1439|  20.0M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1439:17): [True: 1.54M, False: 18.4M]
  ------------------
 1440|  1.54M|            {
 1441|  1.54M|                switch (level_stack_.back().target())
 1442|  1.54M|                {
 1443|  1.48M|                    case target_t::buffer:
  ------------------
  |  Branch (1443:21): [True: 1.48M, False: 52.5k]
  ------------------
 1444|  1.48M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1444:29): [True: 1.46M, False: 20.4k]
  ------------------
 1445|  1.46M|                        {
 1446|  1.46M|                            key_buffer_.push_back(',');
 1447|  1.46M|                        }
 1448|  1.48M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1449|  1.48M|                        key_buffer_.push_back(':');
 1450|  1.48M|                        break;
 1451|  52.5k|                    default:
  ------------------
  |  Branch (1451:21): [True: 52.5k, False: 1.48M]
  ------------------
 1452|  52.5k|                        destination_->key(key_, context, ec);
 1453|  52.5k|                        break;
 1454|  1.54M|                }
 1455|  1.54M|            }
 1456|  18.4M|            else
 1457|  18.4M|            {
 1458|  18.4M|                switch (level_stack_.back().target())
 1459|  18.4M|                {
 1460|  18.2M|                    case target_t::buffer:
  ------------------
  |  Branch (1460:21): [True: 18.2M, False: 256k]
  ------------------
 1461|  18.2M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1461:29): [True: 16.7M, False: 1.48M]
  |  Branch (1461:65): [True: 16.7M, False: 3.24k]
  ------------------
 1462|  16.7M|                        {
 1463|  16.7M|                            key_buffer_.push_back(',');
 1464|  16.7M|                        }
 1465|  18.2M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1466|  18.2M|                        break;
 1467|   256k|                    default:
  ------------------
  |  Branch (1467:21): [True: 256k, False: 18.2M]
  ------------------
 1468|   256k|                        destination_->bool_value(value, tag, context, ec);
 1469|   256k|                        break;
 1470|  18.4M|                }
 1471|  18.4M|            }
 1472|       |
 1473|  20.0M|            level_stack_.back().advance();
 1474|  20.0M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  20.0M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1475|  20.0M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1075|   287k|        {
 1076|   287k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1076:17): [True: 10.9k, False: 276k]
  ------------------
 1077|  10.9k|            {
 1078|  10.9k|                switch (level_stack_.back().target())
 1079|  10.9k|                {
 1080|  9.70k|                    case target_t::buffer:
  ------------------
  |  Branch (1080:21): [True: 9.70k, False: 1.25k]
  ------------------
 1081|  9.70k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1081:29): [True: 8.24k, False: 1.45k]
  ------------------
 1082|  8.24k|                        {
 1083|  8.24k|                            key_buffer_.push_back(',');
 1084|  8.24k|                        }
 1085|  9.70k|                        key_buffer_.push_back('\"');
 1086|  9.70k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1087|  9.70k|                        key_buffer_.push_back('\"');
 1088|  9.70k|                        key_buffer_.push_back(':');
 1089|  9.70k|                        break;
 1090|  1.25k|                    default:
  ------------------
  |  Branch (1090:21): [True: 1.25k, False: 9.70k]
  ------------------
 1091|  1.25k|                        destination_->key(value, context, ec);
 1092|  1.25k|                        break;
 1093|  10.9k|                }
 1094|  10.9k|            }
 1095|   276k|            else
 1096|   276k|            {
 1097|   276k|                switch (level_stack_.back().target())
 1098|   276k|                {
 1099|   238k|                    case target_t::buffer:
  ------------------
  |  Branch (1099:21): [True: 238k, False: 38.8k]
  ------------------
 1100|   238k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1100:29): [True: 229k, False: 8.71k]
  |  Branch (1100:65): [True: 228k, False: 1.14k]
  ------------------
 1101|   228k|                        {
 1102|   228k|                            key_buffer_.push_back(',');
 1103|   228k|                        }
 1104|   238k|                        key_buffer_.push_back('\"');
 1105|   238k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1106|   238k|                        key_buffer_.push_back('\"');
 1107|   238k|                        break;
 1108|  38.8k|                    default:
  ------------------
  |  Branch (1108:21): [True: 38.8k, False: 238k]
  ------------------
 1109|  38.8k|                        destination_->string_value(value, tag, context, ec);
 1110|  38.8k|                        break;
 1111|   276k|                }
 1112|   276k|            }
 1113|       |
 1114|   287k|            level_stack_.back().advance();
 1115|   287k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   287k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1116|   287k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1122|  34.8k|        {
 1123|  34.8k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1123:17): [True: 10.6k, False: 24.1k]
  |  Branch (1123:49): [True: 14.1k, False: 10.0k]
  ------------------
 1124|  24.7k|            {
 1125|  24.7k|                key_.clear();
 1126|  24.7k|                switch (tag)
 1127|  24.7k|                {
 1128|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1128:21): [True: 0, False: 24.7k]
  ------------------
 1129|      0|                        bytes_to_base64(value.begin(), value.end(), key_);
 1130|      0|                        break;
 1131|      0|                    case semantic_tag::base16:
  ------------------
  |  Branch (1131:21): [True: 0, False: 24.7k]
  ------------------
 1132|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1133|      0|                        break;
 1134|  24.7k|                    default:
  ------------------
  |  Branch (1134:21): [True: 24.7k, False: 0]
  ------------------
 1135|  24.7k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1136|  24.7k|                        break;
 1137|  24.7k|                }
 1138|  24.7k|            }
 1139|       |
 1140|  34.8k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1140:17): [True: 10.6k, False: 24.1k]
  ------------------
 1141|  10.6k|            {
 1142|  10.6k|                switch (level_stack_.back().target())
 1143|  10.6k|                {
 1144|  9.08k|                    case target_t::buffer:
  ------------------
  |  Branch (1144:21): [True: 9.08k, False: 1.58k]
  ------------------
 1145|  9.08k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1145:29): [True: 6.96k, False: 2.11k]
  ------------------
 1146|  6.96k|                        {
 1147|  6.96k|                            key_buffer_.push_back(',');
 1148|  6.96k|                        }
 1149|  9.08k|                        key_buffer_.push_back('\"');
 1150|  9.08k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1151|  9.08k|                        key_buffer_.push_back('\"');
 1152|  9.08k|                        key_buffer_.push_back(':');
 1153|  9.08k|                        break;
 1154|  1.58k|                    default:
  ------------------
  |  Branch (1154:21): [True: 1.58k, False: 9.08k]
  ------------------
 1155|  1.58k|                        destination_->key(key_, context, ec);
 1156|  1.58k|                        break;
 1157|  10.6k|                }
 1158|  10.6k|            }
 1159|  24.1k|            else
 1160|  24.1k|            {
 1161|  24.1k|                switch (level_stack_.back().target())
 1162|  24.1k|                {
 1163|  14.1k|                    case target_t::buffer:
  ------------------
  |  Branch (1163:21): [True: 14.1k, False: 10.0k]
  ------------------
 1164|  14.1k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1164:29): [True: 6.51k, False: 7.60k]
  |  Branch (1164:65): [True: 6.06k, False: 454]
  ------------------
 1165|  6.06k|                        {
 1166|  6.06k|                            key_buffer_.push_back(',');
 1167|  6.06k|                        }
 1168|  14.1k|                        key_buffer_.push_back('\"');
 1169|  14.1k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1170|  14.1k|                        key_buffer_.push_back('\"');
 1171|  14.1k|                        break;
 1172|  10.0k|                    default:
  ------------------
  |  Branch (1172:21): [True: 10.0k, False: 14.1k]
  ------------------
 1173|  10.0k|                        destination_->byte_string_value(value, tag, context, ec);
 1174|  10.0k|                        break;
 1175|  24.1k|                }
 1176|  24.1k|            }
 1177|       |
 1178|  34.8k|            level_stack_.back().advance();
 1179|  34.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  34.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1180|  34.8k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1186|   128k|        {
 1187|   128k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1187:17): [True: 8.56k, False: 119k]
  |  Branch (1187:49): [True: 13.2k, False: 106k]
  ------------------
 1188|  21.7k|            {
 1189|  21.7k|                key_.clear();
 1190|  21.7k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1191|  21.7k|            }
 1192|       |
 1193|   128k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1193:17): [True: 8.56k, False: 119k]
  ------------------
 1194|  8.56k|            {
 1195|  8.56k|                switch (level_stack_.back().target())
 1196|  8.56k|                {
 1197|  5.01k|                    case target_t::buffer:
  ------------------
  |  Branch (1197:21): [True: 5.01k, False: 3.55k]
  ------------------
 1198|  5.01k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1198:29): [True: 3.49k, False: 1.51k]
  ------------------
 1199|  3.49k|                        {
 1200|  3.49k|                            key_buffer_.push_back(',');
 1201|  3.49k|                        }
 1202|  5.01k|                        key_buffer_.push_back('\"');
 1203|  5.01k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1204|  5.01k|                        key_buffer_.push_back('\"');
 1205|  5.01k|                        key_buffer_.push_back(':');
 1206|  5.01k|                        break;
 1207|  3.55k|                    default:
  ------------------
  |  Branch (1207:21): [True: 3.55k, False: 5.01k]
  ------------------
 1208|  3.55k|                        destination_->key(key_, context, ec);
 1209|  3.55k|                        break;
 1210|  8.56k|                }
 1211|  8.56k|            }
 1212|   119k|            else
 1213|   119k|            {
 1214|   119k|                switch (level_stack_.back().target())
 1215|   119k|                {
 1216|  13.2k|                    case target_t::buffer:
  ------------------
  |  Branch (1216:21): [True: 13.2k, False: 106k]
  ------------------
 1217|  13.2k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1217:29): [True: 9.07k, False: 4.14k]
  |  Branch (1217:65): [True: 7.39k, False: 1.67k]
  ------------------
 1218|  7.39k|                        {
 1219|  7.39k|                            key_buffer_.push_back(',');
 1220|  7.39k|                        }
 1221|  13.2k|                        key_buffer_.push_back('\"');
 1222|  13.2k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1223|  13.2k|                        key_buffer_.push_back('\"');
 1224|  13.2k|                        break;
 1225|   106k|                    default:
  ------------------
  |  Branch (1225:21): [True: 106k, False: 13.2k]
  ------------------
 1226|   106k|                        destination_->byte_string_value(value, ext_tag, context, ec);
 1227|   106k|                        break;
 1228|   119k|                }
 1229|   119k|            }
 1230|       |
 1231|   128k|            level_stack_.back().advance();
 1232|   128k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   128k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1233|   128k|        }
_ZN8jsoncons24basic_item_event_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  293|   459k|        {
  294|   459k|            visit_begin_array(length, tag, context, ec);
  295|   459k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   459k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  296|   459k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  362|  15.1M|        {
  363|  15.1M|            visit_uint64(value, tag, context, ec);
  364|  15.1M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  15.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  365|  15.1M|        }
_ZN8jsoncons24basic_item_event_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  299|   428k|        {
  300|   428k|            visit_end_array(context, ec);
  301|   428k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   428k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  302|   428k|        }
_ZN8jsoncons24basic_item_event_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  371|  2.03M|        {
  372|  2.03M|            visit_int64(value, tag, context, ec);
  373|  2.03M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  2.03M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  374|  2.03M|        }
_ZN8jsoncons24basic_item_event_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  389|  66.0k|        {
  390|  66.0k|            visit_double(value, tag, context, ec);
  391|  66.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  66.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  392|  66.0k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  858|  6.42k|            : destination_(std::addressof(visitor)), 
  859|  6.42k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  860|  6.42k|        {
  861|  6.42k|            level_stack_.emplace_back(target_t::destination,container_t::root); // root
  862|  6.42k|        }
_ZN8jsoncons24basic_item_event_visitorIcEC2Ev:
   51|  6.42k|        basic_item_event_visitor() = default;
_ZN8jsoncons24basic_item_event_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  275|   275k|        {
  276|   275k|            visit_begin_object(length, tag, context, ec);
  277|   275k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   275k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  278|   275k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  331|   287k|        {
  332|   287k|            visit_string(value, tag, context, ec);
  333|   287k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   287k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  334|   287k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  313|   150k|        {
  314|   150k|            visit_null(tag, context, ec);
  315|   150k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   150k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  316|   150k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  322|  20.0M|        {
  323|  20.0M|            visit_bool(value, tag, context, ec);
  324|  20.0M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  20.0M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  325|  20.0M|        }
_ZN8jsoncons24basic_item_event_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  342|  34.8k|        {
  343|  34.8k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  344|  34.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  34.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  345|  34.8k|        }
_ZN8jsoncons24basic_item_event_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  353|   128k|        {
  354|   128k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), ext_tag, context, ec);
  355|   128k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   128k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  356|   128k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  281|   253k|        {
  282|   253k|            visit_end_object(context, ec);
  283|   253k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   253k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  284|   253k|        }
_ZN8jsoncons24basic_item_event_visitorIcE5flushEv:
   56|  1.66k|        {
   57|  1.66k|            visit_flush();
   58|  1.66k|        }

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

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

_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2ERS7_:
  256|  51.2k|            : buf_ptr(std::addressof(buf))
  257|  51.2k|        {
  258|  51.2k|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE9push_backEc:
  287|   919k|        {
  288|   919k|            buf_ptr->push_back(ch);
  289|   919k|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvEC2ERS5_:
  315|  6.42k|            : buf_ptr(std::addressof(buf))
  316|  6.42k|        {
  317|  6.42k|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE9push_backEh:
  329|   106M|        {
  330|   106M|            buf_ptr->push_back(static_cast<value_type>(ch));
  331|   106M|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE5flushEv:
  325|  8.09k|        {
  326|  8.09k|        }

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  188|  6.42k|        {
  189|  6.42k|            if (buffer_)
  ------------------
  |  Branch (189:17): [True: 6.42k, False: 0]
  ------------------
  190|  6.42k|            {
  191|  6.42k|                std::allocator_traits<char_allocator_type>::deallocate(alloc_, buffer_, buffer_size_);
  192|  6.42k|            }
  193|  6.42k|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  171|  6.42k|            : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  172|  6.42k|              buffer_size_(default_max_buffer_size)
  173|  6.42k|        {
  174|  6.42k|            buffer_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, buffer_size_);
  175|  6.42k|            data_ = buffer_;
  176|  6.42k|        }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   54|  6.42k|          : std::basic_istream<CharT>(&nb_)
   55|  6.42k|        {
   56|  6.42k|        }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   40|  6.42k|            null_buffer() = default;
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8is_errorEv:
  276|  38.5M|        {
  277|  38.5M|            return stream_ptr_->bad();  
  278|  38.5M|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  343|  44.8M|        {
  344|  44.8M|            std::size_t len = 0;
  345|  44.8M|            if (length_ > 0)
  ------------------
  |  Branch (345:17): [True: 44.7M, False: 13.4k]
  ------------------
  346|  44.7M|            {
  347|  44.7M|                len = (std::min)(length_, length);
  348|  44.7M|                std::memcpy(p, data_, len*sizeof(value_type));
  349|  44.7M|                data_ += len;
  350|  44.7M|                length_ -= len;
  351|  44.7M|                position_ += len;
  352|  44.7M|            }
  353|  44.8M|            if (length - len == 0)
  ------------------
  |  Branch (353:17): [True: 44.7M, False: 15.4k]
  ------------------
  354|  44.7M|            {
  355|  44.7M|                return len;
  356|  44.7M|            }
  357|  15.4k|            else if (length - len < buffer_size_)
  ------------------
  |  Branch (357:22): [True: 15.1k, False: 293]
  ------------------
  358|  15.1k|            {
  359|  15.1k|                fill_buffer();
  360|  15.1k|                if (length_ > 0)
  ------------------
  |  Branch (360:21): [True: 10.7k, False: 4.40k]
  ------------------
  361|  10.7k|                {
  362|  10.7k|                    std::size_t len2 = (std::min)(length_, length-len);
  363|  10.7k|                    std::memcpy(p+len, data_, len2*sizeof(value_type));
  364|  10.7k|                    data_ += len2;
  365|  10.7k|                    length_ -= len2;
  366|  10.7k|                    position_ += len2;
  367|  10.7k|                    len += len2;
  368|  10.7k|                }
  369|  15.1k|                return len;
  370|  15.1k|            }
  371|    293|            else
  372|    293|            {
  373|    293|                if (stream_ptr_->eof())
  ------------------
  |  Branch (373:21): [True: 0, False: 293]
  ------------------
  374|      0|                {
  375|      0|                    length_ = 0;
  376|      0|                    return 0;
  377|      0|                }
  378|    293|                JSONCONS_TRY
  ------------------
  |  |   37|    293|    #define JSONCONS_TRY try
  ------------------
  379|    293|                {
  380|    293|                    std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  381|    293|                    std::size_t len2 = static_cast<std::size_t>(count);
  382|    293|                    if (len2 < length-len)
  ------------------
  |  Branch (382:25): [True: 26, False: 267]
  ------------------
  383|     26|                    {
  384|     26|                        stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  385|     26|                    }
  386|    293|                    len += len2;
  387|    293|                    position_ += len2;
  388|    293|                    return len;
  389|    293|                }
  390|    293|                JSONCONS_CATCH(const std::exception&)     
  391|    293|                {
  392|      0|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  393|      0|                    return 0;
  394|      0|                }
  395|    293|            }
  396|  44.8M|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEv:
  399|  15.1k|        {
  400|  15.1k|            if (stream_ptr_->eof())
  ------------------
  |  Branch (400:17): [True: 4.37k, False: 10.7k]
  ------------------
  401|  4.37k|            {
  402|  4.37k|                length_ = 0;
  403|  4.37k|                return;
  404|  4.37k|            }
  405|       |
  406|  10.7k|            data_ = buffer_;
  407|  10.7k|            JSONCONS_TRY
  ------------------
  |  |   37|  10.7k|    #define JSONCONS_TRY try
  ------------------
  408|  10.7k|            {
  409|  10.7k|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(buffer_), buffer_size_);
  410|  10.7k|                length_ = static_cast<std::size_t>(count);
  411|       |
  412|  10.7k|                if (length_ < buffer_size_)
  ------------------
  |  Branch (412:21): [True: 6.39k, False: 4.34k]
  ------------------
  413|  6.39k|                {
  414|  6.39k|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  415|  6.39k|                }
  416|  10.7k|            }
  417|  10.7k|            JSONCONS_CATCH(const std::exception&)     
  418|  10.7k|            {
  419|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  420|      0|                length_ = 0;
  421|      0|            }
  422|  10.7k|        }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEEENS2_9enable_ifIXaaaasr3std14is_convertibleIhNT_10value_typeEEE5valuesr10ext_traits11has_reserveISE_EE5valuentsr10ext_traits14has_data_exactIPhSE_EE5valueEmE4typeERS5_RSE_m:
  882|   250k|        {
  883|   250k|            std::size_t unread = length;
  884|       |
  885|   250k|            std::size_t n = (std::min)(max_buffer_length, unread);
  886|   254k|            while (n > 0 && !source.eof())
  ------------------
  |  Branch (886:20): [True: 3.73k, False: 250k]
  |  Branch (886:29): [True: 3.59k, False: 142]
  ------------------
  887|  3.59k|            {
  888|  3.59k|                v.reserve(v.size()+n);
  889|  3.59k|                std::size_t actual = 0;
  890|  5.51M|                while (actual < n)
  ------------------
  |  Branch (890:24): [True: 5.51M, False: 3.51k]
  ------------------
  891|  5.51M|                {
  892|  5.51M|                    typename Source::value_type c{};
  893|  5.51M|                    if (source.read(&c,1) != 1)
  ------------------
  |  Branch (893:25): [True: 78, False: 5.51M]
  ------------------
  894|     78|                    {
  895|     78|                        break;
  896|     78|                    }
  897|  5.51M|                    v.push_back(c);
  898|  5.51M|                    ++actual;
  899|  5.51M|                }
  900|  3.59k|                unread -= actual;
  901|  3.59k|                n = (std::min)(max_buffer_length, unread);
  902|  3.59k|            }
  903|       |
  904|   250k|            return length - unread;
  905|   250k|        }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|   145k|        {
  272|   145k|            return length_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:20): [True: 918, False: 144k]
  |  Branch (272:36): [True: 492, False: 426]
  ------------------
  273|   145k|        }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaaasr3std14is_convertibleIhNT_10value_typeEEE5valuesr10ext_traits11has_reserveISB_EE5valuesr10ext_traits14has_data_exactIPhSB_EE5valueEmE4typeERS5_RSB_m:
  859|   163k|        {
  860|   163k|            std::size_t unread = length;
  861|       |
  862|   163k|            std::size_t n = (std::min)(max_buffer_length, unread);
  863|   304k|            while (n > 0 && !source.eof())
  ------------------
  |  Branch (863:20): [True: 141k, False: 163k]
  |  Branch (863:29): [True: 141k, False: 350]
  ------------------
  864|   141k|            {
  865|   141k|                std::size_t offset = v.size();
  866|   141k|                v.resize(v.size()+n);
  867|   141k|                std::size_t actual = source.read(v.data()+offset, n);
  868|   141k|                unread -= actual;
  869|   141k|                n = (std::min)(max_buffer_length, unread);
  870|   141k|            }
  871|       |
  872|   163k|            return length - unread;
  873|   163k|        }

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  634|  47.6k|    basic_bigint() = default;
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  293|  83.8k|        : word_allocator_type(alloc)
  294|  83.8k|    {
  295|  83.8k|        ::new (&inlined_) inlined_storage();
  296|  83.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  113|  83.8k|            : is_allocated_(false),
  114|  83.8k|            is_negative_(false),
  115|  83.8k|            size_(0),
  116|  83.8k|            values_{0, 0}
  117|  83.8k|        {
  118|  83.8k|        }
_ZN8jsoncons9to_bigintIcEENS_16to_bigint_resultIT_EEPKS2_mRNS_12basic_bigintINSt3__19allocatorImEEEE:
 2128|  16.4k|{
 2129|  16.4k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  16.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 16.4k]
  |  |  ------------------
  ------------------
 2130|      0|    {
 2131|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2132|      0|    }
 2133|       |
 2134|  16.4k|    if (*data == '-')
  ------------------
  |  Branch (2134:9): [True: 1.59k, False: 14.8k]
  ------------------
 2135|  1.59k|    {
 2136|  1.59k|        return jsoncons::detail::to_bigint(data+1, length-1, true, value, std::allocator<uint64_t>{}); 
 2137|  1.59k|    }
 2138|  14.8k|    else
 2139|  14.8k|    {
 2140|  14.8k|        return jsoncons::detail::to_bigint(data, length, false, value, std::allocator<uint64_t>{}); 
 2141|  14.8k|    }
 2142|  16.4k|}
_ZN8jsoncons16to_bigint_resultIcEC2EPKcNSt3__14errcE:
  562|  16.4k|        : ptr(ptr_), ec(ec_)
  563|  16.4k|    {
  564|  16.4k|    }
_ZN8jsoncons6detail9to_bigintIcNSt3__19allocatorImEEEENS_16to_bigint_resultIT_EEPKS6_mbRNS_12basic_bigintIT0_EERKSB_:
 2041|  16.4k|{
 2042|  16.4k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  16.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 16.4k]
  |  |  ------------------
  ------------------
 2043|      0|    {
 2044|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2045|      0|    }
 2046|       |
 2047|  16.4k|    using word_type = typename basic_bigint<Allocator>::word_type;
 2048|       |
 2049|  16.4k|    const CharT* last = data + length;
 2050|  16.4k|    const CharT* p = data;
 2051|       |
 2052|  17.2k|    while (p < last && *p == '0')
  ------------------
  |  Branch (2052:12): [True: 16.4k, False: 814]
  |  Branch (2052:24): [True: 814, False: 15.5k]
  ------------------
 2053|    814|    {
 2054|    814|        ++p;
 2055|    814|    }
 2056|  16.4k|    if (p == last)
  ------------------
  |  Branch (2056:9): [True: 814, False: 15.5k]
  ------------------
 2057|    814|    {
 2058|    814|        value = std::move(basic_bigint<Allocator>{0, alloc});
 2059|    814|        return to_bigint_result<CharT>(last, std::errc{});
 2060|    814|    }
 2061|  15.5k|    std::size_t num_digits = last - data;
 2062|  15.5k|    std::size_t num_words;
 2063|  15.5k|    if (length < 10)
  ------------------
  |  Branch (2063:9): [True: 583, False: 15.0k]
  ------------------
 2064|    583|    {
 2065|    583|        num_words = 1;
 2066|    583|    }
 2067|  15.0k|    else
 2068|  15.0k|    {
 2069|  15.0k|        std::size_t num_bits = (std::size_t)(((num_digits * detail::bits_per_digit[10]) >> 10) + 1);
 2070|  15.0k|        num_words = (num_bits + 63) >> 6;
 2071|  15.0k|    }
 2072|       |
 2073|  15.5k|    basic_bigint<Allocator> v(0, alloc);
 2074|  15.5k|    v.reserve(num_words);
 2075|   323k|    for (std::size_t i = 0; i < length; i++)
  ------------------
  |  Branch (2075:29): [True: 307k, False: 15.5k]
  ------------------
 2076|   307k|    {
 2077|   307k|        CharT c = data[i];
 2078|   307k|        if (JSONCONS_LIKELY(c >= '0' && c <= '9'))
  ------------------
  |  |   77|   615k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 307k, False: 0]
  |  |  |  Branch (77:48): [True: 307k, False: 0]
  |  |  |  Branch (77:48): [True: 307k, False: 0]
  |  |  ------------------
  ------------------
 2079|   307k|        {
 2080|   307k|            v *= 10u;
 2081|   307k|            v += (word_type)(c - '0');
 2082|   307k|        }
 2083|      0|        else
 2084|      0|        {
 2085|      0|            return to_bigint_result<CharT>(data + i, std::errc::invalid_argument);
 2086|      0|        }
 2087|   307k|    }
 2088|       |
 2089|  15.5k|    if (neg)
  ------------------
  |  Branch (2089:9): [True: 1.59k, False: 14.0k]
  ------------------
 2090|  1.59k|    {
 2091|  1.59k|        v.set_negative(true);
 2092|  1.59k|    }
 2093|       |
 2094|  15.5k|    value = std::move(v);
 2095|  15.5k|    return to_bigint_result<CharT>(last, std::errc{});
 2096|  15.5k|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  686|  32.8k|        : storage_(n, alloc)
  687|  32.8k|    {
  688|  32.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  353|  32.8k|        : word_allocator_type(alloc)
  354|  32.8k|    {
  355|  32.8k|        ::new (&inlined_) inlined_storage(n);
  356|  32.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  32.8k|            : is_allocated_(false),
  126|  32.8k|            is_negative_(n < 0),
  127|  32.8k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 32.8k, False: 0]
  ------------------
  128|  32.8k|        {
  129|  32.8k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 0, False: 32.8k]
  ------------------
  130|  32.8k|            values_[1] = 0;
  131|  32.8k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  835|   157k|    {
  836|   157k|        storage_ = y.storage_;
  837|   157k|        return *this;
  838|   157k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  359|   157k|    {
  360|   157k|        if (this != &other)
  ------------------
  |  Branch (360:13): [True: 157k, False: 0]
  ------------------
  361|   157k|        {
  362|   157k|            auto other_view = other.get_storage_view();
  363|   157k|            resize(other_view.size());
  364|   157k|            auto this_view = get_storage_view();
  365|   157k|            if (other_view.size() > 0)
  ------------------
  |  Branch (365:17): [True: 108k, False: 48.6k]
  ------------------
  366|   108k|            {
  367|   108k|                common_.is_negative_ = other.common_.is_negative_;
  368|   108k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  369|   108k|            }
  370|   157k|        }
  371|   157k|        return *this;
  372|   157k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  520|   436k|    {
  521|   436k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (521:16): [True: 37.0k, False: 399k]
  ------------------
  522|  37.0k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  523|   436k|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  524|   436k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   64|   436k|            : data_(data), size_(size)
   65|   436k|        {
   66|   436k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  527|   857k|    {
  528|   857k|        size_type old_length = common_.size_;
  529|   857k|        reserve(new_length);
  530|   857k|        common_.size_ = new_length;
  531|       |
  532|   857k|        if (old_length < new_length)
  ------------------
  |  Branch (532:13): [True: 771k, False: 85.8k]
  ------------------
  533|   771k|        {
  534|   771k|            if (is_allocated())
  ------------------
  |  Branch (534:17): [True: 45.9k, False: 725k]
  ------------------
  535|  45.9k|            {
  536|  45.9k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  537|  45.9k|            }
  538|   725k|            else
  539|   725k|            {
  540|   725k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   45|   725k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 725k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  541|  1.56M|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (541:48): [True: 842k, False: 725k]
  ------------------
  542|   842k|                {
  543|   842k|                    inlined_.values_[i] = 0;
  544|   842k|                }
  545|   725k|            }
  546|   771k|        }
  547|   857k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  445|   872k|    {
  446|   872k|       if (capacity() < n)
  ------------------
  |  Branch (446:12): [True: 9.56k, False: 863k]
  ------------------
  447|  9.56k|       {
  448|  9.56k|           if (!is_allocated())
  ------------------
  |  Branch (448:16): [True: 9.56k, False: 0]
  ------------------
  449|  9.56k|           {
  450|  9.56k|               size_type size = inlined_.size_;
  451|  9.56k|               size_type is_neg = inlined_.is_negative_;
  452|  9.56k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  453|       |
  454|  9.56k|               ::new (&allocated_) allocated_storage();
  455|  9.56k|               allocated_.reserve(n, get_allocator());
  456|  9.56k|               allocated_.size_ = size;
  457|  9.56k|               allocated_.is_negative_ = is_neg;
  458|  9.56k|               if (n >= 1)
  ------------------
  |  Branch (458:20): [True: 9.56k, False: 0]
  ------------------
  459|  9.56k|               {
  460|  9.56k|                   allocated_.data_[0] = values[0];
  461|  9.56k|               }
  462|  9.56k|               if (n >= 2)
  ------------------
  |  Branch (462:20): [True: 9.56k, False: 0]
  ------------------
  463|  9.56k|               {
  464|  9.56k|                   allocated_.data_[1] = values[1];
  465|  9.56k|               }
  466|  9.56k|           }
  467|      0|           else
  468|      0|           {
  469|      0|               allocated_.reserve(n, get_allocator());
  470|      0|           }
  471|  9.56k|       }
  472|   872k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  498|   872k|    {
  499|   872k|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (499:16): [True: 50.1k, False: 822k]
  ------------------
  500|   872k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  203|  9.56k|            : is_allocated_(true),
  204|  9.56k|            is_negative_(false)
  205|  9.56k|        {
  206|  9.56k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  255|  9.56k|        {
  256|  9.56k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   45|  9.56k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 9.56k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  257|  9.56k|            size_type capacity_new = round_up(n);
  258|       |
  259|  9.56k|            real_allocator_type alloc(a);
  260|  9.56k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  261|  9.56k|            if (size_ > 0)
  ------------------
  |  Branch (261:17): [True: 0, False: 9.56k]
  ------------------
  262|      0|            {
  263|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  264|      0|            }
  265|  9.56k|            if (data_ != nullptr)
  ------------------
  |  Branch (265:17): [True: 0, False: 9.56k]
  ------------------
  266|      0|            {
  267|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  268|      0|            }
  269|  9.56k|            capacity_ = capacity_new;
  270|  9.56k|            data_ = data_new;
  271|  9.56k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  275|  9.56k|        {
  276|  9.56k|            size_type remainder = i % mem_unit;
  277|  9.56k|            size_type off = mem_unit - remainder;
  278|  9.56k|            bool testoff = i < max_size - off;
  279|  9.56k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   45|  9.56k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 9.56k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  280|       |
  281|  9.56k|            return i + off;
  282|  9.56k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  475|   332k|    {
  476|   332k|        return static_cast<const word_allocator_type&>(*this);
  477|   332k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  493|  2.38M|    {
  494|  2.38M|        return common_.is_allocated_;
  495|  2.38M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   84|   919k|        {
   85|   919k|            return size_;
   86|   919k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  513|  2.62M|    {
  514|  2.62M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (514:16): [True: 203k, False: 2.42M]
  ------------------
  515|   203k|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  516|  2.62M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  517|  2.62M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   64|  2.62M|            : data_(data), size_(size)
   65|  2.62M|        {
   66|  2.62M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   79|   122k|        {
   80|   122k|            return data_;
   81|   122k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   79|   108k|        {
   80|   108k|            return data_;
   81|   108k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  816|  15.5k|    {
  817|  15.5k|        storage_.reserve(n);
  818|  15.5k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIjEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  991|   307k|    {
  992|   307k|        auto this_view = get_storage_view();
  993|   307k|        size_type len0 = this_view.size();
  994|   307k|        word_type dig = this_view[0];
  995|   307k|        word_type carry = 0;
  996|       |
  997|   307k|        resize(this_view.size() + 1);
  998|   307k|        this_view = get_storage_view();
  999|       |
 1000|   307k|        size_type i = 0;
 1001|   618k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1001:16): [True: 310k, False: 307k]
  ------------------
 1002|   310k|        {
 1003|   310k|            word_type hi;
 1004|   310k|            word_type lo;
 1005|   310k|            DDproduct( dig, y, hi, lo );
 1006|   310k|            this_view[i] = lo + carry;
 1007|   310k|            dig = this_view[i+1];
 1008|   310k|            carry = hi + (this_view[i] < lo);
 1009|   310k|        }
 1010|   307k|        this_view[i] = carry;
 1011|   307k|        reduce();
 1012|   307k|        return *this;
 1013|   307k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  711|  1.74M|    {
  712|  1.74M|        return storage_.get_storage_view();
  713|  1.74M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   84|  2.49M|        {
   85|  2.49M|            return size_;
   86|  2.49M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   69|  3.00M|        {
   70|  3.00M|            return data_[i];
   71|  3.00M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  811|   699k|    {
  812|   699k|        storage_.resize(new_length);
  813|   699k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1774|   352k|    {
 1775|   352k|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1776|   352k|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1777|       |
 1778|   352k|        lo = loA * loB;
 1779|   352k|        hi = hiA * hiB;
 1780|   352k|        word_type mid1 = loA * hiB;
 1781|   352k|        word_type mid2 = hiA * loB;
 1782|   352k|        word_type old = lo;
 1783|   352k|        lo += mid1 << word_type_half_bits;
 1784|   352k|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1785|   352k|        old = lo;
 1786|   352k|        lo += mid2 << word_type_half_bits;
 1787|   352k|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1788|   352k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1910|   721k|    {
 1911|   721k|        storage_.reduce();
 1912|   721k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  422|   721k|    {
  423|   721k|        if (common_.size_ > 0)
  ------------------
  |  Branch (423:13): [True: 721k, False: 0]
  ------------------
  424|   721k|        {
  425|   721k|            auto this_view = get_storage_view();
  426|   721k|            word_type* p = this_view.end() - 1;
  427|   721k|            word_type* first = this_view.begin();
  428|  1.39M|            while ( p >= first )
  ------------------
  |  Branch (428:21): [True: 1.37M, False: 19.5k]
  ------------------
  429|  1.37M|            {
  430|  1.37M|                if ( *p )
  ------------------
  |  Branch (430:22): [True: 701k, False: 673k]
  ------------------
  431|   701k|                {
  432|   701k|                    break;
  433|   701k|                }
  434|   673k|                --common_.size_;
  435|   673k|                --p;
  436|   673k|            }
  437|   721k|        }
  438|   721k|        if (common_.size_ == 0)
  ------------------
  |  Branch (438:13): [True: 19.5k, False: 701k]
  ------------------
  439|  19.5k|        {
  440|  19.5k|            common_.is_negative_ = false;
  441|  19.5k|        }
  442|   721k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   93|   721k|        {
   94|   721k|            return data_ + size_;
   95|   721k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   88|   721k|        {
   89|   721k|            return data_;
   90|   721k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  882|   336k|    {
  883|   336k|        if ( is_negative())
  ------------------
  |  Branch (883:14): [True: 0, False: 336k]
  ------------------
  884|      0|            return *this -= -basic_bigint<Allocator>(y);
  885|       |
  886|   336k|        word_type d;
  887|   336k|        word_type carry = 0;
  888|       |
  889|   336k|        auto this_view = get_storage_view();
  890|   336k|        resize(this_view.size() + 1);
  891|       |
  892|   336k|        this_view = get_storage_view();
  893|   336k|        const size_type this_size = this_view.size();
  894|   336k|        size_type y_size = 1;
  895|       |
  896|   336k|        d = this_view[0] + carry;
  897|   336k|        carry = d < carry;
  898|   336k|        this_view[0] = d + y;
  899|   336k|        if (this_view[0] < d)
  ------------------
  |  Branch (899:13): [True: 915, False: 335k]
  ------------------
  900|    915|            carry = 1;
  901|       |
  902|   337k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (902:36): [True: 319k, False: 18.0k]
  |  Branch (902:53): [True: 915, False: 318k]
  ------------------
  903|    915|        {
  904|    915|            d = this_view[i] + carry;
  905|    915|            carry = d < carry;
  906|    915|            this_view[i] = d;
  907|    915|        }
  908|   336k|        reduce();
  909|   336k|        return *this;
  910|   336k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  721|   959k|    {
  722|   959k|        return storage_.is_negative();
  723|   959k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  503|   959k|    {
  504|   959k|        return common_.is_negative_;
  505|   959k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  686|   161k|        : storage_(n, alloc)
  687|   161k|    {
  688|   161k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  353|   161k|        : word_allocator_type(alloc)
  354|   161k|    {
  355|   161k|        ::new (&inlined_) inlined_storage(n);
  356|   161k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|   161k|            : is_allocated_(false),
  139|   161k|            is_negative_(false),
  140|   161k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 49.3k, False: 112k]
  ------------------
  141|   161k|        {
  142|   161k|            values_[0] = n;
  143|   161k|            values_[1] = 0;
  144|   161k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  828|  4.56k|    {
  829|  4.56k|        basic_bigint<Allocator> v(*this);
  830|  4.56k|        v.set_negative(!v.is_negative());
  831|  4.56k|        return v;
  832|  4.56k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  664|  41.8k|        : storage_(other.storage_)
  665|  41.8k|    {
  666|  41.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  299|  41.8k|        : word_allocator_type(other.get_allocator())
  300|  41.8k|    {
  301|  41.8k|        if (!other.is_allocated())
  ------------------
  |  Branch (301:13): [True: 34.9k, False: 6.86k]
  ------------------
  302|  34.9k|        {
  303|  34.9k|            ::new (&inlined_) inlined_storage(other.inlined_);
  304|  34.9k|        }
  305|  6.86k|        else
  306|  6.86k|        {
  307|  6.86k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  308|  6.86k|        }
  309|  41.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  178|   179k|            : is_allocated_(false),
  179|   179k|            is_negative_(stor.is_negative_),
  180|   179k|            size_(stor.size_)
  181|   179k|        {
  182|   179k|            values_[0] = stor.values_[0];
  183|   179k|            values_[1] = stor.values_[1];
  184|   179k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  209|  27.4k|            : is_allocated_(true),
  210|  27.4k|              is_negative_(stor.is_negative_),
  211|  27.4k|              size_(stor.size_),
  212|  27.4k|              capacity_(stor.capacity_)
  213|  27.4k|        {
  214|  27.4k|            real_allocator_type alloc(a);
  215|       |
  216|  27.4k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  217|  27.4k|            JSONCONS_TRY
  ------------------
  |  |   37|  27.4k|    #define JSONCONS_TRY try
  ------------------
  218|  27.4k|            {
  219|  27.4k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  220|  27.4k|            }
  221|  27.4k|            JSONCONS_CATCH(...)
  222|  27.4k|            {
  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|  27.4k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   45|  27.4k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 27.4k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  228|  27.4k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  229|  27.4k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  947|  4.56k|    {
  948|  4.56k|        auto y_view = y.get_storage_view();
  949|       |
  950|  4.56k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (950:14): [True: 4.56k, False: 0]
  ------------------
  951|  4.56k|            return *this += -y;
  952|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (952:15): [True: 0, False: 0]
  |  Branch (952:33): [True: 0, False: 0]
  |  Branch (952:48): [True: 0, False: 0]
  |  Branch (952:65): [True: 0, False: 0]
  ------------------
  953|      0|            return *this = -(y - *this);
  954|      0|        word_type borrow = 0;
  955|      0|        word_type d;
  956|      0|        auto this_view = get_storage_view();
  957|      0|        const size_type this_size = this_view.size();
  958|      0|        const size_type y_size = y_view.size();
  959|       |
  960|      0|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (960:31): [True: 0, False: 0]
  ------------------
  961|      0|        {
  962|      0|            d = this_view[i] - borrow;
  963|      0|            borrow = d > this_view[i];
  964|      0|            this_view[i] = d - y_view[i];
  965|      0|            if ( this_view[i] > d )
  ------------------
  |  Branch (965:18): [True: 0, False: 0]
  ------------------
  966|      0|                borrow = 1;
  967|      0|        }
  968|      0|        for (size_type i = y_size; i < this_size && borrow != 0; i++ )
  ------------------
  |  Branch (968:36): [True: 0, False: 0]
  |  Branch (968:53): [True: 0, False: 0]
  ------------------
  969|      0|        {
  970|      0|            d = this_view[i] - borrow;
  971|      0|            borrow = d > this_view[i];
  972|      0|            this_view[i] = d;
  973|      0|        }
  974|      0|        reduce();
  975|      0|        return *this;
  976|      0|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  716|   279k|    {
  717|   279k|        return storage_.get_storage_view();
  718|   279k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  913|  4.56k|    {
  914|  4.56k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (914:14): [True: 0, False: 4.56k]
  ------------------
  915|      0|            return *this -= -y;
  916|       |
  917|  4.56k|        auto y_view = y.get_storage_view();
  918|       |        
  919|  4.56k|        word_type d;
  920|  4.56k|        word_type carry = 0;
  921|       |
  922|  4.56k|        auto this_view = get_storage_view();
  923|  4.56k|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  924|  4.56k|        this_view = get_storage_view();
  925|       |
  926|  4.56k|        const size_t this_size = this_view.size();
  927|  4.56k|        const size_t y_size = y_view.size();
  928|  8.83k|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (928:31): [True: 4.26k, False: 4.56k]
  ------------------
  929|  4.26k|        {
  930|  4.26k|            d = this_view[i] + carry;
  931|  4.26k|            carry = d < carry;
  932|  4.26k|            this_view[i] = d + y_view[i];
  933|  4.26k|            if (this_view[i] < d)
  ------------------
  |  Branch (933:17): [True: 1.73k, False: 2.52k]
  ------------------
  934|  1.73k|                carry = 1;
  935|  4.26k|        }
  936|  6.30k|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (936:36): [True: 6.30k, False: 4]
  |  Branch (936:53): [True: 1.73k, False: 4.56k]
  ------------------
  937|  1.73k|        {
  938|  1.73k|            d = this_view[i] + carry;
  939|  1.73k|            carry = d < carry;
  940|  1.73k|            this_view[i] = d;
  941|  1.73k|        }
  942|  4.56k|        reduce();
  943|  4.56k|        return *this;
  944|  4.56k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1634|   100k|    {
 1635|   100k|        auto this_view = get_storage_view();
 1636|   100k|        auto y_view = y.get_storage_view();
 1637|       |
 1638|   100k|        const size_type y_size = y_view.size();
 1639|   100k|        if ( this_view.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1639:14): [True: 1.61k, False: 98.7k]
  |  Branch (1639:39): [True: 1.61k, False: 0]
  ------------------
 1640|  1.61k|            return 0;
 1641|  98.7k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1641:14): [True: 6.16k, False: 92.6k]
  ------------------
 1642|  6.16k|            return y.is_negative() - is_negative();
 1643|  92.6k|        int code = 0;
 1644|  92.6k|        if ( this_view.size() < y_size)
  ------------------
  |  Branch (1644:14): [True: 0, False: 92.6k]
  ------------------
 1645|      0|            code = -1;
 1646|  92.6k|        else if ( this_view.size() > y_size)
  ------------------
  |  Branch (1646:19): [True: 27.2k, False: 65.3k]
  ------------------
 1647|  27.2k|            code = +1;
 1648|  65.3k|        else
 1649|  65.3k|        {
 1650|  74.5k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1650:50): [True: 65.3k, False: 9.20k]
  ------------------
 1651|  65.3k|            {
 1652|  65.3k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1652:21): [True: 19.3k, False: 46.0k]
  ------------------
 1653|  19.3k|                {
 1654|  19.3k|                    code = 1;
 1655|  19.3k|                    break;
 1656|  19.3k|                }
 1657|  46.0k|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1657:26): [True: 36.8k, False: 9.20k]
  ------------------
 1658|  36.8k|                {
 1659|  36.8k|                    code = -1;
 1660|  36.8k|                    break;
 1661|  36.8k|                }
 1662|  65.3k|            }
 1663|  65.3k|        }
 1664|  92.6k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1664:16): [True: 0, False: 92.6k]
  ------------------
 1665|  98.7k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1469|  75.2k|    {
 1470|  75.2k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1470:15): [True: 36.8k, False: 38.4k]
  ------------------
 1471|  75.2k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   69|   266k|        {
   70|   266k|            return data_[i];
   71|   266k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  726|   307k|    {
  727|   307k|        storage_.set_negative(value);
  728|   307k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  508|   307k|    {
  509|   307k|        common_.is_negative_ = value;
  510|   307k|    }
_ZNK8jsoncons16to_bigint_resultIcEcvbEv:
  571|  16.4k|    {
  572|  16.4k|        return ec == std::errc{};
  573|  16.4k|    }
_ZN8jsonconsneERKNS_12basic_bigintINSt3__19allocatorImEEEEi:
 1464|  16.4k|    {
 1465|  16.4k|        return x.compare(basic_bigint<Allocator>(y)) != 0 ? true : false;
  ------------------
  |  Branch (1465:16): [True: 15.5k, False: 814]
  ------------------
 1466|  16.4k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1668|  75.2k|    {
 1669|  75.2k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1670|  75.2k|        auto denom_view = denom.get_storage_view();
 1671|       |
 1672|  75.2k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1672:13): [True: 0, False: 75.2k]
  ------------------
 1673|      0|        {
 1674|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1675|      0|        }
 1676|  75.2k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1677|  75.2k|        bool rem_neg = is_negative();
 1678|  75.2k|        basic_bigint<Allocator> num(*this, get_allocator());
 1679|  75.2k|        num.set_negative(false);
 1680|  75.2k|        denom.set_negative(false);
 1681|  75.2k|        if ( num < denom )
  ------------------
  |  Branch (1681:14): [True: 36.8k, False: 38.4k]
  ------------------
 1682|  36.8k|        {
 1683|  36.8k|            quot = word_type(0);
 1684|  36.8k|            quot.set_negative(quot_neg);
 1685|  36.8k|            rem = num;
 1686|  36.8k|            rem.set_negative(rem_neg);
 1687|  36.8k|            return;
 1688|  36.8k|        }
 1689|       |
 1690|  38.4k|        auto num_view = num.get_storage_view();
 1691|  38.4k|        auto quot_view = quot.get_storage_view();
 1692|  38.4k|        auto this_view = get_storage_view();
 1693|       |
 1694|  38.4k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1694:14): [True: 38.4k, False: 0]
  |  Branch (1694:40): [True: 28.5k, False: 9.89k]
  ------------------
 1695|  28.5k|        {
 1696|  28.5k|            quot = word_type( num_view[0]/denom_view[0] );
 1697|  28.5k|            rem = word_type( num_view[0]%denom_view[0] );
 1698|  28.5k|            quot.set_negative(quot_neg);
 1699|  28.5k|            rem.set_negative(rem_neg);
 1700|  28.5k|            return;
 1701|  28.5k|        }
 1702|  9.89k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1702:13): [True: 9.89k, False: 0]
  |  Branch (1702:39): [True: 2.72k, False: 7.16k]
  ------------------
 1703|  2.72k|        {
 1704|       |            // Denominator fits into a half word
 1705|  2.72k|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1706|  2.72k|            quot.resize(this_view.size());
 1707|  2.72k|            quot_view = quot.get_storage_view();
 1708|  8.17k|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1708:48): [True: 5.45k, False: 2.72k]
  ------------------
 1709|  5.45k|            {
 1710|  5.45k|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1711|  5.45k|                q1 = dividend/divisor;
 1712|  5.45k|                r = dividend % divisor;
 1713|  5.45k|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1714|  5.45k|                q2 = dividend/divisor;
 1715|  5.45k|                dHi = dividend % divisor;
 1716|  5.45k|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1717|  5.45k|            }
 1718|  2.72k|            quot.reduce();
 1719|  2.72k|            rem = dHi;
 1720|  2.72k|            quot.set_negative(quot_neg);
 1721|  2.72k|            rem.set_negative(rem_neg);
 1722|  2.72k|            return;
 1723|  2.72k|        }
 1724|  7.16k|        basic_bigint<Allocator> num0(num, get_allocator());
 1725|  7.16k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1726|  7.16k|        int x = 0;
 1727|  7.16k|        bool second_done = normalize(denom, num, x);
 1728|  7.16k|        denom_view = denom.get_storage_view();
 1729|  7.16k|        num_view = num.get_storage_view();
 1730|       |
 1731|  7.16k|        size_type l = denom_view.size() - 1;
 1732|  7.16k|        size_type n = num_view.size() - 1;
 1733|  7.16k|        quot.resize(n - l);
 1734|  7.16k|        quot_view = quot.get_storage_view();
 1735|  14.3k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1735:46): [True: 7.16k, False: 7.16k]
  ------------------
 1736|  7.16k|        {
 1737|  7.16k|            quot_view[i] = 0;
 1738|  7.16k|        }
 1739|  7.16k|        rem = num;
 1740|  7.16k|        auto rem_view = rem.get_storage_view();
 1741|  7.16k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1741:14): [True: 0, False: 7.16k]
  ------------------
 1742|      0|        {
 1743|      0|            rem.resize(rem_view.size() + 1);
 1744|      0|            rem_view = rem.get_storage_view();
 1745|      0|            n++;
 1746|      0|            quot.resize(quot_view.size() + 1);
 1747|      0|            quot_view = quot.get_storage_view();
 1748|      0|        }
 1749|  7.16k|        word_type d = denom_view[l];
 1750|       |
 1751|  14.3k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1751:32): [True: 7.16k, False: 7.16k]
  ------------------
 1752|  7.16k|        {
 1753|  7.16k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1754|  7.16k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1755|  7.16k|            quot_view[k - l - 1] = q;
 1756|  7.16k|        }
 1757|  7.16k|        quot.reduce();
 1758|  7.16k|        quot.set_negative(quot_neg);
 1759|  7.16k|        if (remDesired)
  ------------------
  |  Branch (1759:13): [True: 7.16k, False: 0]
  ------------------
 1760|  7.16k|        {
 1761|  7.16k|            unnormalize(rem, x, second_done);
 1762|  7.16k|            rem.set_negative(rem_neg);
 1763|  7.16k|        }
 1764|  7.16k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  706|   237k|    {
  707|   237k|        return storage_.get_allocator();
  708|   237k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  669|   164k|        : storage_(other.storage_, alloc)
  670|   164k|    {
  671|   164k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  312|   164k|        : word_allocator_type(alloc)
  313|   164k|    {
  314|   164k|        if (!other.is_allocated())
  ------------------
  |  Branch (314:13): [True: 144k, False: 20.6k]
  ------------------
  315|   144k|        {
  316|   144k|            ::new (&inlined_) inlined_storage(other.inlined_);
  317|   144k|        }
  318|  20.6k|        else
  319|  20.6k|        {
  320|  20.6k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  321|  20.6k|        }
  322|   164k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1865|  7.16k|    {
 1866|  7.16k|        auto denom_view = denom.get_storage_view();
 1867|  7.16k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1867:13): [True: 0, False: 7.16k]
  ------------------
 1868|      0|        {
 1869|      0|            return false;
 1870|      0|        }
 1871|  7.16k|        size_type r = denom_view.size() - 1;
 1872|  7.16k|        word_type y = denom_view[r];
 1873|       |
 1874|  7.16k|        x = 0;
 1875|  7.16k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1875:17): [True: 0, False: 7.16k]
  ------------------
 1876|      0|        {
 1877|      0|            y <<= 1;
 1878|      0|            x++;
 1879|      0|        }
 1880|  7.16k|        denom <<= x;
 1881|  7.16k|        num <<= x;
 1882|       |
 1883|  7.16k|        denom_view = denom.get_storage_view();
 1884|  7.16k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1884:14): [True: 0, False: 7.16k]
  |  Branch (1884:23): [True: 0, False: 0]
  ------------------
 1885|      0|        {
 1886|      0|            denom *= max_word;
 1887|      0|            num *= max_word;
 1888|      0|            return true;
 1889|      0|        }
 1890|  7.16k|        return false;
 1891|  7.16k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1110|  14.3k|    {
 1111|  14.3k|        auto this_view = get_storage_view();
 1112|  14.3k|        size_type q = k / word_type_bits;
 1113|  14.3k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1113:14): [True: 0, False: 14.3k]
  ------------------
 1114|      0|        {
 1115|      0|            resize(this_view.size() + q);
 1116|      0|            this_view = get_storage_view();
 1117|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1117:50): [True: 0, False: 0]
  ------------------
 1118|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1118:34): [True: 0, False: 0]
  ------------------
 1119|      0|            k %= word_type_bits;
 1120|      0|        }
 1121|  14.3k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1121:14): [True: 0, False: 14.3k]
  ------------------
 1122|      0|        {
 1123|      0|            size_type k1 = word_type_bits - k;
 1124|      0|            word_type mask = (word_type(1) << k) - word_type(1);
 1125|      0|            resize( this_view.size() + 1 );
 1126|      0|            this_view = get_storage_view();
 1127|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1127:50): [True: 0, False: 0]
  ------------------
 1128|      0|            {
 1129|      0|                this_view[i] <<= k;
 1130|      0|                if ( i > 0 )
  ------------------
  |  Branch (1130:22): [True: 0, False: 0]
  ------------------
 1131|      0|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1132|      0|            }
 1133|      0|        }
 1134|  14.3k|        reduce();
 1135|  14.3k|        return *this;
 1136|  14.3k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  991|  37.2k|    {
  992|  37.2k|        auto this_view = get_storage_view();
  993|  37.2k|        size_type len0 = this_view.size();
  994|  37.2k|        word_type dig = this_view[0];
  995|  37.2k|        word_type carry = 0;
  996|       |
  997|  37.2k|        resize(this_view.size() + 1);
  998|  37.2k|        this_view = get_storage_view();
  999|       |
 1000|  37.2k|        size_type i = 0;
 1001|  72.2k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1001:16): [True: 34.9k, False: 37.2k]
  ------------------
 1002|  34.9k|        {
 1003|  34.9k|            word_type hi;
 1004|  34.9k|            word_type lo;
 1005|  34.9k|            DDproduct( dig, y, hi, lo );
 1006|  34.9k|            this_view[i] = lo + carry;
 1007|  34.9k|            dig = this_view[i+1];
 1008|  34.9k|            carry = hi + (this_view[i] < lo);
 1009|  34.9k|        }
 1010|  37.2k|        this_view[i] = carry;
 1011|  37.2k|        reduce();
 1012|  37.2k|        return *this;
 1013|  37.2k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1792|  7.16k|    {
 1793|  7.16k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1794|  7.16k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1795|  7.16k|        qHi = A/(dHi + 1);
 1796|       |        // This initial guess of qHi may be too small.
 1797|  7.16k|        middle = qHi * dLo;
 1798|  7.16k|        left = qHi * dHi;
 1799|  7.16k|        x = B - (middle << word_type_half_bits);
 1800|  7.16k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1801|  7.16k|        B = x;
 1802|  7.16k|        dLo1 = dLo << word_type_half_bits;
 1803|       |        // Increase qHi if necessary:
 1804|  7.16k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1804:17): [True: 0, False: 7.16k]
  |  Branch (1804:29): [True: 0, False: 7.16k]
  |  Branch (1804:41): [True: 0, False: 0]
  ------------------
 1805|      0|        {
 1806|      0|            x = B - dLo1;
 1807|      0|            A -= dHi + (x > B);
 1808|      0|            B = x;
 1809|      0|            qHi++;
 1810|      0|        }
 1811|  7.16k|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1812|       |        // This initial guess of qLo may be too small.
 1813|  7.16k|        right = qLo * dLo;
 1814|  7.16k|        middle = qLo * dHi;
 1815|  7.16k|        x = B - right;
 1816|  7.16k|        A -= (x > B);
 1817|  7.16k|        B = x;
 1818|  7.16k|        x = B - (middle << word_type_half_bits);
 1819|  7.16k|            A -= (middle >> word_type_half_bits) + (x > B);
 1820|  7.16k|        B = x;
 1821|       |        // Increase qLo if necessary:
 1822|  8.33k|        while ( A || B >= d )
  ------------------
  |  Branch (1822:17): [True: 0, False: 8.33k]
  |  Branch (1822:22): [True: 1.16k, False: 7.16k]
  ------------------
 1823|  1.16k|        {
 1824|  1.16k|            x = B - d;
 1825|  1.16k|            A -= (x > B);
 1826|  1.16k|            B = x;
 1827|  1.16k|            qLo++;
 1828|  1.16k|        }
 1829|  7.16k|        return (qHi << word_type_half_bits) + qLo;
 1830|  7.16k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1834|  7.16k|    {
 1835|  7.16k|        word_type hi, lo, d, carry = 0;
 1836|  7.16k|        size_type i;
 1837|  14.3k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1837:22): [True: 7.16k, False: 7.16k]
  ------------------
 1838|  7.16k|        {
 1839|  7.16k|            DDproduct( b[i], q, hi, lo );
 1840|  7.16k|            d = a[i];
 1841|  7.16k|            a[i] -= lo;
 1842|  7.16k|            if ( a[i] > d )
  ------------------
  |  Branch (1842:18): [True: 3.38k, False: 3.78k]
  ------------------
 1843|  3.38k|                carry++;
 1844|  7.16k|            d = a[i + 1];
 1845|  7.16k|            a[i + 1] -= hi + carry;
 1846|  7.16k|            carry = a[i + 1] > d;
 1847|  7.16k|        }
 1848|  7.16k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1848:14): [True: 0, False: 7.16k]
  ------------------
 1849|      0|        {
 1850|      0|            q--;
 1851|      0|            carry = 0;
 1852|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1852:26): [True: 0, False: 0]
  ------------------
 1853|      0|            {
 1854|      0|                d = a[i] + carry;
 1855|      0|                carry = d < carry;
 1856|      0|                a[i] = d + b[i];
 1857|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1857:22): [True: 0, False: 0]
  ------------------
 1858|      0|                    carry = 1;
 1859|      0|            }
 1860|      0|            a[n] = 0;
 1861|      0|        }
 1862|  7.16k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1894|  7.16k|    {
 1895|  7.16k|        if (secondDone)
  ------------------
  |  Branch (1895:13): [True: 0, False: 7.16k]
  ------------------
 1896|      0|        {
 1897|      0|            rem /= max_word;
 1898|      0|        }
 1899|  7.16k|        if ( x > 0 )
  ------------------
  |  Branch (1899:14): [True: 0, False: 7.16k]
  ------------------
 1900|      0|        {
 1901|      0|            rem >>= x;
 1902|      0|        }
 1903|  7.16k|        else
 1904|  7.16k|        {
 1905|  7.16k|            rem.reduce();
 1906|  7.16k|        }
 1907|  7.16k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  686|  33.0k|        : storage_(n, alloc)
  687|  33.0k|    {
  688|  33.0k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  353|  33.0k|        : word_allocator_type(alloc)
  354|  33.0k|    {
  355|  33.0k|        ::new (&inlined_) inlined_storage(n);
  356|  33.0k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  33.0k|            : is_allocated_(false),
  126|  33.0k|            is_negative_(n < 0),
  127|  33.0k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 9.52k, False: 23.5k]
  ------------------
  128|  33.0k|        {
  129|  33.0k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 4.56k, False: 28.4k]
  ------------------
  130|  33.0k|            values_[1] = 0;
  131|  33.0k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  701|   522k|    {
  702|   522k|        storage_.destroy();
  703|   522k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  480|   522k|    {
  481|   522k|        if (is_allocated())
  ------------------
  |  Branch (481:13): [True: 37.0k, False: 485k]
  ------------------
  482|  37.0k|        {
  483|  37.0k|            allocated_.destroy(get_allocator());
  484|  37.0k|            allocated_.~allocated_storage();
  485|  37.0k|        }
  486|   485k|        else
  487|   485k|        {
  488|   485k|            inlined_.~inlined_storage();
  489|   485k|        }
  490|   522k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  246|  37.0k|        {
  247|  37.0k|            if (data_ != nullptr)
  ------------------
  |  Branch (247:17): [True: 37.0k, False: 0]
  ------------------
  248|  37.0k|            {
  249|  37.0k|                real_allocator_type alloc(a);
  250|  37.0k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  251|  37.0k|            }
  252|  37.0k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEcvT_IlvEEv:
 1268|  31.1k|    {
 1269|  31.1k|        auto this_view = get_storage_view();
 1270|  31.1k|        Integer x = 0;
 1271|  31.1k|        if (this_view.size() > 0)
  ------------------
  |  Branch (1271:13): [True: 28.7k, False: 2.42k]
  ------------------
 1272|  28.7k|        {
 1273|  28.7k|            x = static_cast<Integer>(this_view[0]);
 1274|  28.7k|        }
 1275|       |
 1276|  31.1k|        return is_negative() ? x*(-1) : x;
  ------------------
  |  Branch (1276:16): [True: 3.19k, False: 28.0k]
  ------------------
 1277|  31.1k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12write_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1352|  37.2k|    {
 1353|  37.2k|        basic_bigint<Allocator> v(*this);
 1354|  37.2k|        auto v_view = v.get_storage_view();
 1355|       |
 1356|  37.2k|        size_type len = (v_view.size() * word_type_bits / 3) + 2;
 1357|  37.2k|        data.reserve(len);
 1358|       |
 1359|  37.2k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1359:14): [True: 1.06k, False: 36.2k]
  ------------------
 1360|  1.06k|        {
 1361|  1.06k|            data.push_back('0');
 1362|  1.06k|        }
 1363|  36.2k|        else
 1364|  36.2k|        {
 1365|  36.2k|            word_type r;
 1366|  36.2k|            basic_bigint<Allocator> R(get_allocator());
 1367|  36.2k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1368|       |
 1369|  36.2k|            do
 1370|  59.6k|            {
 1371|  59.6k|                v.divide( LP10, v, R, true );
 1372|  59.6k|                v_view = v.get_storage_view();
 1373|       |
 1374|  59.6k|                auto R_view = R.get_storage_view();
 1375|  59.6k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1375:22): [True: 49.9k, False: 9.75k]
  ------------------
 1376|   750k|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1376:38): [True: 727k, False: 23.4k]
  ------------------
 1377|   727k|                {
 1378|   727k|                    data.push_back(char(r % 10u + '0'));
 1379|   727k|                    r /= 10u;
 1380|   727k|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1380:26): [True: 36.2k, False: 690k]
  ------------------
 1381|  36.2k|                        break;
 1382|   727k|                }
 1383|  59.6k|            } 
 1384|  59.6k|            while ( v_view.size() > 0);
  ------------------
  |  Branch (1384:21): [True: 23.4k, False: 36.2k]
  ------------------
 1385|       |
 1386|  36.2k|            if (is_negative())
  ------------------
  |  Branch (1386:17): [True: 4.56k, False: 31.6k]
  ------------------
 1387|  4.56k|            {
 1388|  4.56k|                data.push_back('-');
 1389|  4.56k|            }
 1390|  36.2k|            std::reverse(data.begin(),data.end());
 1391|  36.2k|        }
 1392|  37.2k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  637|  36.2k|        : storage_(alloc)
  638|  36.2k|    {
  639|  36.2k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEEl:
 1474|  8.72k|    {
 1475|  8.72k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1475:15): [True: 4.56k, False: 4.15k]
  ------------------
 1476|  8.72k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IjEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  686|  4.56k|        : storage_(n, alloc)
  687|  4.56k|    {
  688|  4.56k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IjEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  353|  4.56k|        : word_allocator_type(alloc)
  354|  4.56k|    {
  355|  4.56k|        ::new (&inlined_) inlined_storage(n);
  356|  4.56k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IjEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  4.56k|            : is_allocated_(false),
  139|  4.56k|            is_negative_(false),
  140|  4.56k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 300, False: 4.26k]
  ------------------
  141|  4.56k|        {
  142|  4.56k|            values_[0] = n;
  143|  4.56k|            values_[1] = 0;
  144|  4.56k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLIjEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  882|  4.15k|    {
  883|  4.15k|        if ( is_negative())
  ------------------
  |  Branch (883:14): [True: 0, False: 4.15k]
  ------------------
  884|      0|            return *this -= -basic_bigint<Allocator>(y);
  885|       |
  886|  4.15k|        word_type d;
  887|  4.15k|        word_type carry = 0;
  888|       |
  889|  4.15k|        auto this_view = get_storage_view();
  890|  4.15k|        resize(this_view.size() + 1);
  891|       |
  892|  4.15k|        this_view = get_storage_view();
  893|  4.15k|        const size_type this_size = this_view.size();
  894|  4.15k|        size_type y_size = 1;
  895|       |
  896|  4.15k|        d = this_view[0] + carry;
  897|  4.15k|        carry = d < carry;
  898|  4.15k|        this_view[0] = d + y;
  899|  4.15k|        if (this_view[0] < d)
  ------------------
  |  Branch (899:13): [True: 323, False: 3.83k]
  ------------------
  900|    323|            carry = 1;
  901|       |
  902|  4.48k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (902:36): [True: 3.38k, False: 1.10k]
  |  Branch (902:53): [True: 323, False: 3.05k]
  ------------------
  903|    323|        {
  904|    323|            d = this_view[i] + carry;
  905|    323|            carry = d < carry;
  906|    323|            this_view[i] = d;
  907|    323|        }
  908|  4.15k|        reduce();
  909|  4.15k|        return *this;
  910|  4.15k|    }

_ZN8jsoncons6binary13native_to_bigItNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  6.37k|    {
  128|  6.37k|        T val2 = byte_swap(val);
  129|  6.37k|        uint8_t buf[sizeof(T)];
  130|  6.37k|        std::memcpy(buf, &val2, sizeof(T));
  131|  6.37k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 12.7k, False: 6.37k]
  ------------------
  132|  12.7k|        {
  133|  12.7k|            *d_first++ = item;
  134|  12.7k|        }
  135|  6.37k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  17.9k|    {
   29|  17.9k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  17.9k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  17.9k|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|  17.9k|    }
_ZN8jsoncons6binary13native_to_bigIjNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  16.7k|    {
  128|  16.7k|        T val2 = byte_swap(val);
  129|  16.7k|        uint8_t buf[sizeof(T)];
  130|  16.7k|        std::memcpy(buf, &val2, sizeof(T));
  131|  16.7k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 67.1k, False: 16.7k]
  ------------------
  132|  67.1k|        {
  133|  67.1k|            *d_first++ = item;
  134|  67.1k|        }
  135|  16.7k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  98.5k|    {
   40|  98.5k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  98.5k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  98.5k|#  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|  98.5k|    }
_ZN8jsoncons6binary13native_to_bigImNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  27.6k|    {
  128|  27.6k|        T val2 = byte_swap(val);
  129|  27.6k|        uint8_t buf[sizeof(T)];
  130|  27.6k|        std::memcpy(buf, &val2, sizeof(T));
  131|  27.6k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 221k, False: 27.6k]
  ------------------
  132|   221k|        {
  133|   221k|            *d_first++ = item;
  134|   221k|        }
  135|  27.6k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  89.4k|    {
   52|  89.4k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  89.4k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  89.4k|#  define JSONCONS_BYTE_SWAP_64 __builtin_bswap64
  ------------------
   54|       |    #else
   55|       |        uint64_t tmp = ((static_cast<uint64_t>(val) & 0x00000000ffffffffull) << 32) | ((static_cast<uint64_t>(val) & 0xffffffff00000000ull) >> 32);
   56|       |        tmp = ((tmp & 0x0000ffff0000ffffull) << 16) | ((tmp & 0xffff0000ffff0000ull) >> 16);
   57|       |        return ((tmp & 0x00ff00ff00ff00ffull) << 8)  | ((tmp & 0xff00ff00ff00ff00ull) >> 8);
   58|       |    #endif
   59|  89.4k|    }
_ZN8jsoncons6binary13native_to_bigIaNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|   198k|    {
  128|   198k|        T val2 = byte_swap(val);
  129|   198k|        uint8_t buf[sizeof(T)];
  130|   198k|        std::memcpy(buf, &val2, sizeof(T));
  131|   198k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 198k, False: 198k]
  ------------------
  132|   198k|        {
  133|   198k|            *d_first++ = item;
  134|   198k|        }
  135|   198k|    }
_ZN8jsoncons6binary9byte_swapIaEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|   469k|    {
   22|   469k|        return val;
   23|   469k|    }
_ZN8jsoncons6binary13native_to_bigIsNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  12.6k|    {
  128|  12.6k|        T val2 = byte_swap(val);
  129|  12.6k|        uint8_t buf[sizeof(T)];
  130|  12.6k|        std::memcpy(buf, &val2, sizeof(T));
  131|  12.6k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 25.2k, False: 12.6k]
  ------------------
  132|  25.2k|        {
  133|  25.2k|            *d_first++ = item;
  134|  25.2k|        }
  135|  12.6k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  33.5k|    {
   29|  33.5k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  33.5k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  33.5k|#      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|  33.5k|    }
_ZN8jsoncons6binary13native_to_bigIiNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  6.12k|    {
  128|  6.12k|        T val2 = byte_swap(val);
  129|  6.12k|        uint8_t buf[sizeof(T)];
  130|  6.12k|        std::memcpy(buf, &val2, sizeof(T));
  131|  6.12k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 24.4k, False: 6.12k]
  ------------------
  132|  24.4k|        {
  133|  24.4k|            *d_first++ = item;
  134|  24.4k|        }
  135|  6.12k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  19.8k|    {
   40|  19.8k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  19.8k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  19.8k|#  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|  19.8k|    }
_ZN8jsoncons6binary13native_to_bigIlNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  4.97k|    {
  128|  4.97k|        T val2 = byte_swap(val);
  129|  4.97k|        uint8_t buf[sizeof(T)];
  130|  4.97k|        std::memcpy(buf, &val2, sizeof(T));
  131|  4.97k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 39.7k, False: 4.97k]
  ------------------
  132|  39.7k|        {
  133|  39.7k|            *d_first++ = item;
  134|  39.7k|        }
  135|  4.97k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  37.7k|    {
   52|  37.7k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  37.7k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  37.7k|#  define JSONCONS_BYTE_SWAP_64 __builtin_bswap64
  ------------------
   54|       |    #else
   55|       |        uint64_t tmp = ((static_cast<uint64_t>(val) & 0x00000000ffffffffull) << 32) | ((static_cast<uint64_t>(val) & 0xffffffff00000000ull) >> 32);
   56|       |        tmp = ((tmp & 0x0000ffff0000ffffull) << 16) | ((tmp & 0xffff0000ffff0000ull) >> 16);
   57|       |        return ((tmp & 0x00ff00ff00ff00ffull) << 8)  | ((tmp & 0xff00ff00ff00ff00ull) >> 8);
   58|       |    #endif
   59|  37.7k|    }
_ZN8jsoncons6binary13native_to_bigIfNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  5.83k|    {
  128|  5.83k|        T val2 = byte_swap(val);
  129|  5.83k|        uint8_t buf[sizeof(T)];
  130|  5.83k|        std::memcpy(buf, &val2, sizeof(T));
  131|  5.83k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 23.3k, False: 5.83k]
  ------------------
  132|  23.3k|        {
  133|  23.3k|            *d_first++ = item;
  134|  23.3k|        }
  135|  5.83k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|  51.9k|    {
   65|  51.9k|        uint32_t x;
   66|  51.9k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|  51.9k|        uint32_t y = byte_swap(x);
   68|  51.9k|        T val2;
   69|  51.9k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|  51.9k|        return val2;
   71|  51.9k|    }
_ZN8jsoncons6binary13native_to_bigIdNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  8.95k|    {
  128|  8.95k|        T val2 = byte_swap(val);
  129|  8.95k|        uint8_t buf[sizeof(T)];
  130|  8.95k|        std::memcpy(buf, &val2, sizeof(T));
  131|  8.95k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 71.6k, False: 8.95k]
  ------------------
  132|  71.6k|        {
  133|  71.6k|            *d_first++ = item;
  134|  71.6k|        }
  135|  8.95k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|  28.8k|    {
   77|  28.8k|        uint64_t x;
   78|  28.8k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|  28.8k|        uint64_t y = byte_swap(x);
   80|  28.8k|        T val2;
   81|  28.8k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|  28.8k|        return val2;
   83|  28.8k|    }
_ZN8jsoncons6binary13big_to_nativeIfNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  46.1k|    {
  183|  46.1k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 46.1k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  46.1k|        T val;
  188|  46.1k|        std::memcpy(&val,first,sizeof(T));
  189|  46.1k|        return byte_swap(val);
  190|  46.1k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_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|    }
_ZN8jsoncons6binary13big_to_nativeItNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  11.6k|    {
  183|  11.6k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 11.6k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  11.6k|        T val;
  188|  11.6k|        std::memcpy(&val,first,sizeof(T));
  189|  11.6k|        return byte_swap(val);
  190|  11.6k|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  29.8k|    {
  183|  29.8k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 29.8k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  29.8k|        T val;
  188|  29.8k|        std::memcpy(&val,first,sizeof(T));
  189|  29.8k|        return byte_swap(val);
  190|  29.8k|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  32.8k|    {
  183|  32.8k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 32.8k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  32.8k|        T val;
  188|  32.8k|        std::memcpy(&val,first,sizeof(T));
  189|  32.8k|        return byte_swap(val);
  190|  32.8k|    }
_ZN8jsoncons6binary13big_to_nativeIaNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   271k|    {
  183|   271k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 271k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   271k|        T val;
  188|   271k|        std::memcpy(&val,first,sizeof(T));
  189|   271k|        return byte_swap(val);
  190|   271k|    }
_ZN8jsoncons6binary13big_to_nativeIsNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  20.8k|    {
  183|  20.8k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 20.8k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  20.8k|        T val;
  188|  20.8k|        std::memcpy(&val,first,sizeof(T));
  189|  20.8k|        return byte_swap(val);
  190|  20.8k|    }
_ZN8jsoncons6binary13big_to_nativeIiNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  13.6k|    {
  183|  13.6k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 13.6k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  13.6k|        T val;
  188|  13.6k|        std::memcpy(&val,first,sizeof(T));
  189|  13.6k|        return byte_swap(val);
  190|  13.6k|    }
_ZN8jsoncons6binary13big_to_nativeIlNS_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|    }
_ZN8jsoncons6binary13big_to_nativeIhNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  46.1k|    {
  183|  46.1k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 46.1k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  46.1k|        T val;
  188|  46.1k|        std::memcpy(&val,first,sizeof(T));
  189|  46.1k|        return byte_swap(val);
  190|  46.1k|    }
_ZN8jsoncons6binary9byte_swapIhEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  46.1k|    {
   22|  46.1k|        return val;
   23|  46.1k|    }

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

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

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

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14convert_resultIS4_EEE4typeEPKS4_m:
 1136|   494k|    {
 1137|   494k|        conv_errc  result = conv_errc();
 1138|   494k|        const CharT* last = data + length;
 1139|  87.5M|        while (data != last) 
  ------------------
  |  Branch (1139:16): [True: 87.0M, False: 494k]
  ------------------
 1140|  87.0M|        {
 1141|  87.0M|            std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[static_cast<uint8_t>(*data)]) + 1;
 1142|  87.0M|            if (len > (std::size_t)(last - data))
  ------------------
  |  Branch (1142:17): [True: 17, False: 87.0M]
  ------------------
 1143|     17|            {
 1144|     17|                return convert_result<CharT>{data, conv_errc::source_exhausted};
 1145|     17|            }
 1146|  87.0M|            if ((result=is_legal_utf8(data, len)) != conv_errc())
  ------------------
  |  Branch (1146:17): [True: 90, False: 87.0M]
  ------------------
 1147|     90|            {
 1148|     90|                return convert_result<CharT>{data,result} ;
 1149|     90|            }
 1150|  87.0M|            data += len;
 1151|  87.0M|        }
 1152|   494k|        return convert_result<CharT>{data,result} ;
 1153|   494k|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8IcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_9conv_errcEE4typeEPKS4_m:
  305|  87.0M|    {
  306|  87.0M|        uint8_t a;
  307|  87.0M|        const CharT* srcptr = first+length;
  308|  87.0M|        switch (length) {
  309|     10|        default:
  ------------------
  |  Branch (309:9): [True: 10, False: 87.0M]
  ------------------
  310|     10|            return conv_errc::over_long_utf8_sequence;
  311|    503|        case 4:
  ------------------
  |  Branch (311:9): [True: 503, False: 87.0M]
  ------------------
  312|    503|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (312:17): [True: 4, False: 499]
  ------------------
  313|      4|                return conv_errc::expected_continuation_byte;
  314|    499|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    499|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  315|    955|        case 3:
  ------------------
  |  Branch (315:9): [True: 456, False: 87.0M]
  ------------------
  316|    955|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (316:17): [True: 12, False: 943]
  ------------------
  317|     12|                return conv_errc::expected_continuation_byte;
  318|    943|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    943|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  319|  1.22k|        case 2:
  ------------------
  |  Branch (319:9): [True: 284, False: 87.0M]
  ------------------
  320|  1.22k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (320:17): [True: 17, False: 1.21k]
  ------------------
  321|     17|                return conv_errc::expected_continuation_byte;
  322|       |
  323|  1.21k|            switch (static_cast<uint8_t>(*first)) 
  324|  1.21k|            {
  325|       |                // no fall-through in this inner switch
  326|    219|                case 0xE0: if (a < 0xA0) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (326:17): [True: 219, False: 991]
  |  Branch (326:32): [True: 6, False: 213]
  ------------------
  327|    213|                case 0xED: if (a > 0x9F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (327:17): [True: 206, False: 1.00k]
  |  Branch (327:32): [True: 4, False: 202]
  ------------------
  328|    224|                case 0xF0: if (a < 0x90) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 224, False: 986]
  |  Branch (328:32): [True: 6, False: 218]
  ------------------
  329|    218|                case 0xF4: if (a > 0x8F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 197, False: 1.01k]
  |  Branch (329:32): [True: 2, False: 195]
  ------------------
  330|    364|                default:   if (a < 0x80) return conv_errc::source_illegal;
  ------------------
  |  Branch (330:17): [True: 364, False: 846]
  |  Branch (330:32): [True: 0, False: 364]
  ------------------
  331|  1.21k|            }
  332|       |
  333|  1.19k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.19k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  334|  87.0M|        case 1:
  ------------------
  |  Branch (334:9): [True: 87.0M, False: 1.25k]
  ------------------
  335|  87.0M|            if (static_cast<uint8_t>(*first) >= 0x80 && static_cast<uint8_t>(*first) < 0xC2)
  ------------------
  |  Branch (335:17): [True: 1.21k, False: 87.0M]
  |  Branch (335:57): [True: 28, False: 1.18k]
  ------------------
  336|     28|                return conv_errc::source_illegal;
  337|  87.0M|            break;
  338|  87.0M|        }
  339|  87.0M|        if (static_cast<uint8_t>(*first) > 0xF4) 
  ------------------
  |  Branch (339:13): [True: 1, False: 87.0M]
  ------------------
  340|      1|            return conv_errc::source_illegal;
  341|       |
  342|  87.0M|        return conv_errc();
  343|  87.0M|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  13.8M|{
   43|  13.8M|    using char_type = typename Result::value_type;
   44|       |
   45|  13.8M|    char_type buf[255];
   46|  13.8M|    char_type *p = buf;
   47|  13.8M|    const char_type* last = buf+255;
   48|       |
   49|  13.8M|    bool is_negative = value < 0;
   50|       |
   51|  13.8M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 13.8M]
  ------------------
   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|  13.8M|    else
   60|  13.8M|    {
   61|       |
   62|  13.8M|        do
   63|  19.6M|        {
   64|  19.6M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  19.6M|        }
   66|  19.6M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 5.76M, False: 13.8M]
  |  Branch (66:33): [True: 5.76M, False: 0]
  ------------------
   67|  13.8M|    }
   68|  13.8M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  13.8M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 13.8M]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  13.8M|    std::size_t count = (p - buf);
   71|  13.8M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 13.8M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  33.5M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 19.6M, False: 13.8M]
  ------------------
   77|  19.6M|    {
   78|  19.6M|        result.push_back(*p);
   79|  19.6M|    }
   80|       |
   81|  13.8M|    return count;
   82|  13.8M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  1.79M|{
   43|  1.79M|    using char_type = typename Result::value_type;
   44|       |
   45|  1.79M|    char_type buf[255];
   46|  1.79M|    char_type *p = buf;
   47|  1.79M|    const char_type* last = buf+255;
   48|       |
   49|  1.79M|    bool is_negative = value < 0;
   50|       |
   51|  1.79M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 1.79M, False: 5.41k]
  ------------------
   52|  1.79M|    {
   53|  1.79M|        do
   54|  2.31M|        {
   55|  2.31M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  2.31M|        }
   57|  2.31M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 524k, False: 1.79M]
  |  Branch (57:33): [True: 524k, False: 0]
  ------------------
   58|  1.79M|    }
   59|  5.41k|    else
   60|  5.41k|    {
   61|       |
   62|  5.41k|        do
   63|  87.6k|        {
   64|  87.6k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  87.6k|        }
   66|  87.6k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 82.1k, False: 5.41k]
  |  Branch (66:33): [True: 82.1k, False: 0]
  ------------------
   67|  5.41k|    }
   68|  1.79M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  1.79M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 1.79M]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  1.79M|    std::size_t count = (p - buf);
   71|  1.79M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 1.79M, False: 5.41k]
  ------------------
   72|  1.79M|    {
   73|  1.79M|        result.push_back('-');
   74|  1.79M|        ++count;
   75|  1.79M|    }
   76|  4.20M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 2.40M, False: 1.79M]
  ------------------
   77|  2.40M|    {
   78|  2.40M|        result.push_back(*p);
   79|  2.40M|    }
   80|       |
   81|  1.79M|    return count;
   82|  1.79M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  51.2k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  51.2k|    {
  489|  51.2k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  51.2k|        struct lconv *lc = localeconv();
  491|  51.2k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 51.2k, False: 0]
  |  Branch (491:30): [True: 51.2k, False: 0]
  ------------------
  492|  51.2k|        {
  493|  51.2k|            decimal_point_ = lc->decimal_point[0];
  494|  51.2k|        }
  495|  51.2k|#endif
  496|  51.2k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  51.2k|    {
  504|  51.2k|        std::size_t count = 0;
  505|       |
  506|  51.2k|        char number_buffer[200];
  507|  51.2k|        int length = 0;
  508|       |
  509|  51.2k|        switch (float_format_)
  510|  51.2k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 51.2k]
  ------------------
  512|      0|            {
  513|      0|                if (precision_ > 0)
  ------------------
  |  Branch (513:21): [True: 0, False: 0]
  ------------------
  514|      0|                {
  515|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*f", precision_, val);
  516|      0|                    if (length < 0)
  ------------------
  |  Branch (516:25): [True: 0, False: 0]
  ------------------
  517|      0|                    {
  518|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  519|      0|                    }
  520|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  521|      0|                }
  522|      0|                else
  523|      0|                {
  524|      0|                    if (!dtoa_fixed(val, decimal_point_, result))
  ------------------
  |  Branch (524:25): [True: 0, False: 0]
  ------------------
  525|      0|                    {
  526|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  527|      0|                    }
  528|      0|                }
  529|      0|            }
  530|      0|            break;
  531|      0|        case float_chars_format::scientific:
  ------------------
  |  Branch (531:9): [True: 0, False: 51.2k]
  ------------------
  532|      0|            {
  533|      0|                if (precision_ > 0)
  ------------------
  |  Branch (533:21): [True: 0, False: 0]
  ------------------
  534|      0|                {
  535|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*e", precision_, val);
  536|      0|                    if (length < 0)
  ------------------
  |  Branch (536:25): [True: 0, False: 0]
  ------------------
  537|      0|                    {
  538|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  539|      0|                    }
  540|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  541|      0|                }
  542|      0|                else
  543|      0|                {
  544|      0|                    if (!dtoa_scientific(val, decimal_point_, result))
  ------------------
  |  Branch (544:25): [True: 0, False: 0]
  ------------------
  545|      0|                    {
  546|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  547|      0|                    }
  548|      0|                }
  549|      0|            }
  550|      0|            break;
  551|  51.2k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 51.2k, False: 0]
  ------------------
  552|  51.2k|            {
  553|  51.2k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 51.2k]
  ------------------
  554|      0|                {
  555|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*g", precision_, val);
  556|      0|                    if (length < 0)
  ------------------
  |  Branch (556:25): [True: 0, False: 0]
  ------------------
  557|      0|                    {
  558|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  559|      0|                    }
  560|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  561|      0|                }
  562|  51.2k|                else
  563|  51.2k|                {
  564|  51.2k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 51.2k]
  ------------------
  565|      0|                    {
  566|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  567|      0|                    }
  568|  51.2k|                }             
  569|  51.2k|                break;
  570|  51.2k|            }
  571|  51.2k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 51.2k]
  ------------------
  572|      0|                JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  573|      0|                break;
  574|  51.2k|        }
  575|  51.2k|        return count;
  576|  51.2k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  6.12k|{
  244|  6.12k|    const char *sbeg = buffer;
  245|  6.12k|    const char *send = sbeg + length;
  246|       |
  247|  6.12k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 6.12k, False: 0]
  ------------------
  248|  6.12k|    {
  249|  6.12k|        bool needs_dot = true;
  250|   111k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 105k, False: 6.12k]
  ------------------
  251|   105k|        {
  252|   105k|            switch (*q)
  253|   105k|            {
  254|  6.70k|            case '-':
  ------------------
  |  Branch (254:13): [True: 6.70k, False: 98.9k]
  ------------------
  255|  18.3k|            case '0':
  ------------------
  |  Branch (255:13): [True: 11.6k, False: 94.0k]
  ------------------
  256|  24.8k|            case '1':
  ------------------
  |  Branch (256:13): [True: 6.51k, False: 99.1k]
  ------------------
  257|  43.2k|            case '2':
  ------------------
  |  Branch (257:13): [True: 18.3k, False: 87.3k]
  ------------------
  258|  45.2k|            case '3':
  ------------------
  |  Branch (258:13): [True: 2.08k, False: 103k]
  ------------------
  259|  55.2k|            case '4':
  ------------------
  |  Branch (259:13): [True: 9.95k, False: 95.7k]
  ------------------
  260|  60.7k|            case '5':
  ------------------
  |  Branch (260:13): [True: 5.54k, False: 100k]
  ------------------
  261|  69.7k|            case '6':
  ------------------
  |  Branch (261:13): [True: 8.97k, False: 96.7k]
  ------------------
  262|  76.1k|            case '7':
  ------------------
  |  Branch (262:13): [True: 6.36k, False: 99.3k]
  ------------------
  263|  84.7k|            case '8':
  ------------------
  |  Branch (263:13): [True: 8.65k, False: 97.0k]
  ------------------
  264|  92.9k|            case '9':
  ------------------
  |  Branch (264:13): [True: 8.14k, False: 97.5k]
  ------------------
  265|  94.4k|            case '+':
  ------------------
  |  Branch (265:13): [True: 1.48k, False: 104k]
  ------------------
  266|  94.4k|                result.push_back(*q);
  267|  94.4k|                break;
  268|  4.54k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 4.54k, False: 101k]
  ------------------
  269|  4.54k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 105k]
  ------------------
  270|  4.54k|                result.push_back('e');
  271|  4.54k|                needs_dot = false;
  272|  4.54k|                break;
  273|  6.71k|            default:
  ------------------
  |  Branch (273:13): [True: 6.71k, False: 98.9k]
  ------------------
  274|  6.71k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 4.86k, False: 1.84k]
  ------------------
  275|  4.86k|                {
  276|  4.86k|                    needs_dot = false;
  277|  4.86k|                    result.push_back('.');
  278|  4.86k|                }
  279|  6.71k|                break;
  280|   105k|            }
  281|   105k|        }
  282|  6.12k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 1.25k, False: 4.86k]
  ------------------
  283|  1.25k|        {
  284|  1.25k|            result.push_back('.');
  285|  1.25k|            result.push_back('0');
  286|  1.25k|        }
  287|  6.12k|    }
  288|  6.12k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmiiiRT_:
  171|  44.6k|{
  172|  44.6k|    int nb_digits = (int)length;
  173|  44.6k|    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|  44.6k|    int kk = nb_digits + k;
  179|       |
  180|  44.6k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 27.9k, False: 16.7k]
  |  Branch (180:28): [True: 10.5k, False: 17.3k]
  ------------------
  181|  10.5k|    {
  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|  82.2k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 71.7k, False: 10.5k]
  ------------------
  186|  71.7k|        {
  187|  71.7k|            result.push_back(buffer[i]);
  188|  71.7k|        }
  189|  12.8k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 2.29k, False: 10.5k]
  ------------------
  190|  2.29k|        {
  191|  2.29k|            result.push_back('0');
  192|  2.29k|        }
  193|  10.5k|        result.push_back('.');
  194|  10.5k|        result.push_back('0');
  195|  10.5k|    } 
  196|  34.0k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 23.0k, False: 11.0k]
  |  Branch (196:24): [True: 5.72k, False: 17.3k]
  ------------------
  197|  5.72k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  22.2k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 16.4k, False: 5.72k]
  ------------------
  200|  16.4k|        {
  201|  16.4k|            result.push_back(buffer[i]);
  202|  16.4k|        }
  203|  5.72k|        result.push_back('.');
  204|  77.8k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 72.1k, False: 5.72k]
  ------------------
  205|  72.1k|        {
  206|  72.1k|            result.push_back(buffer[i]);
  207|  72.1k|        }
  208|  5.72k|    } 
  209|  28.3k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 19.0k, False: 9.31k]
  |  Branch (209:30): [True: 1.71k, False: 17.3k]
  ------------------
  210|  1.71k|    {
  211|  1.71k|        offset = 2 - kk;
  212|       |
  213|  1.71k|        result.push_back('0');
  214|  1.71k|        result.push_back('.');
  215|  4.30k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 2.58k, False: 1.71k]
  ------------------
  216|  2.58k|            result.push_back('0');
  217|  26.1k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 24.4k, False: 1.71k]
  ------------------
  218|  24.4k|        {
  219|  24.4k|            result.push_back(buffer[i]);
  220|  24.4k|        }
  221|  1.71k|    } 
  222|  26.6k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 681, False: 25.9k]
  ------------------
  223|    681|    {
  224|    681|        result.push_back(buffer[0]);
  225|    681|        result.push_back('e');
  226|    681|        fill_exponent(kk - 1, result);
  227|    681|    } 
  228|  25.9k|    else
  229|  25.9k|    {
  230|  25.9k|        result.push_back(buffer[0]);
  231|  25.9k|        result.push_back('.');
  232|   407k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 381k, False: 25.9k]
  ------------------
  233|   381k|        {
  234|   381k|            result.push_back(buffer[i]);
  235|   381k|        }
  236|  25.9k|        result.push_back('e');
  237|  25.9k|        fill_exponent(kk - 1, result);
  238|  25.9k|    }
  239|  44.6k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  26.6k|{
  137|  26.6k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 9.31k, False: 17.3k]
  ------------------
  138|  9.31k|    {
  139|  9.31k|        result.push_back('-');
  140|  9.31k|        K = -K;
  141|  9.31k|    }
  142|  17.3k|    else
  143|  17.3k|    {
  144|  17.3k|        result.push_back('+'); // compatibility with sprintf
  145|  17.3k|    }
  146|       |
  147|  26.6k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 722, False: 25.9k]
  ------------------
  148|    722|    {
  149|    722|        result.push_back('0'); // compatibility with sprintf
  150|    722|        result.push_back((char)('0' + K));
  151|    722|    }
  152|  25.9k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 10.2k, False: 15.6k]
  ------------------
  153|  10.2k|    {
  154|  10.2k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  10.2k|        result.push_back((char)('0' + K));
  156|  10.2k|    }
  157|  15.6k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 15.6k, False: 0]
  ------------------
  158|  15.6k|    {
  159|  15.6k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  15.6k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  15.6k|        result.push_back((char)('0' + K));
  162|  15.6k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  26.6k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  51.2k|{
  476|  51.2k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  51.2k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  51.2k|{
  367|  51.2k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 460, False: 50.7k]
  ------------------
  368|    460|    {
  369|    460|        result.push_back('0');
  370|    460|        result.push_back('.');
  371|    460|        result.push_back('0');
  372|    460|        return true;
  373|    460|    }
  374|       |
  375|  50.7k|    int length = 0;
  376|  50.7k|    int k;
  377|       |
  378|  50.7k|    char buffer[100];
  379|       |
  380|  50.7k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 38.8k, False: 11.9k]
  ------------------
  381|  50.7k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 44.6k, False: 6.12k]
  ------------------
  382|  44.6k|    {
  383|  44.6k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 35.2k, False: 9.44k]
  ------------------
  384|  35.2k|        {
  385|  35.2k|            result.push_back('-');
  386|  35.2k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  44.6k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  44.6k|        return true;
  391|  44.6k|    }
  392|  6.12k|    else
  393|  6.12k|    {
  394|  6.12k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  6.12k|    }
  396|  50.7k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  6.12k|{
  330|  6.12k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 6.12k]
  ------------------
  331|      0|    {
  332|      0|        result.push_back('0');
  333|      0|        result.push_back('.');
  334|      0|        result.push_back('0');
  335|      0|        return true;
  336|      0|    }
  337|       |
  338|  6.12k|    char buffer[100];
  339|  6.12k|    int precision = std::numeric_limits<double>::digits10;
  340|  6.12k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  6.12k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 6.12k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  6.12k|    double x{0};
  346|  6.12k|    auto res = decstr_to_double(buffer, length, x);
  347|  6.12k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 6.12k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  6.12k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 4.67k, False: 1.45k]
  ------------------
  352|  4.67k|    {
  353|  4.67k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  4.67k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  4.67k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 4.67k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  4.67k|    }
  360|  6.12k|    dump_buffer(buffer, length, decimal_point, result);
  361|  6.12k|    return true;
  362|  6.12k|}

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

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

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

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

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

