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

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

_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4sizeEv:
  116|  4.93M|        {
  117|  4.93M|            return size_;
  118|  4.93M|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2Ev:
   58|   918k|        {
   59|   918k|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|  1.10M|            : data_(data), size_(size)
   62|  1.10M|        {
   63|  1.10M|        }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4dataEv:
  111|  2.90M|        {
  112|  2.90M|            return data_;
  113|  2.90M|        }

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|   797k|        {
 1009|   797k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 51.1k, False: 746k]
  ------------------
 1010|  51.1k|            {
 1011|  51.1k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 46.3k, False: 4.76k]
  |  Branch (1011:86): [True: 43.8k, False: 2.53k]
  ------------------
 1012|  43.8k|                {
 1013|  43.8k|                    key_buffer_.push_back(',');
 1014|  43.8k|                }
 1015|  51.1k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|  51.1k|                key_buffer_.push_back('[');
 1017|  51.1k|            }
 1018|   746k|            else
 1019|   746k|            {
 1020|   746k|                switch (level_stack_.back().target_kind())
 1021|   746k|                {
 1022|   607k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 607k, False: 139k]
  ------------------
 1023|   607k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 561k, False: 45.5k]
  |  Branch (1023:65): [True: 376k, False: 185k]
  ------------------
 1024|   376k|                        {
 1025|   376k|                            key_buffer_.push_back(',');
 1026|   376k|                        }
 1027|   607k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|   607k|                        key_buffer_.push_back('[');
 1029|   607k|                        break;
 1030|   139k|                    default:
  ------------------
  |  Branch (1030:21): [True: 139k, False: 607k]
  ------------------
 1031|   139k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|   139k|                        destination_->begin_array(length, tag, context, ec);
 1033|   139k|                        break;
 1034|   746k|                }
 1035|   746k|            }
 1036|   797k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   797k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|   797k|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|   134M|            {
  816|   134M|                return even_odd_ == 0;
  817|   134M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|  81.9M|            {
  826|  81.9M|                return target_kind_;
  827|  81.9M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  34.4M|            {
  831|  34.4M|                return count_;
  832|  34.4M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|  1.11M|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 312k, False: 804k]
  ------------------
  799|  1.11M|            {
  800|  1.11M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|  79.5M|            {
  821|  79.5M|                return structure_kind_ == json_structure_kind::object;
  822|  79.5M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|   760k|        {
 1041|   760k|            switch (level_stack_.back().target_kind())
 1042|   760k|            {
 1043|   637k|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 637k, False: 122k]
  ------------------
 1044|   637k|                    key_buffer_.push_back(']');
 1045|   637k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   637k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 637k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1046|   637k|                    level_stack_.pop_back();
 1047|   637k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 4.18k, False: 633k]
  ------------------
 1048|  4.18k|                    {
 1049|  4.18k|                        destination_->key(key_buffer_, context, ec);
 1050|  4.18k|                        key_buffer_.clear();
 1051|  4.18k|                    }
 1052|   633k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 45.0k, False: 588k]
  ------------------
 1053|  45.0k|                    {
 1054|  45.0k|                        key_buffer_.push_back(':');
 1055|  45.0k|                    }
 1056|   637k|                    level_stack_.back().advance();
 1057|   637k|                    break;
 1058|   122k|                default:
  ------------------
  |  Branch (1058:17): [True: 122k, False: 637k]
  ------------------
 1059|   122k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   122k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 122k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1060|   122k|                    level_stack_.pop_back();
 1061|   122k|                    level_stack_.back().advance();
 1062|   122k|                    destination_->end_array(context, ec);
 1063|   122k|                    break;
 1064|   760k|            }
 1065|   760k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   760k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|   760k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|  45.1M|            {
  804|  45.1M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 36.5M, False: 8.66M]
  ------------------
  805|  36.5M|                {
  806|  36.5M|                    ++count_;
  807|  36.5M|                }
  808|  45.1M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 17.3M, False: 27.8M]
  ------------------
  809|  17.3M|                {
  810|  17.3M|                    even_odd_ = !even_odd_;
  811|  17.3M|                }
  812|  45.1M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  12.5M|        {
 1234|  12.5M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 3.89M, False: 8.69M]
  |  Branch (1234:49): [True: 7.75M, False: 942k]
  ------------------
 1235|  11.6M|            {
 1236|  11.6M|                key_.clear();
 1237|  11.6M|                jsoncons::from_integer(value,key_);
 1238|  11.6M|            }
 1239|       |
 1240|  12.5M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 3.89M, False: 8.69M]
  ------------------
 1241|  3.89M|            {
 1242|  3.89M|                switch (level_stack_.back().target_kind())
 1243|  3.89M|                {
 1244|  3.77M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 3.77M, False: 119k]
  ------------------
 1245|  3.77M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 3.75M, False: 22.6k]
  ------------------
 1246|  3.75M|                        {
 1247|  3.75M|                            key_buffer_.push_back(',');
 1248|  3.75M|                        }
 1249|  3.77M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  3.77M|                        key_buffer_.push_back(':');
 1251|  3.77M|                        break;
 1252|   119k|                    default:
  ------------------
  |  Branch (1252:21): [True: 119k, False: 3.77M]
  ------------------
 1253|   119k|                        destination_->key(key_, context, ec);
 1254|   119k|                        break;
 1255|  3.89M|                }
 1256|  3.89M|            }
 1257|  8.69M|            else
 1258|  8.69M|            {
 1259|  8.69M|                switch (level_stack_.back().target_kind())
 1260|  8.69M|                {
 1261|  7.75M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 7.75M, False: 942k]
  ------------------
 1262|  7.75M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 3.98M, False: 3.77M]
  |  Branch (1262:65): [True: 3.97M, False: 8.47k]
  ------------------
 1263|  3.97M|                        {
 1264|  3.97M|                            key_buffer_.push_back(',');
 1265|  3.97M|                        }
 1266|  7.75M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  7.75M|                        break;
 1268|   942k|                    default:
  ------------------
  |  Branch (1268:21): [True: 942k, False: 7.75M]
  ------------------
 1269|   942k|                        destination_->uint64_value(value, tag, context, ec);
 1270|   942k|                        break;
 1271|  8.69M|                }
 1272|  8.69M|            }
 1273|       |
 1274|  12.5M|            level_stack_.back().advance();
 1275|  12.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  12.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  12.5M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  3.10M|        {
 1280|  3.10M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 854k, False: 2.25M]
  |  Branch (1280:49): [True: 2.01M, False: 240k]
  ------------------
 1281|  2.86M|            {
 1282|  2.86M|                key_.clear();
 1283|  2.86M|                jsoncons::from_integer(value,key_);
 1284|  2.86M|            }
 1285|       |
 1286|  3.10M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 854k, False: 2.25M]
  ------------------
 1287|   854k|            {
 1288|   854k|                switch (level_stack_.back().target_kind())
 1289|   854k|                {
 1290|   823k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 823k, False: 30.4k]
  ------------------
 1291|   823k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 816k, False: 7.73k]
  ------------------
 1292|   816k|                        {
 1293|   816k|                            key_buffer_.push_back(',');
 1294|   816k|                        }
 1295|   823k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|   823k|                        key_buffer_.push_back(':');
 1297|   823k|                        break;
 1298|  30.4k|                    default:
  ------------------
  |  Branch (1298:21): [True: 30.4k, False: 823k]
  ------------------
 1299|  30.4k|                        destination_->key(key_, context, ec);
 1300|  30.4k|                        break;
 1301|   854k|                }
 1302|   854k|            }
 1303|  2.25M|            else
 1304|  2.25M|            {
 1305|  2.25M|                switch (level_stack_.back().target_kind())
 1306|  2.25M|                {
 1307|  2.01M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 2.01M, False: 240k]
  ------------------
 1308|  2.01M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 1.18M, False: 828k]
  |  Branch (1308:65): [True: 1.17M, False: 5.52k]
  ------------------
 1309|  1.17M|                        {
 1310|  1.17M|                            key_buffer_.push_back(',');
 1311|  1.17M|                        }
 1312|  2.01M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  2.01M|                        break;
 1314|   240k|                    default:
  ------------------
  |  Branch (1314:21): [True: 240k, False: 2.01M]
  ------------------
 1315|   240k|                        destination_->int64_value(value, tag, context, ec);
 1316|   240k|                        break;
 1317|  2.25M|                }
 1318|  2.25M|            }
 1319|       |
 1320|  3.10M|            level_stack_.back().advance();
 1321|  3.10M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.10M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  3.10M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|   185k|        {
 1375|   185k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 50.4k, False: 135k]
  |  Branch (1375:49): [True: 45.7k, False: 89.6k]
  ------------------
 1376|  96.1k|            {
 1377|  96.1k|                key_.clear();
 1378|  96.1k|                string_sink<string_type> sink(key_);
 1379|  96.1k|                jsoncons::write_double f{float_chars_format::general,0};
 1380|  96.1k|                f(value, sink);
 1381|  96.1k|            }
 1382|       |
 1383|   185k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 50.4k, False: 135k]
  ------------------
 1384|  50.4k|            {
 1385|  50.4k|                switch (level_stack_.back().target_kind())
 1386|  50.4k|                {
 1387|  24.8k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 24.8k, False: 25.6k]
  ------------------
 1388|  24.8k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 17.6k, False: 7.19k]
  ------------------
 1389|  17.6k|                        {
 1390|  17.6k|                            key_buffer_.push_back(',');
 1391|  17.6k|                        }
 1392|  24.8k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|  24.8k|                        key_buffer_.push_back(':');
 1394|  24.8k|                        break;
 1395|  25.6k|                    default:
  ------------------
  |  Branch (1395:21): [True: 25.6k, False: 24.8k]
  ------------------
 1396|  25.6k|                        destination_->key(key_, context, ec);
 1397|  25.6k|                        break;
 1398|  50.4k|                }
 1399|  50.4k|            }
 1400|   135k|            else
 1401|   135k|            {
 1402|   135k|                switch (level_stack_.back().target_kind())
 1403|   135k|                {
 1404|  45.7k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 45.7k, False: 89.6k]
  ------------------
 1405|  45.7k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 29.5k, False: 16.1k]
  |  Branch (1405:65): [True: 27.6k, False: 1.97k]
  ------------------
 1406|  27.6k|                        {
 1407|  27.6k|                            key_buffer_.push_back(',');
 1408|  27.6k|                        }
 1409|  45.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|  45.7k|                        break;
 1411|  89.6k|                    default:
  ------------------
  |  Branch (1411:21): [True: 89.6k, False: 45.7k]
  ------------------
 1412|  89.6k|                        destination_->double_value(value, tag, context, ec);
 1413|  89.6k|                        break;
 1414|   135k|                }
 1415|   135k|            }
 1416|       |
 1417|   185k|            level_stack_.back().advance();
 1418|   185k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   185k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|   185k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|  1.53k|        {
  882|  1.53k|            destination_->flush();
  883|  1.53k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|   312k|        {
  915|   312k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 104k, False: 207k]
  ------------------
  916|   104k|            {
  917|   104k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 100k, False: 4.68k]
  |  Branch (917:86): [True: 69.3k, False: 30.8k]
  ------------------
  918|  69.3k|                {
  919|  69.3k|                    key_buffer_.push_back(',');
  920|  69.3k|                }
  921|   104k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|   104k|                key_buffer_.push_back('{');
  923|   104k|            }
  924|   207k|            else
  925|   207k|            {
  926|   207k|                switch (level_stack_.back().target_kind())
  927|   207k|                {
  928|   185k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 185k, False: 22.6k]
  ------------------
  929|   185k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 94.4k, False: 90.8k]
  |  Branch (929:65): [True: 91.7k, False: 2.75k]
  ------------------
  930|  91.7k|                        {
  931|  91.7k|                            key_buffer_.push_back(',');
  932|  91.7k|                        }
  933|   185k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|   185k|                        key_buffer_.push_back('{');
  935|   185k|                        break;
  936|  22.6k|                    default:
  ------------------
  |  Branch (936:21): [True: 22.6k, False: 185k]
  ------------------
  937|  22.6k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  22.6k|                        destination_->begin_object(length, tag, context, ec);
  939|  22.6k|                        break;
  940|   207k|                }
  941|   207k|            }
  942|   312k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   312k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|   312k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|   288k|        {
  947|   288k|            switch (level_stack_.back().target_kind())
  948|   288k|            {
  949|   274k|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 274k, False: 14.1k]
  ------------------
  950|   274k|                    key_buffer_.push_back('}');
  951|   274k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   274k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 274k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  952|   274k|                    level_stack_.pop_back();
  953|       |                    
  954|   274k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 3.82k, False: 270k]
  ------------------
  955|  3.82k|                    {
  956|  3.82k|                        destination_->key(key_buffer_,context, ec);
  957|  3.82k|                        key_buffer_.clear();
  958|  3.82k|                    }
  959|   270k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 94.5k, False: 175k]
  ------------------
  960|  94.5k|                    {
  961|  94.5k|                        key_buffer_.push_back(':');
  962|  94.5k|                    }
  963|   274k|                    level_stack_.back().advance();
  964|   274k|                    break;
  965|  14.1k|                default:
  ------------------
  |  Branch (965:17): [True: 14.1k, False: 274k]
  ------------------
  966|  14.1k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|  14.1k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 14.1k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  967|  14.1k|                    level_stack_.pop_back();
  968|  14.1k|                    level_stack_.back().advance();
  969|  14.1k|                    destination_->end_object(context, ec);
  970|  14.1k|                    break;
  971|   288k|            }
  972|   288k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   288k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|   288k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|   916k|        {
 1476|   916k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 411k, False: 505k]
  |  Branch (1476:49): [True: 496k, False: 9.14k]
  ------------------
 1477|   907k|            {
 1478|   907k|                key_.clear(); 
 1479|   907k|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|   907k|            }
 1481|       |
 1482|   916k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 411k, False: 505k]
  ------------------
 1483|   411k|            {
 1484|   411k|                switch (level_stack_.back().target_kind())
 1485|   411k|                {
 1486|   410k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 410k, False: 1.22k]
  ------------------
 1487|   410k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 404k, False: 5.42k]
  ------------------
 1488|   404k|                        {
 1489|   404k|                            key_buffer_.push_back(',');
 1490|   404k|                        }
 1491|   410k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|   410k|                        key_buffer_.push_back(':');
 1493|   410k|                        break;
 1494|  1.22k|                    default:
  ------------------
  |  Branch (1494:21): [True: 1.22k, False: 410k]
  ------------------
 1495|  1.22k|                        destination_->key(key_, context, ec);
 1496|  1.22k|                        break;
 1497|   411k|                }
 1498|   411k|            }
 1499|   505k|            else
 1500|   505k|            {
 1501|   505k|                switch (level_stack_.back().target_kind())
 1502|   505k|                {
 1503|   496k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 496k, False: 9.14k]
  ------------------
 1504|   496k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 95.3k, False: 400k]
  |  Branch (1504:65): [True: 94.9k, False: 398]
  ------------------
 1505|  94.9k|                        {
 1506|  94.9k|                            key_buffer_.push_back(',');
 1507|  94.9k|                        }
 1508|   496k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|   496k|                        break;
 1510|  9.14k|                    default:
  ------------------
  |  Branch (1510:21): [True: 9.14k, False: 496k]
  ------------------
 1511|  9.14k|                        destination_->null_value(tag, context, ec);
 1512|  9.14k|                        break;
 1513|   505k|                }
 1514|   505k|            }
 1515|       |
 1516|   916k|            level_stack_.back().advance();
 1517|   916k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   916k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|   916k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  25.1M|        {
 1423|  25.1M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 2.67M, False: 22.5M]
  |  Branch (1423:49): [True: 22.2M, False: 285k]
  ------------------
 1424|  24.9M|            {
 1425|  24.9M|                key_.clear(); 
 1426|  24.9M|                if (value)
  ------------------
  |  Branch (1426:21): [True: 81.1k, False: 24.8M]
  ------------------
 1427|  81.1k|                {
 1428|  81.1k|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|  81.1k|                }
 1430|  24.8M|                else
 1431|  24.8M|                {
 1432|  24.8M|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|  24.8M|                }
 1434|  24.9M|            }
 1435|       |
 1436|  25.1M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 2.67M, False: 22.5M]
  ------------------
 1437|  2.67M|            {
 1438|  2.67M|                switch (level_stack_.back().target_kind())
 1439|  2.67M|                {
 1440|  2.59M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 2.59M, False: 79.3k]
  ------------------
 1441|  2.59M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 2.57M, False: 23.0k]
  ------------------
 1442|  2.57M|                        {
 1443|  2.57M|                            key_buffer_.push_back(',');
 1444|  2.57M|                        }
 1445|  2.59M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|  2.59M|                        key_buffer_.push_back(':');
 1447|  2.59M|                        break;
 1448|  79.3k|                    default:
  ------------------
  |  Branch (1448:21): [True: 79.3k, False: 2.59M]
  ------------------
 1449|  79.3k|                        destination_->key(key_, context, ec);
 1450|  79.3k|                        break;
 1451|  2.67M|                }
 1452|  2.67M|            }
 1453|  22.5M|            else
 1454|  22.5M|            {
 1455|  22.5M|                switch (level_stack_.back().target_kind())
 1456|  22.5M|                {
 1457|  22.2M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 22.2M, False: 285k]
  ------------------
 1458|  22.2M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 19.6M, False: 2.60M]
  |  Branch (1458:65): [True: 19.6M, False: 3.82k]
  ------------------
 1459|  19.6M|                        {
 1460|  19.6M|                            key_buffer_.push_back(',');
 1461|  19.6M|                        }
 1462|  22.2M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|  22.2M|                        break;
 1464|   285k|                    default:
  ------------------
  |  Branch (1464:21): [True: 285k, False: 22.2M]
  ------------------
 1465|   285k|                        destination_->bool_value(value, tag, context, ec);
 1466|   285k|                        break;
 1467|  22.5M|                }
 1468|  22.5M|            }
 1469|       |
 1470|  25.1M|            level_stack_.back().advance();
 1471|  25.1M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  25.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  25.1M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|   989k|        {
 1073|   989k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 127k, False: 862k]
  ------------------
 1074|   127k|            {
 1075|   127k|                switch (level_stack_.back().target_kind())
 1076|   127k|                {
 1077|   124k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 124k, False: 2.39k]
  ------------------
 1078|   124k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 122k, False: 2.27k]
  ------------------
 1079|   122k|                        {
 1080|   122k|                            key_buffer_.push_back(',');
 1081|   122k|                        }
 1082|   124k|                        key_buffer_.push_back('\"');
 1083|   124k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|   124k|                        key_buffer_.push_back('\"');
 1085|   124k|                        key_buffer_.push_back(':');
 1086|   124k|                        break;
 1087|  2.39k|                    default:
  ------------------
  |  Branch (1087:21): [True: 2.39k, False: 124k]
  ------------------
 1088|  2.39k|                        destination_->key(value, context, ec);
 1089|  2.39k|                        break;
 1090|   127k|                }
 1091|   127k|            }
 1092|   862k|            else
 1093|   862k|            {
 1094|   862k|                switch (level_stack_.back().target_kind())
 1095|   862k|                {
 1096|   837k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 837k, False: 24.2k]
  ------------------
 1097|   837k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 703k, False: 134k]
  |  Branch (1097:65): [True: 702k, False: 1.19k]
  ------------------
 1098|   702k|                        {
 1099|   702k|                            key_buffer_.push_back(',');
 1100|   702k|                        }
 1101|   837k|                        key_buffer_.push_back('\"');
 1102|   837k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|   837k|                        key_buffer_.push_back('\"');
 1104|   837k|                        break;
 1105|  24.2k|                    default:
  ------------------
  |  Branch (1105:21): [True: 24.2k, False: 837k]
  ------------------
 1106|  24.2k|                        destination_->string_value(value, tag, context, ec);
 1107|  24.2k|                        break;
 1108|   862k|                }
 1109|   862k|            }
 1110|       |
 1111|   989k|            level_stack_.back().advance();
 1112|   989k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   989k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|   989k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  65.4k|        {
 1120|  65.4k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 30.1k, False: 35.2k]
  |  Branch (1120:49): [True: 32.2k, False: 3.03k]
  ------------------
 1121|  62.3k|            {
 1122|  62.3k|                key_.clear();
 1123|  62.3k|                switch (tag)
 1124|  62.3k|                {
 1125|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 0, False: 62.3k]
  ------------------
 1126|      0|                        bytes_to_base64(value.begin(), value.end(), key_);
 1127|      0|                        break;
 1128|      0|                    case semantic_tag::base16:
  ------------------
  |  Branch (1128:21): [True: 0, False: 62.3k]
  ------------------
 1129|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|      0|                        break;
 1131|  62.3k|                    default:
  ------------------
  |  Branch (1131:21): [True: 62.3k, False: 0]
  ------------------
 1132|  62.3k|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  62.3k|                        break;
 1134|  62.3k|                }
 1135|  62.3k|            }
 1136|       |
 1137|  65.4k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 30.1k, False: 35.2k]
  ------------------
 1138|  30.1k|            {
 1139|  30.1k|                switch (level_stack_.back().target_kind())
 1140|  30.1k|                {
 1141|  28.9k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 28.9k, False: 1.21k]
  ------------------
 1142|  28.9k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 20.4k, False: 8.41k]
  ------------------
 1143|  20.4k|                        {
 1144|  20.4k|                            key_buffer_.push_back(',');
 1145|  20.4k|                        }
 1146|  28.9k|                        key_buffer_.push_back('\"');
 1147|  28.9k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|  28.9k|                        key_buffer_.push_back('\"');
 1149|  28.9k|                        key_buffer_.push_back(':');
 1150|  28.9k|                        break;
 1151|  1.21k|                    default:
  ------------------
  |  Branch (1151:21): [True: 1.21k, False: 28.9k]
  ------------------
 1152|  1.21k|                        destination_->key(key_, context, ec);
 1153|  1.21k|                        break;
 1154|  30.1k|                }
 1155|  30.1k|            }
 1156|  35.2k|            else
 1157|  35.2k|            {
 1158|  35.2k|                switch (level_stack_.back().target_kind())
 1159|  35.2k|                {
 1160|  32.2k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 32.2k, False: 3.03k]
  ------------------
 1161|  32.2k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 8.85k, False: 23.4k]
  |  Branch (1161:65): [True: 8.33k, False: 518]
  ------------------
 1162|  8.33k|                        {
 1163|  8.33k|                            key_buffer_.push_back(',');
 1164|  8.33k|                        }
 1165|  32.2k|                        key_buffer_.push_back('\"');
 1166|  32.2k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  32.2k|                        key_buffer_.push_back('\"');
 1168|  32.2k|                        break;
 1169|  3.03k|                    default:
  ------------------
  |  Branch (1169:21): [True: 3.03k, False: 32.2k]
  ------------------
 1170|  3.03k|                        destination_->byte_string_value(value, tag, context, ec);
 1171|  3.03k|                        break;
 1172|  35.2k|                }
 1173|  35.2k|            }
 1174|       |
 1175|  65.4k|            level_stack_.back().advance();
 1176|  65.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  65.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  65.4k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|  1.08M|        {
 1184|  1.08M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 477k, False: 604k]
  |  Branch (1184:49): [True: 213k, False: 391k]
  ------------------
 1185|   691k|            {
 1186|   691k|                key_.clear();
 1187|   691k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|   691k|            }
 1189|       |
 1190|  1.08M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 477k, False: 604k]
  ------------------
 1191|   477k|            {
 1192|   477k|                switch (level_stack_.back().target_kind())
 1193|   477k|                {
 1194|   182k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 182k, False: 295k]
  ------------------
 1195|   182k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 178k, False: 4.58k]
  ------------------
 1196|   178k|                        {
 1197|   178k|                            key_buffer_.push_back(',');
 1198|   178k|                        }
 1199|   182k|                        key_buffer_.push_back('\"');
 1200|   182k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|   182k|                        key_buffer_.push_back('\"');
 1202|   182k|                        key_buffer_.push_back(':');
 1203|   182k|                        break;
 1204|   295k|                    default:
  ------------------
  |  Branch (1204:21): [True: 295k, False: 182k]
  ------------------
 1205|   295k|                        destination_->key(key_, context, ec);
 1206|   295k|                        break;
 1207|   477k|                }
 1208|   477k|            }
 1209|   604k|            else
 1210|   604k|            {
 1211|   604k|                switch (level_stack_.back().target_kind())
 1212|   604k|                {
 1213|   213k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 213k, False: 391k]
  ------------------
 1214|   213k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 28.9k, False: 184k]
  |  Branch (1214:65): [True: 26.1k, False: 2.74k]
  ------------------
 1215|  26.1k|                        {
 1216|  26.1k|                            key_buffer_.push_back(',');
 1217|  26.1k|                        }
 1218|   213k|                        key_buffer_.push_back('\"');
 1219|   213k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|   213k|                        key_buffer_.push_back('\"');
 1221|   213k|                        break;
 1222|   391k|                    default:
  ------------------
  |  Branch (1222:21): [True: 391k, False: 213k]
  ------------------
 1223|   391k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|   391k|                        break;
 1225|   604k|                }
 1226|   604k|            }
 1227|       |
 1228|  1.08M|            level_stack_.back().advance();
 1229|  1.08M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.08M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|  1.08M|        }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|   797k|    {
  295|   797k|        visit_begin_array(length, tag, context, ec);
  296|   797k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   797k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|   797k|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|  12.5M|    {
  364|  12.5M|        visit_uint64(value, tag, context, ec);
  365|  12.5M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  12.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  12.5M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|   760k|    {
  301|   760k|        visit_end_array(context, ec);
  302|   760k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   760k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|   760k|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  3.10M|    {
  373|  3.10M|        visit_int64(value, tag, context, ec);
  374|  3.10M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.10M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  3.10M|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|   185k|    {
  391|   185k|        visit_double(value, tag, context, ec);
  392|   185k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   185k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|   185k|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  6.30k|            : destination_(std::addressof(visitor)), 
  856|  6.30k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  6.30k|        {
  858|  6.30k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  6.30k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|  6.30k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|   312k|    {
  277|   312k|        visit_begin_object(length, tag, context, ec);
  278|   312k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   312k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|   312k|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|   989k|    {
  333|   989k|        visit_string(value, tag, context, ec);
  334|   989k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   989k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|   989k|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|   916k|    {
  315|   916k|        visit_null(tag, context, ec);
  316|   916k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   916k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|   916k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  25.1M|    {
  324|  25.1M|        visit_bool(value, tag, context, ec);
  325|  25.1M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  25.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  25.1M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  65.4k|    {
  344|  65.4k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  65.4k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  65.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  65.4k|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|  1.08M|    {
  355|  1.08M|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|  1.08M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.08M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|  1.08M|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|   288k|    {
  283|   288k|        visit_end_object(context, ec);
  284|   288k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   288k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|   288k|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|  1.53k|    {
   58|  1.53k|        visit_flush();
   59|  1.53k|    }

_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  18.9k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|   139k|        {
  346|   139k|            visit_begin_array(length, tag, context, ec);
  347|   139k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   139k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|   139k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|   562k|        {
  358|   562k|            visit_key(name, context, ec);
  359|   562k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   562k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|   562k|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|   122k|        {
  352|   122k|            visit_end_array(context, ec);
  353|   122k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   122k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|   122k|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|   942k|        {
  415|   942k|            visit_uint64(value, tag, context, ec);
  416|   942k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   942k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|   942k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|   240k|        {
  424|   240k|            visit_int64(value, tag, context, ec);
  425|   240k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   240k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|   240k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  89.6k|        {
  442|  89.6k|            visit_double(value, tag, context, ec);
  443|  89.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  89.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|  89.6k|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  1.53k|        {
  109|  1.53k|            visit_flush();
  110|  1.53k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  22.6k|        {
  328|  22.6k|            visit_begin_object(length, tag, context, ec);
  329|  22.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  22.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  22.6k|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  14.1k|        {
  334|  14.1k|            visit_end_object(context, ec);
  335|  14.1k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  14.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  14.1k|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  9.14k|        {
  366|  9.14k|            visit_null(tag, context, ec);
  367|  9.14k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  9.14k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  9.14k|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|   285k|        {
  375|   285k|            visit_bool(value, tag, context, ec);
  376|   285k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   285k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|   285k|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|  24.2k|        {
  384|  24.2k|            visit_string(value, tag, context, ec);
  385|  24.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  24.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  24.2k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|  3.03k|        {
  395|  3.03k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|  3.03k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.03k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|  3.03k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|   391k|        {
  406|   391k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|   391k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   391k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|   391k|        }
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  12.6k|        basic_json_visitor() = default;
_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  6.30k|        basic_default_json_visitor() = default;

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

_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2ERS7_:
  256|  96.1k|            : buf_ptr(std::addressof(buf))
  257|  96.1k|        {
  258|  96.1k|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE9push_backEc:
  287|  1.75M|        {
  288|  1.75M|            buf_ptr->push_back(ch);
  289|  1.75M|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvEC2ERS5_:
  315|  6.30k|            : buf_ptr(std::addressof(buf))
  316|  6.30k|        {
  317|  6.30k|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE9push_backEh:
  334|   115M|        {
  335|   115M|            buf_ptr->push_back(static_cast<value_type>(ch));
  336|   115M|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE5flushEv:
  325|  7.84k|        {
  326|  7.84k|        }

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  6.30k|    {
  194|  6.30k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 6.30k, False: 0]
  ------------------
  195|  6.30k|        {
  196|  6.30k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  6.30k|        }
  198|  6.30k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  6.30k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  6.30k|          chunk_size_(default_max_chunk_size)
  178|  6.30k|    {
  179|  6.30k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  6.30k|        data_end_ = chunk_;
  181|  6.30k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  6.30k|      : std::basic_istream<CharT>(&nb_)
   58|  6.30k|    {
   59|  6.30k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  6.30k|        null_buffer() = default;
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8is_errorEv:
  276|  45.2M|    {
  277|  45.2M|        return stream_ptr_->bad();  
  278|  45.2M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  47.1M|    {
  378|  47.1M|        std::size_t len = 0;
  379|  47.1M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 47.1M, False: 12.8k]
  ------------------
  380|  47.1M|        {
  381|  47.1M|            len = (std::min)(remaining_, length);
  382|  47.1M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  47.1M|            data_end_ += len;
  384|  47.1M|            remaining_ -= len;
  385|  47.1M|            position_ += len;
  386|  47.1M|        }
  387|  47.1M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 47.1M, False: 15.4k]
  ------------------
  388|  47.1M|        {
  389|  47.1M|            return len;
  390|  47.1M|        }
  391|  15.4k|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 15.4k, False: 0]
  ------------------
  392|  15.4k|        {
  393|  15.4k|            data_end_ = chunk_;
  394|  15.4k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|  15.4k|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 11.1k, False: 4.29k]
  ------------------
  396|  11.1k|            {
  397|  11.1k|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|  11.1k|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|  11.1k|                data_end_ += len2;
  400|  11.1k|                remaining_ -= len2;
  401|  11.1k|                position_ += len2;
  402|  11.1k|                len += len2;
  403|  11.1k|            }
  404|  15.4k|            return len;
  405|  15.4k|        }
  406|      0|        else
  407|      0|        {
  408|      0|            if (stream_ptr_->eof())
  ------------------
  |  Branch (408:17): [True: 0, False: 0]
  ------------------
  409|      0|            {
  410|      0|                remaining_ = 0;
  411|      0|                return 0;
  412|      0|            }
  413|      0|            JSONCONS_TRY
  ------------------
  |  |   37|      0|    #define JSONCONS_TRY try
  ------------------
  414|      0|            {
  415|      0|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  416|      0|                std::size_t len2 = static_cast<std::size_t>(count);
  417|      0|                if (len2 < length-len)
  ------------------
  |  Branch (417:21): [True: 0, False: 0]
  ------------------
  418|      0|                {
  419|      0|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  420|      0|                }
  421|      0|                len += len2;
  422|      0|                position_ += len2;
  423|      0|                return len;
  424|      0|            }
  425|      0|            JSONCONS_CATCH(const std::exception&)     
  426|      0|            {
  427|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  428|      0|                return 0;
  429|      0|            }
  430|      0|        }
  431|  47.1M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  16.1k|    {
  443|  16.1k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 4.37k, False: 11.7k]
  ------------------
  444|  4.37k|        {
  445|  4.37k|            return 0;
  446|  4.37k|        }
  447|       |
  448|  11.7k|        JSONCONS_TRY
  ------------------
  |  |   37|  11.7k|    #define JSONCONS_TRY try
  ------------------
  449|  11.7k|        {
  450|  11.7k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  11.7k|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  11.7k|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 6.29k, False: 5.48k]
  ------------------
  454|  6.29k|            {
  455|  6.29k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  6.29k|            }
  457|  11.7k|            return length;
  458|  11.7k|        }
  459|  11.7k|        JSONCONS_CATCH(const std::exception&)     
  460|  11.7k|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  11.7k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6detail4spanIKhLm18446744073709551615EEEmOT_:
  352|  2.02M|    {
  353|  2.02M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  2.02M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 918k, False: 1.10M]
  |  |  ------------------
  ------------------
  354|   918k|        {
  355|   918k|            return span<const value_type>{};
  356|   918k|        }
  357|  1.10M|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 319, False: 1.10M]
  |  Branch (357:32): [True: 157, False: 162]
  ------------------
  358|    157|        {
  359|    157|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|    157|            data_end_ = chunk_;
  361|    157|        }
  362|  1.10M|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 1.09k, False: 1.10M]
  ------------------
  363|  1.09k|        {
  364|  1.09k|            buffer.clear();
  365|  1.09k|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|  1.09k|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|  1.09k|        }
  368|       |
  369|  1.10M|        const value_type* data = data_end_;
  370|  1.10M|        data_end_ += length;
  371|  1.10M|        remaining_ -= length;
  372|  1.10M|        position_ += length;
  373|  1.10M|        return span<const value_type>(data, length);
  374|  1.10M|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  746|  1.09k|    {
  747|  1.09k|        std::size_t unread = length;
  748|       |
  749|  4.23k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 3.65k, False: 581]
  |  Branch (749:30): [True: 3.14k, False: 510]
  ------------------
  750|  3.14k|        {
  751|  3.14k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 560, False: 2.58k]
  |  Branch (751:44): [True: 559, False: 1]
  ------------------
  752|    559|            {
  753|    559|                std::size_t n = source.chunk_size();
  754|    559|                std::size_t offset = buffer.size();
  755|    559|                buffer.resize(offset+n);
  756|    559|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|    559|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|    559|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 64, False: 495]
  |  |  ------------------
  ------------------
  758|     64|                {
  759|     64|                    buffer.resize(offset+actual);
  760|     64|                }
  761|    559|                unread -= actual;
  762|    559|            }
  763|  2.58k|            else
  764|  2.58k|            {
  765|  2.58k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  2.58k|                std::size_t offset = buffer.size();
  767|  2.58k|                buffer.resize(offset+n);
  768|  2.58k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  2.58k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|  2.58k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 260, False: 2.32k]
  |  |  ------------------
  ------------------
  770|    260|                {
  771|    260|                    buffer.resize(offset + actual);
  772|    260|                }
  773|  2.58k|                unread -= actual;
  774|  2.58k|            }
  775|  3.14k|        }
  776|  1.09k|        return length - unread;
  777|  1.09k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  3.65k|    {
  272|  3.65k|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 1.07k, False: 2.58k]
  |  Branch (272:35): [True: 510, False: 560]
  ------------------
  273|  3.65k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|  3.14k|    {
  347|  3.14k|        return remaining_;
  348|  3.14k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|  3.70k|    {
  262|  3.70k|        return chunk_size_;
  263|  3.70k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|    559|    {
  436|    559|        auto len = fill_buffer(chunk, chunk_size);
  437|    559|        position_ += len;
  438|    559|        return len;
  439|    559|    }

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  641|  55.9k|    basic_bigint() = default;
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  293|   165k|        : word_allocator_type(alloc)
  294|   165k|    {
  295|   165k|        ::new (&inlined_) inlined_storage();
  296|   165k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  113|   165k|            : is_allocated_(false),
  114|   165k|            is_negative_(false),
  115|   165k|            size_(0),
  116|   165k|            values_{0, 0}
  117|   165k|        {
  118|   165k|        }
_ZN8jsoncons9to_bigintIcEENS_16to_bigint_resultIT_EEPKS2_mRNS_12basic_bigintINSt3__19allocatorImEEEE:
 2135|  19.2k|{
 2136|  19.2k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  19.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 19.2k]
  |  |  ------------------
  ------------------
 2137|      0|    {
 2138|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2139|      0|    }
 2140|       |
 2141|  19.2k|    if (*data == '-')
  ------------------
  |  Branch (2141:9): [True: 2.92k, False: 16.3k]
  ------------------
 2142|  2.92k|    {
 2143|  2.92k|        return jsoncons::detail::to_bigint(data+1, length-1, true, value, std::allocator<uint64_t>{}); 
 2144|  2.92k|    }
 2145|  16.3k|    else
 2146|  16.3k|    {
 2147|  16.3k|        return jsoncons::detail::to_bigint(data, length, false, value, std::allocator<uint64_t>{}); 
 2148|  16.3k|    }
 2149|  19.2k|}
_ZN8jsoncons16to_bigint_resultIcEC2EPKcNSt3__14errcE:
  569|  19.2k|        : ptr(ptr_), ec(ec_)
  570|  19.2k|    {
  571|  19.2k|    }
_ZN8jsoncons6detail9to_bigintIcNSt3__19allocatorImEEEENS_16to_bigint_resultIT_EEPKS6_mbRNS_12basic_bigintIT0_EERKSB_:
 2048|  19.2k|{
 2049|  19.2k|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  19.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 19.2k]
  |  |  ------------------
  ------------------
 2050|      0|    {
 2051|      0|        return to_bigint_result<CharT>(data, std::errc::invalid_argument);
 2052|      0|    }
 2053|       |
 2054|  19.2k|    using word_type = typename basic_bigint<Allocator>::word_type;
 2055|       |
 2056|  19.2k|    const CharT* last = data + length;
 2057|  19.2k|    const CharT* p = data;
 2058|       |
 2059|  20.2k|    while (p < last && *p == '0')
  ------------------
  |  Branch (2059:12): [True: 19.2k, False: 972]
  |  Branch (2059:24): [True: 972, False: 18.3k]
  ------------------
 2060|    972|    {
 2061|    972|        ++p;
 2062|    972|    }
 2063|  19.2k|    if (p == last)
  ------------------
  |  Branch (2063:9): [True: 972, False: 18.3k]
  ------------------
 2064|    972|    {
 2065|    972|        value = std::move(basic_bigint<Allocator>{0, alloc});
 2066|    972|        return to_bigint_result<CharT>(last, std::errc{});
 2067|    972|    }
 2068|  18.3k|    std::size_t num_digits = last - data;
 2069|  18.3k|    std::size_t num_words;
 2070|  18.3k|    if (length < 10)
  ------------------
  |  Branch (2070:9): [True: 664, False: 17.6k]
  ------------------
 2071|    664|    {
 2072|    664|        num_words = 1;
 2073|    664|    }
 2074|  17.6k|    else
 2075|  17.6k|    {
 2076|  17.6k|        std::size_t num_bits = (std::size_t)(((num_digits * detail::bits_per_digit[10]) >> 10) + 1);
 2077|  17.6k|        num_words = (num_bits + 63) >> 6;
 2078|  17.6k|    }
 2079|       |
 2080|  18.3k|    basic_bigint<Allocator> v(0, alloc);
 2081|  18.3k|    v.reserve(num_words);
 2082|   388k|    for (std::size_t i = 0; i < length; i++)
  ------------------
  |  Branch (2082:29): [True: 370k, False: 18.3k]
  ------------------
 2083|   370k|    {
 2084|   370k|        CharT c = data[i];
 2085|   370k|        if (JSONCONS_LIKELY(c >= '0' && c <= '9'))
  ------------------
  |  |   77|   741k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 370k, False: 0]
  |  |  |  Branch (77:48): [True: 370k, False: 0]
  |  |  |  Branch (77:48): [True: 370k, False: 0]
  |  |  ------------------
  ------------------
 2086|   370k|        {
 2087|   370k|            v *= 10u;
 2088|   370k|            v += (word_type)(c - '0');
 2089|   370k|        }
 2090|      0|        else
 2091|      0|        {
 2092|      0|            return to_bigint_result<CharT>(data + i, std::errc::invalid_argument);
 2093|      0|        }
 2094|   370k|    }
 2095|       |
 2096|  18.3k|    if (neg)
  ------------------
  |  Branch (2096:9): [True: 2.92k, False: 15.3k]
  ------------------
 2097|  2.92k|    {
 2098|  2.92k|        v.set_negative(true);
 2099|  2.92k|    }
 2100|       |
 2101|  18.3k|    value = std::move(v);
 2102|  18.3k|    return to_bigint_result<CharT>(last, std::errc{});
 2103|  18.3k|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  38.5k|        : storage_(n, alloc)
  694|  38.5k|    {
  695|  38.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  38.5k|        : word_allocator_type(alloc)
  361|  38.5k|    {
  362|  38.5k|        ::new (&inlined_) inlined_storage(n);
  363|  38.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  38.5k|            : is_allocated_(false),
  126|  38.5k|            is_negative_(n < 0),
  127|  38.5k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 38.5k, False: 0]
  ------------------
  128|  38.5k|        {
  129|  38.5k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 0, False: 38.5k]
  ------------------
  130|  38.5k|            values_[1] = 0;
  131|  38.5k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  842|   395k|    {
  843|   395k|        storage_ = y.storage_;
  844|   395k|        return *this;
  845|   395k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  366|   395k|    {
  367|   395k|        if (this != &other)
  ------------------
  |  Branch (367:13): [True: 395k, False: 0]
  ------------------
  368|   395k|        {
  369|   395k|            auto other_view = other.get_storage_view();
  370|   395k|            resize(other_view.size());
  371|   395k|            auto this_view = get_storage_view();
  372|   395k|            if (other_view.size() > 0)
  ------------------
  |  Branch (372:17): [True: 245k, False: 149k]
  ------------------
  373|   245k|            {
  374|   245k|                common_.is_negative_ = other.common_.is_negative_;
  375|   245k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  376|   245k|            }
  377|   395k|        }
  378|   395k|        return *this;
  379|   395k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  527|  1.03M|    {
  528|  1.03M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (528:16): [True: 100k, False: 934k]
  ------------------
  529|   100k|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  530|  1.03M|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  531|  1.03M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   64|  1.03M|            : data_(data), size_(size)
   65|  1.03M|        {
   66|  1.03M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  534|  1.38M|    {
  535|  1.38M|        size_type old_length = common_.size_;
  536|  1.38M|        reserve(new_length);
  537|  1.38M|        common_.size_ = new_length;
  538|       |
  539|  1.38M|        if (old_length < new_length)
  ------------------
  |  Branch (539:13): [True: 1.12M, False: 256k]
  ------------------
  540|  1.12M|        {
  541|  1.12M|            if (is_allocated())
  ------------------
  |  Branch (541:17): [True: 79.5k, False: 1.04M]
  ------------------
  542|  79.5k|            {
  543|  79.5k|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  544|  79.5k|            }
  545|  1.04M|            else
  546|  1.04M|            {
  547|  1.04M|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   49|  1.04M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 1.04M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  548|  2.30M|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (548:48): [True: 1.25M, False: 1.04M]
  ------------------
  549|  1.25M|                {
  550|  1.25M|                    inlined_.values_[i] = 0;
  551|  1.25M|                }
  552|  1.04M|            }
  553|  1.12M|        }
  554|  1.38M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  452|  1.40M|    {
  453|  1.40M|       if (capacity() < n)
  ------------------
  |  Branch (453:12): [True: 23.6k, False: 1.37M]
  ------------------
  454|  23.6k|       {
  455|  23.6k|           if (!is_allocated())
  ------------------
  |  Branch (455:16): [True: 23.6k, False: 0]
  ------------------
  456|  23.6k|           {
  457|  23.6k|               size_type size = inlined_.size_;
  458|  23.6k|               size_type is_neg = inlined_.is_negative_;
  459|  23.6k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  460|       |
  461|  23.6k|               ::new (&allocated_) allocated_storage();
  462|  23.6k|               allocated_.reserve(n, get_allocator());
  463|  23.6k|               allocated_.size_ = size;
  464|  23.6k|               allocated_.is_negative_ = is_neg;
  465|  23.6k|               if (n >= 1)
  ------------------
  |  Branch (465:20): [True: 23.6k, False: 0]
  ------------------
  466|  23.6k|               {
  467|  23.6k|                   allocated_.data_[0] = values[0];
  468|  23.6k|               }
  469|  23.6k|               if (n >= 2)
  ------------------
  |  Branch (469:20): [True: 23.6k, False: 0]
  ------------------
  470|  23.6k|               {
  471|  23.6k|                   allocated_.data_[1] = values[1];
  472|  23.6k|               }
  473|  23.6k|           }
  474|      0|           else
  475|      0|           {
  476|      0|               allocated_.reserve(n, get_allocator());
  477|      0|           }
  478|  23.6k|       }
  479|  1.40M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  505|  1.40M|    {
  506|  1.40M|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (506:16): [True: 94.5k, False: 1.30M]
  ------------------
  507|  1.40M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  203|  23.6k|            : is_allocated_(true),
  204|  23.6k|            is_negative_(false)
  205|  23.6k|        {
  206|  23.6k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  255|  23.6k|        {
  256|  23.6k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   49|  23.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 23.6k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  257|  23.6k|            size_type capacity_new = round_up(n);
  258|       |
  259|  23.6k|            real_allocator_type alloc(a);
  260|  23.6k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  261|  23.6k|            if (size_ > 0)
  ------------------
  |  Branch (261:17): [True: 0, False: 23.6k]
  ------------------
  262|      0|            {
  263|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  264|      0|            }
  265|  23.6k|            if (data_ != nullptr)
  ------------------
  |  Branch (265:17): [True: 0, False: 23.6k]
  ------------------
  266|      0|            {
  267|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  268|      0|            }
  269|  23.6k|            capacity_ = capacity_new;
  270|  23.6k|            data_ = data_new;
  271|  23.6k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  275|  23.6k|        {
  276|  23.6k|            size_type remainder = i % mem_unit;
  277|  23.6k|            size_type off = mem_unit - remainder;
  278|  23.6k|            bool testoff = i < max_size - off;
  279|  23.6k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   49|  23.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 23.6k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  280|       |
  281|  23.6k|            return i + off;
  282|  23.6k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  482|   929k|    {
  483|   929k|        return static_cast<const word_allocator_type&>(*this);
  484|   929k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  500|  4.41M|    {
  501|  4.41M|        return common_.is_allocated_;
  502|  4.41M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   84|  2.21M|        {
   85|  2.21M|            return size_;
   86|  2.21M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  520|  4.38M|    {
  521|  4.38M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (521:16): [True: 427k, False: 3.96M]
  ------------------
  522|   427k|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  523|  4.38M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  524|  4.38M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   64|  4.38M|            : data_(data), size_(size)
   65|  4.38M|        {
   66|  4.38M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   79|   284k|        {
   80|   284k|            return data_;
   81|   284k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   79|   245k|        {
   80|   245k|            return data_;
   81|   245k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  823|  18.3k|    {
  824|  18.3k|        storage_.reserve(n);
  825|  18.3k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIjEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  998|   370k|    {
  999|   370k|        auto this_view = get_storage_view();
 1000|   370k|        size_type len0 = this_view.size();
 1001|   370k|        word_type dig = this_view[0];
 1002|   370k|        word_type carry = 0;
 1003|       |
 1004|   370k|        resize(this_view.size() + 1);
 1005|   370k|        this_view = get_storage_view();
 1006|       |
 1007|   370k|        size_type i = 0;
 1008|   751k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 381k, False: 370k]
  ------------------
 1009|   381k|        {
 1010|   381k|            word_type hi;
 1011|   381k|            word_type lo;
 1012|   381k|            DDproduct( dig, y, hi, lo );
 1013|   381k|            this_view[i] = lo + carry;
 1014|   381k|            dig = this_view[i+1];
 1015|   381k|            carry = hi + (this_view[i] < lo);
 1016|   381k|        }
 1017|   370k|        this_view[i] = carry;
 1018|   370k|        reduce();
 1019|   370k|        return *this;
 1020|   370k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  718|  2.94M|    {
  719|  2.94M|        return storage_.get_storage_view();
  720|  2.94M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   84|  5.22M|        {
   85|  5.22M|            return size_;
   86|  5.22M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   69|  4.48M|        {
   70|  4.48M|            return data_[i];
   71|  4.48M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  818|   988k|    {
  819|   988k|        storage_.resize(new_length);
  820|   988k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1781|   507k|    {
 1782|   507k|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1783|   507k|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1784|       |
 1785|   507k|        lo = loA * loB;
 1786|   507k|        hi = hiA * hiB;
 1787|   507k|        word_type mid1 = loA * hiB;
 1788|   507k|        word_type mid2 = hiA * loB;
 1789|   507k|        word_type old = lo;
 1790|   507k|        lo += mid1 << word_type_half_bits;
 1791|   507k|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1792|   507k|        old = lo;
 1793|   507k|        lo += mid2 << word_type_half_bits;
 1794|   507k|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1795|   507k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1917|  1.04M|    {
 1918|  1.04M|        storage_.reduce();
 1919|  1.04M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  429|  1.04M|    {
  430|  1.04M|        if (common_.size_ > 0)
  ------------------
  |  Branch (430:13): [True: 1.04M, False: 0]
  ------------------
  431|  1.04M|        {
  432|  1.04M|            auto this_view = get_storage_view();
  433|  1.04M|            word_type* p = this_view.end() - 1;
  434|  1.04M|            word_type* first = this_view.begin();
  435|  1.99M|            while ( p >= first )
  ------------------
  |  Branch (435:21): [True: 1.96M, False: 25.5k]
  ------------------
  436|  1.96M|            {
  437|  1.96M|                if ( *p )
  ------------------
  |  Branch (437:22): [True: 1.02M, False: 943k]
  ------------------
  438|  1.02M|                {
  439|  1.02M|                    break;
  440|  1.02M|                }
  441|   943k|                --common_.size_;
  442|   943k|                --p;
  443|   943k|            }
  444|  1.04M|        }
  445|  1.04M|        if (common_.size_ == 0)
  ------------------
  |  Branch (445:13): [True: 25.5k, False: 1.02M]
  ------------------
  446|  25.5k|        {
  447|  25.5k|            common_.is_negative_ = false;
  448|  25.5k|        }
  449|  1.04M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   93|  1.04M|        {
   94|  1.04M|            return data_ + size_;
   95|  1.04M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   88|  1.04M|        {
   89|  1.04M|            return data_;
   90|  1.04M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  889|   459k|    {
  890|   459k|        if ( is_negative())
  ------------------
  |  Branch (890:14): [True: 0, False: 459k]
  ------------------
  891|      0|            return *this -= -basic_bigint<Allocator>(y);
  892|       |
  893|   459k|        word_type d;
  894|   459k|        word_type carry = 0;
  895|       |
  896|   459k|        auto this_view = get_storage_view();
  897|   459k|        resize(this_view.size() + 1);
  898|       |
  899|   459k|        this_view = get_storage_view();
  900|   459k|        const size_type this_size = this_view.size();
  901|   459k|        size_type y_size = 1;
  902|       |
  903|   459k|        d = this_view[0] + carry;
  904|   459k|        carry = d < carry;
  905|   459k|        this_view[0] = d + y;
  906|   459k|        if (this_view[0] < d)
  ------------------
  |  Branch (906:13): [True: 1.50k, False: 458k]
  ------------------
  907|  1.50k|            carry = 1;
  908|       |
  909|   461k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (909:36): [True: 438k, False: 22.9k]
  |  Branch (909:53): [True: 1.50k, False: 436k]
  ------------------
  910|  1.50k|        {
  911|  1.50k|            d = this_view[i] + carry;
  912|  1.50k|            carry = d < carry;
  913|  1.50k|            this_view[i] = d;
  914|  1.50k|        }
  915|   459k|        reduce();
  916|   459k|        return *this;
  917|   459k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  728|  2.02M|    {
  729|  2.02M|        return storage_.is_negative();
  730|  2.02M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  510|  2.02M|    {
  511|  2.02M|        return common_.is_negative_;
  512|  2.02M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|   444k|        : storage_(n, alloc)
  694|   444k|    {
  695|   444k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|   444k|        : word_allocator_type(alloc)
  361|   444k|    {
  362|   444k|        ::new (&inlined_) inlined_storage(n);
  363|   444k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|   444k|            : is_allocated_(false),
  139|   444k|            is_negative_(false),
  140|   444k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 152k, False: 292k]
  ------------------
  141|   444k|        {
  142|   444k|            values_[0] = n;
  143|   444k|            values_[1] = 0;
  144|   444k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  835|  15.5k|    {
  836|  15.5k|        basic_bigint<Allocator> v(*this);
  837|  15.5k|        v.set_negative(!v.is_negative());
  838|  15.5k|        return v;
  839|  15.5k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  671|   127k|        : storage_(other.storage_)
  672|   127k|    {
  673|   127k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  299|   127k|        : word_allocator_type(other.get_allocator())
  300|   127k|    {
  301|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  302|       |# pragma GCC diagnostic push
  303|       |# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  304|       |#endif
  305|   127k|        if (!other.is_allocated())
  ------------------
  |  Branch (305:13): [True: 107k, False: 19.3k]
  ------------------
  306|   107k|        {
  307|   107k|            ::new (&inlined_) inlined_storage(other.inlined_);
  308|   107k|        }
  309|  19.3k|        else
  310|  19.3k|        {
  311|  19.3k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  312|  19.3k|        }
  313|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  314|       |# pragma GCC diagnostic pop
  315|       |#endif
  316|   127k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  178|   489k|            : is_allocated_(false),
  179|   489k|            is_negative_(stor.is_negative_),
  180|   489k|            size_(stor.size_)
  181|   489k|        {
  182|   489k|            values_[0] = stor.values_[0];
  183|   489k|            values_[1] = stor.values_[1];
  184|   489k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  209|  77.2k|            : is_allocated_(true),
  210|  77.2k|              is_negative_(stor.is_negative_),
  211|  77.2k|              size_(stor.size_),
  212|  77.2k|              capacity_(stor.capacity_)
  213|  77.2k|        {
  214|  77.2k|            real_allocator_type alloc(a);
  215|       |
  216|  77.2k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  217|  77.2k|            JSONCONS_TRY
  ------------------
  |  |   37|  77.2k|    #define JSONCONS_TRY try
  ------------------
  218|  77.2k|            {
  219|  77.2k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  220|  77.2k|            }
  221|  77.2k|            JSONCONS_CATCH(...)
  222|  77.2k|            {
  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|  77.2k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   49|  77.2k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 77.2k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  228|  77.2k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  229|  77.2k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  954|  15.5k|    {
  955|  15.5k|        auto y_view = y.get_storage_view();
  956|       |
  957|  15.5k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (957:14): [True: 15.5k, False: 0]
  ------------------
  958|  15.5k|            return *this += -y;
  959|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (959:15): [True: 0, False: 0]
  |  Branch (959:33): [True: 0, False: 0]
  |  Branch (959:48): [True: 0, False: 0]
  |  Branch (959:65): [True: 0, False: 0]
  ------------------
  960|      0|            return *this = -(y - *this);
  961|      0|        word_type borrow = 0;
  962|      0|        word_type d;
  963|      0|        auto this_view = get_storage_view();
  964|      0|        const size_type this_size = this_view.size();
  965|      0|        const size_type y_size = y_view.size();
  966|       |
  967|      0|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (967:31): [True: 0, False: 0]
  ------------------
  968|      0|        {
  969|      0|            d = this_view[i] - borrow;
  970|      0|            borrow = d > this_view[i];
  971|      0|            this_view[i] = d - y_view[i];
  972|      0|            if ( this_view[i] > d )
  ------------------
  |  Branch (972:18): [True: 0, False: 0]
  ------------------
  973|      0|                borrow = 1;
  974|      0|        }
  975|      0|        for (size_type i = y_size; i < this_size && borrow != 0; i++ )
  ------------------
  |  Branch (975:36): [True: 0, False: 0]
  |  Branch (975:53): [True: 0, False: 0]
  ------------------
  976|      0|        {
  977|      0|            d = this_view[i] - borrow;
  978|      0|            borrow = d > this_view[i];
  979|      0|            this_view[i] = d;
  980|      0|        }
  981|      0|        reduce();
  982|      0|        return *this;
  983|      0|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  723|   640k|    {
  724|   640k|        return storage_.get_storage_view();
  725|   640k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  920|  15.5k|    {
  921|  15.5k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (921:14): [True: 0, False: 15.5k]
  ------------------
  922|      0|            return *this -= -y;
  923|       |
  924|  15.5k|        auto y_view = y.get_storage_view();
  925|       |        
  926|  15.5k|        word_type d;
  927|  15.5k|        word_type carry = 0;
  928|       |
  929|  15.5k|        auto this_view = get_storage_view();
  930|  15.5k|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  931|  15.5k|        this_view = get_storage_view();
  932|       |
  933|  15.5k|        const size_t this_size = this_view.size();
  934|  15.5k|        const size_t y_size = y_view.size();
  935|  30.7k|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (935:31): [True: 15.1k, False: 15.5k]
  ------------------
  936|  15.1k|        {
  937|  15.1k|            d = this_view[i] + carry;
  938|  15.1k|            carry = d < carry;
  939|  15.1k|            this_view[i] = d + y_view[i];
  940|  15.1k|            if (this_view[i] < d)
  ------------------
  |  Branch (940:17): [True: 3.70k, False: 11.4k]
  ------------------
  941|  3.70k|                carry = 1;
  942|  15.1k|        }
  943|  19.2k|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (943:36): [True: 19.0k, False: 238]
  |  Branch (943:53): [True: 3.70k, False: 15.3k]
  ------------------
  944|  3.70k|        {
  945|  3.70k|            d = this_view[i] + carry;
  946|  3.70k|            carry = d < carry;
  947|  3.70k|            this_view[i] = d;
  948|  3.70k|        }
  949|  15.5k|        reduce();
  950|  15.5k|        return *this;
  951|  15.5k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1641|   241k|    {
 1642|   241k|        auto this_view = get_storage_view();
 1643|   241k|        auto y_view = y.get_storage_view();
 1644|       |
 1645|   241k|        const size_type y_size = y_view.size();
 1646|   241k|        if ( this_view.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1646:14): [True: 2.55k, False: 238k]
  |  Branch (1646:39): [True: 2.55k, False: 0]
  ------------------
 1647|  2.55k|            return 0;
 1648|   238k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1648:14): [True: 18.4k, False: 220k]
  ------------------
 1649|  18.4k|            return y.is_negative() - is_negative();
 1650|   220k|        int code = 0;
 1651|   220k|        if ( this_view.size() < y_size)
  ------------------
  |  Branch (1651:14): [True: 0, False: 220k]
  ------------------
 1652|      0|            code = -1;
 1653|   220k|        else if ( this_view.size() > y_size)
  ------------------
  |  Branch (1653:19): [True: 44.6k, False: 175k]
  ------------------
 1654|  44.6k|            code = +1;
 1655|   175k|        else
 1656|   175k|        {
 1657|   211k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1657:50): [True: 175k, False: 36.0k]
  ------------------
 1658|   175k|            {
 1659|   175k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1659:21): [True: 29.2k, False: 146k]
  ------------------
 1660|  29.2k|                {
 1661|  29.2k|                    code = 1;
 1662|  29.2k|                    break;
 1663|  29.2k|                }
 1664|   146k|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1664:26): [True: 110k, False: 36.0k]
  ------------------
 1665|   110k|                {
 1666|   110k|                    code = -1;
 1667|   110k|                    break;
 1668|   110k|                }
 1669|   175k|            }
 1670|   175k|        }
 1671|   220k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1671:16): [True: 0, False: 220k]
  ------------------
 1672|   238k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1476|   199k|    {
 1477|   199k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1477:15): [True: 110k, False: 89.5k]
  ------------------
 1478|   199k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   69|   710k|        {
   70|   710k|            return data_[i];
   71|   710k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  733|   818k|    {
  734|   818k|        storage_.set_negative(value);
  735|   818k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  515|   818k|    {
  516|   818k|        common_.is_negative_ = value;
  517|   818k|    }
_ZNK8jsoncons16to_bigint_resultIcEcvbEv:
  578|  19.2k|    {
  579|  19.2k|        return ec == std::errc{};
  580|  19.2k|    }
_ZN8jsonconsneERKNS_12basic_bigintINSt3__19allocatorImEEEEi:
 1471|  19.2k|    {
 1472|  19.2k|        return x.compare(basic_bigint<Allocator>(y)) != 0 ? true : false;
  ------------------
  |  Branch (1472:16): [True: 18.3k, False: 972]
  ------------------
 1473|  19.2k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1675|   199k|    {
 1676|   199k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1677|   199k|        auto denom_view = denom.get_storage_view();
 1678|       |
 1679|   199k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1679:13): [True: 0, False: 199k]
  ------------------
 1680|      0|        {
 1681|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1682|      0|        }
 1683|   199k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1684|   199k|        bool rem_neg = is_negative();
 1685|   199k|        basic_bigint<Allocator> num(*this, get_allocator());
 1686|   199k|        num.set_negative(false);
 1687|   199k|        denom.set_negative(false);
 1688|   199k|        if ( num < denom )
  ------------------
  |  Branch (1688:14): [True: 110k, False: 89.5k]
  ------------------
 1689|   110k|        {
 1690|   110k|            quot = word_type(0);
 1691|   110k|            quot.set_negative(quot_neg);
 1692|   110k|            rem = num;
 1693|   110k|            rem.set_negative(rem_neg);
 1694|   110k|            return;
 1695|   110k|        }
 1696|       |
 1697|  89.5k|        auto num_view = num.get_storage_view();
 1698|  89.5k|        auto quot_view = quot.get_storage_view();
 1699|  89.5k|        auto this_view = get_storage_view();
 1700|       |
 1701|  89.5k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1701:14): [True: 89.5k, False: 0]
  |  Branch (1701:40): [True: 65.3k, False: 24.1k]
  ------------------
 1702|  65.3k|        {
 1703|  65.3k|            quot = word_type( num_view[0]/denom_view[0] );
 1704|  65.3k|            rem = word_type( num_view[0]%denom_view[0] );
 1705|  65.3k|            quot.set_negative(quot_neg);
 1706|  65.3k|            rem.set_negative(rem_neg);
 1707|  65.3k|            return;
 1708|  65.3k|        }
 1709|  24.1k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1709:13): [True: 24.1k, False: 0]
  |  Branch (1709:39): [True: 4.31k, False: 19.8k]
  ------------------
 1710|  4.31k|        {
 1711|       |            // Denominator fits into a half word
 1712|  4.31k|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1713|  4.31k|            quot.resize(this_view.size());
 1714|  4.31k|            quot_view = quot.get_storage_view();
 1715|  12.9k|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1715:48): [True: 8.63k, False: 4.31k]
  ------------------
 1716|  8.63k|            {
 1717|  8.63k|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1718|  8.63k|                q1 = dividend/divisor;
 1719|  8.63k|                r = dividend % divisor;
 1720|  8.63k|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1721|  8.63k|                q2 = dividend/divisor;
 1722|  8.63k|                dHi = dividend % divisor;
 1723|  8.63k|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1724|  8.63k|            }
 1725|  4.31k|            quot.reduce();
 1726|  4.31k|            rem = dHi;
 1727|  4.31k|            quot.set_negative(quot_neg);
 1728|  4.31k|            rem.set_negative(rem_neg);
 1729|  4.31k|            return;
 1730|  4.31k|        }
 1731|  19.8k|        basic_bigint<Allocator> num0(num, get_allocator());
 1732|  19.8k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1733|  19.8k|        int x = 0;
 1734|  19.8k|        bool second_done = normalize(denom, num, x);
 1735|  19.8k|        denom_view = denom.get_storage_view();
 1736|  19.8k|        num_view = num.get_storage_view();
 1737|       |
 1738|  19.8k|        size_type l = denom_view.size() - 1;
 1739|  19.8k|        size_type n = num_view.size() - 1;
 1740|  19.8k|        quot.resize(n - l);
 1741|  19.8k|        quot_view = quot.get_storage_view();
 1742|  39.6k|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1742:46): [True: 19.8k, False: 19.8k]
  ------------------
 1743|  19.8k|        {
 1744|  19.8k|            quot_view[i] = 0;
 1745|  19.8k|        }
 1746|  19.8k|        rem = num;
 1747|  19.8k|        auto rem_view = rem.get_storage_view();
 1748|  19.8k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1748:14): [True: 0, False: 19.8k]
  ------------------
 1749|      0|        {
 1750|      0|            rem.resize(rem_view.size() + 1);
 1751|      0|            rem_view = rem.get_storage_view();
 1752|      0|            n++;
 1753|      0|            quot.resize(quot_view.size() + 1);
 1754|      0|            quot_view = quot.get_storage_view();
 1755|      0|        }
 1756|  19.8k|        word_type d = denom_view[l];
 1757|       |
 1758|  39.6k|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1758:32): [True: 19.8k, False: 19.8k]
  ------------------
 1759|  19.8k|        {
 1760|  19.8k|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1761|  19.8k|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1762|  19.8k|            quot_view[k - l - 1] = q;
 1763|  19.8k|        }
 1764|  19.8k|        quot.reduce();
 1765|  19.8k|        quot.set_negative(quot_neg);
 1766|  19.8k|        if (remDesired)
  ------------------
  |  Branch (1766:13): [True: 19.8k, False: 0]
  ------------------
 1767|  19.8k|        {
 1768|  19.8k|            unnormalize(rem, x, second_done);
 1769|  19.8k|            rem.set_negative(rem_neg);
 1770|  19.8k|        }
 1771|  19.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  713|   659k|    {
  714|   659k|        return storage_.get_allocator();
  715|   659k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  676|   439k|        : storage_(other.storage_, alloc)
  677|   439k|    {
  678|   439k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  319|   439k|        : word_allocator_type(alloc)
  320|   439k|    {
  321|   439k|        if (!other.is_allocated())
  ------------------
  |  Branch (321:13): [True: 381k, False: 57.9k]
  ------------------
  322|   381k|        {
  323|   381k|            ::new (&inlined_) inlined_storage(other.inlined_);
  324|   381k|        }
  325|  57.9k|        else
  326|  57.9k|        {
  327|  57.9k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  328|  57.9k|        }
  329|   439k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1872|  19.8k|    {
 1873|  19.8k|        auto denom_view = denom.get_storage_view();
 1874|  19.8k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1874:13): [True: 0, False: 19.8k]
  ------------------
 1875|      0|        {
 1876|      0|            return false;
 1877|      0|        }
 1878|  19.8k|        size_type r = denom_view.size() - 1;
 1879|  19.8k|        word_type y = denom_view[r];
 1880|       |
 1881|  19.8k|        x = 0;
 1882|  19.8k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1882:17): [True: 0, False: 19.8k]
  ------------------
 1883|      0|        {
 1884|      0|            y <<= 1;
 1885|      0|            x++;
 1886|      0|        }
 1887|  19.8k|        denom <<= x;
 1888|  19.8k|        num <<= x;
 1889|       |
 1890|  19.8k|        denom_view = denom.get_storage_view();
 1891|  19.8k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1891:14): [True: 0, False: 19.8k]
  |  Branch (1891:23): [True: 0, False: 0]
  ------------------
 1892|      0|        {
 1893|      0|            denom *= max_word;
 1894|      0|            num *= max_word;
 1895|      0|            return true;
 1896|      0|        }
 1897|  19.8k|        return false;
 1898|  19.8k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1117|  39.6k|    {
 1118|  39.6k|        auto this_view = get_storage_view();
 1119|  39.6k|        size_type q = k / word_type_bits;
 1120|  39.6k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1120:14): [True: 0, False: 39.6k]
  ------------------
 1121|      0|        {
 1122|      0|            resize(this_view.size() + q);
 1123|      0|            this_view = get_storage_view();
 1124|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1124:50): [True: 0, False: 0]
  ------------------
 1125|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1125:34): [True: 0, False: 0]
  ------------------
 1126|      0|            k %= word_type_bits;
 1127|      0|        }
 1128|  39.6k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1128:14): [True: 0, False: 39.6k]
  ------------------
 1129|      0|        {
 1130|      0|            size_type k1 = word_type_bits - k;
 1131|      0|            word_type mask = (word_type(1) << k) - word_type(1);
 1132|      0|            resize( this_view.size() + 1 );
 1133|      0|            this_view = get_storage_view();
 1134|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1134:50): [True: 0, False: 0]
  ------------------
 1135|      0|            {
 1136|      0|                this_view[i] <<= k;
 1137|      0|                if ( i > 0 )
  ------------------
  |  Branch (1137:22): [True: 0, False: 0]
  ------------------
 1138|      0|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1139|      0|            }
 1140|      0|        }
 1141|  39.6k|        reduce();
 1142|  39.6k|        return *this;
 1143|  39.6k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  998|   111k|    {
  999|   111k|        auto this_view = get_storage_view();
 1000|   111k|        size_type len0 = this_view.size();
 1001|   111k|        word_type dig = this_view[0];
 1002|   111k|        word_type carry = 0;
 1003|       |
 1004|   111k|        resize(this_view.size() + 1);
 1005|   111k|        this_view = get_storage_view();
 1006|       |
 1007|   111k|        size_type i = 0;
 1008|   218k|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 106k, False: 111k]
  ------------------
 1009|   106k|        {
 1010|   106k|            word_type hi;
 1011|   106k|            word_type lo;
 1012|   106k|            DDproduct( dig, y, hi, lo );
 1013|   106k|            this_view[i] = lo + carry;
 1014|   106k|            dig = this_view[i+1];
 1015|   106k|            carry = hi + (this_view[i] < lo);
 1016|   106k|        }
 1017|   111k|        this_view[i] = carry;
 1018|   111k|        reduce();
 1019|   111k|        return *this;
 1020|   111k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1799|  19.8k|    {
 1800|  19.8k|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1801|  19.8k|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1802|  19.8k|        qHi = A/(dHi + 1);
 1803|       |        // This initial guess of qHi may be too small.
 1804|  19.8k|        middle = qHi * dLo;
 1805|  19.8k|        left = qHi * dHi;
 1806|  19.8k|        x = B - (middle << word_type_half_bits);
 1807|  19.8k|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1808|  19.8k|        B = x;
 1809|  19.8k|        dLo1 = dLo << word_type_half_bits;
 1810|       |        // Increase qHi if necessary:
 1811|  19.8k|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1811:17): [True: 0, False: 19.8k]
  |  Branch (1811:29): [True: 0, False: 19.8k]
  |  Branch (1811:41): [True: 0, False: 0]
  ------------------
 1812|      0|        {
 1813|      0|            x = B - dLo1;
 1814|      0|            A -= dHi + (x > B);
 1815|      0|            B = x;
 1816|      0|            qHi++;
 1817|      0|        }
 1818|  19.8k|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1819|       |        // This initial guess of qLo may be too small.
 1820|  19.8k|        right = qLo * dLo;
 1821|  19.8k|        middle = qLo * dHi;
 1822|  19.8k|        x = B - right;
 1823|  19.8k|        A -= (x > B);
 1824|  19.8k|        B = x;
 1825|  19.8k|        x = B - (middle << word_type_half_bits);
 1826|  19.8k|            A -= (middle >> word_type_half_bits) + (x > B);
 1827|  19.8k|        B = x;
 1828|       |        // Increase qLo if necessary:
 1829|  21.3k|        while ( A || B >= d )
  ------------------
  |  Branch (1829:17): [True: 0, False: 21.3k]
  |  Branch (1829:22): [True: 1.56k, False: 19.8k]
  ------------------
 1830|  1.56k|        {
 1831|  1.56k|            x = B - d;
 1832|  1.56k|            A -= (x > B);
 1833|  1.56k|            B = x;
 1834|  1.56k|            qLo++;
 1835|  1.56k|        }
 1836|  19.8k|        return (qHi << word_type_half_bits) + qLo;
 1837|  19.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1841|  19.8k|    {
 1842|  19.8k|        word_type hi, lo, d, carry = 0;
 1843|  19.8k|        size_type i;
 1844|  39.6k|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1844:22): [True: 19.8k, False: 19.8k]
  ------------------
 1845|  19.8k|        {
 1846|  19.8k|            DDproduct( b[i], q, hi, lo );
 1847|  19.8k|            d = a[i];
 1848|  19.8k|            a[i] -= lo;
 1849|  19.8k|            if ( a[i] > d )
  ------------------
  |  Branch (1849:18): [True: 6.63k, False: 13.1k]
  ------------------
 1850|  6.63k|                carry++;
 1851|  19.8k|            d = a[i + 1];
 1852|  19.8k|            a[i + 1] -= hi + carry;
 1853|  19.8k|            carry = a[i + 1] > d;
 1854|  19.8k|        }
 1855|  19.8k|        if ( carry ) // q was too large
  ------------------
  |  Branch (1855:14): [True: 0, False: 19.8k]
  ------------------
 1856|      0|        {
 1857|      0|            q--;
 1858|      0|            carry = 0;
 1859|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1859:26): [True: 0, False: 0]
  ------------------
 1860|      0|            {
 1861|      0|                d = a[i] + carry;
 1862|      0|                carry = d < carry;
 1863|      0|                a[i] = d + b[i];
 1864|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1864:22): [True: 0, False: 0]
  ------------------
 1865|      0|                    carry = 1;
 1866|      0|            }
 1867|      0|            a[n] = 0;
 1868|      0|        }
 1869|  19.8k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1901|  19.8k|    {
 1902|  19.8k|        if (secondDone)
  ------------------
  |  Branch (1902:13): [True: 0, False: 19.8k]
  ------------------
 1903|      0|        {
 1904|      0|            rem /= max_word;
 1905|      0|        }
 1906|  19.8k|        if ( x > 0 )
  ------------------
  |  Branch (1906:14): [True: 0, False: 19.8k]
  ------------------
 1907|      0|        {
 1908|      0|            rem >>= x;
 1909|      0|        }
 1910|  19.8k|        else
 1911|  19.8k|        {
 1912|  19.8k|            rem.reduce();
 1913|  19.8k|        }
 1914|  19.8k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  62.8k|        : storage_(n, alloc)
  694|  62.8k|    {
  695|  62.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  62.8k|        : word_allocator_type(alloc)
  361|  62.8k|    {
  362|  62.8k|        ::new (&inlined_) inlined_storage(n);
  363|  62.8k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  62.8k|            : is_allocated_(false),
  126|  62.8k|            is_negative_(n < 0),
  127|  62.8k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 23.8k, False: 38.9k]
  ------------------
  128|  62.8k|        {
  129|  62.8k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 15.5k, False: 47.2k]
  ------------------
  130|  62.8k|            values_[1] = 0;
  131|  62.8k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  708|  1.29M|    {
  709|  1.29M|        storage_.destroy();
  710|  1.29M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  487|  1.29M|    {
  488|  1.29M|        if (is_allocated())
  ------------------
  |  Branch (488:13): [True: 100k, False: 1.19M]
  ------------------
  489|   100k|        {
  490|   100k|            allocated_.destroy(get_allocator());
  491|   100k|            allocated_.~allocated_storage();
  492|   100k|        }
  493|  1.19M|        else
  494|  1.19M|        {
  495|  1.19M|            inlined_.~inlined_storage();
  496|  1.19M|        }
  497|  1.29M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  246|   100k|        {
  247|   100k|            if (data_ != nullptr)
  ------------------
  |  Branch (247:17): [True: 100k, False: 0]
  ------------------
  248|   100k|            {
  249|   100k|                real_allocator_type alloc(a);
  250|   100k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  251|   100k|            }
  252|   100k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEcvT_IlvEEv:
 1275|  36.6k|    {
 1276|  36.6k|        auto this_view = get_storage_view();
 1277|  36.6k|        Integer x = 0;
 1278|  36.6k|        if (this_view.size() > 0)
  ------------------
  |  Branch (1278:13): [True: 33.6k, False: 2.94k]
  ------------------
 1279|  33.6k|        {
 1280|  33.6k|            x = static_cast<Integer>(this_view[0]);
 1281|  33.6k|        }
 1282|       |
 1283|  36.6k|        return is_negative() ? x*(-1) : x;
  ------------------
  |  Branch (1283:16): [True: 5.85k, False: 30.7k]
  ------------------
 1284|  36.6k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12write_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1359|   111k|    {
 1360|   111k|        basic_bigint<Allocator> v(*this);
 1361|   111k|        auto v_view = v.get_storage_view();
 1362|       |
 1363|   111k|        size_type len = (v_view.size() * word_type_bits / 3) + 2;
 1364|   111k|        data.reserve(len);
 1365|       |
 1366|   111k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1366:14): [True: 1.67k, False: 109k]
  ------------------
 1367|  1.67k|        {
 1368|  1.67k|            data.push_back('0');
 1369|  1.67k|        }
 1370|   109k|        else
 1371|   109k|        {
 1372|   109k|            word_type r;
 1373|   109k|            basic_bigint<Allocator> R(get_allocator());
 1374|   109k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1375|       |
 1376|   109k|            do
 1377|   181k|            {
 1378|   181k|                v.divide( LP10, v, R, true );
 1379|   181k|                v_view = v.get_storage_view();
 1380|       |
 1381|   181k|                auto R_view = R.get_storage_view();
 1382|   181k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1382:22): [True: 144k, False: 36.9k]
  ------------------
 1383|  2.27M|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1383:38): [True: 2.20M, False: 71.8k]
  ------------------
 1384|  2.20M|                {
 1385|  2.20M|                    data.push_back(char(r % 10u + '0'));
 1386|  2.20M|                    r /= 10u;
 1387|  2.20M|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1387:26): [True: 109k, False: 2.09M]
  ------------------
 1388|   109k|                        break;
 1389|  2.20M|                }
 1390|   181k|            } 
 1391|   181k|            while ( v_view.size() > 0);
  ------------------
  |  Branch (1391:21): [True: 71.8k, False: 109k]
  ------------------
 1392|       |
 1393|   109k|            if (is_negative())
  ------------------
  |  Branch (1393:17): [True: 15.5k, False: 94.2k]
  ------------------
 1394|  15.5k|            {
 1395|  15.5k|                data.push_back('-');
 1396|  15.5k|            }
 1397|   109k|            std::reverse(data.begin(),data.end());
 1398|   109k|        }
 1399|   111k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  644|   109k|        : storage_(alloc)
  645|   109k|    {
  646|   109k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEEl:
 1481|  22.2k|    {
 1482|  22.2k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1482:15): [True: 15.5k, False: 6.69k]
  ------------------
 1483|  22.2k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IjEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|  15.5k|        : storage_(n, alloc)
  694|  15.5k|    {
  695|  15.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IjEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|  15.5k|        : word_allocator_type(alloc)
  361|  15.5k|    {
  362|  15.5k|        ::new (&inlined_) inlined_storage(n);
  363|  15.5k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IjEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  15.5k|            : is_allocated_(false),
  139|  15.5k|            is_negative_(false),
  140|  15.5k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 372, False: 15.1k]
  ------------------
  141|  15.5k|        {
  142|  15.5k|            values_[0] = n;
  143|  15.5k|            values_[1] = 0;
  144|  15.5k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLIjEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  889|  6.69k|    {
  890|  6.69k|        if ( is_negative())
  ------------------
  |  Branch (890:14): [True: 0, False: 6.69k]
  ------------------
  891|      0|            return *this -= -basic_bigint<Allocator>(y);
  892|       |
  893|  6.69k|        word_type d;
  894|  6.69k|        word_type carry = 0;
  895|       |
  896|  6.69k|        auto this_view = get_storage_view();
  897|  6.69k|        resize(this_view.size() + 1);
  898|       |
  899|  6.69k|        this_view = get_storage_view();
  900|  6.69k|        const size_type this_size = this_view.size();
  901|  6.69k|        size_type y_size = 1;
  902|       |
  903|  6.69k|        d = this_view[0] + carry;
  904|  6.69k|        carry = d < carry;
  905|  6.69k|        this_view[0] = d + y;
  906|  6.69k|        if (this_view[0] < d)
  ------------------
  |  Branch (906:13): [True: 560, False: 6.13k]
  ------------------
  907|    560|            carry = 1;
  908|       |
  909|  7.25k|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (909:36): [True: 5.40k, False: 1.85k]
  |  Branch (909:53): [True: 560, False: 4.84k]
  ------------------
  910|    560|        {
  911|    560|            d = this_view[i] + carry;
  912|    560|            carry = d < carry;
  913|    560|            this_view[i] = d;
  914|    560|        }
  915|  6.69k|        reduce();
  916|  6.69k|        return *this;
  917|  6.69k|    }

_ZN8jsoncons6binary13native_to_bigItNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  6.20k|    {
  128|  6.20k|        T val2 = byte_swap(val);
  129|  6.20k|        uint8_t buf[sizeof(T)];
  130|  6.20k|        std::memcpy(buf, &val2, sizeof(T));
  131|  6.20k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 12.4k, False: 6.20k]
  ------------------
  132|  12.4k|        {
  133|  12.4k|            *d_first++ = item;
  134|  12.4k|        }
  135|  6.20k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  19.4k|    {
   29|  19.4k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  19.4k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  19.4k|#      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|  19.4k|    }
_ZN8jsoncons6binary13native_to_bigIjNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  23.0k|    {
  128|  23.0k|        T val2 = byte_swap(val);
  129|  23.0k|        uint8_t buf[sizeof(T)];
  130|  23.0k|        std::memcpy(buf, &val2, sizeof(T));
  131|  23.0k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 92.2k, False: 23.0k]
  ------------------
  132|  92.2k|        {
  133|  92.2k|            *d_first++ = item;
  134|  92.2k|        }
  135|  23.0k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   260k|    {
   40|   260k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   260k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|   260k|#  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|   260k|    }
_ZN8jsoncons6binary13native_to_bigImNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  25.8k|    {
  128|  25.8k|        T val2 = byte_swap(val);
  129|  25.8k|        uint8_t buf[sizeof(T)];
  130|  25.8k|        std::memcpy(buf, &val2, sizeof(T));
  131|  25.8k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 206k, False: 25.8k]
  ------------------
  132|   206k|        {
  133|   206k|            *d_first++ = item;
  134|   206k|        }
  135|  25.8k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   216k|    {
   52|   216k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   216k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|   216k|#  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|   216k|    }
_ZN8jsoncons6binary13native_to_bigIaNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|   211k|    {
  128|   211k|        T val2 = byte_swap(val);
  129|   211k|        uint8_t buf[sizeof(T)];
  130|   211k|        std::memcpy(buf, &val2, sizeof(T));
  131|   211k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 211k, False: 211k]
  ------------------
  132|   211k|        {
  133|   211k|            *d_first++ = item;
  134|   211k|        }
  135|   211k|    }
_ZN8jsoncons6binary9byte_swapIaEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  1.59M|    {
   22|  1.59M|        return val;
   23|  1.59M|    }
_ZN8jsoncons6binary13native_to_bigIsNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  12.5k|    {
  128|  12.5k|        T val2 = byte_swap(val);
  129|  12.5k|        uint8_t buf[sizeof(T)];
  130|  12.5k|        std::memcpy(buf, &val2, sizeof(T));
  131|  12.5k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 25.0k, False: 12.5k]
  ------------------
  132|  25.0k|        {
  133|  25.0k|            *d_first++ = item;
  134|  25.0k|        }
  135|  12.5k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  43.2k|    {
   29|  43.2k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  43.2k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  43.2k|#      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|  43.2k|    }
_ZN8jsoncons6binary13native_to_bigIiNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  6.57k|    {
  128|  6.57k|        T val2 = byte_swap(val);
  129|  6.57k|        uint8_t buf[sizeof(T)];
  130|  6.57k|        std::memcpy(buf, &val2, sizeof(T));
  131|  6.57k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 26.3k, False: 6.57k]
  ------------------
  132|  26.3k|        {
  133|  26.3k|            *d_first++ = item;
  134|  26.3k|        }
  135|  6.57k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  22.7k|    {
   40|  22.7k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  22.7k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  22.7k|#  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|  22.7k|    }
_ZN8jsoncons6binary13native_to_bigIlNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  3.05k|    {
  128|  3.05k|        T val2 = byte_swap(val);
  129|  3.05k|        uint8_t buf[sizeof(T)];
  130|  3.05k|        std::memcpy(buf, &val2, sizeof(T));
  131|  3.05k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 24.4k, False: 3.05k]
  ------------------
  132|  24.4k|        {
  133|  24.4k|            *d_first++ = item;
  134|  24.4k|        }
  135|  3.05k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  45.8k|    {
   52|  45.8k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  45.8k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  45.8k|#  define JSONCONS_BYTE_SWAP_64 __builtin_bswap64
  ------------------
   54|       |    #else
   55|       |        uint64_t tmp = ((static_cast<uint64_t>(val) & 0x00000000ffffffffull) << 32) | ((static_cast<uint64_t>(val) & 0xffffffff00000000ull) >> 32);
   56|       |        tmp = ((tmp & 0x0000ffff0000ffffull) << 16) | ((tmp & 0xffff0000ffff0000ull) >> 16);
   57|       |        return ((tmp & 0x00ff00ff00ff00ffull) << 8)  | ((tmp & 0xff00ff00ff00ff00ull) >> 8);
   58|       |    #endif
   59|  45.8k|    }
_ZN8jsoncons6binary13native_to_bigIfNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  60.6k|    {
  128|  60.6k|        T val2 = byte_swap(val);
  129|  60.6k|        uint8_t buf[sizeof(T)];
  130|  60.6k|        std::memcpy(buf, &val2, sizeof(T));
  131|  60.6k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 242k, False: 60.6k]
  ------------------
  132|   242k|        {
  133|   242k|            *d_first++ = item;
  134|   242k|        }
  135|  60.6k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|   181k|    {
   65|   181k|        uint32_t x;
   66|   181k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|   181k|        uint32_t y = byte_swap(x);
   68|   181k|        T val2;
   69|   181k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|   181k|        return val2;
   71|   181k|    }
_ZN8jsoncons6binary13native_to_bigIdNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|  28.9k|    {
  128|  28.9k|        T val2 = byte_swap(val);
  129|  28.9k|        uint8_t buf[sizeof(T)];
  130|  28.9k|        std::memcpy(buf, &val2, sizeof(T));
  131|  28.9k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 231k, False: 28.9k]
  ------------------
  132|   231k|        {
  133|   231k|            *d_first++ = item;
  134|   231k|        }
  135|  28.9k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|  94.1k|    {
   77|  94.1k|        uint64_t x;
   78|  94.1k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|  94.1k|        uint64_t y = byte_swap(x);
   80|  94.1k|        T val2;
   81|  94.1k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|  94.1k|        return val2;
   83|  94.1k|    }
_ZN8jsoncons6binary13big_to_nativeIfNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   120k|    {
  183|   120k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 120k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   120k|        T val;
  188|   120k|        std::memcpy(&val,first,sizeof(T));
  189|   120k|        return byte_swap(val);
  190|   120k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  65.1k|    {
  183|  65.1k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 65.1k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  65.1k|        T val;
  188|  65.1k|        std::memcpy(&val,first,sizeof(T));
  189|  65.1k|        return byte_swap(val);
  190|  65.1k|    }
_ZN8jsoncons6binary13big_to_nativeItNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  13.2k|    {
  183|  13.2k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 13.2k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  13.2k|        T val;
  188|  13.2k|        std::memcpy(&val,first,sizeof(T));
  189|  13.2k|        return byte_swap(val);
  190|  13.2k|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  55.9k|    {
  183|  55.9k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 55.9k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  55.9k|        T val;
  188|  55.9k|        std::memcpy(&val,first,sizeof(T));
  189|  55.9k|        return byte_swap(val);
  190|  55.9k|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  96.3k|    {
  183|  96.3k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 96.3k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  96.3k|        T val;
  188|  96.3k|        std::memcpy(&val,first,sizeof(T));
  189|  96.3k|        return byte_swap(val);
  190|  96.3k|    }
_ZN8jsoncons6binary13big_to_nativeIaNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  1.38M|    {
  183|  1.38M|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 1.38M]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  1.38M|        T val;
  188|  1.38M|        std::memcpy(&val,first,sizeof(T));
  189|  1.38M|        return byte_swap(val);
  190|  1.38M|    }
_ZN8jsoncons6binary13big_to_nativeIsNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  30.7k|    {
  183|  30.7k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 30.7k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  30.7k|        T val;
  188|  30.7k|        std::memcpy(&val,first,sizeof(T));
  189|  30.7k|        return byte_swap(val);
  190|  30.7k|    }
_ZN8jsoncons6binary13big_to_nativeIiNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  16.1k|    {
  183|  16.1k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 16.1k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  16.1k|        T val;
  188|  16.1k|        std::memcpy(&val,first,sizeof(T));
  189|  16.1k|        return byte_swap(val);
  190|  16.1k|    }
_ZN8jsoncons6binary13big_to_nativeIlNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  42.7k|    {
  183|  42.7k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 42.7k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  42.7k|        T val;
  188|  42.7k|        std::memcpy(&val,first,sizeof(T));
  189|  42.7k|        return byte_swap(val);
  190|  42.7k|    }
_ZN8jsoncons6binary13big_to_nativeIhNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  90.5k|    {
  183|  90.5k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 90.5k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  90.5k|        T val;
  188|  90.5k|        std::memcpy(&val,first,sizeof(T));
  189|  90.5k|        return byte_swap(val);
  190|  90.5k|    }
_ZN8jsoncons6binary9byte_swapIhEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  90.5k|    {
   22|  90.5k|        return val;
   23|  90.5k|    }

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

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

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

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   567k|    {
 1148|   567k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   567k|        const uint8_t* end = it + length;
 1150|       |
 1151|   567k|        unicode_errc  result{};
 1152|  13.9M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 13.3M, False: 567k]
  ------------------
 1153|  13.3M|        {
 1154|  13.3M|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 11.7M, False: 1.66M]
  ------------------
 1155|  11.7M|            {
 1156|  82.0M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|  23.4M|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 11.7M, False: 673]
  |  |  |  Branch (281:34): [True: 11.7M, False: 285]
  |  |  |  Branch (281:36): [True: 11.7M, False: 267]
  |  |  |  Branch (281:38): [True: 11.7M, False: 476]
  |  |  |  Branch (281:40): [True: 11.7M, False: 302]
  |  |  |  Branch (281:42): [True: 11.7M, False: 229]
  |  |  |  Branch (281:44): [True: 11.7M, False: 268]
  |  |  |  Branch (281:46): [True: 11.7M, False: 287]
  |  |  ------------------
  ------------------
 1157|  11.7M|                continue;
 1158|  82.0M|            }
 1159|  1.67M|    non_ascii:
 1160|  1.67M|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  1.67M|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 0, False: 1.67M]
  ------------------
 1162|      0|            {
 1163|      0|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|      0|            }
 1165|  1.67M|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 0, False: 1.67M]
  ------------------
 1166|      0|            {
 1167|      0|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|      0|            }
 1169|  1.67M|            it += len;
 1170|  1.67M|        }
 1171|   567k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   567k|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  1.68M|    {
  306|  1.68M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  1.68M|        const uint8_t* end = it+length;
  308|       |
  309|  1.68M|        uint8_t byte;
  310|  1.68M|        switch (length) {
  311|     32|        default:
  ------------------
  |  Branch (311:9): [True: 32, False: 1.68M]
  ------------------
  312|     32|            return unicode_errc::over_long_utf8_sequence;
  313|  1.51k|        case 4:
  ------------------
  |  Branch (313:9): [True: 1.51k, False: 1.68M]
  ------------------
  314|  1.51k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 4, False: 1.50k]
  ------------------
  315|      4|                return unicode_errc::bad_continuation_byte;
  316|  1.50k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.50k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  3.53k|        case 3:
  ------------------
  |  Branch (317:9): [True: 2.02k, False: 1.68M]
  ------------------
  318|  3.53k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 13, False: 3.51k]
  ------------------
  319|     13|                return unicode_errc::bad_continuation_byte;
  320|  3.51k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  3.51k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  7.94k|        case 2:
  ------------------
  |  Branch (321:9): [True: 4.42k, False: 1.68M]
  ------------------
  322|  7.94k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 30, False: 7.91k]
  ------------------
  323|     30|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  7.91k|            switch (*it) 
  326|  7.91k|            {
  327|       |                // no fall-through in this inner switch
  328|    692|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 692, False: 7.22k]
  |  Branch (328:32): [True: 1, False: 691]
  ------------------
  329|  1.15k|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 1.15k, False: 6.76k]
  |  Branch (329:32): [True: 4, False: 1.15k]
  ------------------
  330|  1.15k|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 602, False: 7.31k]
  |  Branch (330:32): [True: 5, False: 597]
  ------------------
  331|    619|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 619, False: 7.29k]
  |  Branch (331:32): [True: 4, False: 615]
  ------------------
  332|  4.84k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 4.84k, False: 3.06k]
  |  Branch (332:32): [True: 0, False: 4.84k]
  ------------------
  333|  7.91k|            }
  334|       |
  335|  7.90k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  7.90k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  1.68M|        case 1:
  ------------------
  |  Branch (336:9): [True: 1.67M, False: 7.99k]
  ------------------
  337|  1.68M|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 7.95k, False: 1.67M]
  |  Branch (337:32): [True: 57, False: 7.90k]
  ------------------
  338|     57|                return unicode_errc::source_illegal;
  339|  1.68M|            break;
  340|  1.68M|        }
  341|  1.68M|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 1, False: 1.68M]
  ------------------
  342|      1|            return unicode_errc::source_illegal;
  343|       |
  344|  1.68M|        return unicode_errc();
  345|  1.68M|    }
_ZN8jsoncons14unicode_traits8validateIhEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   877k|    {
 1148|   877k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   877k|        const uint8_t* end = it + length;
 1150|       |
 1151|   877k|        unicode_errc  result{};
 1152|  1.03M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 161k, False: 877k]
  ------------------
 1153|   161k|        {
 1154|   161k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 151k, False: 10.6k]
  ------------------
 1155|   151k|            {
 1156|  1.04M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|   302k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 149k, False: 1.27k]
  |  |  |  Branch (281:34): [True: 149k, False: 379]
  |  |  |  Branch (281:36): [True: 149k, False: 368]
  |  |  |  Branch (281:38): [True: 148k, False: 269]
  |  |  |  Branch (281:40): [True: 148k, False: 294]
  |  |  |  Branch (281:42): [True: 148k, False: 238]
  |  |  |  Branch (281:44): [True: 148k, False: 240]
  |  |  |  Branch (281:46): [True: 147k, False: 325]
  |  |  ------------------
  ------------------
 1157|   147k|                continue;
 1158|  1.04M|            }
 1159|  13.9k|    non_ascii:
 1160|  13.9k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  13.9k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 30, False: 13.9k]
  ------------------
 1162|     30|            {
 1163|     30|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     30|            }
 1165|  13.9k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 151, False: 13.8k]
  ------------------
 1166|    151|            {
 1167|    151|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    151|            }
 1169|  13.8k|            it += len;
 1170|  13.8k|        }
 1171|   877k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   877k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  11.6M|{
   43|  11.6M|    using char_type = typename Result::value_type;
   44|       |
   45|  11.6M|    char_type buf[255];
   46|  11.6M|    char_type *p = buf;
   47|  11.6M|    const char_type* last = buf+255;
   48|       |
   49|  11.6M|    bool is_negative = value < 0;
   50|       |
   51|  11.6M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 11.6M]
  ------------------
   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|  11.6M|    else
   60|  11.6M|    {
   61|       |
   62|  11.6M|        do
   63|  15.7M|        {
   64|  15.7M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  15.7M|        }
   66|  15.7M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 4.08M, False: 11.6M]
  |  Branch (66:33): [True: 4.08M, False: 0]
  ------------------
   67|  11.6M|    }
   68|  11.6M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  11.6M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 11.6M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  11.6M|    std::size_t count = (p - buf);
   71|  11.6M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 11.6M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  27.3M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 15.7M, False: 11.6M]
  ------------------
   77|  15.7M|    {
   78|  15.7M|        result.push_back(*p);
   79|  15.7M|    }
   80|       |
   81|  11.6M|    return count;
   82|  11.6M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  2.86M|{
   43|  2.86M|    using char_type = typename Result::value_type;
   44|       |
   45|  2.86M|    char_type buf[255];
   46|  2.86M|    char_type *p = buf;
   47|  2.86M|    const char_type* last = buf+255;
   48|       |
   49|  2.86M|    bool is_negative = value < 0;
   50|       |
   51|  2.86M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 2.84M, False: 17.9k]
  ------------------
   52|  2.84M|    {
   53|  2.84M|        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: 713k, False: 2.84M]
  |  Branch (57:33): [True: 713k, False: 0]
  ------------------
   58|  2.84M|    }
   59|  17.9k|    else
   60|  17.9k|    {
   61|       |
   62|  17.9k|        do
   63|   107k|        {
   64|   107k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|   107k|        }
   66|   107k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 89.1k, False: 17.9k]
  |  Branch (66:33): [True: 89.1k, False: 0]
  ------------------
   67|  17.9k|    }
   68|  2.86M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  2.86M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.86M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  2.86M|    std::size_t count = (p - buf);
   71|  2.86M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 2.84M, False: 17.9k]
  ------------------
   72|  2.84M|    {
   73|  2.84M|        result.push_back('-');
   74|  2.84M|        ++count;
   75|  2.84M|    }
   76|  6.53M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 3.66M, False: 2.86M]
  ------------------
   77|  3.66M|    {
   78|  3.66M|        result.push_back(*p);
   79|  3.66M|    }
   80|       |
   81|  2.86M|    return count;
   82|  2.86M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  96.1k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  96.1k|    {
  489|  96.1k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  96.1k|        struct lconv *lc = localeconv();
  491|  96.1k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 96.1k, False: 0]
  |  Branch (491:30): [True: 96.1k, False: 0]
  ------------------
  492|  96.1k|        {
  493|  96.1k|            decimal_point_ = lc->decimal_point[0];
  494|  96.1k|        }
  495|  96.1k|#endif
  496|  96.1k|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  96.1k|    {
  504|  96.1k|        std::size_t count = 0;
  505|       |
  506|  96.1k|        char number_buffer[200];
  507|  96.1k|        int length = 0;
  508|       |
  509|  96.1k|        switch (float_format_)
  510|  96.1k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 96.1k]
  ------------------
  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: 96.1k]
  ------------------
  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|  96.1k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 96.1k, False: 0]
  ------------------
  552|  96.1k|            {
  553|  96.1k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 96.1k]
  ------------------
  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|  96.1k|                else
  563|  96.1k|                {
  564|  96.1k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 96.1k]
  ------------------
  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|  96.1k|                }             
  569|  96.1k|                break;
  570|  96.1k|            }
  571|  96.1k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 96.1k]
  ------------------
  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|  96.1k|        }
  575|  96.1k|        return count;
  576|  96.1k|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  5.39k|{
  244|  5.39k|    const char *sbeg = buffer;
  245|  5.39k|    const char *send = sbeg + length;
  246|       |
  247|  5.39k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 5.39k, False: 0]
  ------------------
  248|  5.39k|    {
  249|  5.39k|        bool needs_dot = true;
  250|  74.1k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 68.7k, False: 5.39k]
  ------------------
  251|  68.7k|        {
  252|  68.7k|            switch (*q)
  253|  68.7k|            {
  254|  2.47k|            case '-':
  ------------------
  |  Branch (254:13): [True: 2.47k, False: 66.2k]
  ------------------
  255|  7.21k|            case '0':
  ------------------
  |  Branch (255:13): [True: 4.74k, False: 64.0k]
  ------------------
  256|  12.9k|            case '1':
  ------------------
  |  Branch (256:13): [True: 5.69k, False: 63.0k]
  ------------------
  257|  21.5k|            case '2':
  ------------------
  |  Branch (257:13): [True: 8.65k, False: 60.1k]
  ------------------
  258|  24.5k|            case '3':
  ------------------
  |  Branch (258:13): [True: 2.93k, False: 65.8k]
  ------------------
  259|  33.1k|            case '4':
  ------------------
  |  Branch (259:13): [True: 8.60k, False: 60.1k]
  ------------------
  260|  37.2k|            case '5':
  ------------------
  |  Branch (260:13): [True: 4.16k, False: 64.5k]
  ------------------
  261|  44.8k|            case '6':
  ------------------
  |  Branch (261:13): [True: 7.56k, False: 61.1k]
  ------------------
  262|  49.5k|            case '7':
  ------------------
  |  Branch (262:13): [True: 4.76k, False: 63.9k]
  ------------------
  263|  54.4k|            case '8':
  ------------------
  |  Branch (263:13): [True: 4.86k, False: 63.8k]
  ------------------
  264|  57.7k|            case '9':
  ------------------
  |  Branch (264:13): [True: 3.31k, False: 65.4k]
  ------------------
  265|  60.4k|            case '+':
  ------------------
  |  Branch (265:13): [True: 2.63k, False: 66.1k]
  ------------------
  266|  60.4k|                result.push_back(*q);
  267|  60.4k|                break;
  268|  3.28k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 3.28k, False: 65.4k]
  ------------------
  269|  3.28k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 68.7k]
  ------------------
  270|  3.28k|                result.push_back('e');
  271|  3.28k|                needs_dot = false;
  272|  3.28k|                break;
  273|  5.05k|            default:
  ------------------
  |  Branch (273:13): [True: 5.05k, False: 63.7k]
  ------------------
  274|  5.05k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 3.49k, False: 1.56k]
  ------------------
  275|  3.49k|                {
  276|  3.49k|                    needs_dot = false;
  277|  3.49k|                    result.push_back('.');
  278|  3.49k|                }
  279|  5.05k|                break;
  280|  68.7k|            }
  281|  68.7k|        }
  282|  5.39k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 1.90k, False: 3.49k]
  ------------------
  283|  1.90k|        {
  284|  1.90k|            result.push_back('.');
  285|  1.90k|            result.push_back('0');
  286|  1.90k|        }
  287|  5.39k|    }
  288|  5.39k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKciiiiRT_:
  171|  90.2k|{
  172|  90.2k|    int nb_digits = length;
  173|  90.2k|    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|  90.2k|    int kk = nb_digits + k;
  179|       |
  180|  90.2k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 54.3k, False: 35.9k]
  |  Branch (180:28): [True: 14.9k, False: 39.4k]
  ------------------
  181|  14.9k|    {
  182|       |        /* the first digits are already in. Add some 0s and call it a day. */
  183|       |        /* the max_exp is a personal choice. Only 16 digits could possibly be relevant.
  184|       |         * Basically we want to print 12340000000 rather than 1234.0e7 or 1.234e10 */
  185|   110k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 95.9k, False: 14.9k]
  ------------------
  186|  95.9k|        {
  187|  95.9k|            result.push_back(buffer[i]);
  188|  95.9k|        }
  189|  17.2k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 2.37k, False: 14.9k]
  ------------------
  190|  2.37k|        {
  191|  2.37k|            result.push_back('0');
  192|  2.37k|        }
  193|  14.9k|        result.push_back('.');
  194|  14.9k|        result.push_back('0');
  195|  14.9k|    } 
  196|  75.3k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 48.2k, False: 27.0k]
  |  Branch (196:24): [True: 8.81k, False: 39.4k]
  ------------------
  197|  8.81k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  32.0k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 23.2k, False: 8.81k]
  ------------------
  200|  23.2k|        {
  201|  23.2k|            result.push_back(buffer[i]);
  202|  23.2k|        }
  203|  8.81k|        result.push_back('.');
  204|   123k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 114k, False: 8.81k]
  ------------------
  205|   114k|        {
  206|   114k|            result.push_back(buffer[i]);
  207|   114k|        }
  208|  8.81k|    } 
  209|  66.5k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 41.1k, False: 25.4k]
  |  Branch (209:30): [True: 1.63k, False: 39.4k]
  ------------------
  210|  1.63k|    {
  211|  1.63k|        offset = 2 - kk;
  212|       |
  213|  1.63k|        result.push_back('0');
  214|  1.63k|        result.push_back('.');
  215|  4.14k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 2.51k, False: 1.63k]
  ------------------
  216|  2.51k|            result.push_back('0');
  217|  25.7k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 24.1k, False: 1.63k]
  ------------------
  218|  24.1k|        {
  219|  24.1k|            result.push_back(buffer[i]);
  220|  24.1k|        }
  221|  1.63k|    } 
  222|  64.9k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 908, False: 64.0k]
  ------------------
  223|    908|    {
  224|    908|        result.push_back(buffer[0]);
  225|    908|        result.push_back('e');
  226|    908|        fill_exponent(kk - 1, result);
  227|    908|    } 
  228|  64.0k|    else
  229|  64.0k|    {
  230|  64.0k|        result.push_back(buffer[0]);
  231|  64.0k|        result.push_back('.');
  232|   953k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 889k, False: 64.0k]
  ------------------
  233|   889k|        {
  234|   889k|            result.push_back(buffer[i]);
  235|   889k|        }
  236|  64.0k|        result.push_back('e');
  237|  64.0k|        fill_exponent(kk - 1, result);
  238|  64.0k|    }
  239|  90.2k|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  64.9k|{
  137|  64.9k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 25.4k, False: 39.4k]
  ------------------
  138|  25.4k|    {
  139|  25.4k|        result.push_back('-');
  140|  25.4k|        K = -K;
  141|  25.4k|    }
  142|  39.4k|    else
  143|  39.4k|    {
  144|  39.4k|        result.push_back('+'); // compatibility with sprintf
  145|  39.4k|    }
  146|       |
  147|  64.9k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 498, False: 64.4k]
  ------------------
  148|    498|    {
  149|    498|        result.push_back('0'); // compatibility with sprintf
  150|    498|        result.push_back((char)('0' + K));
  151|    498|    }
  152|  64.4k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 39.6k, False: 24.8k]
  ------------------
  153|  39.6k|    {
  154|  39.6k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  39.6k|        result.push_back((char)('0' + K));
  156|  39.6k|    }
  157|  24.8k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 24.8k, False: 0]
  ------------------
  158|  24.8k|    {
  159|  24.8k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  24.8k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  24.8k|        result.push_back((char)('0' + K));
  162|  24.8k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  64.9k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  96.1k|{
  476|  96.1k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  96.1k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  96.1k|{
  367|  96.1k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 495, False: 95.6k]
  ------------------
  368|    495|    {
  369|    495|        result.push_back('0');
  370|    495|        result.push_back('.');
  371|    495|        result.push_back('0');
  372|    495|        return true;
  373|    495|    }
  374|       |
  375|  95.6k|    int length = 0;
  376|  95.6k|    int k;
  377|       |
  378|  95.6k|    char buffer[100];
  379|       |
  380|  95.6k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 75.0k, False: 20.6k]
  ------------------
  381|  95.6k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 90.2k, False: 5.39k]
  ------------------
  382|  90.2k|    {
  383|  90.2k|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 73.2k, False: 17.0k]
  ------------------
  384|  73.2k|        {
  385|  73.2k|            result.push_back('-');
  386|  73.2k|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  90.2k|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  90.2k|        return true;
  391|  90.2k|    }
  392|  5.39k|    else
  393|  5.39k|    {
  394|  5.39k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  5.39k|    }
  396|  95.6k|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  5.39k|{
  330|  5.39k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 5.39k]
  ------------------
  331|      0|    {
  332|      0|        result.push_back('0');
  333|      0|        result.push_back('.');
  334|      0|        result.push_back('0');
  335|      0|        return true;
  336|      0|    }
  337|       |
  338|  5.39k|    char buffer[100];
  339|  5.39k|    int precision = std::numeric_limits<double>::digits10;
  340|  5.39k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  5.39k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 5.39k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  5.39k|    double x{0};
  346|  5.39k|    auto res = decstr_to_double(buffer, length, x);
  347|  5.39k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 5.39k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  5.39k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 2.71k, False: 2.68k]
  ------------------
  352|  2.71k|    {
  353|  2.71k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  2.71k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  2.71k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 2.71k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  2.71k|    }
  360|  5.39k|    dump_buffer(buffer, length, decimal_point, result);
  361|  5.39k|    return true;
  362|  5.39k|}

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

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

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

_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RKNS0_22msgpack_decode_optionsERKS7_:
   86|  6.30k|       : source_(std::forward<Sourceable>(source)),
   87|  6.30k|         max_nesting_depth_(options.max_nesting_depth()),
   88|  6.30k|         text_buffer_(alloc),
   89|  6.30k|         bytes_buffer_(alloc),
   90|  6.30k|         state_stack_(alloc)
   91|  6.30k|    {
   92|  6.30k|        state_stack_.emplace_back(parse_mode::root,0);
   93|  6.30k|    }
_ZN8jsoncons7msgpack11parse_stateC2ENS0_10parse_modeEm:
   46|  1.12M|        : mode(mode), length(length)
   47|  1.12M|    {
   48|  1.12M|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  101|  6.30k|    {
  102|  6.30k|        more_ = true;
  103|  6.30k|        done_ = false;
  104|  6.30k|        text_buffer_.clear();
  105|  6.30k|        bytes_buffer_.clear();
  106|  6.30k|        state_stack_.clear();
  107|  6.30k|        state_stack_.emplace_back(parse_mode::root,0);
  108|  6.30k|        nesting_depth_ = 0;
  109|  6.30k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  159|  6.30k|    {
  160|  46.2M|        while (!done_ && more_)
  ------------------
  |  Branch (160:16): [True: 46.2M, False: 1.53k]
  |  Branch (160:26): [True: 46.2M, False: 0]
  ------------------
  161|  46.2M|        {
  162|  46.2M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (162:21): [True: 46.2M, False: 0]
  ------------------
  163|  46.2M|            {
  164|  28.6M|                case parse_mode::array:
  ------------------
  |  Branch (164:17): [True: 28.6M, False: 17.6M]
  ------------------
  165|  28.6M|                {
  166|  28.6M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (166:25): [True: 27.8M, False: 760k]
  ------------------
  167|  27.8M|                    {
  168|  27.8M|                        ++state_stack_.back().index;
  169|  27.8M|                        read_item(visitor, ec);
  170|  27.8M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  27.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.62k, False: 27.8M]
  |  |  ------------------
  ------------------
  171|  1.62k|                        {
  172|  1.62k|                            return;
  173|  1.62k|                        }
  174|  27.8M|                    }
  175|   760k|                    else
  176|   760k|                    {
  177|   760k|                        end_array(visitor, ec);
  178|   760k|                    }
  179|  28.6M|                    break;
  180|  28.6M|                }
  181|  28.6M|                case parse_mode::map_key:
  ------------------
  |  Branch (181:17): [True: 8.96M, False: 37.3M]
  ------------------
  182|  8.96M|                {
  183|  8.96M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (183:25): [True: 8.67M, False: 288k]
  ------------------
  184|  8.67M|                    {
  185|  8.67M|                        ++state_stack_.back().index;
  186|  8.67M|                        state_stack_.back().mode = parse_mode::map_value;
  187|  8.67M|                        read_item(visitor, ec);
  188|  8.67M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  8.67M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 834, False: 8.67M]
  |  |  ------------------
  ------------------
  189|    834|                        {
  190|    834|                            return;
  191|    834|                        }
  192|  8.67M|                    }
  193|   288k|                    else
  194|   288k|                    {
  195|   288k|                        end_object(visitor, ec);
  196|   288k|                    }
  197|  8.96M|                    break;
  198|  8.96M|                }
  199|  8.96M|                case parse_mode::map_value:
  ------------------
  |  Branch (199:17): [True: 8.66M, False: 37.6M]
  ------------------
  200|  8.66M|                {
  201|  8.66M|                    state_stack_.back().mode = parse_mode::map_key;
  202|  8.66M|                    read_item(visitor, ec);
  203|  8.66M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  8.66M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.90k, False: 8.66M]
  |  |  ------------------
  ------------------
  204|  1.90k|                    {
  205|  1.90k|                        return;
  206|  1.90k|                    }
  207|  8.66M|                    break;
  208|  8.66M|                }
  209|  8.66M|                case parse_mode::root:
  ------------------
  |  Branch (209:17): [True: 6.30k, False: 46.2M]
  ------------------
  210|  6.30k|                {
  211|  6.30k|                    state_stack_.back().mode = parse_mode::accept;
  212|  6.30k|                    read_item(visitor, ec);
  213|  6.30k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  6.30k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 413, False: 5.89k]
  |  |  ------------------
  ------------------
  214|    413|                    {
  215|    413|                        return;
  216|    413|                    }
  217|  5.89k|                    break;
  218|  6.30k|                }
  219|  5.89k|                case parse_mode::accept:
  ------------------
  |  Branch (219:17): [True: 1.53k, False: 46.2M]
  ------------------
  220|  1.53k|                {
  221|  1.53k|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   49|  1.53k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 1.53k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  222|  1.53k|                    state_stack_.clear();
  223|  1.53k|                    more_ = false;
  224|  1.53k|                    done_ = true;
  225|  1.53k|                    visitor.flush();
  226|  1.53k|                    break;
  227|  1.53k|                }
  228|  46.2M|            }
  229|  46.2M|        }
  230|  6.30k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  234|  45.2M|    {
  235|  45.2M|        if (source_.is_error())
  ------------------
  |  Branch (235:13): [True: 0, False: 45.2M]
  ------------------
  236|      0|        {
  237|      0|            ec = msgpack_errc::source_error;
  238|      0|            more_ = false;
  239|      0|            return;
  240|      0|        }   
  241|       |
  242|  45.2M|        uint8_t type;
  243|  45.2M|        if (source_.read(&type, 1) == 0)
  ------------------
  |  Branch (243:13): [True: 3.79k, False: 45.2M]
  ------------------
  244|  3.79k|        {
  245|  3.79k|            ec = msgpack_errc::unexpected_eof;
  246|  3.79k|            more_ = false;
  247|  3.79k|            return;
  248|  3.79k|        }
  249|       |
  250|  45.2M|        if (type <= 0xbf)
  ------------------
  |  Branch (250:13): [True: 14.5M, False: 30.7M]
  ------------------
  251|  14.5M|        {
  252|  14.5M|            if (type <= 0x7f) 
  ------------------
  |  Branch (252:17): [True: 12.5M, False: 1.96M]
  ------------------
  253|  12.5M|            {
  254|       |                // positive fixint
  255|  12.5M|                visitor.uint64_value(type, semantic_tag::none, *this, ec);
  256|  12.5M|                more_ = !cursor_mode_;
  257|  12.5M|            }
  258|  1.96M|            else if (type <= 0x8f) 
  ------------------
  |  Branch (258:22): [True: 309k, False: 1.66M]
  ------------------
  259|   309k|            {
  260|   309k|                begin_object(visitor,type,ec); // fixmap
  261|   309k|            }
  262|  1.66M|            else if (type <= 0x9f) 
  ------------------
  |  Branch (262:22): [True: 784k, False: 875k]
  ------------------
  263|   784k|            {
  264|   784k|                begin_array(visitor,type,ec); // fixarray
  265|   784k|            }
  266|   875k|            else 
  267|   875k|            {
  268|       |                // fixstr
  269|   875k|                const size_t len = type & 0x1f;
  270|       |
  271|   875k|                auto data = source_.read_span(len, bytes_buffer_);
  272|   875k|                if (data.size() != static_cast<std::size_t>(len))
  ------------------
  |  Branch (272:21): [True: 47, False: 875k]
  ------------------
  273|     47|                {
  274|     47|                    ec = msgpack_errc::unexpected_eof;
  275|     47|                    more_ = false;
  276|     47|                    return;
  277|     47|                }
  278|       |
  279|   875k|                auto result = unicode_traits::validate(data.data(), data.size());
  280|   875k|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (280:21): [True: 135, False: 875k]
  ------------------
  281|    135|                {
  282|    135|                    ec = msgpack_errc::invalid_utf8_text_string;
  283|    135|                    more_ = false;
  284|    135|                    return;
  285|    135|                }
  286|   875k|                visitor.string_value(jsoncons::string_view(reinterpret_cast<const char*>(data.data()),data.size()), 
  287|   875k|                    semantic_tag::none, *this, ec);
  288|   875k|                more_ = !cursor_mode_;
  289|   875k|            }
  290|  14.5M|        }
  291|  30.7M|        else if (type >= 0xe0) 
  ------------------
  |  Branch (291:18): [True: 2.85M, False: 27.8M]
  ------------------
  292|  2.85M|        {
  293|       |            // negative fixint
  294|  2.85M|            visitor.int64_value(static_cast<int8_t>(type), semantic_tag::none, *this, ec);
  295|  2.85M|            more_ = !cursor_mode_;
  296|  2.85M|        }
  297|  27.8M|        else
  298|  27.8M|        {
  299|  27.8M|            switch (type)
  300|  27.8M|            {
  301|   916k|                case jsoncons::msgpack::msgpack_type::nil_type: 
  ------------------
  |  Branch (301:17): [True: 916k, False: 26.9M]
  ------------------
  302|   916k|                {
  303|   916k|                    visitor.null_value(semantic_tag::none, *this, ec);
  304|   916k|                    more_ = !cursor_mode_;
  305|   916k|                    break;
  306|      0|                }
  307|  88.3k|                case jsoncons::msgpack::msgpack_type::true_type:
  ------------------
  |  Branch (307:17): [True: 88.3k, False: 27.7M]
  ------------------
  308|  88.3k|                {
  309|  88.3k|                    visitor.bool_value(true, semantic_tag::none, *this, ec);
  310|  88.3k|                    more_ = !cursor_mode_;
  311|  88.3k|                    break;
  312|      0|                }
  313|  25.1M|                case jsoncons::msgpack::msgpack_type::false_type:
  ------------------
  |  Branch (313:17): [True: 25.1M, False: 2.77M]
  ------------------
  314|  25.1M|                {
  315|  25.1M|                    visitor.bool_value(false, semantic_tag::none, *this, ec);
  316|  25.1M|                    more_ = !cursor_mode_;
  317|  25.1M|                    break;
  318|      0|                }
  319|   120k|                case jsoncons::msgpack::msgpack_type::float32_type: 
  ------------------
  |  Branch (319:17): [True: 120k, False: 27.7M]
  ------------------
  320|   120k|                {
  321|   120k|                    uint8_t buf[sizeof(float)];
  322|   120k|                    if (source_.read(buf, sizeof(float)) != sizeof(float))
  ------------------
  |  Branch (322:25): [True: 21, False: 120k]
  ------------------
  323|     21|                    {
  324|     21|                        ec = msgpack_errc::unexpected_eof;
  325|     21|                        more_ = false;
  326|     21|                        return;
  327|     21|                    }
  328|   120k|                    float val = binary::big_to_native<float>(buf, sizeof(buf));
  329|   120k|                    visitor.double_value(val, semantic_tag::none, *this, ec);
  330|   120k|                    more_ = !cursor_mode_;
  331|   120k|                    break;
  332|   120k|                }
  333|       |
  334|  65.1k|                case jsoncons::msgpack::msgpack_type::float64_type: 
  ------------------
  |  Branch (334:17): [True: 65.1k, False: 27.8M]
  ------------------
  335|  65.1k|                {
  336|  65.1k|                    uint8_t buf[sizeof(double)];
  337|  65.1k|                    if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (337:25): [True: 16, False: 65.1k]
  ------------------
  338|     16|                    {
  339|     16|                        ec = msgpack_errc::unexpected_eof;
  340|     16|                        more_ = false;
  341|     16|                        return;
  342|     16|                    }
  343|  65.1k|                    double val = binary::big_to_native<double>(buf, sizeof(buf));
  344|  65.1k|                    visitor.double_value(val, semantic_tag::none, *this, ec);
  345|  65.1k|                    more_ = !cursor_mode_;
  346|  65.1k|                    break;
  347|  65.1k|                }
  348|       |
  349|  16.7k|                case jsoncons::msgpack::msgpack_type::uint8_type: 
  ------------------
  |  Branch (349:17): [True: 16.7k, False: 27.8M]
  ------------------
  350|  16.7k|                {
  351|  16.7k|                    uint8_t b;
  352|  16.7k|                    if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (352:25): [True: 2, False: 16.7k]
  ------------------
  353|      2|                    {
  354|      2|                        ec = msgpack_errc::unexpected_eof;
  355|      2|                        more_ = false;
  356|      2|                        return;
  357|      2|                    }
  358|  16.7k|                    visitor.uint64_value(b, semantic_tag::none, *this, ec);
  359|  16.7k|                    more_ = !cursor_mode_;
  360|  16.7k|                    break;
  361|  16.7k|                }
  362|       |
  363|  2.56k|                case jsoncons::msgpack::msgpack_type::uint16_type: 
  ------------------
  |  Branch (363:17): [True: 2.56k, False: 27.8M]
  ------------------
  364|  2.56k|                {
  365|  2.56k|                    uint8_t buf[sizeof(uint16_t)];
  366|  2.56k|                    if (source_.read(buf, sizeof(uint16_t)) !=sizeof(uint16_t)) 
  ------------------
  |  Branch (366:25): [True: 2, False: 2.56k]
  ------------------
  367|      2|                    {
  368|      2|                        ec = msgpack_errc::unexpected_eof;
  369|      2|                        more_ = false;
  370|      2|                        return;
  371|      2|                    }
  372|  2.56k|                    uint16_t val = binary::big_to_native<uint16_t>(buf, sizeof(buf));
  373|  2.56k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  374|  2.56k|                    more_ = !cursor_mode_;
  375|  2.56k|                    break;
  376|  2.56k|                }
  377|       |
  378|  18.9k|                case jsoncons::msgpack::msgpack_type::uint32_type: 
  ------------------
  |  Branch (378:17): [True: 18.9k, False: 27.8M]
  ------------------
  379|  18.9k|                {
  380|  18.9k|                    uint8_t buf[sizeof(uint32_t)];
  381|  18.9k|                    if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (381:25): [True: 5, False: 18.9k]
  ------------------
  382|      5|                    {
  383|      5|                        ec = msgpack_errc::unexpected_eof;
  384|      5|                        more_ = false;
  385|      5|                        return;
  386|      5|                    }
  387|  18.9k|                    uint32_t val = binary::big_to_native<uint32_t>(buf, sizeof(buf));
  388|  18.9k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  389|  18.9k|                    more_ = !cursor_mode_;
  390|  18.9k|                    break;
  391|  18.9k|                }
  392|       |
  393|  7.16k|                case jsoncons::msgpack::msgpack_type::uint64_type: 
  ------------------
  |  Branch (393:17): [True: 7.16k, False: 27.8M]
  ------------------
  394|  7.16k|                {
  395|  7.16k|                    uint8_t buf[sizeof(uint64_t)];
  396|  7.16k|                    if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (396:25): [True: 8, False: 7.16k]
  ------------------
  397|      8|                    {
  398|      8|                        ec = msgpack_errc::unexpected_eof;
  399|      8|                        more_ = false;
  400|      8|                        return;
  401|      8|                    }
  402|  7.16k|                    uint64_t val = binary::big_to_native<uint64_t>(buf, sizeof(buf));
  403|  7.16k|                    visitor.uint64_value(val, semantic_tag::none, *this, ec);
  404|  7.16k|                    more_ = !cursor_mode_;
  405|  7.16k|                    break;
  406|  7.16k|                }
  407|       |
  408|   184k|                case jsoncons::msgpack::msgpack_type::int8_type: 
  ------------------
  |  Branch (408:17): [True: 184k, False: 27.6M]
  ------------------
  409|   184k|                {
  410|   184k|                    uint8_t buf[sizeof(int8_t)];
  411|   184k|                    if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (411:25): [True: 2, False: 184k]
  ------------------
  412|      2|                    {
  413|      2|                        ec = msgpack_errc::unexpected_eof;
  414|      2|                        more_ = false;
  415|      2|                        return;
  416|      2|                    }
  417|   184k|                    int8_t val = binary::big_to_native<int8_t>(buf, sizeof(buf));
  418|   184k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  419|   184k|                    more_ = !cursor_mode_;
  420|   184k|                    break;
  421|   184k|                }
  422|       |
  423|  30.7k|                case jsoncons::msgpack::msgpack_type::int16_type: 
  ------------------
  |  Branch (423:17): [True: 30.7k, False: 27.8M]
  ------------------
  424|  30.7k|                {
  425|  30.7k|                    uint8_t buf[sizeof(int16_t)];
  426|  30.7k|                    if (source_.read(buf, sizeof(int16_t)) != sizeof(int16_t))
  ------------------
  |  Branch (426:25): [True: 5, False: 30.7k]
  ------------------
  427|      5|                    {
  428|      5|                        ec = msgpack_errc::unexpected_eof;
  429|      5|                        more_ = false;
  430|      5|                        return;
  431|      5|                    }
  432|  30.7k|                    int16_t val = binary::big_to_native<int16_t>(buf, sizeof(buf));
  433|  30.7k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  434|  30.7k|                    more_ = !cursor_mode_;
  435|  30.7k|                    break;
  436|  30.7k|                }
  437|       |
  438|  16.1k|                case jsoncons::msgpack::msgpack_type::int32_type: 
  ------------------
  |  Branch (438:17): [True: 16.1k, False: 27.8M]
  ------------------
  439|  16.1k|                {
  440|  16.1k|                    uint8_t buf[sizeof(int32_t)];
  441|  16.1k|                    if (source_.read(buf, sizeof(int32_t)) != sizeof(int32_t))
  ------------------
  |  Branch (441:25): [True: 2, False: 16.1k]
  ------------------
  442|      2|                    {
  443|      2|                        ec = msgpack_errc::unexpected_eof;
  444|      2|                        more_ = false;
  445|      2|                        return;
  446|      2|                    }
  447|  16.1k|                    int32_t val = binary::big_to_native<int32_t>(buf, sizeof(buf));
  448|  16.1k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  449|  16.1k|                    more_ = !cursor_mode_;
  450|  16.1k|                    break;
  451|  16.1k|                }
  452|       |
  453|  20.5k|                case jsoncons::msgpack::msgpack_type::int64_type: 
  ------------------
  |  Branch (453:17): [True: 20.5k, False: 27.8M]
  ------------------
  454|  20.5k|                {
  455|  20.5k|                    uint8_t buf[sizeof(int64_t)];
  456|  20.5k|                    if (source_.read(buf, sizeof(int64_t)) != sizeof(int64_t))
  ------------------
  |  Branch (456:25): [True: 18, False: 20.5k]
  ------------------
  457|     18|                    {
  458|     18|                        ec = msgpack_errc::unexpected_eof;
  459|     18|                        more_ = false;
  460|     18|                        return;
  461|     18|                    }
  462|  20.5k|                    int64_t val = binary::big_to_native<int64_t>(buf, sizeof(buf));
  463|  20.5k|                    visitor.int64_value(val, semantic_tag::none, *this, ec);
  464|  20.5k|                    more_ = !cursor_mode_;
  465|  20.5k|                    break;
  466|  20.5k|                }
  467|       |
  468|  1.13k|                case jsoncons::msgpack::msgpack_type::str8_type: 
  ------------------
  |  Branch (468:17): [True: 1.13k, False: 27.8M]
  ------------------
  469|  1.45k|                case jsoncons::msgpack::msgpack_type::str16_type: 
  ------------------
  |  Branch (469:17): [True: 319, False: 27.8M]
  ------------------
  470|  2.46k|                case jsoncons::msgpack::msgpack_type::str32_type: 
  ------------------
  |  Branch (470:17): [True: 1.01k, False: 27.8M]
  ------------------
  471|  2.46k|                {
  472|  2.46k|                    std::size_t len = get_size(type, ec);
  473|  2.46k|                    if (!more_)
  ------------------
  |  Branch (473:25): [True: 27, False: 2.44k]
  ------------------
  474|     27|                    {
  475|     27|                        return;
  476|     27|                    }
  477|       |
  478|  2.44k|                    auto data = source_.read_span(len, bytes_buffer_);
  479|  2.44k|                    if (data.size() != static_cast<std::size_t>(len))
  ------------------
  |  Branch (479:25): [True: 118, False: 2.32k]
  ------------------
  480|    118|                    {
  481|    118|                        ec = msgpack_errc::unexpected_eof;
  482|    118|                        more_ = false;
  483|    118|                        return;
  484|    118|                    }
  485|       |
  486|  2.32k|                    auto result = unicode_traits::validate(data.data(), data.size());
  487|  2.32k|                    if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (487:25): [True: 46, False: 2.27k]
  ------------------
  488|     46|                    {
  489|     46|                        ec = msgpack_errc::invalid_utf8_text_string;
  490|     46|                        more_ = false;
  491|     46|                        return;
  492|     46|                    }
  493|  2.27k|                    visitor.string_value(jsoncons::string_view(reinterpret_cast<const char*>(data.data()),data.size()), 
  494|  2.27k|                        semantic_tag::none, *this, ec);
  495|  2.27k|                    more_ = !cursor_mode_;
  496|  2.27k|                    break;
  497|  2.32k|                }
  498|       |
  499|  62.8k|                case jsoncons::msgpack::msgpack_type::bin8_type: 
  ------------------
  |  Branch (499:17): [True: 62.8k, False: 27.8M]
  ------------------
  500|  65.0k|                case jsoncons::msgpack::msgpack_type::bin16_type: 
  ------------------
  |  Branch (500:17): [True: 2.20k, False: 27.8M]
  ------------------
  501|  65.5k|                case jsoncons::msgpack::msgpack_type::bin32_type: 
  ------------------
  |  Branch (501:17): [True: 494, False: 27.8M]
  ------------------
  502|  65.5k|                {
  503|  65.5k|                    std::size_t len = get_size(type,ec);
  504|  65.5k|                    if (!more_)
  ------------------
  |  Branch (504:25): [True: 24, False: 65.5k]
  ------------------
  505|     24|                    {
  506|     24|                        return;
  507|     24|                    }
  508|  65.5k|                    auto data = source_.read_span(len, bytes_buffer_);
  509|  65.5k|                    if (JSONCONS_UNLIKELY(data.size() != static_cast<std::size_t>(len)))
  ------------------
  |  |   78|  65.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 126, False: 65.4k]
  |  |  ------------------
  ------------------
  510|    126|                    {
  511|    126|                        ec = msgpack_errc::unexpected_eof;
  512|    126|                        more_ = false;
  513|    126|                        return;
  514|    126|                    }
  515|       |
  516|  65.4k|                    visitor.byte_string_value(byte_string_view(data.data(),data.size()), 
  517|  65.4k|                        semantic_tag::none, 
  518|  65.4k|                        *this,
  519|  65.4k|                        ec);
  520|  65.4k|                    more_ = !cursor_mode_;
  521|  65.4k|                    break;
  522|  65.5k|                }
  523|  21.9k|                case jsoncons::msgpack::msgpack_type::fixext1_type: 
  ------------------
  |  Branch (523:17): [True: 21.9k, False: 27.8M]
  ------------------
  524|  1.04M|                case jsoncons::msgpack::msgpack_type::fixext2_type: 
  ------------------
  |  Branch (524:17): [True: 1.02M, False: 26.8M]
  ------------------
  525|  1.05M|                case jsoncons::msgpack::msgpack_type::fixext4_type: 
  ------------------
  |  Branch (525:17): [True: 8.73k, False: 27.8M]
  ------------------
  526|  1.15M|                case jsoncons::msgpack::msgpack_type::fixext8_type: 
  ------------------
  |  Branch (526:17): [True: 99.2k, False: 27.7M]
  ------------------
  527|  1.16M|                case jsoncons::msgpack::msgpack_type::fixext16_type: 
  ------------------
  |  Branch (527:17): [True: 14.9k, False: 27.8M]
  ------------------
  528|  1.19M|                case jsoncons::msgpack::msgpack_type::ext8_type: 
  ------------------
  |  Branch (528:17): [True: 26.6k, False: 27.8M]
  ------------------
  529|  1.19M|                case jsoncons::msgpack::msgpack_type::ext16_type: 
  ------------------
  |  Branch (529:17): [True: 496, False: 27.8M]
  ------------------
  530|  1.19M|                case jsoncons::msgpack::msgpack_type::ext32_type: 
  ------------------
  |  Branch (530:17): [True: 2.12k, False: 27.8M]
  ------------------
  531|  1.19M|                {
  532|  1.19M|                    std::size_t len = get_size(type,ec);
  533|  1.19M|                    if (!more_)
  ------------------
  |  Branch (533:25): [True: 25, False: 1.19M]
  ------------------
  534|     25|                    {
  535|     25|                        return;
  536|     25|                    }
  537|       |
  538|       |                    // type
  539|  1.19M|                    uint8_t buf[sizeof(int8_t)];
  540|  1.19M|                    if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (540:25): [True: 46, False: 1.19M]
  ------------------
  541|     46|                    {
  542|     46|                        ec = msgpack_errc::unexpected_eof;
  543|     46|                        more_ = false;
  544|     46|                        return;
  545|     46|                    }
  546|       |
  547|  1.19M|                    int8_t ext_type = binary::big_to_native<int8_t>(buf, sizeof(buf));
  548|       |
  549|  1.19M|                    bool is_timestamp = false; 
  550|  1.19M|                    if (ext_type == -1)
  ------------------
  |  Branch (550:25): [True: 115k, False: 1.08M]
  ------------------
  551|   115k|                    {
  552|   115k|                        is_timestamp = true;;
  553|   115k|                    }
  554|       |
  555|       |                    // payload
  556|  1.19M|                    if (is_timestamp && len == 4)
  ------------------
  |  Branch (556:25): [True: 115k, False: 1.08M]
  |  Branch (556:41): [True: 2.01k, False: 113k]
  ------------------
  557|  2.01k|                    {
  558|  2.01k|                        uint8_t buf32[sizeof(uint32_t)];
  559|  2.01k|                        if (source_.read(buf32, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (559:29): [True: 3, False: 2.00k]
  ------------------
  560|      3|                        {
  561|      3|                            ec = msgpack_errc::unexpected_eof;
  562|      3|                            more_ = false;
  563|      3|                            return;
  564|      3|                        }
  565|  2.00k|                        uint32_t val = binary::big_to_native<uint32_t>(buf32, sizeof(buf32));
  566|  2.00k|                        visitor.uint64_value(val, semantic_tag::epoch_second, *this, ec);
  567|  2.00k|                        more_ = !cursor_mode_;
  568|  2.00k|                    }
  569|  1.19M|                    else if (is_timestamp && len == 8)
  ------------------
  |  Branch (569:30): [True: 113k, False: 1.08M]
  |  Branch (569:46): [True: 89.2k, False: 24.0k]
  ------------------
  570|  89.2k|                    {
  571|  89.2k|                        uint8_t buf64[sizeof(uint64_t)];
  572|  89.2k|                        if (source_.read(buf64, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (572:29): [True: 6, False: 89.2k]
  ------------------
  573|      6|                        {
  574|      6|                            ec = msgpack_errc::unexpected_eof;
  575|      6|                            more_ = false;
  576|      6|                            return;
  577|      6|                        }
  578|  89.2k|                        uint64_t data64 = binary::big_to_native<uint64_t>(buf64, sizeof(buf64));
  579|  89.2k|                        uint64_t sec = data64 & 0x00000003ffffffffL;
  580|  89.2k|                        uint64_t nsec = data64 >> 34;
  581|       |
  582|  89.2k|                        bigint nano(sec);
  583|  89.2k|                        nano *= uint64_t(nanos_in_second);
  584|  89.2k|                        nano += nsec;
  585|  89.2k|                        text_buffer_.clear();
  586|  89.2k|                        nano.write_string(text_buffer_);
  587|  89.2k|                        visitor.string_value(text_buffer_, semantic_tag::epoch_nano, *this, ec);
  588|  89.2k|                        more_ = !cursor_mode_;
  589|  89.2k|                        if (!more_) return;
  ------------------
  |  Branch (589:29): [True: 0, False: 89.2k]
  ------------------
  590|  89.2k|                    }
  591|  1.10M|                    else if (is_timestamp && len == 12)
  ------------------
  |  Branch (591:30): [True: 24.0k, False: 1.08M]
  |  Branch (591:46): [True: 22.2k, False: 1.79k]
  ------------------
  592|  22.2k|                    {
  593|  22.2k|                        uint8_t buf1[sizeof(uint32_t)];
  594|  22.2k|                        if (source_.read(buf1, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (594:29): [True: 4, False: 22.2k]
  ------------------
  595|      4|                        {
  596|      4|                            ec = msgpack_errc::unexpected_eof;
  597|      4|                            more_ = false;
  598|      4|                            return;
  599|      4|                        }
  600|  22.2k|                        uint32_t nsec = binary::big_to_native<uint32_t>(buf1, sizeof(buf1));
  601|       |
  602|  22.2k|                        uint8_t buf2[sizeof(int64_t)];
  603|  22.2k|                        if (source_.read(buf2, sizeof(int64_t)) != sizeof(int64_t))
  ------------------
  |  Branch (603:29): [True: 8, False: 22.2k]
  ------------------
  604|      8|                        {
  605|      8|                            ec = msgpack_errc::unexpected_eof;
  606|      8|                            more_ = false;
  607|      8|                            return;
  608|      8|                        }
  609|  22.2k|                        int64_t sec = binary::big_to_native<int64_t>(buf2, sizeof(buf2));
  610|       |
  611|  22.2k|                        bigint nano(sec);
  612|       |
  613|  22.2k|                        nano *= uint64_t(nanos_in_second);
  614|       |
  615|  22.2k|                        if (nano < 0)
  ------------------
  |  Branch (615:29): [True: 15.5k, False: 6.69k]
  ------------------
  616|  15.5k|                        {
  617|  15.5k|                            nano -= nsec;
  618|  15.5k|                        }
  619|  6.69k|                        else
  620|  6.69k|                        {
  621|  6.69k|                            nano += nsec;
  622|  6.69k|                        }
  623|       |
  624|  22.2k|                        text_buffer_.clear();
  625|  22.2k|                        nano.write_string(text_buffer_);
  626|  22.2k|                        visitor.string_value(text_buffer_, semantic_tag::epoch_nano, *this, ec);
  627|  22.2k|                        more_ = !cursor_mode_;
  628|  22.2k|                        if (!more_) return;
  ------------------
  |  Branch (628:29): [True: 0, False: 22.2k]
  ------------------
  629|  22.2k|                    }
  630|  1.08M|                    else
  631|  1.08M|                    {
  632|  1.08M|                        auto data = source_.read_span(len, bytes_buffer_);
  633|  1.08M|                        if (JSONCONS_UNLIKELY(data.size() != static_cast<std::size_t>(len)))
  ------------------
  |  |   78|  1.08M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 219, False: 1.08M]
  |  |  ------------------
  ------------------
  634|    219|                        {
  635|    219|                            ec = msgpack_errc::unexpected_eof;
  636|    219|                            more_ = false;
  637|    219|                            return;
  638|    219|                        }
  639|       |
  640|  1.08M|                        visitor.byte_string_value(byte_string_view(data.data(),data.size()), 
  641|  1.08M|                                                          static_cast<uint8_t>(ext_type), 
  642|  1.08M|                                                          *this,
  643|  1.08M|                                                          ec);
  644|  1.08M|                        more_ = !cursor_mode_;
  645|  1.08M|                    }
  646|  1.19M|                    break;
  647|  1.19M|                }
  648|       |
  649|  1.19M|                case jsoncons::msgpack::msgpack_type::array16_type: 
  ------------------
  |  Branch (649:17): [True: 5.97k, False: 27.8M]
  ------------------
  650|  13.2k|                case jsoncons::msgpack::msgpack_type::array32_type: 
  ------------------
  |  Branch (650:17): [True: 7.29k, False: 27.8M]
  ------------------
  651|  13.2k|                {
  652|  13.2k|                    begin_array(visitor,type,ec);
  653|  13.2k|                    break;
  654|  5.97k|                }
  655|       |
  656|  1.77k|                case jsoncons::msgpack::msgpack_type::map16_type : 
  ------------------
  |  Branch (656:17): [True: 1.77k, False: 27.8M]
  ------------------
  657|  3.64k|                case jsoncons::msgpack::msgpack_type::map32_type : 
  ------------------
  |  Branch (657:17): [True: 1.87k, False: 27.8M]
  ------------------
  658|  3.64k|                {
  659|  3.64k|                    begin_object(visitor, type, ec);
  660|  3.64k|                    break;
  661|  1.77k|                }
  662|       |
  663|     11|                default:
  ------------------
  |  Branch (663:17): [True: 11, False: 27.8M]
  ------------------
  664|     11|                {
  665|     11|                    ec = msgpack_errc::unknown_type;
  666|     11|                    more_ = false;
  667|     11|                    return;
  668|  1.77k|                }
  669|  27.8M|            }
  670|  27.8M|        }
  671|  45.2M|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectERNS_21basic_generic_visitorIcEEhRNS3_10error_codeE:
  701|   312k|    {
  702|   312k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|   312k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 312k]
  |  |  ------------------
  ------------------
  703|      2|        {
  704|      2|            ec = msgpack_errc::max_nesting_depth_exceeded;
  705|      2|            more_ = false;
  706|      2|            return;
  707|      2|        } 
  708|   312k|        std::size_t length = get_size(type, ec);
  709|   312k|        if (!more_)
  ------------------
  |  Branch (709:13): [True: 17, False: 312k]
  ------------------
  710|     17|        {
  711|     17|            return;
  712|     17|        }
  713|   312k|        state_stack_.emplace_back(parse_mode::map_key,length);
  714|   312k|        visitor.begin_object(length, semantic_tag::none, *this, ec);
  715|   312k|        more_ = !cursor_mode_;
  716|   312k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayERNS_21basic_generic_visitorIcEEhRNS3_10error_codeE:
  674|   798k|    {
  675|   798k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|   798k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4, False: 798k]
  |  |  ------------------
  ------------------
  676|      4|        {
  677|      4|            ec = msgpack_errc::max_nesting_depth_exceeded;
  678|      4|            more_ = false;
  679|      4|            return;
  680|      4|        } 
  681|   798k|        std::size_t length = get_size(type, ec);
  682|   798k|        if (!more_)
  ------------------
  |  Branch (682:13): [True: 20, False: 797k]
  ------------------
  683|     20|        {
  684|     20|            return;
  685|     20|        }
  686|   797k|        state_stack_.emplace_back(parse_mode::array,length);
  687|   797k|        visitor.begin_array(length, semantic_tag::none, *this, ec);
  688|   797k|        more_ = !cursor_mode_;
  689|   797k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE8get_sizeEhRNS3_10error_codeE:
  727|  2.37M|    {
  728|  2.37M|        switch (type)
  729|  2.37M|        {
  730|  1.13k|            case jsoncons::msgpack::msgpack_type::str8_type: 
  ------------------
  |  Branch (730:13): [True: 1.13k, False: 2.37M]
  ------------------
  731|  63.9k|            case jsoncons::msgpack::msgpack_type::bin8_type: 
  ------------------
  |  Branch (731:13): [True: 62.8k, False: 2.31M]
  ------------------
  732|  90.6k|            case jsoncons::msgpack::msgpack_type::ext8_type: 
  ------------------
  |  Branch (732:13): [True: 26.6k, False: 2.34M]
  ------------------
  733|  90.6k|            {
  734|  90.6k|                uint8_t buf[sizeof(int8_t)];
  735|  90.6k|                if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (735:21): [True: 25, False: 90.5k]
  ------------------
  736|     25|                {
  737|     25|                    ec = msgpack_errc::unexpected_eof;
  738|     25|                    more_ = false;
  739|     25|                    return 0;
  740|     25|                }
  741|  90.5k|                uint8_t len = binary::big_to_native<uint8_t>(buf, sizeof(buf));
  742|  90.5k|                return static_cast<std::size_t>(len);
  743|  90.6k|            }
  744|       |
  745|    319|            case jsoncons::msgpack::msgpack_type::str16_type: 
  ------------------
  |  Branch (745:13): [True: 319, False: 2.37M]
  ------------------
  746|  2.52k|            case jsoncons::msgpack::msgpack_type::bin16_type: 
  ------------------
  |  Branch (746:13): [True: 2.20k, False: 2.37M]
  ------------------
  747|  3.01k|            case jsoncons::msgpack::msgpack_type::ext16_type: 
  ------------------
  |  Branch (747:13): [True: 496, False: 2.37M]
  ------------------
  748|  8.99k|            case jsoncons::msgpack::msgpack_type::array16_type: 
  ------------------
  |  Branch (748:13): [True: 5.97k, False: 2.36M]
  ------------------
  749|  10.7k|            case jsoncons::msgpack::msgpack_type::map16_type:
  ------------------
  |  Branch (749:13): [True: 1.77k, False: 2.37M]
  ------------------
  750|  10.7k|            {
  751|  10.7k|                uint8_t buf[sizeof(int16_t)];
  752|  10.7k|                if (source_.read(buf, sizeof(int16_t)) != sizeof(int16_t))
  ------------------
  |  Branch (752:21): [True: 42, False: 10.7k]
  ------------------
  753|     42|                {
  754|     42|                    ec = msgpack_errc::unexpected_eof;
  755|     42|                    more_ = false;
  756|     42|                    return 0;
  757|     42|                }
  758|  10.7k|                uint16_t len = binary::big_to_native<uint16_t>(buf, sizeof(buf));
  759|  10.7k|                return static_cast<std::size_t>(len);
  760|  10.7k|            }
  761|       |
  762|  1.01k|            case jsoncons::msgpack::msgpack_type::str32_type: 
  ------------------
  |  Branch (762:13): [True: 1.01k, False: 2.37M]
  ------------------
  763|  1.50k|            case jsoncons::msgpack::msgpack_type::bin32_type: 
  ------------------
  |  Branch (763:13): [True: 494, False: 2.37M]
  ------------------
  764|  3.63k|            case jsoncons::msgpack::msgpack_type::ext32_type: 
  ------------------
  |  Branch (764:13): [True: 2.12k, False: 2.37M]
  ------------------
  765|  10.9k|            case jsoncons::msgpack::msgpack_type::array32_type: 
  ------------------
  |  Branch (765:13): [True: 7.29k, False: 2.36M]
  ------------------
  766|  12.8k|            case jsoncons::msgpack::msgpack_type::map32_type : 
  ------------------
  |  Branch (766:13): [True: 1.87k, False: 2.37M]
  ------------------
  767|  12.8k|            {
  768|  12.8k|                uint8_t buf[sizeof(int32_t)];
  769|  12.8k|                if (source_.read(buf, sizeof(int32_t)) != sizeof(int32_t))
  ------------------
  |  Branch (769:21): [True: 46, False: 12.7k]
  ------------------
  770|     46|                {
  771|     46|                    ec = msgpack_errc::unexpected_eof;
  772|     46|                    more_ = false;
  773|     46|                    return 0;
  774|     46|                }
  775|  12.7k|                uint32_t len = binary::big_to_native<uint32_t>(buf, sizeof(buf));
  776|  12.7k|                return static_cast<std::size_t>(len);
  777|  12.8k|            }
  778|  21.9k|            case jsoncons::msgpack::msgpack_type::fixext1_type: 
  ------------------
  |  Branch (778:13): [True: 21.9k, False: 2.35M]
  ------------------
  779|  21.9k|                return 1;
  780|  1.02M|            case jsoncons::msgpack::msgpack_type::fixext2_type: 
  ------------------
  |  Branch (780:13): [True: 1.02M, False: 1.35M]
  ------------------
  781|  1.02M|                return 2;
  782|  8.73k|            case jsoncons::msgpack::msgpack_type::fixext4_type: 
  ------------------
  |  Branch (782:13): [True: 8.73k, False: 2.36M]
  ------------------
  783|  8.73k|                return 4;
  784|  99.2k|            case jsoncons::msgpack::msgpack_type::fixext8_type: 
  ------------------
  |  Branch (784:13): [True: 99.2k, False: 2.27M]
  ------------------
  785|  99.2k|                return 8;
  786|  14.9k|            case jsoncons::msgpack::msgpack_type::fixext16_type: 
  ------------------
  |  Branch (786:13): [True: 14.9k, False: 2.36M]
  ------------------
  787|  14.9k|                return 16;
  788|  1.09M|            default:
  ------------------
  |  Branch (788:13): [True: 1.09M, False: 1.28M]
  ------------------
  789|  1.09M|                if ((type > 0x8f && type <= 0x9f) // fixarray
  ------------------
  |  Branch (789:22): [True: 784k, False: 309k]
  |  Branch (789:37): [True: 784k, False: 0]
  ------------------
  790|   309k|                    || (type > 0x7f && type <= 0x8f) // fixmap
  ------------------
  |  Branch (790:25): [True: 309k, False: 0]
  |  Branch (790:40): [True: 309k, False: 0]
  ------------------
  791|  1.09M|        )
  792|  1.09M|                {
  793|  1.09M|                    return type & 0x0f;
  794|  1.09M|                }
  795|      0|                else
  796|      0|                {
  797|      0|                    ec = msgpack_errc::unknown_type;
  798|      0|                    more_ = false;
  799|      0|                    return 0;
  800|      0|                }
  801|      0|                break;
  802|  2.37M|        }
  803|  2.37M|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  692|   760k|    {
  693|   760k|        --nesting_depth_;
  694|       |
  695|   760k|        visitor.end_array(*this, ec);
  696|   760k|        more_ = !cursor_mode_;
  697|   760k|        state_stack_.pop_back();
  698|   760k|    }
_ZN8jsoncons7msgpack20basic_msgpack_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  719|   288k|    {
  720|   288k|        --nesting_depth_;
  721|   288k|        visitor.end_object(*this, ec);
  722|   288k|        more_ = !cursor_mode_;
  723|   288k|        state_stack_.pop_back();
  724|   288k|    }

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

