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

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

_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1011|   234k|        {
 1012|   234k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1012:17): [True: 30.6k, False: 203k]
  ------------------
 1013|  30.6k|            {
 1014|  30.6k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1014:21): [True: 28.8k, False: 1.73k]
  |  Branch (1014:73): [True: 26.3k, False: 2.49k]
  ------------------
 1015|  26.3k|                {
 1016|  26.3k|                    key_buffer_.push_back(',');
 1017|  26.3k|                }
 1018|  30.6k|                level_stack_.emplace_back(target_t::buffer, container_t::array);
 1019|  30.6k|                key_buffer_.push_back('[');
 1020|  30.6k|            }
 1021|   203k|            else
 1022|   203k|            {
 1023|   203k|                switch (level_stack_.back().target())
 1024|   203k|                {
 1025|   191k|                    case target_t::buffer:
  ------------------
  |  Branch (1025:21): [True: 191k, False: 11.6k]
  ------------------
 1026|   191k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1026:29): [True: 163k, False: 27.8k]
  |  Branch (1026:65): [True: 67.4k, False: 96.5k]
  ------------------
 1027|  67.4k|                        {
 1028|  67.4k|                            key_buffer_.push_back(',');
 1029|  67.4k|                        }
 1030|   191k|                        level_stack_.emplace_back(target_t::buffer, container_t::array);
 1031|   191k|                        key_buffer_.push_back('[');
 1032|   191k|                        break;
 1033|  11.6k|                    default:
  ------------------
  |  Branch (1033:21): [True: 11.6k, False: 191k]
  ------------------
 1034|  11.6k|                        level_stack_.emplace_back(target_t::destination, container_t::array);
 1035|  11.6k|                        destination_->begin_array(length, tag, context, ec);
 1036|  11.6k|                        break;
 1037|   203k|                }
 1038|   203k|            }
 1039|   234k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   234k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1040|   234k|        }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6is_keyEv:
  814|  77.6M|            {
  815|  77.6M|                return even_odd_ == 0;
  816|  77.6M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6targetEv:
  824|  44.0M|            {
  825|  44.0M|                return state_;
  826|  44.0M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level5countEv:
  829|  18.1M|            {
  830|  18.1M|                return count_;
  831|  18.1M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5levelC2ENS4_8target_tENS4_11container_tE:
  797|   516k|                : state_(state), type_(type), even_odd_(type == container_t::object ? 0 : 1)
  ------------------
  |  Branch (797:57): [True: 277k, False: 238k]
  ------------------
  798|   516k|            {
  799|   516k|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level9is_objectEv:
  819|  45.7M|            {
  820|  45.7M|                return type_ == container_t::object;
  821|  45.7M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1043|   213k|        {
 1044|   213k|            switch (level_stack_.back().target())
 1045|   213k|            {
 1046|   211k|                case target_t::buffer:
  ------------------
  |  Branch (1046:17): [True: 211k, False: 1.84k]
  ------------------
 1047|   211k|                    key_buffer_.push_back(']');
 1048|   211k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   211k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 211k]
  |  |  ------------------
  |  |   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|   211k|                    level_stack_.pop_back();
 1050|   211k|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (1050:25): [True: 1.16k, False: 210k]
  ------------------
 1051|  1.16k|                    {
 1052|  1.16k|                        destination_->key(key_buffer_, context, ec);
 1053|  1.16k|                        key_buffer_.clear();
 1054|  1.16k|                    }
 1055|   210k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1055:30): [True: 26.9k, False: 183k]
  ------------------
 1056|  26.9k|                    {
 1057|  26.9k|                        key_buffer_.push_back(':');
 1058|  26.9k|                    }
 1059|   211k|                    level_stack_.back().advance();
 1060|   211k|                    break;
 1061|  1.84k|                default:
  ------------------
  |  Branch (1061:17): [True: 1.84k, False: 211k]
  ------------------
 1062|  1.84k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  1.84k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 1.84k]
  |  |  ------------------
  |  |   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.84k|                    level_stack_.pop_back();
 1064|  1.84k|                    level_stack_.back().advance();
 1065|  1.84k|                    destination_->end_array(context, ec);
 1066|  1.84k|                    break;
 1067|   213k|            }
 1068|   213k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   213k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1069|   213k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level7advanceEv:
  802|  27.5M|            {
  803|  27.5M|                if (!is_key())
  ------------------
  |  Branch (803:21): [True: 19.2M, False: 8.34M]
  ------------------
  804|  19.2M|                {
  805|  19.2M|                    ++count_;
  806|  19.2M|                }
  807|  27.5M|                if (is_object())
  ------------------
  |  Branch (807:21): [True: 16.6M, False: 10.8M]
  ------------------
  808|  16.6M|                {
  809|  16.6M|                    even_odd_ = !even_odd_;
  810|  16.6M|                }
  811|  27.5M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1236|  8.06M|        {
 1237|  8.06M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1237:17): [True: 2.47M, False: 5.59M]
  |  Branch (1237:49): [True: 4.58M, False: 1.00M]
  ------------------
 1238|  7.05M|            {
 1239|  7.05M|                key_.clear();
 1240|  7.05M|                jsoncons::from_integer(value,key_);
 1241|  7.05M|            }
 1242|       |
 1243|  8.06M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1243:17): [True: 2.47M, False: 5.59M]
  ------------------
 1244|  2.47M|            {
 1245|  2.47M|                switch (level_stack_.back().target())
 1246|  2.47M|                {
 1247|  2.35M|                    case target_t::buffer:
  ------------------
  |  Branch (1247:21): [True: 2.35M, False: 118k]
  ------------------
 1248|  2.35M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1248:29): [True: 2.32M, False: 25.9k]
  ------------------
 1249|  2.32M|                        {
 1250|  2.32M|                            key_buffer_.push_back(',');
 1251|  2.32M|                        }
 1252|  2.35M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1253|  2.35M|                        key_buffer_.push_back(':');
 1254|  2.35M|                        break;
 1255|   118k|                    default:
  ------------------
  |  Branch (1255:21): [True: 118k, False: 2.35M]
  ------------------
 1256|   118k|                        destination_->key(key_, context, ec);
 1257|   118k|                        break;
 1258|  2.47M|                }
 1259|  2.47M|            }
 1260|  5.59M|            else
 1261|  5.59M|            {
 1262|  5.59M|                switch (level_stack_.back().target())
 1263|  5.59M|                {
 1264|  4.58M|                    case target_t::buffer:
  ------------------
  |  Branch (1264:21): [True: 4.58M, False: 1.00M]
  ------------------
 1265|  4.58M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1265:29): [True: 2.22M, False: 2.36M]
  |  Branch (1265:65): [True: 2.21M, False: 3.57k]
  ------------------
 1266|  2.21M|                        {
 1267|  2.21M|                            key_buffer_.push_back(',');
 1268|  2.21M|                        }
 1269|  4.58M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1270|  4.58M|                        break;
 1271|  1.00M|                    default:
  ------------------
  |  Branch (1271:21): [True: 1.00M, False: 4.58M]
  ------------------
 1272|  1.00M|                        destination_->uint64_value(value, tag, context, ec);
 1273|  1.00M|                        break;
 1274|  5.59M|                }
 1275|  5.59M|            }
 1276|       |
 1277|  8.06M|            level_stack_.back().advance();
 1278|  8.06M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  8.06M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1279|  8.06M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1282|  3.23M|        {
 1283|  3.23M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1283:17): [True: 829k, False: 2.40M]
  |  Branch (1283:49): [True: 2.39M, False: 5.42k]
  ------------------
 1284|  3.22M|            {
 1285|  3.22M|                key_.clear();
 1286|  3.22M|                jsoncons::from_integer(value,key_);
 1287|  3.22M|            }
 1288|       |
 1289|  3.23M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1289:17): [True: 829k, False: 2.40M]
  ------------------
 1290|   829k|            {
 1291|   829k|                switch (level_stack_.back().target())
 1292|   829k|                {
 1293|   824k|                    case target_t::buffer:
  ------------------
  |  Branch (1293:21): [True: 824k, False: 4.71k]
  ------------------
 1294|   824k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1294:29): [True: 821k, False: 3.86k]
  ------------------
 1295|   821k|                        {
 1296|   821k|                            key_buffer_.push_back(',');
 1297|   821k|                        }
 1298|   824k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1299|   824k|                        key_buffer_.push_back(':');
 1300|   824k|                        break;
 1301|  4.71k|                    default:
  ------------------
  |  Branch (1301:21): [True: 4.71k, False: 824k]
  ------------------
 1302|  4.71k|                        destination_->key(key_, context, ec);
 1303|  4.71k|                        break;
 1304|   829k|                }
 1305|   829k|            }
 1306|  2.40M|            else
 1307|  2.40M|            {
 1308|  2.40M|                switch (level_stack_.back().target())
 1309|  2.40M|                {
 1310|  2.39M|                    case target_t::buffer:
  ------------------
  |  Branch (1310:21): [True: 2.39M, False: 5.42k]
  ------------------
 1311|  2.39M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1311:29): [True: 1.55M, False: 844k]
  |  Branch (1311:65): [True: 1.54M, False: 4.28k]
  ------------------
 1312|  1.54M|                        {
 1313|  1.54M|                            key_buffer_.push_back(',');
 1314|  1.54M|                        }
 1315|  2.39M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1316|  2.39M|                        break;
 1317|  5.42k|                    default:
  ------------------
  |  Branch (1317:21): [True: 5.42k, False: 2.39M]
  ------------------
 1318|  5.42k|                        destination_->int64_value(value, tag, context, ec);
 1319|  5.42k|                        break;
 1320|  2.40M|                }
 1321|  2.40M|            }
 1322|       |
 1323|  3.23M|            level_stack_.back().advance();
 1324|  3.23M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  3.23M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1325|  3.23M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1377|  74.8k|        {
 1378|  74.8k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1378:17): [True: 21.8k, False: 53.0k]
  |  Branch (1378:49): [True: 52.2k, False: 815]
  ------------------
 1379|  74.0k|            {
 1380|  74.0k|                key_.clear();
 1381|  74.0k|                string_sink<string_type> sink(key_);
 1382|  74.0k|                jsoncons::write_double f{float_chars_format::general,0};
 1383|  74.0k|                f(value, sink);
 1384|  74.0k|            }
 1385|       |
 1386|  74.8k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1386:17): [True: 21.8k, False: 53.0k]
  ------------------
 1387|  21.8k|            {
 1388|  21.8k|                switch (level_stack_.back().target())
 1389|  21.8k|                {
 1390|  20.0k|                    case target_t::buffer:
  ------------------
  |  Branch (1390:21): [True: 20.0k, False: 1.73k]
  ------------------
 1391|  20.0k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1391:29): [True: 13.8k, False: 6.23k]
  ------------------
 1392|  13.8k|                        {
 1393|  13.8k|                            key_buffer_.push_back(',');
 1394|  13.8k|                        }
 1395|  20.0k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1396|  20.0k|                        key_buffer_.push_back(':');
 1397|  20.0k|                        break;
 1398|  1.73k|                    default:
  ------------------
  |  Branch (1398:21): [True: 1.73k, False: 20.0k]
  ------------------
 1399|  1.73k|                        destination_->key(key_, context, ec);
 1400|  1.73k|                        break;
 1401|  21.8k|                }
 1402|  21.8k|            }
 1403|  53.0k|            else
 1404|  53.0k|            {
 1405|  53.0k|                switch (level_stack_.back().target())
 1406|  53.0k|                {
 1407|  52.2k|                    case target_t::buffer:
  ------------------
  |  Branch (1407:21): [True: 52.2k, False: 815]
  ------------------
 1408|  52.2k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1408:29): [True: 37.2k, False: 14.9k]
  |  Branch (1408:65): [True: 32.9k, False: 4.37k]
  ------------------
 1409|  32.9k|                        {
 1410|  32.9k|                            key_buffer_.push_back(',');
 1411|  32.9k|                        }
 1412|  52.2k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1413|  52.2k|                        break;
 1414|    815|                    default:
  ------------------
  |  Branch (1414:21): [True: 815, False: 52.2k]
  ------------------
 1415|    815|                        destination_->double_value(value, tag, context, ec);
 1416|    815|                        break;
 1417|  53.0k|                }
 1418|  53.0k|            }
 1419|       |
 1420|  74.8k|            level_stack_.back().advance();
 1421|  74.8k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  74.8k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1422|  74.8k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  884|    961|        {
  885|    961|            destination_->flush();
  886|    961|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  917|   277k|        {
  918|   277k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (918:17): [True: 156k, False: 121k]
  ------------------
  919|   156k|            {
  920|   156k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (920:21): [True: 153k, False: 2.46k]
  |  Branch (920:73): [True: 68.9k, False: 84.8k]
  ------------------
  921|  68.9k|                {
  922|  68.9k|                    key_buffer_.push_back(',');
  923|  68.9k|                }
  924|   156k|                level_stack_.emplace_back(target_t::buffer, container_t::object);
  925|   156k|                key_buffer_.push_back('{');
  926|   156k|            }
  927|   121k|            else
  928|   121k|            {
  929|   121k|                switch (level_stack_.back().target())
  930|   121k|                {
  931|   114k|                    case target_t::buffer:
  ------------------
  |  Branch (931:21): [True: 114k, False: 7.22k]
  ------------------
  932|   114k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (932:29): [True: 33.1k, False: 81.0k]
  |  Branch (932:65): [True: 31.0k, False: 2.14k]
  ------------------
  933|  31.0k|                        {
  934|  31.0k|                            key_buffer_.push_back(',');
  935|  31.0k|                        }
  936|   114k|                        level_stack_.emplace_back(target_t::buffer, container_t::object);
  937|   114k|                        key_buffer_.push_back('{');
  938|   114k|                        break;
  939|  7.22k|                    default:
  ------------------
  |  Branch (939:21): [True: 7.22k, False: 114k]
  ------------------
  940|  7.22k|                        level_stack_.emplace_back(target_t::destination, container_t::object);
  941|  7.22k|                        destination_->begin_object(length, tag, context, ec);
  942|  7.22k|                        break;
  943|   121k|                }
  944|   121k|            }
  945|   277k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   277k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  946|   277k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  949|   255k|        {
  950|   255k|            switch (level_stack_.back().target())
  951|   255k|            {
  952|   253k|                case target_t::buffer:
  ------------------
  |  Branch (952:17): [True: 253k, False: 1.46k]
  ------------------
  953|   253k|                    key_buffer_.push_back('}');
  954|   253k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   253k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 253k]
  |  |  ------------------
  |  |   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|   253k|                    level_stack_.pop_back();
  956|       |                    
  957|   253k|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (957:25): [True: 1.53k, False: 252k]
  ------------------
  958|  1.53k|                    {
  959|  1.53k|                        destination_->key(key_buffer_,context, ec);
  960|  1.53k|                        key_buffer_.clear();
  961|  1.53k|                    }
  962|   252k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (962:30): [True: 146k, False: 106k]
  ------------------
  963|   146k|                    {
  964|   146k|                        key_buffer_.push_back(':');
  965|   146k|                    }
  966|   253k|                    level_stack_.back().advance();
  967|   253k|                    break;
  968|  1.46k|                default:
  ------------------
  |  Branch (968:17): [True: 1.46k, False: 253k]
  ------------------
  969|  1.46k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  1.46k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 1.46k]
  |  |  ------------------
  |  |   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|  1.46k|                    level_stack_.pop_back();
  971|  1.46k|                    level_stack_.back().advance();
  972|  1.46k|                    destination_->end_object(context, ec);
  973|  1.46k|                    break;
  974|   255k|            }
  975|   255k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   255k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  976|   255k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1478|  93.0k|        {
 1479|  93.0k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1479:17): [True: 30.0k, False: 62.9k]
  |  Branch (1479:49): [True: 62.2k, False: 727]
  ------------------
 1480|  92.3k|            {
 1481|  92.3k|                key_.clear(); 
 1482|  92.3k|                key_.insert(key_.begin(), null_constant.begin(), null_constant.end());
 1483|  92.3k|            }
 1484|       |
 1485|  93.0k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1485:17): [True: 30.0k, False: 62.9k]
  ------------------
 1486|  30.0k|            {
 1487|  30.0k|                switch (level_stack_.back().target())
 1488|  30.0k|                {
 1489|  29.3k|                    case target_t::buffer:
  ------------------
  |  Branch (1489:21): [True: 29.3k, False: 728]
  ------------------
 1490|  29.3k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1490:29): [True: 26.2k, False: 3.08k]
  ------------------
 1491|  26.2k|                        {
 1492|  26.2k|                            key_buffer_.push_back(',');
 1493|  26.2k|                        }
 1494|  29.3k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1495|  29.3k|                        key_buffer_.push_back(':');
 1496|  29.3k|                        break;
 1497|    728|                    default:
  ------------------
  |  Branch (1497:21): [True: 728, False: 29.3k]
  ------------------
 1498|    728|                        destination_->key(key_, context, ec);
 1499|    728|                        break;
 1500|  30.0k|                }
 1501|  30.0k|            }
 1502|  62.9k|            else
 1503|  62.9k|            {
 1504|  62.9k|                switch (level_stack_.back().target())
 1505|  62.9k|                {
 1506|  62.2k|                    case target_t::buffer:
  ------------------
  |  Branch (1506:21): [True: 62.2k, False: 727]
  ------------------
 1507|  62.2k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1507:29): [True: 35.2k, False: 26.9k]
  |  Branch (1507:65): [True: 34.4k, False: 789]
  ------------------
 1508|  34.4k|                        {
 1509|  34.4k|                            key_buffer_.push_back(',');
 1510|  34.4k|                        }
 1511|  62.2k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1512|  62.2k|                        break;
 1513|    727|                    default:
  ------------------
  |  Branch (1513:21): [True: 727, False: 62.2k]
  ------------------
 1514|    727|                        destination_->null_value(tag, context, ec);
 1515|    727|                        break;
 1516|  62.9k|                }
 1517|  62.9k|            }
 1518|       |
 1519|  93.0k|            level_stack_.back().advance();
 1520|  93.0k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  93.0k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1521|  93.0k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1425|  10.5M|        {
 1426|  10.5M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1426:17): [True: 3.20M, False: 7.37M]
  |  Branch (1426:49): [True: 7.36M, False: 14.4k]
  ------------------
 1427|  10.5M|            {
 1428|  10.5M|                key_.clear(); 
 1429|  10.5M|                if (value)
  ------------------
  |  Branch (1429:21): [True: 6.46M, False: 4.10M]
  ------------------
 1430|  6.46M|                {
 1431|  6.46M|                    key_.insert(key_.begin(), true_constant.begin(), true_constant.end());
 1432|  6.46M|                }
 1433|  4.10M|                else
 1434|  4.10M|                {
 1435|  4.10M|                    key_.insert(key_.begin(), false_constant.begin(), false_constant.end());
 1436|  4.10M|                }
 1437|  10.5M|            }
 1438|       |
 1439|  10.5M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1439:17): [True: 3.20M, False: 7.37M]
  ------------------
 1440|  3.20M|            {
 1441|  3.20M|                switch (level_stack_.back().target())
 1442|  3.20M|                {
 1443|  3.19M|                    case target_t::buffer:
  ------------------
  |  Branch (1443:21): [True: 3.19M, False: 12.1k]
  ------------------
 1444|  3.19M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1444:29): [True: 3.18M, False: 11.7k]
  ------------------
 1445|  3.18M|                        {
 1446|  3.18M|                            key_buffer_.push_back(',');
 1447|  3.18M|                        }
 1448|  3.19M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1449|  3.19M|                        key_buffer_.push_back(':');
 1450|  3.19M|                        break;
 1451|  12.1k|                    default:
  ------------------
  |  Branch (1451:21): [True: 12.1k, False: 3.19M]
  ------------------
 1452|  12.1k|                        destination_->key(key_, context, ec);
 1453|  12.1k|                        break;
 1454|  3.20M|                }
 1455|  3.20M|            }
 1456|  7.37M|            else
 1457|  7.37M|            {
 1458|  7.37M|                switch (level_stack_.back().target())
 1459|  7.37M|                {
 1460|  7.36M|                    case target_t::buffer:
  ------------------
  |  Branch (1460:21): [True: 7.36M, False: 14.4k]
  ------------------
 1461|  7.36M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1461:29): [True: 4.12M, False: 3.23M]
  |  Branch (1461:65): [True: 4.11M, False: 5.47k]
  ------------------
 1462|  4.11M|                        {
 1463|  4.11M|                            key_buffer_.push_back(',');
 1464|  4.11M|                        }
 1465|  7.36M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1466|  7.36M|                        break;
 1467|  14.4k|                    default:
  ------------------
  |  Branch (1467:21): [True: 14.4k, False: 7.36M]
  ------------------
 1468|  14.4k|                        destination_->bool_value(value, tag, context, ec);
 1469|  14.4k|                        break;
 1470|  7.37M|                }
 1471|  7.37M|            }
 1472|       |
 1473|  10.5M|            level_stack_.back().advance();
 1474|  10.5M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  10.5M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1475|  10.5M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1075|  4.99M|        {
 1076|  4.99M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1076:17): [True: 1.59M, False: 3.40M]
  ------------------
 1077|  1.59M|            {
 1078|  1.59M|                switch (level_stack_.back().target())
 1079|  1.59M|                {
 1080|  1.58M|                    case target_t::buffer:
  ------------------
  |  Branch (1080:21): [True: 1.58M, False: 4.21k]
  ------------------
 1081|  1.58M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1081:29): [True: 1.58M, False: 2.49k]
  ------------------
 1082|  1.58M|                        {
 1083|  1.58M|                            key_buffer_.push_back(',');
 1084|  1.58M|                        }
 1085|  1.58M|                        key_buffer_.push_back('\"');
 1086|  1.58M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1087|  1.58M|                        key_buffer_.push_back('\"');
 1088|  1.58M|                        key_buffer_.push_back(':');
 1089|  1.58M|                        break;
 1090|  4.21k|                    default:
  ------------------
  |  Branch (1090:21): [True: 4.21k, False: 1.58M]
  ------------------
 1091|  4.21k|                        destination_->key(value, context, ec);
 1092|  4.21k|                        break;
 1093|  1.59M|                }
 1094|  1.59M|            }
 1095|  3.40M|            else
 1096|  3.40M|            {
 1097|  3.40M|                switch (level_stack_.back().target())
 1098|  3.40M|                {
 1099|  3.40M|                    case target_t::buffer:
  ------------------
  |  Branch (1099:21): [True: 3.40M, False: 6.86k]
  ------------------
 1100|  3.40M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1100:29): [True: 1.81M, False: 1.58M]
  |  Branch (1100:65): [True: 1.81M, False: 841]
  ------------------
 1101|  1.81M|                        {
 1102|  1.81M|                            key_buffer_.push_back(',');
 1103|  1.81M|                        }
 1104|  3.40M|                        key_buffer_.push_back('\"');
 1105|  3.40M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1106|  3.40M|                        key_buffer_.push_back('\"');
 1107|  3.40M|                        break;
 1108|  6.86k|                    default:
  ------------------
  |  Branch (1108:21): [True: 6.86k, False: 3.40M]
  ------------------
 1109|  6.86k|                        destination_->string_value(value, tag, context, ec);
 1110|  6.86k|                        break;
 1111|  3.40M|                }
 1112|  3.40M|            }
 1113|       |
 1114|  4.99M|            level_stack_.back().advance();
 1115|  4.99M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  4.99M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1116|  4.99M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1122|  15.8k|        {
 1123|  15.8k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1123:17): [True: 5.83k, False: 10.0k]
  |  Branch (1123:49): [True: 9.24k, False: 805]
  ------------------
 1124|  15.0k|            {
 1125|  15.0k|                key_.clear();
 1126|  15.0k|                switch (tag)
 1127|  15.0k|                {
 1128|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1128:21): [True: 0, False: 15.0k]
  ------------------
 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: 15.0k]
  ------------------
 1132|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1133|      0|                        break;
 1134|  15.0k|                    default:
  ------------------
  |  Branch (1134:21): [True: 15.0k, False: 0]
  ------------------
 1135|  15.0k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1136|  15.0k|                        break;
 1137|  15.0k|                }
 1138|  15.0k|            }
 1139|       |
 1140|  15.8k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1140:17): [True: 5.83k, False: 10.0k]
  ------------------
 1141|  5.83k|            {
 1142|  5.83k|                switch (level_stack_.back().target())
 1143|  5.83k|                {
 1144|  5.18k|                    case target_t::buffer:
  ------------------
  |  Branch (1144:21): [True: 5.18k, False: 647]
  ------------------
 1145|  5.18k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1145:29): [True: 3.45k, False: 1.72k]
  ------------------
 1146|  3.45k|                        {
 1147|  3.45k|                            key_buffer_.push_back(',');
 1148|  3.45k|                        }
 1149|  5.18k|                        key_buffer_.push_back('\"');
 1150|  5.18k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1151|  5.18k|                        key_buffer_.push_back('\"');
 1152|  5.18k|                        key_buffer_.push_back(':');
 1153|  5.18k|                        break;
 1154|    647|                    default:
  ------------------
  |  Branch (1154:21): [True: 647, False: 5.18k]
  ------------------
 1155|    647|                        destination_->key(key_, context, ec);
 1156|    647|                        break;
 1157|  5.83k|                }
 1158|  5.83k|            }
 1159|  10.0k|            else
 1160|  10.0k|            {
 1161|  10.0k|                switch (level_stack_.back().target())
 1162|  10.0k|                {
 1163|  9.24k|                    case target_t::buffer:
  ------------------
  |  Branch (1163:21): [True: 9.24k, False: 805]
  ------------------
 1164|  9.24k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1164:29): [True: 3.99k, False: 5.25k]
  |  Branch (1164:65): [True: 3.06k, False: 928]
  ------------------
 1165|  3.06k|                        {
 1166|  3.06k|                            key_buffer_.push_back(',');
 1167|  3.06k|                        }
 1168|  9.24k|                        key_buffer_.push_back('\"');
 1169|  9.24k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1170|  9.24k|                        key_buffer_.push_back('\"');
 1171|  9.24k|                        break;
 1172|    805|                    default:
  ------------------
  |  Branch (1172:21): [True: 805, False: 9.24k]
  ------------------
 1173|    805|                        destination_->byte_string_value(value, tag, context, ec);
 1174|    805|                        break;
 1175|  10.0k|                }
 1176|  10.0k|            }
 1177|       |
 1178|  15.8k|            level_stack_.back().advance();
 1179|  15.8k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  15.8k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1180|  15.8k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1186|  22.4k|        {
 1187|  22.4k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1187:17): [True: 10.3k, False: 12.1k]
  |  Branch (1187:49): [True: 10.9k, False: 1.17k]
  ------------------
 1188|  21.2k|            {
 1189|  21.2k|                key_.clear();
 1190|  21.2k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1191|  21.2k|            }
 1192|       |
 1193|  22.4k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1193:17): [True: 10.3k, False: 12.1k]
  ------------------
 1194|  10.3k|            {
 1195|  10.3k|                switch (level_stack_.back().target())
 1196|  10.3k|                {
 1197|  9.36k|                    case target_t::buffer:
  ------------------
  |  Branch (1197:21): [True: 9.36k, False: 941]
  ------------------
 1198|  9.36k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1198:29): [True: 6.30k, False: 3.05k]
  ------------------
 1199|  6.30k|                        {
 1200|  6.30k|                            key_buffer_.push_back(',');
 1201|  6.30k|                        }
 1202|  9.36k|                        key_buffer_.push_back('\"');
 1203|  9.36k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1204|  9.36k|                        key_buffer_.push_back('\"');
 1205|  9.36k|                        key_buffer_.push_back(':');
 1206|  9.36k|                        break;
 1207|    941|                    default:
  ------------------
  |  Branch (1207:21): [True: 941, False: 9.36k]
  ------------------
 1208|    941|                        destination_->key(key_, context, ec);
 1209|    941|                        break;
 1210|  10.3k|                }
 1211|  10.3k|            }
 1212|  12.1k|            else
 1213|  12.1k|            {
 1214|  12.1k|                switch (level_stack_.back().target())
 1215|  12.1k|                {
 1216|  10.9k|                    case target_t::buffer:
  ------------------
  |  Branch (1216:21): [True: 10.9k, False: 1.17k]
  ------------------
 1217|  10.9k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1217:29): [True: 4.45k, False: 6.49k]
  |  Branch (1217:65): [True: 2.83k, False: 1.62k]
  ------------------
 1218|  2.83k|                        {
 1219|  2.83k|                            key_buffer_.push_back(',');
 1220|  2.83k|                        }
 1221|  10.9k|                        key_buffer_.push_back('\"');
 1222|  10.9k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1223|  10.9k|                        key_buffer_.push_back('\"');
 1224|  10.9k|                        break;
 1225|  1.17k|                    default:
  ------------------
  |  Branch (1225:21): [True: 1.17k, False: 10.9k]
  ------------------
 1226|  1.17k|                        destination_->byte_string_value(value, ext_tag, context, ec);
 1227|  1.17k|                        break;
 1228|  12.1k|                }
 1229|  12.1k|            }
 1230|       |
 1231|  22.4k|            level_stack_.back().advance();
 1232|  22.4k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  22.4k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1233|  22.4k|        }
