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

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

_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: 42.9k, False: 200k]
  ------------------
 1013|  42.9k|            {
 1014|  42.9k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1014:21): [True: 41.2k, False: 1.77k]
  |  Branch (1014:73): [True: 38.1k, False: 3.03k]
  ------------------
 1015|  38.1k|                {
 1016|  38.1k|                    key_buffer_.push_back(',');
 1017|  38.1k|                }
 1018|  42.9k|                level_stack_.emplace_back(target_t::buffer, container_t::array);
 1019|  42.9k|                key_buffer_.push_back('[');
 1020|  42.9k|            }
 1021|   200k|            else
 1022|   200k|            {
 1023|   200k|                switch (level_stack_.back().target())
 1024|   200k|                {
 1025|   191k|                    case target_t::buffer:
  ------------------
  |  Branch (1025:21): [True: 191k, False: 9.41k]
  ------------------
 1026|   191k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1026:29): [True: 151k, False: 40.1k]
  |  Branch (1026:65): [True: 66.6k, False: 84.3k]
  ------------------
 1027|  66.6k|                        {
 1028|  66.6k|                            key_buffer_.push_back(',');
 1029|  66.6k|                        }
 1030|   191k|                        level_stack_.emplace_back(target_t::buffer, container_t::array);
 1031|   191k|                        key_buffer_.push_back('[');
 1032|   191k|                        break;
 1033|  9.41k|                    default:
  ------------------
  |  Branch (1033:21): [True: 9.41k, False: 191k]
  ------------------
 1034|  9.41k|                        level_stack_.emplace_back(target_t::destination, container_t::array);
 1035|  9.41k|                        destination_->begin_array(length, tag, context, ec);
 1036|  9.41k|                        break;
 1037|   200k|                }
 1038|   200k|            }
 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|  79.7M|            {
  815|  79.7M|                return even_odd_ == 0;
  816|  79.7M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6targetEv:
  824|  45.0M|            {
  825|  45.0M|                return state_;
  826|  45.0M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level5countEv:
  829|  19.2M|            {
  830|  19.2M|                return count_;
  831|  19.2M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5levelC2ENS4_8target_tENS4_11container_tE:
  797|   524k|                : state_(state), type_(type), even_odd_(type == container_t::object ? 0 : 1)
  ------------------
  |  Branch (797:57): [True: 275k, False: 248k]
  ------------------
  798|   524k|            {
  799|   524k|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level9is_objectEv:
  819|  47.6M|            {
  820|  47.6M|                return type_ == container_t::object;
  821|  47.6M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1043|   223k|        {
 1044|   223k|            switch (level_stack_.back().target())
 1045|   223k|            {
 1046|   222k|                case target_t::buffer:
  ------------------
  |  Branch (1046:17): [True: 222k, False: 1.42k]
  ------------------
 1047|   222k|                    key_buffer_.push_back(']');
 1048|   222k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   222k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 222k]
  |  |  ------------------
  |  |   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|   222k|                    level_stack_.pop_back();
 1050|   222k|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (1050:25): [True: 1.22k, False: 221k]
  ------------------
 1051|  1.22k|                    {
 1052|  1.22k|                        destination_->key(key_buffer_, context, ec);
 1053|  1.22k|                        key_buffer_.clear();
 1054|  1.22k|                    }
 1055|   221k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1055:30): [True: 39.4k, False: 181k]
  ------------------
 1056|  39.4k|                    {
 1057|  39.4k|                        key_buffer_.push_back(':');
 1058|  39.4k|                    }
 1059|   222k|                    level_stack_.back().advance();
 1060|   222k|                    break;
 1061|  1.42k|                default:
  ------------------
  |  Branch (1061:17): [True: 1.42k, False: 222k]
  ------------------
 1062|  1.42k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  1.42k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 1.42k]
  |  |  ------------------
  |  |   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.42k|                    level_stack_.pop_back();
 1064|  1.42k|                    level_stack_.back().advance();
 1065|  1.42k|                    destination_->end_array(context, ec);
 1066|  1.42k|                    break;
 1067|   223k|            }
 1068|   223k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   223k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1069|   223k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level7advanceEv:
  802|  28.3M|            {
  803|  28.3M|                if (!is_key())
  ------------------
  |  Branch (803:21): [True: 19.8M, False: 8.47M]
  ------------------
  804|  19.8M|                {
  805|  19.8M|                    ++count_;
  806|  19.8M|                }
  807|  28.3M|                if (is_object())
  ------------------
  |  Branch (807:21): [True: 16.9M, False: 11.4M]
  ------------------
  808|  16.9M|                {
  809|  16.9M|                    even_odd_ = !even_odd_;
  810|  16.9M|                }
  811|  28.3M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1236|  7.87M|        {
 1237|  7.87M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1237:17): [True: 2.23M, False: 5.63M]
  |  Branch (1237:49): [True: 5.04M, False: 597k]
  ------------------
 1238|  7.27M|            {
 1239|  7.27M|                key_.clear();
 1240|  7.27M|                jsoncons::from_integer(value,key_);
 1241|  7.27M|            }
 1242|       |
 1243|  7.87M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1243:17): [True: 2.23M, False: 5.63M]
  ------------------
 1244|  2.23M|            {
 1245|  2.23M|                switch (level_stack_.back().target())
 1246|  2.23M|                {
 1247|  2.16M|                    case target_t::buffer:
  ------------------
  |  Branch (1247:21): [True: 2.16M, False: 63.4k]
  ------------------
 1248|  2.16M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1248:29): [True: 2.14M, False: 23.3k]
  ------------------
 1249|  2.14M|                        {
 1250|  2.14M|                            key_buffer_.push_back(',');
 1251|  2.14M|                        }
 1252|  2.16M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1253|  2.16M|                        key_buffer_.push_back(':');
 1254|  2.16M|                        break;
 1255|  63.4k|                    default:
  ------------------
  |  Branch (1255:21): [True: 63.4k, False: 2.16M]
  ------------------
 1256|  63.4k|                        destination_->key(key_, context, ec);
 1257|  63.4k|                        break;
 1258|  2.23M|                }
 1259|  2.23M|            }
 1260|  5.63M|            else
 1261|  5.63M|            {
 1262|  5.63M|                switch (level_stack_.back().target())
 1263|  5.63M|                {
 1264|  5.04M|                    case target_t::buffer:
  ------------------
  |  Branch (1264:21): [True: 5.04M, False: 597k]
  ------------------
 1265|  5.04M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1265:29): [True: 2.86M, False: 2.17M]
  |  Branch (1265:65): [True: 2.85M, False: 4.22k]
  ------------------
 1266|  2.85M|                        {
 1267|  2.85M|                            key_buffer_.push_back(',');
 1268|  2.85M|                        }
 1269|  5.04M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1270|  5.04M|                        break;
 1271|   597k|                    default:
  ------------------
  |  Branch (1271:21): [True: 597k, False: 5.04M]
  ------------------
 1272|   597k|                        destination_->uint64_value(value, tag, context, ec);
 1273|   597k|                        break;
 1274|  5.63M|                }
 1275|  5.63M|            }
 1276|       |
 1277|  7.87M|            level_stack_.back().advance();
 1278|  7.87M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  7.87M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1279|  7.87M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1282|  3.27M|        {
 1283|  3.27M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1283:17): [True: 951k, False: 2.32M]
  |  Branch (1283:49): [True: 2.31M, False: 7.01k]
  ------------------
 1284|  3.26M|            {
 1285|  3.26M|                key_.clear();
 1286|  3.26M|                jsoncons::from_integer(value,key_);
 1287|  3.26M|            }
 1288|       |
 1289|  3.27M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1289:17): [True: 951k, False: 2.32M]
  ------------------
 1290|   951k|            {
 1291|   951k|                switch (level_stack_.back().target())
 1292|   951k|                {
 1293|   946k|                    case target_t::buffer:
  ------------------
  |  Branch (1293:21): [True: 946k, False: 5.09k]
  ------------------
 1294|   946k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1294:29): [True: 941k, False: 4.97k]
  ------------------
 1295|   941k|                        {
 1296|   941k|                            key_buffer_.push_back(',');
 1297|   941k|                        }
 1298|   946k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1299|   946k|                        key_buffer_.push_back(':');
 1300|   946k|                        break;
 1301|  5.09k|                    default:
  ------------------
  |  Branch (1301:21): [True: 5.09k, False: 946k]
  ------------------
 1302|  5.09k|                        destination_->key(key_, context, ec);
 1303|  5.09k|                        break;
 1304|   951k|                }
 1305|   951k|            }
 1306|  2.32M|            else
 1307|  2.32M|            {
 1308|  2.32M|                switch (level_stack_.back().target())
 1309|  2.32M|                {
 1310|  2.31M|                    case target_t::buffer:
  ------------------
  |  Branch (1310:21): [True: 2.31M, False: 7.01k]
  ------------------
 1311|  2.31M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1311:29): [True: 1.35M, False: 960k]
  |  Branch (1311:65): [True: 1.35M, False: 4.86k]
  ------------------
 1312|  1.35M|                        {
 1313|  1.35M|                            key_buffer_.push_back(',');
 1314|  1.35M|                        }
 1315|  2.31M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1316|  2.31M|                        break;
 1317|  7.01k|                    default:
  ------------------
  |  Branch (1317:21): [True: 7.01k, False: 2.31M]
  ------------------
 1318|  7.01k|                        destination_->int64_value(value, tag, context, ec);
 1319|  7.01k|                        break;
 1320|  2.32M|                }
 1321|  2.32M|            }
 1322|       |
 1323|  3.27M|            level_stack_.back().advance();
 1324|  3.27M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  3.27M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1325|  3.27M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1377|  64.4k|        {
 1378|  64.4k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1378:17): [True: 23.3k, False: 41.0k]
  |  Branch (1378:49): [True: 40.5k, False: 508]
  ------------------
 1379|  63.9k|            {
 1380|  63.9k|                key_.clear();
 1381|  63.9k|                string_sink<string_type> sink(key_);
 1382|  63.9k|                jsoncons::write_double f{float_chars_format::general,0};
 1383|  63.9k|                f(value, sink);
 1384|  63.9k|            }
 1385|       |
 1386|  64.4k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1386:17): [True: 23.3k, False: 41.0k]
  ------------------
 1387|  23.3k|            {
 1388|  23.3k|                switch (level_stack_.back().target())
 1389|  23.3k|                {
 1390|  21.8k|                    case target_t::buffer:
  ------------------
  |  Branch (1390:21): [True: 21.8k, False: 1.54k]
  ------------------
 1391|  21.8k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1391:29): [True: 13.3k, False: 8.48k]
  ------------------
 1392|  13.3k|                        {
 1393|  13.3k|                            key_buffer_.push_back(',');
 1394|  13.3k|                        }
 1395|  21.8k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1396|  21.8k|                        key_buffer_.push_back(':');
 1397|  21.8k|                        break;
 1398|  1.54k|                    default:
  ------------------
  |  Branch (1398:21): [True: 1.54k, False: 21.8k]
  ------------------
 1399|  1.54k|                        destination_->key(key_, context, ec);
 1400|  1.54k|                        break;
 1401|  23.3k|                }
 1402|  23.3k|            }
 1403|  41.0k|            else
 1404|  41.0k|            {
 1405|  41.0k|                switch (level_stack_.back().target())
 1406|  41.0k|                {
 1407|  40.5k|                    case target_t::buffer:
  ------------------
  |  Branch (1407:21): [True: 40.5k, False: 508]
  ------------------
 1408|  40.5k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1408:29): [True: 25.9k, False: 14.5k]
  |  Branch (1408:65): [True: 22.0k, False: 3.92k]
  ------------------
 1409|  22.0k|                        {
 1410|  22.0k|                            key_buffer_.push_back(',');
 1411|  22.0k|                        }
 1412|  40.5k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1413|  40.5k|                        break;
 1414|    508|                    default:
  ------------------
  |  Branch (1414:21): [True: 508, False: 40.5k]
  ------------------
 1415|    508|                        destination_->double_value(value, tag, context, ec);
 1416|    508|                        break;
 1417|  41.0k|                }
 1418|  41.0k|            }
 1419|       |
 1420|  64.4k|            level_stack_.back().advance();
 1421|  64.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  64.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1422|  64.4k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  884|    940|        {
  885|    940|            destination_->flush();
  886|    940|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  917|   275k|        {
  918|   275k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (918:17): [True: 145k, False: 130k]
  ------------------
  919|   145k|            {
  920|   145k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (920:21): [True: 142k, False: 3.08k]
  |  Branch (920:73): [True: 66.6k, False: 75.7k]
  ------------------
  921|  66.6k|                {
  922|  66.6k|                    key_buffer_.push_back(',');
  923|  66.6k|                }
  924|   145k|                level_stack_.emplace_back(target_t::buffer, container_t::object);
  925|   145k|                key_buffer_.push_back('{');
  926|   145k|            }
  927|   130k|            else
  928|   130k|            {
  929|   130k|                switch (level_stack_.back().target())
  930|   130k|                {
  931|   122k|                    case target_t::buffer:
  ------------------
  |  Branch (931:21): [True: 122k, False: 7.48k]
  ------------------
  932|   122k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (932:29): [True: 41.5k, False: 81.2k]
  |  Branch (932:65): [True: 39.3k, False: 2.19k]
  ------------------
  933|  39.3k|                        {
  934|  39.3k|                            key_buffer_.push_back(',');
  935|  39.3k|                        }
  936|   122k|                        level_stack_.emplace_back(target_t::buffer, container_t::object);
  937|   122k|                        key_buffer_.push_back('{');
  938|   122k|                        break;
  939|  7.48k|                    default:
  ------------------
  |  Branch (939:21): [True: 7.48k, False: 122k]
  ------------------
  940|  7.48k|                        level_stack_.emplace_back(target_t::destination, container_t::object);
  941|  7.48k|                        destination_->begin_object(length, tag, context, ec);
  942|  7.48k|                        break;
  943|   130k|                }
  944|   130k|            }
  945|   275k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   275k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  946|   275k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  949|   254k|        {
  950|   254k|            switch (level_stack_.back().target())
  951|   254k|            {
  952|   252k|                case target_t::buffer:
  ------------------
  |  Branch (952:17): [True: 252k, False: 2.03k]
  ------------------
  953|   252k|                    key_buffer_.push_back('}');
  954|   252k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   252k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 252k]
  |  |  ------------------
  |  |   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|   252k|                    level_stack_.pop_back();
  956|       |                    
  957|   252k|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (957:25): [True: 2.16k, False: 250k]
  ------------------
  958|  2.16k|                    {
  959|  2.16k|                        destination_->key(key_buffer_,context, ec);
  960|  2.16k|                        key_buffer_.clear();
  961|  2.16k|                    }
  962|   250k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (962:30): [True: 135k, False: 114k]
  ------------------
  963|   135k|                    {
  964|   135k|                        key_buffer_.push_back(':');
  965|   135k|                    }
  966|   252k|                    level_stack_.back().advance();
  967|   252k|                    break;
  968|  2.03k|                default:
  ------------------
  |  Branch (968:17): [True: 2.03k, False: 252k]
  ------------------
  969|  2.03k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  2.03k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 2.03k]
  |  |  ------------------
  |  |   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.03k|                    level_stack_.pop_back();
  971|  2.03k|                    level_stack_.back().advance();
  972|  2.03k|                    destination_->end_object(context, ec);
  973|  2.03k|                    break;
  974|   254k|            }
  975|   254k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   254k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  976|   254k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1478|  80.7k|        {
 1479|  80.7k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1479:17): [True: 31.9k, False: 48.8k]
  |  Branch (1479:49): [True: 48.0k, False: 805]
  ------------------
 1480|  79.9k|            {
 1481|  79.9k|                key_.clear(); 
 1482|  79.9k|                key_.insert(key_.begin(), null_constant.begin(), null_constant.end());
 1483|  79.9k|            }
 1484|       |
 1485|  80.7k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1485:17): [True: 31.9k, False: 48.8k]
  ------------------
 1486|  31.9k|            {
 1487|  31.9k|                switch (level_stack_.back().target())
 1488|  31.9k|                {
 1489|  31.2k|                    case target_t::buffer:
  ------------------
  |  Branch (1489:21): [True: 31.2k, False: 701]
  ------------------
 1490|  31.2k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1490:29): [True: 28.4k, False: 2.74k]
  ------------------
 1491|  28.4k|                        {
 1492|  28.4k|                            key_buffer_.push_back(',');
 1493|  28.4k|                        }
 1494|  31.2k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1495|  31.2k|                        key_buffer_.push_back(':');
 1496|  31.2k|                        break;
 1497|    701|                    default:
  ------------------
  |  Branch (1497:21): [True: 701, False: 31.2k]
  ------------------
 1498|    701|                        destination_->key(key_, context, ec);
 1499|    701|                        break;
 1500|  31.9k|                }
 1501|  31.9k|            }
 1502|  48.8k|            else
 1503|  48.8k|            {
 1504|  48.8k|                switch (level_stack_.back().target())
 1505|  48.8k|                {
 1506|  48.0k|                    case target_t::buffer:
  ------------------
  |  Branch (1506:21): [True: 48.0k, False: 805]
  ------------------
 1507|  48.0k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1507:29): [True: 18.5k, False: 29.4k]
  |  Branch (1507:65): [True: 17.7k, False: 822]
  ------------------
 1508|  17.7k|                        {
 1509|  17.7k|                            key_buffer_.push_back(',');
 1510|  17.7k|                        }
 1511|  48.0k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1512|  48.0k|                        break;
 1513|    805|                    default:
  ------------------
  |  Branch (1513:21): [True: 805, False: 48.0k]
  ------------------
 1514|    805|                        destination_->null_value(tag, context, ec);
 1515|    805|                        break;
 1516|  48.8k|                }
 1517|  48.8k|            }
 1518|       |
 1519|  80.7k|            level_stack_.back().advance();
 1520|  80.7k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  80.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1521|  80.7k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1425|  11.2M|        {
 1426|  11.2M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1426:17): [True: 3.62M, False: 7.57M]
  |  Branch (1426:49): [True: 7.56M, False: 11.6k]
  ------------------
 1427|  11.1M|            {
 1428|  11.1M|                key_.clear(); 
 1429|  11.1M|                if (value)
  ------------------
  |  Branch (1429:21): [True: 6.30M, False: 4.88M]
  ------------------
 1430|  6.30M|                {
 1431|  6.30M|                    key_.insert(key_.begin(), true_constant.begin(), true_constant.end());
 1432|  6.30M|                }
 1433|  4.88M|                else
 1434|  4.88M|                {
 1435|  4.88M|                    key_.insert(key_.begin(), false_constant.begin(), false_constant.end());
 1436|  4.88M|                }
 1437|  11.1M|            }
 1438|       |
 1439|  11.2M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1439:17): [True: 3.62M, False: 7.57M]
  ------------------
 1440|  3.62M|            {
 1441|  3.62M|                switch (level_stack_.back().target())
 1442|  3.62M|                {
 1443|  3.61M|                    case target_t::buffer:
  ------------------
  |  Branch (1443:21): [True: 3.61M, False: 11.3k]
  ------------------
 1444|  3.61M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1444:29): [True: 3.60M, False: 10.7k]
  ------------------
 1445|  3.60M|                        {
 1446|  3.60M|                            key_buffer_.push_back(',');
 1447|  3.60M|                        }
 1448|  3.61M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1449|  3.61M|                        key_buffer_.push_back(':');
 1450|  3.61M|                        break;
 1451|  11.3k|                    default:
  ------------------
  |  Branch (1451:21): [True: 11.3k, False: 3.61M]
  ------------------
 1452|  11.3k|                        destination_->key(key_, context, ec);
 1453|  11.3k|                        break;
 1454|  3.62M|                }
 1455|  3.62M|            }
 1456|  7.57M|            else
 1457|  7.57M|            {
 1458|  7.57M|                switch (level_stack_.back().target())
 1459|  7.57M|                {
 1460|  7.56M|                    case target_t::buffer:
  ------------------
  |  Branch (1460:21): [True: 7.56M, False: 11.6k]
  ------------------
 1461|  7.56M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1461:29): [True: 3.90M, False: 3.65M]
  |  Branch (1461:65): [True: 3.89M, False: 5.25k]
  ------------------
 1462|  3.89M|                        {
 1463|  3.89M|                            key_buffer_.push_back(',');
 1464|  3.89M|                        }
 1465|  7.56M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1466|  7.56M|                        break;
 1467|  11.6k|                    default:
  ------------------
  |  Branch (1467:21): [True: 11.6k, False: 7.56M]
  ------------------
 1468|  11.6k|                        destination_->bool_value(value, tag, context, ec);
 1469|  11.6k|                        break;
 1470|  7.57M|                }
 1471|  7.57M|            }
 1472|       |
 1473|  11.2M|            level_stack_.back().advance();
 1474|  11.2M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  11.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1475|  11.2M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1075|  5.35M|        {
 1076|  5.35M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1076:17): [True: 1.41M, False: 3.93M]
  ------------------
 1077|  1.41M|            {
 1078|  1.41M|                switch (level_stack_.back().target())
 1079|  1.41M|                {
 1080|  1.41M|                    case target_t::buffer:
  ------------------
  |  Branch (1080:21): [True: 1.41M, False: 1.79k]
  ------------------
 1081|  1.41M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1081:29): [True: 1.41M, False: 2.01k]
  ------------------
 1082|  1.41M|                        {
 1083|  1.41M|                            key_buffer_.push_back(',');
 1084|  1.41M|                        }
 1085|  1.41M|                        key_buffer_.push_back('\"');
 1086|  1.41M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1087|  1.41M|                        key_buffer_.push_back('\"');
 1088|  1.41M|                        key_buffer_.push_back(':');
 1089|  1.41M|                        break;
 1090|  1.79k|                    default:
  ------------------
  |  Branch (1090:21): [True: 1.79k, False: 1.41M]
  ------------------
 1091|  1.79k|                        destination_->key(value, context, ec);
 1092|  1.79k|                        break;
 1093|  1.41M|                }
 1094|  1.41M|            }
 1095|  3.93M|            else
 1096|  3.93M|            {
 1097|  3.93M|                switch (level_stack_.back().target())
 1098|  3.93M|                {
 1099|  3.92M|                    case target_t::buffer:
  ------------------
  |  Branch (1099:21): [True: 3.92M, False: 4.31k]
  ------------------
 1100|  3.92M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1100:29): [True: 2.50M, False: 1.41M]
  |  Branch (1100:65): [True: 2.50M, False: 1.22k]
  ------------------
 1101|  2.50M|                        {
 1102|  2.50M|                            key_buffer_.push_back(',');
 1103|  2.50M|                        }
 1104|  3.92M|                        key_buffer_.push_back('\"');
 1105|  3.92M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1106|  3.92M|                        key_buffer_.push_back('\"');
 1107|  3.92M|                        break;
 1108|  4.31k|                    default:
  ------------------
  |  Branch (1108:21): [True: 4.31k, False: 3.92M]
  ------------------
 1109|  4.31k|                        destination_->string_value(value, tag, context, ec);
 1110|  4.31k|                        break;
 1111|  3.93M|                }
 1112|  3.93M|            }
 1113|       |
 1114|  5.35M|            level_stack_.back().advance();
 1115|  5.35M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  5.35M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1116|  5.35M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1122|  15.9k|        {
 1123|  15.9k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1123:17): [True: 5.86k, False: 10.0k]
  |  Branch (1123:49): [True: 8.98k, False: 1.04k]
  ------------------
 1124|  14.8k|            {
 1125|  14.8k|                key_.clear();
 1126|  14.8k|                switch (tag)
 1127|  14.8k|                {
 1128|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1128:21): [True: 0, False: 14.8k]
  ------------------
 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.8k]
  ------------------
 1132|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1133|      0|                        break;
 1134|  14.8k|                    default:
  ------------------
  |  Branch (1134:21): [True: 14.8k, False: 0]
  ------------------
 1135|  14.8k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1136|  14.8k|                        break;
 1137|  14.8k|                }
 1138|  14.8k|            }
 1139|       |
 1140|  15.9k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1140:17): [True: 5.86k, False: 10.0k]
  ------------------
 1141|  5.86k|            {
 1142|  5.86k|                switch (level_stack_.back().target())
 1143|  5.86k|                {
 1144|  5.04k|                    case target_t::buffer:
  ------------------
  |  Branch (1144:21): [True: 5.04k, False: 823]
  ------------------
 1145|  5.04k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1145:29): [True: 3.03k, False: 2.00k]
  ------------------
 1146|  3.03k|                        {
 1147|  3.03k|                            key_buffer_.push_back(',');
 1148|  3.03k|                        }
 1149|  5.04k|                        key_buffer_.push_back('\"');
 1150|  5.04k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1151|  5.04k|                        key_buffer_.push_back('\"');
 1152|  5.04k|                        key_buffer_.push_back(':');
 1153|  5.04k|                        break;
 1154|    823|                    default:
  ------------------
  |  Branch (1154:21): [True: 823, False: 5.04k]
  ------------------
 1155|    823|                        destination_->key(key_, context, ec);
 1156|    823|                        break;
 1157|  5.86k|                }
 1158|  5.86k|            }
 1159|  10.0k|            else
 1160|  10.0k|            {
 1161|  10.0k|                switch (level_stack_.back().target())
 1162|  10.0k|                {
 1163|  8.98k|                    case target_t::buffer:
  ------------------
  |  Branch (1163:21): [True: 8.98k, False: 1.04k]
  ------------------
 1164|  8.98k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1164:29): [True: 3.94k, False: 5.03k]
  |  Branch (1164:65): [True: 3.14k, False: 807]
  ------------------
 1165|  3.14k|                        {
 1166|  3.14k|                            key_buffer_.push_back(',');
 1167|  3.14k|                        }
 1168|  8.98k|                        key_buffer_.push_back('\"');
 1169|  8.98k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1170|  8.98k|                        key_buffer_.push_back('\"');
 1171|  8.98k|                        break;
 1172|  1.04k|                    default:
  ------------------
  |  Branch (1172:21): [True: 1.04k, False: 8.98k]
  ------------------
 1173|  1.04k|                        destination_->byte_string_value(value, tag, context, ec);
 1174|  1.04k|                        break;
 1175|  10.0k|                }
 1176|  10.0k|            }
 1177|       |
 1178|  15.9k|            level_stack_.back().advance();
 1179|  15.9k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  15.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1180|  15.9k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1186|  20.4k|        {
 1187|  20.4k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1187:17): [True: 9.03k, False: 11.4k]
  |  Branch (1187:49): [True: 10.1k, False: 1.25k]
  ------------------
 1188|  19.2k|            {
 1189|  19.2k|                key_.clear();
 1190|  19.2k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1191|  19.2k|            }
 1192|       |
 1193|  20.4k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1193:17): [True: 9.03k, False: 11.4k]
  ------------------
 1194|  9.03k|            {
 1195|  9.03k|                switch (level_stack_.back().target())
 1196|  9.03k|                {
 1197|  8.04k|                    case target_t::buffer:
  ------------------
  |  Branch (1197:21): [True: 8.04k, False: 986]
  ------------------
 1198|  8.04k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1198:29): [True: 5.36k, False: 2.68k]
  ------------------
 1199|  5.36k|                        {
 1200|  5.36k|                            key_buffer_.push_back(',');
 1201|  5.36k|                        }
 1202|  8.04k|                        key_buffer_.push_back('\"');
 1203|  8.04k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1204|  8.04k|                        key_buffer_.push_back('\"');
 1205|  8.04k|                        key_buffer_.push_back(':');
 1206|  8.04k|                        break;
 1207|    986|                    default:
  ------------------
  |  Branch (1207:21): [True: 986, False: 8.04k]
  ------------------
 1208|    986|                        destination_->key(key_, context, ec);
 1209|    986|                        break;
 1210|  9.03k|                }
 1211|  9.03k|            }
 1212|  11.4k|            else
 1213|  11.4k|            {
 1214|  11.4k|                switch (level_stack_.back().target())
 1215|  11.4k|                {
 1216|  10.1k|                    case target_t::buffer:
  ------------------
  |  Branch (1216:21): [True: 10.1k, False: 1.25k]
  ------------------
 1217|  10.1k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1217:29): [True: 4.62k, False: 5.55k]
  |  Branch (1217:65): [True: 3.41k, False: 1.21k]
  ------------------
 1218|  3.41k|                        {
 1219|  3.41k|                            key_buffer_.push_back(',');
 1220|  3.41k|                        }
 1221|  10.1k|                        key_buffer_.push_back('\"');
 1222|  10.1k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1223|  10.1k|                        key_buffer_.push_back('\"');
 1224|  10.1k|                        break;
 1225|  1.25k|                    default:
  ------------------
  |  Branch (1225:21): [True: 1.25k, False: 10.1k]
  ------------------
 1226|  1.25k|                        destination_->byte_string_value(value, ext_tag, context, ec);
 1227|  1.25k|                        break;
 1228|  11.4k|                }
 1229|  11.4k|            }
 1230|       |
 1231|  20.4k|            level_stack_.back().advance();
 1232|  20.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  20.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1233|  20.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.87M|        {
  363|  7.87M|            visit_uint64(value, tag, context, ec);
  364|  7.87M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  7.87M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  365|  7.87M|        }
