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

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

_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1011|   243k|        {
 1012|   243k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1012:17): [True: 32.3k, False: 210k]
  ------------------
 1013|  32.3k|            {
 1014|  32.3k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1014:21): [True: 30.5k, False: 1.83k]
  |  Branch (1014:73): [True: 28.1k, False: 2.33k]
  ------------------
 1015|  28.1k|                {
 1016|  28.1k|                    key_buffer_.push_back(',');
 1017|  28.1k|                }
 1018|  32.3k|                level_stack_.emplace_back(target_t::buffer, container_t::array);
 1019|  32.3k|                key_buffer_.push_back('[');
 1020|  32.3k|            }
 1021|   210k|            else
 1022|   210k|            {
 1023|   210k|                switch (level_stack_.back().target())
 1024|   210k|                {
 1025|   202k|                    case target_t::buffer:
  ------------------
  |  Branch (1025:21): [True: 202k, False: 8.74k]
  ------------------
 1026|   202k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1026:29): [True: 172k, False: 29.6k]
  |  Branch (1026:65): [True: 91.5k, False: 80.8k]
  ------------------
 1027|  91.5k|                        {
 1028|  91.5k|                            key_buffer_.push_back(',');
 1029|  91.5k|                        }
 1030|   202k|                        level_stack_.emplace_back(target_t::buffer, container_t::array);
 1031|   202k|                        key_buffer_.push_back('[');
 1032|   202k|                        break;
 1033|  8.74k|                    default:
  ------------------
  |  Branch (1033:21): [True: 8.74k, False: 202k]
  ------------------
 1034|  8.74k|                        level_stack_.emplace_back(target_t::destination, container_t::array);
 1035|  8.74k|                        destination_->begin_array(length, tag, context, ec);
 1036|  8.74k|                        break;
 1037|   210k|                }
 1038|   210k|            }
 1039|   243k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   243k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1040|   243k|        }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6is_keyEv:
  814|  73.0M|            {
  815|  73.0M|                return even_odd_ == 0;
  816|  73.0M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6targetEv:
  824|  41.2M|            {
  825|  41.2M|                return state_;
  826|  41.2M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level5countEv:
  829|  17.1M|            {
  830|  17.1M|                return count_;
  831|  17.1M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5levelC2ENS4_8target_tENS4_11container_tE:
  797|   543k|                : state_(state), type_(type), even_odd_(type == container_t::object ? 0 : 1)
  ------------------
  |  Branch (797:57): [True: 295k, False: 247k]
  ------------------
  798|   543k|            {
  799|   543k|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level9is_objectEv:
  819|  42.9M|            {
  820|  42.9M|                return type_ == container_t::object;
  821|  42.9M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1043|   224k|        {
 1044|   224k|            switch (level_stack_.back().target())
 1045|   224k|            {
 1046|   223k|                case target_t::buffer:
  ------------------
  |  Branch (1046:17): [True: 223k, False: 1.38k]
  ------------------
 1047|   223k|                    key_buffer_.push_back(']');
 1048|   223k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   223k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 223k]
  |  |  ------------------
  |  |   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|   223k|                    level_stack_.pop_back();
 1050|   223k|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (1050:25): [True: 1.28k, False: 222k]
  ------------------
 1051|  1.28k|                    {
 1052|  1.28k|                        destination_->key(key_buffer_, context, ec);
 1053|  1.28k|                        key_buffer_.clear();
 1054|  1.28k|                    }
 1055|   222k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1055:30): [True: 29.0k, False: 192k]
  ------------------
 1056|  29.0k|                    {
 1057|  29.0k|                        key_buffer_.push_back(':');
 1058|  29.0k|                    }
 1059|   223k|                    level_stack_.back().advance();
 1060|   223k|                    break;
 1061|  1.38k|                default:
  ------------------
  |  Branch (1061:17): [True: 1.38k, False: 223k]
  ------------------
 1062|  1.38k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  1.38k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 1.38k]
  |  |  ------------------
  |  |   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|  1.38k|                    level_stack_.pop_back();
 1064|  1.38k|                    level_stack_.back().advance();
 1065|  1.38k|                    destination_->end_array(context, ec);
 1066|  1.38k|                    break;
 1067|   224k|            }
 1068|   224k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   224k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1069|   224k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level7advanceEv:
  802|  25.8M|            {
  803|  25.8M|                if (!is_key())
  ------------------
  |  Branch (803:21): [True: 17.7M, False: 8.08M]
  ------------------
  804|  17.7M|                {
  805|  17.7M|                    ++count_;
  806|  17.7M|                }
  807|  25.8M|                if (is_object())
  ------------------
  |  Branch (807:21): [True: 16.1M, False: 9.68M]
  ------------------
  808|  16.1M|                {
  809|  16.1M|                    even_odd_ = !even_odd_;
  810|  16.1M|                }
  811|  25.8M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1236|  7.13M|        {
 1237|  7.13M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1237:17): [True: 2.33M, False: 4.80M]
  |  Branch (1237:49): [True: 4.20M, False: 600k]
  ------------------
 1238|  6.53M|            {
 1239|  6.53M|                key_.clear();
 1240|  6.53M|                jsoncons::from_integer(value,key_);
 1241|  6.53M|            }
 1242|       |
 1243|  7.13M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1243:17): [True: 2.33M, False: 4.80M]
  ------------------
 1244|  2.33M|            {
 1245|  2.33M|                switch (level_stack_.back().target())
 1246|  2.33M|                {
 1247|  2.26M|                    case target_t::buffer:
  ------------------
  |  Branch (1247:21): [True: 2.26M, False: 66.4k]
  ------------------
 1248|  2.26M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1248:29): [True: 2.24M, False: 23.5k]
  ------------------
 1249|  2.24M|                        {
 1250|  2.24M|                            key_buffer_.push_back(',');
 1251|  2.24M|                        }
 1252|  2.26M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1253|  2.26M|                        key_buffer_.push_back(':');
 1254|  2.26M|                        break;
 1255|  66.4k|                    default:
  ------------------
  |  Branch (1255:21): [True: 66.4k, False: 2.26M]
  ------------------
 1256|  66.4k|                        destination_->key(key_, context, ec);
 1257|  66.4k|                        break;
 1258|  2.33M|                }
 1259|  2.33M|            }
 1260|  4.80M|            else
 1261|  4.80M|            {
 1262|  4.80M|                switch (level_stack_.back().target())
 1263|  4.80M|                {
 1264|  4.20M|                    case target_t::buffer:
  ------------------
  |  Branch (1264:21): [True: 4.20M, False: 600k]
  ------------------
 1265|  4.20M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1265:29): [True: 1.93M, False: 2.27M]
  |  Branch (1265:65): [True: 1.93M, False: 3.99k]
  ------------------
 1266|  1.93M|                        {
 1267|  1.93M|                            key_buffer_.push_back(',');
 1268|  1.93M|                        }
 1269|  4.20M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1270|  4.20M|                        break;
 1271|   600k|                    default:
  ------------------
  |  Branch (1271:21): [True: 600k, False: 4.20M]
  ------------------
 1272|   600k|                        destination_->uint64_value(value, tag, context, ec);
 1273|   600k|                        break;
 1274|  4.80M|                }
 1275|  4.80M|            }
 1276|       |
 1277|  7.13M|            level_stack_.back().advance();
 1278|  7.13M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  7.13M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1279|  7.13M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1282|  3.03M|        {
 1283|  3.03M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1283:17): [True: 841k, False: 2.19M]
  |  Branch (1283:49): [True: 2.18M, False: 14.3k]
  ------------------
 1284|  3.02M|            {
 1285|  3.02M|                key_.clear();
 1286|  3.02M|                jsoncons::from_integer(value,key_);
 1287|  3.02M|            }
 1288|       |
 1289|  3.03M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1289:17): [True: 841k, False: 2.19M]
  ------------------
 1290|   841k|            {
 1291|   841k|                switch (level_stack_.back().target())
 1292|   841k|                {
 1293|   829k|                    case target_t::buffer:
  ------------------
  |  Branch (1293:21): [True: 829k, False: 12.1k]
  ------------------
 1294|   829k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1294:29): [True: 825k, False: 4.23k]
  ------------------
 1295|   825k|                        {
 1296|   825k|                            key_buffer_.push_back(',');
 1297|   825k|                        }
 1298|   829k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1299|   829k|                        key_buffer_.push_back(':');
 1300|   829k|                        break;
 1301|  12.1k|                    default:
  ------------------
  |  Branch (1301:21): [True: 12.1k, False: 829k]
  ------------------
 1302|  12.1k|                        destination_->key(key_, context, ec);
 1303|  12.1k|                        break;
 1304|   841k|                }
 1305|   841k|            }
 1306|  2.19M|            else
 1307|  2.19M|            {
 1308|  2.19M|                switch (level_stack_.back().target())
 1309|  2.19M|                {
 1310|  2.18M|                    case target_t::buffer:
  ------------------
  |  Branch (1310:21): [True: 2.18M, False: 14.3k]
  ------------------
 1311|  2.18M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1311:29): [True: 1.33M, False: 845k]
  |  Branch (1311:65): [True: 1.32M, False: 4.82k]
  ------------------
 1312|  1.32M|                        {
 1313|  1.32M|                            key_buffer_.push_back(',');
 1314|  1.32M|                        }
 1315|  2.18M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1316|  2.18M|                        break;
 1317|  14.3k|                    default:
  ------------------
  |  Branch (1317:21): [True: 14.3k, False: 2.18M]
  ------------------
 1318|  14.3k|                        destination_->int64_value(value, tag, context, ec);
 1319|  14.3k|                        break;
 1320|  2.19M|                }
 1321|  2.19M|            }
 1322|       |
 1323|  3.03M|            level_stack_.back().advance();
 1324|  3.03M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  3.03M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1325|  3.03M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1377|  65.5k|        {
 1378|  65.5k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1378:17): [True: 22.3k, False: 43.2k]
  |  Branch (1378:49): [True: 42.0k, False: 1.13k]
  ------------------
 1379|  64.3k|            {
 1380|  64.3k|                key_.clear();
 1381|  64.3k|                string_sink<string_type> sink(key_);
 1382|  64.3k|                jsoncons::write_double f{float_chars_format::general,0};
 1383|  64.3k|                f(value, sink);
 1384|  64.3k|            }
 1385|       |
 1386|  65.5k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1386:17): [True: 22.3k, False: 43.2k]
  ------------------
 1387|  22.3k|            {
 1388|  22.3k|                switch (level_stack_.back().target())
 1389|  22.3k|                {
 1390|  20.4k|                    case target_t::buffer:
  ------------------
  |  Branch (1390:21): [True: 20.4k, False: 1.85k]
  ------------------
 1391|  20.4k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1391:29): [True: 14.1k, False: 6.31k]
  ------------------
 1392|  14.1k|                        {
 1393|  14.1k|                            key_buffer_.push_back(',');
 1394|  14.1k|                        }
 1395|  20.4k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1396|  20.4k|                        key_buffer_.push_back(':');
 1397|  20.4k|                        break;
 1398|  1.85k|                    default:
  ------------------
  |  Branch (1398:21): [True: 1.85k, False: 20.4k]
  ------------------
 1399|  1.85k|                        destination_->key(key_, context, ec);
 1400|  1.85k|                        break;
 1401|  22.3k|                }
 1402|  22.3k|            }
 1403|  43.2k|            else
 1404|  43.2k|            {
 1405|  43.2k|                switch (level_stack_.back().target())
 1406|  43.2k|                {
 1407|  42.0k|                    case target_t::buffer:
  ------------------
  |  Branch (1407:21): [True: 42.0k, False: 1.13k]
  ------------------
 1408|  42.0k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1408:29): [True: 26.9k, False: 15.1k]
  |  Branch (1408:65): [True: 23.1k, False: 3.79k]
  ------------------
 1409|  23.1k|                        {
 1410|  23.1k|                            key_buffer_.push_back(',');
 1411|  23.1k|                        }
 1412|  42.0k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1413|  42.0k|                        break;
 1414|  1.13k|                    default:
  ------------------
  |  Branch (1414:21): [True: 1.13k, False: 42.0k]
  ------------------
 1415|  1.13k|                        destination_->double_value(value, tag, context, ec);
 1416|  1.13k|                        break;
 1417|  43.2k|                }
 1418|  43.2k|            }
 1419|       |
 1420|  65.5k|            level_stack_.back().advance();
 1421|  65.5k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  65.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1422|  65.5k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  884|    966|        {
  885|    966|            destination_->flush();
  886|    966|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  917|   295k|        {
  918|   295k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (918:17): [True: 159k, False: 136k]
  ------------------
  919|   159k|            {
  920|   159k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (920:21): [True: 156k, False: 3.43k]
  |  Branch (920:73): [True: 81.5k, False: 74.6k]
  ------------------
  921|  81.5k|                {
  922|  81.5k|                    key_buffer_.push_back(',');
  923|  81.5k|                }
  924|   159k|                level_stack_.emplace_back(target_t::buffer, container_t::object);
  925|   159k|                key_buffer_.push_back('{');
  926|   159k|            }
  927|   136k|            else
  928|   136k|            {
  929|   136k|                switch (level_stack_.back().target())
  930|   136k|                {
  931|   128k|                    case target_t::buffer:
  ------------------
  |  Branch (931:21): [True: 128k, False: 8.00k]
  ------------------
  932|   128k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (932:29): [True: 36.3k, False: 91.7k]
  |  Branch (932:65): [True: 34.4k, False: 1.85k]
  ------------------
  933|  34.4k|                        {
  934|  34.4k|                            key_buffer_.push_back(',');
  935|  34.4k|                        }
  936|   128k|                        level_stack_.emplace_back(target_t::buffer, container_t::object);
  937|   128k|                        key_buffer_.push_back('{');
  938|   128k|                        break;
  939|  8.00k|                    default:
  ------------------
  |  Branch (939:21): [True: 8.00k, False: 128k]
  ------------------
  940|  8.00k|                        level_stack_.emplace_back(target_t::destination, container_t::object);
  941|  8.00k|                        destination_->begin_object(length, tag, context, ec);
  942|  8.00k|                        break;
  943|   136k|                }
  944|   136k|            }
  945|   295k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   295k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  946|   295k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  949|   275k|        {
  950|   275k|            switch (level_stack_.back().target())
  951|   275k|            {
  952|   272k|                case target_t::buffer:
  ------------------
  |  Branch (952:17): [True: 272k, False: 2.32k]
  ------------------
  953|   272k|                    key_buffer_.push_back('}');
  954|   272k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   272k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 272k]
  |  |  ------------------
  |  |   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|   272k|                    level_stack_.pop_back();
  956|       |                    
  957|   272k|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (957:25): [True: 2.51k, False: 270k]
  ------------------
  958|  2.51k|                    {
  959|  2.51k|                        destination_->key(key_buffer_,context, ec);
  960|  2.51k|                        key_buffer_.clear();
  961|  2.51k|                    }
  962|   270k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (962:30): [True: 149k, False: 120k]
  ------------------
  963|   149k|                    {
  964|   149k|                        key_buffer_.push_back(':');
  965|   149k|                    }
  966|   272k|                    level_stack_.back().advance();
  967|   272k|                    break;
  968|  2.32k|                default:
  ------------------
  |  Branch (968:17): [True: 2.32k, False: 272k]
  ------------------
  969|  2.32k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  2.32k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 2.32k]
  |  |  ------------------
  |  |   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|  2.32k|                    level_stack_.pop_back();
  971|  2.32k|                    level_stack_.back().advance();
  972|  2.32k|                    destination_->end_object(context, ec);
  973|  2.32k|                    break;
  974|   275k|            }
  975|   275k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   275k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  976|   275k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1478|   115k|        {
 1479|   115k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1479:17): [True: 34.5k, False: 81.0k]
  |  Branch (1479:49): [True: 80.3k, False: 778]
  ------------------
 1480|   114k|            {
 1481|   114k|                key_.clear(); 
 1482|   114k|                key_.insert(key_.begin(), null_constant.begin(), null_constant.end());
 1483|   114k|            }
 1484|       |
 1485|   115k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1485:17): [True: 34.5k, False: 81.0k]
  ------------------
 1486|  34.5k|            {
 1487|  34.5k|                switch (level_stack_.back().target())
 1488|  34.5k|                {
 1489|  33.8k|                    case target_t::buffer:
  ------------------
  |  Branch (1489:21): [True: 33.8k, False: 688]
  ------------------
 1490|  33.8k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1490:29): [True: 31.1k, False: 2.69k]
  ------------------
 1491|  31.1k|                        {
 1492|  31.1k|                            key_buffer_.push_back(',');
 1493|  31.1k|                        }
 1494|  33.8k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1495|  33.8k|                        key_buffer_.push_back(':');
 1496|  33.8k|                        break;
 1497|    688|                    default:
  ------------------
  |  Branch (1497:21): [True: 688, False: 33.8k]
  ------------------
 1498|    688|                        destination_->key(key_, context, ec);
 1499|    688|                        break;
 1500|  34.5k|                }
 1501|  34.5k|            }
 1502|  81.0k|            else
 1503|  81.0k|            {
 1504|  81.0k|                switch (level_stack_.back().target())
 1505|  81.0k|                {
 1506|  80.3k|                    case target_t::buffer:
  ------------------
  |  Branch (1506:21): [True: 80.3k, False: 778]
  ------------------
 1507|  80.3k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1507:29): [True: 48.1k, False: 32.1k]
  |  Branch (1507:65): [True: 47.6k, False: 565]
  ------------------
 1508|  47.6k|                        {
 1509|  47.6k|                            key_buffer_.push_back(',');
 1510|  47.6k|                        }
 1511|  80.3k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1512|  80.3k|                        break;
 1513|    778|                    default:
  ------------------
  |  Branch (1513:21): [True: 778, False: 80.3k]
  ------------------
 1514|    778|                        destination_->null_value(tag, context, ec);
 1515|    778|                        break;
 1516|  81.0k|                }
 1517|  81.0k|            }
 1518|       |
 1519|   115k|            level_stack_.back().advance();
 1520|   115k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   115k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1521|   115k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1425|  10.4M|        {
 1426|  10.4M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1426:17): [True: 3.18M, False: 7.27M]
  |  Branch (1426:49): [True: 7.25M, False: 15.9k]
  ------------------
 1427|  10.4M|            {
 1428|  10.4M|                key_.clear(); 
 1429|  10.4M|                if (value)
  ------------------
  |  Branch (1429:21): [True: 5.84M, False: 4.60M]
  ------------------
 1430|  5.84M|                {
 1431|  5.84M|                    key_.insert(key_.begin(), true_constant.begin(), true_constant.end());
 1432|  5.84M|                }
 1433|  4.60M|                else
 1434|  4.60M|                {
 1435|  4.60M|                    key_.insert(key_.begin(), false_constant.begin(), false_constant.end());
 1436|  4.60M|                }
 1437|  10.4M|            }
 1438|       |
 1439|  10.4M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1439:17): [True: 3.18M, False: 7.27M]
  ------------------
 1440|  3.18M|            {
 1441|  3.18M|                switch (level_stack_.back().target())
 1442|  3.18M|                {
 1443|  3.17M|                    case target_t::buffer:
  ------------------
  |  Branch (1443:21): [True: 3.17M, False: 15.6k]
  ------------------
 1444|  3.17M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1444:29): [True: 3.16M, False: 9.98k]
  ------------------
 1445|  3.16M|                        {
 1446|  3.16M|                            key_buffer_.push_back(',');
 1447|  3.16M|                        }
 1448|  3.17M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1449|  3.17M|                        key_buffer_.push_back(':');
 1450|  3.17M|                        break;
 1451|  15.6k|                    default:
  ------------------
  |  Branch (1451:21): [True: 15.6k, False: 3.17M]
  ------------------
 1452|  15.6k|                        destination_->key(key_, context, ec);
 1453|  15.6k|                        break;
 1454|  3.18M|                }
 1455|  3.18M|            }
 1456|  7.27M|            else
 1457|  7.27M|            {
 1458|  7.27M|                switch (level_stack_.back().target())
 1459|  7.27M|                {
 1460|  7.25M|                    case target_t::buffer:
  ------------------
  |  Branch (1460:21): [True: 7.25M, False: 15.9k]
  ------------------
 1461|  7.25M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1461:29): [True: 4.04M, False: 3.21M]
  |  Branch (1461:65): [True: 4.03M, False: 4.95k]
  ------------------
 1462|  4.03M|                        {
 1463|  4.03M|                            key_buffer_.push_back(',');
 1464|  4.03M|                        }
 1465|  7.25M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1466|  7.25M|                        break;
 1467|  15.9k|                    default:
  ------------------
  |  Branch (1467:21): [True: 15.9k, False: 7.25M]
  ------------------
 1468|  15.9k|                        destination_->bool_value(value, tag, context, ec);
 1469|  15.9k|                        break;
 1470|  7.27M|                }
 1471|  7.27M|            }
 1472|       |
 1473|  10.4M|            level_stack_.back().advance();
 1474|  10.4M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  10.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1475|  10.4M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1075|  4.48M|        {
 1076|  4.48M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1076:17): [True: 1.46M, False: 3.01M]
  ------------------
 1077|  1.46M|            {
 1078|  1.46M|                switch (level_stack_.back().target())
 1079|  1.46M|                {
 1080|  1.46M|                    case target_t::buffer:
  ------------------
  |  Branch (1080:21): [True: 1.46M, False: 2.19k]
  ------------------
 1081|  1.46M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1081:29): [True: 1.46M, False: 1.92k]
  ------------------
 1082|  1.46M|                        {
 1083|  1.46M|                            key_buffer_.push_back(',');
 1084|  1.46M|                        }
 1085|  1.46M|                        key_buffer_.push_back('\"');
 1086|  1.46M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1087|  1.46M|                        key_buffer_.push_back('\"');
 1088|  1.46M|                        key_buffer_.push_back(':');
 1089|  1.46M|                        break;
 1090|  2.19k|                    default:
  ------------------
  |  Branch (1090:21): [True: 2.19k, False: 1.46M]
  ------------------
 1091|  2.19k|                        destination_->key(value, context, ec);
 1092|  2.19k|                        break;
 1093|  1.46M|                }
 1094|  1.46M|            }
 1095|  3.01M|            else
 1096|  3.01M|            {
 1097|  3.01M|                switch (level_stack_.back().target())
 1098|  3.01M|                {
 1099|  3.01M|                    case target_t::buffer:
  ------------------
  |  Branch (1099:21): [True: 3.01M, False: 4.72k]
  ------------------
 1100|  3.01M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1100:29): [True: 1.54M, False: 1.46M]
  |  Branch (1100:65): [True: 1.54M, False: 482]
  ------------------
 1101|  1.54M|                        {
 1102|  1.54M|                            key_buffer_.push_back(',');
 1103|  1.54M|                        }
 1104|  3.01M|                        key_buffer_.push_back('\"');
 1105|  3.01M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1106|  3.01M|                        key_buffer_.push_back('\"');
 1107|  3.01M|                        break;
 1108|  4.72k|                    default:
  ------------------
  |  Branch (1108:21): [True: 4.72k, False: 3.01M]
  ------------------
 1109|  4.72k|                        destination_->string_value(value, tag, context, ec);
 1110|  4.72k|                        break;
 1111|  3.01M|                }
 1112|  3.01M|            }
 1113|       |
 1114|  4.48M|            level_stack_.back().advance();
 1115|  4.48M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  4.48M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1116|  4.48M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1122|  15.4k|        {
 1123|  15.4k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1123:17): [True: 6.28k, False: 9.18k]
  |  Branch (1123:49): [True: 8.18k, False: 991]
  ------------------
 1124|  14.4k|            {
 1125|  14.4k|                key_.clear();
 1126|  14.4k|                switch (tag)
 1127|  14.4k|                {
 1128|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1128:21): [True: 0, False: 14.4k]
  ------------------
 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: 14.4k]
  ------------------
 1132|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1133|      0|                        break;
 1134|  14.4k|                    default:
  ------------------
  |  Branch (1134:21): [True: 14.4k, False: 0]
  ------------------
 1135|  14.4k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1136|  14.4k|                        break;
 1137|  14.4k|                }
 1138|  14.4k|            }
 1139|       |
 1140|  15.4k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1140:17): [True: 6.28k, False: 9.18k]
  ------------------
 1141|  6.28k|            {
 1142|  6.28k|                switch (level_stack_.back().target())
 1143|  6.28k|                {
 1144|  5.44k|                    case target_t::buffer:
  ------------------
  |  Branch (1144:21): [True: 5.44k, False: 842]
  ------------------
 1145|  5.44k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1145:29): [True: 3.61k, False: 1.82k]
  ------------------
 1146|  3.61k|                        {
 1147|  3.61k|                            key_buffer_.push_back(',');
 1148|  3.61k|                        }
 1149|  5.44k|                        key_buffer_.push_back('\"');
 1150|  5.44k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1151|  5.44k|                        key_buffer_.push_back('\"');
 1152|  5.44k|                        key_buffer_.push_back(':');
 1153|  5.44k|                        break;
 1154|    842|                    default:
  ------------------
  |  Branch (1154:21): [True: 842, False: 5.44k]
  ------------------
 1155|    842|                        destination_->key(key_, context, ec);
 1156|    842|                        break;
 1157|  6.28k|                }
 1158|  6.28k|            }
 1159|  9.18k|            else
 1160|  9.18k|            {
 1161|  9.18k|                switch (level_stack_.back().target())
 1162|  9.18k|                {
 1163|  8.18k|                    case target_t::buffer:
  ------------------
  |  Branch (1163:21): [True: 8.18k, False: 991]
  ------------------
 1164|  8.18k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1164:29): [True: 2.53k, False: 5.65k]
  |  Branch (1164:65): [True: 1.86k, False: 676]
  ------------------
 1165|  1.86k|                        {
 1166|  1.86k|                            key_buffer_.push_back(',');
 1167|  1.86k|                        }
 1168|  8.18k|                        key_buffer_.push_back('\"');
 1169|  8.18k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1170|  8.18k|                        key_buffer_.push_back('\"');
 1171|  8.18k|                        break;
 1172|    991|                    default:
  ------------------
  |  Branch (1172:21): [True: 991, False: 8.18k]
  ------------------
 1173|    991|                        destination_->byte_string_value(value, tag, context, ec);
 1174|    991|                        break;
 1175|  9.18k|                }
 1176|  9.18k|            }
 1177|       |
 1178|  15.4k|            level_stack_.back().advance();
 1179|  15.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  15.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1180|  15.4k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1186|  22.4k|        {
 1187|  22.4k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1187:17): [True: 9.94k, False: 12.5k]
  |  Branch (1187:49): [True: 10.7k, False: 1.75k]
  ------------------
 1188|  20.7k|            {
 1189|  20.7k|                key_.clear();
 1190|  20.7k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1191|  20.7k|            }
 1192|       |
 1193|  22.4k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1193:17): [True: 9.94k, False: 12.5k]
  ------------------
 1194|  9.94k|            {
 1195|  9.94k|                switch (level_stack_.back().target())
 1196|  9.94k|                {
 1197|  8.40k|                    case target_t::buffer:
  ------------------
  |  Branch (1197:21): [True: 8.40k, False: 1.54k]
  ------------------
 1198|  8.40k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1198:29): [True: 5.94k, False: 2.45k]
  ------------------
 1199|  5.94k|                        {
 1200|  5.94k|                            key_buffer_.push_back(',');
 1201|  5.94k|                        }
 1202|  8.40k|                        key_buffer_.push_back('\"');
 1203|  8.40k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1204|  8.40k|                        key_buffer_.push_back('\"');
 1205|  8.40k|                        key_buffer_.push_back(':');
 1206|  8.40k|                        break;
 1207|  1.54k|                    default:
  ------------------
  |  Branch (1207:21): [True: 1.54k, False: 8.40k]
  ------------------
 1208|  1.54k|                        destination_->key(key_, context, ec);
 1209|  1.54k|                        break;
 1210|  9.94k|                }
 1211|  9.94k|            }
 1212|  12.5k|            else
 1213|  12.5k|            {
 1214|  12.5k|                switch (level_stack_.back().target())
 1215|  12.5k|                {
 1216|  10.7k|                    case target_t::buffer:
  ------------------
  |  Branch (1216:21): [True: 10.7k, False: 1.75k]
  ------------------
 1217|  10.7k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1217:29): [True: 4.81k, False: 5.93k]
  |  Branch (1217:65): [True: 3.78k, False: 1.03k]
  ------------------
 1218|  3.78k|                        {
 1219|  3.78k|                            key_buffer_.push_back(',');
 1220|  3.78k|                        }
 1221|  10.7k|                        key_buffer_.push_back('\"');
 1222|  10.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1223|  10.7k|                        key_buffer_.push_back('\"');
 1224|  10.7k|                        break;
 1225|  1.75k|                    default:
  ------------------
  |  Branch (1225:21): [True: 1.75k, False: 10.7k]
  ------------------
 1226|  1.75k|                        destination_->byte_string_value(value, ext_tag, context, ec);
 1227|  1.75k|                        break;
 1228|  12.5k|                }
 1229|  12.5k|            }
 1230|       |
 1231|  22.4k|            level_stack_.back().advance();
 1232|  22.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  22.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1233|  22.4k|        }