_ZN8jsoncons24basic_item_event_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  293|   234k|        {
  294|   234k|            visit_begin_array(length, tag, context, ec);
  295|   234k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   234k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  296|   234k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  362|  8.06M|        {
  363|  8.06M|            visit_uint64(value, tag, context, ec);
  364|  8.06M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  8.06M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  365|  8.06M|        }
_ZN8jsoncons24basic_item_event_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  299|   213k|        {
  300|   213k|            visit_end_array(context, ec);
  301|   213k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   213k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  302|   213k|        }
_ZN8jsoncons24basic_item_event_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  371|  3.23M|        {
  372|  3.23M|            visit_int64(value, tag, context, ec);
  373|  3.23M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  3.23M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  374|  3.23M|        }
_ZN8jsoncons24basic_item_event_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  389|  74.8k|        {
  390|  74.8k|            visit_double(value, tag, context, ec);
  391|  74.8k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  74.8k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  392|  74.8k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  858|  4.84k|            : destination_(std::addressof(visitor)), 
  859|  4.84k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  860|  4.84k|        {
  861|  4.84k|            level_stack_.emplace_back(target_t::destination,container_t::root); // root
  862|  4.84k|        }
_ZN8jsoncons24basic_item_event_visitorIcEC2Ev:
   51|  4.84k|        basic_item_event_visitor() = default;
_ZN8jsoncons24basic_item_event_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  275|   277k|        {
  276|   277k|            visit_begin_object(length, tag, context, ec);
  277|   277k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   277k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  278|   277k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  331|  4.99M|        {
  332|  4.99M|            visit_string(value, tag, context, ec);
  333|  4.99M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  4.99M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  334|  4.99M|        }
_ZN8jsoncons24basic_item_event_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  313|  93.0k|        {
  314|  93.0k|            visit_null(tag, context, ec);
  315|  93.0k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  93.0k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  316|  93.0k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  322|  10.5M|        {
  323|  10.5M|            visit_bool(value, tag, context, ec);
  324|  10.5M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  10.5M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  325|  10.5M|        }
_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.8k|        {
  343|  15.8k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  344|  15.8k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  15.8k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  345|  15.8k|        }
_ZN8jsoncons24basic_item_event_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  353|  22.4k|        {
  354|  22.4k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), ext_tag, context, ec);
  355|  22.4k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  22.4k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  356|  22.4k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  281|   255k|        {
  282|   255k|            visit_end_object(context, ec);
  283|   255k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   255k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  284|   255k|        }
_ZN8jsoncons24basic_item_event_visitorIcE5flushEv:
   56|    961|        {
   57|    961|            visit_flush();
   58|    961|        }

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

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

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

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

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  687|  97.1k|        : storage_(n, alloc)
  688|  97.1k|    {
  689|  97.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  354|  97.1k|        : word_allocator_type(alloc)
  355|  97.1k|    {
  356|  97.1k|        ::new (&inlined_) inlined_storage(n);
  357|  97.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  97.1k|            : is_allocated_(false),
  139|  97.1k|            is_negative_(false),
  140|  97.1k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 40.9k, False: 56.1k]
  ------------------
  141|  97.1k|        {
  142|  97.1k|            values_[0] = n;
  143|  97.1k|            values_[1] = 0;
  144|  97.1k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  937|  39.1k|    {
  938|  39.1k|        auto this_view = get_storage_view();
  939|  39.1k|        size_type len0 = this_view.size();
  940|  39.1k|        word_type dig = this_view[0];
  941|  39.1k|        word_type carry = 0;
  942|       |
  943|  39.1k|        resize(this_view.size() + 1);
  944|  39.1k|        this_view = get_storage_view();
  945|       |
  946|  39.1k|        size_type i = 0;
  947|  75.8k|        for (; i < len0; i++ )
  ------------------
  |  Branch (947:16): [True: 36.7k, False: 39.1k]
  ------------------
  948|  36.7k|        {
  949|  36.7k|            word_type hi;
  950|  36.7k|            word_type lo;
  951|  36.7k|            DDproduct( dig, y, hi, lo );
  952|  36.7k|            this_view[i] = lo + carry;
  953|  36.7k|            dig = this_view[i+1];
  954|  36.7k|            carry = hi + (this_view[i] < lo);
  955|  36.7k|        }
  956|  39.1k|        this_view[i] = carry;
  957|  39.1k|        reduce();
  958|  39.1k|        return *this;
  959|  39.1k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  712|   716k|    {
  713|   716k|        return storage_.get_storage_view();
  714|   716k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  514|  1.02M|    {
  515|  1.02M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (515:16): [True: 378k, False: 648k]
  ------------------
  516|   378k|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  517|  1.02M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  518|  1.02M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   64|  1.02M|            : data_(data), size_(size)
   65|  1.02M|        {
   66|  1.02M|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   84|  1.66M|        {
   85|  1.66M|            return size_;
   86|  1.66M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   69|   683k|        {
   70|   683k|            return data_[i];
   71|   683k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  829|   107k|    {
  830|   107k|        storage_.resize(new_length);
  831|   107k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  528|   221k|    {
  529|   221k|        size_type old_length = common_.size_;
  530|   221k|        reserve(new_length);
  531|   221k|        common_.size_ = new_length;
  532|       |
  533|   221k|        if (old_length < new_length)
  ------------------
  |  Branch (533:13): [True: 116k, False: 105k]
  ------------------
  534|   116k|        {
  535|   116k|            if (is_allocated())
  ------------------
  |  Branch (535:17): [True: 29.0k, False: 86.9k]
  ------------------
  536|  29.0k|            {
  537|  29.0k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  538|  29.0k|            }
  539|  86.9k|            else
  540|  86.9k|            {
  541|  86.9k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   45|  86.9k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 86.9k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  542|   216k|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (542:48): [True: 129k, False: 86.9k]
  ------------------
  543|   129k|                {
  544|   129k|                    inlined_.values_[i] = 0;
  545|   129k|                }
  546|  86.9k|            }
  547|   116k|        }
  548|   221k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  446|   221k|    {
  447|   221k|       if (capacity() < n)
  ------------------
  |  Branch (447:12): [True: 29.0k, False: 192k]
  ------------------
  448|  29.0k|       {
  449|  29.0k|           if (!is_allocated())
  ------------------
  |  Branch (449:16): [True: 29.0k, False: 0]
  ------------------
  450|  29.0k|           {
  451|  29.0k|               size_type size = inlined_.size_;
  452|  29.0k|               size_type is_neg = inlined_.is_negative_;
  453|  29.0k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  454|       |
  455|  29.0k|               ::new (&allocated_) allocated_storage();
  456|  29.0k|               allocated_.reserve(n, get_allocator());
  457|  29.0k|               allocated_.size_ = size;
  458|  29.0k|               allocated_.is_negative_ = is_neg;
  459|  29.0k|               if (n >= 1)
  ------------------
  |  Branch (459:20): [True: 29.0k, False: 0]
  ------------------
  460|  29.0k|               {
  461|  29.0k|                   allocated_.data_[0] = values[0];
  462|  29.0k|               }
  463|  29.0k|               if (n >= 2)
  ------------------
  |  Branch (463:20): [True: 29.0k, False: 0]
  ------------------
  464|  29.0k|               {
  465|  29.0k|                   allocated_.data_[1] = values[1];
  466|  29.0k|               }
  467|  29.0k|           }
  468|      0|           else
  469|      0|           {
  470|      0|               allocated_.reserve(n, get_allocator());
  471|      0|           }
  472|  29.0k|       }
  473|   221k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  499|   221k|    {
  500|   221k|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (500:16): [True: 58.1k, False: 163k]
  ------------------
  501|   221k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  202|  29.0k|            : is_allocated_(true),
  203|  29.0k|            is_negative_(false)
  204|  29.0k|        {
  205|  29.0k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  254|  29.0k|        {
  255|  29.0k|            size_type capacity_new = round_up(n);
  256|       |
  257|  29.0k|            real_allocator_type alloc(a);
  258|  29.0k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  259|  29.0k|            if (size_ > 0)
  ------------------
  |  Branch (259:17): [True: 0, False: 29.0k]
  ------------------
  260|      0|            {
  261|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  262|      0|            }
  263|  29.0k|            if (data_ != nullptr)
  ------------------
  |  Branch (263:17): [True: 0, False: 29.0k]
  ------------------
  264|      0|            {
  265|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  266|      0|            }
  267|  29.0k|            capacity_ = capacity_new;
  268|  29.0k|            data_ = data_new;
  269|  29.0k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  273|  29.0k|        {
  274|  29.0k|            std::size_t remainder = i % mem_unit;
  275|       |
  276|  29.0k|            std::size_t x = (std::numeric_limits<size_type>::max)() - (mem_unit - remainder);
  277|  29.0k|            if (i > x)
  ------------------
  |  Branch (277:17): [True: 0, False: 29.0k]
  ------------------
  278|      0|            {
  279|      0|                return (std::numeric_limits<size_type>::max)();
  280|      0|            }
  281|       |
  282|  29.0k|            return i + (mem_unit - remainder);
  283|  29.0k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  476|   528k|    {
  477|   528k|        return static_cast<const word_allocator_type&>(*this);
  478|   528k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  494|  1.09M|    {
  495|  1.09M|        return common_.is_allocated_;
  496|  1.09M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1718|  66.5k|    {
 1719|  66.5k|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1720|  66.5k|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1721|       |
 1722|  66.5k|        lo = loA * loB;
 1723|  66.5k|        hi = hiA * hiB;
 1724|  66.5k|        word_type mid1 = loA * hiB;
 1725|  66.5k|        word_type mid2 = hiA * loB;
 1726|  66.5k|        word_type old = lo;
 1727|  66.5k|        lo += mid1 << word_type_half_bits;
 1728|  66.5k|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1729|  66.5k|        old = lo;
 1730|  66.5k|        lo += mid2 << word_type_half_bits;
 1731|  66.5k|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1732|  66.5k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1854|   197k|    {
 1855|   197k|        storage_.reduce();
 1856|   197k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  423|   197k|    {
  424|   197k|        if (common_.size_ > 0)
  ------------------
  |  Branch (424:13): [True: 197k, False: 0]
  ------------------
  425|   197k|        {
  426|   197k|            auto this_view = get_storage_view();
  427|   197k|            word_type* p = this_view.end() - 1;
  428|   197k|            word_type* first = this_view.begin();
  429|   275k|            while ( p >= first )
  ------------------
  |  Branch (429:21): [True: 271k, False: 4.09k]
  ------------------
  430|   271k|            {
  431|   271k|                if ( *p )
  ------------------
  |  Branch (431:22): [True: 193k, False: 78.4k]
  ------------------
  432|   193k|                {
  433|   193k|                    break;
  434|   193k|                }
  435|  78.4k|                --common_.size_;
  436|  78.4k|                --p;
  437|  78.4k|            }
  438|   197k|        }
  439|   197k|        if (common_.size_ == 0)
  ------------------
  |  Branch (439:13): [True: 4.09k, False: 193k]
  ------------------
  440|  4.09k|        {
  441|  4.09k|            common_.is_negative_ = false;
  442|  4.09k|        }
  443|   197k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   93|   197k|        {
   94|   197k|            return data_ + size_;
   95|   197k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   88|   197k|        {
   89|   197k|            return data_;
   90|   197k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  859|  39.1k|    {
  860|  39.1k|        auto y_view = y.get_storage_view();
  861|       |        
  862|  39.1k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (862:14): [True: 0, False: 39.1k]
  ------------------
  863|      0|            return *this -= -y;
  864|  39.1k|        word_type d;
  865|  39.1k|        word_type carry = 0;
  866|       |
  867|  39.1k|        auto this_view = get_storage_view();
  868|  39.1k|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  869|  39.1k|        this_view = get_storage_view();
  870|       |
  871|  91.0k|        for (size_type i = 0; i < this_view.size(); i++ )
  ------------------
  |  Branch (871:31): [True: 90.3k, False: 653]
  ------------------
  872|  90.3k|        {
  873|  90.3k|            if ( i >= y_view.size() && carry == 0 )
  ------------------
  |  Branch (873:18): [True: 54.8k, False: 35.5k]
  |  Branch (873:40): [True: 38.4k, False: 16.4k]
  ------------------
  874|  38.4k|                break;
  875|  51.9k|            d = this_view[i] + carry;
  876|  51.9k|            carry = d < carry;
  877|  51.9k|            if ( i < y_view.size())
  ------------------
  |  Branch (877:18): [True: 35.5k, False: 16.4k]
  ------------------
  878|  35.5k|            {
  879|  35.5k|                this_view[i] = d + y_view[i];
  880|  35.5k|                if (this_view[i] < d)
  ------------------
  |  Branch (880:21): [True: 16.4k, False: 19.1k]
  ------------------
  881|  16.4k|                    carry = 1;
  882|  35.5k|            }
  883|  16.4k|            else
  884|  16.4k|            {
  885|  16.4k|                this_view[i] = d;
  886|  16.4k|            }
  887|  51.9k|        }
  888|  39.1k|        reduce();
  889|  39.1k|        return *this;
  890|  39.1k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  717|   289k|    {
  718|   289k|        return storage_.get_storage_view();
  719|   289k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  521|   402k|    {
  522|   402k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (522:16): [True: 145k, False: 257k]
  ------------------
  523|   145k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  524|   402k|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  525|   402k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   64|   402k|            : data_(data), size_(size)
   65|   402k|        {
   66|   402k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  722|   672k|    {
  723|   672k|        return storage_.is_negative();
  724|   672k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  504|   672k|    {
  505|   672k|        return common_.is_negative_;
  506|   672k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  846|  8.20k|    {
  847|  8.20k|        basic_bigint<Allocator> v(*this);
  848|  8.20k|        v.set_negative(!v.is_negative());
  849|  8.20k|        return v;
  850|  8.20k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  665|  47.3k|        : storage_(other.storage_)
  666|  47.3k|    {
  667|  47.3k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  300|  47.3k|        : word_allocator_type(other.get_allocator())
  301|  47.3k|    {
  302|  47.3k|        if (!other.is_allocated())
  ------------------
  |  Branch (302:13): [True: 18.2k, False: 29.0k]
  ------------------
  303|  18.2k|        {
  304|  18.2k|            ::new (&inlined_) inlined_storage(other.inlined_);
  305|  18.2k|        }
  306|  29.0k|        else
  307|  29.0k|        {
  308|  29.0k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  309|  29.0k|        }
  310|  47.3k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  178|   133k|            : is_allocated_(false),
  179|   133k|            is_negative_(stor.is_negative_),
  180|   133k|            size_(stor.size_)
  181|   133k|        {
  182|   133k|            values_[0] = stor.values_[0];
  183|   133k|            values_[1] = stor.values_[1];
  184|   133k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  208|   116k|            : is_allocated_(true),
  209|   116k|              is_negative_(stor.is_negative_),
  210|   116k|              size_(stor.size_),
  211|   116k|              capacity_(stor.capacity_)
  212|   116k|        {
  213|   116k|            real_allocator_type alloc(a);
  214|       |
  215|   116k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  216|   116k|            JSONCONS_TRY
  ------------------
  |  |   37|   116k|    #define JSONCONS_TRY try
  ------------------
  217|   116k|            {
  218|   116k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  219|   116k|            }
  220|   116k|            JSONCONS_CATCH(...)
  221|   116k|            {
  222|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  223|      0|                data_ = nullptr;
  224|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  225|      0|            }
  226|   116k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   45|   116k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 116k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  227|   116k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  228|   116k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  727|   294k|    {
  728|   294k|        storage_.set_negative(value);
  729|   294k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  509|   294k|    {
  510|   294k|        common_.is_negative_ = value;
  511|   294k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   84|  1.01M|        {
   85|  1.01M|            return size_;
   86|  1.01M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   69|   195k|        {
   70|   195k|            return data_[i];
   71|   195k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  702|   481k|    {
  703|   481k|        storage_.destroy();
  704|   481k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  481|   481k|    {
  482|   481k|        if (is_allocated())
  ------------------
  |  Branch (482:13): [True: 145k, False: 336k]
  ------------------
  483|   145k|        {
  484|   145k|            allocated_.destroy(get_allocator());
  485|   145k|            allocated_.~allocated_storage();
  486|   145k|        }
  487|   336k|        else
  488|   336k|        {
  489|   336k|            inlined_.~inlined_storage();
  490|   336k|        }
  491|   481k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  245|   145k|        {
  246|   145k|            if (data_ != nullptr)
  ------------------
  |  Branch (246:17): [True: 145k, False: 0]
  ------------------
  247|   145k|            {
  248|   145k|                real_allocator_type alloc(a);
  249|   145k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  250|   145k|            }
  251|   145k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12write_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1297|  39.1k|    {
 1298|  39.1k|        basic_bigint<Allocator> v(*this);
 1299|  39.1k|        auto v_view = v.get_storage_view();
 1300|       |
 1301|  39.1k|        size_type len = (v_view.size() * word_type_bits / 3) + 2;
 1302|  39.1k|        data.reserve(len);
 1303|       |
 1304|  39.1k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1304:14): [True: 1.53k, False: 37.5k]
  ------------------
 1305|  1.53k|        {
 1306|  1.53k|            data.push_back('0');
 1307|  1.53k|        }
 1308|  37.5k|        else
 1309|  37.5k|        {
 1310|  37.5k|            word_type r;
 1311|  37.5k|            basic_bigint<Allocator> R(get_allocator());
 1312|  37.5k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1313|       |
 1314|  37.5k|            do
 1315|  71.6k|            {
 1316|  71.6k|                v.divide( LP10, v, R, true );
 1317|  71.6k|                v_view = v.get_storage_view();
 1318|       |
 1319|  71.6k|                auto R_view = R.get_storage_view();
 1320|  71.6k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1320:22): [True: 70.9k, False: 609]
  ------------------
 1321|   953k|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1321:38): [True: 919k, False: 34.0k]
  ------------------
 1322|   919k|                {
 1323|   919k|                    data.push_back(char(r % 10u + '0'));
 1324|   919k|                    r /= 10u;
 1325|   919k|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1325:26): [True: 37.5k, False: 881k]
  ------------------
 1326|  37.5k|                        break;
 1327|   919k|                }
 1328|  71.6k|            } 
 1329|  71.6k|            while ( v_view.size() > 0);
  ------------------
  |  Branch (1329:21): [True: 34.0k, False: 37.5k]
  ------------------
 1330|       |
 1331|  37.5k|            if (is_negative())
  ------------------
  |  Branch (1331:17): [True: 8.20k, False: 29.3k]
  ------------------
 1332|  8.20k|            {
 1333|  8.20k|                data.push_back('-');
 1334|  8.20k|            }
 1335|  37.5k|            std::reverse(data.begin(),data.end());
 1336|  37.5k|        }
 1337|  39.1k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  707|   277k|    {
  708|   277k|        return storage_.get_allocator();
  709|   277k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  638|  37.5k|        : storage_(alloc)
  639|  37.5k|    {
  640|  37.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  294|  37.5k|        : word_allocator_type(alloc)
  295|  37.5k|    {
  296|  37.5k|        ::new (&inlined_) inlined_storage();
  297|  37.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  113|  37.5k|            : is_allocated_(false),
  114|  37.5k|            is_negative_(false),
  115|  37.5k|            size_(0),
  116|  37.5k|            values_{0, 0}
  117|  37.5k|        {
  118|  37.5k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1612|  71.6k|    {
 1613|  71.6k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1614|  71.6k|        auto denom_view = denom.get_storage_view();
 1615|       |
 1616|  71.6k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1616:13): [True: 0, False: 71.6k]
  ------------------
 1617|      0|        {
 1618|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1619|      0|        }
 1620|  71.6k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1621|  71.6k|        bool rem_neg = is_negative();
 1622|  71.6k|        basic_bigint<Allocator> num(*this, get_allocator());
 1623|  71.6k|        num.set_negative(false);
 1624|  71.6k|        denom.set_negative(false);
 1625|  71.6k|        if ( num < denom )
  ------------------
  |  Branch (1625:14): [True: 37.5k, False: 34.0k]
  ------------------
 1626|  37.5k|        {
 1627|  37.5k|            quot = word_type(0);
 1628|  37.5k|            quot.set_negative(quot_neg);
 1629|  37.5k|            rem = num;
 1630|  37.5k|            rem.set_negative(rem_neg);
 1631|  37.5k|            return;
 1632|  37.5k|        }
 1633|       |
 1634|  34.0k|        auto num_view = num.get_storage_view();
 1635|  34.0k|        auto quot_view = quot.get_storage_view();
 1636|  34.0k|        auto this_view = get_storage_view();
 1637|       |
 1638|  34.0k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1638:14): [True: 34.0k, False: 0]
  |  Branch (1638:40): [True: 4.29k, False: 29.7k]
  ------------------
 1639|  4.29k|        {
 1640|  4.29k|            quot = word_type( num_view[0]/denom_view[0] );
 1641|  4.29k|            rem = word_type( num_view[0]%denom_view[0] );
 1642|  4.29k|            quot.set_negative(quot_neg);
 1643|  4.29k|            rem.set_negative(rem_neg);
 1644|  4.29k|            return;
 1645|  4.29k|        }
 1646|  29.7k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1646:13): [True: 29.7k, False: 0]
  |  Branch (1646:39): [True: 0, False: 29.7k]
  ------------------
 1647|      0|        {
 1648|       |            // Denominator fits into a half word
 1649|      0|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1650|      0|            quot.resize(this_view.size());
 1651|      0|            quot_view = quot.get_storage_view();
 1652|      0|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1652:48): [True: 0, False: 0]
  ------------------
 1653|      0|            {
 1654|      0|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1655|      0|                q1 = dividend/divisor;
 1656|      0|                r = dividend % divisor;
 1657|      0|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1658|      0|                q2 = dividend/divisor;
 1659|      0|                dHi = dividend % divisor;
 1660|      0|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1661|      0|            }
 1662|      0|            quot.reduce();
 1663|      0|            rem = dHi;
 1664|      0|            quot.set_negative(quot_neg);
 1665|      0|            rem.set_negative(rem_neg);
 1666|      0|            return;
 1667|      0|        }
 1668|  29.7k|        basic_bigint<Allocator> num0(num, get_allocator());
 1669|  29.7k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1670|  29.7k|        int x = 0;
 1671|  29.7k|        bool second_done = normalize(denom, num, x);
 1672|  29.7k|        denom_view = denom.get_storage_view();
 1673|  29.7k|        num_view = num.get_storage_view();
 1674|       |
 1675|  29.7k|        size_type l = denom_view.size() - 1;
 1676|  29.7k|        size_type n = num_view.size() - 1;
 1677|  29.7k|        quot.resize(n - l);
 1678|  29.7k|        quot_view = quot.get_storage_view();
 1679|  59.4k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1679:46): [True: 29.7k, False: 29.7k]
  ------------------
 1680|  29.7k|        {
 1681|  29.7k|            quot_view[i] = 0;
 1682|  29.7k|        }
 1683|  29.7k|        rem = num;
 1684|  29.7k|        auto rem_view = rem.get_storage_view();
 1685|  29.7k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1685:14): [True: 0, False: 29.7k]
  ------------------
 1686|      0|        {
 1687|      0|            rem.resize(rem_view.size() + 1);
 1688|      0|            rem_view = rem.get_storage_view();
 1689|      0|            n++;
 1690|      0|            quot.resize(quot_view.size() + 1);
 1691|      0|            quot_view = quot.get_storage_view();
 1692|      0|        }
 1693|  29.7k|        word_type d = denom_view[l];
 1694|       |
 1695|  59.4k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1695:32): [True: 29.7k, False: 29.7k]
  ------------------
 1696|  29.7k|        {
 1697|  29.7k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1698|  29.7k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1699|  29.7k|            quot_view[k - l - 1] = q;
 1700|  29.7k|        }
 1701|  29.7k|        quot.reduce();
 1702|  29.7k|        quot.set_negative(quot_neg);
 1703|  29.7k|        if (remDesired)
  ------------------
  |  Branch (1703:13): [True: 29.7k, False: 0]
  ------------------
 1704|  29.7k|        {
 1705|  29.7k|            unnormalize(rem, x, second_done);
 1706|  29.7k|            rem.set_negative(rem_neg);
 1707|  29.7k|        }
 1708|  29.7k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  670|   202k|        : storage_(other.storage_, alloc)
  671|   202k|    {
  672|   202k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  313|   202k|        : word_allocator_type(alloc)
  314|   202k|    {
  315|   202k|        if (!other.is_allocated())
  ------------------
  |  Branch (315:13): [True: 115k, False: 87.2k]
  ------------------
  316|   115k|        {
  317|   115k|            ::new (&inlined_) inlined_storage(other.inlined_);
  318|   115k|        }
  319|  87.2k|        else
  320|  87.2k|        {
  321|  87.2k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  322|  87.2k|        }
  323|   202k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1414|  71.6k|    {
 1415|  71.6k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1415:15): [True: 37.5k, False: 34.0k]
  ------------------
 1416|  71.6k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1579|   104k|    {
 1580|   104k|        auto this_view = get_storage_view();
 1581|   104k|        auto y_view = y.get_storage_view();
 1582|       |
 1583|   104k|        if ( this_view.size() == 0 && y_view.size() == 0 )
  ------------------
  |  Branch (1583:14): [True: 955, False: 103k]
  |  Branch (1583:39): [True: 955, False: 0]
  ------------------
 1584|    955|            return 0;
 1585|   103k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1585:14): [True: 8.20k, False: 94.8k]
  ------------------
 1586|  8.20k|            return y.is_negative() - is_negative();
 1587|  94.8k|        int code = 0;
 1588|  94.8k|        if ( this_view.size() < y_view.size())
  ------------------
  |  Branch (1588:14): [True: 0, False: 94.8k]
  ------------------
 1589|      0|            code = -1;
 1590|  94.8k|        else if ( this_view.size() > y_view.size())
  ------------------
  |  Branch (1590:19): [True: 52.9k, False: 41.8k]
  ------------------
 1591|  52.9k|            code = +1;
 1592|  41.8k|        else
 1593|  41.8k|        {
 1594|  42.2k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1594:50): [True: 41.8k, False: 393]
  ------------------
 1595|  41.8k|            {
 1596|  41.8k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1596:21): [True: 3.90k, False: 37.9k]
  ------------------
 1597|  3.90k|                {
 1598|  3.90k|                    code = 1;
 1599|  3.90k|                    break;
 1600|  3.90k|                }
 1601|  37.9k|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1601:26): [True: 37.5k, False: 393]
  ------------------
 1602|  37.5k|                {
 1603|  37.5k|                    code = -1;
 1604|  37.5k|                    break;
 1605|  37.5k|                }
 1606|  41.8k|            }
 1607|  41.8k|        }
 1608|  94.8k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1608:16): [True: 0, False: 94.8k]
  ------------------
 1609|   103k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  853|   113k|    {
  854|   113k|        storage_ = y.storage_;
  855|   113k|        return *this;
  856|   113k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  360|   113k|    {
  361|   113k|        if (this != &other)
  ------------------
  |  Branch (361:13): [True: 113k, False: 0]
  ------------------
  362|   113k|        {
  363|   113k|            auto other_view = other.get_storage_view();
  364|   113k|            resize(other_view.size());
  365|   113k|            auto this_view = get_storage_view();
  366|   113k|            if (other_view.size() > 0)
  ------------------
  |  Branch (366:17): [True: 75.5k, False: 37.9k]
  ------------------
  367|  75.5k|            {
  368|  75.5k|                common_.is_negative_ = other.common_.is_negative_;
  369|  75.5k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  370|  75.5k|            }
  371|   113k|        }
  372|   113k|        return *this;
  373|   113k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   79|  75.5k|        {
   80|  75.5k|            return data_;
   81|  75.5k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1809|  29.7k|    {
 1810|  29.7k|        auto denom_view = denom.get_storage_view();
 1811|  29.7k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1811:13): [True: 0, False: 29.7k]
  ------------------
 1812|      0|        {
 1813|      0|            return false;
 1814|      0|        }
 1815|  29.7k|        size_type r = denom_view.size() - 1;
 1816|  29.7k|        word_type y = denom_view[r];
 1817|       |
 1818|  29.7k|        x = 0;
 1819|  29.7k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1819:17): [True: 0, False: 29.7k]
  ------------------
 1820|      0|        {
 1821|      0|            y <<= 1;
 1822|      0|            x++;
 1823|      0|        }
 1824|  29.7k|        denom <<= x;
 1825|  29.7k|        num <<= x;
 1826|       |
 1827|  29.7k|        denom_view = denom.get_storage_view();
 1828|  29.7k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1828:14): [True: 0, False: 29.7k]
  |  Branch (1828:23): [True: 0, False: 0]
  ------------------
 1829|      0|        {
 1830|      0|            denom *= max_word;
 1831|      0|            num *= max_word;
 1832|      0|            return true;
 1833|      0|        }
 1834|  29.7k|        return false;
 1835|  29.7k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1055|  59.4k|    {
 1056|  59.4k|        auto this_view = get_storage_view();
 1057|  59.4k|        size_type q = k / word_type_bits;
 1058|  59.4k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1058:14): [True: 0, False: 59.4k]
  ------------------
 1059|      0|        {
 1060|      0|            resize(this_view.size() + q);
 1061|      0|            this_view = get_storage_view();
 1062|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1062:50): [True: 0, False: 0]
  ------------------
 1063|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1063:34): [True: 0, False: 0]
  ------------------
 1064|      0|            k %= word_type_bits;
 1065|      0|        }
 1066|  59.4k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1066:14): [True: 0, False: 59.4k]
  ------------------
 1067|      0|        {
 1068|      0|            size_type k1 = word_type_bits - k;
 1069|      0|            word_type mask = (word_type(1) << k) - word_type(1);
 1070|      0|            resize( this_view.size() + 1 );
 1071|      0|            this_view = get_storage_view();
 1072|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1072:50): [True: 0, False: 0]
  ------------------
 1073|      0|            {
 1074|      0|                this_view[i] <<= k;
 1075|      0|                if ( i > 0 )
  ------------------
  |  Branch (1075:22): [True: 0, False: 0]
  ------------------
 1076|      0|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1077|      0|            }
 1078|      0|        }
 1079|  59.4k|        reduce();
 1080|  59.4k|        return *this;
 1081|  59.4k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1736|  29.7k|    {
 1737|  29.7k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1738|  29.7k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1739|  29.7k|        qHi = A/(dHi + 1);
 1740|       |        // This initial guess of qHi may be too small.
 1741|  29.7k|        middle = qHi * dLo;
 1742|  29.7k|        left = qHi * dHi;
 1743|  29.7k|        x = B - (middle << word_type_half_bits);
 1744|  29.7k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1745|  29.7k|        B = x;
 1746|  29.7k|        dLo1 = dLo << word_type_half_bits;
 1747|       |        // Increase qHi if necessary:
 1748|  29.7k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1748:17): [True: 0, False: 29.7k]
  |  Branch (1748:29): [True: 0, False: 29.7k]
  |  Branch (1748:41): [True: 0, False: 0]
  ------------------
 1749|      0|        {
 1750|      0|            x = B - dLo1;
 1751|      0|            A -= dHi + (x > B);
 1752|      0|            B = x;
 1753|      0|            qHi++;
 1754|      0|        }
 1755|  29.7k|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1756|       |        // This initial guess of qLo may be too small.
 1757|  29.7k|        right = qLo * dLo;
 1758|  29.7k|        middle = qLo * dHi;
 1759|  29.7k|        x = B - right;
 1760|  29.7k|        A -= (x > B);
 1761|  29.7k|        B = x;
 1762|  29.7k|        x = B - (middle << word_type_half_bits);
 1763|  29.7k|            A -= (middle >> word_type_half_bits) + (x > B);
 1764|  29.7k|        B = x;
 1765|       |        // Increase qLo if necessary:
 1766|  32.0k|        while ( A || B >= d )
  ------------------
  |  Branch (1766:17): [True: 0, False: 32.0k]
  |  Branch (1766:22): [True: 2.31k, False: 29.7k]
  ------------------
 1767|  2.31k|        {
 1768|  2.31k|            x = B - d;
 1769|  2.31k|            A -= (x > B);
 1770|  2.31k|            B = x;
 1771|  2.31k|            qLo++;
 1772|  2.31k|        }
 1773|  29.7k|        return (qHi << word_type_half_bits) + qLo;
 1774|  29.7k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1778|  29.7k|    {
 1779|  29.7k|        word_type hi, lo, d, carry = 0;
 1780|  29.7k|        size_type i;
 1781|  59.4k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1781:22): [True: 29.7k, False: 29.7k]
  ------------------
 1782|  29.7k|        {
 1783|  29.7k|            DDproduct( b[i], q, hi, lo );
 1784|  29.7k|            d = a[i];
 1785|  29.7k|            a[i] -= lo;
 1786|  29.7k|            if ( a[i] > d )
  ------------------
  |  Branch (1786:18): [True: 20.9k, False: 8.74k]
  ------------------
 1787|  20.9k|                carry++;
 1788|  29.7k|            d = a[i + 1];
 1789|  29.7k|            a[i + 1] -= hi + carry;
 1790|  29.7k|            carry = a[i + 1] > d;
 1791|  29.7k|        }
 1792|  29.7k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1792:14): [True: 0, False: 29.7k]
  ------------------
 1793|      0|        {
 1794|      0|            q--;
 1795|      0|            carry = 0;
 1796|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1796:26): [True: 0, False: 0]
  ------------------
 1797|      0|            {
 1798|      0|                d = a[i] + carry;
 1799|      0|                carry = d < carry;
 1800|      0|                a[i] = d + b[i];
 1801|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1801:22): [True: 0, False: 0]
  ------------------
 1802|      0|                    carry = 1;
 1803|      0|            }
 1804|      0|            a[n] = 0;
 1805|      0|        }
 1806|  29.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   79|   134k|        {
   80|   134k|            return data_;
   81|   134k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1838|  29.7k|    {
 1839|  29.7k|        if (secondDone)
  ------------------
  |  Branch (1839:13): [True: 0, False: 29.7k]
  ------------------
 1840|      0|        {
 1841|      0|            rem /= max_word;
 1842|      0|        }
 1843|  29.7k|        if ( x > 0 )
  ------------------
  |  Branch (1843:14): [True: 0, False: 29.7k]
  ------------------
 1844|      0|        {
 1845|      0|            rem >>= x;
 1846|      0|        }
 1847|  29.7k|        else
 1848|  29.7k|        {
 1849|  29.7k|            rem.reduce();
 1850|  29.7k|        }
 1851|  29.7k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  687|  64.8k|        : storage_(n, alloc)
  688|  64.8k|    {
  689|  64.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  354|  64.8k|        : word_allocator_type(alloc)
  355|  64.8k|    {
  356|  64.8k|        ::new (&inlined_) inlined_storage(n);
  357|  64.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  64.8k|            : is_allocated_(false),
  126|  64.8k|            is_negative_(n < 0),
  127|  64.8k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 33.3k, False: 31.4k]
  ------------------
  128|  64.8k|        {
  129|  64.8k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 8.20k, False: 56.6k]
  ------------------
  130|  64.8k|            values_[1] = 0;
  131|  64.8k|        }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEEl:
 1419|  32.4k|    {
 1420|  32.4k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1420:15): [True: 8.20k, False: 24.2k]
  ------------------
 1421|  32.4k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IjEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  687|  32.4k|        : storage_(n, alloc)
  688|  32.4k|    {
  689|  32.4k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IjEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  354|  32.4k|        : word_allocator_type(alloc)
  355|  32.4k|    {
  356|  32.4k|        ::new (&inlined_) inlined_storage(n);
  357|  32.4k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IjEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  32.4k|            : is_allocated_(false),
  139|  32.4k|            is_negative_(false),
  140|  32.4k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 1.97k, False: 30.4k]
  ------------------
  141|  32.4k|        {
  142|  32.4k|            values_[0] = n;
  143|  32.4k|            values_[1] = 0;
  144|  32.4k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  893|  8.20k|    {
  894|  8.20k|        auto y_view = y.get_storage_view();
  895|       |
  896|  8.20k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (896:14): [True: 8.20k, False: 0]
  ------------------
  897|  8.20k|            return *this += -y;
  898|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (898:15): [True: 0, False: 0]
  |  Branch (898:33): [True: 0, False: 0]
  |  Branch (898:48): [True: 0, False: 0]
  |  Branch (898:65): [True: 0, False: 0]
  ------------------
  899|      0|            return *this = -(y - *this);
  900|      0|        word_type borrow = 0;
  901|      0|        word_type d;
  902|      0|        auto this_view = get_storage_view();
  903|      0|        for (size_type i = 0; i < this_view.size(); i++ )
  ------------------
  |  Branch (903:31): [True: 0, False: 0]
  ------------------
  904|      0|        {
  905|      0|            if ( i >= y_view.size() && borrow == 0 )
  ------------------
  |  Branch (905:18): [True: 0, False: 0]
  |  Branch (905:40): [True: 0, False: 0]
  ------------------
  906|      0|                break;
  907|      0|            d = this_view[i] - borrow;
  908|      0|            borrow = d > this_view[i];
  909|      0|            if ( i < y_view.size())
  ------------------
  |  Branch (909:18): [True: 0, False: 0]
  ------------------
  910|      0|            {
  911|      0|                this_view[i] = d - y_view[i];
  912|      0|                if ( this_view[i] > d )
  ------------------
  |  Branch (912:22): [True: 0, False: 0]
  ------------------
  913|      0|                    borrow = 1;
  914|      0|            }
  915|      0|            else 
  916|      0|            {
  917|      0|                this_view[i] = d;
  918|      0|            }
  919|      0|        }
  920|      0|        reduce();
  921|      0|        return *this;
  922|      0|    }

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

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

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

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

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14convert_resultIS4_EEE4typeEPKS4_m:
 1136|  4.96M|    {
 1137|  4.96M|        conv_errc  result = conv_errc();
 1138|  4.96M|        const CharT* last = data + length;
 1139|  5.94M|        while (data != last) 
  ------------------
  |  Branch (1139:16): [True: 982k, False: 4.96M]
  ------------------
 1140|   982k|        {
 1141|   982k|            std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[static_cast<uint8_t>(*data)]) + 1;
 1142|   982k|            if (len > (std::size_t)(last - data))
  ------------------
  |  Branch (1142:17): [True: 16, False: 982k]
  ------------------
 1143|     16|            {
 1144|     16|                return convert_result<CharT>{data, conv_errc::source_exhausted};
 1145|     16|            }
 1146|   982k|            if ((result=is_legal_utf8(data, len)) != conv_errc())
  ------------------
  |  Branch (1146:17): [True: 105, False: 982k]
  ------------------
 1147|    105|            {
 1148|    105|                return convert_result<CharT>{data,result} ;
 1149|    105|            }
 1150|   982k|            data += len;
 1151|   982k|        }
 1152|  4.96M|        return convert_result<CharT>{data,result} ;
 1153|  4.96M|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8IcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_9conv_errcEE4typeEPKS4_m:
  305|   982k|    {
  306|   982k|        uint8_t a;
  307|   982k|        const CharT* srcptr = first+length;
  308|   982k|        switch (length) {
  309|     11|        default:
  ------------------
  |  Branch (309:9): [True: 11, False: 982k]
  ------------------
  310|     11|            return conv_errc::over_long_utf8_sequence;
  311|    468|        case 4:
  ------------------
  |  Branch (311:9): [True: 468, False: 981k]
  ------------------
  312|    468|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (312:17): [True: 9, False: 459]
  ------------------
  313|      9|                return conv_errc::expected_continuation_byte;
  314|    459|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    459|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  315|    882|        case 3:
  ------------------
  |  Branch (315:9): [True: 423, False: 981k]
  ------------------
  316|    882|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (316:17): [True: 3, False: 879]
  ------------------
  317|      3|                return conv_errc::expected_continuation_byte;
  318|    879|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    879|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  319|  1.12k|        case 2:
  ------------------
  |  Branch (319:9): [True: 243, False: 981k]
  ------------------
  320|  1.12k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (320:17): [True: 24, False: 1.09k]
  ------------------
  321|     24|                return conv_errc::expected_continuation_byte;
  322|       |
  323|  1.09k|            switch (static_cast<uint8_t>(*first)) 
  324|  1.09k|            {
  325|       |                // no fall-through in this inner switch
  326|    204|                case 0xE0: if (a < 0xA0) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (326:17): [True: 204, False: 894]
  |  Branch (326:32): [True: 9, False: 195]
  ------------------
  327|    212|                case 0xED: if (a > 0x9F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (327:17): [True: 212, False: 886]
  |  Branch (327:32): [True: 5, False: 207]
  ------------------
  328|    207|                case 0xF0: if (a < 0x90) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 203, False: 895]
  |  Branch (328:32): [True: 5, False: 198]
  ------------------
  329|    241|                case 0xF4: if (a > 0x8F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 241, False: 857]
  |  Branch (329:32): [True: 6, False: 235]
  ------------------
  330|    238|                default:   if (a < 0x80) return conv_errc::source_illegal;
  ------------------
  |  Branch (330:17): [True: 238, False: 860]
  |  Branch (330:32): [True: 0, False: 238]
  ------------------
  331|  1.09k|            }
  332|       |
  333|  1.07k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.07k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  334|   982k|        case 1:
  ------------------
  |  Branch (334:9): [True: 981k, False: 1.14k]
  ------------------
  335|   982k|            if (static_cast<uint8_t>(*first) >= 0x80 && static_cast<uint8_t>(*first) < 0xC2)
  ------------------
  |  Branch (335:17): [True: 1.10k, False: 980k]
  |  Branch (335:57): [True: 32, False: 1.07k]
  ------------------
  336|     32|                return conv_errc::source_illegal;
  337|   982k|            break;
  338|   982k|        }
  339|   982k|        if (static_cast<uint8_t>(*first) > 0xF4) 
  ------------------
  |  Branch (339:13): [True: 1, False: 982k]
  ------------------
  340|      1|            return conv_errc::source_illegal;
  341|       |
  342|   982k|        return conv_errc();
  343|   982k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  7.05M|{
   43|  7.05M|    using char_type = typename Result::value_type;
   44|       |
   45|  7.05M|    char_type buf[255];
   46|  7.05M|    char_type *p = buf;
   47|  7.05M|    const char_type* last = buf+255;
   48|       |
   49|  7.05M|    bool is_negative = value < 0;
   50|       |
   51|  7.05M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 7.05M]
  ------------------
   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.05M|    else
   60|  7.05M|    {
   61|       |
   62|  7.05M|        do
   63|  13.7M|        {
   64|  13.7M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  13.7M|        }
   66|  13.7M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 6.72M, False: 7.05M]
  |  Branch (66:33): [True: 6.72M, False: 0]
  ------------------
   67|  7.05M|    }
   68|  7.05M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  7.05M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 7.05M]
  |  |  ------------------
  |  |   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.05M|    std::size_t count = (p - buf);
   71|  7.05M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 7.05M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  20.8M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 13.7M, False: 7.05M]
  ------------------
   77|  13.7M|    {
   78|  13.7M|        result.push_back(*p);
   79|  13.7M|    }
   80|       |
   81|  7.05M|    return count;
   82|  7.05M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  3.22M|{
   43|  3.22M|    using char_type = typename Result::value_type;
   44|       |
   45|  3.22M|    char_type buf[255];
   46|  3.22M|    char_type *p = buf;
   47|  3.22M|    const char_type* last = buf+255;
   48|       |
   49|  3.22M|    bool is_negative = value < 0;
   50|       |
   51|  3.22M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 3.22M, False: 3.09k]
  ------------------
   52|  3.22M|    {
   53|  3.22M|        do
   54|  3.41M|        {
   55|  3.41M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  3.41M|        }
   57|  3.41M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 197k, False: 3.22M]
  |  Branch (57:33): [True: 197k, False: 0]
  ------------------
   58|  3.22M|    }
   59|  3.09k|    else
   60|  3.09k|    {
   61|       |
   62|  3.09k|        do
   63|  27.9k|        {
   64|  27.9k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  27.9k|        }
   66|  27.9k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 24.8k, False: 3.09k]
  |  Branch (66:33): [True: 24.8k, False: 0]
  ------------------
   67|  3.09k|    }
   68|  3.22M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  3.22M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 3.22M]
  |  |  ------------------
  |  |   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.22M|    std::size_t count = (p - buf);
   71|  3.22M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 3.22M, False: 3.09k]
  ------------------
   72|  3.22M|    {
   73|  3.22M|        result.push_back('-');
   74|  3.22M|        ++count;
   75|  3.22M|    }
   76|  6.67M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 3.44M, False: 3.22M]
  ------------------
   77|  3.44M|    {
   78|  3.44M|        result.push_back(*p);
   79|  3.44M|    }
   80|       |
   81|  3.22M|    return count;
   82|  3.22M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  74.0k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  74.0k|    {
  489|  74.0k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  74.0k|        struct lconv *lc = localeconv();
  491|  74.0k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 74.0k, False: 0]
  |  Branch (491:30): [True: 74.0k, False: 0]
  ------------------
  492|  74.0k|        {
  493|  74.0k|            decimal_point_ = lc->decimal_point[0];
  494|  74.0k|        }
  495|  74.0k|#endif
  496|  74.0k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  74.0k|    {
  504|  74.0k|        std::size_t count = 0;
  505|       |
  506|  74.0k|        char number_buffer[200];
  507|  74.0k|        int length = 0;
  508|       |
  509|  74.0k|        switch (float_format_)
  510|  74.0k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 74.0k]
  ------------------
  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: 74.0k]
  ------------------
  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|  74.0k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 74.0k, False: 0]
  ------------------
  552|  74.0k|            {
  553|  74.0k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 74.0k]
  ------------------
  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|  74.0k|                else
  563|  74.0k|                {
  564|  74.0k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 74.0k]
  ------------------
  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|  74.0k|                }             
  569|  74.0k|                break;
  570|  74.0k|            }
  571|  74.0k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 74.0k]
  ------------------
  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|  74.0k|        }
  575|  74.0k|        return count;
  576|  74.0k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  4.41k|{
  244|  4.41k|    const char *sbeg = buffer;
  245|  4.41k|    const char *send = sbeg + length;
  246|       |
  247|  4.41k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 4.41k, False: 0]
  ------------------
  248|  4.41k|    {
  249|  4.41k|        bool needs_dot = true;
  250|  78.0k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 73.6k, False: 4.41k]
  ------------------
  251|  73.6k|        {
  252|  73.6k|            switch (*q)
  253|  73.6k|            {
  254|  3.45k|            case '-':
  ------------------
  |  Branch (254:13): [True: 3.45k, False: 70.1k]
  ------------------
  255|  10.6k|            case '0':
  ------------------
  |  Branch (255:13): [True: 7.17k, False: 66.4k]
  ------------------
  256|  19.1k|            case '1':
  ------------------
  |  Branch (256:13): [True: 8.52k, False: 65.1k]
  ------------------
  257|  26.3k|            case '2':
  ------------------
  |  Branch (257:13): [True: 7.23k, False: 66.3k]
  ------------------
  258|  31.6k|            case '3':
  ------------------
  |  Branch (258:13): [True: 5.22k, False: 68.3k]
  ------------------
  259|  35.5k|            case '4':
  ------------------
  |  Branch (259:13): [True: 3.92k, False: 69.7k]
  ------------------
  260|  42.1k|            case '5':
  ------------------
  |  Branch (260:13): [True: 6.62k, False: 67.0k]
  ------------------
  261|  49.4k|            case '6':
  ------------------
  |  Branch (261:13): [True: 7.29k, False: 66.3k]
  ------------------
  262|  54.2k|            case '7':
  ------------------
  |  Branch (262:13): [True: 4.79k, False: 68.8k]
  ------------------
  263|  60.5k|            case '8':
  ------------------
  |  Branch (263:13): [True: 6.25k, False: 67.3k]
  ------------------
  264|  64.5k|            case '9':
  ------------------
  |  Branch (264:13): [True: 4.03k, False: 69.5k]
  ------------------
  265|  65.5k|            case '+':
  ------------------
  |  Branch (265:13): [True: 1.05k, False: 72.5k]
  ------------------
  266|  65.5k|                result.push_back(*q);
  267|  65.5k|                break;
  268|  1.87k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 1.87k, False: 71.7k]
  ------------------
  269|  1.87k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 73.6k]
  ------------------
  270|  1.87k|                result.push_back('e');
  271|  1.87k|                needs_dot = false;
  272|  1.87k|                break;
  273|  6.16k|            default:
  ------------------
  |  Branch (273:13): [True: 6.16k, False: 67.4k]
  ------------------
  274|  6.16k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 3.33k, False: 2.82k]
  ------------------
  275|  3.33k|                {
  276|  3.33k|                    needs_dot = false;
  277|  3.33k|                    result.push_back('.');
  278|  3.33k|                }
  279|  6.16k|                break;
  280|  73.6k|            }
  281|  73.6k|        }
  282|  4.41k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 1.08k, False: 3.33k]
  ------------------
  283|  1.08k|        {
  284|  1.08k|            result.push_back('.');
  285|  1.08k|            result.push_back('0');
  286|  1.08k|        }
  287|  4.41k|    }
  288|  4.41k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmiiiRT_:
  171|  68.8k|{
  172|  68.8k|    int nb_digits = (int)length;
  173|  68.8k|    int offset;
  174|       |    /* v = buffer * 10^k
  175|       |       kk is such that 10^(kk-1) <= v < 10^kk
  176|       |       this way kk gives the position of the decimal point.
  177|       |    */
  178|  68.8k|    int kk = nb_digits + k;
  179|       |
  180|  68.8k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 30.6k, False: 38.2k]
  |  Branch (180:28): [True: 28.6k, False: 2.00k]
  ------------------
  181|  28.6k|    {
  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|   222k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 194k, False: 28.6k]
  ------------------
  186|   194k|        {
  187|   194k|            result.push_back(buffer[i]);
  188|   194k|        }
  189|  49.2k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 20.6k, False: 28.6k]
  ------------------
  190|  20.6k|        {
  191|  20.6k|            result.push_back('0');
  192|  20.6k|        }
  193|  28.6k|        result.push_back('.');
  194|  28.6k|        result.push_back('0');
  195|  28.6k|    } 
  196|  40.2k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 19.1k, False: 21.0k]
  |  Branch (196:24): [True: 17.1k, False: 2.00k]
  ------------------
  197|  17.1k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  81.3k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 64.1k, False: 17.1k]
  ------------------
  200|  64.1k|        {
  201|  64.1k|            result.push_back(buffer[i]);
  202|  64.1k|        }
  203|  17.1k|        result.push_back('.');
  204|   192k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 175k, False: 17.1k]
  ------------------
  205|   175k|        {
  206|   175k|            result.push_back(buffer[i]);
  207|   175k|        }
  208|  17.1k|    } 
  209|  23.0k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 4.20k, False: 18.8k]
  |  Branch (209:30): [True: 2.19k, False: 2.00k]
  ------------------
  210|  2.19k|    {
  211|  2.19k|        offset = 2 - kk;
  212|       |
  213|  2.19k|        result.push_back('0');
  214|  2.19k|        result.push_back('.');
  215|  5.36k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 3.16k, False: 2.19k]
  ------------------
  216|  3.16k|            result.push_back('0');
  217|  35.5k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 33.3k, False: 2.19k]
  ------------------
  218|  33.3k|        {
  219|  33.3k|            result.push_back(buffer[i]);
  220|  33.3k|        }
  221|  2.19k|    } 
  222|  20.8k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 3.06k, False: 17.8k]
  ------------------
  223|  3.06k|    {
  224|  3.06k|        result.push_back(buffer[0]);
  225|  3.06k|        result.push_back('e');
  226|  3.06k|        fill_exponent(kk - 1, result);
  227|  3.06k|    } 
  228|  17.8k|    else
  229|  17.8k|    {
  230|  17.8k|        result.push_back(buffer[0]);
  231|  17.8k|        result.push_back('.');
  232|   248k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 230k, False: 17.8k]
  ------------------
  233|   230k|        {
  234|   230k|            result.push_back(buffer[i]);
  235|   230k|        }
  236|  17.8k|        result.push_back('e');
  237|  17.8k|        fill_exponent(kk - 1, result);
  238|  17.8k|    }
  239|  68.8k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  20.8k|{
  137|  20.8k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 18.8k, False: 2.00k]
  ------------------
  138|  18.8k|    {
  139|  18.8k|        result.push_back('-');
  140|  18.8k|        K = -K;
  141|  18.8k|    }
  142|  2.00k|    else
  143|  2.00k|    {
  144|  2.00k|        result.push_back('+'); // compatibility with sprintf
  145|  2.00k|    }
  146|       |
  147|  20.8k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 1.04k, False: 19.8k]
  ------------------
  148|  1.04k|    {
  149|  1.04k|        result.push_back('0'); // compatibility with sprintf
  150|  1.04k|        result.push_back((char)('0' + K));
  151|  1.04k|    }
  152|  19.8k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 9.61k, False: 10.2k]
  ------------------
  153|  9.61k|    {
  154|  9.61k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  9.61k|        result.push_back((char)('0' + K));
  156|  9.61k|    }
  157|  10.2k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 10.2k, False: 0]
  ------------------
  158|  10.2k|    {
  159|  10.2k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  10.2k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  10.2k|        result.push_back((char)('0' + K));
  162|  10.2k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  20.8k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  74.0k|{
  476|  74.0k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  74.0k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  74.0k|{
  367|  74.0k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 753, False: 73.2k]
  ------------------
  368|    753|    {
  369|    753|        result.push_back('0');
  370|    753|        result.push_back('.');
  371|    753|        result.push_back('0');
  372|    753|        return true;
  373|    753|    }
  374|       |
  375|  73.2k|    int length = 0;
  376|  73.2k|    int k;
  377|       |
  378|  73.2k|    char buffer[100];
  379|       |
  380|  73.2k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 54.2k, False: 18.9k]
  ------------------
  381|  73.2k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 68.8k, False: 4.41k]
  ------------------
  382|  68.8k|    {
  383|  68.8k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 51.6k, False: 17.2k]
  ------------------
  384|  51.6k|        {
  385|  51.6k|            result.push_back('-');
  386|  51.6k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  68.8k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  68.8k|        return true;
  391|  68.8k|    }
  392|  4.41k|    else
  393|  4.41k|    {
  394|  4.41k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  4.41k|    }
  396|  73.2k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  4.41k|{
  330|  4.41k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 4.41k]
  ------------------
  331|      0|    {
  332|      0|        result.push_back('0');
  333|      0|        result.push_back('.');
  334|      0|        result.push_back('0');
  335|      0|        return true;
  336|      0|    }
  337|       |
  338|  4.41k|    char buffer[100];
  339|  4.41k|    int precision = std::numeric_limits<double>::digits10;
  340|  4.41k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  4.41k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 4.41k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  4.41k|    double x{0};
  346|  4.41k|    auto res = decstr_to_double(buffer, length, x);
  347|  4.41k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 4.41k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  4.41k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 3.67k, False: 736]
  ------------------
  352|  3.67k|    {
  353|  3.67k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  3.67k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  3.67k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 3.67k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  3.67k|    }
  360|  4.41k|    dump_buffer(buffer, length, decimal_point, result);
  361|  4.41k|    return true;
  362|  4.41k|}

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

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

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

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

