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

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

_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1011|   244k|        {
 1012|   244k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1012:17): [True: 49.4k, False: 195k]
  ------------------
 1013|  49.4k|            {
 1014|  49.4k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1014:21): [True: 47.3k, False: 2.11k]
  |  Branch (1014:73): [True: 43.9k, False: 3.40k]
  ------------------
 1015|  43.9k|                {
 1016|  43.9k|                    key_buffer_.push_back(',');
 1017|  43.9k|                }
 1018|  49.4k|                level_stack_.emplace_back(target_t::buffer, container_t::array);
 1019|  49.4k|                key_buffer_.push_back('[');
 1020|  49.4k|            }
 1021|   195k|            else
 1022|   195k|            {
 1023|   195k|                switch (level_stack_.back().target())
 1024|   195k|                {
 1025|   181k|                    case target_t::buffer:
  ------------------
  |  Branch (1025:21): [True: 181k, False: 14.1k]
  ------------------
 1026|   181k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1026:29): [True: 135k, False: 45.5k]
  |  Branch (1026:65): [True: 55.6k, False: 79.9k]
  ------------------
 1027|  55.6k|                        {
 1028|  55.6k|                            key_buffer_.push_back(',');
 1029|  55.6k|                        }
 1030|   181k|                        level_stack_.emplace_back(target_t::buffer, container_t::array);
 1031|   181k|                        key_buffer_.push_back('[');
 1032|   181k|                        break;
 1033|  14.1k|                    default:
  ------------------
  |  Branch (1033:21): [True: 14.1k, False: 181k]
  ------------------
 1034|  14.1k|                        level_stack_.emplace_back(target_t::destination, container_t::array);
 1035|  14.1k|                        destination_->begin_array(length, tag, context, ec);
 1036|  14.1k|                        break;
 1037|   195k|                }
 1038|   195k|            }
 1039|   244k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   244k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1040|   244k|        }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6is_keyEv:
  814|  79.3M|            {
  815|  79.3M|                return even_odd_ == 0;
  816|  79.3M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6targetEv:
  824|  44.5M|            {
  825|  44.5M|                return state_;
  826|  44.5M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level5countEv:
  829|  18.4M|            {
  830|  18.4M|                return count_;
  831|  18.4M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5levelC2ENS4_8target_tENS4_11container_tE:
  797|   491k|                : state_(state), type_(type), even_odd_(type == container_t::object ? 0 : 1)
  ------------------
  |  Branch (797:57): [True: 241k, False: 249k]
  ------------------
  798|   491k|            {
  799|   491k|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level9is_objectEv:
  819|  46.8M|            {
  820|  46.8M|                return type_ == container_t::object;
  821|  46.8M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1043|   221k|        {
 1044|   221k|            switch (level_stack_.back().target())
 1045|   221k|            {
 1046|   217k|                case target_t::buffer:
  ------------------
  |  Branch (1046:17): [True: 217k, False: 4.42k]
  ------------------
 1047|   217k|                    key_buffer_.push_back(']');
 1048|   217k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   217k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 217k]
  |  |  ------------------
  |  |   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|   217k|                    level_stack_.pop_back();
 1050|   217k|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (1050:25): [True: 1.54k, False: 215k]
  ------------------
 1051|  1.54k|                    {
 1052|  1.54k|                        destination_->key(key_buffer_, context, ec);
 1053|  1.54k|                        key_buffer_.clear();
 1054|  1.54k|                    }
 1055|   215k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1055:30): [True: 44.8k, False: 171k]
  ------------------
 1056|  44.8k|                    {
 1057|  44.8k|                        key_buffer_.push_back(':');
 1058|  44.8k|                    }
 1059|   217k|                    level_stack_.back().advance();
 1060|   217k|                    break;
 1061|  4.42k|                default:
  ------------------
  |  Branch (1061:17): [True: 4.42k, False: 217k]
  ------------------
 1062|  4.42k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  4.42k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 4.42k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1063|  4.42k|                    level_stack_.pop_back();
 1064|  4.42k|                    level_stack_.back().advance();
 1065|  4.42k|                    destination_->end_array(context, ec);
 1066|  4.42k|                    break;
 1067|   221k|            }
 1068|   221k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   221k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1069|   221k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level7advanceEv:
  802|  28.3M|            {
  803|  28.3M|                if (!is_key())
  ------------------
  |  Branch (803:21): [True: 19.5M, False: 8.82M]
  ------------------
  804|  19.5M|                {
  805|  19.5M|                    ++count_;
  806|  19.5M|                }
  807|  28.3M|                if (is_object())
  ------------------
  |  Branch (807:21): [True: 17.6M, False: 10.7M]
  ------------------
  808|  17.6M|                {
  809|  17.6M|                    even_odd_ = !even_odd_;
  810|  17.6M|                }
  811|  28.3M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1236|  8.41M|        {
 1237|  8.41M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1237:17): [True: 2.50M, False: 5.91M]
  |  Branch (1237:49): [True: 4.87M, False: 1.04M]
  ------------------
 1238|  7.37M|            {
 1239|  7.37M|                key_.clear();
 1240|  7.37M|                jsoncons::from_integer(value,key_);
 1241|  7.37M|            }
 1242|       |
 1243|  8.41M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1243:17): [True: 2.50M, False: 5.91M]
  ------------------
 1244|  2.50M|            {
 1245|  2.50M|                switch (level_stack_.back().target())
 1246|  2.50M|                {
 1247|  2.32M|                    case target_t::buffer:
  ------------------
  |  Branch (1247:21): [True: 2.32M, False: 174k]
  ------------------
 1248|  2.32M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1248:29): [True: 2.30M, False: 22.1k]
  ------------------
 1249|  2.30M|                        {
 1250|  2.30M|                            key_buffer_.push_back(',');
 1251|  2.30M|                        }
 1252|  2.32M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1253|  2.32M|                        key_buffer_.push_back(':');
 1254|  2.32M|                        break;
 1255|   174k|                    default:
  ------------------
  |  Branch (1255:21): [True: 174k, False: 2.32M]
  ------------------
 1256|   174k|                        destination_->key(key_, context, ec);
 1257|   174k|                        break;
 1258|  2.50M|                }
 1259|  2.50M|            }
 1260|  5.91M|            else
 1261|  5.91M|            {
 1262|  5.91M|                switch (level_stack_.back().target())
 1263|  5.91M|                {
 1264|  4.87M|                    case target_t::buffer:
  ------------------
  |  Branch (1264:21): [True: 4.87M, False: 1.04M]
  ------------------
 1265|  4.87M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1265:29): [True: 2.53M, False: 2.33M]
  |  Branch (1265:65): [True: 2.53M, False: 3.60k]
  ------------------
 1266|  2.53M|                        {
 1267|  2.53M|                            key_buffer_.push_back(',');
 1268|  2.53M|                        }
 1269|  4.87M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1270|  4.87M|                        break;
 1271|  1.04M|                    default:
  ------------------
  |  Branch (1271:21): [True: 1.04M, False: 4.87M]
  ------------------
 1272|  1.04M|                        destination_->uint64_value(value, tag, context, ec);
 1273|  1.04M|                        break;
 1274|  5.91M|                }
 1275|  5.91M|            }
 1276|       |
 1277|  8.41M|            level_stack_.back().advance();
 1278|  8.41M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  8.41M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1279|  8.41M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1282|  3.41M|        {
 1283|  3.41M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1283:17): [True: 1.00M, False: 2.41M]
  |  Branch (1283:49): [True: 2.39M, False: 21.0k]
  ------------------
 1284|  3.39M|            {
 1285|  3.39M|                key_.clear();
 1286|  3.39M|                jsoncons::from_integer(value,key_);
 1287|  3.39M|            }
 1288|       |
 1289|  3.41M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1289:17): [True: 1.00M, False: 2.41M]
  ------------------
 1290|  1.00M|            {
 1291|  1.00M|                switch (level_stack_.back().target())
 1292|  1.00M|                {
 1293|   993k|                    case target_t::buffer:
  ------------------
  |  Branch (1293:21): [True: 993k, False: 6.63k]
  ------------------
 1294|   993k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1294:29): [True: 990k, False: 3.86k]
  ------------------
 1295|   990k|                        {
 1296|   990k|                            key_buffer_.push_back(',');
 1297|   990k|                        }
 1298|   993k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1299|   993k|                        key_buffer_.push_back(':');
 1300|   993k|                        break;
 1301|  6.63k|                    default:
  ------------------
  |  Branch (1301:21): [True: 6.63k, False: 993k]
  ------------------
 1302|  6.63k|                        destination_->key(key_, context, ec);
 1303|  6.63k|                        break;
 1304|  1.00M|                }
 1305|  1.00M|            }
 1306|  2.41M|            else
 1307|  2.41M|            {
 1308|  2.41M|                switch (level_stack_.back().target())
 1309|  2.41M|                {
 1310|  2.39M|                    case target_t::buffer:
  ------------------
  |  Branch (1310:21): [True: 2.39M, False: 21.0k]
  ------------------
 1311|  2.39M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1311:29): [True: 1.38M, False: 1.00M]
  |  Branch (1311:65): [True: 1.38M, False: 3.98k]
  ------------------
 1312|  1.38M|                        {
 1313|  1.38M|                            key_buffer_.push_back(',');
 1314|  1.38M|                        }
 1315|  2.39M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1316|  2.39M|                        break;
 1317|  21.0k|                    default:
  ------------------
  |  Branch (1317:21): [True: 21.0k, False: 2.39M]
  ------------------
 1318|  21.0k|                        destination_->int64_value(value, tag, context, ec);
 1319|  21.0k|                        break;
 1320|  2.41M|                }
 1321|  2.41M|            }
 1322|       |
 1323|  3.41M|            level_stack_.back().advance();
 1324|  3.41M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  3.41M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1325|  3.41M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1377|  75.9k|        {
 1378|  75.9k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1378:17): [True: 24.6k, False: 51.3k]
  |  Branch (1378:49): [True: 50.7k, False: 562]
  ------------------
 1379|  75.3k|            {
 1380|  75.3k|                key_.clear();
 1381|  75.3k|                string_sink<string_type> sink(key_);
 1382|  75.3k|                jsoncons::write_double f{float_chars_format::general,0};
 1383|  75.3k|                f(value, sink);
 1384|  75.3k|            }
 1385|       |
 1386|  75.9k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1386:17): [True: 24.6k, False: 51.3k]
  ------------------
 1387|  24.6k|            {
 1388|  24.6k|                switch (level_stack_.back().target())
 1389|  24.6k|                {
 1390|  23.0k|                    case target_t::buffer:
  ------------------
  |  Branch (1390:21): [True: 23.0k, False: 1.61k]
  ------------------
 1391|  23.0k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1391:29): [True: 13.9k, False: 9.05k]
  ------------------
 1392|  13.9k|                        {
 1393|  13.9k|                            key_buffer_.push_back(',');
 1394|  13.9k|                        }
 1395|  23.0k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1396|  23.0k|                        key_buffer_.push_back(':');
 1397|  23.0k|                        break;
 1398|  1.61k|                    default:
  ------------------
  |  Branch (1398:21): [True: 1.61k, False: 23.0k]
  ------------------
 1399|  1.61k|                        destination_->key(key_, context, ec);
 1400|  1.61k|                        break;
 1401|  24.6k|                }
 1402|  24.6k|            }
 1403|  51.3k|            else
 1404|  51.3k|            {
 1405|  51.3k|                switch (level_stack_.back().target())
 1406|  51.3k|                {
 1407|  50.7k|                    case target_t::buffer:
  ------------------
  |  Branch (1407:21): [True: 50.7k, False: 562]
  ------------------
 1408|  50.7k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1408:29): [True: 35.1k, False: 15.6k]
  |  Branch (1408:65): [True: 30.9k, False: 4.17k]
  ------------------
 1409|  30.9k|                        {
 1410|  30.9k|                            key_buffer_.push_back(',');
 1411|  30.9k|                        }
 1412|  50.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1413|  50.7k|                        break;
 1414|    562|                    default:
  ------------------
  |  Branch (1414:21): [True: 562, False: 50.7k]
  ------------------
 1415|    562|                        destination_->double_value(value, tag, context, ec);
 1416|    562|                        break;
 1417|  51.3k|                }
 1418|  51.3k|            }
 1419|       |
 1420|  75.9k|            level_stack_.back().advance();
 1421|  75.9k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  75.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1422|  75.9k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  884|    938|        {
  885|    938|            destination_->flush();
  886|    938|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  917|   241k|        {
  918|   241k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (918:17): [True: 129k, False: 111k]
  ------------------
  919|   129k|            {
  920|   129k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (920:21): [True: 126k, False: 3.36k]
  |  Branch (920:73): [True: 56.1k, False: 70.2k]
  ------------------
  921|  56.1k|                {
  922|  56.1k|                    key_buffer_.push_back(',');
  923|  56.1k|                }
  924|   129k|                level_stack_.emplace_back(target_t::buffer, container_t::object);
  925|   129k|                key_buffer_.push_back('{');
  926|   129k|            }
  927|   111k|            else
  928|   111k|            {
  929|   111k|                switch (level_stack_.back().target())
  930|   111k|                {
  931|  97.8k|                    case target_t::buffer:
  ------------------
  |  Branch (931:21): [True: 97.8k, False: 14.1k]
  ------------------
  932|  97.8k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (932:29): [True: 28.8k, False: 68.9k]
  |  Branch (932:65): [True: 26.1k, False: 2.67k]
  ------------------
  933|  26.1k|                        {
  934|  26.1k|                            key_buffer_.push_back(',');
  935|  26.1k|                        }
  936|  97.8k|                        level_stack_.emplace_back(target_t::buffer, container_t::object);
  937|  97.8k|                        key_buffer_.push_back('{');
  938|  97.8k|                        break;
  939|  14.1k|                    default:
  ------------------
  |  Branch (939:21): [True: 14.1k, False: 97.8k]
  ------------------
  940|  14.1k|                        level_stack_.emplace_back(target_t::destination, container_t::object);
  941|  14.1k|                        destination_->begin_object(length, tag, context, ec);
  942|  14.1k|                        break;
  943|   111k|                }
  944|   111k|            }
  945|   241k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   241k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  946|   241k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  949|   217k|        {
  950|   217k|            switch (level_stack_.back().target())
  951|   217k|            {
  952|   209k|                case target_t::buffer:
  ------------------
  |  Branch (952:17): [True: 209k, False: 8.70k]
  ------------------
  953|   209k|                    key_buffer_.push_back('}');
  954|   209k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   209k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 209k]
  |  |  ------------------
  |  |   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|   209k|                    level_stack_.pop_back();
  956|       |                    
  957|   209k|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (957:25): [True: 2.43k, False: 206k]
  ------------------
  958|  2.43k|                    {
  959|  2.43k|                        destination_->key(key_buffer_,context, ec);
  960|  2.43k|                        key_buffer_.clear();
  961|  2.43k|                    }
  962|   206k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (962:30): [True: 118k, False: 88.5k]
  ------------------
  963|   118k|                    {
  964|   118k|                        key_buffer_.push_back(':');
  965|   118k|                    }
  966|   209k|                    level_stack_.back().advance();
  967|   209k|                    break;
  968|  8.70k|                default:
  ------------------
  |  Branch (968:17): [True: 8.70k, False: 209k]
  ------------------
  969|  8.70k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  8.70k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 8.70k]
  |  |  ------------------
  |  |   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|  8.70k|                    level_stack_.pop_back();
  971|  8.70k|                    level_stack_.back().advance();
  972|  8.70k|                    destination_->end_object(context, ec);
  973|  8.70k|                    break;
  974|   217k|            }
  975|   217k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   217k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  976|   217k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1478|   116k|        {
 1479|   116k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1479:17): [True: 31.2k, False: 85.2k]
  |  Branch (1479:49): [True: 84.1k, False: 1.06k]
  ------------------
 1480|   115k|            {
 1481|   115k|                key_.clear(); 
 1482|   115k|                key_.insert(key_.begin(), null_constant.begin(), null_constant.end());
 1483|   115k|            }
 1484|       |
 1485|   116k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1485:17): [True: 31.2k, False: 85.2k]
  ------------------
 1486|  31.2k|            {
 1487|  31.2k|                switch (level_stack_.back().target())
 1488|  31.2k|                {
 1489|  30.4k|                    case target_t::buffer:
  ------------------
  |  Branch (1489:21): [True: 30.4k, False: 808]
  ------------------
 1490|  30.4k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1490:29): [True: 27.4k, False: 3.06k]
  ------------------
 1491|  27.4k|                        {
 1492|  27.4k|                            key_buffer_.push_back(',');
 1493|  27.4k|                        }
 1494|  30.4k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1495|  30.4k|                        key_buffer_.push_back(':');
 1496|  30.4k|                        break;
 1497|    808|                    default:
  ------------------
  |  Branch (1497:21): [True: 808, False: 30.4k]
  ------------------
 1498|    808|                        destination_->key(key_, context, ec);
 1499|    808|                        break;
 1500|  31.2k|                }
 1501|  31.2k|            }
 1502|  85.2k|            else
 1503|  85.2k|            {
 1504|  85.2k|                switch (level_stack_.back().target())
 1505|  85.2k|                {
 1506|  84.1k|                    case target_t::buffer:
  ------------------
  |  Branch (1506:21): [True: 84.1k, False: 1.06k]
  ------------------
 1507|  84.1k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1507:29): [True: 55.7k, False: 28.4k]
  |  Branch (1507:65): [True: 54.9k, False: 820]
  ------------------
 1508|  54.9k|                        {
 1509|  54.9k|                            key_buffer_.push_back(',');
 1510|  54.9k|                        }
 1511|  84.1k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1512|  84.1k|                        break;
 1513|  1.06k|                    default:
  ------------------
  |  Branch (1513:21): [True: 1.06k, False: 84.1k]
  ------------------
 1514|  1.06k|                        destination_->null_value(tag, context, ec);
 1515|  1.06k|                        break;
 1516|  85.2k|                }
 1517|  85.2k|            }
 1518|       |
 1519|   116k|            level_stack_.back().advance();
 1520|   116k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   116k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1521|   116k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1425|  10.1M|        {
 1426|  10.1M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1426:17): [True: 3.35M, False: 6.77M]
  |  Branch (1426:49): [True: 6.75M, False: 19.5k]
  ------------------
 1427|  10.1M|            {
 1428|  10.1M|                key_.clear(); 
 1429|  10.1M|                if (value)
  ------------------
  |  Branch (1429:21): [True: 6.78M, False: 3.31M]
  ------------------
 1430|  6.78M|                {
 1431|  6.78M|                    key_.insert(key_.begin(), true_constant.begin(), true_constant.end());
 1432|  6.78M|                }
 1433|  3.31M|                else
 1434|  3.31M|                {
 1435|  3.31M|                    key_.insert(key_.begin(), false_constant.begin(), false_constant.end());
 1436|  3.31M|                }
 1437|  10.1M|            }
 1438|       |
 1439|  10.1M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1439:17): [True: 3.35M, False: 6.77M]
  ------------------
 1440|  3.35M|            {
 1441|  3.35M|                switch (level_stack_.back().target())
 1442|  3.35M|                {
 1443|  3.33M|                    case target_t::buffer:
  ------------------
  |  Branch (1443:21): [True: 3.33M, False: 18.9k]
  ------------------
 1444|  3.33M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1444:29): [True: 3.32M, False: 9.03k]
  ------------------
 1445|  3.32M|                        {
 1446|  3.32M|                            key_buffer_.push_back(',');
 1447|  3.32M|                        }
 1448|  3.33M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1449|  3.33M|                        key_buffer_.push_back(':');
 1450|  3.33M|                        break;
 1451|  18.9k|                    default:
  ------------------
  |  Branch (1451:21): [True: 18.9k, False: 3.33M]
  ------------------
 1452|  18.9k|                        destination_->key(key_, context, ec);
 1453|  18.9k|                        break;
 1454|  3.35M|                }
 1455|  3.35M|            }
 1456|  6.77M|            else
 1457|  6.77M|            {
 1458|  6.77M|                switch (level_stack_.back().target())
 1459|  6.77M|                {
 1460|  6.75M|                    case target_t::buffer:
  ------------------
  |  Branch (1460:21): [True: 6.75M, False: 19.5k]
  ------------------
 1461|  6.75M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1461:29): [True: 3.37M, False: 3.37M]
  |  Branch (1461:65): [True: 3.37M, False: 4.45k]
  ------------------
 1462|  3.37M|                        {
 1463|  3.37M|                            key_buffer_.push_back(',');
 1464|  3.37M|                        }
 1465|  6.75M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1466|  6.75M|                        break;
 1467|  19.5k|                    default:
  ------------------
  |  Branch (1467:21): [True: 19.5k, False: 6.75M]
  ------------------
 1468|  19.5k|                        destination_->bool_value(value, tag, context, ec);
 1469|  19.5k|                        break;
 1470|  6.77M|                }
 1471|  6.77M|            }
 1472|       |
 1473|  10.1M|            level_stack_.back().advance();
 1474|  10.1M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  10.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1475|  10.1M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1075|  5.72M|        {
 1076|  5.72M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1076:17): [True: 1.72M, False: 4.00M]
  ------------------
 1077|  1.72M|            {
 1078|  1.72M|                switch (level_stack_.back().target())
 1079|  1.72M|                {
 1080|  1.72M|                    case target_t::buffer:
  ------------------
  |  Branch (1080:21): [True: 1.72M, False: 2.33k]
  ------------------
 1081|  1.72M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1081:29): [True: 1.72M, False: 1.44k]
  ------------------
 1082|  1.72M|                        {
 1083|  1.72M|                            key_buffer_.push_back(',');
 1084|  1.72M|                        }
 1085|  1.72M|                        key_buffer_.push_back('\"');
 1086|  1.72M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1087|  1.72M|                        key_buffer_.push_back('\"');
 1088|  1.72M|                        key_buffer_.push_back(':');
 1089|  1.72M|                        break;
 1090|  2.33k|                    default:
  ------------------
  |  Branch (1090:21): [True: 2.33k, False: 1.72M]
  ------------------
 1091|  2.33k|                        destination_->key(value, context, ec);
 1092|  2.33k|                        break;
 1093|  1.72M|                }
 1094|  1.72M|            }
 1095|  4.00M|            else
 1096|  4.00M|            {
 1097|  4.00M|                switch (level_stack_.back().target())
 1098|  4.00M|                {
 1099|  3.98M|                    case target_t::buffer:
  ------------------
  |  Branch (1099:21): [True: 3.98M, False: 12.2k]
  ------------------
 1100|  3.98M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1100:29): [True: 2.26M, False: 1.72M]
  |  Branch (1100:65): [True: 2.26M, False: 897]
  ------------------
 1101|  2.26M|                        {
 1102|  2.26M|                            key_buffer_.push_back(',');
 1103|  2.26M|                        }
 1104|  3.98M|                        key_buffer_.push_back('\"');
 1105|  3.98M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1106|  3.98M|                        key_buffer_.push_back('\"');
 1107|  3.98M|                        break;
 1108|  12.2k|                    default:
  ------------------
  |  Branch (1108:21): [True: 12.2k, False: 3.98M]
  ------------------
 1109|  12.2k|                        destination_->string_value(value, tag, context, ec);
 1110|  12.2k|                        break;
 1111|  4.00M|                }
 1112|  4.00M|            }
 1113|       |
 1114|  5.72M|            level_stack_.back().advance();
 1115|  5.72M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  5.72M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1116|  5.72M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1122|  16.0k|        {
 1123|  16.0k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1123:17): [True: 5.58k, False: 10.4k]
  |  Branch (1123:49): [True: 9.58k, False: 917]
  ------------------
 1124|  15.1k|            {
 1125|  15.1k|                key_.clear();
 1126|  15.1k|                switch (tag)
 1127|  15.1k|                {
 1128|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1128:21): [True: 0, False: 15.1k]
  ------------------
 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.1k]
  ------------------
 1132|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1133|      0|                        break;
 1134|  15.1k|                    default:
  ------------------
  |  Branch (1134:21): [True: 15.1k, False: 0]
  ------------------
 1135|  15.1k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1136|  15.1k|                        break;
 1137|  15.1k|                }
 1138|  15.1k|            }
 1139|       |
 1140|  16.0k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1140:17): [True: 5.58k, False: 10.4k]
  ------------------
 1141|  5.58k|            {
 1142|  5.58k|                switch (level_stack_.back().target())
 1143|  5.58k|                {
 1144|  4.87k|                    case target_t::buffer:
  ------------------
  |  Branch (1144:21): [True: 4.87k, False: 716]
  ------------------
 1145|  4.87k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1145:29): [True: 2.97k, False: 1.90k]
  ------------------
 1146|  2.97k|                        {
 1147|  2.97k|                            key_buffer_.push_back(',');
 1148|  2.97k|                        }
 1149|  4.87k|                        key_buffer_.push_back('\"');
 1150|  4.87k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1151|  4.87k|                        key_buffer_.push_back('\"');
 1152|  4.87k|                        key_buffer_.push_back(':');
 1153|  4.87k|                        break;
 1154|    716|                    default:
  ------------------
  |  Branch (1154:21): [True: 716, False: 4.87k]
  ------------------
 1155|    716|                        destination_->key(key_, context, ec);
 1156|    716|                        break;
 1157|  5.58k|                }
 1158|  5.58k|            }
 1159|  10.4k|            else
 1160|  10.4k|            {
 1161|  10.4k|                switch (level_stack_.back().target())
 1162|  10.4k|                {
 1163|  9.58k|                    case target_t::buffer:
  ------------------
  |  Branch (1163:21): [True: 9.58k, False: 917]
  ------------------
 1164|  9.58k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1164:29): [True: 4.72k, False: 4.85k]
  |  Branch (1164:65): [True: 3.17k, False: 1.54k]
  ------------------
 1165|  3.17k|                        {
 1166|  3.17k|                            key_buffer_.push_back(',');
 1167|  3.17k|                        }
 1168|  9.58k|                        key_buffer_.push_back('\"');
 1169|  9.58k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1170|  9.58k|                        key_buffer_.push_back('\"');
 1171|  9.58k|                        break;
 1172|    917|                    default:
  ------------------
  |  Branch (1172:21): [True: 917, False: 9.58k]
  ------------------
 1173|    917|                        destination_->byte_string_value(value, tag, context, ec);
 1174|    917|                        break;
 1175|  10.4k|                }
 1176|  10.4k|            }
 1177|       |
 1178|  16.0k|            level_stack_.back().advance();
 1179|  16.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  16.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1180|  16.0k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1186|  28.9k|        {
 1187|  28.9k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1187:17): [True: 13.9k, False: 15.0k]
  |  Branch (1187:49): [True: 10.0k, False: 4.98k]
  ------------------
 1188|  23.9k|            {
 1189|  23.9k|                key_.clear();
 1190|  23.9k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1191|  23.9k|            }
 1192|       |
 1193|  28.9k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1193:17): [True: 13.9k, False: 15.0k]
  ------------------
 1194|  13.9k|            {
 1195|  13.9k|                switch (level_stack_.back().target())
 1196|  13.9k|                {
 1197|  8.97k|                    case target_t::buffer:
  ------------------
  |  Branch (1197:21): [True: 8.97k, False: 4.94k]
  ------------------
 1198|  8.97k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1198:29): [True: 5.89k, False: 3.07k]
  ------------------
 1199|  5.89k|                        {
 1200|  5.89k|                            key_buffer_.push_back(',');
 1201|  5.89k|                        }
 1202|  8.97k|                        key_buffer_.push_back('\"');
 1203|  8.97k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1204|  8.97k|                        key_buffer_.push_back('\"');
 1205|  8.97k|                        key_buffer_.push_back(':');
 1206|  8.97k|                        break;
 1207|  4.94k|                    default:
  ------------------
  |  Branch (1207:21): [True: 4.94k, False: 8.97k]
  ------------------
 1208|  4.94k|                        destination_->key(key_, context, ec);
 1209|  4.94k|                        break;
 1210|  13.9k|                }
 1211|  13.9k|            }
 1212|  15.0k|            else
 1213|  15.0k|            {
 1214|  15.0k|                switch (level_stack_.back().target())
 1215|  15.0k|                {
 1216|  10.0k|                    case target_t::buffer:
  ------------------
  |  Branch (1216:21): [True: 10.0k, False: 4.98k]
  ------------------
 1217|  10.0k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1217:29): [True: 4.31k, False: 5.74k]
  |  Branch (1217:65): [True: 2.74k, False: 1.57k]
  ------------------
 1218|  2.74k|                        {
 1219|  2.74k|                            key_buffer_.push_back(',');
 1220|  2.74k|                        }
 1221|  10.0k|                        key_buffer_.push_back('\"');
 1222|  10.0k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1223|  10.0k|                        key_buffer_.push_back('\"');
 1224|  10.0k|                        break;
 1225|  4.98k|                    default:
  ------------------
  |  Branch (1225:21): [True: 4.98k, False: 10.0k]
  ------------------
 1226|  4.98k|                        destination_->byte_string_value(value, ext_tag, context, ec);
 1227|  4.98k|                        break;
 1228|  15.0k|                }
 1229|  15.0k|            }
 1230|       |
 1231|  28.9k|            level_stack_.back().advance();
 1232|  28.9k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  28.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1233|  28.9k|        }