_ZN8jsoncons24basic_item_event_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  293|   243k|        {
  294|   243k|            visit_begin_array(length, tag, context, ec);
  295|   243k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   243k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  296|   243k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  362|  7.13M|        {
  363|  7.13M|            visit_uint64(value, tag, context, ec);
  364|  7.13M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  7.13M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  365|  7.13M|        }
_ZN8jsoncons24basic_item_event_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  299|   224k|        {
  300|   224k|            visit_end_array(context, ec);
  301|   224k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   224k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  302|   224k|        }
_ZN8jsoncons24basic_item_event_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  371|  3.03M|        {
  372|  3.03M|            visit_int64(value, tag, context, ec);
  373|  3.03M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  3.03M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  374|  3.03M|        }
_ZN8jsoncons24basic_item_event_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  389|  65.5k|        {
  390|  65.5k|            visit_double(value, tag, context, ec);
  391|  65.5k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  65.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  392|  65.5k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  858|  4.80k|            : destination_(std::addressof(visitor)), 
  859|  4.80k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  860|  4.80k|        {
  861|  4.80k|            level_stack_.emplace_back(target_t::destination,container_t::root); // root
  862|  4.80k|        }
_ZN8jsoncons24basic_item_event_visitorIcEC2Ev:
   51|  4.80k|        basic_item_event_visitor() = default;
_ZN8jsoncons24basic_item_event_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  275|   295k|        {
  276|   295k|            visit_begin_object(length, tag, context, ec);
  277|   295k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   295k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  278|   295k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  331|  4.48M|        {
  332|  4.48M|            visit_string(value, tag, context, ec);
  333|  4.48M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  4.48M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  334|  4.48M|        }
_ZN8jsoncons24basic_item_event_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  313|   115k|        {
  314|   115k|            visit_null(tag, context, ec);
  315|   115k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   115k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  316|   115k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  322|  10.4M|        {
  323|  10.4M|            visit_bool(value, tag, context, ec);
  324|  10.4M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  10.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  325|  10.4M|        }
_ZN8jsoncons24basic_item_event_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  342|  15.4k|        {
  343|  15.4k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  344|  15.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  15.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  345|  15.4k|        }
_ZN8jsoncons24basic_item_event_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  353|  22.4k|        {
  354|  22.4k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), ext_tag, context, ec);
  355|  22.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  22.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  356|  22.4k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  281|   275k|        {
  282|   275k|            visit_end_object(context, ec);
  283|   275k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   275k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  284|   275k|        }
_ZN8jsoncons24basic_item_event_visitorIcE5flushEv:
   56|    966|        {
   57|    966|            visit_flush();
   58|    966|        }

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

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

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

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  188|  4.80k|        {
  189|  4.80k|            if (buffer_)
  ------------------
  |  Branch (189:17): [True: 4.80k, False: 0]
  ------------------
  190|  4.80k|            {
  191|  4.80k|                std::allocator_traits<char_allocator_type>::deallocate(alloc_, buffer_, buffer_size_);
  192|  4.80k|            }
  193|  4.80k|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  171|  4.80k|            : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  172|  4.80k|              buffer_size_(default_max_buffer_size)
  173|  4.80k|        {
  174|  4.80k|            buffer_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, buffer_size_);
  175|  4.80k|            data_ = buffer_;
  176|  4.80k|        }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   54|  4.80k|          : std::basic_istream<CharT>(&nb_)
   55|  4.80k|        {
   56|  4.80k|        }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   40|  4.80k|            null_buffer() = default;
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8is_errorEv:
  276|  25.8M|        {
  277|  25.8M|            return stream_ptr_->bad();  
  278|  25.8M|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  343|  33.7M|        {
  344|  33.7M|            std::size_t len = 0;
  345|  33.7M|            if (length_ > 0)
  ------------------
  |  Branch (345:17): [True: 33.7M, False: 10.2k]
  ------------------
  346|  33.7M|            {
  347|  33.7M|                len = (std::min)(length_, length);
  348|  33.7M|                std::memcpy(p, data_, len*sizeof(value_type));
  349|  33.7M|                data_ += len;
  350|  33.7M|                length_ -= len;
  351|  33.7M|                position_ += len;
  352|  33.7M|            }
  353|  33.7M|            if (length - len == 0)
  ------------------
  |  Branch (353:17): [True: 33.7M, False: 11.3k]
  ------------------
  354|  33.7M|            {
  355|  33.7M|                return len;
  356|  33.7M|            }
  357|  11.3k|            else if (length - len < buffer_size_)
  ------------------
  |  Branch (357:22): [True: 11.0k, False: 212]
  ------------------
  358|  11.0k|            {
  359|  11.0k|                fill_buffer();
  360|  11.0k|                if (length_ > 0)
  ------------------
  |  Branch (360:21): [True: 7.61k, False: 3.48k]
  ------------------
  361|  7.61k|                {
  362|  7.61k|                    std::size_t len2 = (std::min)(length_, length-len);
  363|  7.61k|                    std::memcpy(p+len, data_, len2*sizeof(value_type));
  364|  7.61k|                    data_ += len2;
  365|  7.61k|                    length_ -= len2;
  366|  7.61k|                    position_ += len2;
  367|  7.61k|                    len += len2;
  368|  7.61k|                }
  369|  11.0k|                return len;
  370|  11.0k|            }
  371|    212|            else
  372|    212|            {
  373|    212|                if (stream_ptr_->eof())
  ------------------
  |  Branch (373:21): [True: 0, False: 212]
  ------------------
  374|      0|                {
  375|      0|                    length_ = 0;
  376|      0|                    return 0;
  377|      0|                }
  378|    212|                JSONCONS_TRY
  ------------------
  |  |   37|    212|    #define JSONCONS_TRY try
  ------------------
  379|    212|                {
  380|    212|                    std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  381|    212|                    std::size_t len2 = static_cast<std::size_t>(count);
  382|    212|                    if (len2 < length-len)
  ------------------
  |  Branch (382:25): [True: 24, False: 188]
  ------------------
  383|     24|                    {
  384|     24|                        stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  385|     24|                    }
  386|    212|                    len += len2;
  387|    212|                    position_ += len2;
  388|    212|                    return len;
  389|    212|                }
  390|    212|                JSONCONS_CATCH(const std::exception&)     
  391|    212|                {
  392|      0|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  393|      0|                    return 0;
  394|      0|                }
  395|    212|            }
  396|  33.7M|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEv:
  399|  11.0k|        {
  400|  11.0k|            if (stream_ptr_->eof())
  ------------------
  |  Branch (400:17): [True: 3.46k, False: 7.63k]
  ------------------
  401|  3.46k|            {
  402|  3.46k|                length_ = 0;
  403|  3.46k|                return;
  404|  3.46k|            }
  405|       |
  406|  7.63k|            data_ = buffer_;
  407|  7.63k|            JSONCONS_TRY
  ------------------
  |  |   37|  7.63k|    #define JSONCONS_TRY try
  ------------------
  408|  7.63k|            {
  409|  7.63k|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(buffer_), buffer_size_);
  410|  7.63k|                length_ = static_cast<std::size_t>(count);
  411|       |
  412|  7.63k|                if (length_ < buffer_size_)
  ------------------
  |  Branch (412:21): [True: 4.77k, False: 2.86k]
  ------------------
  413|  4.77k|                {
  414|  4.77k|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  415|  4.77k|                }
  416|  7.63k|            }
  417|  7.63k|            JSONCONS_CATCH(const std::exception&)     
  418|  7.63k|            {
  419|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  420|      0|                length_ = 0;
  421|      0|            }
  422|  7.63k|        }
_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|  4.45M|        {
  883|  4.45M|            std::size_t unread = length;
  884|       |
  885|  4.45M|            std::size_t n = (std::min)(max_buffer_length, unread);
  886|  4.46M|            while (n > 0 && !source.eof())
  ------------------
  |  Branch (886:20): [True: 4.93k, False: 4.45M]
  |  Branch (886:29): [True: 4.79k, False: 143]
  ------------------
  887|  4.79k|            {
  888|  4.79k|                v.reserve(v.size()+n);
  889|  4.79k|                std::size_t actual = 0;
  890|  7.37M|                while (actual < n)
  ------------------
  |  Branch (890:24): [True: 7.36M, False: 4.70k]
  ------------------
  891|  7.36M|                {
  892|  7.36M|                    typename Source::value_type c{};
  893|  7.36M|                    if (source.read(&c,1) != 1)
  ------------------
  |  Branch (893:25): [True: 82, False: 7.36M]
  ------------------
  894|     82|                    {
  895|     82|                        break;
  896|     82|                    }
  897|  7.36M|                    v.push_back(c);
  898|  7.36M|                    ++actual;
  899|  7.36M|                }
  900|  4.79k|                unread -= actual;
  901|  4.79k|                n = (std::min)(max_buffer_length, unread);
  902|  4.79k|            }
  903|       |
  904|  4.45M|            return length - unread;
  905|  4.45M|        }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  25.5k|        {
  272|  25.5k|            return length_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:20): [True: 842, False: 24.7k]
  |  Branch (272:36): [True: 467, False: 375]
  ------------------
  273|  25.5k|        }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaaasr3std14is_convertibleIhNT_10value_typeEEE5valuesr10ext_traits11has_reserveISB_EE5valuesr10ext_traits14has_data_exactIPhSB_EE5valueEmE4typeERS5_RSB_m:
  859|  38.2k|        {
  860|  38.2k|            std::size_t unread = length;
  861|       |
  862|  38.2k|            std::size_t n = (std::min)(max_buffer_length, unread);
  863|  58.5k|            while (n > 0 && !source.eof())
  ------------------
  |  Branch (863:20): [True: 20.6k, False: 37.9k]
  |  Branch (863:29): [True: 20.2k, False: 324]
  ------------------
  864|  20.2k|            {
  865|  20.2k|                std::size_t offset = v.size();
  866|  20.2k|                v.resize(v.size()+n);
  867|  20.2k|                std::size_t actual = source.read(v.data()+offset, n);
  868|  20.2k|                unread -= actual;
  869|  20.2k|                n = (std::min)(max_buffer_length, unread);
  870|  20.2k|            }
  871|       |
  872|  38.2k|            return length - unread;
  873|  38.2k|        }

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  682|  64.8k|        : storage_(n, alloc)
  683|  64.8k|    {
  684|  64.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  349|  64.8k|        : word_allocator_type(alloc)
  350|  64.8k|    {
  351|  64.8k|        ::new (&inlined_) inlined_storage(n);
  352|  64.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  137|  64.8k|            : is_allocated_(false),
  138|  64.8k|            is_negative_(false),
  139|  64.8k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (139:19): [True: 25.4k, False: 39.4k]
  ------------------
  140|  64.8k|        {
  141|  64.8k|            values_[0] = n;
  142|  64.8k|            values_[1] = 0;
  143|  64.8k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  932|  23.7k|    {
  933|  23.7k|        auto this_view = get_storage_view();
  934|  23.7k|        size_type len0 = this_view.size();
  935|  23.7k|        word_type dig = this_view[0];
  936|  23.7k|        word_type carry = 0;
  937|       |
  938|  23.7k|        resize(this_view.size() + 1);
  939|  23.7k|        this_view = get_storage_view();
  940|       |
  941|  23.7k|        size_type i = 0;
  942|  45.6k|        for (; i < len0; i++ )
  ------------------
  |  Branch (942:16): [True: 21.8k, False: 23.7k]
  ------------------
  943|  21.8k|        {
  944|  21.8k|            word_type hi;
  945|  21.8k|            word_type lo;
  946|  21.8k|            DDproduct( dig, y, hi, lo );
  947|  21.8k|            this_view[i] = lo + carry;
  948|  21.8k|            dig = this_view[i+1];
  949|  21.8k|            carry = hi + (this_view[i] < lo);
  950|  21.8k|        }
  951|  23.7k|        this_view[i] = carry;
  952|  23.7k|        reduce();
  953|  23.7k|        return *this;
  954|  23.7k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  707|   408k|    {
  708|   408k|        return storage_.get_storage_view();
  709|   408k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  509|   587k|    {
  510|   587k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (510:16): [True: 196k, False: 390k]
  ------------------
  511|   196k|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  512|   587k|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  513|   587k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   63|   587k|            : data_(data), size_(size)
   64|   587k|        {
   65|   587k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   83|   960k|        {
   84|   960k|            return size_;
   85|   960k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   68|   383k|        {
   69|   383k|            return data_[i];
   70|   383k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  824|  62.9k|    {
  825|  62.9k|        storage_.resize(new_length);
  826|  62.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  523|   131k|    {
  524|   131k|        size_type old_length = common_.size_;
  525|   131k|        reserve(new_length);
  526|   131k|        common_.size_ = new_length;
  527|       |
  528|   131k|        if (old_length < new_length)
  ------------------
  |  Branch (528:13): [True: 70.1k, False: 61.5k]
  ------------------
  529|  70.1k|        {
  530|  70.1k|            if (is_allocated())
  ------------------
  |  Branch (530:17): [True: 15.1k, False: 55.0k]
  ------------------
  531|  15.1k|            {
  532|  15.1k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  533|  15.1k|            }
  534|  55.0k|            else
  535|  55.0k|            {
  536|  55.0k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   45|  55.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 55.0k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  537|   136k|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (537:48): [True: 81.5k, False: 55.0k]
  ------------------
  538|  81.5k|                {
  539|  81.5k|                    inlined_.values_[i] = 0;
  540|  81.5k|                }
  541|  55.0k|            }
  542|  70.1k|        }
  543|   131k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  441|   131k|    {
  442|   131k|       if (capacity() < n)
  ------------------
  |  Branch (442:12): [True: 15.1k, False: 116k]
  ------------------
  443|  15.1k|       {
  444|  15.1k|           if (!is_allocated())
  ------------------
  |  Branch (444:16): [True: 15.1k, False: 0]
  ------------------
  445|  15.1k|           {
  446|  15.1k|               size_type size = inlined_.size_;
  447|  15.1k|               size_type is_neg = inlined_.is_negative_;
  448|  15.1k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  449|       |
  450|  15.1k|               ::new (&allocated_) allocated_storage();
  451|  15.1k|               allocated_.reserve(n, get_allocator());
  452|  15.1k|               allocated_.size_ = size;
  453|  15.1k|               allocated_.is_negative_ = is_neg;
  454|  15.1k|               if (n >= 1)
  ------------------
  |  Branch (454:20): [True: 15.1k, False: 0]
  ------------------
  455|  15.1k|               {
  456|  15.1k|                   allocated_.data_[0] = values[0];
  457|  15.1k|               }
  458|  15.1k|               if (n >= 2)
  ------------------
  |  Branch (458:20): [True: 15.1k, False: 0]
  ------------------
  459|  15.1k|               {
  460|  15.1k|                   allocated_.data_[1] = values[1];
  461|  15.1k|               }
  462|  15.1k|           }
  463|      0|           else
  464|      0|           {
  465|      0|               allocated_.reserve(n, get_allocator());
  466|      0|           }
  467|  15.1k|       }
  468|   131k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  494|   131k|    {
  495|   131k|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (495:16): [True: 30.2k, False: 101k]
  ------------------
  496|   131k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  201|  15.1k|            : is_allocated_(true),
  202|  15.1k|            is_negative_(false)
  203|  15.1k|        {
  204|  15.1k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  253|  15.1k|        {
  254|  15.1k|            size_type capacity_new = round_up(n);
  255|       |
  256|  15.1k|            real_allocator_type alloc(a);
  257|  15.1k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  258|  15.1k|            if (size_ > 0)
  ------------------
  |  Branch (258:17): [True: 0, False: 15.1k]
  ------------------
  259|      0|            {
  260|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  261|      0|            }
  262|  15.1k|            if (data_ != nullptr)
  ------------------
  |  Branch (262:17): [True: 0, False: 15.1k]
  ------------------
  263|      0|            {
  264|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  265|      0|            }
  266|  15.1k|            capacity_ = capacity_new;
  267|  15.1k|            data_ = data_new;
  268|  15.1k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  272|  75.5k|        {
  273|       |            //if (i == (std::numeric_limits<size_type>::max)())
  274|       |            //{
  275|       |            //    return i;
  276|       |            //}
  277|  75.5k|            return ((i + 1/3) / mem_unit + 1) * mem_unit;
  278|  75.5k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  471|   295k|    {
  472|   295k|        return static_cast<const word_allocator_type&>(*this);
  473|   295k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  489|   648k|    {
  490|   648k|        return common_.is_allocated_;
  491|   648k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1713|  37.4k|    {
 1714|  37.4k|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1715|  37.4k|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1716|       |
 1717|  37.4k|        lo = loA * loB;
 1718|  37.4k|        hi = hiA * hiB;
 1719|  37.4k|        word_type mid1 = loA * hiB;
 1720|  37.4k|        word_type mid2 = hiA * loB;
 1721|  37.4k|        word_type old = lo;
 1722|  37.4k|        lo += mid1 << word_type_half_bits;
 1723|  37.4k|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1724|  37.4k|        old = lo;
 1725|  37.4k|        lo += mid2 << word_type_half_bits;
 1726|  37.4k|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1727|  37.4k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1849|   109k|    {
 1850|   109k|        storage_.reduce();
 1851|   109k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  418|   109k|    {
  419|   109k|        if (common_.size_ > 0)
  ------------------
  |  Branch (419:13): [True: 109k, False: 0]
  ------------------
  420|   109k|        {
  421|   109k|            auto this_view = get_storage_view();
  422|   109k|            word_type* p = this_view.end() - 1;
  423|   109k|            word_type* first = this_view.begin();
  424|   157k|            while ( p >= first )
  ------------------
  |  Branch (424:21): [True: 154k, False: 3.24k]
  ------------------
  425|   154k|            {
  426|   154k|                if ( *p )
  ------------------
  |  Branch (426:22): [True: 106k, False: 47.6k]
  ------------------
  427|   106k|                {
  428|   106k|                    break;
  429|   106k|                }
  430|  47.6k|                --common_.size_;
  431|  47.6k|                --p;
  432|  47.6k|            }
  433|   109k|        }
  434|   109k|        if (common_.size_ == 0)
  ------------------
  |  Branch (434:13): [True: 3.24k, False: 106k]
  ------------------
  435|  3.24k|        {
  436|  3.24k|            common_.is_negative_ = false;
  437|  3.24k|        }
  438|   109k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   92|   109k|        {
   93|   109k|            return data_ + size_;
   94|   109k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   87|   109k|        {
   88|   109k|            return data_;
   89|   109k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  854|  23.7k|    {
  855|  23.7k|        auto y_view = y.get_storage_view();
  856|       |        
  857|  23.7k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (857:14): [True: 0, False: 23.7k]
  ------------------
  858|      0|            return *this -= -y;
  859|  23.7k|        word_type d;
  860|  23.7k|        word_type carry = 0;
  861|       |
  862|  23.7k|        auto this_view = get_storage_view();
  863|  23.7k|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  864|  23.7k|        this_view = get_storage_view();
  865|       |
  866|  50.0k|        for (size_type i = 0; i < this_view.size(); i++ )
  ------------------
  |  Branch (866:31): [True: 49.5k, False: 439]
  ------------------
  867|  49.5k|        {
  868|  49.5k|            if ( i >= y_view.size() && carry == 0 )
  ------------------
  |  Branch (868:18): [True: 29.0k, False: 20.5k]
  |  Branch (868:40): [True: 23.2k, False: 5.73k]
  ------------------
  869|  23.2k|                break;
  870|  26.3k|            d = this_view[i] + carry;
  871|  26.3k|            carry = d < carry;
  872|  26.3k|            if ( i < y_view.size())
  ------------------
  |  Branch (872:18): [True: 20.5k, False: 5.73k]
  ------------------
  873|  20.5k|            {
  874|  20.5k|                this_view[i] = d + y_view[i];
  875|  20.5k|                if (this_view[i] < d)
  ------------------
  |  Branch (875:21): [True: 5.73k, False: 14.8k]
  ------------------
  876|  5.73k|                    carry = 1;
  877|  20.5k|            }
  878|  5.73k|            else
  879|  5.73k|            {
  880|  5.73k|                this_view[i] = d;
  881|  5.73k|            }
  882|  26.3k|        }
  883|  23.7k|        reduce();
  884|  23.7k|        return *this;
  885|  23.7k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  712|   169k|    {
  713|   169k|        return storage_.get_storage_view();
  714|   169k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  516|   238k|    {
  517|   238k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (517:16): [True: 75.5k, False: 162k]
  ------------------
  518|  75.5k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  519|   238k|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  520|   238k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   63|   238k|            : data_(data), size_(size)
   64|   238k|        {
   65|   238k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  717|   398k|    {
  718|   398k|        return storage_.is_negative();
  719|   398k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  499|   398k|    {
  500|   398k|        return common_.is_negative_;
  501|   398k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  841|  5.99k|    {
  842|  5.99k|        basic_bigint<Allocator> v(*this);
  843|  5.99k|        v.set_negative(!v.is_negative());
  844|  5.99k|        return v;
  845|  5.99k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  660|  29.7k|        : storage_(other.storage_)
  661|  29.7k|    {
  662|  29.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  295|  29.7k|        : word_allocator_type(other.get_allocator())
  296|  29.7k|    {
  297|  29.7k|        if (!other.is_allocated())
  ------------------
  |  Branch (297:13): [True: 14.6k, False: 15.1k]
  ------------------
  298|  14.6k|        {
  299|  14.6k|            ::new (&inlined_) inlined_storage(other.inlined_);
  300|  14.6k|        }
  301|  15.1k|        else
  302|  15.1k|        {
  303|  15.1k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  304|  15.1k|        }
  305|  29.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  177|  84.6k|            : is_allocated_(false),
  178|  84.6k|            is_negative_(stor.is_negative_),
  179|  84.6k|            size_(stor.size_)
  180|  84.6k|        {
  181|  84.6k|            values_[0] = stor.values_[0];
  182|  84.6k|            values_[1] = stor.values_[1];
  183|  84.6k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  207|  60.4k|            : is_allocated_(true),
  208|  60.4k|              is_negative_(stor.is_negative_),
  209|  60.4k|              size_(stor.size_),
  210|  60.4k|              capacity_(round_up(stor.size_))
  211|  60.4k|        {
  212|  60.4k|            real_allocator_type alloc(a);
  213|       |
  214|  60.4k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  215|  60.4k|            JSONCONS_TRY
  ------------------
  |  |   37|  60.4k|    #define JSONCONS_TRY try
  ------------------
  216|  60.4k|            {
  217|  60.4k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  218|  60.4k|            }
  219|  60.4k|            JSONCONS_CATCH(...)
  220|  60.4k|            {
  221|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  222|      0|                data_ = nullptr;
  223|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  224|      0|            }
  225|  60.4k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   45|  60.4k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 60.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 ))); }
  ------------------
  226|  60.4k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  227|  60.4k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  722|   174k|    {
  723|   174k|        storage_.set_negative(value);
  724|   174k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  504|   174k|    {
  505|   174k|        common_.is_negative_ = value;
  506|   174k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   83|   583k|        {
   84|   583k|            return size_;
   85|   583k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   68|   119k|        {
   69|   119k|            return data_[i];
   70|   119k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  697|   286k|    {
  698|   286k|        storage_.destroy();
  699|   286k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  476|   286k|    {
  477|   286k|        if (is_allocated())
  ------------------
  |  Branch (477:13): [True: 75.5k, False: 210k]
  ------------------
  478|  75.5k|        {
  479|  75.5k|            allocated_.destroy(get_allocator());
  480|  75.5k|            allocated_.~allocated_storage();
  481|  75.5k|        }
  482|   210k|        else
  483|   210k|        {
  484|   210k|            inlined_.~inlined_storage();
  485|   210k|        }
  486|   286k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  244|  75.5k|        {
  245|  75.5k|            if (data_ != nullptr)
  ------------------
  |  Branch (245:17): [True: 75.5k, False: 0]
  ------------------
  246|  75.5k|            {
  247|  75.5k|                real_allocator_type alloc(a);
  248|  75.5k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  249|  75.5k|            }
  250|  75.5k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12write_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1292|  23.7k|    {
 1293|  23.7k|        basic_bigint<Allocator> v(*this);
 1294|  23.7k|        auto v_view = v.get_storage_view();
 1295|       |
 1296|  23.7k|        size_type len = (v_view.size() * word_type_bits / 3) + 2;
 1297|  23.7k|        data.reserve(len);
 1298|       |
 1299|  23.7k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1299:14): [True: 1.18k, False: 22.5k]
  ------------------
 1300|  1.18k|        {
 1301|  1.18k|            data.push_back('0');
 1302|  1.18k|        }
 1303|  22.5k|        else
 1304|  22.5k|        {
 1305|  22.5k|            word_type r;
 1306|  22.5k|            basic_bigint<Allocator> R(get_allocator());
 1307|  22.5k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1308|       |
 1309|  22.5k|            do
 1310|  42.1k|            {
 1311|  42.1k|                v.divide( LP10, v, R, true );
 1312|  42.1k|                v_view = v.get_storage_view();
 1313|       |
 1314|  42.1k|                auto R_view = R.get_storage_view();
 1315|  42.1k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1315:22): [True: 41.5k, False: 609]
  ------------------
 1316|   552k|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1316:38): [True: 533k, False: 19.6k]
  ------------------
 1317|   533k|                {
 1318|   533k|                    data.push_back(char(r % 10u + '0'));
 1319|   533k|                    r /= 10u;
 1320|   533k|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1320:26): [True: 22.5k, False: 510k]
  ------------------
 1321|  22.5k|                        break;
 1322|   533k|                }
 1323|  42.1k|            } 
 1324|  42.1k|            while ( v_view.size() > 0);
  ------------------
  |  Branch (1324:21): [True: 19.6k, False: 22.5k]
  ------------------
 1325|       |
 1326|  22.5k|            if (is_negative())
  ------------------
  |  Branch (1326:17): [True: 5.99k, False: 16.5k]
  ------------------
 1327|  5.99k|            {
 1328|  5.99k|                data.push_back('-');
 1329|  5.99k|            }
 1330|  22.5k|            std::reverse(data.begin(),data.end());
 1331|  22.5k|        }
 1332|  23.7k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  702|   160k|    {
  703|   160k|        return storage_.get_allocator();
  704|   160k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  633|  22.5k|        : storage_(alloc)
  634|  22.5k|    {
  635|  22.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  289|  22.5k|        : word_allocator_type(alloc)
  290|  22.5k|    {
  291|  22.5k|        ::new (&inlined_) inlined_storage();
  292|  22.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  112|  22.5k|            : is_allocated_(false),
  113|  22.5k|            is_negative_(false),
  114|  22.5k|            size_(0),
  115|  22.5k|            values_{0, 0}
  116|  22.5k|        {
  117|  22.5k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1607|  42.1k|    {
 1608|  42.1k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1609|  42.1k|        auto denom_view = denom.get_storage_view();
 1610|       |
 1611|  42.1k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1611:13): [True: 0, False: 42.1k]
  ------------------
 1612|      0|        {
 1613|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1614|      0|        }
 1615|  42.1k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1616|  42.1k|        bool rem_neg = is_negative();
 1617|  42.1k|        basic_bigint<Allocator> num(*this, get_allocator());
 1618|  42.1k|        num.set_negative(false);
 1619|  42.1k|        denom.set_negative(false);
 1620|  42.1k|        if ( num < denom )
  ------------------
  |  Branch (1620:14): [True: 22.5k, False: 19.6k]
  ------------------
 1621|  22.5k|        {
 1622|  22.5k|            quot = word_type(0);
 1623|  22.5k|            quot.set_negative(quot_neg);
 1624|  22.5k|            rem = num;
 1625|  22.5k|            rem.set_negative(rem_neg);
 1626|  22.5k|            return;
 1627|  22.5k|        }
 1628|       |
 1629|  19.6k|        auto num_view = num.get_storage_view();
 1630|  19.6k|        auto quot_view = quot.get_storage_view();
 1631|  19.6k|        auto this_view = get_storage_view();
 1632|       |
 1633|  19.6k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1633:14): [True: 19.6k, False: 0]
  |  Branch (1633:40): [True: 4.06k, False: 15.5k]
  ------------------
 1634|  4.06k|        {
 1635|  4.06k|            quot = word_type( num_view[0]/denom_view[0] );
 1636|  4.06k|            rem = word_type( num_view[0]%denom_view[0] );
 1637|  4.06k|            quot.set_negative(quot_neg);
 1638|  4.06k|            rem.set_negative(rem_neg);
 1639|  4.06k|            return;
 1640|  4.06k|        }
 1641|  15.5k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1641:13): [True: 15.5k, False: 0]
  |  Branch (1641:39): [True: 0, False: 15.5k]
  ------------------
 1642|      0|        {
 1643|       |            // Denominator fits into a half word
 1644|      0|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1645|      0|            quot.resize(this_view.size());
 1646|      0|            quot_view = quot.get_storage_view();
 1647|      0|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1647:48): [True: 0, False: 0]
  ------------------
 1648|      0|            {
 1649|      0|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1650|      0|                q1 = dividend/divisor;
 1651|      0|                r = dividend % divisor;
 1652|      0|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1653|      0|                q2 = dividend/divisor;
 1654|      0|                dHi = dividend % divisor;
 1655|      0|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1656|      0|            }
 1657|      0|            quot.reduce();
 1658|      0|            rem = dHi;
 1659|      0|            quot.set_negative(quot_neg);
 1660|      0|            rem.set_negative(rem_neg);
 1661|      0|            return;
 1662|      0|        }
 1663|  15.5k|        basic_bigint<Allocator> num0(num, get_allocator());
 1664|  15.5k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1665|  15.5k|        int x = 0;
 1666|  15.5k|        bool second_done = normalize(denom, num, x);
 1667|  15.5k|        denom_view = denom.get_storage_view();
 1668|  15.5k|        num_view = num.get_storage_view();
 1669|       |
 1670|  15.5k|        size_type l = denom_view.size() - 1;
 1671|  15.5k|        size_type n = num_view.size() - 1;
 1672|  15.5k|        quot.resize(n - l);
 1673|  15.5k|        quot_view = quot.get_storage_view();
 1674|  31.1k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1674:46): [True: 15.5k, False: 15.5k]
  ------------------
 1675|  15.5k|        {
 1676|  15.5k|            quot_view[i] = 0;
 1677|  15.5k|        }
 1678|  15.5k|        rem = num;
 1679|  15.5k|        auto rem_view = rem.get_storage_view();
 1680|  15.5k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1680:14): [True: 0, False: 15.5k]
  ------------------
 1681|      0|        {
 1682|      0|            rem.resize(rem_view.size() + 1);
 1683|      0|            rem_view = rem.get_storage_view();
 1684|      0|            n++;
 1685|      0|            quot.resize(quot_view.size() + 1);
 1686|      0|            quot_view = quot.get_storage_view();
 1687|      0|        }
 1688|  15.5k|        word_type d = denom_view[l];
 1689|       |
 1690|  31.1k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1690:32): [True: 15.5k, False: 15.5k]
  ------------------
 1691|  15.5k|        {
 1692|  15.5k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1693|  15.5k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1694|  15.5k|            quot_view[k - l - 1] = q;
 1695|  15.5k|        }
 1696|  15.5k|        quot.reduce();
 1697|  15.5k|        quot.set_negative(quot_neg);
 1698|  15.5k|        if (remDesired)
  ------------------
  |  Branch (1698:13): [True: 15.5k, False: 0]
  ------------------
 1699|  15.5k|        {
 1700|  15.5k|            unnormalize(rem, x, second_done);
 1701|  15.5k|            rem.set_negative(rem_neg);
 1702|  15.5k|        }
 1703|  15.5k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  665|   115k|        : storage_(other.storage_, alloc)
  666|   115k|    {
  667|   115k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  308|   115k|        : word_allocator_type(alloc)
  309|   115k|    {
  310|   115k|        if (!other.is_allocated())
  ------------------
  |  Branch (310:13): [True: 70.0k, False: 45.3k]
  ------------------
  311|  70.0k|        {
  312|  70.0k|            ::new (&inlined_) inlined_storage(other.inlined_);
  313|  70.0k|        }
  314|  45.3k|        else
  315|  45.3k|        {
  316|  45.3k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  317|  45.3k|        }
  318|   115k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1409|  42.1k|    {
 1410|  42.1k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1410:15): [True: 22.5k, False: 19.6k]
  ------------------
 1411|  42.1k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1574|  60.0k|    {
 1575|  60.0k|        auto this_view = get_storage_view();
 1576|  60.0k|        auto y_view = y.get_storage_view();
 1577|       |
 1578|  60.0k|        if ( this_view.size() == 0 && y_view.size() == 0 )
  ------------------
  |  Branch (1578:14): [True: 722, False: 59.3k]
  |  Branch (1578:39): [True: 722, False: 0]
  ------------------
 1579|    722|            return 0;
 1580|  59.3k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1580:14): [True: 5.99k, False: 53.3k]
  ------------------
 1581|  5.99k|            return y.is_negative() - is_negative();
 1582|  53.3k|        int code = 0;
 1583|  53.3k|        if ( this_view.size() < y_view.size())
  ------------------
  |  Branch (1583:14): [True: 0, False: 53.3k]
  ------------------
 1584|      0|            code = -1;
 1585|  53.3k|        else if ( this_view.size() > y_view.size())
  ------------------
  |  Branch (1585:19): [True: 26.7k, False: 26.5k]
  ------------------
 1586|  26.7k|            code = +1;
 1587|  26.5k|        else
 1588|  26.5k|        {
 1589|  26.9k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1589:50): [True: 26.5k, False: 395]
  ------------------
 1590|  26.5k|            {
 1591|  26.5k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1591:21): [True: 3.66k, False: 22.9k]
  ------------------
 1592|  3.66k|                {
 1593|  3.66k|                    code = 1;
 1594|  3.66k|                    break;
 1595|  3.66k|                }
 1596|  22.9k|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1596:26): [True: 22.5k, False: 395]
  ------------------
 1597|  22.5k|                {
 1598|  22.5k|                    code = -1;
 1599|  22.5k|                    break;
 1600|  22.5k|                }
 1601|  26.5k|            }
 1602|  26.5k|        }
 1603|  53.3k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1603:16): [True: 0, False: 53.3k]
  ------------------
 1604|  59.3k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  848|  68.7k|    {
  849|  68.7k|        storage_ = y.storage_;
  850|  68.7k|        return *this;
  851|  68.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  355|  68.7k|    {
  356|  68.7k|        if (this != &other)
  ------------------
  |  Branch (356:13): [True: 68.7k, False: 0]
  ------------------
  357|  68.7k|        {
  358|  68.7k|            auto other_view = other.get_storage_view();
  359|  68.7k|            resize(other_view.size());
  360|  68.7k|            auto this_view = get_storage_view();
  361|  68.7k|            if (other_view.size() > 0)
  ------------------
  |  Branch (361:17): [True: 45.8k, False: 22.9k]
  ------------------
  362|  45.8k|            {
  363|  45.8k|                common_.is_negative_ = other.common_.is_negative_;
  364|  45.8k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  365|  45.8k|            }
  366|  68.7k|        }
  367|  68.7k|        return *this;
  368|  68.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   78|  45.8k|        {
   79|  45.8k|            return data_;
   80|  45.8k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1804|  15.5k|    {
 1805|  15.5k|        auto denom_view = denom.get_storage_view();
 1806|  15.5k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1806:13): [True: 0, False: 15.5k]
  ------------------
 1807|      0|        {
 1808|      0|            return false;
 1809|      0|        }
 1810|  15.5k|        size_type r = denom_view.size() - 1;
 1811|  15.5k|        word_type y = denom_view[r];
 1812|       |
 1813|  15.5k|        x = 0;
 1814|  15.5k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1814:17): [True: 0, False: 15.5k]
  ------------------
 1815|      0|        {
 1816|      0|            y <<= 1;
 1817|      0|            x++;
 1818|      0|        }
 1819|  15.5k|        denom <<= x;
 1820|  15.5k|        num <<= x;
 1821|       |
 1822|  15.5k|        denom_view = denom.get_storage_view();
 1823|  15.5k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1823:14): [True: 0, False: 15.5k]
  |  Branch (1823:23): [True: 0, False: 0]
  ------------------
 1824|      0|        {
 1825|      0|            denom *= max_word;
 1826|      0|            num *= max_word;
 1827|      0|            return true;
 1828|      0|        }
 1829|  15.5k|        return false;
 1830|  15.5k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1050|  31.1k|    {
 1051|  31.1k|        auto this_view = get_storage_view();
 1052|  31.1k|        size_type q = k / word_type_bits;
 1053|  31.1k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1053:14): [True: 0, False: 31.1k]
  ------------------
 1054|      0|        {
 1055|      0|            resize(this_view.size() + q);
 1056|      0|            this_view = get_storage_view();
 1057|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1057:50): [True: 0, False: 0]
  ------------------
 1058|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1058:34): [True: 0, False: 0]
  ------------------
 1059|      0|            k %= word_type_bits;
 1060|      0|        }
 1061|  31.1k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1061:14): [True: 0, False: 31.1k]
  ------------------
 1062|      0|        {
 1063|      0|            size_type k1 = word_type_bits - k;
 1064|      0|            word_type mask = (word_type(1) << k) - word_type(1);
 1065|      0|            resize( this_view.size() + 1 );
 1066|      0|            this_view = get_storage_view();
 1067|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1067:50): [True: 0, False: 0]
  ------------------
 1068|      0|            {
 1069|      0|                this_view[i] <<= k;
 1070|      0|                if ( i > 0 )
  ------------------
  |  Branch (1070:22): [True: 0, False: 0]
  ------------------
 1071|      0|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1072|      0|            }
 1073|      0|        }
 1074|  31.1k|        reduce();
 1075|  31.1k|        return *this;
 1076|  31.1k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1731|  15.5k|    {
 1732|  15.5k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1733|  15.5k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1734|  15.5k|        qHi = A/(dHi + 1);
 1735|       |        // This initial guess of qHi may be too small.
 1736|  15.5k|        middle = qHi * dLo;
 1737|  15.5k|        left = qHi * dHi;
 1738|  15.5k|        x = B - (middle << word_type_half_bits);
 1739|  15.5k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1740|  15.5k|        B = x;
 1741|  15.5k|        dLo1 = dLo << word_type_half_bits;
 1742|       |        // Increase qHi if necessary:
 1743|  15.5k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1743:17): [True: 0, False: 15.5k]
  |  Branch (1743:29): [True: 0, False: 15.5k]
  |  Branch (1743:41): [True: 0, False: 0]
  ------------------
 1744|      0|        {
 1745|      0|            x = B - dLo1;
 1746|      0|            A -= dHi + (x > B);
 1747|      0|            B = x;
 1748|      0|            qHi++;
 1749|      0|        }
 1750|  15.5k|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1751|       |        // This initial guess of qLo may be too small.
 1752|  15.5k|        right = qLo * dLo;
 1753|  15.5k|        middle = qLo * dHi;
 1754|  15.5k|        x = B - right;
 1755|  15.5k|        A -= (x > B);
 1756|  15.5k|        B = x;
 1757|  15.5k|        x = B - (middle << word_type_half_bits);
 1758|  15.5k|            A -= (middle >> word_type_half_bits) + (x > B);
 1759|  15.5k|        B = x;
 1760|       |        // Increase qLo if necessary:
 1761|  17.9k|        while ( A || B >= d )
  ------------------
  |  Branch (1761:17): [True: 0, False: 17.9k]
  |  Branch (1761:22): [True: 2.37k, False: 15.5k]
  ------------------
 1762|  2.37k|        {
 1763|  2.37k|            x = B - d;
 1764|  2.37k|            A -= (x > B);
 1765|  2.37k|            B = x;
 1766|  2.37k|            qLo++;
 1767|  2.37k|        }
 1768|  15.5k|        return (qHi << word_type_half_bits) + qLo;
 1769|  15.5k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1773|  15.5k|    {
 1774|  15.5k|        word_type hi, lo, d, carry = 0;
 1775|  15.5k|        size_type i;
 1776|  31.1k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1776:22): [True: 15.5k, False: 15.5k]
  ------------------
 1777|  15.5k|        {
 1778|  15.5k|            DDproduct( b[i], q, hi, lo );
 1779|  15.5k|            d = a[i];
 1780|  15.5k|            a[i] -= lo;
 1781|  15.5k|            if ( a[i] > d )
  ------------------
  |  Branch (1781:18): [True: 8.88k, False: 6.66k]
  ------------------
 1782|  8.88k|                carry++;
 1783|  15.5k|            d = a[i + 1];
 1784|  15.5k|            a[i + 1] -= hi + carry;
 1785|  15.5k|            carry = a[i + 1] > d;
 1786|  15.5k|        }
 1787|  15.5k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1787:14): [True: 0, False: 15.5k]
  ------------------
 1788|      0|        {
 1789|      0|            q--;
 1790|      0|            carry = 0;
 1791|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1791:26): [True: 0, False: 0]
  ------------------
 1792|      0|            {
 1793|      0|                d = a[i] + carry;
 1794|      0|                carry = d < carry;
 1795|      0|                a[i] = d + b[i];
 1796|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1796:22): [True: 0, False: 0]
  ------------------
 1797|      0|                    carry = 1;
 1798|      0|            }
 1799|      0|            a[n] = 0;
 1800|      0|        }
 1801|  15.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   78|  76.9k|        {
   79|  76.9k|            return data_;
   80|  76.9k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1833|  15.5k|    {
 1834|  15.5k|        if (secondDone)
  ------------------
  |  Branch (1834:13): [True: 0, False: 15.5k]
  ------------------
 1835|      0|        {
 1836|      0|            rem /= max_word;
 1837|      0|        }
 1838|  15.5k|        if ( x > 0 )
  ------------------
  |  Branch (1838:14): [True: 0, False: 15.5k]
  ------------------
 1839|      0|        {
 1840|      0|            rem >>= x;
 1841|      0|        }
 1842|  15.5k|        else
 1843|  15.5k|        {
 1844|  15.5k|            rem.reduce();
 1845|  15.5k|        }
 1846|  15.5k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  682|  35.8k|        : storage_(n, alloc)
  683|  35.8k|    {
  684|  35.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  349|  35.8k|        : word_allocator_type(alloc)
  350|  35.8k|    {
  351|  35.8k|        ::new (&inlined_) inlined_storage(n);
  352|  35.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  124|  35.8k|            : is_allocated_(false),
  125|  35.8k|            is_negative_(n < 0),
  126|  35.8k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (126:19): [True: 18.6k, False: 17.1k]
  ------------------
  127|  35.8k|        {
  128|  35.8k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (128:26): [True: 5.99k, False: 29.8k]
  ------------------
  129|  35.8k|            values_[1] = 0;
  130|  35.8k|        }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEEl:
 1414|  17.9k|    {
 1415|  17.9k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1415:15): [True: 5.99k, False: 11.9k]
  ------------------
 1416|  17.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IjEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  682|  17.9k|        : storage_(n, alloc)
  683|  17.9k|    {
  684|  17.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IjEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  349|  17.9k|        : word_allocator_type(alloc)
  350|  17.9k|    {
  351|  17.9k|        ::new (&inlined_) inlined_storage(n);
  352|  17.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IjEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  137|  17.9k|            : is_allocated_(false),
  138|  17.9k|            is_negative_(false),
  139|  17.9k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (139:19): [True: 1.80k, False: 16.1k]
  ------------------
  140|  17.9k|        {
  141|  17.9k|            values_[0] = n;
  142|  17.9k|            values_[1] = 0;
  143|  17.9k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  888|  5.99k|    {
  889|  5.99k|        auto y_view = y.get_storage_view();
  890|       |
  891|  5.99k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (891:14): [True: 5.99k, False: 0]
  ------------------
  892|  5.99k|            return *this += -y;
  893|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (893:15): [True: 0, False: 0]
  |  Branch (893:33): [True: 0, False: 0]
  |  Branch (893:48): [True: 0, False: 0]
  |  Branch (893:65): [True: 0, False: 0]
  ------------------
  894|      0|            return *this = -(y - *this);
  895|      0|        word_type borrow = 0;
  896|      0|        word_type d;
  897|      0|        auto this_view = get_storage_view();
  898|      0|        for (size_type i = 0; i < this_view.size(); i++ )
  ------------------
  |  Branch (898:31): [True: 0, False: 0]
  ------------------
  899|      0|        {
  900|      0|            if ( i >= y_view.size() && borrow == 0 )
  ------------------
  |  Branch (900:18): [True: 0, False: 0]
  |  Branch (900:40): [True: 0, False: 0]
  ------------------
  901|      0|                break;
  902|      0|            d = this_view[i] - borrow;
  903|      0|            borrow = d > this_view[i];
  904|      0|            if ( i < y_view.size())
  ------------------
  |  Branch (904:18): [True: 0, False: 0]
  ------------------
  905|      0|            {
  906|      0|                this_view[i] = d - y_view[i];
  907|      0|                if ( this_view[i] > d )
  ------------------
  |  Branch (907:22): [True: 0, False: 0]
  ------------------
  908|      0|                    borrow = 1;
  909|      0|            }
  910|      0|            else 
  911|      0|            {
  912|      0|                this_view[i] = d;
  913|      0|            }
  914|      0|        }
  915|      0|        reduce();
  916|      0|        return *this;
  917|      0|    }

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

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

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

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

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14convert_resultIS4_EEE4typeEPKS4_m:
 1134|  4.45M|    {
 1135|  4.45M|        conv_errc  result = conv_errc();
 1136|  4.45M|        const CharT* last = data + length;
 1137|  5.44M|        while (data != last) 
  ------------------
  |  Branch (1137:16): [True: 982k, False: 4.45M]
  ------------------
 1138|   982k|        {
 1139|   982k|            std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[static_cast<uint8_t>(*data)]) + 1;
 1140|   982k|            if (len > (std::size_t)(last - data))
  ------------------
  |  Branch (1140:17): [True: 12, False: 982k]
  ------------------
 1141|     12|            {
 1142|     12|                return convert_result<CharT>{data, conv_errc::source_exhausted};
 1143|     12|            }
 1144|   982k|            if ((result=is_legal_utf8(data, len)) != conv_errc())
  ------------------
  |  Branch (1144:17): [True: 105, False: 982k]
  ------------------
 1145|    105|            {
 1146|    105|                return convert_result<CharT>{data,result} ;
 1147|    105|            }
 1148|   982k|            data += len;
 1149|   982k|        }
 1150|  4.45M|        return convert_result<CharT>{data,result} ;
 1151|  4.45M|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8IcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_9conv_errcEE4typeEPKS4_m:
  303|   982k|    {
  304|   982k|        uint8_t a;
  305|   982k|        const CharT* srcptr = first+length;
  306|   982k|        switch (length) {
  307|     11|        default:
  ------------------
  |  Branch (307:9): [True: 11, False: 982k]
  ------------------
  308|     11|            return conv_errc::over_long_utf8_sequence;
  309|    448|        case 4:
  ------------------
  |  Branch (309:9): [True: 448, False: 981k]
  ------------------
  310|    448|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (310:17): [True: 7, False: 441]
  ------------------
  311|      7|                return conv_errc::expected_continuation_byte;
  312|    441|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    441|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  313|    861|        case 3:
  ------------------
  |  Branch (313:9): [True: 420, False: 982k]
  ------------------
  314|    861|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 5, False: 856]
  ------------------
  315|      5|                return conv_errc::expected_continuation_byte;
  316|    856|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    856|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  1.08k|        case 2:
  ------------------
  |  Branch (317:9): [True: 230, False: 982k]
  ------------------
  318|  1.08k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 26, False: 1.06k]
  ------------------
  319|     26|                return conv_errc::expected_continuation_byte;
  320|       |
  321|  1.06k|            switch (static_cast<uint8_t>(*first)) 
  322|  1.06k|            {
  323|       |                // no fall-through in this inner switch
  324|    204|                case 0xE0: if (a < 0xA0) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (324:17): [True: 204, False: 856]
  |  Branch (324:32): [True: 8, False: 196]
  ------------------
  325|    206|                case 0xED: if (a > 0x9F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (325:17): [True: 206, False: 854]
  |  Branch (325:32): [True: 5, False: 201]
  ------------------
  326|    203|                case 0xF0: if (a < 0x90) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (326:17): [True: 203, False: 857]
  |  Branch (326:32): [True: 6, False: 197]
  ------------------
  327|    223|                case 0xF4: if (a > 0x8F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (327:17): [True: 223, False: 837]
  |  Branch (327:32): [True: 6, False: 217]
  ------------------
  328|    224|                default:   if (a < 0x80) return conv_errc::source_illegal;
  ------------------
  |  Branch (328:17): [True: 224, False: 836]
  |  Branch (328:32): [True: 0, False: 224]
  ------------------
  329|  1.06k|            }
  330|       |
  331|  1.03k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.03k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  332|   982k|        case 1:
  ------------------
  |  Branch (332:9): [True: 981k, False: 1.10k]
  ------------------
  333|   982k|            if (static_cast<uint8_t>(*first) >= 0x80 && static_cast<uint8_t>(*first) < 0xC2)
  ------------------
  |  Branch (333:17): [True: 1.06k, False: 981k]
  |  Branch (333:57): [True: 30, False: 1.03k]
  ------------------
  334|     30|                return conv_errc::source_illegal;
  335|   982k|            break;
  336|   982k|        }
  337|   982k|        if (static_cast<uint8_t>(*first) > 0xF4) 
  ------------------
  |  Branch (337:13): [True: 1, False: 982k]
  ------------------
  338|      1|            return conv_errc::source_illegal;
  339|       |
  340|   982k|        return conv_errc();
  341|   982k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  6.53M|{
   43|  6.53M|    using char_type = typename Result::value_type;
   44|       |
   45|  6.53M|    char_type buf[255];
   46|  6.53M|    char_type *p = buf;
   47|  6.53M|    const char_type* last = buf+255;
   48|       |
   49|  6.53M|    bool is_negative = value < 0;
   50|       |
   51|  6.53M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 6.53M]
  ------------------
   52|      0|    {
   53|      0|        do
   54|      0|        {
   55|      0|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|      0|        }
   57|      0|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 0, False: 0]
  |  Branch (57:33): [True: 0, False: 0]
  ------------------
   58|      0|    }
   59|  6.53M|    else
   60|  6.53M|    {
   61|       |
   62|  6.53M|        do
   63|  12.7M|        {
   64|  12.7M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  12.7M|        }
   66|  12.7M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 6.24M, False: 6.53M]
  |  Branch (66:33): [True: 6.24M, False: 0]
  ------------------
   67|  6.53M|    }
   68|  6.53M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  6.53M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 6.53M]
  |  |  ------------------
  |  |   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|  6.53M|    std::size_t count = (p - buf);
   71|  6.53M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 6.53M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  19.3M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 12.7M, False: 6.53M]
  ------------------
   77|  12.7M|    {
   78|  12.7M|        result.push_back(*p);
   79|  12.7M|    }
   80|       |
   81|  6.53M|    return count;
   82|  6.53M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  3.02M|{
   43|  3.02M|    using char_type = typename Result::value_type;
   44|       |
   45|  3.02M|    char_type buf[255];
   46|  3.02M|    char_type *p = buf;
   47|  3.02M|    const char_type* last = buf+255;
   48|       |
   49|  3.02M|    bool is_negative = value < 0;
   50|       |
   51|  3.02M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 3.01M, False: 3.22k]
  ------------------
   52|  3.01M|    {
   53|  3.01M|        do
   54|  3.20M|        {
   55|  3.20M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  3.20M|        }
   57|  3.20M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 185k, False: 3.01M]
  |  Branch (57:33): [True: 185k, False: 0]
  ------------------
   58|  3.01M|    }
   59|  3.22k|    else
   60|  3.22k|    {
   61|       |
   62|  3.22k|        do
   63|  31.8k|        {
   64|  31.8k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  31.8k|        }
   66|  31.8k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 28.6k, False: 3.22k]
  |  Branch (66:33): [True: 28.6k, False: 0]
  ------------------
   67|  3.22k|    }
   68|  3.02M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  3.02M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 3.02M]
  |  |  ------------------
  |  |   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|  3.02M|    std::size_t count = (p - buf);
   71|  3.02M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 3.01M, False: 3.22k]
  ------------------
   72|  3.01M|    {
   73|  3.01M|        result.push_back('-');
   74|  3.01M|        ++count;
   75|  3.01M|    }
   76|  6.25M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 3.23M, False: 3.02M]
  ------------------
   77|  3.23M|    {
   78|  3.23M|        result.push_back(*p);
   79|  3.23M|    }
   80|       |
   81|  3.02M|    return count;
   82|  3.02M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  64.3k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  64.3k|    {
  489|  64.3k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  64.3k|        struct lconv *lc = localeconv();
  491|  64.3k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 64.3k, False: 0]
  |  Branch (491:30): [True: 64.3k, False: 0]
  ------------------
  492|  64.3k|        {
  493|  64.3k|            decimal_point_ = lc->decimal_point[0];
  494|  64.3k|        }
  495|  64.3k|#endif
  496|  64.3k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  64.3k|    {
  504|  64.3k|        std::size_t count = 0;
  505|       |
  506|  64.3k|        char number_buffer[200];
  507|  64.3k|        int length = 0;
  508|       |
  509|  64.3k|        switch (float_format_)
  510|  64.3k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 64.3k]
  ------------------
  512|      0|            {
  513|      0|                if (precision_ > 0)
  ------------------
  |  Branch (513:21): [True: 0, False: 0]
  ------------------
  514|      0|                {
  515|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*f", precision_, val);
  516|      0|                    if (length < 0)
  ------------------
  |  Branch (516:25): [True: 0, False: 0]
  ------------------
  517|      0|                    {
  518|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  519|      0|                    }
  520|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  521|      0|                }
  522|      0|                else
  523|      0|                {
  524|      0|                    if (!dtoa_fixed(val, decimal_point_, result))
  ------------------
  |  Branch (524:25): [True: 0, False: 0]
  ------------------
  525|      0|                    {
  526|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  527|      0|                    }
  528|      0|                }
  529|      0|            }
  530|      0|            break;
  531|      0|        case float_chars_format::scientific:
  ------------------
  |  Branch (531:9): [True: 0, False: 64.3k]
  ------------------
  532|      0|            {
  533|      0|                if (precision_ > 0)
  ------------------
  |  Branch (533:21): [True: 0, False: 0]
  ------------------
  534|      0|                {
  535|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*e", precision_, val);
  536|      0|                    if (length < 0)
  ------------------
  |  Branch (536:25): [True: 0, False: 0]
  ------------------
  537|      0|                    {
  538|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  539|      0|                    }
  540|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  541|      0|                }
  542|      0|                else
  543|      0|                {
  544|      0|                    if (!dtoa_scientific(val, decimal_point_, result))
  ------------------
  |  Branch (544:25): [True: 0, False: 0]
  ------------------
  545|      0|                    {
  546|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  547|      0|                    }
  548|      0|                }
  549|      0|            }
  550|      0|            break;
  551|  64.3k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 64.3k, False: 0]
  ------------------
  552|  64.3k|            {
  553|  64.3k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 64.3k]
  ------------------
  554|      0|                {
  555|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*g", precision_, val);
  556|      0|                    if (length < 0)
  ------------------
  |  Branch (556:25): [True: 0, False: 0]
  ------------------
  557|      0|                    {
  558|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  559|      0|                    }
  560|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  561|      0|                }
  562|  64.3k|                else
  563|  64.3k|                {
  564|  64.3k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 64.3k]
  ------------------
  565|      0|                    {
  566|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  567|      0|                    }
  568|  64.3k|                }             
  569|  64.3k|                break;
  570|  64.3k|            }
  571|  64.3k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 64.3k]
  ------------------
  572|      0|                JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  573|      0|                break;
  574|  64.3k|        }
  575|  64.3k|        return count;
  576|  64.3k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  4.87k|{
  244|  4.87k|    const char *sbeg = buffer;
  245|  4.87k|    const char *send = sbeg + length;
  246|       |
  247|  4.87k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 4.87k, False: 0]
  ------------------
  248|  4.87k|    {
  249|  4.87k|        bool needs_dot = true;
  250|  88.6k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 83.8k, False: 4.87k]
  ------------------
  251|  83.8k|        {
  252|  83.8k|            switch (*q)
  253|  83.8k|            {
  254|  4.28k|            case '-':
  ------------------
  |  Branch (254:13): [True: 4.28k, False: 79.5k]
  ------------------
  255|  11.8k|            case '0':
  ------------------
  |  Branch (255:13): [True: 7.58k, False: 76.2k]
  ------------------
  256|  21.1k|            case '1':
  ------------------
  |  Branch (256:13): [True: 9.29k, False: 74.5k]
  ------------------
  257|  29.1k|            case '2':
  ------------------
  |  Branch (257:13): [True: 7.95k, False: 75.8k]
  ------------------
  258|  35.6k|            case '3':
  ------------------
  |  Branch (258:13): [True: 6.57k, False: 77.2k]
  ------------------
  259|  40.7k|            case '4':
  ------------------
  |  Branch (259:13): [True: 5.06k, False: 78.7k]
  ------------------
  260|  47.6k|            case '5':
  ------------------
  |  Branch (260:13): [True: 6.92k, False: 76.8k]
  ------------------
  261|  56.6k|            case '6':
  ------------------
  |  Branch (261:13): [True: 8.98k, False: 74.8k]
  ------------------
  262|  62.3k|            case '7':
  ------------------
  |  Branch (262:13): [True: 5.70k, False: 78.1k]
  ------------------
  263|  68.5k|            case '8':
  ------------------
  |  Branch (263:13): [True: 6.18k, False: 77.6k]
  ------------------
  264|  73.6k|            case '9':
  ------------------
  |  Branch (264:13): [True: 5.09k, False: 78.7k]
  ------------------
  265|  74.7k|            case '+':
  ------------------
  |  Branch (265:13): [True: 1.12k, False: 82.7k]
  ------------------
  266|  74.7k|                result.push_back(*q);
  267|  74.7k|                break;
  268|  2.37k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 2.37k, False: 81.4k]
  ------------------
  269|  2.37k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 83.8k]
  ------------------
  270|  2.37k|                result.push_back('e');
  271|  2.37k|                needs_dot = false;
  272|  2.37k|                break;
  273|  6.67k|            default:
  ------------------
  |  Branch (273:13): [True: 6.67k, False: 77.1k]
  ------------------
  274|  6.67k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 3.73k, False: 2.93k]
  ------------------
  275|  3.73k|                {
  276|  3.73k|                    needs_dot = false;
  277|  3.73k|                    result.push_back('.');
  278|  3.73k|                }
  279|  6.67k|                break;
  280|  83.8k|            }
  281|  83.8k|        }
  282|  4.87k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 1.13k, False: 3.73k]
  ------------------
  283|  1.13k|        {
  284|  1.13k|            result.push_back('.');
  285|  1.13k|            result.push_back('0');
  286|  1.13k|        }
  287|  4.87k|    }
  288|  4.87k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmiiiRT_:
  171|  58.6k|{
  172|  58.6k|    int nb_digits = (int)length;
  173|  58.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|  58.6k|    int kk = nb_digits + k;
  179|       |
  180|  58.6k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 21.9k, False: 36.7k]
  |  Branch (180:28): [True: 19.9k, False: 2.05k]
  ------------------
  181|  19.9k|    {
  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|   157k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 137k, False: 19.9k]
  ------------------
  186|   137k|        {
  187|   137k|            result.push_back(buffer[i]);
  188|   137k|        }
  189|  46.0k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 26.1k, False: 19.9k]
  ------------------
  190|  26.1k|        {
  191|  26.1k|            result.push_back('0');
  192|  26.1k|        }
  193|  19.9k|        result.push_back('.');
  194|  19.9k|        result.push_back('0');
  195|  19.9k|    } 
  196|  38.7k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 18.2k, False: 20.4k]
  |  Branch (196:24): [True: 16.2k, False: 2.05k]
  ------------------
  197|  16.2k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  75.0k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 58.7k, False: 16.2k]
  ------------------
  200|  58.7k|        {
  201|  58.7k|            result.push_back(buffer[i]);
  202|  58.7k|        }
  203|  16.2k|        result.push_back('.');
  204|   188k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 172k, False: 16.2k]
  ------------------
  205|   172k|        {
  206|   172k|            result.push_back(buffer[i]);
  207|   172k|        }
  208|  16.2k|    } 
  209|  22.5k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 4.16k, False: 18.3k]
  |  Branch (209:30): [True: 2.11k, False: 2.05k]
  ------------------
  210|  2.11k|    {
  211|  2.11k|        offset = 2 - kk;
  212|       |
  213|  2.11k|        result.push_back('0');
  214|  2.11k|        result.push_back('.');
  215|  5.65k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 3.53k, False: 2.11k]
  ------------------
  216|  3.53k|            result.push_back('0');
  217|  33.5k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 31.4k, False: 2.11k]
  ------------------
  218|  31.4k|        {
  219|  31.4k|            result.push_back(buffer[i]);
  220|  31.4k|        }
  221|  2.11k|    } 
  222|  20.4k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 4.06k, False: 16.3k]
  ------------------
  223|  4.06k|    {
  224|  4.06k|        result.push_back(buffer[0]);
  225|  4.06k|        result.push_back('e');
  226|  4.06k|        fill_exponent(kk - 1, result);
  227|  4.06k|    } 
  228|  16.3k|    else
  229|  16.3k|    {
  230|  16.3k|        result.push_back(buffer[0]);
  231|  16.3k|        result.push_back('.');
  232|   231k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 215k, False: 16.3k]
  ------------------
  233|   215k|        {
  234|   215k|            result.push_back(buffer[i]);
  235|   215k|        }
  236|  16.3k|        result.push_back('e');
  237|  16.3k|        fill_exponent(kk - 1, result);
  238|  16.3k|    }
  239|  58.6k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  20.4k|{
  137|  20.4k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 18.3k, False: 2.05k]
  ------------------
  138|  18.3k|    {
  139|  18.3k|        result.push_back('-');
  140|  18.3k|        K = -K;
  141|  18.3k|    }
  142|  2.05k|    else
  143|  2.05k|    {
  144|  2.05k|        result.push_back('+'); // compatibility with sprintf
  145|  2.05k|    }
  146|       |
  147|  20.4k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 908, False: 19.4k]
  ------------------
  148|    908|    {
  149|    908|        result.push_back('0'); // compatibility with sprintf
  150|    908|        result.push_back((char)('0' + K));
  151|    908|    }
  152|  19.4k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 8.99k, False: 10.5k]
  ------------------
  153|  8.99k|    {
  154|  8.99k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  8.99k|        result.push_back((char)('0' + K));
  156|  8.99k|    }
  157|  10.5k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 10.5k, False: 0]
  ------------------
  158|  10.5k|    {
  159|  10.5k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  10.5k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  10.5k|        result.push_back((char)('0' + K));
  162|  10.5k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  20.4k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  64.3k|{
  476|  64.3k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  64.3k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  64.3k|{
  367|  64.3k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 848, False: 63.5k]
  ------------------
  368|    848|    {
  369|    848|        result.push_back('0');
  370|    848|        result.push_back('.');
  371|    848|        result.push_back('0');
  372|    848|        return true;
  373|    848|    }
  374|       |
  375|  63.5k|    int length = 0;
  376|  63.5k|    int k;
  377|       |
  378|  63.5k|    char buffer[100];
  379|       |
  380|  63.5k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 45.6k, False: 17.9k]
  ------------------
  381|  63.5k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 58.6k, False: 4.87k]
  ------------------
  382|  58.6k|    {
  383|  58.6k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 42.5k, False: 16.0k]
  ------------------
  384|  42.5k|        {
  385|  42.5k|            result.push_back('-');
  386|  42.5k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  58.6k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  58.6k|        return true;
  391|  58.6k|    }
  392|  4.87k|    else
  393|  4.87k|    {
  394|  4.87k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  4.87k|    }
  396|  63.5k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  4.87k|{
  330|  4.87k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 4.87k]
  ------------------
  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|  4.87k|    char buffer[100];
  339|  4.87k|    int precision = std::numeric_limits<double>::digits10;
  340|  4.87k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  4.87k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 4.87k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  4.87k|    double x{0};
  346|  4.87k|    auto res = decstr_to_double(buffer, length, x);
  347|  4.87k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 4.87k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  4.87k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 4.21k, False: 661]
  ------------------
  352|  4.21k|    {
  353|  4.21k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  4.21k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  4.21k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 4.21k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  4.21k|    }
  360|  4.87k|    dump_buffer(buffer, length, decimal_point, result);
  361|  4.87k|    return true;
  362|  4.87k|}

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

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