_ZN8jsoncons24basic_item_event_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  299|   223k|        {
  300|   223k|            visit_end_array(context, ec);
  301|   223k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   223k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  302|   223k|        }
_ZN8jsoncons24basic_item_event_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  371|  3.27M|        {
  372|  3.27M|            visit_int64(value, tag, context, ec);
  373|  3.27M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  3.27M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  374|  3.27M|        }
_ZN8jsoncons24basic_item_event_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  389|  64.4k|        {
  390|  64.4k|            visit_double(value, tag, context, ec);
  391|  64.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  64.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  392|  64.4k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  858|  4.73k|            : destination_(std::addressof(visitor)), 
  859|  4.73k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  860|  4.73k|        {
  861|  4.73k|            level_stack_.emplace_back(target_t::destination,container_t::root); // root
  862|  4.73k|        }
_ZN8jsoncons24basic_item_event_visitorIcEC2Ev:
   51|  4.73k|        basic_item_event_visitor() = default;
_ZN8jsoncons24basic_item_event_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  275|   275k|        {
  276|   275k|            visit_begin_object(length, tag, context, ec);
  277|   275k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   275k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  278|   275k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  331|  5.35M|        {
  332|  5.35M|            visit_string(value, tag, context, ec);
  333|  5.35M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  5.35M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  334|  5.35M|        }
_ZN8jsoncons24basic_item_event_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  313|  80.7k|        {
  314|  80.7k|            visit_null(tag, context, ec);
  315|  80.7k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  80.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  316|  80.7k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  322|  11.2M|        {
  323|  11.2M|            visit_bool(value, tag, context, ec);
  324|  11.2M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  11.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  325|  11.2M|        }
_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.9k|        {
  343|  15.9k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  344|  15.9k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  15.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  345|  15.9k|        }
_ZN8jsoncons24basic_item_event_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  353|  20.4k|        {
  354|  20.4k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), ext_tag, context, ec);
  355|  20.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  20.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  356|  20.4k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  281|   254k|        {
  282|   254k|            visit_end_object(context, ec);
  283|   254k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   254k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  284|   254k|        }
_ZN8jsoncons24basic_item_event_visitorIcE5flushEv:
   56|    940|        {
   57|    940|            visit_flush();
   58|    940|        }

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

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

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

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

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  678|  68.7k|        : storage_(n, alloc)
  679|  68.7k|    {
  680|  68.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  345|  68.7k|        : word_allocator_type(alloc)
  346|  68.7k|    {
  347|  68.7k|        ::new (&inlined_) inlined_storage(n);
  348|  68.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  137|  68.7k|            : is_allocated_(false),
  138|  68.7k|            is_negative_(false),
  139|  68.7k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (139:19): [True: 24.9k, False: 43.8k]
  ------------------
  140|  68.7k|        {
  141|  68.7k|            values_[0] = n;
  142|  68.7k|            values_[1] = 0;
  143|  68.7k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  928|  23.0k|    {
  929|  23.0k|        auto this_view = get_storage_view();
  930|  23.0k|        size_type len0 = this_view.size();
  931|  23.0k|        word_type dig = this_view[0];
  932|  23.0k|        word_type carry = 0;
  933|       |
  934|  23.0k|        resize(this_view.size() + 1);
  935|  23.0k|        this_view = get_storage_view();
  936|       |
  937|  23.0k|        size_type i = 0;
  938|  43.7k|        for (; i < len0; i++ )
  ------------------
  |  Branch (938:16): [True: 20.7k, False: 23.0k]
  ------------------
  939|  20.7k|        {
  940|  20.7k|            word_type hi;
  941|  20.7k|            word_type lo;
  942|  20.7k|            DDproduct( dig, y, hi, lo );
  943|  20.7k|            this_view[i] = lo + carry;
  944|  20.7k|            dig = this_view[i+1];
  945|  20.7k|            carry = hi + (this_view[i] < lo);
  946|  20.7k|        }
  947|  23.0k|        this_view[i] = carry;
  948|  23.0k|        reduce();
  949|  23.0k|        return *this;
  950|  23.0k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  703|   372k|    {
  704|   372k|        return storage_.get_storage_view();
  705|   372k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  505|   535k|    {
  506|   535k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (506:16): [True: 161k, False: 374k]
  ------------------
  507|   161k|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  508|   535k|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  509|   535k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   63|   535k|            : data_(data), size_(size)
   64|   535k|        {
   65|   535k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   83|   888k|        {
   84|   888k|            return size_;
   85|   888k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   68|   350k|        {
   69|   350k|            return data_[i];
   70|   350k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  820|  59.0k|    {
  821|  59.0k|        storage_.resize(new_length);
  822|  59.0k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  519|   125k|    {
  520|   125k|        size_type old_length = common_.size_;
  521|   125k|        reserve(new_length);
  522|   125k|        common_.size_ = new_length;
  523|       |
  524|   125k|        if (old_length < new_length)
  ------------------
  |  Branch (524:13): [True: 68.1k, False: 56.9k]
  ------------------
  525|  68.1k|        {
  526|  68.1k|            if (is_allocated())
  ------------------
  |  Branch (526:17): [True: 12.4k, False: 55.7k]
  ------------------
  527|  12.4k|            {
  528|  12.4k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  529|  12.4k|            }
  530|  55.7k|            else
  531|  55.7k|            {
  532|  55.7k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   45|  55.7k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 55.7k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  533|   138k|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (533:48): [True: 82.5k, False: 55.7k]
  ------------------
  534|  82.5k|                {
  535|  82.5k|                    inlined_.values_[i] = 0;
  536|  82.5k|                }
  537|  55.7k|            }
  538|  68.1k|        }
  539|   125k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  437|   125k|    {
  438|   125k|       if (capacity() < n)
  ------------------
  |  Branch (438:12): [True: 12.4k, False: 112k]
  ------------------
  439|  12.4k|       {
  440|  12.4k|           if (!is_allocated())
  ------------------
  |  Branch (440:16): [True: 12.4k, False: 0]
  ------------------
  441|  12.4k|           {
  442|  12.4k|               size_type size = inlined_.size_;
  443|  12.4k|               size_type is_neg = inlined_.is_negative_;
  444|  12.4k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  445|       |
  446|  12.4k|               ::new (&allocated_) allocated_storage();
  447|  12.4k|               allocated_.reserve(n, get_allocator());
  448|  12.4k|               allocated_.size_ = size;
  449|  12.4k|               allocated_.is_negative_ = is_neg;
  450|  12.4k|               if (n >= 1)
  ------------------
  |  Branch (450:20): [True: 12.4k, False: 0]
  ------------------
  451|  12.4k|               {
  452|  12.4k|                   allocated_.data_[0] = values[0];
  453|  12.4k|               }
  454|  12.4k|               if (n >= 2)
  ------------------
  |  Branch (454:20): [True: 12.4k, False: 0]
  ------------------
  455|  12.4k|               {
  456|  12.4k|                   allocated_.data_[1] = values[1];
  457|  12.4k|               }
  458|  12.4k|           }
  459|      0|           else
  460|      0|           {
  461|      0|               allocated_.reserve(n, get_allocator());
  462|      0|           }
  463|  12.4k|       }
  464|   125k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  490|   125k|    {
  491|   125k|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (491:16): [True: 24.8k, False: 100k]
  ------------------
  492|   125k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  201|  12.4k|            : is_allocated_(true),
  202|  12.4k|            is_negative_(false)
  203|  12.4k|        {
  204|  12.4k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  253|  12.4k|        {
  254|  12.4k|            size_type capacity_new = round_up(n);
  255|       |
  256|  12.4k|            real_allocator_type alloc(a);
  257|  12.4k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  258|  12.4k|            if (size_ > 0)
  ------------------
  |  Branch (258:17): [True: 0, False: 12.4k]
  ------------------
  259|      0|            {
  260|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  261|      0|            }
  262|  12.4k|            if (data_ != nullptr)
  ------------------
  |  Branch (262:17): [True: 0, False: 12.4k]
  ------------------
  263|      0|            {
  264|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  265|      0|            }
  266|  12.4k|            capacity_ = capacity_new;
  267|  12.4k|            data_ = data_new;
  268|  12.4k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  272|  62.2k|        {
  273|  62.2k|            return ((i + 1/3) / mem_unit + 1) * mem_unit;
  274|  62.2k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  467|   263k|    {
  468|   263k|        return static_cast<const word_allocator_type&>(*this);
  469|   263k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  485|   608k|    {
  486|   608k|        return common_.is_allocated_;
  487|   608k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1709|  33.5k|    {
 1710|  33.5k|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1711|  33.5k|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1712|       |
 1713|  33.5k|        lo = loA * loB;
 1714|  33.5k|        hi = hiA * hiB;
 1715|  33.5k|        word_type mid1 = loA * hiB;
 1716|  33.5k|        word_type mid2 = hiA * loB;
 1717|  33.5k|        word_type old = lo;
 1718|  33.5k|        lo += mid1 << word_type_half_bits;
 1719|  33.5k|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1720|  33.5k|        old = lo;
 1721|  33.5k|        lo += mid2 << word_type_half_bits;
 1722|  33.5k|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1723|  33.5k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1845|  97.5k|    {
 1846|  97.5k|        storage_.reduce();
 1847|  97.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  414|  97.5k|    {
  415|  97.5k|        if (common_.size_ > 0)
  ------------------
  |  Branch (415:13): [True: 97.5k, False: 0]
  ------------------
  416|  97.5k|        {
  417|  97.5k|            auto this_view = get_storage_view();
  418|  97.5k|            word_type* p = this_view.end() - 1;
  419|  97.5k|            word_type* first = this_view.begin();
  420|   143k|            while ( p >= first )
  ------------------
  |  Branch (420:21): [True: 140k, False: 3.79k]
  ------------------
  421|   140k|            {
  422|   140k|                if ( *p )
  ------------------
  |  Branch (422:22): [True: 93.8k, False: 46.3k]
  ------------------
  423|  93.8k|                {
  424|  93.8k|                    break;
  425|  93.8k|                }
  426|  46.3k|                --common_.size_;
  427|  46.3k|                --p;
  428|  46.3k|            }
  429|  97.5k|        }
  430|  97.5k|        if (common_.size_ == 0)
  ------------------
  |  Branch (430:13): [True: 3.79k, False: 93.8k]
  ------------------
  431|  3.79k|        {
  432|  3.79k|            common_.is_negative_ = false;
  433|  3.79k|        }
  434|  97.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   92|  97.5k|        {
   93|  97.5k|            return data_ + size_;
   94|  97.5k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   87|  97.5k|        {
   88|  97.5k|            return data_;
   89|  97.5k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  850|  23.0k|    {
  851|  23.0k|        auto y_view = y.get_storage_view();
  852|       |        
  853|  23.0k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (853:14): [True: 0, False: 23.0k]
  ------------------
  854|      0|            return *this -= -y;
  855|  23.0k|        word_type d;
  856|  23.0k|        word_type carry = 0;
  857|       |
  858|  23.0k|        auto this_view = get_storage_view();
  859|  23.0k|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  860|  23.0k|        this_view = get_storage_view();
  861|       |
  862|  47.3k|        for (size_type i = 0; i < this_view.size(); i++ )
  ------------------
  |  Branch (862:31): [True: 46.9k, False: 425]
  ------------------
  863|  46.9k|        {
  864|  46.9k|            if ( i >= y_view.size() && carry == 0 )
  ------------------
  |  Branch (864:18): [True: 27.2k, False: 19.7k]
  |  Branch (864:40): [True: 22.6k, False: 4.59k]
  ------------------
  865|  22.6k|                break;
  866|  24.3k|            d = this_view[i] + carry;
  867|  24.3k|            carry = d < carry;
  868|  24.3k|            if ( i < y_view.size())
  ------------------
  |  Branch (868:18): [True: 19.7k, False: 4.59k]
  ------------------
  869|  19.7k|            {
  870|  19.7k|                this_view[i] = d + y_view[i];
  871|  19.7k|                if (this_view[i] < d)
  ------------------
  |  Branch (871:21): [True: 4.59k, False: 15.1k]
  ------------------
  872|  4.59k|                    carry = 1;
  873|  19.7k|            }
  874|  4.59k|            else
  875|  4.59k|            {
  876|  4.59k|                this_view[i] = d;
  877|  4.59k|            }
  878|  24.3k|        }
  879|  23.0k|        reduce();
  880|  23.0k|        return *this;
  881|  23.0k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  708|   155k|    {
  709|   155k|        return storage_.get_storage_view();
  710|   155k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  512|   221k|    {
  513|   221k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (513:16): [True: 62.2k, False: 159k]
  ------------------
  514|  62.2k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  515|   221k|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  516|   221k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   63|   221k|            : data_(data), size_(size)
   64|   221k|        {
   65|   221k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  713|   368k|    {
  714|   368k|        return storage_.is_negative();
  715|   368k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  495|   368k|    {
  496|   368k|        return common_.is_negative_;
  497|   368k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  837|  5.11k|    {
  838|  5.11k|        basic_bigint<Allocator> v(*this);
  839|  5.11k|        v.set_negative(!v.is_negative());
  840|  5.11k|        return v;
  841|  5.11k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  656|  28.1k|        : storage_(other.storage_)
  657|  28.1k|    {
  658|  28.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  291|  28.1k|        : word_allocator_type(other.get_allocator())
  292|  28.1k|    {
  293|  28.1k|        if (!other.is_allocated())
  ------------------
  |  Branch (293:13): [True: 15.7k, False: 12.4k]
  ------------------
  294|  15.7k|        {
  295|  15.7k|            ::new (&inlined_) inlined_storage(other.inlined_);
  296|  15.7k|        }
  297|  12.4k|        else
  298|  12.4k|        {
  299|  12.4k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  300|  12.4k|        }
  301|  28.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  177|  83.1k|            : is_allocated_(false),
  178|  83.1k|            is_negative_(stor.is_negative_),
  179|  83.1k|            size_(stor.size_)
  180|  83.1k|        {
  181|  83.1k|            values_[0] = stor.values_[0];
  182|  83.1k|            values_[1] = stor.values_[1];
  183|  83.1k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  207|  49.7k|            : is_allocated_(true),
  208|  49.7k|              is_negative_(stor.is_negative_),
  209|  49.7k|              size_(stor.size_),
  210|  49.7k|              capacity_(round_up(stor.size_))
  211|  49.7k|        {
  212|  49.7k|            real_allocator_type alloc(a);
  213|       |
  214|  49.7k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  215|  49.7k|            JSONCONS_TRY
  ------------------
  |  |   37|  49.7k|    #define JSONCONS_TRY try
  ------------------
  216|  49.7k|            {
  217|  49.7k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  218|  49.7k|            }
  219|  49.7k|            JSONCONS_CATCH(...)
  220|  49.7k|            {
  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|  49.7k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   45|  49.7k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 49.7k]
  |  |  ------------------
  |  |   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|  49.7k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  227|  49.7k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  718|   163k|    {
  719|   163k|        storage_.set_negative(value);
  720|   163k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  500|   163k|    {
  501|   163k|        common_.is_negative_ = value;
  502|   163k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   83|   547k|        {
   84|   547k|            return size_;
   85|   547k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   68|   117k|        {
   69|   117k|            return data_[i];
   70|   117k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  693|   269k|    {
  694|   269k|        storage_.destroy();
  695|   269k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  472|   269k|    {
  473|   269k|        if (is_allocated())
  ------------------
  |  Branch (473:13): [True: 62.2k, False: 207k]
  ------------------
  474|  62.2k|        {
  475|  62.2k|            allocated_.destroy(get_allocator());
  476|  62.2k|            allocated_.~allocated_storage();
  477|  62.2k|        }
  478|   207k|        else
  479|   207k|        {
  480|   207k|            inlined_.~inlined_storage();
  481|   207k|        }
  482|   269k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  244|  62.2k|        {
  245|  62.2k|            if (data_ != nullptr)
  ------------------
  |  Branch (245:17): [True: 62.2k, False: 0]
  ------------------
  246|  62.2k|            {
  247|  62.2k|                real_allocator_type alloc(a);
  248|  62.2k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  249|  62.2k|            }
  250|  62.2k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12write_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1288|  23.0k|    {
 1289|  23.0k|        basic_bigint<Allocator> v(*this);
 1290|  23.0k|        auto v_view = v.get_storage_view();
 1291|       |
 1292|  23.0k|        size_type len = (v_view.size() * word_type_bits / 3) + 2;
 1293|  23.0k|        data.reserve(len);
 1294|       |
 1295|  23.0k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1295:14): [True: 1.22k, False: 21.8k]
  ------------------
 1296|  1.22k|        {
 1297|  1.22k|            data.push_back('0');
 1298|  1.22k|        }
 1299|  21.8k|        else
 1300|  21.8k|        {
 1301|  21.8k|            word_type r;
 1302|  21.8k|            basic_bigint<Allocator> R(get_allocator());
 1303|  21.8k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1304|       |
 1305|  21.8k|            do
 1306|  39.4k|            {
 1307|  39.4k|                v.divide( LP10, v, R, true );
 1308|  39.4k|                v_view = v.get_storage_view();
 1309|       |
 1310|  39.4k|                auto R_view = R.get_storage_view();
 1311|  39.4k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1311:22): [True: 38.8k, False: 608]
  ------------------
 1312|   512k|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1312:38): [True: 495k, False: 17.6k]
  ------------------
 1313|   495k|                {
 1314|   495k|                    data.push_back(char(r % 10u + '0'));
 1315|   495k|                    r /= 10u;
 1316|   495k|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1316:26): [True: 21.8k, False: 473k]
  ------------------
 1317|  21.8k|                        break;
 1318|   495k|                }
 1319|  39.4k|            } 
 1320|  39.4k|            while ( v_view.size() > 0);
  ------------------
  |  Branch (1320:21): [True: 17.6k, False: 21.8k]
  ------------------
 1321|       |
 1322|  21.8k|            if (is_negative())
  ------------------
  |  Branch (1322:17): [True: 5.11k, False: 16.7k]
  ------------------
 1323|  5.11k|            {
 1324|  5.11k|                data.push_back('-');
 1325|  5.11k|            }
 1326|  21.8k|            std::reverse(data.begin(),data.end());
 1327|  21.8k|        }
 1328|  23.0k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  698|   148k|    {
  699|   148k|        return storage_.get_allocator();
  700|   148k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  629|  21.8k|        : storage_(alloc)
  630|  21.8k|    {
  631|  21.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  285|  21.8k|        : word_allocator_type(alloc)
  286|  21.8k|    {
  287|  21.8k|        ::new (&inlined_) inlined_storage();
  288|  21.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  112|  21.8k|            : is_allocated_(false),
  113|  21.8k|            is_negative_(false),
  114|  21.8k|            size_(0),
  115|  21.8k|            values_{0, 0}
  116|  21.8k|        {
  117|  21.8k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1603|  39.4k|    {
 1604|  39.4k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1605|  39.4k|        auto denom_view = denom.get_storage_view();
 1606|       |
 1607|  39.4k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1607:13): [True: 0, False: 39.4k]
  ------------------
 1608|      0|        {
 1609|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1610|      0|        }
 1611|  39.4k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1612|  39.4k|        bool rem_neg = is_negative();
 1613|  39.4k|        basic_bigint<Allocator> num(*this, get_allocator());
 1614|  39.4k|        num.set_negative(false);
 1615|  39.4k|        denom.set_negative(false);
 1616|  39.4k|        if ( num < denom )
  ------------------
  |  Branch (1616:14): [True: 21.8k, False: 17.6k]
  ------------------
 1617|  21.8k|        {
 1618|  21.8k|            quot = word_type(0);
 1619|  21.8k|            quot.set_negative(quot_neg);
 1620|  21.8k|            rem = num;
 1621|  21.8k|            rem.set_negative(rem_neg);
 1622|  21.8k|            return;
 1623|  21.8k|        }
 1624|       |
 1625|  17.6k|        auto num_view = num.get_storage_view();
 1626|  17.6k|        auto quot_view = quot.get_storage_view();
 1627|  17.6k|        auto this_view = get_storage_view();
 1628|       |
 1629|  17.6k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1629:14): [True: 17.6k, False: 0]
  |  Branch (1629:40): [True: 4.79k, False: 12.8k]
  ------------------
 1630|  4.79k|        {
 1631|  4.79k|            quot = word_type( num_view[0]/denom_view[0] );
 1632|  4.79k|            rem = word_type( num_view[0]%denom_view[0] );
 1633|  4.79k|            quot.set_negative(quot_neg);
 1634|  4.79k|            rem.set_negative(rem_neg);
 1635|  4.79k|            return;
 1636|  4.79k|        }
 1637|  12.8k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1637:13): [True: 12.8k, False: 0]
  |  Branch (1637:39): [True: 0, False: 12.8k]
  ------------------
 1638|      0|        {
 1639|       |            // Denominator fits into a half word
 1640|      0|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1641|      0|            quot.resize(this_view.size());
 1642|      0|            quot_view = quot.get_storage_view();
 1643|      0|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1643:48): [True: 0, False: 0]
  ------------------
 1644|      0|            {
 1645|      0|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1646|      0|                q1 = dividend/divisor;
 1647|      0|                r = dividend % divisor;
 1648|      0|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1649|      0|                q2 = dividend/divisor;
 1650|      0|                dHi = dividend % divisor;
 1651|      0|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1652|      0|            }
 1653|      0|            quot.reduce();
 1654|      0|            rem = dHi;
 1655|      0|            quot.set_negative(quot_neg);
 1656|      0|            rem.set_negative(rem_neg);
 1657|      0|            return;
 1658|      0|        }
 1659|  12.8k|        basic_bigint<Allocator> num0(num, get_allocator());
 1660|  12.8k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1661|  12.8k|        int x = 0;
 1662|  12.8k|        bool second_done = normalize(denom, num, x);
 1663|  12.8k|        denom_view = denom.get_storage_view();
 1664|  12.8k|        num_view = num.get_storage_view();
 1665|       |
 1666|  12.8k|        size_type l = denom_view.size() - 1;
 1667|  12.8k|        size_type n = num_view.size() - 1;
 1668|  12.8k|        quot.resize(n - l);
 1669|  12.8k|        quot_view = quot.get_storage_view();
 1670|  25.7k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1670:46): [True: 12.8k, False: 12.8k]
  ------------------
 1671|  12.8k|        {
 1672|  12.8k|            quot_view[i] = 0;
 1673|  12.8k|        }
 1674|  12.8k|        rem = num;
 1675|  12.8k|        auto rem_view = rem.get_storage_view();
 1676|  12.8k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1676:14): [True: 0, False: 12.8k]
  ------------------
 1677|      0|        {
 1678|      0|            rem.resize(rem_view.size() + 1);
 1679|      0|            rem_view = rem.get_storage_view();
 1680|      0|            n++;
 1681|      0|            quot.resize(quot_view.size() + 1);
 1682|      0|            quot_view = quot.get_storage_view();
 1683|      0|        }
 1684|  12.8k|        word_type d = denom_view[l];
 1685|       |
 1686|  25.7k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1686:32): [True: 12.8k, False: 12.8k]
  ------------------
 1687|  12.8k|        {
 1688|  12.8k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1689|  12.8k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1690|  12.8k|            quot_view[k - l - 1] = q;
 1691|  12.8k|        }
 1692|  12.8k|        quot.reduce();
 1693|  12.8k|        quot.set_negative(quot_neg);
 1694|  12.8k|        if (remDesired)
  ------------------
  |  Branch (1694:13): [True: 12.8k, False: 0]
  ------------------
 1695|  12.8k|        {
 1696|  12.8k|            unnormalize(rem, x, second_done);
 1697|  12.8k|            rem.set_negative(rem_neg);
 1698|  12.8k|        }
 1699|  12.8k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  661|   104k|        : storage_(other.storage_, alloc)
  662|   104k|    {
  663|   104k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  304|   104k|        : word_allocator_type(alloc)
  305|   104k|    {
  306|   104k|        if (!other.is_allocated())
  ------------------
  |  Branch (306:13): [True: 67.4k, False: 37.3k]
  ------------------
  307|  67.4k|        {
  308|  67.4k|            ::new (&inlined_) inlined_storage(other.inlined_);
  309|  67.4k|        }
  310|  37.3k|        else
  311|  37.3k|        {
  312|  37.3k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  313|  37.3k|        }
  314|   104k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1405|  39.4k|    {
 1406|  39.4k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1406:15): [True: 21.8k, False: 17.6k]
  ------------------
 1407|  39.4k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1570|  54.8k|    {
 1571|  54.8k|        auto this_view = get_storage_view();
 1572|  54.8k|        auto y_view = y.get_storage_view();
 1573|       |
 1574|  54.8k|        if ( this_view.size() == 0 && y_view.size() == 0 )
  ------------------
  |  Branch (1574:14): [True: 1.05k, False: 53.7k]
  |  Branch (1574:39): [True: 1.05k, False: 0]
  ------------------
 1575|  1.05k|            return 0;
 1576|  53.7k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1576:14): [True: 5.11k, False: 48.6k]
  ------------------
 1577|  5.11k|            return y.is_negative() - is_negative();
 1578|  48.6k|        int code = 0;
 1579|  48.6k|        if ( this_view.size() < y_view.size())
  ------------------
  |  Branch (1579:14): [True: 0, False: 48.6k]
  ------------------
 1580|      0|            code = -1;
 1581|  48.6k|        else if ( this_view.size() > y_view.size())
  ------------------
  |  Branch (1581:19): [True: 22.0k, False: 26.6k]
  ------------------
 1582|  22.0k|            code = +1;
 1583|  26.6k|        else
 1584|  26.6k|        {
 1585|  27.0k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1585:50): [True: 26.6k, False: 394]
  ------------------
 1586|  26.6k|            {
 1587|  26.6k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1587:21): [True: 4.39k, False: 22.2k]
  ------------------
 1588|  4.39k|                {
 1589|  4.39k|                    code = 1;
 1590|  4.39k|                    break;
 1591|  4.39k|                }
 1592|  22.2k|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1592:26): [True: 21.8k, False: 394]
  ------------------
 1593|  21.8k|                {
 1594|  21.8k|                    code = -1;
 1595|  21.8k|                    break;
 1596|  21.8k|                }
 1597|  26.6k|            }
 1598|  26.6k|        }
 1599|  48.6k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1599:16): [True: 0, False: 48.6k]
  ------------------
 1600|  53.7k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  844|  66.1k|    {
  845|  66.1k|        storage_ = y.storage_;
  846|  66.1k|        return *this;
  847|  66.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  351|  66.1k|    {
  352|  66.1k|        if (this != &other)
  ------------------
  |  Branch (352:13): [True: 66.1k, False: 0]
  ------------------
  353|  66.1k|        {
  354|  66.1k|            auto other_view = other.get_storage_view();
  355|  66.1k|            resize(other_view.size());
  356|  66.1k|            auto this_view = get_storage_view();
  357|  66.1k|            if (other_view.size() > 0)
  ------------------
  |  Branch (357:17): [True: 43.8k, False: 22.2k]
  ------------------
  358|  43.8k|            {
  359|  43.8k|                common_.is_negative_ = other.common_.is_negative_;
  360|  43.8k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  361|  43.8k|            }
  362|  66.1k|        }
  363|  66.1k|        return *this;
  364|  66.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   78|  43.8k|        {
   79|  43.8k|            return data_;
   80|  43.8k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1800|  12.8k|    {
 1801|  12.8k|        auto denom_view = denom.get_storage_view();
 1802|  12.8k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1802:13): [True: 0, False: 12.8k]
  ------------------
 1803|      0|        {
 1804|      0|            return false;
 1805|      0|        }
 1806|  12.8k|        size_type r = denom_view.size() - 1;
 1807|  12.8k|        word_type y = denom_view[r];
 1808|       |
 1809|  12.8k|        x = 0;
 1810|  12.8k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1810:17): [True: 0, False: 12.8k]
  ------------------
 1811|      0|        {
 1812|      0|            y <<= 1;
 1813|      0|            x++;
 1814|      0|        }
 1815|  12.8k|        denom <<= x;
 1816|  12.8k|        num <<= x;
 1817|       |
 1818|  12.8k|        denom_view = denom.get_storage_view();
 1819|  12.8k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1819:14): [True: 0, False: 12.8k]
  |  Branch (1819:23): [True: 0, False: 0]
  ------------------
 1820|      0|        {
 1821|      0|            denom *= max_word;
 1822|      0|            num *= max_word;
 1823|      0|            return true;
 1824|      0|        }
 1825|  12.8k|        return false;
 1826|  12.8k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1046|  25.7k|    {
 1047|  25.7k|        auto this_view = get_storage_view();
 1048|  25.7k|        size_type q = k / word_type_bits;
 1049|  25.7k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1049:14): [True: 0, False: 25.7k]
  ------------------
 1050|      0|        {
 1051|      0|            resize(this_view.size() + q);
 1052|      0|            this_view = get_storage_view();
 1053|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1053:50): [True: 0, False: 0]
  ------------------
 1054|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1054:34): [True: 0, False: 0]
  ------------------
 1055|      0|            k %= word_type_bits;
 1056|      0|        }
 1057|  25.7k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1057:14): [True: 0, False: 25.7k]
  ------------------
 1058|      0|        {
 1059|      0|            size_type k1 = word_type_bits - k;
 1060|      0|            word_type mask = (word_type(1) << k) - word_type(1);
 1061|      0|            resize( this_view.size() + 1 );
 1062|      0|            this_view = get_storage_view();
 1063|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1063:50): [True: 0, False: 0]
  ------------------
 1064|      0|            {
 1065|      0|                this_view[i] <<= k;
 1066|      0|                if ( i > 0 )
  ------------------
  |  Branch (1066:22): [True: 0, False: 0]
  ------------------
 1067|      0|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1068|      0|            }
 1069|      0|        }
 1070|  25.7k|        reduce();
 1071|  25.7k|        return *this;
 1072|  25.7k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1727|  12.8k|    {
 1728|  12.8k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1729|  12.8k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1730|  12.8k|        qHi = A/(dHi + 1);
 1731|       |        // This initial guess of qHi may be too small.
 1732|  12.8k|        middle = qHi * dLo;
 1733|  12.8k|        left = qHi * dHi;
 1734|  12.8k|        x = B - (middle << word_type_half_bits);
 1735|  12.8k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1736|  12.8k|        B = x;
 1737|  12.8k|        dLo1 = dLo << word_type_half_bits;
 1738|       |        // Increase qHi if necessary:
 1739|  12.8k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1739:17): [True: 0, False: 12.8k]
  |  Branch (1739:29): [True: 0, False: 12.8k]
  |  Branch (1739:41): [True: 0, False: 0]
  ------------------
 1740|      0|        {
 1741|      0|            x = B - dLo1;
 1742|      0|            A -= dHi + (x > B);
 1743|      0|            B = x;
 1744|      0|            qHi++;
 1745|      0|        }
 1746|  12.8k|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1747|       |        // This initial guess of qLo may be too small.
 1748|  12.8k|        right = qLo * dLo;
 1749|  12.8k|        middle = qLo * dHi;
 1750|  12.8k|        x = B - right;
 1751|  12.8k|        A -= (x > B);
 1752|  12.8k|        B = x;
 1753|  12.8k|        x = B - (middle << word_type_half_bits);
 1754|  12.8k|            A -= (middle >> word_type_half_bits) + (x > B);
 1755|  12.8k|        B = x;
 1756|       |        // Increase qLo if necessary:
 1757|  15.0k|        while ( A || B >= d )
  ------------------
  |  Branch (1757:17): [True: 0, False: 15.0k]
  |  Branch (1757:22): [True: 2.22k, False: 12.8k]
  ------------------
 1758|  2.22k|        {
 1759|  2.22k|            x = B - d;
 1760|  2.22k|            A -= (x > B);
 1761|  2.22k|            B = x;
 1762|  2.22k|            qLo++;
 1763|  2.22k|        }
 1764|  12.8k|        return (qHi << word_type_half_bits) + qLo;
 1765|  12.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1769|  12.8k|    {
 1770|  12.8k|        word_type hi, lo, d, carry = 0;
 1771|  12.8k|        size_type i;
 1772|  25.7k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1772:22): [True: 12.8k, False: 12.8k]
  ------------------
 1773|  12.8k|        {
 1774|  12.8k|            DDproduct( b[i], q, hi, lo );
 1775|  12.8k|            d = a[i];
 1776|  12.8k|            a[i] -= lo;
 1777|  12.8k|            if ( a[i] > d )
  ------------------
  |  Branch (1777:18): [True: 7.21k, False: 5.64k]
  ------------------
 1778|  7.21k|                carry++;
 1779|  12.8k|            d = a[i + 1];
 1780|  12.8k|            a[i + 1] -= hi + carry;
 1781|  12.8k|            carry = a[i + 1] > d;
 1782|  12.8k|        }
 1783|  12.8k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1783:14): [True: 0, False: 12.8k]
  ------------------
 1784|      0|        {
 1785|      0|            q--;
 1786|      0|            carry = 0;
 1787|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1787:26): [True: 0, False: 0]
  ------------------
 1788|      0|            {
 1789|      0|                d = a[i] + carry;
 1790|      0|                carry = d < carry;
 1791|      0|                a[i] = d + b[i];
 1792|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1792:22): [True: 0, False: 0]
  ------------------
 1793|      0|                    carry = 1;
 1794|      0|            }
 1795|      0|            a[n] = 0;
 1796|      0|        }
 1797|  12.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   78|  69.6k|        {
   79|  69.6k|            return data_;
   80|  69.6k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1829|  12.8k|    {
 1830|  12.8k|        if (secondDone)
  ------------------
  |  Branch (1830:13): [True: 0, False: 12.8k]
  ------------------
 1831|      0|        {
 1832|      0|            rem /= max_word;
 1833|      0|        }
 1834|  12.8k|        if ( x > 0 )
  ------------------
  |  Branch (1834:14): [True: 0, False: 12.8k]
  ------------------
 1835|      0|        {
 1836|      0|            rem >>= x;
 1837|      0|        }
 1838|  12.8k|        else
 1839|  12.8k|        {
 1840|  12.8k|            rem.reduce();
 1841|  12.8k|        }
 1842|  12.8k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  678|  30.6k|        : storage_(n, alloc)
  679|  30.6k|    {
  680|  30.6k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  345|  30.6k|        : word_allocator_type(alloc)
  346|  30.6k|    {
  347|  30.6k|        ::new (&inlined_) inlined_storage(n);
  348|  30.6k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  124|  30.6k|            : is_allocated_(false),
  125|  30.6k|            is_negative_(n < 0),
  126|  30.6k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (126:19): [True: 16.3k, False: 14.2k]
  ------------------
  127|  30.6k|        {
  128|  30.6k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (128:26): [True: 5.11k, False: 25.5k]
  ------------------
  129|  30.6k|            values_[1] = 0;
  130|  30.6k|        }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEEl:
 1410|  15.3k|    {
 1411|  15.3k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1411:15): [True: 5.11k, False: 10.2k]
  ------------------
 1412|  15.3k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IjEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  678|  15.3k|        : storage_(n, alloc)
  679|  15.3k|    {
  680|  15.3k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IjEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  345|  15.3k|        : word_allocator_type(alloc)
  346|  15.3k|    {
  347|  15.3k|        ::new (&inlined_) inlined_storage(n);
  348|  15.3k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IjEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  137|  15.3k|            : is_allocated_(false),
  138|  15.3k|            is_negative_(false),
  139|  15.3k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (139:19): [True: 1.95k, False: 13.3k]
  ------------------
  140|  15.3k|        {
  141|  15.3k|            values_[0] = n;
  142|  15.3k|            values_[1] = 0;
  143|  15.3k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  884|  5.11k|    {
  885|  5.11k|        auto y_view = y.get_storage_view();
  886|       |
  887|  5.11k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (887:14): [True: 5.11k, False: 0]
  ------------------
  888|  5.11k|            return *this += -y;
  889|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (889:15): [True: 0, False: 0]
  |  Branch (889:33): [True: 0, False: 0]
  |  Branch (889:48): [True: 0, False: 0]
  |  Branch (889:65): [True: 0, False: 0]
  ------------------
  890|      0|            return *this = -(y - *this);
  891|      0|        word_type borrow = 0;
  892|      0|        word_type d;
  893|      0|        auto this_view = get_storage_view();
  894|      0|        for (size_type i = 0; i < this_view.size(); i++ )
  ------------------
  |  Branch (894:31): [True: 0, False: 0]
  ------------------
  895|      0|        {
  896|      0|            if ( i >= y_view.size() && borrow == 0 )
  ------------------
  |  Branch (896:18): [True: 0, False: 0]
  |  Branch (896:40): [True: 0, False: 0]
  ------------------
  897|      0|                break;
  898|      0|            d = this_view[i] - borrow;
  899|      0|            borrow = d > this_view[i];
  900|      0|            if ( i < y_view.size())
  ------------------
  |  Branch (900:18): [True: 0, False: 0]
  ------------------
  901|      0|            {
  902|      0|                this_view[i] = d - y_view[i];
  903|      0|                if ( this_view[i] > d )
  ------------------
  |  Branch (903:22): [True: 0, False: 0]
  ------------------
  904|      0|                    borrow = 1;
  905|      0|            }
  906|      0|            else 
  907|      0|            {
  908|      0|                this_view[i] = d;
  909|      0|            }
  910|      0|        }
  911|      0|        reduce();
  912|      0|        return *this;
  913|      0|    }

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

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

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

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

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14convert_resultIS4_EEE4typeEPKS4_m:
 1134|  5.32M|    {
 1135|  5.32M|        conv_errc  result = conv_errc();
 1136|  5.32M|        const CharT* last = data + length;
 1137|  6.31M|        while (data != last) 
  ------------------
  |  Branch (1137:16): [True: 982k, False: 5.32M]
  ------------------
 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: 109, False: 982k]
  ------------------
 1145|    109|            {
 1146|    109|                return convert_result<CharT>{data,result} ;
 1147|    109|            }
 1148|   982k|            data += len;
 1149|   982k|        }
 1150|  5.32M|        return convert_result<CharT>{data,result} ;
 1151|  5.32M|    }
_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|      8|        default:
  ------------------
  |  Branch (307:9): [True: 8, False: 982k]
  ------------------
  308|      8|            return conv_errc::over_long_utf8_sequence;
  309|    732|        case 4:
  ------------------
  |  Branch (309:9): [True: 732, False: 982k]
  ------------------
  310|    732|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (310:17): [True: 6, False: 726]
  ------------------
  311|      6|                return conv_errc::expected_continuation_byte;
  312|    726|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    726|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  313|  1.18k|        case 3:
  ------------------
  |  Branch (313:9): [True: 454, False: 982k]
  ------------------
  314|  1.18k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 2, False: 1.17k]
  ------------------
  315|      2|                return conv_errc::expected_continuation_byte;
  316|  1.17k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.17k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  1.46k|        case 2:
  ------------------
  |  Branch (317:9): [True: 289, False: 982k]
  ------------------
  318|  1.46k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 29, False: 1.43k]
  ------------------
  319|     29|                return conv_errc::expected_continuation_byte;
  320|       |
  321|  1.43k|            switch (static_cast<uint8_t>(*first)) 
  322|  1.43k|            {
  323|       |                // no fall-through in this inner switch
  324|    239|                case 0xE0: if (a < 0xA0) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (324:17): [True: 239, False: 1.19k]
  |  Branch (324:32): [True: 8, False: 231]
  ------------------
  325|    231|                case 0xED: if (a > 0x9F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (325:17): [True: 205, False: 1.23k]
  |  Branch (325:32): [True: 5, False: 200]
  ------------------
  326|    203|                case 0xF0: if (a < 0x90) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (326:17): [True: 203, False: 1.23k]
  |  Branch (326:32): [True: 5, False: 198]
  ------------------
  327|    474|                case 0xF4: if (a > 0x8F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (327:17): [True: 474, False: 964]
  |  Branch (327:32): [True: 6, False: 468]
  ------------------
  328|    468|                default:   if (a < 0x80) return conv_errc::source_illegal;
  ------------------
  |  Branch (328:17): [True: 317, False: 1.12k]
  |  Branch (328:32): [True: 0, False: 317]
  ------------------
  329|  1.43k|            }
  330|       |
  331|  1.41k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.41k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  332|   982k|        case 1:
  ------------------
  |  Branch (332:9): [True: 981k, False: 1.48k]
  ------------------
  333|   982k|            if (static_cast<uint8_t>(*first) >= 0x80 && static_cast<uint8_t>(*first) < 0xC2)
  ------------------
  |  Branch (333:17): [True: 1.44k, False: 981k]
  |  Branch (333:57): [True: 39, False: 1.41k]
  ------------------
  334|     39|                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|  7.27M|{
   43|  7.27M|    using char_type = typename Result::value_type;
   44|       |
   45|  7.27M|    char_type buf[255];
   46|  7.27M|    char_type *p = buf;
   47|  7.27M|    const char_type* last = buf+255;
   48|       |
   49|  7.27M|    bool is_negative = value < 0;
   50|       |
   51|  7.27M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 7.27M]
  ------------------
   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|  7.27M|    else
   60|  7.27M|    {
   61|       |
   62|  7.27M|        do
   63|  14.4M|        {
   64|  14.4M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  14.4M|        }
   66|  14.4M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 7.15M, False: 7.27M]
  |  Branch (66:33): [True: 7.15M, False: 0]
  ------------------
   67|  7.27M|    }
   68|  7.27M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  7.27M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 7.27M]
  |  |  ------------------
  |  |   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|  7.27M|    std::size_t count = (p - buf);
   71|  7.27M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 7.27M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  21.6M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 14.4M, False: 7.27M]
  ------------------
   77|  14.4M|    {
   78|  14.4M|        result.push_back(*p);
   79|  14.4M|    }
   80|       |
   81|  7.27M|    return count;
   82|  7.27M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  3.26M|{
   43|  3.26M|    using char_type = typename Result::value_type;
   44|       |
   45|  3.26M|    char_type buf[255];
   46|  3.26M|    char_type *p = buf;
   47|  3.26M|    const char_type* last = buf+255;
   48|       |
   49|  3.26M|    bool is_negative = value < 0;
   50|       |
   51|  3.26M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 3.26M, False: 3.50k]
  ------------------
   52|  3.26M|    {
   53|  3.26M|        do
   54|  3.46M|        {
   55|  3.46M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  3.46M|        }
   57|  3.46M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 198k, False: 3.26M]
  |  Branch (57:33): [True: 198k, False: 0]
  ------------------
   58|  3.26M|    }
   59|  3.50k|    else
   60|  3.50k|    {
   61|       |
   62|  3.50k|        do
   63|  32.7k|        {
   64|  32.7k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  32.7k|        }
   66|  32.7k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 29.2k, False: 3.50k]
  |  Branch (66:33): [True: 29.2k, False: 0]
  ------------------
   67|  3.50k|    }
   68|  3.26M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  3.26M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 3.26M]
  |  |  ------------------
  |  |   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.26M|    std::size_t count = (p - buf);
   71|  3.26M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 3.26M, False: 3.50k]
  ------------------
   72|  3.26M|    {
   73|  3.26M|        result.push_back('-');
   74|  3.26M|        ++count;
   75|  3.26M|    }
   76|  6.76M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 3.49M, False: 3.26M]
  ------------------
   77|  3.49M|    {
   78|  3.49M|        result.push_back(*p);
   79|  3.49M|    }
   80|       |
   81|  3.26M|    return count;
   82|  3.26M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  63.9k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  63.9k|    {
  489|  63.9k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  63.9k|        struct lconv *lc = localeconv();
  491|  63.9k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 63.9k, False: 0]
  |  Branch (491:30): [True: 63.9k, False: 0]
  ------------------
  492|  63.9k|        {
  493|  63.9k|            decimal_point_ = lc->decimal_point[0];
  494|  63.9k|        }
  495|  63.9k|#endif
  496|  63.9k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  63.9k|    {
  504|  63.9k|        std::size_t count = 0;
  505|       |
  506|  63.9k|        char number_buffer[200];
  507|  63.9k|        int length = 0;
  508|       |
  509|  63.9k|        switch (float_format_)
  510|  63.9k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 63.9k]
  ------------------
  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: 63.9k]
  ------------------
  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|  63.9k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 63.9k, False: 0]
  ------------------
  552|  63.9k|            {
  553|  63.9k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 63.9k]
  ------------------
  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|  63.9k|                else
  563|  63.9k|                {
  564|  63.9k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 63.9k]
  ------------------
  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|  63.9k|                }             
  569|  63.9k|                break;
  570|  63.9k|            }
  571|  63.9k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 63.9k]
  ------------------
  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|  63.9k|        }
  575|  63.9k|        return count;
  576|  63.9k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  5.08k|{
  244|  5.08k|    const char *sbeg = buffer;
  245|  5.08k|    const char *send = sbeg + length;
  246|       |
  247|  5.08k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 5.08k, False: 0]
  ------------------
  248|  5.08k|    {
  249|  5.08k|        bool needs_dot = true;
  250|  95.1k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 90.0k, False: 5.08k]
  ------------------
  251|  90.0k|        {
  252|  90.0k|            switch (*q)
  253|  90.0k|            {
  254|  4.71k|            case '-':
  ------------------
  |  Branch (254:13): [True: 4.71k, False: 85.3k]
  ------------------
  255|  12.4k|            case '0':
  ------------------
  |  Branch (255:13): [True: 7.76k, False: 82.2k]
  ------------------
  256|  22.0k|            case '1':
  ------------------
  |  Branch (256:13): [True: 9.55k, False: 80.4k]
  ------------------
  257|  30.5k|            case '2':
  ------------------
  |  Branch (257:13): [True: 8.55k, False: 81.4k]
  ------------------
  258|  37.8k|            case '3':
  ------------------
  |  Branch (258:13): [True: 7.27k, False: 82.7k]
  ------------------
  259|  43.7k|            case '4':
  ------------------
  |  Branch (259:13): [True: 5.84k, False: 84.2k]
  ------------------
  260|  51.3k|            case '5':
  ------------------
  |  Branch (260:13): [True: 7.66k, False: 82.3k]
  ------------------
  261|  61.4k|            case '6':
  ------------------
  |  Branch (261:13): [True: 10.0k, False: 79.9k]
  ------------------
  262|  67.6k|            case '7':
  ------------------
  |  Branch (262:13): [True: 6.18k, False: 83.8k]
  ------------------
  263|  73.9k|            case '8':
  ------------------
  |  Branch (263:13): [True: 6.32k, False: 83.7k]
  ------------------
  264|  79.7k|            case '9':
  ------------------
  |  Branch (264:13): [True: 5.86k, False: 84.1k]
  ------------------
  265|  80.8k|            case '+':
  ------------------
  |  Branch (265:13): [True: 1.02k, False: 89.0k]
  ------------------
  266|  80.8k|                result.push_back(*q);
  267|  80.8k|                break;
  268|  2.54k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 2.54k, False: 87.5k]
  ------------------
  269|  2.54k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 90.0k]
  ------------------
  270|  2.54k|                result.push_back('e');
  271|  2.54k|                needs_dot = false;
  272|  2.54k|                break;
  273|  6.68k|            default:
  ------------------
  |  Branch (273:13): [True: 6.68k, False: 83.3k]
  ------------------
  274|  6.68k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 4.01k, False: 2.66k]
  ------------------
  275|  4.01k|                {
  276|  4.01k|                    needs_dot = false;
  277|  4.01k|                    result.push_back('.');
  278|  4.01k|                }
  279|  6.68k|                break;
  280|  90.0k|            }
  281|  90.0k|        }
  282|  5.08k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 1.07k, False: 4.01k]
  ------------------
  283|  1.07k|        {
  284|  1.07k|            result.push_back('.');
  285|  1.07k|            result.push_back('0');
  286|  1.07k|        }
  287|  5.08k|    }
  288|  5.08k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmiiiRT_:
  171|  55.7k|{
  172|  55.7k|    int nb_digits = (int)length;
  173|  55.7k|    int offset;
  174|       |    /* v = buffer * 10^k
  175|       |       kk is such that 10^(kk-1) <= v < 10^kk
  176|       |       this way kk gives the position of the decimal point.
  177|       |    */
  178|  55.7k|    int kk = nb_digits + k;
  179|       |
  180|  55.7k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 20.7k, False: 35.0k]
  |  Branch (180:28): [True: 18.3k, False: 2.33k]
  ------------------
  181|  18.3k|    {
  182|       |        /* the first digits are already in. Add some 0s and call it a day. */
  183|       |        /* the max_exp is a personal choice. Only 16 digits could possibly be relevant.
  184|       |         * Basically we want to print 12340000000 rather than 1234.0e7 or 1.234e10 */
  185|   145k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 126k, False: 18.3k]
  ------------------
  186|   126k|        {
  187|   126k|            result.push_back(buffer[i]);
  188|   126k|        }
  189|  43.4k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 25.1k, False: 18.3k]
  ------------------
  190|  25.1k|        {
  191|  25.1k|            result.push_back('0');
  192|  25.1k|        }
  193|  18.3k|        result.push_back('.');
  194|  18.3k|        result.push_back('0');
  195|  18.3k|    } 
  196|  37.3k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 16.6k, False: 20.7k]
  |  Branch (196:24): [True: 14.3k, False: 2.33k]
  ------------------
  197|  14.3k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  67.4k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 53.1k, False: 14.3k]
  ------------------
  200|  53.1k|        {
  201|  53.1k|            result.push_back(buffer[i]);
  202|  53.1k|        }
  203|  14.3k|        result.push_back('.');
  204|   162k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 148k, False: 14.3k]
  ------------------
  205|   148k|        {
  206|   148k|            result.push_back(buffer[i]);
  207|   148k|        }
  208|  14.3k|    } 
  209|  23.0k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 4.17k, False: 18.8k]
  |  Branch (209:30): [True: 1.84k, False: 2.33k]
  ------------------
  210|  1.84k|    {
  211|  1.84k|        offset = 2 - kk;
  212|       |
  213|  1.84k|        result.push_back('0');
  214|  1.84k|        result.push_back('.');
  215|  5.14k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 3.30k, False: 1.84k]
  ------------------
  216|  3.30k|            result.push_back('0');
  217|  29.8k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 28.0k, False: 1.84k]
  ------------------
  218|  28.0k|        {
  219|  28.0k|            result.push_back(buffer[i]);
  220|  28.0k|        }
  221|  1.84k|    } 
  222|  21.1k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 2.88k, False: 18.3k]
  ------------------
  223|  2.88k|    {
  224|  2.88k|        result.push_back(buffer[0]);
  225|  2.88k|        result.push_back('e');
  226|  2.88k|        fill_exponent(kk - 1, result);
  227|  2.88k|    } 
  228|  18.3k|    else
  229|  18.3k|    {
  230|  18.3k|        result.push_back(buffer[0]);
  231|  18.3k|        result.push_back('.');
  232|   251k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 233k, False: 18.3k]
  ------------------
  233|   233k|        {
  234|   233k|            result.push_back(buffer[i]);
  235|   233k|        }
  236|  18.3k|        result.push_back('e');
  237|  18.3k|        fill_exponent(kk - 1, result);
  238|  18.3k|    }
  239|  55.7k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  21.1k|{
  137|  21.1k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 18.8k, False: 2.33k]
  ------------------
  138|  18.8k|    {
  139|  18.8k|        result.push_back('-');
  140|  18.8k|        K = -K;
  141|  18.8k|    }
  142|  2.33k|    else
  143|  2.33k|    {
  144|  2.33k|        result.push_back('+'); // compatibility with sprintf
  145|  2.33k|    }
  146|       |
  147|  21.1k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 947, False: 20.2k]
  ------------------
  148|    947|    {
  149|    947|        result.push_back('0'); // compatibility with sprintf
  150|    947|        result.push_back((char)('0' + K));
  151|    947|    }
  152|  20.2k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 9.62k, False: 10.6k]
  ------------------
  153|  9.62k|    {
  154|  9.62k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  9.62k|        result.push_back((char)('0' + K));
  156|  9.62k|    }
  157|  10.6k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 10.6k, False: 0]
  ------------------
  158|  10.6k|    {
  159|  10.6k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  10.6k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  10.6k|        result.push_back((char)('0' + K));
  162|  10.6k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  21.1k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  63.9k|{
  476|  63.9k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  63.9k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  63.9k|{
  367|  63.9k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 3.11k, False: 60.8k]
  ------------------
  368|  3.11k|    {
  369|  3.11k|        result.push_back('0');
  370|  3.11k|        result.push_back('.');
  371|  3.11k|        result.push_back('0');
  372|  3.11k|        return true;
  373|  3.11k|    }
  374|       |
  375|  60.8k|    int length = 0;
  376|  60.8k|    int k;
  377|       |
  378|  60.8k|    char buffer[100];
  379|       |
  380|  60.8k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 42.6k, False: 18.2k]
  ------------------
  381|  60.8k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 55.7k, False: 5.08k]
  ------------------
  382|  55.7k|    {
  383|  55.7k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 39.4k, False: 16.3k]
  ------------------
  384|  39.4k|        {
  385|  39.4k|            result.push_back('-');
  386|  39.4k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  55.7k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  55.7k|        return true;
  391|  55.7k|    }
  392|  5.08k|    else
  393|  5.08k|    {
  394|  5.08k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  5.08k|    }
  396|  60.8k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  5.08k|{
  330|  5.08k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 5.08k]
  ------------------
  331|      0|    {
  332|      0|        result.push_back('0');
  333|      0|        result.push_back('.');
  334|      0|        result.push_back('0');
  335|      0|        return true;
  336|      0|    }
  337|       |
  338|  5.08k|    char buffer[100];
  339|  5.08k|    int precision = std::numeric_limits<double>::digits10;
  340|  5.08k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  5.08k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 5.08k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  5.08k|    double x{0};
  346|  5.08k|    auto res = decstr_to_double(buffer, length, x);
  347|  5.08k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 5.08k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  5.08k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 4.45k, False: 635]
  ------------------
  352|  4.45k|    {
  353|  4.45k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  4.45k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  4.45k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 4.45k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  4.45k|    }
  360|  5.08k|    dump_buffer(buffer, length, decimal_point, result);
  361|  5.08k|    return true;
  362|  5.08k|}

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

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

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

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