_ZN8jsoncons24basic_item_event_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  293|   244k|        {
  294|   244k|            visit_begin_array(length, tag, context, ec);
  295|   244k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   244k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  296|   244k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  362|  8.41M|        {
  363|  8.41M|            visit_uint64(value, tag, context, ec);
  364|  8.41M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  8.41M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  365|  8.41M|        }
_ZN8jsoncons24basic_item_event_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  299|   221k|        {
  300|   221k|            visit_end_array(context, ec);
  301|   221k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   221k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  302|   221k|        }
_ZN8jsoncons24basic_item_event_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  371|  3.41M|        {
  372|  3.41M|            visit_int64(value, tag, context, ec);
  373|  3.41M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  3.41M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  374|  3.41M|        }
_ZN8jsoncons24basic_item_event_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  389|  75.9k|        {
  390|  75.9k|            visit_double(value, tag, context, ec);
  391|  75.9k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  75.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  392|  75.9k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  858|  4.65k|            : destination_(std::addressof(visitor)), 
  859|  4.65k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  860|  4.65k|        {
  861|  4.65k|            level_stack_.emplace_back(target_t::destination,container_t::root); // root
  862|  4.65k|        }
_ZN8jsoncons24basic_item_event_visitorIcEC2Ev:
   51|  4.65k|        basic_item_event_visitor() = default;
_ZN8jsoncons24basic_item_event_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  275|   241k|        {
  276|   241k|            visit_begin_object(length, tag, context, ec);
  277|   241k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   241k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  278|   241k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  331|  5.72M|        {
  332|  5.72M|            visit_string(value, tag, context, ec);
  333|  5.72M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  5.72M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  334|  5.72M|        }
_ZN8jsoncons24basic_item_event_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  313|   116k|        {
  314|   116k|            visit_null(tag, context, ec);
  315|   116k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   116k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  316|   116k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  322|  10.1M|        {
  323|  10.1M|            visit_bool(value, tag, context, ec);
  324|  10.1M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  10.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  325|  10.1M|        }
_ZN8jsoncons24basic_item_event_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  342|  16.0k|        {
  343|  16.0k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  344|  16.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  16.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  345|  16.0k|        }
_ZN8jsoncons24basic_item_event_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  353|  28.9k|        {
  354|  28.9k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), ext_tag, context, ec);
  355|  28.9k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  28.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  356|  28.9k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  281|   217k|        {
  282|   217k|            visit_end_object(context, ec);
  283|   217k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   217k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  284|   217k|        }
_ZN8jsoncons24basic_item_event_visitorIcE5flushEv:
   56|    938|        {
   57|    938|            visit_flush();
   58|    938|        }

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

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

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

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

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  686|  57.9k|        : storage_(n, alloc)
  687|  57.9k|    {
  688|  57.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  353|  57.9k|        : word_allocator_type(alloc)
  354|  57.9k|    {
  355|  57.9k|        ::new (&inlined_) inlined_storage(n);
  356|  57.9k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  57.9k|            : is_allocated_(false),
  139|  57.9k|            is_negative_(false),
  140|  57.9k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 24.3k, False: 33.6k]
  ------------------
  141|  57.9k|        {
  142|  57.9k|            values_[0] = n;
  143|  57.9k|            values_[1] = 0;
  144|  57.9k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  991|  28.1k|    {
  992|  28.1k|        auto this_view = get_storage_view();
  993|  28.1k|        size_type len0 = this_view.size();
  994|  28.1k|        word_type dig = this_view[0];
  995|  28.1k|        word_type carry = 0;
  996|       |
  997|  28.1k|        resize(this_view.size() + 1);
  998|  28.1k|        this_view = get_storage_view();
  999|       |
 1000|  28.1k|        size_type i = 0;
 1001|  49.2k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1001:16): [True: 21.0k, False: 28.1k]
  ------------------
 1002|  21.0k|        {
 1003|  21.0k|            word_type hi;
 1004|  21.0k|            word_type lo;
 1005|  21.0k|            DDproduct( dig, y, hi, lo );
 1006|  21.0k|            this_view[i] = lo + carry;
 1007|  21.0k|            dig = this_view[i+1];
 1008|  21.0k|            carry = hi + (this_view[i] < lo);
 1009|  21.0k|        }
 1010|  28.1k|        this_view[i] = carry;
 1011|  28.1k|        reduce();
 1012|  28.1k|        return *this;
 1013|  28.1k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  711|   418k|    {
  712|   418k|        return storage_.get_storage_view();
  713|   418k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  513|   601k|    {
  514|   601k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (514:16): [True: 188k, False: 412k]
  ------------------
  515|   188k|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  516|   601k|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  517|   601k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   64|   601k|            : data_(data), size_(size)
   65|   601k|        {
   66|   601k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   84|   936k|        {
   85|   936k|            return size_;
   86|   936k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   69|   398k|        {
   70|   398k|            return data_[i];
   71|   398k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  811|  71.1k|    {
  812|  71.1k|        storage_.resize(new_length);
  813|  71.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  527|   138k|    {
  528|   138k|        size_type old_length = common_.size_;
  529|   138k|        reserve(new_length);
  530|   138k|        common_.size_ = new_length;
  531|       |
  532|   138k|        if (old_length < new_length)
  ------------------
  |  Branch (532:13): [True: 79.4k, False: 58.5k]
  ------------------
  533|  79.4k|        {
  534|  79.4k|            if (is_allocated())
  ------------------
  |  Branch (534:17): [True: 14.5k, False: 64.9k]
  ------------------
  535|  14.5k|            {
  536|  14.5k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  537|  14.5k|            }
  538|  64.9k|            else
  539|  64.9k|            {
  540|  64.9k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   45|  64.9k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 64.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 ))); }
  ------------------
  541|   167k|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (541:48): [True: 102k, False: 64.9k]
  ------------------
  542|   102k|                {
  543|   102k|                    inlined_.values_[i] = 0;
  544|   102k|                }
  545|  64.9k|            }
  546|  79.4k|        }
  547|   138k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  445|   138k|    {
  446|   138k|       if (capacity() < n)
  ------------------
  |  Branch (446:12): [True: 14.5k, False: 123k]
  ------------------
  447|  14.5k|       {
  448|  14.5k|           if (!is_allocated())
  ------------------
  |  Branch (448:16): [True: 14.5k, False: 0]
  ------------------
  449|  14.5k|           {
  450|  14.5k|               size_type size = inlined_.size_;
  451|  14.5k|               size_type is_neg = inlined_.is_negative_;
  452|  14.5k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  453|       |
  454|  14.5k|               ::new (&allocated_) allocated_storage();
  455|  14.5k|               allocated_.reserve(n, get_allocator());
  456|  14.5k|               allocated_.size_ = size;
  457|  14.5k|               allocated_.is_negative_ = is_neg;
  458|  14.5k|               if (n >= 1)
  ------------------
  |  Branch (458:20): [True: 14.5k, False: 0]
  ------------------
  459|  14.5k|               {
  460|  14.5k|                   allocated_.data_[0] = values[0];
  461|  14.5k|               }
  462|  14.5k|               if (n >= 2)
  ------------------
  |  Branch (462:20): [True: 14.5k, False: 0]
  ------------------
  463|  14.5k|               {
  464|  14.5k|                   allocated_.data_[1] = values[1];
  465|  14.5k|               }
  466|  14.5k|           }
  467|      0|           else
  468|      0|           {
  469|      0|               allocated_.reserve(n, get_allocator());
  470|      0|           }
  471|  14.5k|       }
  472|   138k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  498|   138k|    {
  499|   138k|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (499:16): [True: 29.0k, False: 108k]
  ------------------
  500|   138k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  203|  14.5k|            : is_allocated_(true),
  204|  14.5k|            is_negative_(false)
  205|  14.5k|        {
  206|  14.5k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  255|  14.5k|        {
  256|  14.5k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   45|  14.5k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 14.5k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  257|  14.5k|            size_type capacity_new = round_up(n);
  258|       |
  259|  14.5k|            real_allocator_type alloc(a);
  260|  14.5k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  261|  14.5k|            if (size_ > 0)
  ------------------
  |  Branch (261:17): [True: 0, False: 14.5k]
  ------------------
  262|      0|            {
  263|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  264|      0|            }
  265|  14.5k|            if (data_ != nullptr)
  ------------------
  |  Branch (265:17): [True: 0, False: 14.5k]
  ------------------
  266|      0|            {
  267|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  268|      0|            }
  269|  14.5k|            capacity_ = capacity_new;
  270|  14.5k|            data_ = data_new;
  271|  14.5k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  275|  14.5k|        {
  276|  14.5k|            size_type remainder = i % mem_unit;
  277|  14.5k|            size_type off = mem_unit - remainder;
  278|  14.5k|            bool testoff = i < max_size - off;
  279|  14.5k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   45|  14.5k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 14.5k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  280|       |
  281|  14.5k|            return i + off;
  282|  14.5k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  475|   292k|    {
  476|   292k|        return static_cast<const word_allocator_type&>(*this);
  477|   292k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  493|   655k|    {
  494|   655k|        return common_.is_allocated_;
  495|   655k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1774|  35.9k|    {
 1775|  35.9k|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1776|  35.9k|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1777|       |
 1778|  35.9k|        lo = loA * loB;
 1779|  35.9k|        hi = hiA * hiB;
 1780|  35.9k|        word_type mid1 = loA * hiB;
 1781|  35.9k|        word_type mid2 = hiA * loB;
 1782|  35.9k|        word_type old = lo;
 1783|  35.9k|        lo += mid1 << word_type_half_bits;
 1784|  35.9k|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1785|  35.9k|        old = lo;
 1786|  35.9k|        lo += mid2 << word_type_half_bits;
 1787|  35.9k|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1788|  35.9k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1910|   115k|    {
 1911|   115k|        storage_.reduce();
 1912|   115k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  422|   115k|    {
  423|   115k|        if (common_.size_ > 0)
  ------------------
  |  Branch (423:13): [True: 115k, False: 0]
  ------------------
  424|   115k|        {
  425|   115k|            auto this_view = get_storage_view();
  426|   115k|            word_type* p = this_view.end() - 1;
  427|   115k|            word_type* first = this_view.begin();
  428|   171k|            while ( p >= first )
  ------------------
  |  Branch (428:21): [True: 157k, False: 13.4k]
  ------------------
  429|   157k|            {
  430|   157k|                if ( *p )
  ------------------
  |  Branch (430:22): [True: 102k, False: 55.6k]
  ------------------
  431|   102k|                {
  432|   102k|                    break;
  433|   102k|                }
  434|  55.6k|                --common_.size_;
  435|  55.6k|                --p;
  436|  55.6k|            }
  437|   115k|        }
  438|   115k|        if (common_.size_ == 0)
  ------------------
  |  Branch (438:13): [True: 13.4k, False: 102k]
  ------------------
  439|  13.4k|        {
  440|  13.4k|            common_.is_negative_ = false;
  441|  13.4k|        }
  442|   115k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   93|   115k|        {
   94|   115k|            return data_ + size_;
   95|   115k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   88|   115k|        {
   89|   115k|            return data_;
   90|   115k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  882|  5.89k|    {
  883|  5.89k|        if ( is_negative())
  ------------------
  |  Branch (883:14): [True: 0, False: 5.89k]
  ------------------
  884|      0|            return *this -= -basic_bigint<Allocator>(y);
  885|       |
  886|  5.89k|        word_type d;
  887|  5.89k|        word_type carry = 0;
  888|       |
  889|  5.89k|        auto this_view = get_storage_view();
  890|  5.89k|        resize(this_view.size() + 1);
  891|       |
  892|  5.89k|        this_view = get_storage_view();
  893|  5.89k|        const size_type this_size = this_view.size();
  894|  5.89k|        size_type y_size = 1;
  895|       |
  896|  5.89k|        d = this_view[0] + carry;
  897|  5.89k|        carry = d < carry;
  898|  5.89k|        this_view[0] = d + y;
  899|  5.89k|        if (this_view[0] < d)
  ------------------
  |  Branch (899:13): [True: 0, False: 5.89k]
  ------------------
  900|      0|            carry = 1;
  901|       |
  902|  5.89k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (902:36): [True: 4.42k, False: 1.46k]
  |  Branch (902:53): [True: 0, False: 4.42k]
  ------------------
  903|      0|        {
  904|      0|            d = this_view[i] + carry;
  905|      0|            carry = d < carry;
  906|      0|            this_view[i] = d;
  907|      0|        }
  908|  5.89k|        reduce();
  909|  5.89k|        return *this;
  910|  5.89k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  721|   378k|    {
  722|   378k|        return storage_.is_negative();
  723|   378k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  503|   378k|    {
  504|   378k|        return common_.is_negative_;
  505|   378k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  828|  6.61k|    {
  829|  6.61k|        basic_bigint<Allocator> v(*this);
  830|  6.61k|        v.set_negative(!v.is_negative());
  831|  6.61k|        return v;
  832|  6.61k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  664|  34.7k|        : storage_(other.storage_)
  665|  34.7k|    {
  666|  34.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  299|  34.7k|        : word_allocator_type(other.get_allocator())
  300|  34.7k|    {
  301|  34.7k|        if (!other.is_allocated())
  ------------------
  |  Branch (301:13): [True: 20.2k, False: 14.5k]
  ------------------
  302|  20.2k|        {
  303|  20.2k|            ::new (&inlined_) inlined_storage(other.inlined_);
  304|  20.2k|        }
  305|  14.5k|        else
  306|  14.5k|        {
  307|  14.5k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  308|  14.5k|        }
  309|  34.7k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  178|  88.0k|            : is_allocated_(false),
  179|  88.0k|            is_negative_(stor.is_negative_),
  180|  88.0k|            size_(stor.size_)
  181|  88.0k|        {
  182|  88.0k|            values_[0] = stor.values_[0];
  183|  88.0k|            values_[1] = stor.values_[1];
  184|  88.0k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  209|  58.1k|            : is_allocated_(true),
  210|  58.1k|              is_negative_(stor.is_negative_),
  211|  58.1k|              size_(stor.size_),
  212|  58.1k|              capacity_(stor.capacity_)
  213|  58.1k|        {
  214|  58.1k|            real_allocator_type alloc(a);
  215|       |
  216|  58.1k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  217|  58.1k|            JSONCONS_TRY
  ------------------
  |  |   37|  58.1k|    #define JSONCONS_TRY try
  ------------------
  218|  58.1k|            {
  219|  58.1k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  220|  58.1k|            }
  221|  58.1k|            JSONCONS_CATCH(...)
  222|  58.1k|            {
  223|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  224|      0|                data_ = nullptr;
  225|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  226|      0|            }
  227|  58.1k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   45|  58.1k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 58.1k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  228|  58.1k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  229|  58.1k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  726|   170k|    {
  727|   170k|        storage_.set_negative(value);
  728|   170k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  508|   170k|    {
  509|   170k|        common_.is_negative_ = value;
  510|   170k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12write_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1352|  28.1k|    {
 1353|  28.1k|        basic_bigint<Allocator> v(*this);
 1354|  28.1k|        auto v_view = v.get_storage_view();
 1355|       |
 1356|  28.1k|        size_type len = (v_view.size() * word_type_bits / 3) + 2;
 1357|  28.1k|        data.reserve(len);
 1358|       |
 1359|  28.1k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1359:14): [True: 5.69k, False: 22.4k]
  ------------------
 1360|  5.69k|        {
 1361|  5.69k|            data.push_back('0');
 1362|  5.69k|        }
 1363|  22.4k|        else
 1364|  22.4k|        {
 1365|  22.4k|            word_type r;
 1366|  22.4k|            basic_bigint<Allocator> R(get_allocator());
 1367|  22.4k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1368|       |
 1369|  22.4k|            do
 1370|  40.8k|            {
 1371|  40.8k|                v.divide( LP10, v, R, true );
 1372|  40.8k|                v_view = v.get_storage_view();
 1373|       |
 1374|  40.8k|                auto R_view = R.get_storage_view();
 1375|  40.8k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1375:22): [True: 39.8k, False: 1.06k]
  ------------------
 1376|   537k|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1376:38): [True: 519k, False: 18.4k]
  ------------------
 1377|   519k|                {
 1378|   519k|                    data.push_back(char(r % 10u + '0'));
 1379|   519k|                    r /= 10u;
 1380|   519k|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1380:26): [True: 22.4k, False: 496k]
  ------------------
 1381|  22.4k|                        break;
 1382|   519k|                }
 1383|  40.8k|            } 
 1384|  40.8k|            while ( v_view.size() > 0);
  ------------------
  |  Branch (1384:21): [True: 18.4k, False: 22.4k]
  ------------------
 1385|       |
 1386|  22.4k|            if (is_negative())
  ------------------
  |  Branch (1386:17): [True: 6.61k, False: 15.8k]
  ------------------
 1387|  6.61k|            {
 1388|  6.61k|                data.push_back('-');
 1389|  6.61k|            }
 1390|  22.4k|            std::reverse(data.begin(),data.end());
 1391|  22.4k|        }
 1392|  28.1k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  706|   156k|    {
  707|   156k|        return storage_.get_allocator();
  708|   156k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  637|  22.4k|        : storage_(alloc)
  638|  22.4k|    {
  639|  22.4k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  293|  22.4k|        : word_allocator_type(alloc)
  294|  22.4k|    {
  295|  22.4k|        ::new (&inlined_) inlined_storage();
  296|  22.4k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  113|  22.4k|            : is_allocated_(false),
  114|  22.4k|            is_negative_(false),
  115|  22.4k|            size_(0),
  116|  22.4k|            values_{0, 0}
  117|  22.4k|        {
  118|  22.4k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1668|  40.8k|    {
 1669|  40.8k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1670|  40.8k|        auto denom_view = denom.get_storage_view();
 1671|       |
 1672|  40.8k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1672:13): [True: 0, False: 40.8k]
  ------------------
 1673|      0|        {
 1674|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1675|      0|        }
 1676|  40.8k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1677|  40.8k|        bool rem_neg = is_negative();
 1678|  40.8k|        basic_bigint<Allocator> num(*this, get_allocator());
 1679|  40.8k|        num.set_negative(false);
 1680|  40.8k|        denom.set_negative(false);
 1681|  40.8k|        if ( num < denom )
  ------------------
  |  Branch (1681:14): [True: 22.4k, False: 18.4k]
  ------------------
 1682|  22.4k|        {
 1683|  22.4k|            quot = word_type(0);
 1684|  22.4k|            quot.set_negative(quot_neg);
 1685|  22.4k|            rem = num;
 1686|  22.4k|            rem.set_negative(rem_neg);
 1687|  22.4k|            return;
 1688|  22.4k|        }
 1689|       |
 1690|  18.4k|        auto num_view = num.get_storage_view();
 1691|  18.4k|        auto quot_view = quot.get_storage_view();
 1692|  18.4k|        auto this_view = get_storage_view();
 1693|       |
 1694|  18.4k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1694:14): [True: 18.4k, False: 0]
  |  Branch (1694:40): [True: 3.56k, False: 14.8k]
  ------------------
 1695|  3.56k|        {
 1696|  3.56k|            quot = word_type( num_view[0]/denom_view[0] );
 1697|  3.56k|            rem = word_type( num_view[0]%denom_view[0] );
 1698|  3.56k|            quot.set_negative(quot_neg);
 1699|  3.56k|            rem.set_negative(rem_neg);
 1700|  3.56k|            return;
 1701|  3.56k|        }
 1702|  14.8k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1702:13): [True: 14.8k, False: 0]
  |  Branch (1702:39): [True: 0, False: 14.8k]
  ------------------
 1703|      0|        {
 1704|       |            // Denominator fits into a half word
 1705|      0|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1706|      0|            quot.resize(this_view.size());
 1707|      0|            quot_view = quot.get_storage_view();
 1708|      0|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1708:48): [True: 0, False: 0]
  ------------------
 1709|      0|            {
 1710|      0|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1711|      0|                q1 = dividend/divisor;
 1712|      0|                r = dividend % divisor;
 1713|      0|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1714|      0|                q2 = dividend/divisor;
 1715|      0|                dHi = dividend % divisor;
 1716|      0|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1717|      0|            }
 1718|      0|            quot.reduce();
 1719|      0|            rem = dHi;
 1720|      0|            quot.set_negative(quot_neg);
 1721|      0|            rem.set_negative(rem_neg);
 1722|      0|            return;
 1723|      0|        }
 1724|  14.8k|        basic_bigint<Allocator> num0(num, get_allocator());
 1725|  14.8k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1726|  14.8k|        int x = 0;
 1727|  14.8k|        bool second_done = normalize(denom, num, x);
 1728|  14.8k|        denom_view = denom.get_storage_view();
 1729|  14.8k|        num_view = num.get_storage_view();
 1730|       |
 1731|  14.8k|        size_type l = denom_view.size() - 1;
 1732|  14.8k|        size_type n = num_view.size() - 1;
 1733|  14.8k|        quot.resize(n - l);
 1734|  14.8k|        quot_view = quot.get_storage_view();
 1735|  29.6k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1735:46): [True: 14.8k, False: 14.8k]
  ------------------
 1736|  14.8k|        {
 1737|  14.8k|            quot_view[i] = 0;
 1738|  14.8k|        }
 1739|  14.8k|        rem = num;
 1740|  14.8k|        auto rem_view = rem.get_storage_view();
 1741|  14.8k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1741:14): [True: 0, False: 14.8k]
  ------------------
 1742|      0|        {
 1743|      0|            rem.resize(rem_view.size() + 1);
 1744|      0|            rem_view = rem.get_storage_view();
 1745|      0|            n++;
 1746|      0|            quot.resize(quot_view.size() + 1);
 1747|      0|            quot_view = quot.get_storage_view();
 1748|      0|        }
 1749|  14.8k|        word_type d = denom_view[l];
 1750|       |
 1751|  29.6k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1751:32): [True: 14.8k, False: 14.8k]
  ------------------
 1752|  14.8k|        {
 1753|  14.8k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1754|  14.8k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1755|  14.8k|            quot_view[k - l - 1] = q;
 1756|  14.8k|        }
 1757|  14.8k|        quot.reduce();
 1758|  14.8k|        quot.set_negative(quot_neg);
 1759|  14.8k|        if (remDesired)
  ------------------
  |  Branch (1759:13): [True: 14.8k, False: 0]
  ------------------
 1760|  14.8k|        {
 1761|  14.8k|            unnormalize(rem, x, second_done);
 1762|  14.8k|            rem.set_negative(rem_neg);
 1763|  14.8k|        }
 1764|  14.8k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  669|   111k|        : storage_(other.storage_, alloc)
  670|   111k|    {
  671|   111k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  312|   111k|        : word_allocator_type(alloc)
  313|   111k|    {
  314|   111k|        if (!other.is_allocated())
  ------------------
  |  Branch (314:13): [True: 67.8k, False: 43.5k]
  ------------------
  315|  67.8k|        {
  316|  67.8k|            ::new (&inlined_) inlined_storage(other.inlined_);
  317|  67.8k|        }
  318|  43.5k|        else
  319|  43.5k|        {
  320|  43.5k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  321|  43.5k|        }
  322|   111k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1469|  40.8k|    {
 1470|  40.8k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1470:15): [True: 22.4k, False: 18.4k]
  ------------------
 1471|  40.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1634|  63.1k|    {
 1635|  63.1k|        auto this_view = get_storage_view();
 1636|  63.1k|        auto y_view = y.get_storage_view();
 1637|       |
 1638|  63.1k|        const size_type y_size = y_view.size();
 1639|  63.1k|        if ( this_view.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1639:14): [True: 5.59k, False: 57.5k]
  |  Branch (1639:39): [True: 5.59k, False: 0]
  ------------------
 1640|  5.59k|            return 0;
 1641|  57.5k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1641:14): [True: 6.61k, False: 50.9k]
  ------------------
 1642|  6.61k|            return y.is_negative() - is_negative();
 1643|  50.9k|        int code = 0;
 1644|  50.9k|        if ( this_view.size() < y_size)
  ------------------
  |  Branch (1644:14): [True: 0, False: 50.9k]
  ------------------
 1645|      0|            code = -1;
 1646|  50.9k|        else if ( this_view.size() > y_size)
  ------------------
  |  Branch (1646:19): [True: 24.8k, False: 26.0k]
  ------------------
 1647|  24.8k|            code = +1;
 1648|  26.0k|        else
 1649|  26.0k|        {
 1650|  26.4k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1650:50): [True: 26.0k, False: 385]
  ------------------
 1651|  26.0k|            {
 1652|  26.0k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1652:21): [True: 3.18k, False: 22.8k]
  ------------------
 1653|  3.18k|                {
 1654|  3.18k|                    code = 1;
 1655|  3.18k|                    break;
 1656|  3.18k|                }
 1657|  22.8k|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1657:26): [True: 22.4k, False: 385]
  ------------------
 1658|  22.4k|                {
 1659|  22.4k|                    code = -1;
 1660|  22.4k|                    break;
 1661|  22.4k|                }
 1662|  26.0k|            }
 1663|  26.0k|        }
 1664|  50.9k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1664:16): [True: 0, False: 50.9k]
  ------------------
 1665|  57.5k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  835|  66.8k|    {
  836|  66.8k|        storage_ = y.storage_;
  837|  66.8k|        return *this;
  838|  66.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  359|  66.8k|    {
  360|  66.8k|        if (this != &other)
  ------------------
  |  Branch (360:13): [True: 66.8k, False: 0]
  ------------------
  361|  66.8k|        {
  362|  66.8k|            auto other_view = other.get_storage_view();
  363|  66.8k|            resize(other_view.size());
  364|  66.8k|            auto this_view = get_storage_view();
  365|  66.8k|            if (other_view.size() > 0)
  ------------------
  |  Branch (365:17): [True: 44.0k, False: 22.8k]
  ------------------
  366|  44.0k|            {
  367|  44.0k|                common_.is_negative_ = other.common_.is_negative_;
  368|  44.0k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  369|  44.0k|            }
  370|  66.8k|        }
  371|  66.8k|        return *this;
  372|  66.8k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  520|   224k|    {
  521|   224k|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (521:16): [True: 72.6k, False: 152k]
  ------------------
  522|  72.6k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  523|   224k|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  524|   224k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   64|   224k|            : data_(data), size_(size)
   65|   224k|        {
   66|   224k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   79|  44.0k|        {
   80|  44.0k|            return data_;
   81|  44.0k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  716|   157k|    {
  717|   157k|        return storage_.get_storage_view();
  718|   157k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   84|   445k|        {
   85|   445k|            return size_;
   86|   445k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   69|   104k|        {
   70|   104k|            return data_[i];
   71|   104k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1865|  14.8k|    {
 1866|  14.8k|        auto denom_view = denom.get_storage_view();
 1867|  14.8k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1867:13): [True: 0, False: 14.8k]
  ------------------
 1868|      0|        {
 1869|      0|            return false;
 1870|      0|        }
 1871|  14.8k|        size_type r = denom_view.size() - 1;
 1872|  14.8k|        word_type y = denom_view[r];
 1873|       |
 1874|  14.8k|        x = 0;
 1875|  14.8k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1875:17): [True: 0, False: 14.8k]
  ------------------
 1876|      0|        {
 1877|      0|            y <<= 1;
 1878|      0|            x++;
 1879|      0|        }
 1880|  14.8k|        denom <<= x;
 1881|  14.8k|        num <<= x;
 1882|       |
 1883|  14.8k|        denom_view = denom.get_storage_view();
 1884|  14.8k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1884:14): [True: 0, False: 14.8k]
  |  Branch (1884:23): [True: 0, False: 0]
  ------------------
 1885|      0|        {
 1886|      0|            denom *= max_word;
 1887|      0|            num *= max_word;
 1888|      0|            return true;
 1889|      0|        }
 1890|  14.8k|        return false;
 1891|  14.8k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1110|  29.6k|    {
 1111|  29.6k|        auto this_view = get_storage_view();
 1112|  29.6k|        size_type q = k / word_type_bits;
 1113|  29.6k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1113:14): [True: 0, False: 29.6k]
  ------------------
 1114|      0|        {
 1115|      0|            resize(this_view.size() + q);
 1116|      0|            this_view = get_storage_view();
 1117|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1117:50): [True: 0, False: 0]
  ------------------
 1118|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1118:34): [True: 0, False: 0]
  ------------------
 1119|      0|            k %= word_type_bits;
 1120|      0|        }
 1121|  29.6k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1121:14): [True: 0, False: 29.6k]
  ------------------
 1122|      0|        {
 1123|      0|            size_type k1 = word_type_bits - k;
 1124|      0|            word_type mask = (word_type(1) << k) - word_type(1);
 1125|      0|            resize( this_view.size() + 1 );
 1126|      0|            this_view = get_storage_view();
 1127|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1127:50): [True: 0, False: 0]
  ------------------
 1128|      0|            {
 1129|      0|                this_view[i] <<= k;
 1130|      0|                if ( i > 0 )
  ------------------
  |  Branch (1130:22): [True: 0, False: 0]
  ------------------
 1131|      0|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1132|      0|            }
 1133|      0|        }
 1134|  29.6k|        reduce();
 1135|  29.6k|        return *this;
 1136|  29.6k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1792|  14.8k|    {
 1793|  14.8k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1794|  14.8k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1795|  14.8k|        qHi = A/(dHi + 1);
 1796|       |        // This initial guess of qHi may be too small.
 1797|  14.8k|        middle = qHi * dLo;
 1798|  14.8k|        left = qHi * dHi;
 1799|  14.8k|        x = B - (middle << word_type_half_bits);
 1800|  14.8k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1801|  14.8k|        B = x;
 1802|  14.8k|        dLo1 = dLo << word_type_half_bits;
 1803|       |        // Increase qHi if necessary:
 1804|  14.8k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1804:17): [True: 0, False: 14.8k]
  |  Branch (1804:29): [True: 0, False: 14.8k]
  |  Branch (1804:41): [True: 0, False: 0]
  ------------------
 1805|      0|        {
 1806|      0|            x = B - dLo1;
 1807|      0|            A -= dHi + (x > B);
 1808|      0|            B = x;
 1809|      0|            qHi++;
 1810|      0|        }
 1811|  14.8k|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1812|       |        // This initial guess of qLo may be too small.
 1813|  14.8k|        right = qLo * dLo;
 1814|  14.8k|        middle = qLo * dHi;
 1815|  14.8k|        x = B - right;
 1816|  14.8k|        A -= (x > B);
 1817|  14.8k|        B = x;
 1818|  14.8k|        x = B - (middle << word_type_half_bits);
 1819|  14.8k|            A -= (middle >> word_type_half_bits) + (x > B);
 1820|  14.8k|        B = x;
 1821|       |        // Increase qLo if necessary:
 1822|  17.5k|        while ( A || B >= d )
  ------------------
  |  Branch (1822:17): [True: 0, False: 17.5k]
  |  Branch (1822:22): [True: 2.74k, False: 14.8k]
  ------------------
 1823|  2.74k|        {
 1824|  2.74k|            x = B - d;
 1825|  2.74k|            A -= (x > B);
 1826|  2.74k|            B = x;
 1827|  2.74k|            qLo++;
 1828|  2.74k|        }
 1829|  14.8k|        return (qHi << word_type_half_bits) + qLo;
 1830|  14.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1834|  14.8k|    {
 1835|  14.8k|        word_type hi, lo, d, carry = 0;
 1836|  14.8k|        size_type i;
 1837|  29.6k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1837:22): [True: 14.8k, False: 14.8k]
  ------------------
 1838|  14.8k|        {
 1839|  14.8k|            DDproduct( b[i], q, hi, lo );
 1840|  14.8k|            d = a[i];
 1841|  14.8k|            a[i] -= lo;
 1842|  14.8k|            if ( a[i] > d )
  ------------------
  |  Branch (1842:18): [True: 8.02k, False: 6.81k]
  ------------------
 1843|  8.02k|                carry++;
 1844|  14.8k|            d = a[i + 1];
 1845|  14.8k|            a[i + 1] -= hi + carry;
 1846|  14.8k|            carry = a[i + 1] > d;
 1847|  14.8k|        }
 1848|  14.8k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1848:14): [True: 0, False: 14.8k]
  ------------------
 1849|      0|        {
 1850|      0|            q--;
 1851|      0|            carry = 0;
 1852|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1852:26): [True: 0, False: 0]
  ------------------
 1853|      0|            {
 1854|      0|                d = a[i] + carry;
 1855|      0|                carry = d < carry;
 1856|      0|                a[i] = d + b[i];
 1857|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1857:22): [True: 0, False: 0]
  ------------------
 1858|      0|                    carry = 1;
 1859|      0|            }
 1860|      0|            a[n] = 0;
 1861|      0|        }
 1862|  14.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   79|  73.7k|        {
   80|  73.7k|            return data_;
   81|  73.7k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1894|  14.8k|    {
 1895|  14.8k|        if (secondDone)
  ------------------
  |  Branch (1895:13): [True: 0, False: 14.8k]
  ------------------
 1896|      0|        {
 1897|      0|            rem /= max_word;
 1898|      0|        }
 1899|  14.8k|        if ( x > 0 )
  ------------------
  |  Branch (1899:14): [True: 0, False: 14.8k]
  ------------------
 1900|      0|        {
 1901|      0|            rem >>= x;
 1902|      0|        }
 1903|  14.8k|        else
 1904|  14.8k|        {
 1905|  14.8k|            rem.reduce();
 1906|  14.8k|        }
 1907|  14.8k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  701|   277k|    {
  702|   277k|        storage_.destroy();
  703|   277k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  480|   277k|    {
  481|   277k|        if (is_allocated())
  ------------------
  |  Branch (481:13): [True: 72.6k, False: 205k]
  ------------------
  482|  72.6k|        {
  483|  72.6k|            allocated_.destroy(get_allocator());
  484|  72.6k|            allocated_.~allocated_storage();
  485|  72.6k|        }
  486|   205k|        else
  487|   205k|        {
  488|   205k|            inlined_.~inlined_storage();
  489|   205k|        }
  490|   277k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  246|  72.6k|        {
  247|  72.6k|            if (data_ != nullptr)
  ------------------
  |  Branch (247:17): [True: 72.6k, False: 0]
  ------------------
  248|  72.6k|            {
  249|  72.6k|                real_allocator_type alloc(a);
  250|  72.6k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  251|  72.6k|            }
  252|  72.6k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  686|  44.5k|        : storage_(n, alloc)
  687|  44.5k|    {
  688|  44.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  353|  44.5k|        : word_allocator_type(alloc)
  354|  44.5k|    {
  355|  44.5k|        ::new (&inlined_) inlined_storage(n);
  356|  44.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  44.5k|            : is_allocated_(false),
  126|  44.5k|            is_negative_(n < 0),
  127|  44.5k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 27.8k, False: 16.6k]
  ------------------
  128|  44.5k|        {
  129|  44.5k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 6.61k, False: 37.9k]
  ------------------
  130|  44.5k|            values_[1] = 0;
  131|  44.5k|        }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEEl:
 1474|  22.2k|    {
 1475|  22.2k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1475:15): [True: 6.61k, False: 15.6k]
  ------------------
 1476|  22.2k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IjEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  686|  6.61k|        : storage_(n, alloc)
  687|  6.61k|    {
  688|  6.61k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IjEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  353|  6.61k|        : word_allocator_type(alloc)
  354|  6.61k|    {
  355|  6.61k|        ::new (&inlined_) inlined_storage(n);
  356|  6.61k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IjEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  6.61k|            : is_allocated_(false),
  139|  6.61k|            is_negative_(false),
  140|  6.61k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 293, False: 6.31k]
  ------------------
  141|  6.61k|        {
  142|  6.61k|            values_[0] = n;
  143|  6.61k|            values_[1] = 0;
  144|  6.61k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  947|  6.61k|    {
  948|  6.61k|        auto y_view = y.get_storage_view();
  949|       |
  950|  6.61k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (950:14): [True: 6.61k, False: 0]
  ------------------
  951|  6.61k|            return *this += -y;
  952|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (952:15): [True: 0, False: 0]
  |  Branch (952:33): [True: 0, False: 0]
  |  Branch (952:48): [True: 0, False: 0]
  |  Branch (952:65): [True: 0, False: 0]
  ------------------
  953|      0|            return *this = -(y - *this);
  954|      0|        word_type borrow = 0;
  955|      0|        word_type d;
  956|      0|        auto this_view = get_storage_view();
  957|      0|        const size_type this_size = this_view.size();
  958|      0|        const size_type y_size = y_view.size();
  959|       |
  960|      0|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (960:31): [True: 0, False: 0]
  ------------------
  961|      0|        {
  962|      0|            d = this_view[i] - borrow;
  963|      0|            borrow = d > this_view[i];
  964|      0|            this_view[i] = d - y_view[i];
  965|      0|            if ( this_view[i] > d )
  ------------------
  |  Branch (965:18): [True: 0, False: 0]
  ------------------
  966|      0|                borrow = 1;
  967|      0|        }
  968|      0|        for (size_type i = y_size; i < this_size && borrow != 0; i++ )
  ------------------
  |  Branch (968:36): [True: 0, False: 0]
  |  Branch (968:53): [True: 0, False: 0]
  ------------------
  969|      0|        {
  970|      0|            d = this_view[i] - borrow;
  971|      0|            borrow = d > this_view[i];
  972|      0|            this_view[i] = d;
  973|      0|        }
  974|      0|        reduce();
  975|      0|        return *this;
  976|      0|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  913|  6.61k|    {
  914|  6.61k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (914:14): [True: 0, False: 6.61k]
  ------------------
  915|      0|            return *this -= -y;
  916|       |
  917|  6.61k|        auto y_view = y.get_storage_view();
  918|       |        
  919|  6.61k|        word_type d;
  920|  6.61k|        word_type carry = 0;
  921|       |
  922|  6.61k|        auto this_view = get_storage_view();
  923|  6.61k|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  924|  6.61k|        this_view = get_storage_view();
  925|       |
  926|  6.61k|        const size_t this_size = this_view.size();
  927|  6.61k|        const size_t y_size = y_view.size();
  928|  12.9k|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (928:31): [True: 6.31k, False: 6.61k]
  ------------------
  929|  6.31k|        {
  930|  6.31k|            d = this_view[i] + carry;
  931|  6.31k|            carry = d < carry;
  932|  6.31k|            this_view[i] = d + y_view[i];
  933|  6.31k|            if (this_view[i] < d)
  ------------------
  |  Branch (933:17): [True: 370, False: 5.94k]
  ------------------
  934|    370|                carry = 1;
  935|  6.31k|        }
  936|  6.98k|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (936:36): [True: 6.68k, False: 300]
  |  Branch (936:53): [True: 370, False: 6.31k]
  ------------------
  937|    370|        {
  938|    370|            d = this_view[i] + carry;
  939|    370|            carry = d < carry;
  940|    370|            this_view[i] = d;
  941|    370|        }
  942|  6.61k|        reduce();
  943|  6.61k|        return *this;
  944|  6.61k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLIjEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  882|  15.6k|    {
  883|  15.6k|        if ( is_negative())
  ------------------
  |  Branch (883:14): [True: 0, False: 15.6k]
  ------------------
  884|      0|            return *this -= -basic_bigint<Allocator>(y);
  885|       |
  886|  15.6k|        word_type d;
  887|  15.6k|        word_type carry = 0;
  888|       |
  889|  15.6k|        auto this_view = get_storage_view();
  890|  15.6k|        resize(this_view.size() + 1);
  891|       |
  892|  15.6k|        this_view = get_storage_view();
  893|  15.6k|        const size_type this_size = this_view.size();
  894|  15.6k|        size_type y_size = 1;
  895|       |
  896|  15.6k|        d = this_view[0] + carry;
  897|  15.6k|        carry = d < carry;
  898|  15.6k|        this_view[0] = d + y;
  899|  15.6k|        if (this_view[0] < d)
  ------------------
  |  Branch (899:13): [True: 3.66k, False: 11.9k]
  ------------------
  900|  3.66k|            carry = 1;
  901|       |
  902|  19.3k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (902:36): [True: 13.7k, False: 5.60k]
  |  Branch (902:53): [True: 3.66k, False: 10.0k]
  ------------------
  903|  3.66k|        {
  904|  3.66k|            d = this_view[i] + carry;
  905|  3.66k|            carry = d < carry;
  906|  3.66k|            this_view[i] = d;
  907|  3.66k|        }
  908|  15.6k|        reduce();
  909|  15.6k|        return *this;
  910|  15.6k|    }

_ZN8jsoncons6binary13big_to_nativeIfNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  63.2k|    {
  183|  63.2k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 63.2k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  63.2k|        T val;
  188|  63.2k|        std::memcpy(&val,first,sizeof(T));
  189|  63.2k|        return byte_swap(val);
  190|  63.2k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|  63.2k|    {
   65|  63.2k|        uint32_t x;
   66|  63.2k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|  63.2k|        uint32_t y = byte_swap(x);
   68|  63.2k|        T val2;
   69|  63.2k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|  63.2k|        return val2;
   71|  63.2k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   155k|    {
   40|   155k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   155k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|   155k|#  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|   155k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  12.6k|    {
  183|  12.6k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 12.6k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  12.6k|        T val;
  188|  12.6k|        std::memcpy(&val,first,sizeof(T));
  189|  12.6k|        return byte_swap(val);
  190|  12.6k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|  12.6k|    {
   77|  12.6k|        uint64_t x;
   78|  12.6k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|  12.6k|        uint64_t y = byte_swap(x);
   80|  12.6k|        T val2;
   81|  12.6k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|  12.6k|        return val2;
   83|  12.6k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  20.2k|    {
   52|  20.2k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  20.2k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  20.2k|#  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.2k|    }
_ZN8jsoncons6binary13big_to_nativeItNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   220k|    {
  183|   220k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 220k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   220k|        T val;
  188|   220k|        std::memcpy(&val,first,sizeof(T));
  189|   220k|        return byte_swap(val);
  190|   220k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|   220k|    {
   29|   220k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|   220k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|   220k|#      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|   220k|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  92.2k|    {
  183|  92.2k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 92.2k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  92.2k|        T val;
  188|  92.2k|        std::memcpy(&val,first,sizeof(T));
  189|  92.2k|        return byte_swap(val);
  190|  92.2k|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  7.60k|    {
  183|  7.60k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 7.60k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  7.60k|        T val;
  188|  7.60k|        std::memcpy(&val,first,sizeof(T));
  189|  7.60k|        return byte_swap(val);
  190|  7.60k|    }
_ZN8jsoncons6binary13big_to_nativeIaNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  60.0k|    {
  183|  60.0k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 60.0k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  60.0k|        T val;
  188|  60.0k|        std::memcpy(&val,first,sizeof(T));
  189|  60.0k|        return byte_swap(val);
  190|  60.0k|    }
_ZN8jsoncons6binary9byte_swapIaEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  60.0k|    {
   22|  60.0k|        return val;
   23|  60.0k|    }
_ZN8jsoncons6binary13big_to_nativeIsNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  1.90k|    {
  183|  1.90k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 1.90k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  1.90k|        T val;
  188|  1.90k|        std::memcpy(&val,first,sizeof(T));
  189|  1.90k|        return byte_swap(val);
  190|  1.90k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  1.90k|    {
   29|  1.90k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  1.90k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  1.90k|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|  1.90k|    }
_ZN8jsoncons6binary13big_to_nativeIiNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  3.89k|    {
  183|  3.89k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 3.89k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  3.89k|        T val;
  188|  3.89k|        std::memcpy(&val,first,sizeof(T));
  189|  3.89k|        return byte_swap(val);
  190|  3.89k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  3.89k|    {
   40|  3.89k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  3.89k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  3.89k|#  define JSONCONS_BYTE_SWAP_32 __builtin_bswap32
  ------------------
   42|       |    #else
   43|       |        uint32_t tmp = ((static_cast<uint32_t>(val) << 8) & 0xff00ff00) | ((static_cast<uint32_t>(val) >> 8) & 0xff00ff);
   44|       |        return (tmp << 16) | (tmp >> 16);
   45|       |    #endif
   46|  3.89k|    }
_ZN8jsoncons6binary13big_to_nativeIlNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  24.9k|    {
  183|  24.9k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 24.9k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  24.9k|        T val;
  188|  24.9k|        std::memcpy(&val,first,sizeof(T));
  189|  24.9k|        return byte_swap(val);
  190|  24.9k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  24.9k|    {
   52|  24.9k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  24.9k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  24.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|  24.9k|    }
_ZN8jsoncons6binary13big_to_nativeIhNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  44.1k|    {
  183|  44.1k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 44.1k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  44.1k|        T val;
  188|  44.1k|        std::memcpy(&val,first,sizeof(T));
  189|  44.1k|        return byte_swap(val);
  190|  44.1k|    }
_ZN8jsoncons6binary9byte_swapIhEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  44.1k|    {
   22|  44.1k|        return val;
   23|  44.1k|    }

_ZN8jsoncons6detail23bytes_to_base64_genericIPKhNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS4_9enable_ifIXsr3std7is_sameINS4_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESD_SD_PKcRT0_:
   44|  39.1k|    {
   45|  39.1k|        std::size_t count = 0;
   46|  39.1k|        unsigned char a3[3];
   47|  39.1k|        unsigned char a4[4];
   48|  39.1k|        unsigned char fill = alphabet[64];
   49|  39.1k|        int i = 0;
   50|  39.1k|        int j = 0;
   51|       |
   52|  7.69M|        while (first != last)
  ------------------
  |  Branch (52:16): [True: 7.66M, False: 39.1k]
  ------------------
   53|  7.66M|        {
   54|  7.66M|            a3[i++] = *first++;
   55|  7.66M|            if (i == 3)
  ------------------
  |  Branch (55:17): [True: 2.54M, False: 5.11M]
  ------------------
   56|  2.54M|            {
   57|  2.54M|                a4[0] = (a3[0] & 0xfc) >> 2;
   58|  2.54M|                a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   59|  2.54M|                a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   60|  2.54M|                a4[3] = a3[2] & 0x3f;
   61|       |
   62|  12.7M|                for (i = 0; i < 4; i++) 
  ------------------
  |  Branch (62:29): [True: 10.1M, False: 2.54M]
  ------------------
   63|  10.1M|                {
   64|  10.1M|                    result.push_back(alphabet[a4[i]]);
   65|  10.1M|                    ++count;
   66|  10.1M|                }
   67|  2.54M|                i = 0;
   68|  2.54M|            }
   69|  7.66M|        }
   70|       |
   71|  39.1k|        if (i > 0)
  ------------------
  |  Branch (71:13): [True: 16.2k, False: 22.8k]
  ------------------
   72|  16.2k|        {
   73|  46.2k|            for (j = i; j < 3; ++j) 
  ------------------
  |  Branch (73:25): [True: 29.9k, False: 16.2k]
  ------------------
   74|  29.9k|            {
   75|  29.9k|                a3[j] = 0;
   76|  29.9k|            }
   77|       |
   78|  16.2k|            a4[0] = (a3[0] & 0xfc) >> 2;
   79|  16.2k|            a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   80|  16.2k|            a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   81|       |
   82|  51.4k|            for (j = 0; j < i + 1; ++j) 
  ------------------
  |  Branch (82:25): [True: 35.1k, False: 16.2k]
  ------------------
   83|  35.1k|            {
   84|  35.1k|                result.push_back(alphabet[a4[j]]);
   85|  35.1k|                ++count;
   86|  35.1k|            }
   87|       |
   88|  16.2k|            if (fill != 0)
  ------------------
  |  Branch (88:17): [True: 0, False: 16.2k]
  ------------------
   89|      0|            {
   90|      0|                while (i++ < 3) 
  ------------------
  |  Branch (90:24): [True: 0, False: 0]
  ------------------
   91|      0|                {
   92|      0|                    result.push_back(fill);
   93|      0|                    ++count;
   94|      0|                }
   95|      0|            }
   96|  16.2k|        }
   97|       |
   98|  39.1k|        return count;
   99|  39.1k|    }
_ZNK8jsoncons16byte_string_view5beginEv:
  409|  39.1k|        {
  410|  39.1k|            return data_;
  411|  39.1k|        }
_ZNK8jsoncons16byte_string_view3endEv:
  413|  39.1k|        {
  414|  39.1k|            return data_ + size_;
  415|  39.1k|        }
_ZN8jsoncons18bytes_to_base64urlIPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  177|  39.1k|    {
  178|  39.1k|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  179|  39.1k|                                                      "abcdefghijklmnopqrstuvwxyz"
  180|  39.1k|                                                      "0123456789-_"
  181|  39.1k|                                                      "\0";
  182|  39.1k|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  183|  39.1k|    }
_ZNK8jsoncons16byte_string_view4dataEv:
  399|  50.9k|        {
  400|  50.9k|            return data_;
  401|  50.9k|        }
_ZNK8jsoncons16byte_string_view4sizeEv:
  403|  50.9k|        {
  404|  50.9k|            return size_;
  405|  50.9k|        }
_ZN8jsoncons16byte_string_viewC2EPKhm:
  362|  95.9k|            : data_(data), size_(length)
  363|  95.9k|        {
  364|  95.9k|        }

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

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

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14convert_resultIS4_EEE4typeEPKS4_m:
 1136|  5.69M|    {
 1137|  5.69M|        conv_errc  result = conv_errc();
 1138|  5.69M|        const CharT* last = data + length;
 1139|  6.68M|        while (data != last) 
  ------------------
  |  Branch (1139:16): [True: 981k, False: 5.69M]
  ------------------
 1140|   981k|        {
 1141|   981k|            std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[static_cast<uint8_t>(*data)]) + 1;
 1142|   981k|            if (len > (std::size_t)(last - data))
  ------------------
  |  Branch (1142:17): [True: 8, False: 981k]
  ------------------
 1143|      8|            {
 1144|      8|                return convert_result<CharT>{data, conv_errc::source_exhausted};
 1145|      8|            }
 1146|   981k|            if ((result=is_legal_utf8(data, len)) != conv_errc())
  ------------------
  |  Branch (1146:17): [True: 106, False: 981k]
  ------------------
 1147|    106|            {
 1148|    106|                return convert_result<CharT>{data,result} ;
 1149|    106|            }
 1150|   981k|            data += len;
 1151|   981k|        }
 1152|  5.69M|        return convert_result<CharT>{data,result} ;
 1153|  5.69M|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8IcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_9conv_errcEE4typeEPKS4_m:
  305|   981k|    {
  306|   981k|        uint8_t a;
  307|   981k|        const CharT* srcptr = first+length;
  308|   981k|        switch (length) {
  309|     10|        default:
  ------------------
  |  Branch (309:9): [True: 10, False: 981k]
  ------------------
  310|     10|            return conv_errc::over_long_utf8_sequence;
  311|    584|        case 4:
  ------------------
  |  Branch (311:9): [True: 584, False: 980k]
  ------------------
  312|    584|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (312:17): [True: 4, False: 580]
  ------------------
  313|      4|                return conv_errc::expected_continuation_byte;
  314|    580|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    580|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  315|  1.01k|        case 3:
  ------------------
  |  Branch (315:9): [True: 432, False: 980k]
  ------------------
  316|  1.01k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (316:17): [True: 7, False: 1.00k]
  ------------------
  317|      7|                return conv_errc::expected_continuation_byte;
  318|  1.00k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.00k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  319|  1.24k|        case 2:
  ------------------
  |  Branch (319:9): [True: 240, False: 980k]
  ------------------
  320|  1.24k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (320:17): [True: 23, False: 1.22k]
  ------------------
  321|     23|                return conv_errc::expected_continuation_byte;
  322|       |
  323|  1.22k|            switch (static_cast<uint8_t>(*first)) 
  324|  1.22k|            {
  325|       |                // no fall-through in this inner switch
  326|    211|                case 0xE0: if (a < 0xA0) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (326:17): [True: 211, False: 1.01k]
  |  Branch (326:32): [True: 11, False: 200]
  ------------------
  327|    214|                case 0xED: if (a > 0x9F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (327:17): [True: 214, False: 1.00k]
  |  Branch (327:32): [True: 5, False: 209]
  ------------------
  328|    209|                case 0xF0: if (a < 0x90) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 204, False: 1.01k]
  |  Branch (328:32): [True: 6, False: 198]
  ------------------
  329|    362|                case 0xF4: if (a > 0x8F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 362, False: 860]
  |  Branch (329:32): [True: 5, False: 357]
  ------------------
  330|    357|                default:   if (a < 0x80) return conv_errc::source_illegal;
  ------------------
  |  Branch (330:17): [True: 231, False: 991]
  |  Branch (330:32): [True: 0, False: 231]
  ------------------
  331|  1.22k|            }
  332|       |
  333|  1.19k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.19k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  334|   981k|        case 1:
  ------------------
  |  Branch (334:9): [True: 979k, False: 1.26k]
  ------------------
  335|   981k|            if (static_cast<uint8_t>(*first) >= 0x80 && static_cast<uint8_t>(*first) < 0xC2)
  ------------------
  |  Branch (335:17): [True: 1.22k, False: 979k]
  |  Branch (335:57): [True: 34, False: 1.19k]
  ------------------
  336|     34|                return conv_errc::source_illegal;
  337|   981k|            break;
  338|   981k|        }
  339|   981k|        if (static_cast<uint8_t>(*first) > 0xF4) 
  ------------------
  |  Branch (339:13): [True: 1, False: 981k]
  ------------------
  340|      1|            return conv_errc::source_illegal;
  341|       |
  342|   981k|        return conv_errc();
  343|   981k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  7.37M|{
   43|  7.37M|    using char_type = typename Result::value_type;
   44|       |
   45|  7.37M|    char_type buf[255];
   46|  7.37M|    char_type *p = buf;
   47|  7.37M|    const char_type* last = buf+255;
   48|       |
   49|  7.37M|    bool is_negative = value < 0;
   50|       |
   51|  7.37M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 7.37M]
  ------------------
   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.37M|    else
   60|  7.37M|    {
   61|       |
   62|  7.37M|        do
   63|  14.3M|        {
   64|  14.3M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  14.3M|        }
   66|  14.3M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 6.99M, False: 7.37M]
  |  Branch (66:33): [True: 6.99M, False: 0]
  ------------------
   67|  7.37M|    }
   68|  7.37M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  7.37M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 7.37M]
  |  |  ------------------
  |  |   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.37M|    std::size_t count = (p - buf);
   71|  7.37M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 7.37M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  21.7M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 14.3M, False: 7.37M]
  ------------------
   77|  14.3M|    {
   78|  14.3M|        result.push_back(*p);
   79|  14.3M|    }
   80|       |
   81|  7.37M|    return count;
   82|  7.37M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  3.39M|{
   43|  3.39M|    using char_type = typename Result::value_type;
   44|       |
   45|  3.39M|    char_type buf[255];
   46|  3.39M|    char_type *p = buf;
   47|  3.39M|    const char_type* last = buf+255;
   48|       |
   49|  3.39M|    bool is_negative = value < 0;
   50|       |
   51|  3.39M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 3.39M, False: 3.32k]
  ------------------
   52|  3.39M|    {
   53|  3.39M|        do
   54|  3.56M|        {
   55|  3.56M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  3.56M|        }
   57|  3.56M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 176k, False: 3.39M]
  |  Branch (57:33): [True: 176k, False: 0]
  ------------------
   58|  3.39M|    }
   59|  3.32k|    else
   60|  3.32k|    {
   61|       |
   62|  3.32k|        do
   63|  31.0k|        {
   64|  31.0k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  31.0k|        }
   66|  31.0k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 27.7k, False: 3.32k]
  |  Branch (66:33): [True: 27.7k, False: 0]
  ------------------
   67|  3.32k|    }
   68|  3.39M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  3.39M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 3.39M]
  |  |  ------------------
  |  |   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.39M|    std::size_t count = (p - buf);
   71|  3.39M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 3.39M, False: 3.32k]
  ------------------
   72|  3.39M|    {
   73|  3.39M|        result.push_back('-');
   74|  3.39M|        ++count;
   75|  3.39M|    }
   76|  6.99M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 3.59M, False: 3.39M]
  ------------------
   77|  3.59M|    {
   78|  3.59M|        result.push_back(*p);
   79|  3.59M|    }
   80|       |
   81|  3.39M|    return count;
   82|  3.39M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  75.3k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  75.3k|    {
  489|  75.3k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  75.3k|        struct lconv *lc = localeconv();
  491|  75.3k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 75.3k, False: 0]
  |  Branch (491:30): [True: 75.3k, False: 0]
  ------------------
  492|  75.3k|        {
  493|  75.3k|            decimal_point_ = lc->decimal_point[0];
  494|  75.3k|        }
  495|  75.3k|#endif
  496|  75.3k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  75.3k|    {
  504|  75.3k|        std::size_t count = 0;
  505|       |
  506|  75.3k|        char number_buffer[200];
  507|  75.3k|        int length = 0;
  508|       |
  509|  75.3k|        switch (float_format_)
  510|  75.3k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 75.3k]
  ------------------
  512|      0|            {
  513|      0|                if (precision_ > 0)
  ------------------
  |  Branch (513:21): [True: 0, False: 0]
  ------------------
  514|      0|                {
  515|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*f", precision_, val);
  516|      0|                    if (length < 0)
  ------------------
  |  Branch (516:25): [True: 0, False: 0]
  ------------------
  517|      0|                    {
  518|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  519|      0|                    }
  520|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  521|      0|                }
  522|      0|                else
  523|      0|                {
  524|      0|                    if (!dtoa_fixed(val, decimal_point_, result))
  ------------------
  |  Branch (524:25): [True: 0, False: 0]
  ------------------
  525|      0|                    {
  526|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  527|      0|                    }
  528|      0|                }
  529|      0|            }
  530|      0|            break;
  531|      0|        case float_chars_format::scientific:
  ------------------
  |  Branch (531:9): [True: 0, False: 75.3k]
  ------------------
  532|      0|            {
  533|      0|                if (precision_ > 0)
  ------------------
  |  Branch (533:21): [True: 0, False: 0]
  ------------------
  534|      0|                {
  535|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*e", precision_, val);
  536|      0|                    if (length < 0)
  ------------------
  |  Branch (536:25): [True: 0, False: 0]
  ------------------
  537|      0|                    {
  538|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  539|      0|                    }
  540|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  541|      0|                }
  542|      0|                else
  543|      0|                {
  544|      0|                    if (!dtoa_scientific(val, decimal_point_, result))
  ------------------
  |  Branch (544:25): [True: 0, False: 0]
  ------------------
  545|      0|                    {
  546|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  547|      0|                    }
  548|      0|                }
  549|      0|            }
  550|      0|            break;
  551|  75.3k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 75.3k, False: 0]
  ------------------
  552|  75.3k|            {
  553|  75.3k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 75.3k]
  ------------------
  554|      0|                {
  555|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*g", precision_, val);
  556|      0|                    if (length < 0)
  ------------------
  |  Branch (556:25): [True: 0, False: 0]
  ------------------
  557|      0|                    {
  558|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  559|      0|                    }
  560|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  561|      0|                }
  562|  75.3k|                else
  563|  75.3k|                {
  564|  75.3k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 75.3k]
  ------------------
  565|      0|                    {
  566|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  567|      0|                    }
  568|  75.3k|                }             
  569|  75.3k|                break;
  570|  75.3k|            }
  571|  75.3k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 75.3k]
  ------------------
  572|      0|                JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  573|      0|                break;
  574|  75.3k|        }
  575|  75.3k|        return count;
  576|  75.3k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  4.37k|{
  244|  4.37k|    const char *sbeg = buffer;
  245|  4.37k|    const char *send = sbeg + length;
  246|       |
  247|  4.37k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 4.37k, False: 0]
  ------------------
  248|  4.37k|    {
  249|  4.37k|        bool needs_dot = true;
  250|  79.6k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 75.3k, False: 4.37k]
  ------------------
  251|  75.3k|        {
  252|  75.3k|            switch (*q)
  253|  75.3k|            {
  254|  3.57k|            case '-':
  ------------------
  |  Branch (254:13): [True: 3.57k, False: 71.7k]
  ------------------
  255|  10.8k|            case '0':
  ------------------
  |  Branch (255:13): [True: 7.31k, False: 67.9k]
  ------------------
  256|  19.4k|            case '1':
  ------------------
  |  Branch (256:13): [True: 8.57k, False: 66.7k]
  ------------------
  257|  26.7k|            case '2':
  ------------------
  |  Branch (257:13): [True: 7.31k, False: 67.9k]
  ------------------
  258|  32.8k|            case '3':
  ------------------
  |  Branch (258:13): [True: 6.02k, False: 69.2k]
  ------------------
  259|  37.2k|            case '4':
  ------------------
  |  Branch (259:13): [True: 4.38k, False: 70.9k]
  ------------------
  260|  43.3k|            case '5':
  ------------------
  |  Branch (260:13): [True: 6.19k, False: 69.1k]
  ------------------
  261|  51.0k|            case '6':
  ------------------
  |  Branch (261:13): [True: 7.65k, False: 67.6k]
  ------------------
  262|  56.1k|            case '7':
  ------------------
  |  Branch (262:13): [True: 5.14k, False: 70.1k]
  ------------------
  263|  62.0k|            case '8':
  ------------------
  |  Branch (263:13): [True: 5.85k, False: 69.4k]
  ------------------
  264|  66.1k|            case '9':
  ------------------
  |  Branch (264:13): [True: 4.07k, False: 71.2k]
  ------------------
  265|  67.2k|            case '+':
  ------------------
  |  Branch (265:13): [True: 1.10k, False: 74.2k]
  ------------------
  266|  67.2k|                result.push_back(*q);
  267|  67.2k|                break;
  268|  2.20k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 2.20k, False: 73.1k]
  ------------------
  269|  2.20k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 75.3k]
  ------------------
  270|  2.20k|                result.push_back('e');
  271|  2.20k|                needs_dot = false;
  272|  2.20k|                break;
  273|  5.87k|            default:
  ------------------
  |  Branch (273:13): [True: 5.87k, False: 69.4k]
  ------------------
  274|  5.87k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 3.39k, False: 2.47k]
  ------------------
  275|  3.39k|                {
  276|  3.39k|                    needs_dot = false;
  277|  3.39k|                    result.push_back('.');
  278|  3.39k|                }
  279|  5.87k|                break;
  280|  75.3k|            }
  281|  75.3k|        }
  282|  4.37k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 974, False: 3.39k]
  ------------------
  283|    974|        {
  284|    974|            result.push_back('.');
  285|    974|            result.push_back('0');
  286|    974|        }
  287|  4.37k|    }
  288|  4.37k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmiiiRT_:
  171|  67.7k|{
  172|  67.7k|    int nb_digits = (int)length;
  173|  67.7k|    int offset;
  174|       |    /* v = buffer * 10^k
  175|       |       kk is such that 10^(kk-1) <= v < 10^kk
  176|       |       this way kk gives the position of the decimal point.
  177|       |    */
  178|  67.7k|    int kk = nb_digits + k;
  179|       |
  180|  67.7k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 29.3k, False: 38.4k]
  |  Branch (180:28): [True: 27.2k, False: 2.05k]
  ------------------
  181|  27.2k|    {
  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|   212k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 185k, False: 27.2k]
  ------------------
  186|   185k|        {
  187|   185k|            result.push_back(buffer[i]);
  188|   185k|        }
  189|  53.5k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 26.3k, False: 27.2k]
  ------------------
  190|  26.3k|        {
  191|  26.3k|            result.push_back('0');
  192|  26.3k|        }
  193|  27.2k|        result.push_back('.');
  194|  27.2k|        result.push_back('0');
  195|  27.2k|    } 
  196|  40.4k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 18.8k, False: 21.6k]
  |  Branch (196:24): [True: 16.7k, False: 2.05k]
  ------------------
  197|  16.7k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  80.1k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 63.4k, False: 16.7k]
  ------------------
  200|  63.4k|        {
  201|  63.4k|            result.push_back(buffer[i]);
  202|  63.4k|        }
  203|  16.7k|        result.push_back('.');
  204|   187k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 170k, False: 16.7k]
  ------------------
  205|   170k|        {
  206|   170k|            result.push_back(buffer[i]);
  207|   170k|        }
  208|  16.7k|    } 
  209|  23.7k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 4.62k, False: 19.0k]
  |  Branch (209:30): [True: 2.57k, False: 2.05k]
  ------------------
  210|  2.57k|    {
  211|  2.57k|        offset = 2 - kk;
  212|       |
  213|  2.57k|        result.push_back('0');
  214|  2.57k|        result.push_back('.');
  215|  6.85k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 4.28k, False: 2.57k]
  ------------------
  216|  4.28k|            result.push_back('0');
  217|  40.4k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 37.8k, False: 2.57k]
  ------------------
  218|  37.8k|        {
  219|  37.8k|            result.push_back(buffer[i]);
  220|  37.8k|        }
  221|  2.57k|    } 
  222|  21.1k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 3.15k, False: 18.0k]
  ------------------
  223|  3.15k|    {
  224|  3.15k|        result.push_back(buffer[0]);
  225|  3.15k|        result.push_back('e');
  226|  3.15k|        fill_exponent(kk - 1, result);
  227|  3.15k|    } 
  228|  18.0k|    else
  229|  18.0k|    {
  230|  18.0k|        result.push_back(buffer[0]);
  231|  18.0k|        result.push_back('.');
  232|   247k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 229k, False: 18.0k]
  ------------------
  233|   229k|        {
  234|   229k|            result.push_back(buffer[i]);
  235|   229k|        }
  236|  18.0k|        result.push_back('e');
  237|  18.0k|        fill_exponent(kk - 1, result);
  238|  18.0k|    }
  239|  67.7k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  21.1k|{
  137|  21.1k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 19.0k, False: 2.05k]
  ------------------
  138|  19.0k|    {
  139|  19.0k|        result.push_back('-');
  140|  19.0k|        K = -K;
  141|  19.0k|    }
  142|  2.05k|    else
  143|  2.05k|    {
  144|  2.05k|        result.push_back('+'); // compatibility with sprintf
  145|  2.05k|    }
  146|       |
  147|  21.1k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 1.13k, False: 20.0k]
  ------------------
  148|  1.13k|    {
  149|  1.13k|        result.push_back('0'); // compatibility with sprintf
  150|  1.13k|        result.push_back((char)('0' + K));
  151|  1.13k|    }
  152|  20.0k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 9.21k, False: 10.8k]
  ------------------
  153|  9.21k|    {
  154|  9.21k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  9.21k|        result.push_back((char)('0' + K));
  156|  9.21k|    }
  157|  10.8k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 10.8k, False: 0]
  ------------------
  158|  10.8k|    {
  159|  10.8k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  10.8k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  10.8k|        result.push_back((char)('0' + K));
  162|  10.8k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  21.1k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  75.3k|{
  476|  75.3k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  75.3k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  75.3k|{
  367|  75.3k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 3.28k, False: 72.1k]
  ------------------
  368|  3.28k|    {
  369|  3.28k|        result.push_back('0');
  370|  3.28k|        result.push_back('.');
  371|  3.28k|        result.push_back('0');
  372|  3.28k|        return true;
  373|  3.28k|    }
  374|       |
  375|  72.1k|    int length = 0;
  376|  72.1k|    int k;
  377|       |
  378|  72.1k|    char buffer[100];
  379|       |
  380|  72.1k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 52.0k, False: 20.0k]
  ------------------
  381|  72.1k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 67.7k, False: 4.37k]
  ------------------
  382|  67.7k|    {
  383|  67.7k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 49.5k, False: 18.1k]
  ------------------
  384|  49.5k|        {
  385|  49.5k|            result.push_back('-');
  386|  49.5k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  67.7k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  67.7k|        return true;
  391|  67.7k|    }
  392|  4.37k|    else
  393|  4.37k|    {
  394|  4.37k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  4.37k|    }
  396|  72.1k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  4.37k|{
  330|  4.37k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 4.37k]
  ------------------
  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.37k|    char buffer[100];
  339|  4.37k|    int precision = std::numeric_limits<double>::digits10;
  340|  4.37k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  4.37k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 4.37k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  4.37k|    double x{0};
  346|  4.37k|    auto res = decstr_to_double(buffer, length, x);
  347|  4.37k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 4.37k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  4.37k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 3.60k, False: 767]
  ------------------
  352|  3.60k|    {
  353|  3.60k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  3.60k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  3.60k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 3.60k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  3.60k|    }
  360|  4.37k|    dump_buffer(buffer, length, decimal_point, result);
  361|  4.37k|    return true;
  362|  4.37k|}

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

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

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

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