_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RKNS0_22msgpack_decode_optionsERKS7_:
   86|  4.80k|       : source_(std::forward<Sourceable>(source)),
   87|  4.80k|         max_nesting_depth_(options.max_nesting_depth()),
   88|  4.80k|         text_buffer_(alloc),
   89|  4.80k|         bytes_buffer_(alloc),
   90|  4.80k|         state_stack_(alloc)
   91|  4.80k|    {
   92|  4.80k|        state_stack_.emplace_back(parse_mode::root,0);
   93|  4.80k|    }
_ZN8jsoncons7msgpack11parse_stateC2ENS0_10parse_modeEm:
   46|   548k|        : mode(mode), length(length)
   47|   548k|    {
   48|   548k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  101|  4.80k|    {
  102|  4.80k|        more_ = true;
  103|  4.80k|        done_ = false;
  104|  4.80k|        text_buffer_.clear();
  105|  4.80k|        bytes_buffer_.clear();
  106|  4.80k|        state_stack_.clear();
  107|  4.80k|        state_stack_.emplace_back(parse_mode::root,0);
  108|  4.80k|        nesting_depth_ = 0;
  109|  4.80k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
  159|  4.80k|    {
  160|  26.3M|        while (!done_ && more_)
  ------------------
  |  Branch (160:16): [True: 26.3M, False: 966]
  |  Branch (160:26): [True: 26.3M, False: 0]
  ------------------
  161|  26.3M|        {
  162|  26.3M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (162:21): [True: 26.3M, False: 0]
  ------------------
  163|  26.3M|            {
  164|  9.92M|                case parse_mode::array:
  ------------------
  |  Branch (164:17): [True: 9.92M, False: 16.4M]
  ------------------
  165|  9.92M|                {
  166|  9.92M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (166:25): [True: 9.70M, False: 224k]
  ------------------
  167|  9.70M|                    {
  168|  9.70M|                        ++state_stack_.back().index;
  169|  9.70M|                        read_item(visitor, ec);
  170|  9.70M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  9.70M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 735, False: 9.70M]
  |  |  ------------------
  ------------------
  171|    735|                        {
  172|    735|                            return;
  173|    735|                        }
  174|  9.70M|                    }
  175|   224k|                    else
  176|   224k|                    {
  177|   224k|                        end_array(visitor, ec);
  178|   224k|                    }
  179|  9.92M|                    break;
  180|  9.92M|                }
  181|  9.92M|                case parse_mode::map_key:
  ------------------
  |  Branch (181:17): [True: 8.36M, False: 18.0M]
  ------------------
  182|  8.36M|                {
  183|  8.36M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (183:25): [True: 8.09M, False: 275k]
  ------------------
  184|  8.09M|                    {
  185|  8.09M|                        ++state_stack_.back().index;
  186|  8.09M|                        state_stack_.back().mode = parse_mode::map_value;
  187|  8.09M|                        read_item(visitor, ec);
  188|  8.09M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  8.09M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 677, False: 8.09M]
  |  |  ------------------
  ------------------
  189|    677|                        {
  190|    677|                            return;
  191|    677|                        }
  192|  8.09M|                    }
  193|   275k|                    else
  194|   275k|                    {
  195|   275k|                        end_object(visitor, ec);
  196|   275k|                    }
  197|  8.36M|                    break;
  198|  8.36M|                }
  199|  8.36M|                case parse_mode::map_value:
  ------------------
  |  Branch (199:17): [True: 8.08M, False: 18.2M]
  ------------------
  200|  8.08M|                {
  201|  8.08M|                    state_stack_.back().mode = parse_mode::map_key;
  202|  8.08M|                    read_item(visitor, ec);
  203|  8.08M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  8.08M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2.00k, False: 8.07M]
  |  |  ------------------
  ------------------
  204|  2.00k|                    {
  205|  2.00k|                        return;
  206|  2.00k|                    }
  207|  8.07M|                    break;
  208|  8.08M|                }
  209|  8.07M|                case parse_mode::root:
  ------------------
  |  Branch (209:17): [True: 4.80k, False: 26.3M]
  ------------------
  210|  4.80k|                {
  211|  4.80k|                    state_stack_.back().mode = parse_mode::accept;
  212|  4.80k|                    read_item(visitor, ec);
  213|  4.80k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  4.80k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 422, False: 4.38k]
  |  |  ------------------
  ------------------
  214|    422|                    {
  215|    422|                        return;
  216|    422|                    }
  217|  4.38k|                    break;
  218|  4.80k|                }
  219|  4.38k|                case parse_mode::accept:
  ------------------
  |  Branch (219:17): [True: 966, False: 26.3M]
  ------------------
  220|    966|                {
  221|    966|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   45|    966|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 966]
  |  |  ------------------
  |  |   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|    966|                    state_stack_.clear();
  223|    966|                    more_ = false;
  224|    966|                    done_ = true;
  225|    966|                    visitor.flush();
  226|    966|                    break;
  227|    966|                }
  228|  26.3M|            }
  229|  26.3M|        }
  230|  4.80k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
  234|  25.8M|    {
  235|  25.8M|        if (source_.is_error())
  ------------------
  |  Branch (235:13): [True: 0, False: 25.8M]
  ------------------
  236|      0|        {
  237|      0|            ec = msgpack_errc::source_error;
  238|      0|            more_ = false;
  239|      0|            return;
  240|      0|        }   
  241|       |
  242|  25.8M|        uint8_t type;
  243|  25.8M|        if (source_.read(&type, 1) == 0)
  ------------------
  |  Branch (243:13): [True: 3.00k, False: 25.8M]
  ------------------
  244|  3.00k|        {
  245|  3.00k|            ec = msgpack_errc::unexpected_eof;
  246|  3.00k|            more_ = false;
  247|  3.00k|            return;
  248|  3.00k|        }
  249|       |
  250|  25.8M|        if (type <= 0xbf)
  ------------------
  |  Branch (250:13): [True: 11.8M, False: 14.0M]
  ------------------
  251|  11.8M|        {
  252|  11.8M|            if (type <= 0x7f) 
  ------------------
  |  Branch (252:17): [True: 6.84M, False: 4.98M]
  ------------------
  253|  6.84M|            {
  254|       |                // positive fixint
  255|  6.84M|                visitor.uint64_value(type, semantic_tag::none, *this, ec);
  256|  6.84M|                more_ = !cursor_mode_;
  257|  6.84M|            }
  258|  4.98M|            else if (type <= 0x8f) 
  ------------------
  |  Branch (258:22): [True: 293k, False: 4.69M]
  ------------------
  259|   293k|            {
  260|   293k|                begin_object(visitor,type,ec); // fixmap
  261|   293k|            }
  262|  4.69M|            else if (type <= 0x9f) 
  ------------------
  |  Branch (262:22): [True: 240k, False: 4.45M]
  ------------------
  263|   240k|            {
  264|   240k|                begin_array(visitor,type,ec); // fixarray
  265|   240k|            }
  266|  4.45M|            else 
  267|  4.45M|            {
  268|       |                // fixstr
  269|  4.45M|                const size_t len = type & 0x1f;
  270|       |
  271|  4.45M|                text_buffer_.clear();
  272|       |
  273|  4.45M|                if (source_reader<Source>::read(source_,text_buffer_,len) != static_cast<std::size_t>(len))
  ------------------
  |  Branch (273:21): [True: 25, False: 4.45M]
  ------------------
  274|     25|                {
  275|     25|                    ec = msgpack_errc::unexpected_eof;
  276|     25|                    more_ = false;
  277|     25|                    return;
  278|     25|                }
  279|       |
  280|  4.45M|                auto result = unicode_traits::validate(text_buffer_.data(),text_buffer_.size());
  281|  4.45M|                if (result.ec != unicode_traits::conv_errc())
  ------------------
  |  Branch (281:21): [True: 95, False: 4.45M]
  ------------------
  282|     95|                {
  283|     95|                    ec = msgpack_errc::invalid_utf8_text_string;
  284|     95|                    more_ = false;
  285|     95|                    return;
  286|     95|                }
  287|  4.45M|                visitor.string_value(jsoncons::basic_string_view<char>(text_buffer_.data(),text_buffer_.length()), semantic_tag::none, *this, ec);
  288|  4.45M|                more_ = !cursor_mode_;
  289|  4.45M|            }
  290|  11.8M|        }
  291|  14.0M|        else if (type >= 0xe0) 
  ------------------
  |  Branch (291:18): [True: 3.02M, False: 11.0M]
  ------------------
  292|  3.02M|        {
  293|       |            // negative fixint
  294|  3.02M|            visitor.int64_value(static_cast<int8_t>(type), semantic_tag::none, *this, ec);
  295|  3.02M|            more_ = !cursor_mode_;
  296|  3.02M|        }
  297|  11.0M|        else
  298|  11.0M|        {
  299|  11.0M|            switch (type)
  300|  11.0M|            {
  301|   115k|                case jsoncons::msgpack::msgpack_type::nil_type: 
  ------------------
  |  Branch (301:17): [True: 115k, False: 10.8M]
  ------------------
  302|   115k|                {
  303|   115k|                    visitor.null_value(semantic_tag::none, *this, ec);
  304|   115k|                    more_ = !cursor_mode_;
  305|   115k|                    break;
  306|      0|                }
  307|  5.84M|                case jsoncons::msgpack::msgpack_type::true_type:
  ------------------
  |  Branch (307:17): [True: 5.84M, False: 5.16M]
  ------------------
  308|  5.84M|                {
  309|  5.84M|                    visitor.bool_value(true, semantic_tag::none, *this, ec);
  310|  5.84M|                    more_ = !cursor_mode_;
  311|  5.84M|                    break;
  312|      0|                }
  313|  4.61M|                case jsoncons::msgpack::msgpack_type::false_type:
  ------------------
  |  Branch (313:17): [True: 4.61M, False: 6.39M]
  ------------------
  314|  4.61M|                {
  315|  4.61M|                    visitor.bool_value(false, semantic_tag::none, *this, ec);
  316|  4.61M|                    more_ = !cursor_mode_;
  317|  4.61M|                    break;
  318|      0|                }
  319|  53.8k|                case jsoncons::msgpack::msgpack_type::float32_type: 
  ------------------
  |  Branch (319:17): [True: 53.8k, False: 10.9M]
  ------------------
  320|  53.8k|                {
  321|  53.8k|                    uint8_t buf[sizeof(float)];
  322|  53.8k|                    if (source_.read(buf, sizeof(float)) != sizeof(float))
  ------------------
  |  Branch (322:25): [True: 17, False: 53.8k]
  ------------------
  323|     17|                    {
  324|     17|                        ec = msgpack_errc::unexpected_eof;
  325|     17|                        more_ = false;
  326|     17|                        return;
  327|     17|                    }
  328|  53.8k|                    float val = binary::big_to_native<float>(buf, sizeof(buf));
  329|  53.8k|                    visitor.double_value(val, semantic_tag::none, *this, ec);
  330|  53.8k|                    more_ = !cursor_mode_;
  331|  53.8k|                    break;
  332|  53.8k|                }
  333|       |
  334|  11.7k|                case jsoncons::msgpack::msgpack_type::float64_type: 
  ------------------
  |  Branch (334:17): [True: 11.7k, False: 10.9M]
  ------------------
  335|  11.7k|                {
  336|  11.7k|                    uint8_t buf[sizeof(double)];
  337|  11.7k|                    if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (337:25): [True: 9, False: 11.7k]
  ------------------
  338|      9|                    {
  339|      9|                        ec = msgpack_errc::unexpected_eof;
  340|      9|                        more_ = false;
  341|      9|                        return;
  342|      9|                    }
  343|  11.7k|                    double val = binary::big_to_native<double>(buf, sizeof(buf));
  344|  11.7k|                    visitor.double_value(val, semantic_tag::none, *this, ec);
  345|  11.7k|                    more_ = !cursor_mode_;
  346|  11.7k|                    break;
  347|  11.7k|                }
  348|       |
  349|  1.00k|                case jsoncons::msgpack::msgpack_type::uint8_type: 
  ------------------
  |  Branch (349:17): [True: 1.00k, False: 11.0M]
  ------------------
  350|  1.00k|                {
  351|  1.00k|                    uint8_t b;
  352|  1.00k|                    if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (352:25): [True: 1, False: 1.00k]
  ------------------
  353|      1|                    {
  354|      1|                        ec = msgpack_errc::unexpected_eof;
  355|      1|                        more_ = false;
  356|      1|                        return;
  357|      1|                    }
  358|  1.00k|                    visitor.uint64_value(b, semantic_tag::none, *this, ec);
  359|  1.00k|                    more_ = !cursor_mode_;
  360|  1.00k|                    break;
  361|  1.00k|                }
  362|       |
  363|   205k|                case jsoncons::msgpack::msgpack_type::uint16_type: 
  ------------------
  |  Branch (363:17): [True: 205k, False: 10.8M]
  ------------------
  364|   205k|                {
  365|   205k|                    uint8_t buf[sizeof(uint16_t)];
  366|   205k|                    if (source_.read(buf, sizeof(uint16_t)) !=sizeof(uint16_t)) 
  ------------------
  |  Branch (366:25): [True: 3, False: 205k]
  ------------------
  367|      3|                    {
  368|      3|                        ec = msgpack_errc::unexpected_eof;
  369|      3|                        more_ = false;
  370|      3|                        return;
  371|      3|                    }
  372|   205k|                    uint16_t val = binary::big_to_native<uint16_t>(buf, sizeof(buf));
  373|   205k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  374|   205k|                    more_ = !cursor_mode_;
  375|   205k|                    break;
  376|   205k|                }
  377|       |
  378|  81.1k|                case jsoncons::msgpack::msgpack_type::uint32_type: 
  ------------------
  |  Branch (378:17): [True: 81.1k, False: 10.9M]
  ------------------
  379|  81.1k|                {
  380|  81.1k|                    uint8_t buf[sizeof(uint32_t)];
  381|  81.1k|                    if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (381:25): [True: 3, False: 81.1k]
  ------------------
  382|      3|                    {
  383|      3|                        ec = msgpack_errc::unexpected_eof;
  384|      3|                        more_ = false;
  385|      3|                        return;
  386|      3|                    }
  387|  81.1k|                    uint32_t val = binary::big_to_native<uint32_t>(buf, sizeof(buf));
  388|  81.1k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  389|  81.1k|                    more_ = !cursor_mode_;
  390|  81.1k|                    break;
  391|  81.1k|                }
  392|       |
  393|  1.99k|                case jsoncons::msgpack::msgpack_type::uint64_type: 
  ------------------
  |  Branch (393:17): [True: 1.99k, False: 11.0M]
  ------------------
  394|  1.99k|                {
  395|  1.99k|                    uint8_t buf[sizeof(uint64_t)];
  396|  1.99k|                    if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (396:25): [True: 7, False: 1.99k]
  ------------------
  397|      7|                    {
  398|      7|                        ec = msgpack_errc::unexpected_eof;
  399|      7|                        more_ = false;
  400|      7|                        return;
  401|      7|                    }
  402|  1.99k|                    uint64_t val = binary::big_to_native<uint64_t>(buf, sizeof(buf));
  403|  1.99k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  404|  1.99k|                    more_ = !cursor_mode_;
  405|  1.99k|                    break;
  406|  1.99k|                }
  407|       |
  408|  1.59k|                case jsoncons::msgpack::msgpack_type::int8_type: 
  ------------------
  |  Branch (408:17): [True: 1.59k, False: 11.0M]
  ------------------
  409|  1.59k|                {
  410|  1.59k|                    uint8_t buf[sizeof(int8_t)];
  411|  1.59k|                    if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (411:25): [True: 2, False: 1.59k]
  ------------------
  412|      2|                    {
  413|      2|                        ec = msgpack_errc::unexpected_eof;
  414|      2|                        more_ = false;
  415|      2|                        return;
  416|      2|                    }
  417|  1.59k|                    int8_t val = binary::big_to_native<int8_t>(buf, sizeof(buf));
  418|  1.59k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  419|  1.59k|                    more_ = !cursor_mode_;
  420|  1.59k|                    break;
  421|  1.59k|                }
  422|       |
  423|  1.12k|                case jsoncons::msgpack::msgpack_type::int16_type: 
  ------------------
  |  Branch (423:17): [True: 1.12k, False: 11.0M]
  ------------------
  424|  1.12k|                {
  425|  1.12k|                    uint8_t buf[sizeof(int16_t)];
  426|  1.12k|                    if (source_.read(buf, sizeof(int16_t)) != sizeof(int16_t))
  ------------------
  |  Branch (426:25): [True: 3, False: 1.12k]
  ------------------
  427|      3|                    {
  428|      3|                        ec = msgpack_errc::unexpected_eof;
  429|      3|                        more_ = false;
  430|      3|                        return;
  431|      3|                    }
  432|  1.12k|                    int16_t val = binary::big_to_native<int16_t>(buf, sizeof(buf));
  433|  1.12k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  434|  1.12k|                    more_ = !cursor_mode_;
  435|  1.12k|                    break;
  436|  1.12k|                }
  437|       |
  438|  4.83k|                case jsoncons::msgpack::msgpack_type::int32_type: 
  ------------------
  |  Branch (438:17): [True: 4.83k, False: 11.0M]
  ------------------
  439|  4.83k|                {
  440|  4.83k|                    uint8_t buf[sizeof(int32_t)];
  441|  4.83k|                    if (source_.read(buf, sizeof(int32_t)) != sizeof(int32_t))
  ------------------
  |  Branch (441:25): [True: 4, False: 4.83k]
  ------------------
  442|      4|                    {
  443|      4|                        ec = msgpack_errc::unexpected_eof;
  444|      4|                        more_ = false;
  445|      4|                        return;
  446|      4|                    }
  447|  4.83k|                    int32_t val = binary::big_to_native<int32_t>(buf, sizeof(buf));
  448|  4.83k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  449|  4.83k|                    more_ = !cursor_mode_;
  450|  4.83k|                    break;
  451|  4.83k|                }
  452|       |
  453|  3.45k|                case jsoncons::msgpack::msgpack_type::int64_type: 
  ------------------
  |  Branch (453:17): [True: 3.45k, False: 11.0M]
  ------------------
  454|  3.45k|                {
  455|  3.45k|                    uint8_t buf[sizeof(int64_t)];
  456|  3.45k|                    if (source_.read(buf, sizeof(int64_t)) != sizeof(int64_t))
  ------------------
  |  Branch (456:25): [True: 6, False: 3.44k]
  ------------------
  457|      6|                    {
  458|      6|                        ec = msgpack_errc::unexpected_eof;
  459|      6|                        more_ = false;
  460|      6|                        return;
  461|      6|                    }
  462|  3.44k|                    int64_t val = binary::big_to_native<int64_t>(buf, sizeof(buf));
  463|  3.44k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  464|  3.44k|                    more_ = !cursor_mode_;
  465|  3.44k|                    break;
  466|  3.45k|                }
  467|       |
  468|    499|                case jsoncons::msgpack::msgpack_type::str8_type: 
  ------------------
  |  Branch (468:17): [True: 499, False: 11.0M]
  ------------------
  469|    961|                case jsoncons::msgpack::msgpack_type::str16_type: 
  ------------------
  |  Branch (469:17): [True: 462, False: 11.0M]
  ------------------
  470|  1.37k|                case jsoncons::msgpack::msgpack_type::str32_type: 
  ------------------
  |  Branch (470:17): [True: 416, False: 11.0M]
  ------------------
  471|  1.37k|                {
  472|  1.37k|                    std::size_t len = get_size(type, ec);
  473|  1.37k|                    if (!more_)
  ------------------
  |  Branch (473:25): [True: 23, False: 1.35k]
  ------------------
  474|     23|                    {
  475|     23|                        return;
  476|     23|                    }
  477|       |
  478|  1.35k|                    text_buffer_.clear();
  479|  1.35k|                    if (source_reader<Source>::read(source_,text_buffer_,len) != static_cast<std::size_t>(len))
  ------------------
  |  Branch (479:25): [True: 118, False: 1.23k]
  ------------------
  480|    118|                    {
  481|    118|                        ec = msgpack_errc::unexpected_eof;
  482|    118|                        more_ = false;
  483|    118|                        return;
  484|    118|                    }
  485|       |
  486|  1.23k|                    auto result = unicode_traits::validate(text_buffer_.data(),text_buffer_.size());
  487|  1.23k|                    if (result.ec != unicode_traits::conv_errc())
  ------------------
  |  Branch (487:25): [True: 22, False: 1.21k]
  ------------------
  488|     22|                    {
  489|     22|                        ec = msgpack_errc::invalid_utf8_text_string;
  490|     22|                        more_ = false;
  491|     22|                        return;
  492|     22|                    }
  493|  1.21k|                    visitor.string_value(jsoncons::basic_string_view<char>(text_buffer_.data(),text_buffer_.length()), semantic_tag::none, *this, ec);
  494|  1.21k|                    more_ = !cursor_mode_;
  495|  1.21k|                    break;
  496|  1.23k|                }
  497|       |
  498|  11.2k|                case jsoncons::msgpack::msgpack_type::bin8_type: 
  ------------------
  |  Branch (498:17): [True: 11.2k, False: 11.0M]
  ------------------
  499|  15.3k|                case jsoncons::msgpack::msgpack_type::bin16_type: 
  ------------------
  |  Branch (499:17): [True: 4.10k, False: 11.0M]
  ------------------
  500|  15.6k|                case jsoncons::msgpack::msgpack_type::bin32_type: 
  ------------------
  |  Branch (500:17): [True: 315, False: 11.0M]
  ------------------
  501|  15.6k|                {
  502|  15.6k|                    std::size_t len = get_size(type,ec);
  503|  15.6k|                    if (!more_)
  ------------------
  |  Branch (503:25): [True: 28, False: 15.6k]
  ------------------
  504|     28|                    {
  505|     28|                        return;
  506|     28|                    }
  507|  15.6k|                    bytes_buffer_.clear();
  508|  15.6k|                    if (source_reader<Source>::read(source_,bytes_buffer_,len) != static_cast<std::size_t>(len))
  ------------------
  |  Branch (508:25): [True: 162, False: 15.4k]
  ------------------
  509|    162|                    {
  510|    162|                        ec = msgpack_errc::unexpected_eof;
  511|    162|                        more_ = false;
  512|    162|                        return;
  513|    162|                    }
  514|       |
  515|  15.4k|                    visitor.byte_string_value(byte_string_view(bytes_buffer_.data(),bytes_buffer_.size()), 
  516|  15.4k|                                                      semantic_tag::none, 
  517|  15.4k|                                                      *this,
  518|  15.4k|                                                      ec);
  519|  15.4k|                    more_ = !cursor_mode_;
  520|  15.4k|                    break;
  521|  15.6k|                }
  522|  7.72k|                case jsoncons::msgpack::msgpack_type::fixext1_type: 
  ------------------
  |  Branch (522:17): [True: 7.72k, False: 11.0M]
  ------------------
  523|  9.88k|                case jsoncons::msgpack::msgpack_type::fixext2_type: 
  ------------------
  |  Branch (523:17): [True: 2.16k, False: 11.0M]
  ------------------
  524|  12.4k|                case jsoncons::msgpack::msgpack_type::fixext4_type: 
  ------------------
  |  Branch (524:17): [True: 2.54k, False: 11.0M]
  ------------------
  525|  20.4k|                case jsoncons::msgpack::msgpack_type::fixext8_type: 
  ------------------
  |  Branch (525:17): [True: 8.00k, False: 11.0M]
  ------------------
  526|  21.4k|                case jsoncons::msgpack::msgpack_type::fixext16_type: 
  ------------------
  |  Branch (526:17): [True: 1.01k, False: 11.0M]
  ------------------
  527|  45.9k|                case jsoncons::msgpack::msgpack_type::ext8_type: 
  ------------------
  |  Branch (527:17): [True: 24.5k, False: 10.9M]
  ------------------
  528|  46.6k|                case jsoncons::msgpack::msgpack_type::ext16_type: 
  ------------------
  |  Branch (528:17): [True: 633, False: 11.0M]
  ------------------
  529|  47.3k|                case jsoncons::msgpack::msgpack_type::ext32_type: 
  ------------------
  |  Branch (529:17): [True: 690, False: 11.0M]
  ------------------
  530|  47.3k|                {
  531|  47.3k|                    std::size_t len = get_size(type,ec);
  532|  47.3k|                    if (!more_)
  ------------------
  |  Branch (532:25): [True: 29, False: 47.2k]
  ------------------
  533|     29|                    {
  534|     29|                        return;
  535|     29|                    }
  536|       |
  537|       |                    // type
  538|  47.2k|                    uint8_t buf[sizeof(int8_t)];
  539|  47.2k|                    if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (539:25): [True: 47, False: 47.2k]
  ------------------
  540|     47|                    {
  541|     47|                        ec = msgpack_errc::unexpected_eof;
  542|     47|                        more_ = false;
  543|     47|                        return;
  544|     47|                    }
  545|       |
  546|  47.2k|                    int8_t ext_type = binary::big_to_native<int8_t>(buf, sizeof(buf));
  547|       |
  548|  47.2k|                    bool is_timestamp = false; 
  549|  47.2k|                    if (ext_type == -1)
  ------------------
  |  Branch (549:25): [True: 26.0k, False: 21.2k]
  ------------------
  550|  26.0k|                    {
  551|  26.0k|                        is_timestamp = true;;
  552|  26.0k|                    }
  553|       |
  554|       |                    // payload
  555|  47.2k|                    if (is_timestamp && len == 4)
  ------------------
  |  Branch (555:25): [True: 26.0k, False: 21.2k]
  |  Branch (555:41): [True: 876, False: 25.1k]
  ------------------
  556|    876|                    {
  557|    876|                        uint8_t buf32[sizeof(uint32_t)];
  558|    876|                        if (source_.read(buf32, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (558:29): [True: 3, False: 873]
  ------------------
  559|      3|                        {
  560|      3|                            ec = msgpack_errc::unexpected_eof;
  561|      3|                            more_ = false;
  562|      3|                            return;
  563|      3|                        }
  564|    873|                        uint32_t val = binary::big_to_native<uint32_t>(buf32, sizeof(buf32));
  565|    873|                        visitor.uint64_value(val, semantic_tag::epoch_second, *this, ec);
  566|    873|                        more_ = !cursor_mode_;
  567|    873|                    }
  568|  46.3k|                    else if (is_timestamp && len == 8)
  ------------------
  |  Branch (568:30): [True: 25.1k, False: 21.2k]
  |  Branch (568:46): [True: 5.82k, False: 19.3k]
  ------------------
  569|  5.82k|                    {
  570|  5.82k|                        uint8_t buf64[sizeof(uint64_t)];
  571|  5.82k|                        if (source_.read(buf64, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (571:29): [True: 13, False: 5.80k]
  ------------------
  572|     13|                        {
  573|     13|                            ec = msgpack_errc::unexpected_eof;
  574|     13|                            more_ = false;
  575|     13|                            return;
  576|     13|                        }
  577|  5.80k|                        uint64_t data64 = binary::big_to_native<uint64_t>(buf64, sizeof(buf64));
  578|  5.80k|                        uint64_t sec = data64 & 0x00000003ffffffffL;
  579|  5.80k|                        uint64_t nsec = data64 >> 34;
  580|       |
  581|  5.80k|                        bigint nano(sec);
  582|  5.80k|                        nano *= uint64_t(nanos_in_second);
  583|  5.80k|                        nano += nsec;
  584|  5.80k|                        text_buffer_.clear();
  585|  5.80k|                        nano.write_string(text_buffer_);
  586|  5.80k|                        visitor.string_value(text_buffer_, semantic_tag::epoch_nano, *this, ec);
  587|  5.80k|                        more_ = !cursor_mode_;
  588|  5.80k|                        if (!more_) return;
  ------------------
  |  Branch (588:29): [True: 0, False: 5.80k]
  ------------------
  589|  5.80k|                    }
  590|  40.5k|                    else if (is_timestamp && len == 12)
  ------------------
  |  Branch (590:30): [True: 19.3k, False: 21.2k]
  |  Branch (590:46): [True: 17.9k, False: 1.41k]
  ------------------
  591|  17.9k|                    {
  592|  17.9k|                        uint8_t buf1[sizeof(uint32_t)];
  593|  17.9k|                        if (source_.read(buf1, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (593:29): [True: 1, False: 17.9k]
  ------------------
  594|      1|                        {
  595|      1|                            ec = msgpack_errc::unexpected_eof;
  596|      1|                            more_ = false;
  597|      1|                            return;
  598|      1|                        }
  599|  17.9k|                        uint32_t nsec = binary::big_to_native<uint32_t>(buf1, sizeof(buf1));
  600|       |
  601|  17.9k|                        uint8_t buf2[sizeof(int64_t)];
  602|  17.9k|                        if (source_.read(buf2, sizeof(int64_t)) != sizeof(int64_t))
  ------------------
  |  Branch (602:29): [True: 10, False: 17.9k]
  ------------------
  603|     10|                        {
  604|     10|                            ec = msgpack_errc::unexpected_eof;
  605|     10|                            more_ = false;
  606|     10|                            return;
  607|     10|                        }
  608|  17.9k|                        int64_t sec = binary::big_to_native<int64_t>(buf2, sizeof(buf2));
  609|       |
  610|  17.9k|                        bigint nano(sec);
  611|       |
  612|  17.9k|                        nano *= uint64_t(nanos_in_second);
  613|       |
  614|  17.9k|                        if (nano < 0)
  ------------------
  |  Branch (614:29): [True: 5.99k, False: 11.9k]
  ------------------
  615|  5.99k|                        {
  616|  5.99k|                            nano -= nsec;
  617|  5.99k|                        }
  618|  11.9k|                        else
  619|  11.9k|                        {
  620|  11.9k|                            nano += nsec;
  621|  11.9k|                        }
  622|       |
  623|  17.9k|                        text_buffer_.clear();
  624|  17.9k|                        nano.write_string(text_buffer_);
  625|  17.9k|                        visitor.string_value(text_buffer_, semantic_tag::epoch_nano, *this, ec);
  626|  17.9k|                        more_ = !cursor_mode_;
  627|  17.9k|                        if (!more_) return;
  ------------------
  |  Branch (627:29): [True: 0, False: 17.9k]
  ------------------
  628|  17.9k|                    }
  629|  22.6k|                    else
  630|  22.6k|                    {
  631|  22.6k|                        bytes_buffer_.clear();
  632|  22.6k|                        if (source_reader<Source>::read(source_,bytes_buffer_,len) != static_cast<std::size_t>(len))
  ------------------
  |  Branch (632:29): [True: 162, False: 22.4k]
  ------------------
  633|    162|                        {
  634|    162|                            ec = msgpack_errc::unexpected_eof;
  635|    162|                            more_ = false;
  636|    162|                            return;
  637|    162|                        }
  638|       |
  639|  22.4k|                        visitor.byte_string_value(byte_string_view(bytes_buffer_.data(),bytes_buffer_.size()), 
  640|  22.4k|                                                          static_cast<uint8_t>(ext_type), 
  641|  22.4k|                                                          *this,
  642|  22.4k|                                                          ec);
  643|  22.4k|                        more_ = !cursor_mode_;
  644|  22.4k|                    }
  645|  47.0k|                    break;
  646|  47.2k|                }
  647|       |
  648|  47.0k|                case jsoncons::msgpack::msgpack_type::array16_type: 
  ------------------
  |  Branch (648:17): [True: 2.45k, False: 11.0M]
  ------------------
  649|  2.86k|                case jsoncons::msgpack::msgpack_type::array32_type: 
  ------------------
  |  Branch (649:17): [True: 403, False: 11.0M]
  ------------------
  650|  2.86k|                {
  651|  2.86k|                    begin_array(visitor,type,ec);
  652|  2.86k|                    break;
  653|  2.45k|                }
  654|       |
  655|  2.05k|                case jsoncons::msgpack::msgpack_type::map16_type : 
  ------------------
  |  Branch (655:17): [True: 2.05k, False: 11.0M]
  ------------------
  656|  2.69k|                case jsoncons::msgpack::msgpack_type::map32_type : 
  ------------------
  |  Branch (656:17): [True: 636, False: 11.0M]
  ------------------
  657|  2.69k|                {
  658|  2.69k|                    begin_object(visitor, type, ec);
  659|  2.69k|                    break;
  660|  2.05k|                }
  661|       |
  662|      5|                default:
  ------------------
  |  Branch (662:17): [True: 5, False: 11.0M]
  ------------------
  663|      5|                {
  664|      5|                    ec = msgpack_errc::unknown_type;
  665|      5|                    more_ = false;
  666|      5|                    return;
  667|  2.05k|                }
  668|  11.0M|            }
  669|  11.0M|        }
  670|  25.8M|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectERNS_24basic_item_event_visitorIcEEhRNS3_10error_codeE:
  700|   295k|    {
  701|   295k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|   295k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 295k]
  |  |  ------------------
  ------------------
  702|      2|        {
  703|      2|            ec = msgpack_errc::max_nesting_depth_exceeded;
  704|      2|            more_ = false;
  705|      2|            return;
  706|      2|        } 
  707|   295k|        std::size_t length = get_size(type, ec);
  708|   295k|        if (!more_)
  ------------------
  |  Branch (708:13): [True: 17, False: 295k]
  ------------------
  709|     17|        {
  710|     17|            return;
  711|     17|        }
  712|   295k|        state_stack_.emplace_back(parse_mode::map_key,length);
  713|   295k|        visitor.begin_object(length, semantic_tag::none, *this, ec);
  714|   295k|        more_ = !cursor_mode_;
  715|   295k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayERNS_24basic_item_event_visitorIcEEhRNS3_10error_codeE:
  673|   243k|    {
  674|   243k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|   243k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 243k]
  |  |  ------------------
  ------------------
  675|      2|        {
  676|      2|            ec = msgpack_errc::max_nesting_depth_exceeded;
  677|      2|            more_ = false;
  678|      2|            return;
  679|      2|        } 
  680|   243k|        std::size_t length = get_size(type, ec);
  681|   243k|        if (!more_)
  ------------------
  |  Branch (681:13): [True: 18, False: 243k]
  ------------------
  682|     18|        {
  683|     18|            return;
  684|     18|        }
  685|   243k|        state_stack_.emplace_back(parse_mode::array,length);
  686|   243k|        visitor.begin_array(length, semantic_tag::none, *this, ec);
  687|   243k|        more_ = !cursor_mode_;
  688|   243k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE8get_sizeEhRNS3_10error_codeE:
  726|   603k|    {
  727|   603k|        switch (type)
  728|   603k|        {
  729|    499|            case jsoncons::msgpack::msgpack_type::str8_type: 
  ------------------
  |  Branch (729:13): [True: 499, False: 602k]
  ------------------
  730|  11.7k|            case jsoncons::msgpack::msgpack_type::bin8_type: 
  ------------------
  |  Branch (730:13): [True: 11.2k, False: 592k]
  ------------------
  731|  36.2k|            case jsoncons::msgpack::msgpack_type::ext8_type: 
  ------------------
  |  Branch (731:13): [True: 24.5k, False: 578k]
  ------------------
  732|  36.2k|            {
  733|  36.2k|                uint8_t buf[sizeof(int8_t)];
  734|  36.2k|                if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (734:21): [True: 28, False: 36.2k]
  ------------------
  735|     28|                {
  736|     28|                    ec = msgpack_errc::unexpected_eof;
  737|     28|                    more_ = false;
  738|     28|                    return 0;
  739|     28|                }
  740|  36.2k|                uint8_t len = binary::big_to_native<uint8_t>(buf, sizeof(buf));
  741|  36.2k|                return static_cast<std::size_t>(len);
  742|  36.2k|            }
  743|       |
  744|    462|            case jsoncons::msgpack::msgpack_type::str16_type: 
  ------------------
  |  Branch (744:13): [True: 462, False: 602k]
  ------------------
  745|  4.56k|            case jsoncons::msgpack::msgpack_type::bin16_type: 
  ------------------
  |  Branch (745:13): [True: 4.10k, False: 599k]
  ------------------
  746|  5.19k|            case jsoncons::msgpack::msgpack_type::ext16_type: 
  ------------------
  |  Branch (746:13): [True: 633, False: 602k]
  ------------------
  747|  7.65k|            case jsoncons::msgpack::msgpack_type::array16_type: 
  ------------------
  |  Branch (747:13): [True: 2.45k, False: 600k]
  ------------------
  748|  9.71k|            case jsoncons::msgpack::msgpack_type::map16_type:
  ------------------
  |  Branch (748:13): [True: 2.05k, False: 601k]
  ------------------
  749|  9.71k|            {
  750|  9.71k|                uint8_t buf[sizeof(int16_t)];
  751|  9.71k|                if (source_.read(buf, sizeof(int16_t)) != sizeof(int16_t))
  ------------------
  |  Branch (751:21): [True: 44, False: 9.66k]
  ------------------
  752|     44|                {
  753|     44|                    ec = msgpack_errc::unexpected_eof;
  754|     44|                    more_ = false;
  755|     44|                    return 0;
  756|     44|                }
  757|  9.66k|                uint16_t len = binary::big_to_native<uint16_t>(buf, sizeof(buf));
  758|  9.66k|                return static_cast<std::size_t>(len);
  759|  9.71k|            }
  760|       |
  761|    416|            case jsoncons::msgpack::msgpack_type::str32_type: 
  ------------------
  |  Branch (761:13): [True: 416, False: 602k]
  ------------------
  762|    731|            case jsoncons::msgpack::msgpack_type::bin32_type: 
  ------------------
  |  Branch (762:13): [True: 315, False: 602k]
  ------------------
  763|  1.42k|            case jsoncons::msgpack::msgpack_type::ext32_type: 
  ------------------
  |  Branch (763:13): [True: 690, False: 602k]
  ------------------
  764|  1.82k|            case jsoncons::msgpack::msgpack_type::array32_type: 
  ------------------
  |  Branch (764:13): [True: 403, False: 602k]
  ------------------
  765|  2.46k|            case jsoncons::msgpack::msgpack_type::map32_type : 
  ------------------
  |  Branch (765:13): [True: 636, False: 602k]
  ------------------
  766|  2.46k|            {
  767|  2.46k|                uint8_t buf[sizeof(int32_t)];
  768|  2.46k|                if (source_.read(buf, sizeof(int32_t)) != sizeof(int32_t))
  ------------------
  |  Branch (768:21): [True: 43, False: 2.41k]
  ------------------
  769|     43|                {
  770|     43|                    ec = msgpack_errc::unexpected_eof;
  771|     43|                    more_ = false;
  772|     43|                    return 0;
  773|     43|                }
  774|  2.41k|                uint32_t len = binary::big_to_native<uint32_t>(buf, sizeof(buf));
  775|  2.41k|                return static_cast<std::size_t>(len);
  776|  2.46k|            }
  777|  7.72k|            case jsoncons::msgpack::msgpack_type::fixext1_type: 
  ------------------
  |  Branch (777:13): [True: 7.72k, False: 595k]
  ------------------
  778|  7.72k|                return 1;
  779|  2.16k|            case jsoncons::msgpack::msgpack_type::fixext2_type: 
  ------------------
  |  Branch (779:13): [True: 2.16k, False: 601k]
  ------------------
  780|  2.16k|                return 2;
  781|  2.54k|            case jsoncons::msgpack::msgpack_type::fixext4_type: 
  ------------------
  |  Branch (781:13): [True: 2.54k, False: 600k]
  ------------------
  782|  2.54k|                return 4;
  783|  8.00k|            case jsoncons::msgpack::msgpack_type::fixext8_type: 
  ------------------
  |  Branch (783:13): [True: 8.00k, False: 595k]
  ------------------
  784|  8.00k|                return 8;
  785|  1.01k|            case jsoncons::msgpack::msgpack_type::fixext16_type: 
  ------------------
  |  Branch (785:13): [True: 1.01k, False: 602k]
  ------------------
  786|  1.01k|                return 16;
  787|   533k|            default:
  ------------------
  |  Branch (787:13): [True: 533k, False: 69.9k]
  ------------------
  788|   533k|                if ((type > 0x8f && type <= 0x9f) // fixarray
  ------------------
  |  Branch (788:22): [True: 240k, False: 293k]
  |  Branch (788:37): [True: 240k, False: 0]
  ------------------
  789|   293k|                    || (type > 0x7f && type <= 0x8f) // fixmap
  ------------------
  |  Branch (789:25): [True: 293k, False: 0]
  |  Branch (789:40): [True: 293k, False: 0]
  ------------------
  790|   533k|        )
  791|   533k|                {
  792|   533k|                    return type & 0x0f;
  793|   533k|                }
  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|   603k|        }
  802|   603k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
  691|   224k|    {
  692|   224k|        --nesting_depth_;
  693|       |
  694|   224k|        visitor.end_array(*this, ec);
  695|   224k|        more_ = !cursor_mode_;
  696|   224k|        state_stack_.pop_back();
  697|   224k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
  718|   275k|    {
  719|   275k|        --nesting_depth_;
  720|   275k|        visitor.end_object(*this, ec);
  721|   275k|        more_ = !cursor_mode_;
  722|   275k|        state_stack_.pop_back();
  723|   275k|    }

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

