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

_ZN8jsoncons6binary11decode_halfEt:
  536|  8.54M|    {
  537|       |    #if defined(__F16C__) && !defined(APPLE_MISSING_INTRINSICS)
  538|       |        return _cvtsh_ss(half);
  539|       |    #else
  540|  8.54M|        int64_t exp = (half >> 10) & 0x1f;
  541|  8.54M|        int64_t mant = half & 0x3ff;
  542|  8.54M|        double val;
  543|  8.54M|        if (exp == 0) 
  ------------------
  |  Branch (543:13): [True: 1.51M, False: 7.03M]
  ------------------
  544|  1.51M|        {
  545|  1.51M|            val = ldexp(static_cast<double>(mant), -24);
  546|  1.51M|        }
  547|  7.03M|        else if (exp != 31) 
  ------------------
  |  Branch (547:18): [True: 6.25M, False: 778k]
  ------------------
  548|  6.25M|        {
  549|  6.25M|            val = ldexp(static_cast<double>(mant) + 1024.0, static_cast<int>(exp - 25));
  550|  6.25M|        } 
  551|   778k|        else
  552|   778k|        {
  553|   778k|            val = mant == 0 ? std::numeric_limits<double>::infinity() : std::nan("");
  ------------------
  |  Branch (553:19): [True: 1.27k, False: 777k]
  ------------------
  554|   778k|        }
  555|  8.54M|        return half & 0x8000 ? -val : val;
  ------------------
  |  Branch (555:16): [True: 3.82M, False: 4.72M]
  ------------------
  556|  8.54M|    #endif
  557|  8.54M|    }

_ZN8jsoncons6detail8expectedImNSt3__14errcEEC2ImEENS2_9enable_ifIXsr3std24is_default_constructibleIT_EE5valueEiE4typeE:
   41|    118|        : expected(T{})
   42|    118|    {
   43|    118|    }
_ZN8jsoncons6detail8expectedImNSt3__14errcEEC2EOm:
   52|    164|        : has_value_(true)
   53|    164|    {
   54|    164|        construct(std::move(value));
   55|    164|    }
_ZN8jsoncons6detail8expectedImNSt3__14errcEE9constructEOm:
  274|    164|    {
  275|    164|        ::new (&value_) T(std::move(value));
  276|    164|        has_value_ = true;
  277|    164|    }
_ZN8jsoncons6detail8expectedImNSt3__14errcEEC2IJS3_EEENS0_10unexpect_tEDpOT_:
   66|     38|        : has_value_(false)
   67|     38|    {
   68|     38|        ::new (&error_) E(std::forward<Args>(args)...);
   69|     38|    }
_ZNK8jsoncons6detail8expectedImNSt3__14errcEEcvbEv:
  146|    202|    {
  147|    202|        return has_value_;
  148|    202|    }
_ZNR8jsoncons6detail8expectedImNSt3__14errcEEdeEv:
  231|    189|    {
  232|    189|        return this->value_;
  233|    189|    }
_ZN8jsoncons6detail8expectedImNSt3__14errcEED2Ev:
  100|    202|    {
  101|    202|        destroy();
  102|    202|    }
_ZN8jsoncons6detail8expectedImNSt3__14errcEE7destroyEv:
  280|    202|    {
  281|    202|        if (has_value_) 
  ------------------
  |  Branch (281:13): [True: 164, False: 38]
  ------------------
  282|    164|        {
  283|    164|            value_.~T();
  284|    164|            has_value_ = false;
  285|    164|        }
  286|     38|        else
  287|     38|        {
  288|     38|            error_.~E();
  289|     38|        }
  290|    202|    }

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

_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4sizeEv:
  116|  4.78M|        {
  117|  4.78M|            return size_;
  118|  4.78M|        }
_ZNK8jsoncons6detail4spanIKmLm18446744073709551615EE4sizeEv:
  116|    313|        {
  117|    313|            return size_;
  118|    313|        }
_ZNK8jsoncons6detail4spanIhLm18446744073709551615EE4dataEv:
  111|  46.2k|        {
  112|  46.2k|            return data_;
  113|  46.2k|        }
_ZNK8jsoncons6detail4spanIhLm18446744073709551615EE4sizeEv:
  116|  46.2k|        {
  117|  46.2k|            return size_;
  118|  46.2k|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|  3.22k|            : data_(data), size_(size)
   62|  3.22k|        {
   63|  3.22k|        }
_ZN8jsoncons6detail4spanIhLm18446744073709551615EEC2INSt3__16vectorIhNS4_9allocatorIhEEEEEERT_PNS4_9enable_ifIXaaaaaantsr7is_spanIS9_EE5valuentsr10ext_traits12is_std_arrayIS9_EE5valuesr10ext_traits21is_compatible_elementIS9_hEE5valuesr10ext_traits17has_data_and_sizeIS9_EE5valueEvE4typeE:
   68|  46.2k|            : data_(c.data()), size_(c.size())
   69|  46.2k|        {
   70|  46.2k|        }
_ZN8jsoncons6detail4spanIKmLm18446744073709551615EEC2INSt3__16vectorImNS5_9allocatorImEEEEEERT_PNS5_9enable_ifIXaaaaaantsr7is_spanISA_EE5valuentsr10ext_traits12is_std_arrayISA_EE5valuesr10ext_traits21is_compatible_elementISA_S2_EE5valuesr10ext_traits17has_data_and_sizeISA_EE5valueEvE4typeE:
   68|    217|            : data_(c.data()), size_(c.size())
   69|    217|        {
   70|    217|        }
_ZNK8jsoncons6detail4spanIKmLm18446744073709551615EEixEm:
  126|    750|         {
  127|    750|             return data_[index];
  128|    750|         }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EEixEm:
  126|  4.77M|         {
  127|  4.77M|             return data_[index];
  128|  4.77M|         }
_ZN8jsoncons6detail4spanItLm18446744073709551615EEC2EPtm:
   61|  12.2k|            : data_(data), size_(size)
   62|  12.2k|        {
   63|  12.2k|        }
_ZNK8jsoncons6detail4spanItLm18446744073709551615EE4sizeEv:
  116|  12.1M|        {
  117|  12.1M|            return size_;
  118|  12.1M|        }
_ZNK8jsoncons6detail4spanItLm18446744073709551615EEixEm:
  126|  14.8M|         {
  127|  14.8M|             return data_[index];
  128|  14.8M|         }
_ZN8jsoncons6detail4spanIjLm18446744073709551615EEC2EPjm:
   61|  2.79k|            : data_(data), size_(size)
   62|  2.79k|        {
   63|  2.79k|        }
_ZNK8jsoncons6detail4spanIjLm18446744073709551615EE4sizeEv:
  116|  8.77M|        {
  117|  8.77M|            return size_;
  118|  8.77M|        }
_ZNK8jsoncons6detail4spanIjLm18446744073709551615EEixEm:
  126|  13.1M|         {
  127|  13.1M|             return data_[index];
  128|  13.1M|         }
_ZN8jsoncons6detail4spanImLm18446744073709551615EEC2EPmm:
   61|  7.90k|            : data_(data), size_(size)
   62|  7.90k|        {
   63|  7.90k|        }
_ZNK8jsoncons6detail4spanImLm18446744073709551615EE4sizeEv:
  116|  1.37M|        {
  117|  1.37M|            return size_;
  118|  1.37M|        }
_ZNK8jsoncons6detail4spanImLm18446744073709551615EEixEm:
  126|  2.01M|         {
  127|  2.01M|             return data_[index];
  128|  2.01M|         }
_ZN8jsoncons6detail4spanIaLm18446744073709551615EEC2EPam:
   61|  2.04k|            : data_(data), size_(size)
   62|  2.04k|        {
   63|  2.04k|        }
_ZNK8jsoncons6detail4spanIaLm18446744073709551615EE4sizeEv:
  116|   620k|        {
  117|   620k|            return size_;
  118|   620k|        }
_ZNK8jsoncons6detail4spanIaLm18446744073709551615EEixEm:
  126|   614k|         {
  127|   614k|             return data_[index];
  128|   614k|         }
_ZN8jsoncons6detail4spanIsLm18446744073709551615EEC2EPsm:
   61|  3.22k|            : data_(data), size_(size)
   62|  3.22k|        {
   63|  3.22k|        }
_ZNK8jsoncons6detail4spanIsLm18446744073709551615EE4sizeEv:
  116|  3.57M|        {
  117|  3.57M|            return size_;
  118|  3.57M|        }
_ZNK8jsoncons6detail4spanIsLm18446744073709551615EEixEm:
  126|  5.00M|         {
  127|  5.00M|             return data_[index];
  128|  5.00M|         }
_ZN8jsoncons6detail4spanIiLm18446744073709551615EEC2EPim:
   61|  3.99k|            : data_(data), size_(size)
   62|  3.99k|        {
   63|  3.99k|        }
_ZNK8jsoncons6detail4spanIiLm18446744073709551615EE4sizeEv:
  116|  4.96M|        {
  117|  4.96M|            return size_;
  118|  4.96M|        }
_ZNK8jsoncons6detail4spanIiLm18446744073709551615EEixEm:
  126|  7.42M|         {
  127|  7.42M|             return data_[index];
  128|  7.42M|         }
_ZN8jsoncons6detail4spanIlLm18446744073709551615EEC2EPlm:
   61|  3.56k|            : data_(data), size_(size)
   62|  3.56k|        {
   63|  3.56k|        }
_ZNK8jsoncons6detail4spanIlLm18446744073709551615EE4sizeEv:
  116|  1.28M|        {
  117|  1.28M|            return size_;
  118|  1.28M|        }
_ZNK8jsoncons6detail4spanIlLm18446744073709551615EEixEm:
  126|  1.91M|         {
  127|  1.91M|             return data_[index];
  128|  1.91M|         }
_ZN8jsoncons6detail4spanIfLm18446744073709551615EEC2EPfm:
   61|  4.28k|            : data_(data), size_(size)
   62|  4.28k|        {
   63|  4.28k|        }
_ZNK8jsoncons6detail4spanIfLm18446744073709551615EE4sizeEv:
  116|  1.47M|        {
  117|  1.47M|            return size_;
  118|  1.47M|        }
_ZNK8jsoncons6detail4spanIfLm18446744073709551615EEixEm:
  126|  2.14M|         {
  127|  2.14M|             return data_[index];
  128|  2.14M|         }
_ZN8jsoncons6detail4spanIdLm18446744073709551615EEC2EPdm:
   61|  2.93k|            : data_(data), size_(size)
   62|  2.93k|        {
   63|  2.93k|        }
_ZNK8jsoncons6detail4spanIdLm18446744073709551615EE4sizeEv:
  116|   655k|        {
  117|   655k|            return size_;
  118|   655k|        }
_ZNK8jsoncons6detail4spanIdLm18446744073709551615EEixEm:
  126|   941k|         {
  127|   941k|             return data_[index];
  128|   941k|         }
_ZNK8jsoncons6detail4spanIKmLm18446744073709551615EE5emptyEv:
  121|    202|        { 
  122|    202|            return size_ == 0; 
  123|    202|        }

_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1011|   547k|        {
 1012|   547k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1012:17): [True: 190k, False: 356k]
  ------------------
 1013|   190k|            {
 1014|   190k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1014:21): [True: 166k, False: 24.5k]
  |  Branch (1014:73): [True: 164k, False: 1.99k]
  ------------------
 1015|   164k|                {
 1016|   164k|                    key_buffer_.push_back(',');
 1017|   164k|                }
 1018|   190k|                level_stack_.emplace_back(target_t::buffer, container_t::array);
 1019|   190k|                key_buffer_.push_back('[');
 1020|   190k|            }
 1021|   356k|            else
 1022|   356k|            {
 1023|   356k|                switch (level_stack_.back().target())
 1024|   356k|                {
 1025|   309k|                    case target_t::buffer:
  ------------------
  |  Branch (1025:21): [True: 309k, False: 47.3k]
  ------------------
 1026|   309k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1026:29): [True: 144k, False: 165k]
  |  Branch (1026:65): [True: 119k, False: 25.2k]
  ------------------
 1027|   119k|                        {
 1028|   119k|                            key_buffer_.push_back(',');
 1029|   119k|                        }
 1030|   309k|                        level_stack_.emplace_back(target_t::buffer, container_t::array);
 1031|   309k|                        key_buffer_.push_back('[');
 1032|   309k|                        break;
 1033|  47.3k|                    default:
  ------------------
  |  Branch (1033:21): [True: 47.3k, False: 309k]
  ------------------
 1034|  47.3k|                        level_stack_.emplace_back(target_t::destination, container_t::array);
 1035|  47.3k|                        destination_->begin_array(length, tag, context, ec);
 1036|  47.3k|                        break;
 1037|   356k|                }
 1038|   356k|            }
 1039|   547k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   547k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1040|   547k|        }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6is_keyEv:
  814|   190M|            {
  815|   190M|                return even_odd_ == 0;
  816|   190M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6targetEv:
  824|   125M|            {
  825|   125M|                return state_;
  826|   125M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level5countEv:
  829|  46.3M|            {
  830|  46.3M|                return count_;
  831|  46.3M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5levelC2ENS4_8target_tENS4_11container_tE:
  797|  8.29M|                : state_(state), type_(type), even_odd_(type == container_t::object ? 0 : 1)
  ------------------
  |  Branch (797:57): [True: 6.91M, False: 1.38M]
  ------------------
  798|  8.29M|            {
  799|  8.29M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level9is_objectEv:
  819|   111M|            {
  820|   111M|                return type_ == container_t::object;
  821|   111M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1043|  1.34M|        {
 1044|  1.34M|            switch (level_stack_.back().target())
 1045|  1.34M|            {
 1046|  1.12M|                case target_t::buffer:
  ------------------
  |  Branch (1046:17): [True: 1.12M, False: 219k]
  ------------------
 1047|  1.12M|                    key_buffer_.push_back(']');
 1048|  1.12M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  1.12M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 1.12M]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1049|  1.12M|                    level_stack_.pop_back();
 1050|  1.12M|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (1050:25): [True: 30.9k, False: 1.09M]
  ------------------
 1051|  30.9k|                    {
 1052|  30.9k|                        destination_->key(key_buffer_, context, ec);
 1053|  30.9k|                        key_buffer_.clear();
 1054|  30.9k|                    }
 1055|  1.09M|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1055:30): [True: 166k, False: 926k]
  ------------------
 1056|   166k|                    {
 1057|   166k|                        key_buffer_.push_back(':');
 1058|   166k|                    }
 1059|  1.12M|                    level_stack_.back().advance();
 1060|  1.12M|                    break;
 1061|   219k|                default:
  ------------------
  |  Branch (1061:17): [True: 219k, False: 1.12M]
  ------------------
 1062|   219k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|   219k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 219k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1063|   219k|                    level_stack_.pop_back();
 1064|   219k|                    level_stack_.back().advance();
 1065|   219k|                    destination_->end_array(context, ec);
 1066|   219k|                    break;
 1067|  1.34M|            }
 1068|  1.34M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.34M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1069|  1.34M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level7advanceEv:
  802|  64.1M|            {
  803|  64.1M|                if (!is_key())
  ------------------
  |  Branch (803:21): [True: 53.0M, False: 11.0M]
  ------------------
  804|  53.0M|                {
  805|  53.0M|                    ++count_;
  806|  53.0M|                }
  807|  64.1M|                if (is_object())
  ------------------
  |  Branch (807:21): [True: 22.1M, False: 42.0M]
  ------------------
  808|  22.1M|                {
  809|  22.1M|                    even_odd_ = !even_odd_;
  810|  22.1M|                }
  811|  64.1M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1236|  23.3M|        {
 1237|  23.3M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1237:17): [True: 4.05M, False: 19.3M]
  |  Branch (1237:49): [True: 16.6M, False: 2.65M]
  ------------------
 1238|  20.7M|            {
 1239|  20.7M|                key_.clear();
 1240|  20.7M|                jsoncons::from_integer(value,key_);
 1241|  20.7M|            }
 1242|       |
 1243|  23.3M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1243:17): [True: 4.05M, False: 19.3M]
  ------------------
 1244|  4.05M|            {
 1245|  4.05M|                switch (level_stack_.back().target())
 1246|  4.05M|                {
 1247|  2.81M|                    case target_t::buffer:
  ------------------
  |  Branch (1247:21): [True: 2.81M, False: 1.23M]
  ------------------
 1248|  2.81M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1248:29): [True: 2.81M, False: 2.92k]
  ------------------
 1249|  2.81M|                        {
 1250|  2.81M|                            key_buffer_.push_back(',');
 1251|  2.81M|                        }
 1252|  2.81M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1253|  2.81M|                        key_buffer_.push_back(':');
 1254|  2.81M|                        break;
 1255|  1.23M|                    default:
  ------------------
  |  Branch (1255:21): [True: 1.23M, False: 2.81M]
  ------------------
 1256|  1.23M|                        destination_->key(key_, context, ec);
 1257|  1.23M|                        break;
 1258|  4.05M|                }
 1259|  4.05M|            }
 1260|  19.3M|            else
 1261|  19.3M|            {
 1262|  19.3M|                switch (level_stack_.back().target())
 1263|  19.3M|                {
 1264|  16.6M|                    case target_t::buffer:
  ------------------
  |  Branch (1264:21): [True: 16.6M, False: 2.65M]
  ------------------
 1265|  16.6M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1265:29): [True: 13.8M, False: 2.81M]
  |  Branch (1265:65): [True: 13.8M, False: 14.2k]
  ------------------
 1266|  13.8M|                        {
 1267|  13.8M|                            key_buffer_.push_back(',');
 1268|  13.8M|                        }
 1269|  16.6M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1270|  16.6M|                        break;
 1271|  2.65M|                    default:
  ------------------
  |  Branch (1271:21): [True: 2.65M, False: 16.6M]
  ------------------
 1272|  2.65M|                        destination_->uint64_value(value, tag, context, ec);
 1273|  2.65M|                        break;
 1274|  19.3M|                }
 1275|  19.3M|            }
 1276|       |
 1277|  23.3M|            level_stack_.back().advance();
 1278|  23.3M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  23.3M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1279|  23.3M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1282|  7.85M|        {
 1283|  7.85M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1283:17): [True: 340k, False: 7.51M]
  |  Branch (1283:49): [True: 6.56M, False: 948k]
  ------------------
 1284|  6.90M|            {
 1285|  6.90M|                key_.clear();
 1286|  6.90M|                jsoncons::from_integer(value,key_);
 1287|  6.90M|            }
 1288|       |
 1289|  7.85M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1289:17): [True: 340k, False: 7.51M]
  ------------------
 1290|   340k|            {
 1291|   340k|                switch (level_stack_.back().target())
 1292|   340k|                {
 1293|   327k|                    case target_t::buffer:
  ------------------
  |  Branch (1293:21): [True: 327k, False: 12.9k]
  ------------------
 1294|   327k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1294:29): [True: 323k, False: 4.47k]
  ------------------
 1295|   323k|                        {
 1296|   323k|                            key_buffer_.push_back(',');
 1297|   323k|                        }
 1298|   327k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1299|   327k|                        key_buffer_.push_back(':');
 1300|   327k|                        break;
 1301|  12.9k|                    default:
  ------------------
  |  Branch (1301:21): [True: 12.9k, False: 327k]
  ------------------
 1302|  12.9k|                        destination_->key(key_, context, ec);
 1303|  12.9k|                        break;
 1304|   340k|                }
 1305|   340k|            }
 1306|  7.51M|            else
 1307|  7.51M|            {
 1308|  7.51M|                switch (level_stack_.back().target())
 1309|  7.51M|                {
 1310|  6.56M|                    case target_t::buffer:
  ------------------
  |  Branch (1310:21): [True: 6.56M, False: 948k]
  ------------------
 1311|  6.56M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1311:29): [True: 6.24M, False: 323k]
  |  Branch (1311:65): [True: 6.15M, False: 83.1k]
  ------------------
 1312|  6.15M|                        {
 1313|  6.15M|                            key_buffer_.push_back(',');
 1314|  6.15M|                        }
 1315|  6.56M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1316|  6.56M|                        break;
 1317|   948k|                    default:
  ------------------
  |  Branch (1317:21): [True: 948k, False: 6.56M]
  ------------------
 1318|   948k|                        destination_->int64_value(value, tag, context, ec);
 1319|   948k|                        break;
 1320|  7.51M|                }
 1321|  7.51M|            }
 1322|       |
 1323|  7.85M|            level_stack_.back().advance();
 1324|  7.85M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  7.85M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1325|  7.85M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1377|  9.67M|        {
 1378|  9.67M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1378:17): [True: 4.53k, False: 9.66M]
  |  Branch (1378:49): [True: 8.44M, False: 1.22M]
  ------------------
 1379|  8.45M|            {
 1380|  8.45M|                key_.clear();
 1381|  8.45M|                string_sink<string_type> sink(key_);
 1382|  8.45M|                jsoncons::write_double f{float_chars_format::general,0};
 1383|  8.45M|                f(value, sink);
 1384|  8.45M|            }
 1385|       |
 1386|  9.67M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1386:17): [True: 4.53k, False: 9.66M]
  ------------------
 1387|  4.53k|            {
 1388|  4.53k|                switch (level_stack_.back().target())
 1389|  4.53k|                {
 1390|  2.95k|                    case target_t::buffer:
  ------------------
  |  Branch (1390:21): [True: 2.95k, False: 1.57k]
  ------------------
 1391|  2.95k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1391:29): [True: 1.48k, False: 1.47k]
  ------------------
 1392|  1.48k|                        {
 1393|  1.48k|                            key_buffer_.push_back(',');
 1394|  1.48k|                        }
 1395|  2.95k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1396|  2.95k|                        key_buffer_.push_back(':');
 1397|  2.95k|                        break;
 1398|  1.57k|                    default:
  ------------------
  |  Branch (1398:21): [True: 1.57k, False: 2.95k]
  ------------------
 1399|  1.57k|                        destination_->key(key_, context, ec);
 1400|  1.57k|                        break;
 1401|  4.53k|                }
 1402|  4.53k|            }
 1403|  9.66M|            else
 1404|  9.66M|            {
 1405|  9.66M|                switch (level_stack_.back().target())
 1406|  9.66M|                {
 1407|  8.44M|                    case target_t::buffer:
  ------------------
  |  Branch (1407:21): [True: 8.44M, False: 1.22M]
  ------------------
 1408|  8.44M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1408:29): [True: 8.44M, False: 1.69k]
  |  Branch (1408:65): [True: 8.43M, False: 7.94k]
  ------------------
 1409|  8.43M|                        {
 1410|  8.43M|                            key_buffer_.push_back(',');
 1411|  8.43M|                        }
 1412|  8.44M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1413|  8.44M|                        break;
 1414|  1.22M|                    default:
  ------------------
  |  Branch (1414:21): [True: 1.22M, False: 8.44M]
  ------------------
 1415|  1.22M|                        destination_->double_value(value, tag, context, ec);
 1416|  1.22M|                        break;
 1417|  9.66M|                }
 1418|  9.66M|            }
 1419|       |
 1420|  9.67M|            level_stack_.back().advance();
 1421|  9.67M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  9.67M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1422|  9.67M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  884|  2.37k|        {
  885|  2.37k|            destination_->flush();
  886|  2.37k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  889|  96.9k|        {
  890|  96.9k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (890:17): [True: 45.3k, False: 51.5k]
  ------------------
  891|  45.3k|            {
  892|  45.3k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (892:21): [True: 44.4k, False: 944]
  |  Branch (892:73): [True: 39.1k, False: 5.29k]
  ------------------
  893|  39.1k|                {
  894|  39.1k|                    key_buffer_.push_back(',');
  895|  39.1k|                }
  896|  45.3k|                level_stack_.emplace_back(target_t::buffer, container_t::object);
  897|  45.3k|                key_buffer_.push_back('{');
  898|  45.3k|            }
  899|  51.5k|            else
  900|  51.5k|            {
  901|  51.5k|                switch (level_stack_.back().target())
  902|  51.5k|                {
  903|  48.4k|                    case target_t::buffer:
  ------------------
  |  Branch (903:21): [True: 48.4k, False: 3.10k]
  ------------------
  904|  48.4k|                        level_stack_.emplace_back(target_t::buffer, container_t::object);
  905|  48.4k|                        key_buffer_.push_back('{');
  906|  48.4k|                        break;
  907|  3.10k|                    default:
  ------------------
  |  Branch (907:21): [True: 3.10k, False: 48.4k]
  ------------------
  908|  3.10k|                        level_stack_.emplace_back(target_t::destination, container_t::object);
  909|  3.10k|                        destination_->begin_object(tag, context, ec);
  910|  3.10k|                        break;
  911|  51.5k|                }
  912|  51.5k|            }
  913|  96.9k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  96.9k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  914|  96.9k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  917|  6.81M|        {
  918|  6.81M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (918:17): [True: 1.97M, False: 4.84M]
  ------------------
  919|  1.97M|            {
  920|  1.97M|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (920:21): [True: 1.96M, False: 3.18k]
  |  Branch (920:73): [True: 1.95M, False: 12.2k]
  ------------------
  921|  1.95M|                {
  922|  1.95M|                    key_buffer_.push_back(',');
  923|  1.95M|                }
  924|  1.97M|                level_stack_.emplace_back(target_t::buffer, container_t::object);
  925|  1.97M|                key_buffer_.push_back('{');
  926|  1.97M|            }
  927|  4.84M|            else
  928|  4.84M|            {
  929|  4.84M|                switch (level_stack_.back().target())
  930|  4.84M|                {
  931|  4.83M|                    case target_t::buffer:
  ------------------
  |  Branch (931:21): [True: 4.83M, False: 7.06k]
  ------------------
  932|  4.83M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (932:29): [True: 2.87M, False: 1.96M]
  |  Branch (932:65): [True: 2.87M, False: 1.53k]
  ------------------
  933|  2.87M|                        {
  934|  2.87M|                            key_buffer_.push_back(',');
  935|  2.87M|                        }
  936|  4.83M|                        level_stack_.emplace_back(target_t::buffer, container_t::object);
  937|  4.83M|                        key_buffer_.push_back('{');
  938|  4.83M|                        break;
  939|  7.06k|                    default:
  ------------------
  |  Branch (939:21): [True: 7.06k, False: 4.83M]
  ------------------
  940|  7.06k|                        level_stack_.emplace_back(target_t::destination, container_t::object);
  941|  7.06k|                        destination_->begin_object(length, tag, context, ec);
  942|  7.06k|                        break;
  943|  4.84M|                }
  944|  4.84M|            }
  945|  6.81M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  6.81M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  946|  6.81M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  949|  6.86M|        {
  950|  6.86M|            switch (level_stack_.back().target())
  951|  6.86M|            {
  952|  6.86M|                case target_t::buffer:
  ------------------
  |  Branch (952:17): [True: 6.86M, False: 2.52k]
  ------------------
  953|  6.86M|                    key_buffer_.push_back('}');
  954|  6.86M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  6.86M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 6.86M]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  955|  6.86M|                    level_stack_.pop_back();
  956|       |                    
  957|  6.86M|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (957:25): [True: 2.72k, False: 6.86M]
  ------------------
  958|  2.72k|                    {
  959|  2.72k|                        destination_->key(key_buffer_,context, ec);
  960|  2.72k|                        key_buffer_.clear();
  961|  2.72k|                    }
  962|  6.86M|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (962:30): [True: 1.99M, False: 4.86M]
  ------------------
  963|  1.99M|                    {
  964|  1.99M|                        key_buffer_.push_back(':');
  965|  1.99M|                    }
  966|  6.86M|                    level_stack_.back().advance();
  967|  6.86M|                    break;
  968|  2.52k|                default:
  ------------------
  |  Branch (968:17): [True: 2.52k, False: 6.86M]
  ------------------
  969|  2.52k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|  2.52k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 2.52k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  970|  2.52k|                    level_stack_.pop_back();
  971|  2.52k|                    level_stack_.back().advance();
  972|  2.52k|                    destination_->end_object(context, ec);
  973|  2.52k|                    break;
  974|  6.86M|            }
  975|  6.86M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  6.86M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  976|  6.86M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  979|   827k|        {
  980|   827k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (980:17): [True: 10.6k, False: 816k]
  ------------------
  981|  10.6k|            {
  982|  10.6k|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (982:21): [True: 3.44k, False: 7.20k]
  |  Branch (982:73): [True: 2.22k, False: 1.21k]
  ------------------
  983|  2.22k|                {
  984|  2.22k|                    key_buffer_.push_back(',');
  985|  2.22k|                }
  986|  10.6k|                level_stack_.emplace_back(target_t::buffer, container_t::array);
  987|  10.6k|                key_buffer_.push_back('[');
  988|  10.6k|            }
  989|   816k|            else
  990|   816k|            {
  991|   816k|                switch (level_stack_.back().target())
  992|   816k|                {
  993|   633k|                    case target_t::buffer:
  ------------------
  |  Branch (993:21): [True: 633k, False: 182k]
  ------------------
  994|   633k|                        if (level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (994:29): [True: 4.48k, False: 629k]
  |  Branch (994:64): [True: 3.67k, False: 813]
  ------------------
  995|  3.67k|                        {
  996|  3.67k|                            key_buffer_.push_back(',');
  997|  3.67k|                        }
  998|   633k|                        level_stack_.emplace_back(target_t::buffer, container_t::array);
  999|   633k|                        key_buffer_.push_back('[');
 1000|   633k|                        break;
 1001|   182k|                    default:
  ------------------
  |  Branch (1001:21): [True: 182k, False: 633k]
  ------------------
 1002|   182k|                        level_stack_.emplace_back(target_t::destination, container_t::array);
 1003|   182k|                        destination_->begin_array(tag, context, ec);
 1004|   182k|                        break;
 1005|   816k|                }
 1006|   816k|            }
 1007|   827k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   827k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1008|   827k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1478|  1.31M|        {
 1479|  1.31M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1479:17): [True: 471k, False: 840k]
  |  Branch (1479:49): [True: 721k, False: 119k]
  ------------------
 1480|  1.19M|            {
 1481|  1.19M|                key_.clear(); 
 1482|  1.19M|                key_.insert(key_.begin(), null_constant.begin(), null_constant.end());
 1483|  1.19M|            }
 1484|       |
 1485|  1.31M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1485:17): [True: 471k, False: 840k]
  ------------------
 1486|   471k|            {
 1487|   471k|                switch (level_stack_.back().target())
 1488|   471k|                {
 1489|   352k|                    case target_t::buffer:
  ------------------
  |  Branch (1489:21): [True: 352k, False: 118k]
  ------------------
 1490|   352k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1490:29): [True: 350k, False: 1.32k]
  ------------------
 1491|   350k|                        {
 1492|   350k|                            key_buffer_.push_back(',');
 1493|   350k|                        }
 1494|   352k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1495|   352k|                        key_buffer_.push_back(':');
 1496|   352k|                        break;
 1497|   118k|                    default:
  ------------------
  |  Branch (1497:21): [True: 118k, False: 352k]
  ------------------
 1498|   118k|                        destination_->key(key_, context, ec);
 1499|   118k|                        break;
 1500|   471k|                }
 1501|   471k|            }
 1502|   840k|            else
 1503|   840k|            {
 1504|   840k|                switch (level_stack_.back().target())
 1505|   840k|                {
 1506|   721k|                    case target_t::buffer:
  ------------------
  |  Branch (1506:21): [True: 721k, False: 119k]
  ------------------
 1507|   721k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1507:29): [True: 369k, False: 351k]
  |  Branch (1507:65): [True: 369k, False: 547]
  ------------------
 1508|   369k|                        {
 1509|   369k|                            key_buffer_.push_back(',');
 1510|   369k|                        }
 1511|   721k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1512|   721k|                        break;
 1513|   119k|                    default:
  ------------------
  |  Branch (1513:21): [True: 119k, False: 721k]
  ------------------
 1514|   119k|                        destination_->null_value(tag, context, ec);
 1515|   119k|                        break;
 1516|   840k|                }
 1517|   840k|            }
 1518|       |
 1519|  1.31M|            level_stack_.back().advance();
 1520|  1.31M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.31M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1521|  1.31M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1425|  1.42M|        {
 1426|  1.42M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1426:17): [True: 573k, False: 847k]
  |  Branch (1426:49): [True: 846k, False: 1.40k]
  ------------------
 1427|  1.42M|            {
 1428|  1.42M|                key_.clear(); 
 1429|  1.42M|                if (value)
  ------------------
  |  Branch (1429:21): [True: 1.27M, False: 140k]
  ------------------
 1430|  1.27M|                {
 1431|  1.27M|                    key_.insert(key_.begin(), true_constant.begin(), true_constant.end());
 1432|  1.27M|                }
 1433|   140k|                else
 1434|   140k|                {
 1435|   140k|                    key_.insert(key_.begin(), false_constant.begin(), false_constant.end());
 1436|   140k|                }
 1437|  1.42M|            }
 1438|       |
 1439|  1.42M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1439:17): [True: 573k, False: 847k]
  ------------------
 1440|   573k|            {
 1441|   573k|                switch (level_stack_.back().target())
 1442|   573k|                {
 1443|   572k|                    case target_t::buffer:
  ------------------
  |  Branch (1443:21): [True: 572k, False: 1.23k]
  ------------------
 1444|   572k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1444:29): [True: 571k, False: 989]
  ------------------
 1445|   571k|                        {
 1446|   571k|                            key_buffer_.push_back(',');
 1447|   571k|                        }
 1448|   572k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1449|   572k|                        key_buffer_.push_back(':');
 1450|   572k|                        break;
 1451|  1.23k|                    default:
  ------------------
  |  Branch (1451:21): [True: 1.23k, False: 572k]
  ------------------
 1452|  1.23k|                        destination_->key(key_, context, ec);
 1453|  1.23k|                        break;
 1454|   573k|                }
 1455|   573k|            }
 1456|   847k|            else
 1457|   847k|            {
 1458|   847k|                switch (level_stack_.back().target())
 1459|   847k|                {
 1460|   846k|                    case target_t::buffer:
  ------------------
  |  Branch (1460:21): [True: 846k, False: 1.40k]
  ------------------
 1461|   846k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1461:29): [True: 274k, False: 572k]
  |  Branch (1461:65): [True: 273k, False: 439]
  ------------------
 1462|   273k|                        {
 1463|   273k|                            key_buffer_.push_back(',');
 1464|   273k|                        }
 1465|   846k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1466|   846k|                        break;
 1467|  1.40k|                    default:
  ------------------
  |  Branch (1467:21): [True: 1.40k, False: 846k]
  ------------------
 1468|  1.40k|                        destination_->bool_value(value, tag, context, ec);
 1469|  1.40k|                        break;
 1470|   847k|                }
 1471|   847k|            }
 1472|       |
 1473|  1.42M|            level_stack_.back().advance();
 1474|  1.42M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.42M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1475|  1.42M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1075|  1.98M|        {
 1076|  1.98M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1076:17): [True: 443k, False: 1.54M]
  ------------------
 1077|   443k|            {
 1078|   443k|                switch (level_stack_.back().target())
 1079|   443k|                {
 1080|   425k|                    case target_t::buffer:
  ------------------
  |  Branch (1080:21): [True: 425k, False: 17.9k]
  ------------------
 1081|   425k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1081:29): [True: 418k, False: 6.79k]
  ------------------
 1082|   418k|                        {
 1083|   418k|                            key_buffer_.push_back(',');
 1084|   418k|                        }
 1085|   425k|                        key_buffer_.push_back('\"');
 1086|   425k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1087|   425k|                        key_buffer_.push_back('\"');
 1088|   425k|                        key_buffer_.push_back(':');
 1089|   425k|                        break;
 1090|  17.9k|                    default:
  ------------------
  |  Branch (1090:21): [True: 17.9k, False: 425k]
  ------------------
 1091|  17.9k|                        destination_->key(value, context, ec);
 1092|  17.9k|                        break;
 1093|   443k|                }
 1094|   443k|            }
 1095|  1.54M|            else
 1096|  1.54M|            {
 1097|  1.54M|                switch (level_stack_.back().target())
 1098|  1.54M|                {
 1099|  1.44M|                    case target_t::buffer:
  ------------------
  |  Branch (1099:21): [True: 1.44M, False: 99.8k]
  ------------------
 1100|  1.44M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1100:29): [True: 1.02M, False: 416k]
  |  Branch (1100:65): [True: 993k, False: 33.6k]
  ------------------
 1101|   993k|                        {
 1102|   993k|                            key_buffer_.push_back(',');
 1103|   993k|                        }
 1104|  1.44M|                        key_buffer_.push_back('\"');
 1105|  1.44M|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1106|  1.44M|                        key_buffer_.push_back('\"');
 1107|  1.44M|                        break;
 1108|  99.8k|                    default:
  ------------------
  |  Branch (1108:21): [True: 99.8k, False: 1.44M]
  ------------------
 1109|  99.8k|                        destination_->string_value(value, tag, context, ec);
 1110|  99.8k|                        break;
 1111|  1.54M|                }
 1112|  1.54M|            }
 1113|       |
 1114|  1.98M|            level_stack_.back().advance();
 1115|  1.98M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.98M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1116|  1.98M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1122|  10.2M|        {
 1123|  10.2M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1123:17): [True: 2.96M, False: 7.29M]
  |  Branch (1123:49): [True: 6.38M, False: 909k]
  ------------------
 1124|  9.34M|            {
 1125|  9.34M|                key_.clear();
 1126|  9.34M|                switch (tag)
 1127|  9.34M|                {
 1128|    890|                    case semantic_tag::base64:
  ------------------
  |  Branch (1128:21): [True: 890, False: 9.34M]
  ------------------
 1129|    890|                        bytes_to_base64(value.begin(), value.end(), key_);
 1130|    890|                        break;
 1131|    817|                    case semantic_tag::base16:
  ------------------
  |  Branch (1131:21): [True: 817, False: 9.34M]
  ------------------
 1132|    817|                        bytes_to_base16(value.begin(), value.end(),key_);
 1133|    817|                        break;
 1134|  9.34M|                    default:
  ------------------
  |  Branch (1134:21): [True: 9.34M, False: 1.70k]
  ------------------
 1135|  9.34M|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1136|  9.34M|                        break;
 1137|  9.34M|                }
 1138|  9.34M|            }
 1139|       |
 1140|  10.2M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1140:17): [True: 2.96M, False: 7.29M]
  ------------------
 1141|  2.96M|            {
 1142|  2.96M|                switch (level_stack_.back().target())
 1143|  2.96M|                {
 1144|  2.29M|                    case target_t::buffer:
  ------------------
  |  Branch (1144:21): [True: 2.29M, False: 667k]
  ------------------
 1145|  2.29M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1145:29): [True: 2.29M, False: 2.24k]
  ------------------
 1146|  2.29M|                        {
 1147|  2.29M|                            key_buffer_.push_back(',');
 1148|  2.29M|                        }
 1149|  2.29M|                        key_buffer_.push_back('\"');
 1150|  2.29M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1151|  2.29M|                        key_buffer_.push_back('\"');
 1152|  2.29M|                        key_buffer_.push_back(':');
 1153|  2.29M|                        break;
 1154|   667k|                    default:
  ------------------
  |  Branch (1154:21): [True: 667k, False: 2.29M]
  ------------------
 1155|   667k|                        destination_->key(key_, context, ec);
 1156|   667k|                        break;
 1157|  2.96M|                }
 1158|  2.96M|            }
 1159|  7.29M|            else
 1160|  7.29M|            {
 1161|  7.29M|                switch (level_stack_.back().target())
 1162|  7.29M|                {
 1163|  6.38M|                    case target_t::buffer:
  ------------------
  |  Branch (1163:21): [True: 6.38M, False: 909k]
  ------------------
 1164|  6.38M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1164:29): [True: 4.07M, False: 2.30M]
  |  Branch (1164:65): [True: 4.07M, False: 2.73k]
  ------------------
 1165|  4.07M|                        {
 1166|  4.07M|                            key_buffer_.push_back(',');
 1167|  4.07M|                        }
 1168|  6.38M|                        key_buffer_.push_back('\"');
 1169|  6.38M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1170|  6.38M|                        key_buffer_.push_back('\"');
 1171|  6.38M|                        break;
 1172|   909k|                    default:
  ------------------
  |  Branch (1172:21): [True: 909k, False: 6.38M]
  ------------------
 1173|   909k|                        destination_->byte_string_value(value, tag, context, ec);
 1174|   909k|                        break;
 1175|  7.29M|                }
 1176|  7.29M|            }
 1177|       |
 1178|  10.2M|            level_stack_.back().advance();
 1179|  10.2M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  10.2M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1180|  10.2M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1186|  65.7k|        {
 1187|  65.7k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1187:17): [True: 17.1k, False: 48.6k]
  |  Branch (1187:49): [True: 47.8k, False: 795]
  ------------------
 1188|  64.9k|            {
 1189|  64.9k|                key_.clear();
 1190|  64.9k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1191|  64.9k|            }
 1192|       |
 1193|  65.7k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1193:17): [True: 17.1k, False: 48.6k]
  ------------------
 1194|  17.1k|            {
 1195|  17.1k|                switch (level_stack_.back().target())
 1196|  17.1k|                {
 1197|  16.5k|                    case target_t::buffer:
  ------------------
  |  Branch (1197:21): [True: 16.5k, False: 645]
  ------------------
 1198|  16.5k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1198:29): [True: 15.9k, False: 571]
  ------------------
 1199|  15.9k|                        {
 1200|  15.9k|                            key_buffer_.push_back(',');
 1201|  15.9k|                        }
 1202|  16.5k|                        key_buffer_.push_back('\"');
 1203|  16.5k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1204|  16.5k|                        key_buffer_.push_back('\"');
 1205|  16.5k|                        key_buffer_.push_back(':');
 1206|  16.5k|                        break;
 1207|    645|                    default:
  ------------------
  |  Branch (1207:21): [True: 645, False: 16.5k]
  ------------------
 1208|    645|                        destination_->key(key_, context, ec);
 1209|    645|                        break;
 1210|  17.1k|                }
 1211|  17.1k|            }
 1212|  48.6k|            else
 1213|  48.6k|            {
 1214|  48.6k|                switch (level_stack_.back().target())
 1215|  48.6k|                {
 1216|  47.8k|                    case target_t::buffer:
  ------------------
  |  Branch (1216:21): [True: 47.8k, False: 795]
  ------------------
 1217|  47.8k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1217:29): [True: 29.4k, False: 18.3k]
  |  Branch (1217:65): [True: 26.1k, False: 3.31k]
  ------------------
 1218|  26.1k|                        {
 1219|  26.1k|                            key_buffer_.push_back(',');
 1220|  26.1k|                        }
 1221|  47.8k|                        key_buffer_.push_back('\"');
 1222|  47.8k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1223|  47.8k|                        key_buffer_.push_back('\"');
 1224|  47.8k|                        break;
 1225|    795|                    default:
  ------------------
  |  Branch (1225:21): [True: 795, False: 47.8k]
  ------------------
 1226|    795|                        destination_->byte_string_value(value, ext_tag, context, ec);
 1227|    795|                        break;
 1228|  48.6k|                }
 1229|  48.6k|            }
 1230|       |
 1231|  65.7k|            level_stack_.back().advance();
 1232|  65.7k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  65.7k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1233|  65.7k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1328|  8.80k|        {
 1329|  8.80k|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1329:17): [True: 4.66k, False: 4.14k]
  |  Branch (1329:49): [True: 3.87k, False: 275]
  ------------------
 1330|  8.53k|            {
 1331|  8.53k|                key_.clear();
 1332|  8.53k|                jsoncons::string_sink<string_type> sink(key_);
 1333|  8.53k|                jsoncons::write_double f{float_chars_format::general,0};
 1334|  8.53k|                double x = binary::decode_half(value);
 1335|  8.53k|                f(x, sink);
 1336|  8.53k|            }
 1337|       |
 1338|  8.80k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1338:17): [True: 4.66k, False: 4.14k]
  ------------------
 1339|  4.66k|            {
 1340|  4.66k|                switch (level_stack_.back().target())
 1341|  4.66k|                {
 1342|  3.86k|                    case target_t::buffer:
  ------------------
  |  Branch (1342:21): [True: 3.86k, False: 792]
  ------------------
 1343|  3.86k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1343:29): [True: 2.59k, False: 1.27k]
  ------------------
 1344|  2.59k|                        {
 1345|  2.59k|                            key_buffer_.push_back(',');
 1346|  2.59k|                        }
 1347|  3.86k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1348|  3.86k|                        key_buffer_.push_back(':');
 1349|  3.86k|                        break;
 1350|    792|                    default:
  ------------------
  |  Branch (1350:21): [True: 792, False: 3.86k]
  ------------------
 1351|    792|                        destination_->key(key_, context, ec);
 1352|    792|                        break;
 1353|  4.66k|                }
 1354|  4.66k|            }
 1355|  4.14k|            else
 1356|  4.14k|            {
 1357|  4.14k|                switch (level_stack_.back().target())
 1358|  4.14k|                {
 1359|  3.87k|                    case target_t::buffer:
  ------------------
  |  Branch (1359:21): [True: 3.87k, False: 275]
  ------------------
 1360|  3.87k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1360:29): [True: 1.13k, False: 2.73k]
  |  Branch (1360:65): [True: 637, False: 499]
  ------------------
 1361|    637|                        {
 1362|    637|                            key_buffer_.push_back(',');
 1363|    637|                        }
 1364|  3.87k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1365|  3.87k|                        break;
 1366|    275|                    default:
  ------------------
  |  Branch (1366:21): [True: 275, False: 3.87k]
  ------------------
 1367|    275|                        destination_->half_value(value, tag, context, ec);
 1368|    275|                        break;
 1369|  4.14k|                }
 1370|  4.14k|            }
 1371|       |
 1372|  8.80k|            level_stack_.back().advance();
 1373|  8.80k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  8.80k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
 1374|  8.80k|        }
_ZN8jsoncons24basic_item_event_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  293|   501k|        {
  294|   501k|            visit_begin_array(length, tag, context, ec);
  295|   501k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   501k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  296|   501k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  362|  12.6M|        {
  363|  12.6M|            visit_uint64(value, tag, context, ec);
  364|  12.6M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  12.6M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  365|  12.6M|        }
_ZN8jsoncons24basic_item_event_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  299|  1.29M|        {
  300|  1.29M|            visit_end_array(context, ec);
  301|  1.29M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.29M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  302|  1.29M|        }
_ZN8jsoncons24basic_item_event_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  371|  2.01M|        {
  372|  2.01M|            visit_int64(value, tag, context, ec);
  373|  2.01M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  2.01M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  374|  2.01M|        }
_ZN8jsoncons24basic_item_event_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  380|  8.80k|        {
  381|  8.80k|            visit_half(value, tag, context, ec);
  382|  8.80k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  8.80k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  383|  8.80k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  389|  9.17k|        {
  390|  9.17k|            visit_double(value, tag, context, ec);
  391|  9.17k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  9.17k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  392|  9.17k|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  858|  10.2k|            : destination_(std::addressof(visitor)), 
  859|  10.2k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  860|  10.2k|        {
  861|  10.2k|            level_stack_.emplace_back(target_t::destination,container_t::root); // root
  862|  10.2k|        }
_ZN8jsoncons24basic_item_event_visitorIcEC2Ev:
   51|  10.2k|        basic_item_event_visitor() = default;
_ZN8jsoncons24basic_item_event_visitorIcE17byte_string_valueINSt3__16vectorIhNS3_9allocatorIhEEEEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeENS3_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS8_EE5valueEiE4typeE:
  342|  10.2M|        {
  343|  10.2M|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  344|  10.2M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  10.2M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  345|  10.2M|        }
_ZN8jsoncons24basic_item_event_visitorIcE17byte_string_valueINSt3__16vectorIhNS3_9allocatorIhEEEEEEbRKT_mRKNS_11ser_contextERNS3_10error_codeENS3_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS8_EE5valueEiE4typeE:
  353|  65.7k|        {
  354|  65.7k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), ext_tag, context, ec);
  355|  65.7k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  65.7k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  356|  65.7k|        }
_ZN8jsoncons24basic_item_event_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  322|  1.42M|        {
  323|  1.42M|            visit_bool(value, tag, context, ec);
  324|  1.42M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.42M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  325|  1.42M|        }
_ZN8jsoncons24basic_item_event_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  313|  1.31M|        {
  314|  1.31M|            visit_null(tag, context, ec);
  315|  1.31M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.31M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  316|  1.31M|        }
_ZN8jsoncons24basic_item_event_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  331|  1.98M|        {
  332|  1.98M|            visit_string(value, tag, context, ec);
  333|  1.98M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.98M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  334|  1.98M|        }
_ZN8jsoncons24basic_item_event_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  287|   827k|        {
  288|   827k|            visit_begin_array(tag, context, ec);
  289|   827k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   827k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  290|   827k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  266|  96.9k|        {
  267|  96.9k|            visit_begin_object(tag, context, ec);
  268|  96.9k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  96.9k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  269|  96.9k|        }
_ZN8jsoncons24basic_item_event_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  275|  6.81M|        {
  276|  6.81M|            visit_begin_object(length, tag, context, ec);
  277|  6.81M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  6.81M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  278|  6.81M|        }
_ZN8jsoncons24basic_item_event_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  281|  6.86M|        {
  282|  6.86M|            visit_end_object(context, ec);
  283|  6.86M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  6.86M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  284|  6.86M|        }
_ZN8jsoncons24basic_item_event_visitorIcE5flushEv:
   56|  2.37k|        {
   57|  2.37k|            visit_flush();
   58|  2.37k|        }

_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  20.4k|        basic_default_json_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  20.4k|        basic_json_visitor() = default;
_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  30.6k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  560|  47.3k|        {
  561|  47.3k|            visit_begin_array(tag, context, ec);
  562|  47.3k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  47.3k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  563|  47.3k|        }
_ZN8jsoncons26basic_default_json_visitorIcE15visit_end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  833|   219k|        {
  834|   219k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   219k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  835|   219k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  858|  2.65M|        {
  859|  2.65M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  2.65M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  860|  2.65M|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  863|   948k|        {
  864|   948k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   948k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  865|   948k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  873|  1.22M|        {
  874|  1.22M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.22M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  875|  1.22M|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_flushEv:
  814|  2.37k|        {
  815|  2.37k|        }
_ZN8jsoncons26basic_default_json_visitorIcE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  818|  10.1k|        {
  819|  10.1k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  10.1k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  820|  10.1k|        }
_ZN8jsoncons18basic_json_visitorIcE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  544|  7.06k|        {
  545|  7.06k|            visit_begin_object(tag, context, ec);
  546|  7.06k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  7.06k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  547|  7.06k|        }
_ZN8jsoncons26basic_default_json_visitorIcE16visit_end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  823|  2.52k|        {
  824|  2.52k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  2.52k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  825|  2.52k|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  828|   230k|        {
  829|   230k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   230k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  830|   230k|        }
_ZN8jsoncons26basic_default_json_visitorIcE9visit_keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  838|  2.09M|        {
  839|  2.09M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  2.09M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  840|  2.09M|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  843|   119k|        {
  844|   119k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   119k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  845|   119k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  878|  1.40k|        {
  879|  1.40k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.40k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  880|  1.40k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_stringERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  848|  99.8k|        {
  849|  99.8k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  99.8k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  850|  99.8k|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  853|   910k|        {
  854|   910k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   910k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  855|   910k|        }
_ZN8jsoncons18basic_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNSt3__110error_codeE:
  595|    795|        {
  596|    795|            visit_byte_string(value, semantic_tag::none, context, ec);
  597|    795|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|    795|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  598|    795|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  868|    275|        {
  869|    275|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|    275|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  870|    275|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|  47.3k|        {
  346|  47.3k|            visit_begin_array(length, tag, context, ec);
  347|  47.3k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  47.3k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  348|  47.3k|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|  2.65M|        {
  415|  2.65M|            visit_uint64(value, tag, context, ec);
  416|  2.65M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  2.65M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  417|  2.65M|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|   219k|        {
  352|   219k|            visit_end_array(context, ec);
  353|   219k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   219k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  354|   219k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|   948k|        {
  424|   948k|            visit_int64(value, tag, context, ec);
  425|   948k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   948k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  426|   948k|        }
_ZN8jsoncons18basic_json_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  432|    275|        {
  433|    275|            visit_half(value, tag, context, ec);
  434|    275|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|    275|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  435|    275|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  1.22M|        {
  442|  1.22M|            visit_double(value, tag, context, ec);
  443|  1.22M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.22M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  444|  1.22M|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|  2.09M|        {
  358|  2.09M|            visit_key(name, context, ec);
  359|  2.09M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  2.09M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  360|  2.09M|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  2.37k|        {
  109|  2.37k|            visit_flush();
  110|  2.37k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|  3.10k|        {
  319|  3.10k|            visit_begin_object(tag, context, ec);
  320|  3.10k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  3.10k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  321|  3.10k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  7.06k|        {
  328|  7.06k|            visit_begin_object(length, tag, context, ec);
  329|  7.06k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  7.06k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  330|  7.06k|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  2.52k|        {
  334|  2.52k|            visit_end_object(context, ec);
  335|  2.52k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  2.52k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  336|  2.52k|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|   182k|        {
  340|   182k|            visit_begin_array(tag, context, ec);
  341|   182k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   182k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  342|   182k|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|   119k|        {
  366|   119k|            visit_null(tag, context, ec);
  367|   119k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   119k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  368|   119k|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|  1.40k|        {
  375|  1.40k|            visit_bool(value, tag, context, ec);
  376|  1.40k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  1.40k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  377|  1.40k|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|  99.8k|        {
  384|  99.8k|            visit_string(value, tag, context, ec);
  385|  99.8k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  99.8k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  386|  99.8k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|   909k|        {
  395|   909k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|   909k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|   909k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  397|   909k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|    795|        {
  406|    795|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), ext_tag, context, ec);
  407|    795|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|    795|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
  408|    795|        }
_ZN8jsoncons19typed_array_visitor11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
   36|  46.2k|        {
   37|  46.2k|            visit_begin_array(length, tag, context, ec);
   38|  46.2k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  46.2k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
   39|  46.2k|        }
_ZN8jsoncons19typed_array_visitor9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
   42|  46.2k|        {
   43|  46.2k|            visit_end_array(context, ec);
   44|  46.2k|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  46.2k|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
   45|  46.2k|        }
_ZN8jsoncons19typed_array_visitor12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
   51|  10.6M|        {
   52|  10.6M|            visit_uint64(value, tag, context, ec);
   53|  10.6M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  10.6M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
   54|  10.6M|        }
_ZN8jsoncons19typed_array_visitor11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
   60|  5.84M|        {
   61|  5.84M|            visit_int64(value, tag, context, ec);
   62|  5.84M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  5.84M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
   63|  5.84M|        }
_ZN8jsoncons19typed_array_visitor12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
   69|  9.66M|        {
   70|  9.66M|            visit_double(value, tag, context, ec);
   71|  9.66M|            JSONCONS_VISITOR_RET_VAL
  ------------------
  |  |  276|  9.66M|#define JSONCONS_VISITOR_RET_VAL return true; 
  ------------------
   72|  9.66M|        }

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

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

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  188|  10.2k|        {
  189|  10.2k|            if (buffer_)
  ------------------
  |  Branch (189:17): [True: 10.2k, False: 0]
  ------------------
  190|  10.2k|            {
  191|  10.2k|                std::allocator_traits<char_allocator_type>::deallocate(alloc_, buffer_, buffer_size_);
  192|  10.2k|            }
  193|  10.2k|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  171|  10.2k|            : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  172|  10.2k|              buffer_size_(default_max_buffer_size)
  173|  10.2k|        {
  174|  10.2k|            buffer_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, buffer_size_);
  175|  10.2k|            data_ = buffer_;
  176|  10.2k|        }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   54|  10.2k|          : std::basic_istream<CharT>(&nb_)
   55|  10.2k|        {
   56|  10.2k|        }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   40|  10.2k|            null_buffer() = default;
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  343|  60.1M|        {
  344|  60.1M|            std::size_t len = 0;
  345|  60.1M|            if (length_ > 0)
  ------------------
  |  Branch (345:17): [True: 60.1M, False: 2.24k]
  ------------------
  346|  60.1M|            {
  347|  60.1M|                len = (std::min)(length_, length);
  348|  60.1M|                std::memcpy(p, data_, len*sizeof(value_type));
  349|  60.1M|                data_ += len;
  350|  60.1M|                length_ -= len;
  351|  60.1M|                position_ += len;
  352|  60.1M|            }
  353|  60.1M|            if (length - len == 0)
  ------------------
  |  Branch (353:17): [True: 60.1M, False: 5.69k]
  ------------------
  354|  60.1M|            {
  355|  60.1M|                return len;
  356|  60.1M|            }
  357|  5.69k|            else if (length - len < buffer_size_)
  ------------------
  |  Branch (357:22): [True: 5.52k, False: 175]
  ------------------
  358|  5.52k|            {
  359|  5.52k|                fill_buffer();
  360|  5.52k|                if (length_ > 0)
  ------------------
  |  Branch (360:21): [True: 3.49k, False: 2.02k]
  ------------------
  361|  3.49k|                {
  362|  3.49k|                    std::size_t len2 = (std::min)(length_, length-len);
  363|  3.49k|                    std::memcpy(p+len, data_, len2*sizeof(value_type));
  364|  3.49k|                    data_ += len2;
  365|  3.49k|                    length_ -= len2;
  366|  3.49k|                    position_ += len2;
  367|  3.49k|                    len += len2;
  368|  3.49k|                }
  369|  5.52k|                return len;
  370|  5.52k|            }
  371|    175|            else
  372|    175|            {
  373|    175|                if (stream_ptr_->eof())
  ------------------
  |  Branch (373:21): [True: 0, False: 175]
  ------------------
  374|      0|                {
  375|      0|                    length_ = 0;
  376|      0|                    return 0;
  377|      0|                }
  378|    175|                JSONCONS_TRY
  ------------------
  |  |   37|    175|    #define JSONCONS_TRY try
  ------------------
  379|    175|                {
  380|    175|                    std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  381|    175|                    std::size_t len2 = static_cast<std::size_t>(count);
  382|    175|                    if (len2 < length-len)
  ------------------
  |  Branch (382:25): [True: 25, False: 150]
  ------------------
  383|     25|                    {
  384|     25|                        stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  385|     25|                    }
  386|    175|                    len += len2;
  387|    175|                    position_ += len2;
  388|    175|                    return len;
  389|    175|                }
  390|    175|                JSONCONS_CATCH(const std::exception&)     
  391|    175|                {
  392|      0|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  393|      0|                    return 0;
  394|      0|                }
  395|    175|            }
  396|  60.1M|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEv:
  399|  24.5k|        {
  400|  24.5k|            if (stream_ptr_->eof())
  ------------------
  |  Branch (400:17): [True: 7.59k, False: 16.9k]
  ------------------
  401|  7.59k|            {
  402|  7.59k|                length_ = 0;
  403|  7.59k|                return;
  404|  7.59k|            }
  405|       |
  406|  16.9k|            data_ = buffer_;
  407|  16.9k|            JSONCONS_TRY
  ------------------
  |  |   37|  16.9k|    #define JSONCONS_TRY try
  ------------------
  408|  16.9k|            {
  409|  16.9k|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(buffer_), buffer_size_);
  410|  16.9k|                length_ = static_cast<std::size_t>(count);
  411|       |
  412|  16.9k|                if (length_ < buffer_size_)
  ------------------
  |  Branch (412:21): [True: 10.0k, False: 6.86k]
  ------------------
  413|  10.0k|                {
  414|  10.0k|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  415|  10.0k|                }
  416|  16.9k|            }
  417|  16.9k|            JSONCONS_CATCH(const std::exception&)     
  418|  16.9k|            {
  419|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  420|      0|                length_ = 0;
  421|      0|            }
  422|  16.9k|        }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaaasr3std14is_convertibleIhNT_10value_typeEEE5valuesr10ext_traits11has_reserveISB_EE5valuesr10ext_traits14has_data_exactIPhSB_EE5valueEmE4typeERS5_RSB_m:
  859|  11.1M|        {
  860|  11.1M|            std::size_t unread = length;
  861|       |
  862|  11.1M|            std::size_t n = (std::min)(max_buffer_length, unread);
  863|  15.0M|            while (n > 0 && !source.eof())
  ------------------
  |  Branch (863:20): [True: 3.86M, False: 11.1M]
  |  Branch (863:29): [True: 3.86M, False: 641]
  ------------------
  864|  3.86M|            {
  865|  3.86M|                std::size_t offset = v.size();
  866|  3.86M|                v.resize(v.size()+n);
  867|  3.86M|                std::size_t actual = source.read(v.data()+offset, n);
  868|  3.86M|                unread -= actual;
  869|  3.86M|                n = (std::min)(max_buffer_length, unread);
  870|  3.86M|            }
  871|       |
  872|  11.1M|            return length - unread;
  873|  11.1M|        }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  4.31M|        {
  272|  4.31M|            return length_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:20): [True: 1.49k, False: 4.31M]
  |  Branch (272:36): [True: 1.01k, False: 475]
  ------------------
  273|  4.31M|        }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEEENS2_9enable_ifIXaaaasr3std14is_convertibleIhNT_10value_typeEEE5valuesr10ext_traits11has_reserveISE_EE5valuentsr10ext_traits14has_data_exactIPhSE_EE5valueEmE4typeERS5_RSE_m:
  882|   877k|        {
  883|   877k|            std::size_t unread = length;
  884|       |
  885|   877k|            std::size_t n = (std::min)(max_buffer_length, unread);
  886|  1.32M|            while (n > 0 && !source.eof())
  ------------------
  |  Branch (886:20): [True: 443k, False: 876k]
  |  Branch (886:29): [True: 443k, False: 376]
  ------------------
  887|   443k|            {
  888|   443k|                v.reserve(v.size()+n);
  889|   443k|                std::size_t actual = 0;
  890|  18.5M|                while (actual < n)
  ------------------
  |  Branch (890:24): [True: 18.0M, False: 442k]
  ------------------
  891|  18.0M|                {
  892|  18.0M|                    typename Source::value_type c{};
  893|  18.0M|                    if (source.read(&c,1) != 1)
  ------------------
  |  Branch (893:25): [True: 258, False: 18.0M]
  ------------------
  894|    258|                    {
  895|    258|                        break;
  896|    258|                    }
  897|  18.0M|                    v.push_back(c);
  898|  18.0M|                    ++actual;
  899|  18.0M|                }
  900|   443k|                unread -= actual;
  901|   443k|                n = (std::min)(max_buffer_length, unread);
  902|   443k|            }
  903|       |
  904|   877k|            return length - unread;
  905|   877k|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4peekEv:
  311|   127M|        {
  312|   127M|            if (length_ == 0)
  ------------------
  |  Branch (312:17): [True: 19.0k, False: 127M]
  ------------------
  313|  19.0k|            {
  314|  19.0k|                fill_buffer();
  315|  19.0k|            }
  316|   127M|            if (length_ > 0)
  ------------------
  |  Branch (316:17): [True: 127M, False: 5.60k]
  ------------------
  317|   127M|            {
  318|   127M|                value_type c = *data_;
  319|   127M|                return char_result<value_type>{c, false};
  320|   127M|            }
  321|  5.60k|            else
  322|  5.60k|            {
  323|  5.60k|                return char_result<value_type>{0, true};
  324|  5.60k|            }
  325|   127M|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE6ignoreEm:
  286|  17.6M|        {
  287|  17.6M|            std::size_t len = 0;
  288|  17.6M|            if (length_ > 0)
  ------------------
  |  Branch (288:17): [True: 17.6M, False: 0]
  ------------------
  289|  17.6M|            {
  290|  17.6M|                len = (std::min)(length_, length);
  291|  17.6M|                position_ += len;
  292|  17.6M|                data_ += len;
  293|  17.6M|                length_ -= len;
  294|  17.6M|            }
  295|  17.6M|            while (len < length)
  ------------------
  |  Branch (295:20): [True: 0, False: 17.6M]
  ------------------
  296|      0|            {
  297|      0|                fill_buffer();
  298|      0|                if (length_ == 0)
  ------------------
  |  Branch (298:21): [True: 0, False: 0]
  ------------------
  299|      0|                {
  300|      0|                    break;
  301|      0|                }
  302|      0|                std::size_t len2 = (std::min)(length_, length-len);
  303|      0|                position_ += len2;
  304|      0|                data_ += len2;
  305|      0|                length_ -= len2;
  306|      0|                len += len2;
  307|      0|            }
  308|  17.6M|        }

_ZN8jsoncons16typed_array_castIKhEENS_6detail4spanIT_Lm18446744073709551615EEENS3_IhLm18446744073709551615EEE:
  140|  3.22k|{
  141|  3.22k|    return jsoncons::span<const uint8_t>{reinterpret_cast<const uint8_t*>(bytes.data()), bytes.size()};
  142|  3.22k|}
_ZN8jsoncons20typed_array_iteratorD2Ev:
  247|  46.2k|    virtual ~typed_array_iterator() = default;
_ZN8jsoncons20typed_array_iterator11write_valueIhEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES4_NS_12semantic_tagERNS_19typed_array_visitorERKNS_11ser_contextERNS2_10error_codeE:
  266|  4.77M|    {
  267|  4.77M|        visitor.uint64_value(val, tag, context, ec);
  268|  4.77M|    }
_ZN8jsoncons31sequential_typed_array_iteratorIKhNS_8identityEEC2ENS_6detail4spanIS1_Lm18446744073709551615EEENS_12semantic_tagES2_:
  291|  3.22k|        : data_(data), tag_(tag), func_(func)
  292|  3.22k|    {
  293|  3.22k|    }
_ZNK8jsoncons31sequential_typed_array_iteratorIKhNS_8identityEE4doneEv:
  295|  9.56M|    {
  296|  9.56M|        return done_;
  297|  9.56M|    }
_ZN8jsoncons31sequential_typed_array_iteratorIKhNS_8identityEE4nextERNS_19typed_array_visitorERKNS_11ser_contextERNSt3__110error_codeE:
  301|  4.78M|    {
  302|  4.78M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  4.78M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3.22k, False: 4.78M]
  |  |  ------------------
  ------------------
  303|  3.22k|        {
  304|  3.22k|            visitor.begin_array(data_.size(), tag_, context, ec);
  305|  3.22k|            first_ = false;
  306|  3.22k|        }
  307|  4.78M|        else if (JSONCONS_LIKELY(index_ < data_.size()))
  ------------------
  |  |   77|  4.78M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 4.77M, False: 3.22k]
  |  |  ------------------
  ------------------
  308|  4.77M|        {
  309|  4.77M|            this->write_value(func_(data_[index_]), semantic_tag::none, visitor, context, ec);
  310|  4.77M|            ++index_;
  311|  4.77M|        }
  312|  3.22k|        else if (!done_)
  ------------------
  |  Branch (312:18): [True: 3.22k, False: 0]
  ------------------
  313|  3.22k|        {
  314|  3.22k|            visitor.end_array(context, ec);
  315|  3.22k|            done_ = true;
  316|  3.22k|        }
  317|  4.78M|    }
_ZN8jsoncons16typed_array_castItEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   86|  12.2k|{
   87|  12.2k|    return jsoncons::span<uint16_t>{reinterpret_cast<uint16_t*>(bytes.data()), bytes.size()/sizeof(uint16_t)};
   88|  12.2k|}
_ZN8jsoncons20typed_array_iterator11write_valueItEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES4_NS_12semantic_tagERNS_19typed_array_visitorERKNS_11ser_contextERNS2_10error_codeE:
  266|   844k|    {
  267|   844k|        visitor.uint64_value(val, tag, context, ec);
  268|   844k|    }
_ZN8jsoncons31sequential_typed_array_iteratorItNS_8identityEEC2ENS_6detail4spanItLm18446744073709551615EEENS_12semantic_tagES1_:
  291|  5.32k|        : data_(data), tag_(tag), func_(func)
  292|  5.32k|    {
  293|  5.32k|    }
_ZNK8jsoncons31sequential_typed_array_iteratorItNS_8identityEE4doneEv:
  295|  1.70M|    {
  296|  1.70M|        return done_;
  297|  1.70M|    }
_ZN8jsoncons31sequential_typed_array_iteratorItNS_8identityEE4nextERNS_19typed_array_visitorERKNS_11ser_contextERNSt3__110error_codeE:
  301|   855k|    {
  302|   855k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|   855k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5.32k, False: 850k]
  |  |  ------------------
  ------------------
  303|  5.32k|        {
  304|  5.32k|            visitor.begin_array(data_.size(), tag_, context, ec);
  305|  5.32k|            first_ = false;
  306|  5.32k|        }
  307|   850k|        else if (JSONCONS_LIKELY(index_ < data_.size()))
  ------------------
  |  |   77|   850k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 844k, False: 5.32k]
  |  |  ------------------
  ------------------
  308|   844k|        {
  309|   844k|            this->write_value(func_(data_[index_]), semantic_tag::none, visitor, context, ec);
  310|   844k|            ++index_;
  311|   844k|        }
  312|  5.32k|        else if (!done_)
  ------------------
  |  Branch (312:18): [True: 5.32k, False: 0]
  ------------------
  313|  5.32k|        {
  314|  5.32k|            visitor.end_array(context, ec);
  315|  5.32k|            done_ = true;
  316|  5.32k|        }
  317|   855k|    }
_ZN8jsoncons16typed_array_castIjEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   92|  2.79k|{
   93|  2.79k|    return jsoncons::span<uint32_t>{reinterpret_cast<uint32_t*>(bytes.data()), bytes.size()/sizeof(uint32_t)};
   94|  2.79k|}
_ZN8jsoncons20typed_array_iterator11write_valueIjEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES4_NS_12semantic_tagERNS_19typed_array_visitorERKNS_11ser_contextERNS2_10error_codeE:
  266|  4.38M|    {
  267|  4.38M|        visitor.uint64_value(val, tag, context, ec);
  268|  4.38M|    }
_ZN8jsoncons31sequential_typed_array_iteratorIjNS_8identityEEC2ENS_6detail4spanIjLm18446744073709551615EEENS_12semantic_tagES1_:
  291|  2.79k|        : data_(data), tag_(tag), func_(func)
  292|  2.79k|    {
  293|  2.79k|    }
_ZNK8jsoncons31sequential_typed_array_iteratorIjNS_8identityEE4doneEv:
  295|  8.76M|    {
  296|  8.76M|        return done_;
  297|  8.76M|    }
_ZN8jsoncons31sequential_typed_array_iteratorIjNS_8identityEE4nextERNS_19typed_array_visitorERKNS_11ser_contextERNSt3__110error_codeE:
  301|  4.38M|    {
  302|  4.38M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  4.38M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2.79k, False: 4.38M]
  |  |  ------------------
  ------------------
  303|  2.79k|        {
  304|  2.79k|            visitor.begin_array(data_.size(), tag_, context, ec);
  305|  2.79k|            first_ = false;
  306|  2.79k|        }
  307|  4.38M|        else if (JSONCONS_LIKELY(index_ < data_.size()))
  ------------------
  |  |   77|  4.38M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 4.38M, False: 2.79k]
  |  |  ------------------
  ------------------
  308|  4.38M|        {
  309|  4.38M|            this->write_value(func_(data_[index_]), semantic_tag::none, visitor, context, ec);
  310|  4.38M|            ++index_;
  311|  4.38M|        }
  312|  2.79k|        else if (!done_)
  ------------------
  |  Branch (312:18): [True: 2.79k, False: 0]
  ------------------
  313|  2.79k|        {
  314|  2.79k|            visitor.end_array(context, ec);
  315|  2.79k|            done_ = true;
  316|  2.79k|        }
  317|  4.38M|    }
_ZN8jsoncons16typed_array_castImEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   98|  7.90k|{
   99|  7.90k|    return jsoncons::span<uint64_t>{reinterpret_cast<uint64_t*>(bytes.data()), bytes.size()/sizeof(uint64_t)};
  100|  7.90k|}
_ZN8jsoncons20typed_array_iterator11write_valueImEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES4_NS_12semantic_tagERNS_19typed_array_visitorERKNS_11ser_contextERNS2_10error_codeE:
  266|   671k|    {
  267|   671k|        visitor.uint64_value(val, tag, context, ec);
  268|   671k|    }
_ZN8jsoncons31sequential_typed_array_iteratorImNS_8identityEEC2ENS_6detail4spanImLm18446744073709551615EEENS_12semantic_tagES1_:
  291|  7.90k|        : data_(data), tag_(tag), func_(func)
  292|  7.90k|    {
  293|  7.90k|    }
_ZNK8jsoncons31sequential_typed_array_iteratorImNS_8identityEE4doneEv:
  295|  1.35M|    {
  296|  1.35M|        return done_;
  297|  1.35M|    }
_ZN8jsoncons31sequential_typed_array_iteratorImNS_8identityEE4nextERNS_19typed_array_visitorERKNS_11ser_contextERNSt3__110error_codeE:
  301|   686k|    {
  302|   686k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|   686k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7.90k, False: 678k]
  |  |  ------------------
  ------------------
  303|  7.90k|        {
  304|  7.90k|            visitor.begin_array(data_.size(), tag_, context, ec);
  305|  7.90k|            first_ = false;
  306|  7.90k|        }
  307|   678k|        else if (JSONCONS_LIKELY(index_ < data_.size()))
  ------------------
  |  |   77|   678k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 671k, False: 7.90k]
  |  |  ------------------
  ------------------
  308|   671k|        {
  309|   671k|            this->write_value(func_(data_[index_]), semantic_tag::none, visitor, context, ec);
  310|   671k|            ++index_;
  311|   671k|        }
  312|  7.90k|        else if (!done_)
  ------------------
  |  Branch (312:18): [True: 7.90k, False: 0]
  ------------------
  313|  7.90k|        {
  314|  7.90k|            visitor.end_array(context, ec);
  315|  7.90k|            done_ = true;
  316|  7.90k|        }
  317|   686k|    }
_ZN8jsoncons16typed_array_castIaEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  104|  2.04k|{
  105|  2.04k|    return jsoncons::span<int8_t>{reinterpret_cast<int8_t*>(bytes.data()), bytes.size()};
  106|  2.04k|}
_ZN8jsoncons20typed_array_iterator11write_valueIaEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES4_NS_12semantic_tagERNS_19typed_array_visitorERKNS_11ser_contextERNS2_10error_codeE:
  258|   614k|    {
  259|   614k|        visitor.int64_value(val, tag, context, ec);
  260|   614k|    }
_ZN8jsoncons31sequential_typed_array_iteratorIaNS_8identityEEC2ENS_6detail4spanIaLm18446744073709551615EEENS_12semantic_tagES1_:
  291|  2.04k|        : data_(data), tag_(tag), func_(func)
  292|  2.04k|    {
  293|  2.04k|    }
_ZNK8jsoncons31sequential_typed_array_iteratorIaNS_8identityEE4doneEv:
  295|  1.23M|    {
  296|  1.23M|        return done_;
  297|  1.23M|    }
_ZN8jsoncons31sequential_typed_array_iteratorIaNS_8identityEE4nextERNS_19typed_array_visitorERKNS_11ser_contextERNSt3__110error_codeE:
  301|   618k|    {
  302|   618k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|   618k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2.04k, False: 616k]
  |  |  ------------------
  ------------------
  303|  2.04k|        {
  304|  2.04k|            visitor.begin_array(data_.size(), tag_, context, ec);
  305|  2.04k|            first_ = false;
  306|  2.04k|        }
  307|   616k|        else if (JSONCONS_LIKELY(index_ < data_.size()))
  ------------------
  |  |   77|   616k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 614k, False: 2.04k]
  |  |  ------------------
  ------------------
  308|   614k|        {
  309|   614k|            this->write_value(func_(data_[index_]), semantic_tag::none, visitor, context, ec);
  310|   614k|            ++index_;
  311|   614k|        }
  312|  2.04k|        else if (!done_)
  ------------------
  |  Branch (312:18): [True: 2.04k, False: 0]
  ------------------
  313|  2.04k|        {
  314|  2.04k|            visitor.end_array(context, ec);
  315|  2.04k|            done_ = true;
  316|  2.04k|        }
  317|   618k|    }
_ZN8jsoncons16typed_array_castIsEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  110|  3.22k|{
  111|  3.22k|    return jsoncons::span<int16_t>{reinterpret_cast<int16_t*>(bytes.data()), bytes.size()/sizeof(int16_t)};
  112|  3.22k|}
_ZN8jsoncons20typed_array_iterator11write_valueIsEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES4_NS_12semantic_tagERNS_19typed_array_visitorERKNS_11ser_contextERNS2_10error_codeE:
  258|  2.11M|    {
  259|  2.11M|        visitor.int64_value(val, tag, context, ec);
  260|  2.11M|    }
_ZN8jsoncons31sequential_typed_array_iteratorIsNS_8identityEEC2ENS_6detail4spanIsLm18446744073709551615EEENS_12semantic_tagES1_:
  291|  3.22k|        : data_(data), tag_(tag), func_(func)
  292|  3.22k|    {
  293|  3.22k|    }
_ZNK8jsoncons31sequential_typed_array_iteratorIsNS_8identityEE4doneEv:
  295|  4.24M|    {
  296|  4.24M|        return done_;
  297|  4.24M|    }
_ZN8jsoncons31sequential_typed_array_iteratorIsNS_8identityEE4nextERNS_19typed_array_visitorERKNS_11ser_contextERNSt3__110error_codeE:
  301|  2.12M|    {
  302|  2.12M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  2.12M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3.22k, False: 2.12M]
  |  |  ------------------
  ------------------
  303|  3.22k|        {
  304|  3.22k|            visitor.begin_array(data_.size(), tag_, context, ec);
  305|  3.22k|            first_ = false;
  306|  3.22k|        }
  307|  2.12M|        else if (JSONCONS_LIKELY(index_ < data_.size()))
  ------------------
  |  |   77|  2.12M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 2.11M, False: 3.22k]
  |  |  ------------------
  ------------------
  308|  2.11M|        {
  309|  2.11M|            this->write_value(func_(data_[index_]), semantic_tag::none, visitor, context, ec);
  310|  2.11M|            ++index_;
  311|  2.11M|        }
  312|  3.22k|        else if (!done_)
  ------------------
  |  Branch (312:18): [True: 3.22k, False: 0]
  ------------------
  313|  3.22k|        {
  314|  3.22k|            visitor.end_array(context, ec);
  315|  3.22k|            done_ = true;
  316|  3.22k|        }
  317|  2.12M|    }
_ZN8jsoncons16typed_array_castIiEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  116|  3.99k|{
  117|  3.99k|    return jsoncons::span<int32_t>{reinterpret_cast<int32_t*>(bytes.data()), bytes.size()/sizeof(int32_t)};
  118|  3.99k|}
_ZN8jsoncons20typed_array_iterator11write_valueIiEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES4_NS_12semantic_tagERNS_19typed_array_visitorERKNS_11ser_contextERNS2_10error_codeE:
  258|  2.47M|    {
  259|  2.47M|        visitor.int64_value(val, tag, context, ec);
  260|  2.47M|    }
_ZN8jsoncons31sequential_typed_array_iteratorIiNS_8identityEEC2ENS_6detail4spanIiLm18446744073709551615EEENS_12semantic_tagES1_:
  291|  3.99k|        : data_(data), tag_(tag), func_(func)
  292|  3.99k|    {
  293|  3.99k|    }
_ZNK8jsoncons31sequential_typed_array_iteratorIiNS_8identityEE4doneEv:
  295|  4.95M|    {
  296|  4.95M|        return done_;
  297|  4.95M|    }
_ZN8jsoncons31sequential_typed_array_iteratorIiNS_8identityEE4nextERNS_19typed_array_visitorERKNS_11ser_contextERNSt3__110error_codeE:
  301|  2.48M|    {
  302|  2.48M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  2.48M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3.99k, False: 2.47M]
  |  |  ------------------
  ------------------
  303|  3.99k|        {
  304|  3.99k|            visitor.begin_array(data_.size(), tag_, context, ec);
  305|  3.99k|            first_ = false;
  306|  3.99k|        }
  307|  2.47M|        else if (JSONCONS_LIKELY(index_ < data_.size()))
  ------------------
  |  |   77|  2.47M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 2.47M, False: 3.99k]
  |  |  ------------------
  ------------------
  308|  2.47M|        {
  309|  2.47M|            this->write_value(func_(data_[index_]), semantic_tag::none, visitor, context, ec);
  310|  2.47M|            ++index_;
  311|  2.47M|        }
  312|  3.99k|        else if (!done_)
  ------------------
  |  Branch (312:18): [True: 3.99k, False: 0]
  ------------------
  313|  3.99k|        {
  314|  3.99k|            visitor.end_array(context, ec);
  315|  3.99k|            done_ = true;
  316|  3.99k|        }
  317|  2.48M|    }
_ZN8jsoncons16typed_array_castIlEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  122|  3.56k|{
  123|  3.56k|    return jsoncons::span<int64_t>{reinterpret_cast<int64_t*>(bytes.data()), bytes.size()/sizeof(int64_t)};
  124|  3.56k|}
_ZN8jsoncons20typed_array_iterator11write_valueIlEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES4_NS_12semantic_tagERNS_19typed_array_visitorERKNS_11ser_contextERNS2_10error_codeE:
  258|   638k|    {
  259|   638k|        visitor.int64_value(val, tag, context, ec);
  260|   638k|    }
_ZN8jsoncons31sequential_typed_array_iteratorIlNS_8identityEEC2ENS_6detail4spanIlLm18446744073709551615EEENS_12semantic_tagES1_:
  291|  3.56k|        : data_(data), tag_(tag), func_(func)
  292|  3.56k|    {
  293|  3.56k|    }
_ZNK8jsoncons31sequential_typed_array_iteratorIlNS_8identityEE4doneEv:
  295|  1.28M|    {
  296|  1.28M|        return done_;
  297|  1.28M|    }
_ZN8jsoncons31sequential_typed_array_iteratorIlNS_8identityEE4nextERNS_19typed_array_visitorERKNS_11ser_contextERNSt3__110error_codeE:
  301|   645k|    {
  302|   645k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|   645k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3.56k, False: 641k]
  |  |  ------------------
  ------------------
  303|  3.56k|        {
  304|  3.56k|            visitor.begin_array(data_.size(), tag_, context, ec);
  305|  3.56k|            first_ = false;
  306|  3.56k|        }
  307|   641k|        else if (JSONCONS_LIKELY(index_ < data_.size()))
  ------------------
  |  |   77|   641k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 638k, False: 3.56k]
  |  |  ------------------
  ------------------
  308|   638k|        {
  309|   638k|            this->write_value(func_(data_[index_]), semantic_tag::none, visitor, context, ec);
  310|   638k|            ++index_;
  311|   638k|        }
  312|  3.56k|        else if (!done_)
  ------------------
  |  Branch (312:18): [True: 3.56k, False: 0]
  ------------------
  313|  3.56k|        {
  314|  3.56k|            visitor.end_array(context, ec);
  315|  3.56k|            done_ = true;
  316|  3.56k|        }
  317|   645k|    }
_ZN8jsoncons31sequential_typed_array_iteratorItNS_11decode_halfEEC2ENS_6detail4spanItLm18446744073709551615EEENS_12semantic_tagES1_:
  291|  6.90k|        : data_(data), tag_(tag), func_(func)
  292|  6.90k|    {
  293|  6.90k|    }
_ZNK8jsoncons31sequential_typed_array_iteratorItNS_11decode_halfEE4doneEv:
  295|  17.0M|    {
  296|  17.0M|        return done_;
  297|  17.0M|    }
_ZN8jsoncons31sequential_typed_array_iteratorItNS_11decode_halfEE4nextERNS_19typed_array_visitorERKNS_11ser_contextERNSt3__110error_codeE:
  301|  8.55M|    {
  302|  8.55M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  8.55M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 6.90k, False: 8.54M]
  |  |  ------------------
  ------------------
  303|  6.90k|        {
  304|  6.90k|            visitor.begin_array(data_.size(), tag_, context, ec);
  305|  6.90k|            first_ = false;
  306|  6.90k|        }
  307|  8.54M|        else if (JSONCONS_LIKELY(index_ < data_.size()))
  ------------------
  |  |   77|  8.54M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 8.54M, False: 6.90k]
  |  |  ------------------
  ------------------
  308|  8.54M|        {
  309|  8.54M|            this->write_value(func_(data_[index_]), semantic_tag::none, visitor, context, ec);
  310|  8.54M|            ++index_;
  311|  8.54M|        }
  312|  6.90k|        else if (!done_)
  ------------------
  |  Branch (312:18): [True: 6.90k, False: 0]
  ------------------
  313|  6.90k|        {
  314|  6.90k|            visitor.end_array(context, ec);
  315|  6.90k|            done_ = true;
  316|  6.90k|        }
  317|  8.55M|    }
_ZN8jsoncons20typed_array_iterator11write_valueIdEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES4_NS_12semantic_tagERNS_19typed_array_visitorERKNS_11ser_contextERNS2_10error_codeE:
  274|  8.88M|    {
  275|  8.88M|        visitor.double_value(val, tag, context, ec);
  276|  8.88M|    }
_ZN8jsoncons16typed_array_castIfEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  128|  4.28k|{
  129|  4.28k|    return jsoncons::span<float>{reinterpret_cast<float*>(bytes.data()), bytes.size()/sizeof(float)};
  130|  4.28k|}
_ZN8jsoncons20typed_array_iterator11write_valueIfEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES4_NS_12semantic_tagERNS_19typed_array_visitorERKNS_11ser_contextERNS2_10error_codeE:
  274|   773k|    {
  275|   773k|        visitor.double_value(val, tag, context, ec);
  276|   773k|    }
_ZN8jsoncons31sequential_typed_array_iteratorIfNS_8identityEEC2ENS_6detail4spanIfLm18446744073709551615EEENS_12semantic_tagES1_:
  291|  4.28k|        : data_(data), tag_(tag), func_(func)
  292|  4.28k|    {
  293|  4.28k|    }
_ZNK8jsoncons31sequential_typed_array_iteratorIfNS_8identityEE4doneEv:
  295|  1.55M|    {
  296|  1.55M|        return done_;
  297|  1.55M|    }
_ZN8jsoncons31sequential_typed_array_iteratorIfNS_8identityEE4nextERNS_19typed_array_visitorERKNS_11ser_contextERNSt3__110error_codeE:
  301|   782k|    {
  302|   782k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|   782k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4.28k, False: 778k]
  |  |  ------------------
  ------------------
  303|  4.28k|        {
  304|  4.28k|            visitor.begin_array(data_.size(), tag_, context, ec);
  305|  4.28k|            first_ = false;
  306|  4.28k|        }
  307|   778k|        else if (JSONCONS_LIKELY(index_ < data_.size()))
  ------------------
  |  |   77|   778k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 773k, False: 4.28k]
  |  |  ------------------
  ------------------
  308|   773k|        {
  309|   773k|            this->write_value(func_(data_[index_]), semantic_tag::none, visitor, context, ec);
  310|   773k|            ++index_;
  311|   773k|        }
  312|  4.28k|        else if (!done_)
  ------------------
  |  Branch (312:18): [True: 4.28k, False: 0]
  ------------------
  313|  4.28k|        {
  314|  4.28k|            visitor.end_array(context, ec);
  315|  4.28k|            done_ = true;
  316|  4.28k|        }
  317|   782k|    }
_ZN8jsoncons16typed_array_castIdEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  134|  2.93k|{
  135|  2.93k|    return jsoncons::span<double>{reinterpret_cast<double*>(bytes.data()), bytes.size()/sizeof(double)};
  136|  2.93k|}
_ZN8jsoncons31sequential_typed_array_iteratorIdNS_8identityEEC2ENS_6detail4spanIdLm18446744073709551615EEENS_12semantic_tagES1_:
  291|  2.93k|        : data_(data), tag_(tag), func_(func)
  292|  2.93k|    {
  293|  2.93k|    }
_ZNK8jsoncons31sequential_typed_array_iteratorIdNS_8identityEE4doneEv:
  295|   702k|    {
  296|   702k|        return done_;
  297|   702k|    }
_ZN8jsoncons31sequential_typed_array_iteratorIdNS_8identityEE4nextERNS_19typed_array_visitorERKNS_11ser_contextERNSt3__110error_codeE:
  301|   354k|    {
  302|   354k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|   354k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2.93k, False: 351k]
  |  |  ------------------
  ------------------
  303|  2.93k|        {
  304|  2.93k|            visitor.begin_array(data_.size(), tag_, context, ec);
  305|  2.93k|            first_ = false;
  306|  2.93k|        }
  307|   351k|        else if (JSONCONS_LIKELY(index_ < data_.size()))
  ------------------
  |  |   77|   351k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 348k, False: 2.93k]
  |  |  ------------------
  ------------------
  308|   348k|        {
  309|   348k|            this->write_value(func_(data_[index_]), semantic_tag::none, visitor, context, ec);
  310|   348k|            ++index_;
  311|   348k|        }
  312|  2.93k|        else if (!done_)
  ------------------
  |  Branch (312:18): [True: 2.93k, False: 0]
  ------------------
  313|  2.93k|        {
  314|  2.93k|            visitor.end_array(context, ec);
  315|  2.93k|            done_ = true;
  316|  2.93k|        }
  317|   354k|    }
_ZN8jsoncons22calculate_mdarray_sizeENS_6detail4spanIKmLm18446744073709551615EEE:
  322|    202|{
  323|    202|    using result_type = jsoncons::expected<std::size_t,std::errc>;
  324|       |
  325|    202|    if (extents.empty())
  ------------------
  |  Branch (325:9): [True: 118, False: 84]
  ------------------
  326|    118|    {
  327|    118|        return result_type(0);
  328|    118|    }
  329|     84|    std::size_t n = extents[0];
  330|    268|    for (std::size_t i = 1; i < extents.size(); ++i)
  ------------------
  |  Branch (330:29): [True: 222, False: 46]
  ------------------
  331|    222|    {
  332|    222|        if (extents[i] == 0 || JSONCONS_UNLIKELY(n > (std::numeric_limits<std::size_t>::max)()/extents[i]))
  ------------------
  |  |   78|    185|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 184]
  |  |  ------------------
  ------------------
  |  Branch (332:13): [True: 37, False: 185]
  ------------------
  333|     38|        {
  334|     38|            return result_type(jsoncons::unexpect, std::errc::value_too_large);
  335|     38|        }
  336|    184|        n *= extents[i];
  337|    184|    }
  338|     46|    return n;
  339|     84|}

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE13from_bytes_beEiPKhm:
  801|   184k|    {
  802|   184k|        static const double radix_log2 = std::log2(next_power_of_two(256));
  803|       |        // Estimate how big the result will be, so we can pre-allocate it.
  804|   184k|        double bits = radix_log2 * n;
  805|   184k|        double big_digits = std::ceil(bits / 64.0);
  806|       |        //std::cout << "ESTIMATED: " << big_digits << "\n";
  807|       |
  808|   184k|        basic_bigint<Allocator> v = 0;
  809|   184k|        v.reserve(static_cast<size_type>(big_digits));
  810|       |
  811|   184k|        if (n > 0)
  ------------------
  |  Branch (811:13): [True: 166k, False: 17.9k]
  ------------------
  812|   166k|        {
  813|  1.21M|            for (size_type i = 0; i < n; i++)
  ------------------
  |  Branch (813:35): [True: 1.05M, False: 166k]
  ------------------
  814|  1.05M|            {
  815|  1.05M|                v = (v * 256) + (word_type)(str[i]);
  816|  1.05M|            }
  817|   166k|        }
  818|       |        //std::cout << "ACTUAL: " << v.size() << "\n";
  819|       |
  820|   184k|        if (signum < 0)
  ------------------
  |  Branch (820:13): [True: 0, False: 184k]
  ------------------
  821|      0|        {
  822|      0|            v.set_negative(true);
  823|      0|        }
  824|       |
  825|   184k|        return v;
  826|   184k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE17next_power_of_twoEm:
 1858|      1|    static word_type next_power_of_two(word_type n) {
 1859|      1|        n = n - 1;
 1860|      1|        n |= n >> 1u;
 1861|      1|        n |= n >> 2u;
 1862|      1|        n |= n >> 4u;
 1863|      1|        n |= n >> 8u;
 1864|      1|        n |= n >> 16u;
 1865|      1|        n |= n >> 32u;
 1866|      1|        return n + 1;
 1867|      1|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  834|   184k|    {
  835|   184k|        storage_.reserve(n);
  836|   184k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  446|  3.93M|    {
  447|  3.93M|       if (capacity() < n)
  ------------------
  |  Branch (447:12): [True: 33.6k, False: 3.90M]
  ------------------
  448|  33.6k|       {
  449|  33.6k|           if (!is_allocated())
  ------------------
  |  Branch (449:16): [True: 33.6k, False: 0]
  ------------------
  450|  33.6k|           {
  451|  33.6k|               size_type size = inlined_.size_;
  452|  33.6k|               size_type is_neg = inlined_.is_negative_;
  453|  33.6k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  454|       |
  455|  33.6k|               ::new (&allocated_) allocated_storage();
  456|  33.6k|               allocated_.reserve(n, get_allocator());
  457|  33.6k|               allocated_.size_ = size;
  458|  33.6k|               allocated_.is_negative_ = is_neg;
  459|  33.6k|               if (n >= 1)
  ------------------
  |  Branch (459:20): [True: 33.6k, False: 0]
  ------------------
  460|  33.6k|               {
  461|  33.6k|                   allocated_.data_[0] = values[0];
  462|  33.6k|               }
  463|  33.6k|               if (n >= 2)
  ------------------
  |  Branch (463:20): [True: 33.6k, False: 0]
  ------------------
  464|  33.6k|               {
  465|  33.6k|                   allocated_.data_[1] = values[1];
  466|  33.6k|               }
  467|  33.6k|           }
  468|      0|           else
  469|      0|           {
  470|      0|               allocated_.reserve(n, get_allocator());
  471|      0|           }
  472|  33.6k|       }
  473|  3.93M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  499|  3.93M|    {
  500|  3.93M|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (500:16): [True: 2.78M, False: 1.15M]
  ------------------
  501|  3.93M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  494|  16.5M|    {
  495|  16.5M|        return common_.is_allocated_;
  496|  16.5M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  202|  33.6k|            : is_allocated_(true),
  203|  33.6k|            is_negative_(false)
  204|  33.6k|        {
  205|  33.6k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  254|  33.6k|        {
  255|  33.6k|            size_type capacity_new = round_up(n);
  256|       |
  257|  33.6k|            real_allocator_type alloc(a);
  258|  33.6k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  259|  33.6k|            if (size_ > 0)
  ------------------
  |  Branch (259:17): [True: 0, False: 33.6k]
  ------------------
  260|      0|            {
  261|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  262|      0|            }
  263|  33.6k|            if (data_ != nullptr)
  ------------------
  |  Branch (263:17): [True: 0, False: 33.6k]
  ------------------
  264|      0|            {
  265|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  266|      0|            }
  267|  33.6k|            capacity_ = capacity_new;
  268|  33.6k|            data_ = data_new;
  269|  33.6k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  273|  33.6k|        {
  274|  33.6k|            std::size_t remainder = i % mem_unit;
  275|       |
  276|  33.6k|            std::size_t x = (std::numeric_limits<size_type>::max)() - (mem_unit - remainder);
  277|  33.6k|            if (i > x)
  ------------------
  |  Branch (277:17): [True: 0, False: 33.6k]
  ------------------
  278|      0|            {
  279|      0|                return (std::numeric_limits<size_type>::max)();
  280|      0|            }
  281|       |
  282|  33.6k|            return i + (mem_unit - remainder);
  283|  33.6k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  476|  9.81M|    {
  477|  9.81M|        return static_cast<const word_allocator_type&>(*this);
  478|  9.81M|    }
_ZN8jsonconsplENS_12basic_bigintINSt3__19allocatorImEEEEl:
 1459|  1.05M|    {
 1460|  1.05M|        return x += y;
 1461|  1.05M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  687|  1.05M|        : storage_(n, alloc)
  688|  1.05M|    {
  689|  1.05M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  354|  1.05M|        : word_allocator_type(alloc)
  355|  1.05M|    {
  356|  1.05M|        ::new (&inlined_) inlined_storage(n);
  357|  1.05M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|  1.05M|            : is_allocated_(false),
  126|  1.05M|            is_negative_(n < 0),
  127|  1.05M|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 211k, False: 840k]
  ------------------
  128|  1.05M|        {
  129|  1.05M|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 0, False: 1.05M]
  ------------------
  130|  1.05M|            values_[1] = 0;
  131|  1.05M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  859|  1.05M|    {
  860|  1.05M|        auto y_view = y.get_storage_view();
  861|       |        
  862|  1.05M|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (862:14): [True: 0, False: 1.05M]
  ------------------
  863|      0|            return *this -= -y;
  864|  1.05M|        word_type d;
  865|  1.05M|        word_type carry = 0;
  866|       |
  867|  1.05M|        auto this_view = get_storage_view();
  868|  1.05M|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  869|  1.05M|        this_view = get_storage_view();
  870|       |
  871|  1.97M|        for (size_type i = 0; i < this_view.size(); i++ )
  ------------------
  |  Branch (871:31): [True: 1.97M, False: 393]
  ------------------
  872|  1.97M|        {
  873|  1.97M|            if ( i >= y_view.size() && carry == 0 )
  ------------------
  |  Branch (873:18): [True: 1.05M, False: 915k]
  |  Branch (873:40): [True: 1.05M, False: 393]
  ------------------
  874|  1.05M|                break;
  875|   915k|            d = this_view[i] + carry;
  876|   915k|            carry = d < carry;
  877|   915k|            if ( i < y_view.size())
  ------------------
  |  Branch (877:18): [True: 915k, False: 393]
  ------------------
  878|   915k|            {
  879|   915k|                this_view[i] = d + y_view[i];
  880|   915k|                if (this_view[i] < d)
  ------------------
  |  Branch (880:21): [True: 715, False: 914k]
  ------------------
  881|    715|                    carry = 1;
  882|   915k|            }
  883|    393|            else
  884|    393|            {
  885|    393|                this_view[i] = d;
  886|    393|            }
  887|   915k|        }
  888|  1.05M|        reduce();
  889|  1.05M|        return *this;
  890|  1.05M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  717|  1.70M|    {
  718|  1.70M|        return storage_.get_storage_view();
  719|  1.70M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  521|  3.17M|    {
  522|  3.17M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (522:16): [True: 1.19M, False: 1.98M]
  ------------------
  523|  1.19M|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  524|  3.17M|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  525|  3.17M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   64|  3.17M|            : data_(data), size_(size)
   65|  3.17M|        {
   66|  3.17M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  722|  3.86M|    {
  723|  3.86M|        return storage_.is_negative();
  724|  3.86M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  504|  3.86M|    {
  505|  3.86M|        return common_.is_negative_;
  506|  3.86M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  846|  7.00k|    {
  847|  7.00k|        basic_bigint<Allocator> v(*this);
  848|  7.00k|        v.set_negative(!v.is_negative());
  849|  7.00k|        return v;
  850|  7.00k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  893|  7.00k|    {
  894|  7.00k|        auto y_view = y.get_storage_view();
  895|       |
  896|  7.00k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (896:14): [True: 7.00k, False: 0]
  ------------------
  897|  7.00k|            return *this += -y;
  898|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (898:15): [True: 0, False: 0]
  |  Branch (898:33): [True: 0, False: 0]
  |  Branch (898:48): [True: 0, False: 0]
  |  Branch (898:65): [True: 0, False: 0]
  ------------------
  899|      0|            return *this = -(y - *this);
  900|      0|        word_type borrow = 0;
  901|      0|        word_type d;
  902|      0|        auto this_view = get_storage_view();
  903|      0|        for (size_type i = 0; i < this_view.size(); i++ )
  ------------------
  |  Branch (903:31): [True: 0, False: 0]
  ------------------
  904|      0|        {
  905|      0|            if ( i >= y_view.size() && borrow == 0 )
  ------------------
  |  Branch (905:18): [True: 0, False: 0]
  |  Branch (905:40): [True: 0, False: 0]
  ------------------
  906|      0|                break;
  907|      0|            d = this_view[i] - borrow;
  908|      0|            borrow = d > this_view[i];
  909|      0|            if ( i < y_view.size())
  ------------------
  |  Branch (909:18): [True: 0, False: 0]
  ------------------
  910|      0|            {
  911|      0|                this_view[i] = d - y_view[i];
  912|      0|                if ( this_view[i] > d )
  ------------------
  |  Branch (912:22): [True: 0, False: 0]
  ------------------
  913|      0|                    borrow = 1;
  914|      0|            }
  915|      0|            else 
  916|      0|            {
  917|      0|                this_view[i] = d;
  918|      0|            }
  919|      0|        }
  920|      0|        reduce();
  921|      0|        return *this;
  922|      0|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1579|   262k|    {
 1580|   262k|        auto this_view = get_storage_view();
 1581|   262k|        auto y_view = y.get_storage_view();
 1582|       |
 1583|   262k|        if ( this_view.size() == 0 && y_view.size() == 0 )
  ------------------
  |  Branch (1583:14): [True: 0, False: 262k]
  |  Branch (1583:39): [True: 0, False: 0]
  ------------------
 1584|      0|            return 0;
 1585|   262k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1585:14): [True: 0, False: 262k]
  ------------------
 1586|      0|            return y.is_negative() - is_negative();
 1587|   262k|        int code = 0;
 1588|   262k|        if ( this_view.size() < y_view.size())
  ------------------
  |  Branch (1588:14): [True: 0, False: 262k]
  ------------------
 1589|      0|            code = -1;
 1590|   262k|        else if ( this_view.size() > y_view.size())
  ------------------
  |  Branch (1590:19): [True: 109k, False: 153k]
  ------------------
 1591|   109k|            code = +1;
 1592|   153k|        else
 1593|   153k|        {
 1594|   153k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1594:50): [True: 153k, False: 264]
  ------------------
 1595|   153k|            {
 1596|   153k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1596:21): [True: 1.96k, False: 151k]
  ------------------
 1597|  1.96k|                {
 1598|  1.96k|                    code = 1;
 1599|  1.96k|                    break;
 1600|  1.96k|                }
 1601|   151k|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1601:26): [True: 151k, False: 264]
  ------------------
 1602|   151k|                {
 1603|   151k|                    code = -1;
 1604|   151k|                    break;
 1605|   151k|                }
 1606|   153k|            }
 1607|   153k|        }
 1608|   262k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1608:16): [True: 0, False: 262k]
  ------------------
 1609|   262k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1414|   262k|    {
 1415|   262k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1415:15): [True: 151k, False: 111k]
  ------------------
 1416|   262k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  712|  6.40M|    {
  713|  6.40M|        return storage_.get_storage_view();
  714|  6.40M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  514|  10.4M|    {
  515|  10.4M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (515:16): [True: 7.34M, False: 3.08M]
  ------------------
  516|  7.34M|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  517|  10.4M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  518|  10.4M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   64|  10.4M|            : data_(data), size_(size)
   65|  10.4M|        {
   66|  10.4M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  829|  2.27M|    {
  830|  2.27M|        storage_.resize(new_length);
  831|  2.27M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  528|  3.75M|    {
  529|  3.75M|        size_type old_length = common_.size_;
  530|  3.75M|        reserve(new_length);
  531|  3.75M|        common_.size_ = new_length;
  532|       |
  533|  3.75M|        if (old_length < new_length)
  ------------------
  |  Branch (533:13): [True: 2.67M, False: 1.07M]
  ------------------
  534|  2.67M|        {
  535|  2.67M|            if (is_allocated())
  ------------------
  |  Branch (535:17): [True: 1.95M, False: 719k]
  ------------------
  536|  1.95M|            {
  537|  1.95M|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  538|  1.95M|            }
  539|   719k|            else
  540|   719k|            {
  541|   719k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   45|   719k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 719k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  542|  2.05M|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (542:48): [True: 1.33M, False: 719k]
  ------------------
  543|  1.33M|                {
  544|  1.33M|                    inlined_.values_[i] = 0;
  545|  1.33M|                }
  546|   719k|            }
  547|  2.67M|        }
  548|  3.75M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   84|  9.66M|        {
   85|  9.66M|            return size_;
   86|  9.66M|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   84|  9.73M|        {
   85|  9.73M|            return size_;
   86|  9.73M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   69|  5.68G|        {
   70|  5.68G|            return data_[i];
   71|  5.68G|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   69|  1.52M|        {
   70|  1.52M|            return data_[i];
   71|  1.52M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1854|  2.54M|    {
 1855|  2.54M|        storage_.reduce();
 1856|  2.54M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  423|  2.54M|    {
  424|  2.54M|        if (common_.size_ > 0)
  ------------------
  |  Branch (424:13): [True: 2.54M, False: 0]
  ------------------
  425|  2.54M|        {
  426|  2.54M|            auto this_view = get_storage_view();
  427|  2.54M|            word_type* p = this_view.end() - 1;
  428|  2.54M|            word_type* first = this_view.begin();
  429|   206M|            while ( p >= first )
  ------------------
  |  Branch (429:21): [True: 205M, False: 204k]
  ------------------
  430|   205M|            {
  431|   205M|                if ( *p )
  ------------------
  |  Branch (431:22): [True: 2.34M, False: 203M]
  ------------------
  432|  2.34M|                {
  433|  2.34M|                    break;
  434|  2.34M|                }
  435|   203M|                --common_.size_;
  436|   203M|                --p;
  437|   203M|            }
  438|  2.54M|        }
  439|  2.54M|        if (common_.size_ == 0)
  ------------------
  |  Branch (439:13): [True: 204k, False: 2.34M]
  ------------------
  440|   204k|        {
  441|   204k|            common_.is_negative_ = false;
  442|   204k|        }
  443|  2.54M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   93|  2.54M|        {
   94|  2.54M|            return data_ + size_;
   95|  2.54M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   88|  2.54M|        {
   89|  2.54M|            return data_;
   90|  2.54M|        }
_ZN8jsonconsmlENS_12basic_bigintINSt3__19allocatorImEEEEl:
 1484|  1.05M|    {
 1485|  1.05M|        return x *= y;
 1486|  1.05M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIlEENS1_9enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueERS4_E4typeES7_:
  927|  1.05M|    {
  928|  1.05M|        *this *= word_type(y < 0 ? -y : y);
  ------------------
  |  Branch (928:28): [True: 0, False: 1.05M]
  ------------------
  929|  1.05M|        if ( y < 0 )
  ------------------
  |  Branch (929:14): [True: 0, False: 1.05M]
  ------------------
  930|      0|            set_negative(!is_negative());
  931|  1.05M|        return *this;
  932|  1.05M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  937|  1.05M|    {
  938|  1.05M|        auto this_view = get_storage_view();
  939|  1.05M|        size_type len0 = this_view.size();
  940|  1.05M|        word_type dig = this_view[0];
  941|  1.05M|        word_type carry = 0;
  942|       |
  943|  1.05M|        resize(this_view.size() + 1);
  944|  1.05M|        this_view = get_storage_view();
  945|       |
  946|  1.05M|        size_type i = 0;
  947|  1.58G|        for (; i < len0; i++ )
  ------------------
  |  Branch (947:16): [True: 1.58G, False: 1.05M]
  ------------------
  948|  1.58G|        {
  949|  1.58G|            word_type hi;
  950|  1.58G|            word_type lo;
  951|  1.58G|            DDproduct( dig, y, hi, lo );
  952|  1.58G|            this_view[i] = lo + carry;
  953|  1.58G|            dig = this_view[i+1];
  954|  1.58G|            carry = hi + (this_view[i] < lo);
  955|  1.58G|        }
  956|  1.05M|        this_view[i] = carry;
  957|  1.05M|        reduce();
  958|  1.05M|        return *this;
  959|  1.05M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1718|  1.78G|    {
 1719|  1.78G|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1720|  1.78G|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1721|       |
 1722|  1.78G|        lo = loA * loB;
 1723|  1.78G|        hi = hiA * hiB;
 1724|  1.78G|        word_type mid1 = loA * hiB;
 1725|  1.78G|        word_type mid2 = hiA * loB;
 1726|  1.78G|        word_type old = lo;
 1727|  1.78G|        lo += mid1 << word_type_half_bits;
 1728|  1.78G|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1729|  1.78G|        old = lo;
 1730|  1.78G|        lo += mid2 << word_type_half_bits;
 1731|  1.78G|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1732|  1.78G|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  665|  3.35M|        : storage_(other.storage_)
  666|  3.35M|    {
  667|  3.35M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  300|  3.35M|        : word_allocator_type(other.get_allocator())
  301|  3.35M|    {
  302|  3.35M|        if (!other.is_allocated())
  ------------------
  |  Branch (302:13): [True: 791k, False: 2.56M]
  ------------------
  303|   791k|        {
  304|   791k|            ::new (&inlined_) inlined_storage(other.inlined_);
  305|   791k|        }
  306|  2.56M|        else
  307|  2.56M|        {
  308|  2.56M|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  309|  2.56M|        }
  310|  3.35M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  178|  1.31M|            : is_allocated_(false),
  179|  1.31M|            is_negative_(stor.is_negative_),
  180|  1.31M|            size_(stor.size_)
  181|  1.31M|        {
  182|  1.31M|            values_[0] = stor.values_[0];
  183|  1.31M|            values_[1] = stor.values_[1];
  184|  1.31M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  208|  2.78M|            : is_allocated_(true),
  209|  2.78M|              is_negative_(stor.is_negative_),
  210|  2.78M|              size_(stor.size_),
  211|  2.78M|              capacity_(stor.capacity_)
  212|  2.78M|        {
  213|  2.78M|            real_allocator_type alloc(a);
  214|       |
  215|  2.78M|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  216|  2.78M|            JSONCONS_TRY
  ------------------
  |  |   37|  2.78M|    #define JSONCONS_TRY try
  ------------------
  217|  2.78M|            {
  218|  2.78M|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  219|  2.78M|            }
  220|  2.78M|            JSONCONS_CATCH(...)
  221|  2.78M|            {
  222|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  223|      0|                data_ = nullptr;
  224|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  225|      0|            }
  226|  2.78M|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   45|  2.78M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 2.78M]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  227|  2.78M|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  228|  2.78M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  727|  1.05M|    {
  728|  1.05M|        storage_.set_negative(value);
  729|  1.05M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  509|  1.05M|    {
  510|  1.05M|        common_.is_negative_ = value;
  511|  1.05M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12write_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1297|   170k|    {
 1298|   170k|        basic_bigint<Allocator> v(*this);
 1299|   170k|        auto v_view = v.get_storage_view();
 1300|       |
 1301|   170k|        size_type len = (v_view.size() * word_type_bits / 3) + 2;
 1302|   170k|        data.reserve(len);
 1303|       |
 1304|   170k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1304:14): [True: 22.2k, False: 148k]
  ------------------
 1305|  22.2k|        {
 1306|  22.2k|            data.push_back('0');
 1307|  22.2k|        }
 1308|   148k|        else
 1309|   148k|        {
 1310|   148k|            word_type r;
 1311|   148k|            basic_bigint<Allocator> R(get_allocator());
 1312|   148k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1313|       |
 1314|   148k|            do
 1315|   233k|            {
 1316|   233k|                v.divide( LP10, v, R, true );
 1317|   233k|                v_view = v.get_storage_view();
 1318|       |
 1319|   233k|                auto R_view = R.get_storage_view();
 1320|   233k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1320:22): [True: 232k, False: 582]
  ------------------
 1321|  2.07M|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1321:38): [True: 1.98M, False: 84.7k]
  ------------------
 1322|  1.98M|                {
 1323|  1.98M|                    data.push_back(char(r % 10u + '0'));
 1324|  1.98M|                    r /= 10u;
 1325|  1.98M|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1325:26): [True: 148k, False: 1.83M]
  ------------------
 1326|   148k|                        break;
 1327|  1.98M|                }
 1328|   233k|            } 
 1329|   233k|            while ( v_view.size() > 0);
  ------------------
  |  Branch (1329:21): [True: 84.7k, False: 148k]
  ------------------
 1330|       |
 1331|   148k|            if (is_negative())
  ------------------
  |  Branch (1331:17): [True: 5.73k, False: 142k]
  ------------------
 1332|  5.73k|            {
 1333|  5.73k|                data.push_back('-');
 1334|  5.73k|            }
 1335|   148k|            std::reverse(data.begin(),data.end());
 1336|   148k|        }
 1337|   170k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  707|  1.04M|    {
  708|  1.04M|        return storage_.get_allocator();
  709|  1.04M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  638|   148k|        : storage_(alloc)
  639|   148k|    {
  640|   148k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  294|   151k|        : word_allocator_type(alloc)
  295|   151k|    {
  296|   151k|        ::new (&inlined_) inlined_storage();
  297|   151k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  113|   151k|            : is_allocated_(false),
  114|   151k|            is_negative_(false),
  115|   151k|            size_(0),
  116|   151k|            values_{0, 0}
  117|   151k|        {
  118|   151k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  687|   306k|        : storage_(n, alloc)
  688|   306k|    {
  689|   306k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  354|   306k|        : word_allocator_type(alloc)
  355|   306k|    {
  356|   306k|        ::new (&inlined_) inlined_storage(n);
  357|   306k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|   306k|            : is_allocated_(false),
  139|   306k|            is_negative_(false),
  140|   306k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 151k, False: 155k]
  ------------------
  141|   306k|        {
  142|   306k|            values_[0] = n;
  143|   306k|            values_[1] = 0;
  144|   306k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1612|   262k|    {
 1613|   262k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1614|   262k|        auto denom_view = denom.get_storage_view();
 1615|       |
 1616|   262k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1616:13): [True: 0, False: 262k]
  ------------------
 1617|      0|        {
 1618|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1619|      0|        }
 1620|   262k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1621|   262k|        bool rem_neg = is_negative();
 1622|   262k|        basic_bigint<Allocator> num(*this, get_allocator());
 1623|   262k|        num.set_negative(false);
 1624|   262k|        denom.set_negative(false);
 1625|   262k|        if ( num < denom )
  ------------------
  |  Branch (1625:14): [True: 151k, False: 111k]
  ------------------
 1626|   151k|        {
 1627|   151k|            quot = word_type(0);
 1628|   151k|            quot.set_negative(quot_neg);
 1629|   151k|            rem = num;
 1630|   151k|            rem.set_negative(rem_neg);
 1631|   151k|            return;
 1632|   151k|        }
 1633|       |
 1634|   111k|        auto num_view = num.get_storage_view();
 1635|   111k|        auto quot_view = quot.get_storage_view();
 1636|   111k|        auto this_view = get_storage_view();
 1637|       |
 1638|   111k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1638:14): [True: 111k, False: 0]
  |  Branch (1638:40): [True: 2.22k, False: 109k]
  ------------------
 1639|  2.22k|        {
 1640|  2.22k|            quot = word_type( num_view[0]/denom_view[0] );
 1641|  2.22k|            rem = word_type( num_view[0]%denom_view[0] );
 1642|  2.22k|            quot.set_negative(quot_neg);
 1643|  2.22k|            rem.set_negative(rem_neg);
 1644|  2.22k|            return;
 1645|  2.22k|        }
 1646|   109k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1646:13): [True: 109k, False: 0]
  |  Branch (1646:39): [True: 0, False: 109k]
  ------------------
 1647|      0|        {
 1648|       |            // Denominator fits into a half word
 1649|      0|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1650|      0|            quot.resize(this_view.size());
 1651|      0|            quot_view = quot.get_storage_view();
 1652|      0|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1652:48): [True: 0, False: 0]
  ------------------
 1653|      0|            {
 1654|      0|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1655|      0|                q1 = dividend/divisor;
 1656|      0|                r = dividend % divisor;
 1657|      0|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1658|      0|                q2 = dividend/divisor;
 1659|      0|                dHi = dividend % divisor;
 1660|      0|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1661|      0|            }
 1662|      0|            quot.reduce();
 1663|      0|            rem = dHi;
 1664|      0|            quot.set_negative(quot_neg);
 1665|      0|            rem.set_negative(rem_neg);
 1666|      0|            return;
 1667|      0|        }
 1668|   109k|        basic_bigint<Allocator> num0(num, get_allocator());
 1669|   109k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1670|   109k|        int x = 0;
 1671|   109k|        bool second_done = normalize(denom, num, x);
 1672|   109k|        denom_view = denom.get_storage_view();
 1673|   109k|        num_view = num.get_storage_view();
 1674|       |
 1675|   109k|        size_type l = denom_view.size() - 1;
 1676|   109k|        size_type n = num_view.size() - 1;
 1677|   109k|        quot.resize(n - l);
 1678|   109k|        quot_view = quot.get_storage_view();
 1679|   201M|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1679:46): [True: 201M, False: 109k]
  ------------------
 1680|   201M|        {
 1681|   201M|            quot_view[i] = 0;
 1682|   201M|        }
 1683|   109k|        rem = num;
 1684|   109k|        auto rem_view = rem.get_storage_view();
 1685|   109k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1685:14): [True: 2.24k, False: 106k]
  ------------------
 1686|  2.24k|        {
 1687|  2.24k|            rem.resize(rem_view.size() + 1);
 1688|  2.24k|            rem_view = rem.get_storage_view();
 1689|  2.24k|            n++;
 1690|  2.24k|            quot.resize(quot_view.size() + 1);
 1691|  2.24k|            quot_view = quot.get_storage_view();
 1692|  2.24k|        }
 1693|   109k|        word_type d = denom_view[l];
 1694|       |
 1695|   201M|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1695:32): [True: 201M, False: 109k]
  ------------------
 1696|   201M|        {
 1697|   201M|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1698|   201M|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1699|   201M|            quot_view[k - l - 1] = q;
 1700|   201M|        }
 1701|   109k|        quot.reduce();
 1702|   109k|        quot.set_negative(quot_neg);
 1703|   109k|        if (remDesired)
  ------------------
  |  Branch (1703:13): [True: 109k, False: 0]
  ------------------
 1704|   109k|        {
 1705|   109k|            unnormalize(rem, x, second_done);
 1706|   109k|            rem.set_negative(rem_neg);
 1707|   109k|        }
 1708|   109k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  670|   743k|        : storage_(other.storage_, alloc)
  671|   743k|    {
  672|   743k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  313|   743k|        : word_allocator_type(alloc)
  314|   743k|    {
  315|   743k|        if (!other.is_allocated())
  ------------------
  |  Branch (315:13): [True: 527k, False: 215k]
  ------------------
  316|   527k|        {
  317|   527k|            ::new (&inlined_) inlined_storage(other.inlined_);
  318|   527k|        }
  319|   215k|        else
  320|   215k|        {
  321|   215k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  322|   215k|        }
  323|   743k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1809|   109k|    {
 1810|   109k|        auto denom_view = denom.get_storage_view();
 1811|   109k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1811:13): [True: 0, False: 109k]
  ------------------
 1812|      0|        {
 1813|      0|            return false;
 1814|      0|        }
 1815|   109k|        size_type r = denom_view.size() - 1;
 1816|   109k|        word_type y = denom_view[r];
 1817|       |
 1818|   109k|        x = 0;
 1819|   188k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1819:17): [True: 79.2k, False: 109k]
  ------------------
 1820|  79.2k|        {
 1821|  79.2k|            y <<= 1;
 1822|  79.2k|            x++;
 1823|  79.2k|        }
 1824|   109k|        denom <<= x;
 1825|   109k|        num <<= x;
 1826|       |
 1827|   109k|        denom_view = denom.get_storage_view();
 1828|   109k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1828:14): [True: 0, False: 109k]
  |  Branch (1828:23): [True: 0, False: 0]
  ------------------
 1829|      0|        {
 1830|      0|            denom *= max_word;
 1831|      0|            num *= max_word;
 1832|      0|            return true;
 1833|      0|        }
 1834|   109k|        return false;
 1835|   109k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1055|   218k|    {
 1056|   218k|        auto this_view = get_storage_view();
 1057|   218k|        size_type q = k / word_type_bits;
 1058|   218k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1058:14): [True: 0, False: 218k]
  ------------------
 1059|      0|        {
 1060|      0|            resize(this_view.size() + q);
 1061|      0|            this_view = get_storage_view();
 1062|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1062:50): [True: 0, False: 0]
  ------------------
 1063|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1063:34): [True: 0, False: 0]
  ------------------
 1064|      0|            k %= word_type_bits;
 1065|      0|        }
 1066|   218k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1066:14): [True: 52.8k, False: 165k]
  ------------------
 1067|  52.8k|        {
 1068|  52.8k|            size_type k1 = word_type_bits - k;
 1069|  52.8k|            word_type mask = (word_type(1) << k) - word_type(1);
 1070|  52.8k|            resize( this_view.size() + 1 );
 1071|  52.8k|            this_view = get_storage_view();
 1072|  21.5M|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1072:50): [True: 21.4M, False: 52.8k]
  ------------------
 1073|  21.4M|            {
 1074|  21.4M|                this_view[i] <<= k;
 1075|  21.4M|                if ( i > 0 )
  ------------------
  |  Branch (1075:22): [True: 21.4M, False: 52.8k]
  ------------------
 1076|  21.4M|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1077|  21.4M|            }
 1078|  52.8k|        }
 1079|   218k|        reduce();
 1080|   218k|        return *this;
 1081|   218k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1736|   201M|    {
 1737|   201M|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1738|   201M|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1739|   201M|        qHi = A/(dHi + 1);
 1740|       |        // This initial guess of qHi may be too small.
 1741|   201M|        middle = qHi * dLo;
 1742|   201M|        left = qHi * dHi;
 1743|   201M|        x = B - (middle << word_type_half_bits);
 1744|   201M|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1745|   201M|        B = x;
 1746|   201M|        dLo1 = dLo << word_type_half_bits;
 1747|       |        // Increase qHi if necessary:
 1748|   295M|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1748:17): [True: 93.7M, False: 201M]
  |  Branch (1748:29): [True: 203k, False: 201M]
  |  Branch (1748:41): [True: 203k, False: 18]
  ------------------
 1749|  93.9M|        {
 1750|  93.9M|            x = B - dLo1;
 1751|  93.9M|            A -= dHi + (x > B);
 1752|  93.9M|            B = x;
 1753|  93.9M|            qHi++;
 1754|  93.9M|        }
 1755|   201M|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1756|       |        // This initial guess of qLo may be too small.
 1757|   201M|        right = qLo * dLo;
 1758|   201M|        middle = qLo * dHi;
 1759|   201M|        x = B - right;
 1760|   201M|        A -= (x > B);
 1761|   201M|        B = x;
 1762|   201M|        x = B - (middle << word_type_half_bits);
 1763|   201M|            A -= (middle >> word_type_half_bits) + (x > B);
 1764|   201M|        B = x;
 1765|       |        // Increase qLo if necessary:
 1766|   295M|        while ( A || B >= d )
  ------------------
  |  Branch (1766:17): [True: 1.22M, False: 294M]
  |  Branch (1766:22): [True: 92.7M, False: 201M]
  ------------------
 1767|  93.9M|        {
 1768|  93.9M|            x = B - d;
 1769|  93.9M|            A -= (x > B);
 1770|  93.9M|            B = x;
 1771|  93.9M|            qLo++;
 1772|  93.9M|        }
 1773|   201M|        return (qHi << word_type_half_bits) + qLo;
 1774|   201M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1778|   201M|    {
 1779|   201M|        word_type hi, lo, d, carry = 0;
 1780|   201M|        size_type i;
 1781|   402M|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1781:22): [True: 201M, False: 201M]
  ------------------
 1782|   201M|        {
 1783|   201M|            DDproduct( b[i], q, hi, lo );
 1784|   201M|            d = a[i];
 1785|   201M|            a[i] -= lo;
 1786|   201M|            if ( a[i] > d )
  ------------------
  |  Branch (1786:18): [True: 48.8M, False: 152M]
  ------------------
 1787|  48.8M|                carry++;
 1788|   201M|            d = a[i + 1];
 1789|   201M|            a[i + 1] -= hi + carry;
 1790|   201M|            carry = a[i + 1] > d;
 1791|   201M|        }
 1792|   201M|        if ( carry ) // q was too large
  ------------------
  |  Branch (1792:14): [True: 0, False: 201M]
  ------------------
 1793|      0|        {
 1794|      0|            q--;
 1795|      0|            carry = 0;
 1796|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1796:26): [True: 0, False: 0]
  ------------------
 1797|      0|            {
 1798|      0|                d = a[i] + carry;
 1799|      0|                carry = d < carry;
 1800|      0|                a[i] = d + b[i];
 1801|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1801:22): [True: 0, False: 0]
  ------------------
 1802|      0|                    carry = 1;
 1803|      0|            }
 1804|      0|            a[n] = 0;
 1805|      0|        }
 1806|   201M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   79|   404M|        {
   80|   404M|            return data_;
   81|   404M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1838|   109k|    {
 1839|   109k|        if (secondDone)
  ------------------
  |  Branch (1839:13): [True: 0, False: 109k]
  ------------------
 1840|      0|        {
 1841|      0|            rem /= max_word;
 1842|      0|        }
 1843|   109k|        if ( x > 0 )
  ------------------
  |  Branch (1843:14): [True: 26.4k, False: 82.7k]
  ------------------
 1844|  26.4k|        {
 1845|  26.4k|            rem >>= x;
 1846|  26.4k|        }
 1847|  82.7k|        else
 1848|  82.7k|        {
 1849|  82.7k|            rem.reduce();
 1850|  82.7k|        }
 1851|   109k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  635|  2.44k|    basic_bigint() = default;
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErSEm:
 1084|  26.4k|    {
 1085|  26.4k|        auto this_view = get_storage_view();
 1086|  26.4k|        size_type q = k / word_type_bits;
 1087|  26.4k|        if ( q >= this_view.size())
  ------------------
  |  Branch (1087:14): [True: 0, False: 26.4k]
  ------------------
 1088|      0|        {
 1089|      0|            resize( 0 );
 1090|      0|            return *this;
 1091|      0|        }
 1092|  26.4k|        if (q > 0)
  ------------------
  |  Branch (1092:13): [True: 0, False: 26.4k]
  ------------------
 1093|      0|        {
 1094|      0|            memmove( this_view.data(), this_view.data()+q, size_type((this_view.size() - q)*sizeof(word_type)) );
 1095|      0|            resize( size_type(this_view.size() - q) );
 1096|      0|            k %= word_type_bits;
 1097|      0|            if ( k == 0 )
  ------------------
  |  Branch (1097:18): [True: 0, False: 0]
  ------------------
 1098|      0|            {
 1099|      0|                reduce();
 1100|      0|                return *this;
 1101|      0|            }
 1102|      0|        }
 1103|       |
 1104|  26.4k|        this_view = get_storage_view();
 1105|  26.4k|        size_type n = size_type(this_view.size() - 1);
 1106|  26.4k|        ssize_type k1 = word_type_bits - k;
 1107|  26.4k|        word_type mask = (word_type(1) << k) - 1;
 1108|  21.4M|        for (size_type i = 0; i <= n; i++)
  ------------------
  |  Branch (1108:31): [True: 21.4M, False: 26.4k]
  ------------------
 1109|  21.4M|        {
 1110|  21.4M|            this_view[i] >>= k;
 1111|  21.4M|            if ( i < n )
  ------------------
  |  Branch (1111:18): [True: 21.3M, False: 26.4k]
  ------------------
 1112|  21.3M|                this_view[i] |= ((this_view[i+1] & mask) << k1);
 1113|  21.4M|        }
 1114|  26.4k|        reduce();
 1115|  26.4k|        return *this;
 1116|  26.4k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  702|  5.80M|    {
  703|  5.80M|        storage_.destroy();
  704|  5.80M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  481|  5.80M|    {
  482|  5.80M|        if (is_allocated())
  ------------------
  |  Branch (482:13): [True: 2.81M, False: 2.98M]
  ------------------
  483|  2.81M|        {
  484|  2.81M|            allocated_.destroy(get_allocator());
  485|  2.81M|            allocated_.~allocated_storage();
  486|  2.81M|        }
  487|  2.98M|        else
  488|  2.98M|        {
  489|  2.98M|            inlined_.~inlined_storage();
  490|  2.98M|        }
  491|  5.80M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  245|  2.81M|        {
  246|  2.81M|            if (data_ != nullptr)
  ------------------
  |  Branch (246:17): [True: 2.81M, False: 0]
  ------------------
  247|  2.81M|            {
  248|  2.81M|                real_allocator_type alloc(a);
  249|  2.81M|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  250|  2.81M|            }
  251|  2.81M|        }
_ZN8jsonconsmiENS_12basic_bigintINSt3__19allocatorImEEEERKS4_:
 1464|  7.00k|    {
 1465|  7.00k|        return x -= y;
 1466|  7.00k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  687|   191k|        : storage_(n, alloc)
  688|   191k|    {
  689|   191k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  354|   191k|        : word_allocator_type(alloc)
  355|   191k|    {
  356|   191k|        ::new (&inlined_) inlined_storage(n);
  357|   191k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|   191k|            : is_allocated_(false),
  126|   191k|            is_negative_(n < 0),
  127|   191k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 184k, False: 7.00k]
  ------------------
  128|   191k|        {
  129|   191k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 7.00k, False: 184k]
  ------------------
  130|   191k|            values_[1] = 0;
  131|   191k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  853|  1.47M|    {
  854|  1.47M|        storage_ = y.storage_;
  855|  1.47M|        return *this;
  856|  1.47M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  360|  1.47M|    {
  361|  1.47M|        if (this != &other)
  ------------------
  |  Branch (361:13): [True: 1.47M, False: 0]
  ------------------
  362|  1.47M|        {
  363|  1.47M|            auto other_view = other.get_storage_view();
  364|  1.47M|            resize(other_view.size());
  365|  1.47M|            auto this_view = get_storage_view();
  366|  1.47M|            if (other_view.size() > 0)
  ------------------
  |  Branch (366:17): [True: 1.29M, False: 177k]
  ------------------
  367|  1.29M|            {
  368|  1.29M|                common_.is_negative_ = other.common_.is_negative_;
  369|  1.29M|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  370|  1.29M|            }
  371|  1.47M|        }
  372|  1.47M|        return *this;
  373|  1.47M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   79|  1.29M|        {
   80|  1.29M|            return data_;
   81|  1.29M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16write_string_hexIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1348|  13.9k|    {
 1349|       |
 1350|       |
 1351|  13.9k|        basic_bigint<Allocator> v(*this);
 1352|  13.9k|        auto v_view = v.get_storage_view();
 1353|       |
 1354|  13.9k|        size_type len = (v_view.size() * basic_bigint<Allocator>::word_type_bits / 3) + 2;
 1355|  13.9k|        data.reserve(len);
 1356|       |
 1357|  13.9k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1357:14): [True: 11.5k, False: 2.44k]
  ------------------
 1358|  11.5k|        {
 1359|  11.5k|            data.push_back('0');
 1360|  11.5k|        }
 1361|  2.44k|        else
 1362|  2.44k|        {
 1363|  2.44k|            word_type r;
 1364|  2.44k|            basic_bigint<Allocator> R;
 1365|  2.44k|            basic_bigint<Allocator> LP10 = max_unsigned_power_16; // LP10 = max_unsigned_power_16 = ::pow(16, imax_unsigned_power_16)
 1366|  2.44k|            do
 1367|  29.1k|            {
 1368|  29.1k|                v.divide( LP10, v, R, true );
 1369|  29.1k|                v_view = v.get_storage_view();
 1370|  29.1k|                auto R_view = R.get_storage_view();
 1371|  29.1k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1371:22): [True: 26.3k, False: 2.80k]
  ------------------
 1372|   433k|                for ( size_type j=0; j < imax_unsigned_power_16; j++ )
  ------------------
  |  Branch (1372:38): [True: 407k, False: 26.6k]
  ------------------
 1373|   407k|                {
 1374|   407k|                    uint8_t c = r % 16u;
 1375|   407k|                    data.push_back((c < 10u) ? ('0' + c) : ('A' - 10u + c));
  ------------------
  |  Branch (1375:36): [True: 305k, False: 101k]
  ------------------
 1376|   407k|                    r /= 16u;
 1377|   407k|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1377:26): [True: 2.44k, False: 404k]
  ------------------
 1378|  2.44k|                        break;
 1379|   407k|                }
 1380|  29.1k|            } 
 1381|  29.1k|            while (v_view.size() > 0);
  ------------------
  |  Branch (1381:20): [True: 26.6k, False: 2.44k]
  ------------------
 1382|       |
 1383|  2.44k|            if (is_negative())
  ------------------
  |  Branch (1383:17): [True: 1.27k, False: 1.17k]
  ------------------
 1384|  1.27k|            {
 1385|  1.27k|                data.push_back('-');
 1386|  1.27k|            }
 1387|  2.44k|            std::reverse(data.begin(),data.end());
 1388|  2.44k|        }
 1389|  13.9k|    }

_ZN8jsoncons6binary13big_to_nativeItNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  24.5k|    {
  183|  24.5k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 24.5k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  24.5k|        T val;
  188|  24.5k|        std::memcpy(&val,first,sizeof(T));
  189|  24.5k|        return byte_swap(val);
  190|  24.5k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  2.77M|    {
   29|  2.77M|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  2.77M|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  2.77M|#      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|  2.77M|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  5.92k|    {
  183|  5.92k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 5.92k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  5.92k|        T val;
  188|  5.92k|        std::memcpy(&val,first,sizeof(T));
  189|  5.92k|        return byte_swap(val);
  190|  5.92k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  5.07M|    {
   40|  5.07M|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  5.07M|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  5.07M|#  define JSONCONS_BYTE_SWAP_32 __builtin_bswap32
  ------------------
   42|       |    #else
   43|       |        uint32_t tmp = ((static_cast<uint32_t>(val) << 8) & 0xff00ff00) | ((static_cast<uint32_t>(val) >> 8) & 0xff00ff);
   44|       |        return (tmp << 16) | (tmp >> 16);
   45|       |    #endif
   46|  5.07M|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  5.41k|    {
  183|  5.41k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 5.41k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  5.41k|        T val;
  188|  5.41k|        std::memcpy(&val,first,sizeof(T));
  189|  5.41k|        return byte_swap(val);
  190|  5.41k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   975k|    {
   52|   975k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   975k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|   975k|#  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|   975k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  1.44M|    {
   29|  1.44M|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  1.44M|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  1.44M|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|  1.44M|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  2.47M|    {
   40|  2.47M|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  2.47M|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  2.47M|#  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|  2.47M|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   637k|    {
   52|   637k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   637k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|   637k|#  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|   637k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|   693k|    {
   65|   693k|        uint32_t x;
   66|   693k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|   693k|        uint32_t y = byte_swap(x);
   68|   693k|        T val2;
   69|   693k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|   693k|        return val2;
   71|   693k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|   299k|    {
   77|   299k|        uint64_t x;
   78|   299k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|   299k|        uint64_t y = byte_swap(x);
   80|   299k|        T val2;
   81|   299k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|   299k|        return val2;
   83|   299k|    }
_ZN8jsoncons6binary13big_to_nativeIfNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  6.65k|    {
  183|  6.65k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 6.65k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  6.65k|        T val;
  188|  6.65k|        std::memcpy(&val,first,sizeof(T));
  189|  6.65k|        return byte_swap(val);
  190|  6.65k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  2.51k|    {
  183|  2.51k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 2.51k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  2.51k|        T val;
  188|  2.51k|        std::memcpy(&val,first,sizeof(T));
  189|  2.51k|        return byte_swap(val);
  190|  2.51k|    }

_ZN8jsoncons15bytes_to_base64IPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  188|    890|    {
  189|    890|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  190|    890|                                                   "abcdefghijklmnopqrstuvwxyz"
  191|    890|                                                   "0123456789+/"
  192|    890|                                                   "=";
  193|    890|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  194|    890|    }
_ZN8jsoncons6detail23bytes_to_base64_genericIPKhNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS4_9enable_ifIXsr3std7is_sameINS4_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESD_SD_PKcRT0_:
   44|  9.41M|    {
   45|  9.41M|        std::size_t count = 0;
   46|  9.41M|        unsigned char a3[3];
   47|  9.41M|        unsigned char a4[4];
   48|  9.41M|        unsigned char fill = alphabet[64];
   49|  9.41M|        int i = 0;
   50|  9.41M|        int j = 0;
   51|       |
   52|  35.4M|        while (first != last)
  ------------------
  |  Branch (52:16): [True: 26.0M, False: 9.41M]
  ------------------
   53|  26.0M|        {
   54|  26.0M|            a3[i++] = *first++;
   55|  26.0M|            if (i == 3)
  ------------------
  |  Branch (55:17): [True: 7.07M, False: 18.9M]
  ------------------
   56|  7.07M|            {
   57|  7.07M|                a4[0] = (a3[0] & 0xfc) >> 2;
   58|  7.07M|                a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   59|  7.07M|                a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   60|  7.07M|                a4[3] = a3[2] & 0x3f;
   61|       |
   62|  35.3M|                for (i = 0; i < 4; i++) 
  ------------------
  |  Branch (62:29): [True: 28.2M, False: 7.07M]
  ------------------
   63|  28.2M|                {
   64|  28.2M|                    result.push_back(alphabet[a4[i]]);
   65|  28.2M|                    ++count;
   66|  28.2M|                }
   67|  7.07M|                i = 0;
   68|  7.07M|            }
   69|  26.0M|        }
   70|       |
   71|  9.41M|        if (i > 0)
  ------------------
  |  Branch (71:13): [True: 2.47M, False: 6.93M]
  ------------------
   72|  2.47M|        {
   73|  5.07M|            for (j = i; j < 3; ++j) 
  ------------------
  |  Branch (73:25): [True: 2.59M, False: 2.47M]
  ------------------
   74|  2.59M|            {
   75|  2.59M|                a3[j] = 0;
   76|  2.59M|            }
   77|       |
   78|  2.47M|            a4[0] = (a3[0] & 0xfc) >> 2;
   79|  2.47M|            a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   80|  2.47M|            a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   81|       |
   82|  9.80M|            for (j = 0; j < i + 1; ++j) 
  ------------------
  |  Branch (82:25): [True: 7.32M, False: 2.47M]
  ------------------
   83|  7.32M|            {
   84|  7.32M|                result.push_back(alphabet[a4[j]]);
   85|  7.32M|                ++count;
   86|  7.32M|            }
   87|       |
   88|  2.47M|            if (fill != 0)
  ------------------
  |  Branch (88:17): [True: 300, False: 2.47M]
  ------------------
   89|    300|            {
   90|    891|                while (i++ < 3) 
  ------------------
  |  Branch (90:24): [True: 591, False: 300]
  ------------------
   91|    591|                {
   92|    591|                    result.push_back(fill);
   93|    591|                    ++count;
   94|    591|                }
   95|    300|            }
   96|  2.47M|        }
   97|       |
   98|  9.41M|        return count;
   99|  9.41M|    }
_ZNK8jsoncons16byte_string_view5beginEv:
  409|  9.44M|        {
  410|  9.44M|            return data_;
  411|  9.44M|        }
_ZNK8jsoncons16byte_string_view3endEv:
  413|  9.44M|        {
  414|  9.44M|            return data_ + size_;
  415|  9.44M|        }
_ZN8jsoncons15bytes_to_base16IPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  162|    817|    {
  163|    817|        static constexpr char characters[] = "0123456789ABCDEF";
  164|       |
  165|  1.44M|        for (auto it = first; it != last; ++it)
  ------------------
  |  Branch (165:31): [True: 1.44M, False: 817]
  ------------------
  166|  1.44M|        {
  167|  1.44M|            uint8_t c = *it;
  168|  1.44M|            result.push_back(characters[c >> 4]);
  169|  1.44M|            result.push_back(characters[c & 0xf]);
  170|  1.44M|        }
  171|    817|        return (last-first)*2;
  172|    817|    }
_ZN8jsoncons18bytes_to_base64urlIPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  177|  9.40M|    {
  178|  9.40M|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  179|  9.40M|                                                      "abcdefghijklmnopqrstuvwxyz"
  180|  9.40M|                                                      "0123456789-_"
  181|  9.40M|                                                      "\0";
  182|  9.40M|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  183|  9.40M|    }
_ZNK8jsoncons16byte_string_view4dataEv:
  399|   910k|        {
  400|   910k|            return data_;
  401|   910k|        }
_ZNK8jsoncons16byte_string_view4sizeEv:
  403|   940k|        {
  404|   940k|            return size_;
  405|   940k|        }
_ZN8jsoncons16byte_string_viewC2EPKhm:
  362|  11.2M|            : data_(data), size_(length)
  363|  11.2M|        {
  364|  11.2M|        }
_ZN8jsoncons16byte_string_viewC2INSt3__16vectorIhNS2_9allocatorIhEEEEEERKT_NS2_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS7_EE5valueEiE4typeE:
  369|  30.0k|            : data_(reinterpret_cast<const uint8_t*>(cont.data())), size_(cont.size())
  370|  30.0k|        {
  371|  30.0k|        }

_ZNK8jsoncons8identityclIRKhEEOT_S5_:
   19|  4.77M|    {
   20|  4.77M|        return std::forward<T>(val);
   21|  4.77M|    }
_ZNK8jsoncons8identityclIRtEEOT_S4_:
   19|   844k|    {
   20|   844k|        return std::forward<T>(val);
   21|   844k|    }
_ZNK8jsoncons8identityclIRjEEOT_S4_:
   19|  4.38M|    {
   20|  4.38M|        return std::forward<T>(val);
   21|  4.38M|    }
_ZNK8jsoncons8identityclIRmEEOT_S4_:
   19|   671k|    {
   20|   671k|        return std::forward<T>(val);
   21|   671k|    }
_ZNK8jsoncons8identityclIRaEEOT_S4_:
   19|   614k|    {
   20|   614k|        return std::forward<T>(val);
   21|   614k|    }
_ZNK8jsoncons8identityclIRsEEOT_S4_:
   19|  2.11M|    {
   20|  2.11M|        return std::forward<T>(val);
   21|  2.11M|    }
_ZNK8jsoncons8identityclIRiEEOT_S4_:
   19|  2.47M|    {
   20|  2.47M|        return std::forward<T>(val);
   21|  2.47M|    }
_ZNK8jsoncons8identityclIRlEEOT_S4_:
   19|   638k|    {
   20|   638k|        return std::forward<T>(val);
   21|   638k|    }
_ZNK8jsoncons11decode_halfclEt:
   36|  8.54M|    {
   37|  8.54M|        return binary::decode_half(val);
   38|  8.54M|    }
_ZNK8jsoncons8identityclIRfEEOT_S4_:
   19|   773k|    {
   20|   773k|        return std::forward<T>(val);
   21|   773k|    }
_ZNK8jsoncons8identityclIRdEEOT_S4_:
   19|   348k|    {
   20|   348k|        return std::forward<T>(val);
   21|   348k|    }

_ZN8jsoncons10ext_traits16to_plain_pointerImEEPT_S3_:
  241|  2.78M|    {       
  242|  2.78M|        return (ptr);
  243|  2.78M|    }  

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

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14convert_resultIS4_EEE4typeEPKS4_m:
 1136|   875k|    {
 1137|   875k|        conv_errc  result = conv_errc();
 1138|   875k|        const CharT* last = data + length;
 1139|  4.44M|        while (data != last) 
  ------------------
  |  Branch (1139:16): [True: 3.56M, False: 874k]
  ------------------
 1140|  3.56M|        {
 1141|  3.56M|            std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[static_cast<uint8_t>(*data)]) + 1;
 1142|  3.56M|            if (len > (std::size_t)(last - data))
  ------------------
  |  Branch (1142:17): [True: 16, False: 3.56M]
  ------------------
 1143|     16|            {
 1144|     16|                return convert_result<CharT>{data, conv_errc::source_exhausted};
 1145|     16|            }
 1146|  3.56M|            if ((result=is_legal_utf8(data, len)) != conv_errc())
  ------------------
  |  Branch (1146:17): [True: 111, False: 3.56M]
  ------------------
 1147|    111|            {
 1148|    111|                return convert_result<CharT>{data,result} ;
 1149|    111|            }
 1150|  3.56M|            data += len;
 1151|  3.56M|        }
 1152|   874k|        return convert_result<CharT>{data,result} ;
 1153|   875k|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8IcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_9conv_errcEE4typeEPKS4_m:
  305|  3.56M|    {
  306|  3.56M|        uint8_t a;
  307|  3.56M|        const CharT* srcptr = first+length;
  308|  3.56M|        switch (length) {
  309|      9|        default:
  ------------------
  |  Branch (309:9): [True: 9, False: 3.56M]
  ------------------
  310|      9|            return conv_errc::over_long_utf8_sequence;
  311|  1.02k|        case 4:
  ------------------
  |  Branch (311:9): [True: 1.02k, False: 3.56M]
  ------------------
  312|  1.02k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (312:17): [True: 8, False: 1.01k]
  ------------------
  313|      8|                return conv_errc::expected_continuation_byte;
  314|  1.01k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.01k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  315|  2.37k|        case 3:
  ------------------
  |  Branch (315:9): [True: 1.35k, False: 3.56M]
  ------------------
  316|  2.37k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (316:17): [True: 7, False: 2.36k]
  ------------------
  317|      7|                return conv_errc::expected_continuation_byte;
  318|  2.36k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  2.36k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  319|  3.19k|        case 2:
  ------------------
  |  Branch (319:9): [True: 831, False: 3.56M]
  ------------------
  320|  3.19k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (320:17): [True: 31, False: 3.16k]
  ------------------
  321|     31|                return conv_errc::expected_continuation_byte;
  322|       |
  323|  3.16k|            switch (static_cast<uint8_t>(*first)) 
  324|  3.16k|            {
  325|       |                // no fall-through in this inner switch
  326|    212|                case 0xE0: if (a < 0xA0) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (326:17): [True: 212, False: 2.95k]
  |  Branch (326:32): [True: 8, False: 204]
  ------------------
  327|  1.11k|                case 0xED: if (a > 0x9F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (327:17): [True: 1.11k, False: 2.04k]
  |  Branch (327:32): [True: 3, False: 1.11k]
  ------------------
  328|  1.11k|                case 0xF0: if (a < 0x90) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 729, False: 2.43k]
  |  Branch (328:32): [True: 4, False: 725]
  ------------------
  329|    725|                case 0xF4: if (a > 0x8F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 248, False: 2.91k]
  |  Branch (329:32): [True: 1, False: 247]
  ------------------
  330|    859|                default:   if (a < 0x80) return conv_errc::source_illegal;
  ------------------
  |  Branch (330:17): [True: 859, False: 2.30k]
  |  Branch (330:32): [True: 0, False: 859]
  ------------------
  331|  3.16k|            }
  332|       |
  333|  3.15k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  3.15k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  334|  3.56M|        case 1:
  ------------------
  |  Branch (334:9): [True: 3.56M, False: 3.22k]
  ------------------
  335|  3.56M|            if (static_cast<uint8_t>(*first) >= 0x80 && static_cast<uint8_t>(*first) < 0xC2)
  ------------------
  |  Branch (335:17): [True: 3.18k, False: 3.56M]
  |  Branch (335:57): [True: 39, False: 3.14k]
  ------------------
  336|     39|                return conv_errc::source_illegal;
  337|  3.56M|            break;
  338|  3.56M|        }
  339|  3.56M|        if (static_cast<uint8_t>(*first) > 0xF4) 
  ------------------
  |  Branch (339:13): [True: 1, False: 3.56M]
  ------------------
  340|      1|            return conv_errc::source_illegal;
  341|       |
  342|  3.56M|        return conv_errc();
  343|  3.56M|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  20.7M|{
   43|  20.7M|    using char_type = typename Result::value_type;
   44|       |
   45|  20.7M|    char_type buf[255];
   46|  20.7M|    char_type *p = buf;
   47|  20.7M|    const char_type* last = buf+255;
   48|       |
   49|  20.7M|    bool is_negative = value < 0;
   50|       |
   51|  20.7M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 20.7M]
  ------------------
   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|  20.7M|    else
   60|  20.7M|    {
   61|       |
   62|  20.7M|        do
   63|  66.2M|        {
   64|  66.2M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  66.2M|        }
   66|  66.2M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 45.5M, False: 20.7M]
  |  Branch (66:33): [True: 45.5M, False: 0]
  ------------------
   67|  20.7M|    }
   68|  20.7M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  20.7M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 20.7M]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  20.7M|    std::size_t count = (p - buf);
   71|  20.7M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 20.7M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  86.9M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 66.2M, False: 20.7M]
  ------------------
   77|  66.2M|    {
   78|  66.2M|        result.push_back(*p);
   79|  66.2M|    }
   80|       |
   81|  20.7M|    return count;
   82|  20.7M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  7.48M|{
   43|  7.48M|    using char_type = typename Result::value_type;
   44|       |
   45|  7.48M|    char_type buf[255];
   46|  7.48M|    char_type *p = buf;
   47|  7.48M|    const char_type* last = buf+255;
   48|       |
   49|  7.48M|    bool is_negative = value < 0;
   50|       |
   51|  7.48M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 3.25M, False: 4.23M]
  ------------------
   52|  3.25M|    {
   53|  3.25M|        do
   54|  15.1M|        {
   55|  15.1M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  15.1M|        }
   57|  15.1M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 11.8M, False: 3.25M]
  |  Branch (57:33): [True: 11.8M, False: 0]
  ------------------
   58|  3.25M|    }
   59|  4.23M|    else
   60|  4.23M|    {
   61|       |
   62|  4.23M|        do
   63|  23.8M|        {
   64|  23.8M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  23.8M|        }
   66|  23.8M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 19.6M, False: 4.23M]
  |  Branch (66:33): [True: 19.6M, False: 0]
  ------------------
   67|  4.23M|    }
   68|  7.48M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  7.48M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 7.48M]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  7.48M|    std::size_t count = (p - buf);
   71|  7.48M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 3.25M, False: 4.23M]
  ------------------
   72|  3.25M|    {
   73|  3.25M|        result.push_back('-');
   74|  3.25M|        ++count;
   75|  3.25M|    }
   76|  46.5M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 39.0M, False: 7.48M]
  ------------------
   77|  39.0M|    {
   78|  39.0M|        result.push_back(*p);
   79|  39.0M|    }
   80|       |
   81|  7.48M|    return count;
   82|  7.48M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  8.45M|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  8.45M|    {
  489|  8.45M|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  8.45M|        struct lconv *lc = localeconv();
  491|  8.45M|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 8.45M, False: 0]
  |  Branch (491:30): [True: 8.45M, False: 0]
  ------------------
  492|  8.45M|        {
  493|  8.45M|            decimal_point_ = lc->decimal_point[0];
  494|  8.45M|        }
  495|  8.45M|#endif
  496|  8.45M|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  8.45M|    {
  504|  8.45M|        std::size_t count = 0;
  505|       |
  506|  8.45M|        char number_buffer[200];
  507|  8.45M|        int length = 0;
  508|       |
  509|  8.45M|        switch (float_format_)
  510|  8.45M|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 8.45M]
  ------------------
  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: 8.45M]
  ------------------
  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|  8.45M|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 8.45M, False: 0]
  ------------------
  552|  8.45M|            {
  553|  8.45M|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 8.45M]
  ------------------
  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|  8.45M|                else
  563|  8.45M|                {
  564|  8.45M|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 8.45M]
  ------------------
  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|  8.45M|                }             
  569|  8.45M|                break;
  570|  8.45M|            }
  571|  8.45M|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 8.45M]
  ------------------
  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|  8.45M|        }
  575|  8.45M|        return count;
  576|  8.45M|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|   109k|{
  244|   109k|    const char *sbeg = buffer;
  245|   109k|    const char *send = sbeg + length;
  246|       |
  247|   109k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 109k, False: 0]
  ------------------
  248|   109k|    {
  249|   109k|        bool needs_dot = true;
  250|  2.50M|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 2.39M, False: 109k]
  ------------------
  251|  2.39M|        {
  252|  2.39M|            switch (*q)
  253|  2.39M|            {
  254|  84.5k|            case '-':
  ------------------
  |  Branch (254:13): [True: 84.5k, False: 2.30M]
  ------------------
  255|   596k|            case '0':
  ------------------
  |  Branch (255:13): [True: 512k, False: 1.87M]
  ------------------
  256|   851k|            case '1':
  ------------------
  |  Branch (256:13): [True: 255k, False: 2.13M]
  ------------------
  257|  1.05M|            case '2':
  ------------------
  |  Branch (257:13): [True: 200k, False: 2.19M]
  ------------------
  258|  1.24M|            case '3':
  ------------------
  |  Branch (258:13): [True: 191k, False: 2.19M]
  ------------------
  259|  1.39M|            case '4':
  ------------------
  |  Branch (259:13): [True: 150k, False: 2.24M]
  ------------------
  260|  1.53M|            case '5':
  ------------------
  |  Branch (260:13): [True: 137k, False: 2.25M]
  ------------------
  261|  1.76M|            case '6':
  ------------------
  |  Branch (261:13): [True: 236k, False: 2.15M]
  ------------------
  262|  1.91M|            case '7':
  ------------------
  |  Branch (262:13): [True: 143k, False: 2.24M]
  ------------------
  263|  2.17M|            case '8':
  ------------------
  |  Branch (263:13): [True: 259k, False: 2.13M]
  ------------------
  264|  2.26M|            case '9':
  ------------------
  |  Branch (264:13): [True: 95.0k, False: 2.29M]
  ------------------
  265|  2.26M|            case '+':
  ------------------
  |  Branch (265:13): [True: 1.52k, False: 2.38M]
  ------------------
  266|  2.26M|                result.push_back(*q);
  267|  2.26M|                break;
  268|  13.8k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 13.8k, False: 2.37M]
  ------------------
  269|  13.8k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 2.39M]
  ------------------
  270|  13.8k|                result.push_back('e');
  271|  13.8k|                needs_dot = false;
  272|  13.8k|                break;
  273|   109k|            default:
  ------------------
  |  Branch (273:13): [True: 109k, False: 2.28M]
  ------------------
  274|   109k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 108k, False: 1.17k]
  ------------------
  275|   108k|                {
  276|   108k|                    needs_dot = false;
  277|   108k|                    result.push_back('.');
  278|   108k|                }
  279|   109k|                break;
  280|  2.39M|            }
  281|  2.39M|        }
  282|   109k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 1.94k, False: 108k]
  ------------------
  283|  1.94k|        {
  284|  1.94k|            result.push_back('.');
  285|  1.94k|            result.push_back('0');
  286|  1.94k|        }
  287|   109k|    }
  288|   109k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmiiiRT_:
  171|  7.91M|{
  172|  7.91M|    int nb_digits = (int)length;
  173|  7.91M|    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|  7.91M|    int kk = nb_digits + k;
  179|       |
  180|  7.91M|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 2.16M, False: 5.74M]
  |  Branch (180:28): [True: 1.17M, False: 990k]
  ------------------
  181|  1.17M|    {
  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|  5.89M|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 4.71M, False: 1.17M]
  ------------------
  186|  4.71M|        {
  187|  4.71M|            result.push_back(buffer[i]);
  188|  4.71M|        }
  189|  1.35M|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 177k, False: 1.17M]
  ------------------
  190|   177k|        {
  191|   177k|            result.push_back('0');
  192|   177k|        }
  193|  1.17M|        result.push_back('.');
  194|  1.17M|        result.push_back('0');
  195|  1.17M|    } 
  196|  6.73M|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 3.57M, False: 3.16M]
  |  Branch (196:24): [True: 2.58M, False: 990k]
  ------------------
  197|  2.58M|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  8.20M|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 5.61M, False: 2.58M]
  ------------------
  200|  5.61M|        {
  201|  5.61M|            result.push_back(buffer[i]);
  202|  5.61M|        }
  203|  2.58M|        result.push_back('.');
  204|  11.7M|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 9.16M, False: 2.58M]
  ------------------
  205|  9.16M|        {
  206|  9.16M|            result.push_back(buffer[i]);
  207|  9.16M|        }
  208|  2.58M|    } 
  209|  4.15M|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 2.81M, False: 1.33M]
  |  Branch (209:30): [True: 1.82M, False: 990k]
  ------------------
  210|  1.82M|    {
  211|  1.82M|        offset = 2 - kk;
  212|       |
  213|  1.82M|        result.push_back('0');
  214|  1.82M|        result.push_back('.');
  215|  4.62M|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 2.80M, False: 1.82M]
  ------------------
  216|  2.80M|            result.push_back('0');
  217|  26.4M|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 24.6M, False: 1.82M]
  ------------------
  218|  24.6M|        {
  219|  24.6M|            result.push_back(buffer[i]);
  220|  24.6M|        }
  221|  1.82M|    } 
  222|  2.32M|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 553, False: 2.32M]
  ------------------
  223|    553|    {
  224|    553|        result.push_back(buffer[0]);
  225|    553|        result.push_back('e');
  226|    553|        fill_exponent(kk - 1, result);
  227|    553|    } 
  228|  2.32M|    else
  229|  2.32M|    {
  230|  2.32M|        result.push_back(buffer[0]);
  231|  2.32M|        result.push_back('.');
  232|  37.6M|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 35.2M, False: 2.32M]
  ------------------
  233|  35.2M|        {
  234|  35.2M|            result.push_back(buffer[i]);
  235|  35.2M|        }
  236|  2.32M|        result.push_back('e');
  237|  2.32M|        fill_exponent(kk - 1, result);
  238|  2.32M|    }
  239|  7.91M|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  2.32M|{
  137|  2.32M|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 1.33M, False: 990k]
  ------------------
  138|  1.33M|    {
  139|  1.33M|        result.push_back('-');
  140|  1.33M|        K = -K;
  141|  1.33M|    }
  142|   990k|    else
  143|   990k|    {
  144|   990k|        result.push_back('+'); // compatibility with sprintf
  145|   990k|    }
  146|       |
  147|  2.32M|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 1.06M, False: 1.25M]
  ------------------
  148|  1.06M|    {
  149|  1.06M|        result.push_back('0'); // compatibility with sprintf
  150|  1.06M|        result.push_back((char)('0' + K));
  151|  1.06M|    }
  152|  1.25M|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 317k, False: 937k]
  ------------------
  153|   317k|    {
  154|   317k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|   317k|        result.push_back((char)('0' + K));
  156|   317k|    }
  157|   937k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 937k, False: 0]
  ------------------
  158|   937k|    {
  159|   937k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|   937k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|   937k|        result.push_back((char)('0' + K));
  162|   937k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  2.32M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  8.45M|{
  476|  8.45M|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  8.45M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  8.45M|{
  367|  8.45M|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 432k, False: 8.02M]
  ------------------
  368|   432k|    {
  369|   432k|        result.push_back('0');
  370|   432k|        result.push_back('.');
  371|   432k|        result.push_back('0');
  372|   432k|        return true;
  373|   432k|    }
  374|       |
  375|  8.02M|    int length = 0;
  376|  8.02M|    int k;
  377|       |
  378|  8.02M|    char buffer[100];
  379|       |
  380|  8.02M|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 3.76M, False: 4.26M]
  ------------------
  381|  8.02M|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 7.91M, False: 109k]
  ------------------
  382|  7.91M|    {
  383|  7.91M|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 3.69M, False: 4.22M]
  ------------------
  384|  3.69M|        {
  385|  3.69M|            result.push_back('-');
  386|  3.69M|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  7.91M|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  7.91M|        return true;
  391|  7.91M|    }
  392|   109k|    else
  393|   109k|    {
  394|   109k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|   109k|    }
  396|  8.02M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|   109k|{
  330|   109k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 109k]
  ------------------
  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|   109k|    char buffer[100];
  339|   109k|    int precision = std::numeric_limits<double>::digits10;
  340|   109k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|   109k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 109k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|   109k|    double x{0};
  346|   109k|    auto res = decstr_to_double(buffer, length, x);
  347|   109k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 109k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|   109k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 109k, False: 690]
  ------------------
  352|   109k|    {
  353|   109k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|   109k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|   109k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 109k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|   109k|    }
  360|   109k|    dump_buffer(buffer, length, decimal_point, result);
  361|   109k|    return true;
  362|   109k|}
_ZN8jsoncons15prettify_stringINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvPKcmiiiRT_:
  171|   719k|{
  172|   719k|    int nb_digits = (int)length;
  173|   719k|    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|   719k|    int kk = nb_digits + k;
  179|       |
  180|   719k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 138k, False: 581k]
  |  Branch (180:28): [True: 5.29k, False: 133k]
  ------------------
  181|  5.29k|    {
  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|  39.3k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 34.0k, False: 5.29k]
  ------------------
  186|  34.0k|        {
  187|  34.0k|            result.push_back(buffer[i]);
  188|  34.0k|        }
  189|  15.4k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 10.1k, False: 5.29k]
  ------------------
  190|  10.1k|        {
  191|  10.1k|            result.push_back('0');
  192|  10.1k|        }
  193|  5.29k|        result.push_back('.');
  194|  5.29k|        result.push_back('0');
  195|  5.29k|    } 
  196|   714k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 712k, False: 2.26k]
  |  Branch (196:24): [True: 578k, False: 133k]
  ------------------
  197|   578k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  1.15M|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 579k, False: 578k]
  ------------------
  200|   579k|        {
  201|   579k|            result.push_back(buffer[i]);
  202|   579k|        }
  203|   578k|        result.push_back('.');
  204|  1.15M|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 580k, False: 578k]
  ------------------
  205|   580k|        {
  206|   580k|            result.push_back(buffer[i]);
  207|   580k|        }
  208|   578k|    } 
  209|   135k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 134k, False: 1.35k]
  |  Branch (209:30): [True: 915, False: 133k]
  ------------------
  210|    915|    {
  211|    915|        offset = 2 - kk;
  212|       |
  213|    915|        result.push_back('0');
  214|    915|        result.push_back('.');
  215|  2.73k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 1.81k, False: 915]
  ------------------
  216|  1.81k|            result.push_back('0');
  217|  3.06k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 2.15k, False: 915]
  ------------------
  218|  2.15k|        {
  219|  2.15k|            result.push_back(buffer[i]);
  220|  2.15k|        }
  221|    915|    } 
  222|   134k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 1.05k, False: 133k]
  ------------------
  223|  1.05k|    {
  224|  1.05k|        result.push_back(buffer[0]);
  225|  1.05k|        result.push_back('e');
  226|  1.05k|        fill_exponent(kk - 1, result);
  227|  1.05k|    } 
  228|   133k|    else
  229|   133k|    {
  230|   133k|        result.push_back(buffer[0]);
  231|   133k|        result.push_back('.');
  232|   588k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 454k, False: 133k]
  ------------------
  233|   454k|        {
  234|   454k|            result.push_back(buffer[i]);
  235|   454k|        }
  236|   133k|        result.push_back('e');
  237|   133k|        fill_exponent(kk - 1, result);
  238|   133k|    }
  239|   719k|}
_ZN8jsoncons13fill_exponentINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEviRT_:
  136|   134k|{
  137|   134k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 1.35k, False: 133k]
  ------------------
  138|  1.35k|    {
  139|  1.35k|        result.push_back('-');
  140|  1.35k|        K = -K;
  141|  1.35k|    }
  142|   133k|    else
  143|   133k|    {
  144|   133k|        result.push_back('+'); // compatibility with sprintf
  145|   133k|    }
  146|       |
  147|   134k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 367, False: 134k]
  ------------------
  148|    367|    {
  149|    367|        result.push_back('0'); // compatibility with sprintf
  150|    367|        result.push_back((char)('0' + K));
  151|    367|    }
  152|   134k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 133k, False: 682]
  ------------------
  153|   133k|    {
  154|   133k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|   133k|        result.push_back((char)('0' + K));
  156|   133k|    }
  157|    682|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 238, False: 444]
  ------------------
  158|    238|    {
  159|    238|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|    238|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|    238|        result.push_back((char)('0' + K));
  162|    238|    }
  163|    444|    else
  164|    444|    {
  165|    444|        jsoncons::from_integer(K, result);
  166|    444|    }
  167|   134k|}
_ZN8jsoncons12from_integerIiNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|    444|{
   43|    444|    using char_type = typename Result::value_type;
   44|       |
   45|    444|    char_type buf[255];
   46|    444|    char_type *p = buf;
   47|    444|    const char_type* last = buf+255;
   48|       |
   49|    444|    bool is_negative = value < 0;
   50|       |
   51|    444|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 444]
  ------------------
   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|    444|    else
   60|    444|    {
   61|       |
   62|    444|        do
   63|  2.87k|        {
   64|  2.87k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  2.87k|        }
   66|  2.87k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 2.43k, False: 444]
  |  Branch (66:33): [True: 2.43k, False: 0]
  ------------------
   67|    444|    }
   68|    444|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|    444|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 444]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|    444|    std::size_t count = (p - buf);
   71|    444|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 444]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  3.32k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 2.87k, False: 444]
  ------------------
   77|  2.87k|    {
   78|  2.87k|        result.push_back(*p);
   79|  2.87k|    }
   80|       |
   81|    444|    return count;
   82|    444|}
_ZN8jsoncons14integer_to_hexImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   89|   372k|{
   90|   372k|    using char_type = typename Result::value_type;
   91|       |
   92|   372k|    char_type buf[255];
   93|   372k|    char_type *p = buf;
   94|   372k|    const char_type* last = buf+255;
   95|       |
   96|   372k|    bool is_negative = value < 0;
   97|       |
   98|   372k|    if (value < 0)
  ------------------
  |  Branch (98:9): [True: 0, False: 372k]
  ------------------
   99|      0|    {
  100|      0|        do
  101|      0|        {
  102|      0|            *p++ = to_hex_character(0-(value % 16));
  103|      0|        }
  104|      0|        while ((value /= 16) && (p < last));
  ------------------
  |  Branch (104:16): [True: 0, False: 0]
  |  Branch (104:33): [True: 0, False: 0]
  ------------------
  105|      0|    }
  106|   372k|    else
  107|   372k|    {
  108|       |
  109|   372k|        do
  110|   409k|        {
  111|   409k|            *p++ = to_hex_character(value % 16);
  112|   409k|        }
  113|   409k|        while ((value /= 16) && (p < last));
  ------------------
  |  Branch (113:16): [True: 37.0k, False: 372k]
  |  Branch (113:33): [True: 37.0k, False: 0]
  ------------------
  114|   372k|    }
  115|   372k|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|   372k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 372k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  116|       |
  117|   372k|    std::size_t count = (p - buf);
  118|   372k|    if (is_negative)
  ------------------
  |  Branch (118:9): [True: 0, False: 372k]
  ------------------
  119|      0|    {
  120|      0|        result.push_back('-');
  121|      0|        ++count;
  122|      0|    }
  123|   781k|    while (--p >= buf)
  ------------------
  |  Branch (123:12): [True: 409k, False: 372k]
  ------------------
  124|   409k|    {
  125|   409k|        result.push_back(*p);
  126|   409k|    }
  127|       |
  128|   372k|    return count;
  129|   372k|}
_ZN8jsoncons16to_hex_characterEh:
   33|   409k|{
   34|   409k|    return (char)((c < 10) ? ('0' + c) : ('A' - 10 + c));
  ------------------
  |  Branch (34:19): [True: 404k, False: 4.75k]
  ------------------
   35|   409k|}

_ZN8jsoncons4cbor6detail24min_length_for_stringrefEm:
   58|  4.58M|{
   59|  4.58M|    std::size_t n;
   60|  4.58M|    if (index <= 23)
  ------------------
  |  Branch (60:9): [True: 552k, False: 4.03M]
  ------------------
   61|   552k|    {
   62|   552k|        n = 3;
   63|   552k|    }
   64|  4.03M|    else if (index <= 255)
  ------------------
  |  Branch (64:14): [True: 165k, False: 3.87M]
  ------------------
   65|   165k|    {
   66|   165k|        n = 4;
   67|   165k|    }
   68|  3.87M|    else if (index <= 65535)
  ------------------
  |  Branch (68:14): [True: 3.65M, False: 218k]
  ------------------
   69|  3.65M|    {
   70|  3.65M|        n = 5;
   71|  3.65M|    }
   72|   218k|    else if (index <= 4294967295)
  ------------------
  |  Branch (72:14): [True: 218k, False: 0]
  ------------------
   73|   218k|    {
   74|   218k|        n = 7;
   75|   218k|    }
   76|      0|    else 
   77|      0|    {
   78|      0|        n = 11;
   79|      0|    }
   80|  4.58M|    return n;
   81|  4.58M|}

_ZN8jsoncons4cbor15make_error_codeENS0_9cbor_errcE:
   93|  7.84k|{
   94|  7.84k|    return std::error_code(static_cast<int>(e),cbor_error_category());
   95|  7.84k|}
_ZN8jsoncons4cbor19cbor_error_categoryEv:
   86|  7.84k|{
   87|  7.84k|  static cbor_error_category_impl instance;
   88|  7.84k|  return instance;
   89|  7.84k|}

_ZN8jsoncons4cbor19cbor_decode_optionsC1Ev:
   42|  10.2k|    cbor_decode_options() = default;
_ZN8jsoncons4cbor19cbor_options_commonC2Ev:
   25|  10.2k|    cbor_options_common() = default;
_ZN8jsoncons4cbor19cbor_options_commonD2Ev:
   27|  10.2k|    virtual ~cbor_options_common() = default;
_ZNK8jsoncons4cbor19cbor_options_common17max_nesting_depthEv:
   33|  10.2k|    {
   34|  10.2k|        return max_nesting_depth_;
   35|  10.2k|    }

_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEED2Ev:
  341|  10.2k|    ~basic_cbor_parser() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringD2Ev:
  248|  12.4M|        ~mapped_string() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RKNS0_19cbor_decode_optionsERKS7_:
  324|  10.2k|       : alloc_(alloc),
  325|  10.2k|         source_(std::forward<Sourceable>(source)),
  326|  10.2k|         max_nesting_depth_(options.max_nesting_depth()),
  327|  10.2k|         text_buffer_(alloc),
  328|  10.2k|         bytes_buffer_(alloc),
  329|  10.2k|         state_stack_(alloc),
  330|  10.2k|         array_buffer_(alloc),
  331|  10.2k|         stringref_map_stack_(alloc)
  332|  10.2k|    {
  333|  10.2k|        state_stack_.emplace_back(parse_mode::root,0);
  334|  10.2k|    }
_ZN8jsoncons4cbor24mdarray_row_major_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2Ev:
   58|  10.2k|        : done_(true), parser_(nullptr)
   59|  10.2k|    {
   60|  10.2k|    }
_ZN8jsoncons4cbor11parse_stateC2ENS0_10parse_modeEmb:
  177|  8.30M|        : mode(mode), length(length), pop_stringref_map_stack(pop_stringref_map_stack)
  178|  8.30M|    {
  179|  8.30M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  349|  10.2k|    {
  350|  10.2k|        more_ = true;
  351|  10.2k|        done_ = false;
  352|  10.2k|        text_buffer_.clear();
  353|  10.2k|        bytes_buffer_.clear();
  354|  10.2k|        raw_tag_ = 0;
  355|  10.2k|        state_stack_.clear();
  356|  10.2k|        state_stack_.emplace_back(parse_mode::root,0);
  357|  10.2k|        array_buffer_.clear();
  358|  10.2k|        stringref_map_stack_.clear();
  359|  10.2k|        nesting_depth_ = 0;
  360|  10.2k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
  451|  10.2k|    {
  452|  72.4M|        while (!done_ && more_)
  ------------------
  |  Branch (452:16): [True: 72.4M, False: 2.37k]
  |  Branch (452:26): [True: 72.4M, False: 0]
  ------------------
  453|  72.4M|        {
  454|  72.4M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (454:21): [True: 72.4M, False: 0]
  ------------------
  455|  72.4M|            {
  456|      0|                case parse_mode::multi_dim:
  ------------------
  |  Branch (456:17): [True: 0, False: 72.4M]
  ------------------
  457|      0|                {
  458|      0|                    state_stack_.pop_back();
  459|      0|                    break;
  460|      0|                }
  461|  5.55M|                case parse_mode::array:
  ------------------
  |  Branch (461:17): [True: 5.55M, False: 66.8M]
  ------------------
  462|  5.55M|                {
  463|  5.55M|                    if (is_multi_dim() && order_ == mdarray_order::row_major)
  ------------------
  |  Branch (463:25): [True: 71, False: 5.55M]
  |  Branch (463:43): [True: 71, False: 0]
  ------------------
  464|     71|                    {
  465|     71|                        if (!row_major_reader_.done())
  ------------------
  |  Branch (465:29): [True: 62, False: 9]
  ------------------
  466|     62|                        {
  467|     62|                            row_major_reader_.next(visitor, *this, ec);
  468|     62|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     62|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4, False: 58]
  |  |  ------------------
  ------------------
  469|      4|                            {
  470|      4|                                return;
  471|      4|                            }
  472|     62|                        }
  473|      9|                        else
  474|      9|                        {
  475|      9|                            if (row_major_reader_.count() != state_stack_.back().length)
  ------------------
  |  Branch (475:33): [True: 9, False: 0]
  ------------------
  476|      9|                            {
  477|       |                                //std::cout << state_stack_.back().index << "!=" << state_stack_.back().length << "\n";
  478|      9|                                ec = cbor_errc::bad_mdarray;
  479|      9|                                return;
  480|      9|                            }
  481|      0|                            end_row_major_storage(ec);
  482|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  483|      0|                            {
  484|      0|                                return;
  485|      0|                            }
  486|      0|                        }
  487|     71|                    }
  488|  5.55M|                    else
  489|  5.55M|                    {
  490|  5.55M|                        if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (490:29): [True: 5.07M, False: 478k]
  ------------------
  491|  5.07M|                        {
  492|  5.07M|                            ++state_stack_.back().index;
  493|  5.07M|                            read_item(visitor, ec);
  494|  5.07M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  5.07M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.20k, False: 5.07M]
  |  |  ------------------
  ------------------
  495|  1.20k|                            {
  496|  1.20k|                                return;
  497|  1.20k|                            }
  498|  5.07M|                        }
  499|   478k|                        else
  500|   478k|                        {
  501|   478k|                            end_array(visitor, ec);
  502|   478k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   478k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 478k]
  |  |  ------------------
  ------------------
  503|      0|                            {
  504|      0|                                return;
  505|      0|                            }
  506|   478k|                        }
  507|  5.55M|                    }
  508|  5.55M|                    break;
  509|  5.55M|                }
  510|  11.6M|                case parse_mode::indefinite_array:
  ------------------
  |  Branch (510:17): [True: 11.6M, False: 60.8M]
  ------------------
  511|  11.6M|                {
  512|  11.6M|                    if (is_multi_dim() && order_ == mdarray_order::row_major)
  ------------------
  |  Branch (512:25): [True: 0, False: 11.6M]
  |  Branch (512:43): [True: 0, False: 0]
  ------------------
  513|      0|                    {
  514|      0|                        if (!row_major_reader_.done())
  ------------------
  |  Branch (514:29): [True: 0, False: 0]
  ------------------
  515|      0|                        {
  516|      0|                            row_major_reader_.next(visitor, *this, ec);
  517|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  518|      0|                            {
  519|      0|                                return;
  520|      0|                            }
  521|      0|                        }
  522|      0|                        else
  523|      0|                        {
  524|      0|                            auto c = source_.peek();
  525|      0|                            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  526|      0|                            {
  527|      0|                                ec = cbor_errc::unexpected_eof;
  528|      0|                                more_ = false;
  529|      0|                                return;
  530|      0|                            }
  531|      0|                            if (c.value == 0xff)
  ------------------
  |  Branch (531:33): [True: 0, False: 0]
  ------------------
  532|      0|                            {
  533|      0|                                source_.ignore(1);
  534|      0|                            }
  535|      0|                            else
  536|      0|                            {
  537|      0|                                ec = cbor_errc::bad_mdarray;
  538|      0|                                return;
  539|      0|                            }
  540|      0|                            end_row_major_storage(ec);
  541|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  542|      0|                            {
  543|      0|                                return;
  544|      0|                            }
  545|      0|                        }
  546|      0|                    }
  547|  11.6M|                    else
  548|  11.6M|                    {
  549|  11.6M|                        auto c = source_.peek();
  550|  11.6M|                        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  11.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 794, False: 11.6M]
  |  |  ------------------
  ------------------
  551|    794|                        {
  552|    794|                            ec = cbor_errc::unexpected_eof;
  553|    794|                            more_ = false;
  554|    794|                            return;
  555|    794|                        }
  556|  11.6M|                        if (c.value == 0xff)
  ------------------
  |  Branch (556:29): [True: 818k, False: 10.8M]
  ------------------
  557|   818k|                        {
  558|   818k|                            source_.ignore(1);
  559|   818k|                            end_array(visitor, ec);
  560|   818k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   818k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 818k]
  |  |  ------------------
  ------------------
  561|      0|                            {
  562|      0|                                return;
  563|      0|                            }
  564|   818k|                        }
  565|  10.8M|                        else
  566|  10.8M|                        {
  567|  10.8M|                            read_item(visitor, ec);
  568|  10.8M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  10.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 212, False: 10.8M]
  |  |  ------------------
  ------------------
  569|    212|                            {
  570|    212|                                return;
  571|    212|                            }
  572|  10.8M|                        }
  573|  11.6M|                    }
  574|  11.6M|                    break;
  575|  11.6M|                }
  576|  26.2M|                case parse_mode::typed_array:
  ------------------
  |  Branch (576:17): [True: 26.2M, False: 46.2M]
  ------------------
  577|  26.2M|                {
  578|  26.2M|                    read_typed_array_item(visitor, ec);
  579|  26.2M|                    break;
  580|  11.6M|                }
  581|  10.2M|                case parse_mode::map_key:
  ------------------
  |  Branch (581:17): [True: 10.2M, False: 62.2M]
  ------------------
  582|  10.2M|                {
  583|  10.2M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (583:25): [True: 3.43M, False: 6.78M]
  ------------------
  584|  3.43M|                    {
  585|  3.43M|                        ++state_stack_.back().index;
  586|  3.43M|                        state_stack_.back().mode = parse_mode::map_value;
  587|  3.43M|                        read_item(visitor, ec);
  588|  3.43M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  3.43M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.00k, False: 3.43M]
  |  |  ------------------
  ------------------
  589|  1.00k|                        {
  590|  1.00k|                            return;
  591|  1.00k|                        }
  592|  3.43M|                    }
  593|  6.78M|                    else
  594|  6.78M|                    {
  595|  6.78M|                        end_object(visitor, ec);
  596|  6.78M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  6.78M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 6.78M]
  |  |  ------------------
  ------------------
  597|      0|                        {
  598|      0|                            return;
  599|      0|                        }
  600|  6.78M|                    }
  601|  10.2M|                    break;
  602|  10.2M|                }
  603|  10.2M|                case parse_mode::map_value:
  ------------------
  |  Branch (603:17): [True: 3.42M, False: 69.0M]
  ------------------
  604|  3.42M|                {
  605|  3.42M|                    state_stack_.back().mode = parse_mode::map_key;
  606|  3.42M|                    read_item(visitor, ec);
  607|  3.42M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  3.42M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.46k, False: 3.42M]
  |  |  ------------------
  ------------------
  608|  1.46k|                    {
  609|  1.46k|                        return;
  610|  1.46k|                    }
  611|  3.42M|                    break;
  612|  3.42M|                }
  613|  7.73M|                case parse_mode::indefinite_map_key:
  ------------------
  |  Branch (613:17): [True: 7.73M, False: 64.7M]
  ------------------
  614|  7.73M|                {
  615|  7.73M|                    auto c = source_.peek();
  616|  7.73M|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  7.73M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 550, False: 7.73M]
  |  |  ------------------
  ------------------
  617|    550|                    {
  618|    550|                        ec = cbor_errc::unexpected_eof;
  619|    550|                        more_ = false;
  620|    550|                        return;
  621|    550|                    }
  622|  7.73M|                    if (c.value == 0xff)
  ------------------
  |  Branch (622:25): [True: 77.6k, False: 7.65M]
  ------------------
  623|  77.6k|                    {
  624|  77.6k|                        source_.ignore(1);
  625|  77.6k|                        end_object(visitor, ec);
  626|  77.6k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  77.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 77.6k]
  |  |  ------------------
  ------------------
  627|      0|                        {
  628|      0|                            return;
  629|      0|                        }
  630|  77.6k|                    }
  631|  7.65M|                    else
  632|  7.65M|                    {
  633|  7.65M|                        state_stack_.back().mode = parse_mode::indefinite_map_value;
  634|  7.65M|                        read_item(visitor, ec);
  635|  7.65M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  7.65M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 197, False: 7.65M]
  |  |  ------------------
  ------------------
  636|    197|                        {
  637|    197|                            return;
  638|    197|                        }
  639|  7.65M|                    }
  640|  7.73M|                    break;
  641|  7.73M|                }
  642|  7.73M|                case parse_mode::indefinite_map_value:
  ------------------
  |  Branch (642:17): [True: 7.64M, False: 64.8M]
  ------------------
  643|  7.64M|                {
  644|  7.64M|                    state_stack_.back().mode = parse_mode::indefinite_map_key;
  645|  7.64M|                    read_item(visitor, ec);
  646|  7.64M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  7.64M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 888, False: 7.64M]
  |  |  ------------------
  ------------------
  647|    888|                    {
  648|    888|                        return;
  649|    888|                    }
  650|  7.64M|                    break;
  651|  7.64M|                }
  652|  7.64M|                case parse_mode::root:
  ------------------
  |  Branch (652:17): [True: 10.2k, False: 72.4M]
  ------------------
  653|  10.2k|                {
  654|  10.2k|                    state_stack_.back().mode = parse_mode::accept;
  655|  10.2k|                    read_item(visitor, ec);
  656|  10.2k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  10.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.51k, False: 8.70k]
  |  |  ------------------
  ------------------
  657|  1.51k|                    {
  658|  1.51k|                        return;
  659|  1.51k|                    }
  660|  8.70k|                    break;
  661|  10.2k|                }
  662|  8.70k|                case parse_mode::accept:
  ------------------
  |  Branch (662:17): [True: 2.37k, False: 72.4M]
  ------------------
  663|  2.37k|                {
  664|  2.37k|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   45|  2.37k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 2.37k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  665|  2.37k|                    state_stack_.clear();
  666|  2.37k|                    more_ = false;
  667|  2.37k|                    done_ = true;
  668|  2.37k|                    visitor.flush();
  669|  2.37k|                    break;
  670|  2.37k|                }
  671|  72.4M|            }
  672|  72.4M|        }
  673|  10.2k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12is_multi_dimEv:
  373|  17.1M|    {
  374|  17.1M|        return state_stack_.size() >=2 && state_stack_[state_stack_.size()-2].mode == parse_mode::multi_dim;
  ------------------
  |  Branch (374:16): [True: 17.1M, False: 0]
  |  Branch (374:43): [True: 71, False: 17.1M]
  ------------------
  375|  17.1M|    }
_ZNK8jsoncons4cbor24mdarray_row_major_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
   84|     86|    {
   85|     86|        return done_;
   86|     86|    }
_ZN8jsoncons4cbor24mdarray_row_major_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS_24basic_item_event_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   95|     77|    {
   96|     77|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   45|     77|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 77]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   97|       |
   98|     77|        bool more = true;
   99|    191|        while (more)
  ------------------
  |  Branch (99:16): [True: 114, False: 77]
  ------------------
  100|    114|        {
  101|    114|            if (dim_ == 0)
  ------------------
  |  Branch (101:17): [True: 59, False: 55]
  ------------------
  102|     59|            {
  103|     59|                if (first_)
  ------------------
  |  Branch (103:21): [True: 15, False: 44]
  ------------------
  104|     15|                {
  105|     15|                    visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  106|     15|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     15|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 15]
  |  |  ------------------
  ------------------
  107|      0|                    {
  108|      0|                        return;
  109|      0|                    }
  110|     15|                    first_ = false;
  111|     15|                    more = false;
  112|     15|                    continue;
  113|     15|                }
  114|     44|                if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (114:21): [True: 9, False: 35]
  ------------------
  115|      9|                {
  116|      9|                    visitor.end_array(context, ec);
  117|      9|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      9|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 9]
  |  |  ------------------
  ------------------
  118|      0|                    {
  119|      0|                        return;
  120|      0|                    }
  121|      9|                    done_ = true;
  122|      9|                    more = false;
  123|      9|                    continue;
  124|      9|                }
  125|     44|            }
  126|     90|            if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (126:17): [True: 19, False: 71]
  |  Branch (126:48): [True: 19, False: 0]
  ------------------
  127|     19|            {
  128|     19|                visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  129|     19|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     19|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 19]
  |  |  ------------------
  ------------------
  130|      0|                {
  131|      0|                    return;
  132|      0|                }
  133|     19|                ++dim_;
  134|     19|                continue;
  135|     19|            }
  136|     71|            if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (136:17): [True: 53, False: 18]
  ------------------
  137|     53|            {
  138|     53|                parser_->read_item(visitor, ec);
  139|     53|                dimensions_[dim_].index += dimensions_[dim_].stride;
  140|     53|                ++count_;
  141|     53|                more = false;
  142|     53|                continue;
  143|     53|            }
  144|     18|            if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (144:17): [True: 18, False: 0]
  ------------------
  145|     18|            {
  146|     18|                visitor.end_array(context, ec);
  147|     18|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     18|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 18]
  |  |  ------------------
  ------------------
  148|      0|                {
  149|      0|                    return;
  150|      0|                }
  151|     18|                if (dim_ > 0)
  ------------------
  |  Branch (151:21): [True: 18, False: 0]
  ------------------
  152|     18|                {
  153|     18|                    --dim_;
  154|     18|                    dimensions_[dim_].index += dimensions_[dim_].stride;
  155|     18|                    if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (155:25): [True: 9, False: 9]
  ------------------
  156|      9|                    {
  157|     18|                        for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (157:54): [True: 9, False: 9]
  ------------------
  158|      9|                        {
  159|      9|                            dimensions_[i].index = dimensions_[i-1].index;
  160|      9|                            dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  161|      9|                        }
  162|      9|                    }
  163|     18|                }
  164|     18|            }
  165|     18|        }
  166|     77|    }
_ZNK8jsoncons4cbor24mdarray_row_major_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5countEv:
   89|      9|    {
   90|      9|        return count_;
   91|      9|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5levelEv:
  395|  8.16M|    {
  396|  8.16M|        return static_cast<int>(state_stack_.size());
  397|  8.16M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
  694|  38.0M|    {
  695|  38.0M|        read_tags(ec);
  696|  38.0M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  38.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4.07k, False: 38.0M]
  |  |  ------------------
  ------------------
  697|  4.07k|        {
  698|  4.07k|            return;
  699|  4.07k|        }
  700|  38.0M|        auto c = source_.peek();
  701|  38.0M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  38.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 38.0M]
  |  |  ------------------
  ------------------
  702|      0|        {
  703|      0|            ec = cbor_errc::unexpected_eof;
  704|      0|            more_ = false;
  705|      0|            return;
  706|      0|        }
  707|  38.0M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
  708|  38.0M|        uint8_t info = get_additional_information_value(c.value);
  709|       |
  710|  38.0M|        switch (major_type)
  711|  38.0M|        {
  712|  12.7M|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (712:13): [True: 12.7M, False: 25.3M]
  ------------------
  713|  12.7M|            {
  714|  12.7M|                uint64_t val = read_uint64(ec);
  715|  12.7M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  12.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 12.7M]
  |  |  ------------------
  ------------------
  716|      1|                {
  717|      1|                    return;
  718|      1|                }
  719|  12.7M|                if (!stringref_map_stack_.empty() && other_tags_[stringref_tag])
  ------------------
  |  Branch (719:21): [True: 6.70M, False: 6.01M]
  |  Branch (719:21): [True: 30.8k, False: 12.6M]
  |  Branch (719:54): [True: 30.8k, False: 6.67M]
  ------------------
  720|  30.8k|                {
  721|  30.8k|                    other_tags_[stringref_tag] = false;
  722|  30.8k|                    if (val >= stringref_map_stack_.back().size())
  ------------------
  |  Branch (722:25): [True: 119, False: 30.7k]
  ------------------
  723|    119|                    {
  724|    119|                        ec = cbor_errc::stringref_too_large;
  725|    119|                        more_ = false;
  726|    119|                        return;
  727|    119|                    }
  728|  30.7k|                    auto index = static_cast<typename stringref_map::size_type>(val);
  729|  30.7k|                    if (index != val)
  ------------------
  |  Branch (729:25): [True: 0, False: 30.7k]
  ------------------
  730|      0|                    {
  731|      0|                        ec = cbor_errc::number_too_large;
  732|      0|                        more_ = false;
  733|      0|                        return;
  734|      0|                    }
  735|  30.7k|                    auto& str = stringref_map_stack_.back().at(index);
  736|  30.7k|                    switch (str.type)
  737|  30.7k|                    {
  738|    656|                        case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (738:25): [True: 656, False: 30.0k]
  ------------------
  739|    656|                        {
  740|    656|                            handle_string(visitor, jsoncons::basic_string_view<char>(str.str.data(),str.str.length()),ec);
  741|    656|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    656|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 656]
  |  |  ------------------
  ------------------
  742|      0|                            {
  743|      0|                                return;
  744|      0|                            }
  745|    656|                            break;
  746|    656|                        }
  747|  30.0k|                        case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (747:25): [True: 30.0k, False: 656]
  ------------------
  748|  30.0k|                        {
  749|  30.0k|                            read_byte_string_from_buffer read(byte_string_view(str.bytes));
  750|  30.0k|                            read_byte_string(read, visitor, ec);
  751|  30.0k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  30.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 30.0k]
  |  |  ------------------
  ------------------
  752|      0|                            {
  753|      0|                                return;
  754|      0|                            }
  755|  30.0k|                            break;
  756|  30.0k|                        }
  757|  30.0k|                        default:
  ------------------
  |  Branch (757:25): [True: 0, False: 30.7k]
  ------------------
  758|      0|                            JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
  759|      0|                            break;
  760|  30.7k|                    }
  761|  30.7k|                }
  762|  12.6M|                else
  763|  12.6M|                {
  764|  12.6M|                    semantic_tag tag = semantic_tag::none;
  765|  12.6M|                    if (other_tags_[item_tag])
  ------------------
  |  Branch (765:25): [True: 24.5k, False: 12.6M]
  ------------------
  766|  24.5k|                    {
  767|  24.5k|                        if (raw_tag_ == 1)
  ------------------
  |  Branch (767:29): [True: 332, False: 24.2k]
  ------------------
  768|    332|                        {
  769|    332|                            tag = semantic_tag::epoch_second;
  770|    332|                        }
  771|  24.5k|                        other_tags_[item_tag] = false;
  772|  24.5k|                    }
  773|  12.6M|                    visitor.uint64_value(val, tag, *this, ec);
  774|  12.6M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  12.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 12.6M]
  |  |  ------------------
  ------------------
  775|      0|                    {
  776|      0|                        return;
  777|      0|                    }
  778|  12.6M|                    more_ = !cursor_mode_;
  779|  12.6M|                }
  780|  12.7M|                break;
  781|  12.7M|            }
  782|  12.7M|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (782:13): [True: 2.01M, False: 36.0M]
  ------------------
  783|  2.01M|            {
  784|  2.01M|                int64_t val = read_int64(ec);
  785|  2.01M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.01M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 15, False: 2.01M]
  |  |  ------------------
  ------------------
  786|     15|                {
  787|     15|                    return;
  788|     15|                }
  789|  2.01M|                semantic_tag tag = semantic_tag::none;
  790|  2.01M|                if (other_tags_[item_tag])
  ------------------
  |  Branch (790:21): [True: 19.9k, False: 1.99M]
  ------------------
  791|  19.9k|                {
  792|  19.9k|                    if (raw_tag_ == 1)
  ------------------
  |  Branch (792:25): [True: 228, False: 19.6k]
  ------------------
  793|    228|                    {
  794|    228|                        tag = semantic_tag::epoch_second;
  795|    228|                    }
  796|  19.9k|                    other_tags_[item_tag] = false;
  797|  19.9k|                }
  798|  2.01M|                visitor.int64_value(val, tag, *this, ec);
  799|  2.01M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.01M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.01M]
  |  |  ------------------
  ------------------
  800|      0|                {
  801|      0|                    return;
  802|      0|                }
  803|  2.01M|                more_ = !cursor_mode_;
  804|  2.01M|                break;
  805|  2.01M|            }
  806|  10.3M|            case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (806:13): [True: 10.3M, False: 27.6M]
  ------------------
  807|  10.3M|            {
  808|  10.3M|                read_byte_string_from_source read(this);
  809|  10.3M|                read_byte_string(read, visitor, ec);
  810|  10.3M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  10.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 758, False: 10.3M]
  |  |  ------------------
  ------------------
  811|    758|                {
  812|    758|                    return;
  813|    758|                }
  814|  10.3M|                break;
  815|  10.3M|            }
  816|  10.3M|            case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (816:13): [True: 875k, False: 37.1M]
  ------------------
  817|   875k|            {
  818|   875k|                text_buffer_.clear();
  819|       |
  820|   875k|                read_text_string(text_buffer_, ec);
  821|   875k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   875k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 484, False: 875k]
  |  |  ------------------
  ------------------
  822|    484|                {
  823|    484|                    return;
  824|    484|                }
  825|   875k|                auto result = unicode_traits::validate(text_buffer_.data(),text_buffer_.size());
  826|   875k|                if (result.ec != unicode_traits::conv_errc())
  ------------------
  |  Branch (826:21): [True: 127, False: 874k]
  ------------------
  827|    127|                {
  828|    127|                    ec = cbor_errc::invalid_utf8_text_string;
  829|    127|                    more_ = false;
  830|    127|                    return;
  831|    127|                }
  832|   874k|                handle_string(visitor, jsoncons::basic_string_view<char>(text_buffer_.data(),text_buffer_.length()),ec);
  833|   874k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   874k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 874k]
  |  |  ------------------
  ------------------
  834|      0|                {
  835|      0|                    return;
  836|      0|                }
  837|   874k|                break;
  838|   874k|            }
  839|   874k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (839:13): [True: 0, False: 38.0M]
  ------------------
  840|      0|            {
  841|      0|                JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
  842|      0|                break;
  843|   874k|            }
  844|  2.75M|            case jsoncons::cbor::detail::cbor_major_type::simple:
  ------------------
  |  Branch (844:13): [True: 2.75M, False: 35.2M]
  ------------------
  845|  2.75M|            {
  846|  2.75M|                switch (info)
  847|  2.75M|                {
  848|   141k|                    case 0x14:
  ------------------
  |  Branch (848:21): [True: 141k, False: 2.60M]
  ------------------
  849|   141k|                        visitor.bool_value(false, semantic_tag::none, *this, ec);
  850|   141k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   141k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 141k]
  |  |  ------------------
  ------------------
  851|      0|                        {
  852|      0|                            return;
  853|      0|                        }
  854|   141k|                        more_ = !cursor_mode_;
  855|   141k|                        source_.ignore(1);
  856|   141k|                        break;
  857|  1.28M|                    case 0x15:
  ------------------
  |  Branch (857:21): [True: 1.28M, False: 1.47M]
  ------------------
  858|  1.28M|                        visitor.bool_value(true, semantic_tag::none, *this, ec);
  859|  1.28M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.28M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.28M]
  |  |  ------------------
  ------------------
  860|      0|                        {
  861|      0|                            return;
  862|      0|                        }
  863|  1.28M|                        more_ = !cursor_mode_;
  864|  1.28M|                        source_.ignore(1);
  865|  1.28M|                        break;
  866|  1.29M|                    case 0x16:
  ------------------
  |  Branch (866:21): [True: 1.29M, False: 1.45M]
  ------------------
  867|  1.29M|                        visitor.null_value(semantic_tag::none, *this, ec);
  868|  1.29M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.29M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.29M]
  |  |  ------------------
  ------------------
  869|      0|                        {
  870|      0|                            return;
  871|      0|                        }
  872|  1.29M|                        more_ = !cursor_mode_;
  873|  1.29M|                        source_.ignore(1);
  874|  1.29M|                        break;
  875|  16.2k|                    case 0x17:
  ------------------
  |  Branch (875:21): [True: 16.2k, False: 2.73M]
  ------------------
  876|  16.2k|                        visitor.null_value(semantic_tag::undefined, *this, ec);
  877|  16.2k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  16.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 16.2k]
  |  |  ------------------
  ------------------
  878|      0|                        {
  879|      0|                            return;
  880|      0|                        }
  881|  16.2k|                        more_ = !cursor_mode_;
  882|  16.2k|                        source_.ignore(1);
  883|  16.2k|                        break;
  884|  8.80k|                    case 0x19: // Half-Precision Float (two-byte IEEE 754)
  ------------------
  |  Branch (884:21): [True: 8.80k, False: 2.74M]
  ------------------
  885|  8.80k|                    {
  886|  8.80k|                        uint64_t val = read_uint64(ec);
  887|  8.80k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  8.80k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 8.80k]
  |  |  ------------------
  ------------------
  888|      0|                        {
  889|      0|                            return;
  890|      0|                        }
  891|  8.80k|                        visitor.half_value(static_cast<uint16_t>(val), semantic_tag::none, *this, ec);
  892|  8.80k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  8.80k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 8.80k]
  |  |  ------------------
  ------------------
  893|      0|                        {
  894|      0|                            return;
  895|      0|                        }
  896|  8.80k|                        more_ = !cursor_mode_;
  897|  8.80k|                        break;
  898|  8.80k|                    }
  899|  6.67k|                    case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (899:21): [True: 6.67k, False: 2.74M]
  ------------------
  900|  9.21k|                    case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (900:21): [True: 2.53k, False: 2.74M]
  ------------------
  901|  9.21k|                    {
  902|  9.21k|                        double val = read_double(ec);
  903|  9.21k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  9.21k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 36, False: 9.17k]
  |  |  ------------------
  ------------------
  904|     36|                        {
  905|     36|                            return;
  906|     36|                        }
  907|  9.17k|                        semantic_tag tag = semantic_tag::none;
  908|  9.17k|                        if (other_tags_[item_tag])
  ------------------
  |  Branch (908:29): [True: 902, False: 8.27k]
  ------------------
  909|    902|                        {
  910|    902|                            if (raw_tag_ == 1)
  ------------------
  |  Branch (910:33): [True: 234, False: 668]
  ------------------
  911|    234|                            {
  912|    234|                                tag = semantic_tag::epoch_second;
  913|    234|                            }
  914|    902|                            other_tags_[item_tag] = false;
  915|    902|                        }
  916|  9.17k|                        visitor.double_value(val, tag, *this, ec);
  917|  9.17k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  9.17k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 9.17k]
  |  |  ------------------
  ------------------
  918|      0|                        {
  919|      0|                            return;
  920|      0|                        }
  921|  9.17k|                        more_ = !cursor_mode_;
  922|  9.17k|                        break;
  923|  9.17k|                    }
  924|    140|                    default:
  ------------------
  |  Branch (924:21): [True: 140, False: 2.75M]
  ------------------
  925|    140|                    {
  926|    140|                        ec = cbor_errc::unknown_type;
  927|    140|                        more_ = false;
  928|    140|                        return;
  929|  9.17k|                    }
  930|  2.75M|                }
  931|  2.75M|                break;
  932|  2.75M|            }
  933|  2.75M|            case jsoncons::cbor::detail::cbor_major_type::array:
  ------------------
  |  Branch (933:13): [True: 2.40M, False: 35.6M]
  ------------------
  934|  2.40M|            {
  935|  2.40M|                if (other_tags_[item_tag])
  ------------------
  |  Branch (935:21): [True: 1.11M, False: 1.28M]
  ------------------
  936|  1.11M|                {
  937|  1.11M|                    switch (raw_tag_)
  938|  1.11M|                    {
  939|   720k|                        case 0x04:
  ------------------
  |  Branch (939:25): [True: 720k, False: 397k]
  ------------------
  940|   720k|                            text_buffer_.clear();
  941|   720k|                            read_decimal_fraction(text_buffer_, ec);
  942|   720k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   720k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 211, False: 719k]
  |  |  ------------------
  ------------------
  943|    211|                            {
  944|    211|                                return;
  945|    211|                            }
  946|   719k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
  947|   719k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   719k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 719k]
  |  |  ------------------
  ------------------
  948|      0|                            {
  949|      0|                                return;
  950|      0|                            }
  951|   719k|                            more_ = !cursor_mode_;
  952|   719k|                            break;
  953|   357k|                        case 0x05:
  ------------------
  |  Branch (953:25): [True: 357k, False: 760k]
  ------------------
  954|   357k|                            text_buffer_.clear();
  955|   357k|                            read_bigfloat(text_buffer_, ec);
  956|   357k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   357k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 160, False: 356k]
  |  |  ------------------
  ------------------
  957|    160|                            {
  958|    160|                                return;
  959|    160|                            }
  960|   356k|                            visitor.string_value(text_buffer_, semantic_tag::bigfloat, *this, ec);
  961|   356k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   356k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 356k]
  |  |  ------------------
  ------------------
  962|      0|                            {
  963|      0|                                return;
  964|      0|                            }
  965|   356k|                            more_ = !cursor_mode_;
  966|   356k|                            break;
  967|    353|                        case 40: // row major storage
  ------------------
  |  Branch (967:25): [True: 353, False: 1.11M]
  ------------------
  968|    353|                            order_ = mdarray_order::row_major;
  969|    353|                            read_mdarray_header(visitor, ec);
  970|    353|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    353|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 338, False: 15]
  |  |  ------------------
  ------------------
  971|    338|                            {
  972|    338|                                return;
  973|    338|                            }
  974|     15|                            break;
  975|     15|                        case 1040: // column major storage
  ------------------
  |  Branch (975:25): [True: 10, False: 1.11M]
  ------------------
  976|     10|                            order_ = mdarray_order::column_major;
  977|     10|                            read_mdarray_header(visitor, ec);
  978|     10|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     10|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 10, False: 0]
  |  |  ------------------
  ------------------
  979|     10|                            {
  980|     10|                                return;
  981|     10|                            }
  982|      0|                            break;
  983|  40.2k|                        default:
  ------------------
  |  Branch (983:25): [True: 40.2k, False: 1.07M]
  ------------------
  984|  40.2k|                            begin_array(visitor, info, ec);
  985|  40.2k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  40.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 12, False: 40.2k]
  |  |  ------------------
  ------------------
  986|     12|                            {
  987|     12|                                return;
  988|     12|                            }
  989|  40.2k|                            break;
  990|  1.11M|                    }
  991|  1.11M|                    other_tags_[item_tag] = false;
  992|  1.11M|                }
  993|  1.28M|                else
  994|  1.28M|                {
  995|  1.28M|                    begin_array(visitor, info, ec);
  996|  1.28M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.28M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5, False: 1.28M]
  |  |  ------------------
  ------------------
  997|      5|                    {
  998|      5|                        return;
  999|      5|                    }
 1000|  1.28M|                }
 1001|  2.40M|                break;
 1002|  2.40M|            }
 1003|  6.91M|            case jsoncons::cbor::detail::cbor_major_type::map:
  ------------------
  |  Branch (1003:13): [True: 6.91M, False: 31.1M]
  ------------------
 1004|  6.91M|            {
 1005|  6.91M|                begin_object(visitor, info, ec);
 1006|  6.91M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  6.91M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 6.91M]
  |  |  ------------------
  ------------------
 1007|      2|                {
 1008|      2|                    return;
 1009|      2|                }
 1010|  6.91M|                break;
 1011|  6.91M|            }
 1012|  6.91M|            default:
  ------------------
  |  Branch (1012:13): [True: 0, False: 38.0M]
  ------------------
 1013|      0|                break;
 1014|  38.0M|        }
 1015|  38.0M|        other_tags_[item_tag] = false;
 1016|  38.0M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_tagsERNS3_10error_codeE:
 1927|  38.0M|    {
 1928|  38.0M|        auto c = source_.peek();
 1929|  38.0M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  38.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3.73k, False: 38.0M]
  |  |  ------------------
  ------------------
 1930|  3.73k|        {
 1931|  3.73k|            ec = cbor_errc::unexpected_eof;
 1932|  3.73k|            more_ = false;
 1933|  3.73k|            return;
 1934|  3.73k|        }
 1935|  38.0M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1936|       |
 1937|  41.3M|        while (major_type == jsoncons::cbor::detail::cbor_major_type::semantic_tag)
  ------------------
  |  Branch (1937:16): [True: 3.32M, False: 38.0M]
  ------------------
 1938|  3.32M|        {
 1939|  3.32M|            uint64_t val = read_uint64(ec);
 1940|  3.32M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  3.32M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 64, False: 3.32M]
  |  |  ------------------
  ------------------
 1941|     64|            {
 1942|     64|                return;
 1943|     64|            }
 1944|  3.32M|            switch(val)
 1945|  3.32M|            {
 1946|  35.7k|                case 25: // stringref
  ------------------
  |  Branch (1946:17): [True: 35.7k, False: 3.28M]
  ------------------
 1947|  35.7k|                    other_tags_[stringref_tag] = true;
 1948|  35.7k|                    break;
 1949|  8.11k|                case 256: // stringref-namespace
  ------------------
  |  Branch (1949:17): [True: 8.11k, False: 3.31M]
  ------------------
 1950|  8.11k|                    other_tags_[stringref_namespace_tag] = true;
 1951|  8.11k|                    break;
 1952|  3.27M|                default:
  ------------------
  |  Branch (1952:17): [True: 3.27M, False: 43.8k]
  ------------------
 1953|  3.27M|                    other_tags_[item_tag] = true;
 1954|  3.27M|                    raw_tag_ = val;
 1955|  3.27M|                    break;
 1956|  3.32M|            }
 1957|  3.32M|            c = source_.peek();
 1958|  3.32M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  3.32M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 289, False: 3.32M]
  |  |  ------------------
  ------------------
 1959|    289|            {
 1960|    289|                ec = cbor_errc::unexpected_eof;
 1961|    289|                more_ = false;
 1962|    289|                return;
 1963|    289|            }
 1964|  3.32M|            major_type = get_major_type(c.value);
 1965|  3.32M|        }
 1966|  38.0M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE14get_major_typeEh:
 1913|   106M|    {
 1914|   106M|        static constexpr uint8_t major_type_shift = 0x05;
 1915|   106M|        uint8_t value = type >> major_type_shift;
 1916|   106M|        return static_cast<jsoncons::cbor::detail::cbor_major_type>(value);
 1917|   106M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE32get_additional_information_valueEh:
 1920|   100M|    {
 1921|   100M|        static constexpr uint8_t additional_information_mask = (1U << 5) - 1;
 1922|   100M|        uint8_t value = type & additional_information_mask;
 1923|   100M|        return value;
 1924|   100M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11read_uint64ERNS3_10error_codeE:
 1387|  37.5M|    {
 1388|  37.5M|        uint64_t val = 0;
 1389|       |
 1390|  37.5M|        uint8_t initial_b;
 1391|  37.5M|        if (source_.read(&initial_b, 1) == 0)
  ------------------
  |  Branch (1391:13): [True: 110, False: 37.5M]
  ------------------
 1392|    110|        {
 1393|    110|            ec = cbor_errc::unexpected_eof;
 1394|    110|            more_ = false;
 1395|    110|            return 0;
 1396|    110|        }
 1397|  37.5M|        uint8_t info = get_additional_information_value(initial_b);
 1398|  37.5M|        switch (info)
 1399|  37.5M|        {
 1400|  28.6M|            case JSONCONS_EXT_CBOR_0x00_0x17: // Integer 0x00..0x17 (0..23)
  ------------------
  |  |   18|  28.6M|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 244k, False: 37.2M]
  |  |  |  Branch (18:20): [True: 1.22M, False: 36.2M]
  |  |  |  Branch (18:30): [True: 24.2k, False: 37.4M]
  |  |  |  Branch (18:40): [True: 1.68M, False: 35.8M]
  |  |  |  Branch (18:50): [True: 4.24M, False: 33.2M]
  |  |  |  Branch (18:60): [True: 6.42k, False: 37.4M]
  |  |  |  Branch (18:70): [True: 428k, False: 37.0M]
  |  |  |  Branch (18:80): [True: 12.2k, False: 37.4M]
  |  |  |  Branch (18:90): [True: 97.8k, False: 37.4M]
  |  |  |  Branch (18:100): [True: 5.21k, False: 37.4M]
  |  |  |  Branch (18:110): [True: 26.2k, False: 37.4M]
  |  |  |  Branch (18:120): [True: 20.5k, False: 37.4M]
  |  |  |  Branch (18:130): [True: 345k, False: 37.1M]
  |  |  |  Branch (18:140): [True: 2.54k, False: 37.4M]
  |  |  |  Branch (18:150): [True: 8.74k, False: 37.4M]
  |  |  |  Branch (18:160): [True: 14.6k, False: 37.4M]
  |  |  |  Branch (18:170): [True: 342k, False: 37.1M]
  |  |  |  Branch (18:180): [True: 6.58k, False: 37.4M]
  |  |  |  Branch (18:190): [True: 5.82k, False: 37.4M]
  |  |  |  Branch (18:200): [True: 9.63k, False: 37.4M]
  |  |  |  Branch (18:210): [True: 89.8k, False: 37.4M]
  |  |  |  Branch (18:220): [True: 9.62k, False: 37.4M]
  |  |  ------------------
  ------------------
  |  Branch (1400:13): [True: 19.7M, False: 17.7M]
  ------------------
 1401|  28.6M|            {
 1402|  28.6M|                val = info;
 1403|  28.6M|                break;
 1404|   590M|            }
 1405|       |
 1406|   108k|            case 0x18: // Unsigned integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1406:13): [True: 108k, False: 37.3M]
  ------------------
 1407|   108k|            {
 1408|   108k|                uint8_t b;
 1409|   108k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1409:21): [True: 100, False: 108k]
  ------------------
 1410|    100|                {
 1411|    100|                    ec = cbor_errc::unexpected_eof;
 1412|    100|                    more_ = false;
 1413|    100|                    return val;
 1414|    100|                }
 1415|   108k|                val = b;
 1416|   108k|                break;
 1417|   108k|            }
 1418|       |
 1419|  22.8k|            case 0x19: // Unsigned integer (two-byte uint16_t follows)
  ------------------
  |  Branch (1419:13): [True: 22.8k, False: 37.4M]
  ------------------
 1420|  22.8k|            {
 1421|  22.8k|                uint8_t buf[sizeof(uint16_t)];
 1422|  22.8k|                source_.read(buf, sizeof(uint16_t));
 1423|  22.8k|                val = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1424|  22.8k|                break;
 1425|   108k|            }
 1426|       |
 1427|  1.36k|            case 0x1a: // Unsigned integer (four-byte uint32_t follows)
  ------------------
  |  Branch (1427:13): [True: 1.36k, False: 37.4M]
  ------------------
 1428|  1.36k|            {
 1429|  1.36k|                uint8_t buf[sizeof(uint32_t)];
 1430|  1.36k|                source_.read(buf, sizeof(uint32_t));
 1431|  1.36k|                val = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1432|  1.36k|                break;
 1433|   108k|            }
 1434|       |
 1435|  3.99k|            case 0x1b: // Unsigned integer (eight-byte uint64_t follows)
  ------------------
  |  Branch (1435:13): [True: 3.99k, False: 37.4M]
  ------------------
 1436|  3.99k|            {
 1437|  3.99k|                uint8_t buf[sizeof(uint64_t)];
 1438|  3.99k|                source_.read(buf, sizeof(uint64_t));
 1439|  3.99k|                val = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1440|  3.99k|                break;
 1441|   108k|            }
 1442|  8.72M|            default:
  ------------------
  |  Branch (1442:13): [True: 8.72M, False: 28.7M]
  ------------------
 1443|  8.72M|                break;
 1444|  37.5M|        }
 1445|  37.5M|        return val;
 1446|  37.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13handle_stringERNS_24basic_item_event_visitorIcEERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS3_10error_codeE:
 1969|   875k|    {
 1970|   875k|        semantic_tag tag = semantic_tag::none;
 1971|   875k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (1971:13): [True: 4.83k, False: 870k]
  ------------------
 1972|  4.83k|        {
 1973|  4.83k|            switch (raw_tag_)
 1974|  4.83k|            {
 1975|    430|                case 0:
  ------------------
  |  Branch (1975:17): [True: 430, False: 4.40k]
  ------------------
 1976|    430|                    tag = semantic_tag::datetime;
 1977|    430|                    break;
 1978|    336|                case 32:
  ------------------
  |  Branch (1978:17): [True: 336, False: 4.50k]
  ------------------
 1979|    336|                    tag = semantic_tag::uri;
 1980|    336|                    break;
 1981|    197|                case 33:
  ------------------
  |  Branch (1981:17): [True: 197, False: 4.64k]
  ------------------
 1982|    197|                    tag = semantic_tag::base64url;
 1983|    197|                    break;
 1984|    197|                case 34:
  ------------------
  |  Branch (1984:17): [True: 197, False: 4.64k]
  ------------------
 1985|    197|                    tag = semantic_tag::base64;
 1986|    197|                    break;
 1987|  3.67k|                default:
  ------------------
  |  Branch (1987:17): [True: 3.67k, False: 1.16k]
  ------------------
 1988|  3.67k|                    break;
 1989|  4.83k|            }
 1990|  4.83k|            other_tags_[item_tag] = false;
 1991|  4.83k|        }
 1992|   875k|        visitor.string_value(v, tag, *this, ec);
 1993|   875k|        more_ = !cursor_mode_;
 1994|   875k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferC2ERKNS_16byte_string_viewE:
  289|  30.0k|            : bytes(b)
  290|  30.0k|        {
  291|  30.0k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_bufferEEEvT_RNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
 2011|  30.0k|    {
 2012|  30.0k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2012:13): [True: 26.0k, False: 4.09k]
  ------------------
 2013|  26.0k|        {
 2014|  26.0k|            switch (raw_tag_)
 2015|  26.0k|            {
 2016|  2.20k|                case 0x2:
  ------------------
  |  Branch (2016:17): [True: 2.20k, False: 23.7k]
  ------------------
 2017|  2.20k|                {
 2018|  2.20k|                    bytes_buffer_.clear();
 2019|  2.20k|                    read(bytes_buffer_,ec);
 2020|  2.20k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.20k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.20k]
  |  |  ------------------
  ------------------
 2021|      0|                    {
 2022|      0|                        more_ = false;
 2023|      0|                        return;
 2024|      0|                    }
 2025|  2.20k|                    bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 2026|  2.20k|                    text_buffer_.clear();
 2027|  2.20k|                    n.write_string(text_buffer_);
 2028|  2.20k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2029|  2.20k|                    more_ = !cursor_mode_;
 2030|  2.20k|                    break;
 2031|  2.20k|                }
 2032|  2.07k|                case 0x3:
  ------------------
  |  Branch (2032:17): [True: 2.07k, False: 23.9k]
  ------------------
 2033|  2.07k|                {
 2034|  2.07k|                    bytes_buffer_.clear();
 2035|  2.07k|                    read(bytes_buffer_,ec);
 2036|  2.07k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.07k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.07k]
  |  |  ------------------
  ------------------
 2037|      0|                    {
 2038|      0|                        more_ = false;
 2039|      0|                        return;
 2040|      0|                    }
 2041|  2.07k|                    bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 2042|  2.07k|                    n = -1 - n;
 2043|  2.07k|                    text_buffer_.clear();
 2044|  2.07k|                    n.write_string(text_buffer_);
 2045|  2.07k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2046|  2.07k|                    more_ = !cursor_mode_;
 2047|  2.07k|                    break;
 2048|  2.07k|                }
 2049|    227|                case 0x15:
  ------------------
  |  Branch (2049:17): [True: 227, False: 25.7k]
  ------------------
 2050|    227|                {
 2051|    227|                    read(bytes_buffer_,ec);
 2052|    227|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    227|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 227]
  |  |  ------------------
  ------------------
 2053|      0|                    {
 2054|      0|                        more_ = false;
 2055|      0|                        return;
 2056|      0|                    }
 2057|    227|                    visitor.byte_string_value(bytes_buffer_, semantic_tag::base64url, *this, ec);
 2058|    227|                    more_ = !cursor_mode_;
 2059|    227|                    break;
 2060|    227|                }
 2061|    206|                case 0x16:
  ------------------
  |  Branch (2061:17): [True: 206, False: 25.7k]
  ------------------
 2062|    206|                {
 2063|    206|                    read(bytes_buffer_,ec);
 2064|    206|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    206|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 206]
  |  |  ------------------
  ------------------
 2065|      0|                    {
 2066|      0|                        more_ = false;
 2067|      0|                        return;
 2068|      0|                    }
 2069|    206|                    visitor.byte_string_value(bytes_buffer_, semantic_tag::base64, *this, ec);
 2070|    206|                    more_ = !cursor_mode_;
 2071|    206|                    break;
 2072|    206|                }
 2073|    289|                case 0x17:
  ------------------
  |  Branch (2073:17): [True: 289, False: 25.7k]
  ------------------
 2074|    289|                {
 2075|    289|                    read(bytes_buffer_,ec);
 2076|    289|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    289|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 289]
  |  |  ------------------
  ------------------
 2077|      0|                    {
 2078|      0|                        more_ = false;
 2079|      0|                        return;
 2080|      0|                    }
 2081|    289|                    visitor.byte_string_value(bytes_buffer_, semantic_tag::base16, *this, ec);
 2082|    289|                    more_ = !cursor_mode_;
 2083|    289|                    break;
 2084|    289|                }
 2085|    275|                case 0x40:
  ------------------
  |  Branch (2085:17): [True: 275, False: 25.7k]
  ------------------
 2086|    275|                {
 2087|    275|                    array_tag_ = typed_array_tags::uint8;
 2088|    275|                    array_buffer_.clear();
 2089|    275|                    read(array_buffer_,ec);
 2090|    275|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    275|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 275]
  |  |  ------------------
  ------------------
 2091|      0|                    {
 2092|      0|                        more_ = false;
 2093|      0|                        return;
 2094|      0|                    }
 2095|    275|                    auto ta = typed_array_cast<const uint8_t>(array_buffer_);
 2096|    275|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2096:25): [True: 0, False: 275]
  ------------------
 2097|      0|                    {
 2098|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2098:29): [True: 0, False: 0]
  ------------------
 2099|      0|                        {
 2100|      0|                            ec = cbor_errc::bad_extents;
 2101|      0|                            more_ = false;
 2102|      0|                            return;
 2103|      0|                        }
 2104|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<const uint8_t>>(ta, extents_, order_);
 2105|      0|                    }
 2106|    275|                    else
 2107|    275|                    {
 2108|    275|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<const uint8_t>>(ta);
 2109|    275|                    }
 2110|    275|                    typed_array_iter_->next(visitor, *this, ec);
 2111|    275|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2112|    275|                    more_ = !cursor_mode_;
 2113|    275|                    break;
 2114|    275|                }
 2115|  1.04k|                case 0x44:
  ------------------
  |  Branch (2115:17): [True: 1.04k, False: 24.9k]
  ------------------
 2116|  1.04k|                {
 2117|  1.04k|                    array_tag_ = typed_array_tags::uint8;
 2118|  1.04k|                    typed_array_tag_ = semantic_tag::clamped;
 2119|  1.04k|                    array_buffer_.clear();
 2120|  1.04k|                    read(array_buffer_,ec);
 2121|  1.04k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.04k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.04k]
  |  |  ------------------
  ------------------
 2122|      0|                    {
 2123|      0|                        more_ = false;
 2124|      0|                        return;
 2125|      0|                    }
 2126|  1.04k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer_);
 2127|  1.04k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2127:25): [True: 0, False: 1.04k]
  ------------------
 2128|      0|                    {
 2129|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2129:29): [True: 0, False: 0]
  ------------------
 2130|      0|                        {
 2131|      0|                            ec = cbor_errc::bad_extents;
 2132|      0|                            more_ = false;
 2133|      0|                            return;
 2134|      0|                        }
 2135|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<const uint8_t>>(ta, extents_, order_);
 2136|      0|                    }
 2137|  1.04k|                    else
 2138|  1.04k|                    {
 2139|  1.04k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<const uint8_t>>(ta, semantic_tag::clamped);
 2140|  1.04k|                    }
 2141|  1.04k|                    typed_array_iter_->next(visitor, *this, ec);
 2142|  1.04k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2143|  1.04k|                    more_ = !cursor_mode_;
 2144|  1.04k|                    break;
 2145|  1.04k|                }
 2146|  2.08k|                case 0x41:
  ------------------
  |  Branch (2146:17): [True: 2.08k, False: 23.9k]
  ------------------
 2147|  2.61k|                case 0x45:
  ------------------
  |  Branch (2147:17): [True: 524, False: 25.4k]
  ------------------
 2148|  2.61k|                {
 2149|  2.61k|                    array_tag_ = typed_array_tags::uint16;
 2150|  2.61k|                    array_buffer_.clear();
 2151|  2.61k|                    read(array_buffer_,ec);
 2152|  2.61k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.61k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.61k]
  |  |  ------------------
  ------------------
 2153|      0|                    {
 2154|      0|                        more_ = false;
 2155|      0|                        return;
 2156|      0|                    }
 2157|  2.61k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2158|  2.61k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2159|  2.61k|                    auto ta = typed_array_cast<uint16_t>(array_buffer_);
 2160|  2.61k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2160:25): [True: 2.08k, False: 524]
  ------------------
 2161|  2.08k|                    {
 2162|   833k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2162:49): [True: 831k, False: 2.08k]
  ------------------
 2163|   831k|                        {
 2164|   831k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2165|   831k|                        }
 2166|  2.08k|                    }
 2167|  2.61k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2167:25): [True: 0, False: 2.61k]
  ------------------
 2168|      0|                    {
 2169|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2169:29): [True: 0, False: 0]
  ------------------
 2170|      0|                        {
 2171|      0|                            ec = cbor_errc::bad_extents;
 2172|      0|                            more_ = false;
 2173|      0|                            return;
 2174|      0|                        }
 2175|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<uint16_t>>(ta, extents_, order_);
 2176|      0|                    }
 2177|  2.61k|                    else
 2178|  2.61k|                    {
 2179|  2.61k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<uint16_t>>(ta);
 2180|  2.61k|                    }
 2181|  2.61k|                    typed_array_iter_->next(visitor, *this, ec);
 2182|  2.61k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2183|  2.61k|                    more_ = !cursor_mode_;
 2184|  2.61k|                    break;
 2185|  2.61k|                }
 2186|    744|                case 0x42:
  ------------------
  |  Branch (2186:17): [True: 744, False: 25.2k]
  ------------------
 2187|  1.10k|                case 0x46:
  ------------------
  |  Branch (2187:17): [True: 356, False: 25.6k]
  ------------------
 2188|  1.10k|                {
 2189|  1.10k|                    array_tag_ = typed_array_tags::uint32;
 2190|  1.10k|                    array_buffer_.clear();
 2191|  1.10k|                    read(array_buffer_,ec);
 2192|  1.10k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.10k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.10k]
  |  |  ------------------
  ------------------
 2193|      0|                    {
 2194|      0|                        more_ = false;
 2195|      0|                        return;
 2196|      0|                    }
 2197|  1.10k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2198|  1.10k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2199|  1.10k|                    auto ta = typed_array_cast<uint32_t>(array_buffer_);
 2200|  1.10k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2200:25): [True: 744, False: 356]
  ------------------
 2201|    744|                    {
 2202|  2.96M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2202:49): [True: 2.96M, False: 744]
  ------------------
 2203|  2.96M|                        {
 2204|  2.96M|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2205|  2.96M|                        }
 2206|    744|                    }
 2207|  1.10k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2207:25): [True: 0, False: 1.10k]
  ------------------
 2208|      0|                    {
 2209|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2209:29): [True: 0, False: 0]
  ------------------
 2210|      0|                        {
 2211|      0|                            ec = cbor_errc::bad_extents;
 2212|      0|                            more_ = false;
 2213|      0|                            return;
 2214|      0|                        }
 2215|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<uint32_t>>(ta, extents_, order_);
 2216|      0|                    }
 2217|  1.10k|                    else
 2218|  1.10k|                    {
 2219|  1.10k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<uint32_t>>(ta);
 2220|  1.10k|                    }
 2221|  1.10k|                    typed_array_iter_->next(visitor, *this, ec);
 2222|  1.10k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2223|  1.10k|                    more_ = !cursor_mode_;
 2224|  1.10k|                    break;
 2225|  1.10k|                }
 2226|  1.57k|                case 0x43:
  ------------------
  |  Branch (2226:17): [True: 1.57k, False: 24.4k]
  ------------------
 2227|  1.83k|                case 0x47:
  ------------------
  |  Branch (2227:17): [True: 259, False: 25.7k]
  ------------------
 2228|  1.83k|                {
 2229|  1.83k|                    array_tag_ = typed_array_tags::uint64;
 2230|  1.83k|                    array_buffer_.clear();
 2231|  1.83k|                    read(array_buffer_,ec);
 2232|  1.83k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.83k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.83k]
  |  |  ------------------
  ------------------
 2233|      0|                    {
 2234|      0|                        more_ = false;
 2235|      0|                        return;
 2236|      0|                    }
 2237|  1.83k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2238|  1.83k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2239|  1.83k|                    auto ta = typed_array_cast<uint64_t>(array_buffer_);
 2240|  1.83k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2240:25): [True: 1.57k, False: 259]
  ------------------
 2241|  1.57k|                    {
 2242|   358k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2242:49): [True: 356k, False: 1.57k]
  ------------------
 2243|   356k|                        {
 2244|   356k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2245|   356k|                        }
 2246|  1.57k|                    }
 2247|  1.83k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2247:25): [True: 0, False: 1.83k]
  ------------------
 2248|      0|                    {
 2249|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2249:29): [True: 0, False: 0]
  ------------------
 2250|      0|                        {
 2251|      0|                            ec = cbor_errc::bad_extents;
 2252|      0|                            more_ = false;
 2253|      0|                            return;
 2254|      0|                        }
 2255|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<uint64_t>>(ta, extents_, order_);
 2256|      0|                    }
 2257|  1.83k|                    else
 2258|  1.83k|                    {
 2259|  1.83k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<uint64_t>>(ta);
 2260|  1.83k|                    }
 2261|  1.83k|                    typed_array_iter_->next(visitor, *this, ec);
 2262|  1.83k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2263|  1.83k|                    more_ = !cursor_mode_;
 2264|  1.83k|                    break;
 2265|  1.83k|                }
 2266|    286|                case 0x48:
  ------------------
  |  Branch (2266:17): [True: 286, False: 25.7k]
  ------------------
 2267|    286|                {
 2268|    286|                    array_tag_ = typed_array_tags::int8;
 2269|    286|                    array_buffer_.clear();
 2270|    286|                    read(array_buffer_,ec);
 2271|    286|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    286|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 286]
  |  |  ------------------
  ------------------
 2272|      0|                    {
 2273|      0|                        more_ = false;
 2274|      0|                        return;
 2275|      0|                    }
 2276|    286|                    auto ta = typed_array_cast<int8_t>(array_buffer_);
 2277|    286|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2277:25): [True: 0, False: 286]
  ------------------
 2278|      0|                    {
 2279|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2279:29): [True: 0, False: 0]
  ------------------
 2280|      0|                        {
 2281|      0|                            ec = cbor_errc::bad_extents;
 2282|      0|                            more_ = false;
 2283|      0|                            return;
 2284|      0|                        }
 2285|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<int8_t>>(ta, extents_, order_);
 2286|      0|                    }
 2287|    286|                    else
 2288|    286|                    {
 2289|    286|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<int8_t>>(ta);
 2290|    286|                    }
 2291|    286|                    typed_array_iter_->next(visitor, *this, ec);
 2292|    286|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2293|    286|                    more_ = !cursor_mode_;
 2294|    286|                    break;
 2295|    286|                }
 2296|  1.00k|                case 0x49:
  ------------------
  |  Branch (2296:17): [True: 1.00k, False: 24.9k]
  ------------------
 2297|  1.69k|                case 0x4d:
  ------------------
  |  Branch (2297:17): [True: 686, False: 25.3k]
  ------------------
 2298|  1.69k|                {
 2299|  1.69k|                    array_tag_ = typed_array_tags::int16;
 2300|  1.69k|                    array_buffer_.clear();
 2301|  1.69k|                    read(array_buffer_,ec);
 2302|  1.69k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.69k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.69k]
  |  |  ------------------
  ------------------
 2303|      0|                    {
 2304|      0|                        more_ = false;
 2305|      0|                        return;
 2306|      0|                    }
 2307|  1.69k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2308|  1.69k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2309|  1.69k|                    auto ta = typed_array_cast<int16_t>(array_buffer_);
 2310|  1.69k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2310:25): [True: 1.00k, False: 686]
  ------------------
 2311|  1.00k|                    {
 2312|  1.17M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2312:49): [True: 1.17M, False: 1.00k]
  ------------------
 2313|  1.17M|                        {
 2314|  1.17M|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2315|  1.17M|                        }
 2316|  1.00k|                    }
 2317|  1.69k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2317:25): [True: 0, False: 1.69k]
  ------------------
 2318|      0|                    {
 2319|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2319:29): [True: 0, False: 0]
  ------------------
 2320|      0|                        {
 2321|      0|                            ec = cbor_errc::bad_extents;
 2322|      0|                            more_ = false;
 2323|      0|                            return;
 2324|      0|                        }
 2325|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<int16_t>>(ta, extents_, order_);
 2326|      0|                    }
 2327|  1.69k|                    else
 2328|  1.69k|                    {
 2329|  1.69k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<int16_t>>(ta);
 2330|  1.69k|                    }
 2331|  1.69k|                    typed_array_iter_->next(visitor, *this, ec);
 2332|  1.69k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2333|  1.69k|                    more_ = !cursor_mode_;
 2334|  1.69k|                    break;
 2335|  1.69k|                }
 2336|  1.69k|                case 0x4a:
  ------------------
  |  Branch (2336:17): [True: 1.69k, False: 24.3k]
  ------------------
 2337|  2.12k|                case 0x4e:
  ------------------
  |  Branch (2337:17): [True: 434, False: 25.5k]
  ------------------
 2338|  2.12k|                {
 2339|  2.12k|                    array_tag_ = typed_array_tags::int32;
 2340|  2.12k|                    array_buffer_.clear();
 2341|  2.12k|                    read(array_buffer_,ec);
 2342|  2.12k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.12k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.12k]
  |  |  ------------------
  ------------------
 2343|      0|                    {
 2344|      0|                        more_ = false;
 2345|      0|                        return;
 2346|      0|                    }
 2347|  2.12k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2348|  2.12k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2349|  2.12k|                    auto ta = typed_array_cast<int32_t>(array_buffer_);
 2350|  2.12k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2350:25): [True: 1.69k, False: 434]
  ------------------
 2351|  1.69k|                    {
 2352|  2.40M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2352:49): [True: 2.40M, False: 1.69k]
  ------------------
 2353|  2.40M|                        {
 2354|  2.40M|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2355|  2.40M|                        }
 2356|  1.69k|                    }
 2357|  2.12k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2357:25): [True: 0, False: 2.12k]
  ------------------
 2358|      0|                    {
 2359|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2359:29): [True: 0, False: 0]
  ------------------
 2360|      0|                        {
 2361|      0|                            ec = cbor_errc::bad_extents;
 2362|      0|                            more_ = false;
 2363|      0|                            return;
 2364|      0|                        }
 2365|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<int32_t>>(ta, extents_, order_);
 2366|      0|                    }
 2367|  2.12k|                    else
 2368|  2.12k|                    {
 2369|  2.12k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<int32_t>>(ta);
 2370|  2.12k|                    }
 2371|  2.12k|                    typed_array_iter_->next(visitor, *this, ec);
 2372|  2.12k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2373|  2.12k|                    more_ = !cursor_mode_;
 2374|  2.12k|                    break;
 2375|  2.12k|                }
 2376|    792|                case 0x4b:
  ------------------
  |  Branch (2376:17): [True: 792, False: 25.2k]
  ------------------
 2377|  1.03k|                case 0x4f:
  ------------------
  |  Branch (2377:17): [True: 247, False: 25.7k]
  ------------------
 2378|  1.03k|                {
 2379|  1.03k|                    array_tag_ = typed_array_tags::int64;
 2380|  1.03k|                    array_buffer_.clear();
 2381|  1.03k|                    read(array_buffer_,ec);
 2382|  1.03k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.03k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.03k]
  |  |  ------------------
  ------------------
 2383|      0|                    {
 2384|      0|                        more_ = false;
 2385|      0|                        return;
 2386|      0|                    }
 2387|  1.03k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2388|  1.03k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2389|  1.03k|                    auto ta = typed_array_cast<int64_t>(array_buffer_);
 2390|  1.03k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2390:25): [True: 792, False: 247]
  ------------------
 2391|    792|                    {
 2392|   583k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2392:49): [True: 582k, False: 792]
  ------------------
 2393|   582k|                        {
 2394|   582k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2395|   582k|                        }
 2396|    792|                    }
 2397|  1.03k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2397:25): [True: 0, False: 1.03k]
  ------------------
 2398|      0|                    {
 2399|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2399:29): [True: 0, False: 0]
  ------------------
 2400|      0|                        {
 2401|      0|                            ec = cbor_errc::bad_extents;
 2402|      0|                            more_ = false;
 2403|      0|                            return;
 2404|      0|                        }
 2405|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<int64_t>>(ta, extents_, order_);
 2406|      0|                    }
 2407|  1.03k|                    else
 2408|  1.03k|                    {
 2409|  1.03k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<int64_t>>(ta);
 2410|  1.03k|                    }
 2411|  1.03k|                    typed_array_iter_->next(visitor, *this, ec);
 2412|  1.03k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2413|  1.03k|                    more_ = !cursor_mode_;
 2414|  1.03k|                    break;
 2415|  1.03k|                }
 2416|    522|                case 0x50:
  ------------------
  |  Branch (2416:17): [True: 522, False: 25.4k]
  ------------------
 2417|  5.17k|                case 0x54:
  ------------------
  |  Branch (2417:17): [True: 4.65k, False: 21.3k]
  ------------------
 2418|  5.17k|                {
 2419|  5.17k|                    array_tag_ = typed_array_tags::half_float;
 2420|  5.17k|                    array_buffer_.clear();
 2421|  5.17k|                    read(array_buffer_,ec);
 2422|  5.17k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  5.17k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5.17k]
  |  |  ------------------
  ------------------
 2423|      0|                    {
 2424|      0|                        more_ = false;
 2425|      0|                        return;
 2426|      0|                    }
 2427|  5.17k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2428|  5.17k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2429|  5.17k|                    auto ta = typed_array_cast<uint16_t>(array_buffer_);
 2430|  5.17k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2430:25): [True: 522, False: 4.65k]
  ------------------
 2431|    522|                    {
 2432|  1.74M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2432:49): [True: 1.74M, False: 522]
  ------------------
 2433|  1.74M|                        {
 2434|  1.74M|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2435|  1.74M|                        }
 2436|    522|                    }
 2437|  5.17k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2437:25): [True: 0, False: 5.17k]
  ------------------
 2438|      0|                    {
 2439|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2439:29): [True: 0, False: 0]
  ------------------
 2440|      0|                        {
 2441|      0|                            ec = cbor_errc::bad_extents;
 2442|      0|                            more_ = false;
 2443|      0|                            return;
 2444|      0|                        }
 2445|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<uint16_t>>(ta, extents_, order_);
 2446|      0|                    }
 2447|  5.17k|                    else
 2448|  5.17k|                    {
 2449|  5.17k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<uint16_t,decode_half>>(ta);
 2450|  5.17k|                    }
 2451|  5.17k|                    typed_array_iter_->next(visitor, *this, ec);
 2452|  5.17k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2453|  5.17k|                    more_ = !cursor_mode_;
 2454|  5.17k|                    break;
 2455|  5.17k|                }
 2456|  1.23k|                case 0x51:
  ------------------
  |  Branch (2456:17): [True: 1.23k, False: 24.7k]
  ------------------
 2457|  1.84k|                case 0x55:
  ------------------
  |  Branch (2457:17): [True: 603, False: 25.3k]
  ------------------
 2458|  1.84k|                {
 2459|  1.84k|                    array_tag_ = typed_array_tags::float32;
 2460|  1.84k|                    array_buffer_.clear();
 2461|  1.84k|                    read(array_buffer_,ec);
 2462|  1.84k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.84k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.84k]
  |  |  ------------------
  ------------------
 2463|      0|                    {
 2464|      0|                        more_ = false;
 2465|      0|                        return;
 2466|      0|                    }
 2467|  1.84k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2468|  1.84k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2469|  1.84k|                    auto ta = typed_array_cast<float>(array_buffer_);
 2470|  1.84k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2470:25): [True: 1.23k, False: 603]
  ------------------
 2471|  1.23k|                    {
 2472|   547k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2472:49): [True: 546k, False: 1.23k]
  ------------------
 2473|   546k|                        {
 2474|   546k|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2475|   546k|                        }
 2476|  1.23k|                    }
 2477|  1.84k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2477:25): [True: 0, False: 1.84k]
  ------------------
 2478|      0|                    {
 2479|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2479:29): [True: 0, False: 0]
  ------------------
 2480|      0|                        {
 2481|      0|                            ec = cbor_errc::bad_extents;
 2482|      0|                            more_ = false;
 2483|      0|                            return;
 2484|      0|                        }
 2485|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<float>>(ta, extents_, order_);
 2486|      0|                    }
 2487|  1.84k|                    else
 2488|  1.84k|                    {
 2489|  1.84k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<float>>(ta);
 2490|  1.84k|                    }
 2491|  1.84k|                    typed_array_iter_->next(visitor, *this, ec);
 2492|  1.84k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2493|  1.84k|                    more_ = !cursor_mode_;
 2494|  1.84k|                    break;
 2495|  1.84k|                }
 2496|    874|                case 0x52:
  ------------------
  |  Branch (2496:17): [True: 874, False: 25.1k]
  ------------------
 2497|  1.22k|                case 0x56:
  ------------------
  |  Branch (2497:17): [True: 352, False: 25.6k]
  ------------------
 2498|  1.22k|                {
 2499|  1.22k|                    array_tag_ = typed_array_tags::float64 ;
 2500|  1.22k|                    array_buffer_.clear();
 2501|  1.22k|                    read(array_buffer_,ec);
 2502|  1.22k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.22k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.22k]
  |  |  ------------------
  ------------------
 2503|      0|                    {
 2504|      0|                        more_ = false;
 2505|      0|                        return;
 2506|      0|                    }
 2507|  1.22k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2508|  1.22k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2509|  1.22k|                    auto ta = typed_array_cast<double>(array_buffer_);
 2510|  1.22k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2510:25): [True: 874, False: 352]
  ------------------
 2511|    874|                    {
 2512|   249k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2512:49): [True: 248k, False: 874]
  ------------------
 2513|   248k|                        {
 2514|   248k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2515|   248k|                        }
 2516|    874|                    }
 2517|  1.22k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2517:25): [True: 0, False: 1.22k]
  ------------------
 2518|      0|                    {
 2519|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2519:29): [True: 0, False: 0]
  ------------------
 2520|      0|                        {
 2521|      0|                            ec = cbor_errc::bad_extents;
 2522|      0|                            more_ = false;
 2523|      0|                            return;
 2524|      0|                        }
 2525|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<double>>(ta, extents_, order_);
 2526|      0|                    }
 2527|  1.22k|                    else
 2528|  1.22k|                    {
 2529|  1.22k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<double>>(ta);
 2530|  1.22k|                    }
 2531|  1.22k|                    typed_array_iter_->next(visitor, *this, ec);
 2532|  1.22k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2533|  1.22k|                    more_ = !cursor_mode_;
 2534|  1.22k|                    break;
 2535|  1.22k|                }
 2536|    747|                default:
  ------------------
  |  Branch (2536:17): [True: 747, False: 25.2k]
  ------------------
 2537|    747|                {
 2538|    747|                    read(bytes_buffer_,ec);
 2539|    747|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    747|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 747]
  |  |  ------------------
  ------------------
 2540|      0|                    {
 2541|      0|                        more_ = false;
 2542|      0|                        return;
 2543|      0|                    }
 2544|    747|                    visitor.byte_string_value(bytes_buffer_, raw_tag_, *this, ec);
 2545|    747|                    more_ = !cursor_mode_;
 2546|    747|                    break;
 2547|    747|                }
 2548|  26.0k|            }
 2549|  26.0k|            other_tags_[item_tag] = false;
 2550|  26.0k|        }
 2551|  4.09k|        else
 2552|  4.09k|        {
 2553|  4.09k|            read(bytes_buffer_,ec);
 2554|  4.09k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  4.09k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 4.09k]
  |  |  ------------------
  ------------------
 2555|      0|            {
 2556|      0|                return;
 2557|      0|            }
 2558|  4.09k|            visitor.byte_string_value(bytes_buffer_, semantic_tag::none, *this, ec);
 2559|  4.09k|            more_ = !cursor_mode_;
 2560|  4.09k|        }
 2561|  30.0k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  294|  30.0k|        {
  295|  30.0k|            c.clear();
  296|  30.0k|            c.reserve(bytes.size());
  297|  30.0k|            for (auto b : bytes)
  ------------------
  |  Branch (297:25): [True: 74.2M, False: 30.0k]
  ------------------
  298|  74.2M|            {
  299|  74.2M|                c.push_back(b);
  300|  74.2M|            }
  301|  30.0k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26get_typed_array_endiannessEh:
 1997|  40.9k|    {
 1998|  40.9k|        return ((tag & detail::cbor_array_tags_e_mask) >> detail::cbor_array_tags_e_shift) == 0 ? jsoncons::endian::big : jsoncons::endian::little; 
  ------------------
  |  Branch (1998:16): [True: 26.6k, False: 14.2k]
  ------------------
 1999|  40.9k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10read_int64ERNS3_10error_codeE:
 1449|  3.53M|    {
 1450|  3.53M|        int64_t val = 0;
 1451|       |
 1452|  3.53M|        auto ch = source_.peek();
 1453|  3.53M|        if (ch.eof)
  ------------------
  |  Branch (1453:13): [True: 0, False: 3.53M]
  ------------------
 1454|      0|        {
 1455|      0|            ec = cbor_errc::unexpected_eof;
 1456|      0|            more_ = false;
 1457|      0|            return val;
 1458|      0|        }
 1459|       |
 1460|  3.53M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(ch.value);
 1461|  3.53M|        uint8_t info = get_additional_information_value(ch.value);
 1462|  3.53M|        switch (major_type)
 1463|  3.53M|        {
 1464|  3.53M|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1464:13): [True: 3.53M, False: 0]
  ------------------
 1465|  3.53M|                source_.ignore(1);
 1466|  3.53M|                switch (info)
  ------------------
  |  Branch (1466:25): [True: 2.71M, False: 813k]
  ------------------
 1467|  3.53M|                {
 1468|  2.64M|                    case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  2.64M|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 8.11k, False: 3.52M]
  |  |  |  Branch (18:20): [True: 10.6k, False: 3.52M]
  |  |  |  Branch (18:30): [True: 1.24k, False: 3.53M]
  |  |  |  Branch (18:40): [True: 3.90k, False: 3.52M]
  |  |  |  Branch (18:50): [True: 4.45k, False: 3.52M]
  |  |  |  Branch (18:60): [True: 4.45k, False: 3.52M]
  |  |  |  Branch (18:70): [True: 395k, False: 3.13M]
  |  |  |  Branch (18:80): [True: 827k, False: 2.70M]
  |  |  |  Branch (18:90): [True: 26.1k, False: 3.50M]
  |  |  |  Branch (18:100): [True: 1.17k, False: 3.53M]
  |  |  |  Branch (18:110): [True: 997, False: 3.53M]
  |  |  |  Branch (18:120): [True: 2.37k, False: 3.53M]
  |  |  |  Branch (18:130): [True: 616k, False: 2.91M]
  |  |  |  Branch (18:140): [True: 48.1k, False: 3.48M]
  |  |  |  Branch (18:150): [True: 16.7k, False: 3.51M]
  |  |  |  Branch (18:160): [True: 16.0k, False: 3.51M]
  |  |  |  Branch (18:170): [True: 8.02k, False: 3.52M]
  |  |  |  Branch (18:180): [True: 7.03k, False: 3.52M]
  |  |  |  Branch (18:190): [True: 1.92k, False: 3.53M]
  |  |  |  Branch (18:200): [True: 2.30k, False: 3.53M]
  |  |  |  Branch (18:210): [True: 2.49k, False: 3.53M]
  |  |  |  Branch (18:220): [True: 21.6k, False: 3.51M]
  |  |  ------------------
  ------------------
  |  Branch (1468:21): [True: 612k, False: 2.92M]
  ------------------
 1469|  2.64M|                    {
 1470|  2.64M|                        val = static_cast<int8_t>(- 1 - info);
 1471|  2.64M|                        break;
 1472|  40.2M|                    }
 1473|  69.9k|                    case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1473:21): [True: 69.9k, False: 3.46M]
  ------------------
 1474|  69.9k|                        {
 1475|  69.9k|                            uint8_t b;
 1476|  69.9k|                            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1476:33): [True: 1, False: 69.9k]
  ------------------
 1477|      1|                            {
 1478|      1|                                ec = cbor_errc::unexpected_eof;
 1479|      1|                                more_ = false;
 1480|      1|                                return val;
 1481|      1|                            }
 1482|  69.9k|                            val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1483|  69.9k|                            break;
 1484|  69.9k|                        }
 1485|       |
 1486|  1.64k|                    case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1486:21): [True: 1.64k, False: 3.53M]
  ------------------
 1487|  1.64k|                        {
 1488|  1.64k|                            uint8_t buf[sizeof(uint16_t)];
 1489|  1.64k|                            if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1489:33): [True: 5, False: 1.64k]
  ------------------
 1490|      5|                            {
 1491|      5|                                ec = cbor_errc::unexpected_eof;
 1492|      5|                                more_ = false;
 1493|      5|                                return val;
 1494|      5|                            }
 1495|  1.64k|                            auto x = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1496|  1.64k|                            val = static_cast<int64_t>(-1)- x;
 1497|  1.64k|                            break;
 1498|  1.64k|                        }
 1499|       |
 1500|  4.56k|                    case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1500:21): [True: 4.56k, False: 3.52M]
  ------------------
 1501|  4.56k|                        {
 1502|  4.56k|                            uint8_t buf[sizeof(uint32_t)];
 1503|  4.56k|                            if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1503:33): [True: 4, False: 4.56k]
  ------------------
 1504|      4|                            {
 1505|      4|                                ec = cbor_errc::unexpected_eof;
 1506|      4|                                more_ = false;
 1507|      4|                                return val;
 1508|      4|                            }
 1509|  4.56k|                            auto x = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1510|  4.56k|                            val = static_cast<int64_t>(-1)- x;
 1511|  4.56k|                            break;
 1512|  4.56k|                        }
 1513|       |
 1514|  1.42k|                    case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1514:21): [True: 1.42k, False: 3.53M]
  ------------------
 1515|  1.42k|                        {
 1516|  1.42k|                            uint8_t buf[sizeof(uint64_t)];
 1517|  1.42k|                            if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1517:33): [True: 9, False: 1.41k]
  ------------------
 1518|      9|                            {
 1519|      9|                                ec = cbor_errc::unexpected_eof;
 1520|      9|                                more_ = false;
 1521|      9|                                return val;
 1522|      9|                            }
 1523|  1.41k|                            auto x = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1524|  1.41k|                            val = static_cast<int64_t>(-1)- static_cast<int64_t>(x);
 1525|  1.41k|                            break;
 1526|  1.42k|                        }
 1527|  3.53M|                }
 1528|  3.53M|                break;
 1529|       |
 1530|  3.53M|                case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1530:17): [True: 0, False: 3.53M]
  ------------------
 1531|      0|                {
 1532|      0|                    uint64_t x = read_uint64(ec);
 1533|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1534|      0|                    {
 1535|      0|                        return 0;
 1536|      0|                    }
 1537|      0|                    if (x <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1537:25): [True: 0, False: 0]
  ------------------
 1538|      0|                    {
 1539|      0|                        val = x;
 1540|      0|                    }
 1541|      0|                    else
 1542|      0|                    {
 1543|       |                        // error;
 1544|      0|                    }
 1545|       |                    
 1546|      0|                    break;
 1547|      0|                }
 1548|      0|                break;
 1549|      0|            default:
  ------------------
  |  Branch (1549:13): [True: 0, False: 3.53M]
  ------------------
 1550|      0|                break;
 1551|  3.53M|        }
 1552|       |
 1553|  3.53M|        return val;
 1554|  3.53M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceC2EPS8_:
  309|  10.3M|            : source(source)
  310|  10.3M|        {
  311|  10.3M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_sourceEEEvT_RNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
 2011|  10.3M|    {
 2012|  10.3M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2012:13): [True: 123k, False: 10.2M]
  ------------------
 2013|   123k|        {
 2014|   123k|            switch (raw_tag_)
 2015|   123k|            {
 2016|  27.2k|                case 0x2:
  ------------------
  |  Branch (2016:17): [True: 27.2k, False: 96.4k]
  ------------------
 2017|  27.2k|                {
 2018|  27.2k|                    bytes_buffer_.clear();
 2019|  27.2k|                    read(bytes_buffer_,ec);
 2020|  27.2k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  27.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 6, False: 27.2k]
  |  |  ------------------
  ------------------
 2021|      6|                    {
 2022|      6|                        more_ = false;
 2023|      6|                        return;
 2024|      6|                    }
 2025|  27.2k|                    bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 2026|  27.2k|                    text_buffer_.clear();
 2027|  27.2k|                    n.write_string(text_buffer_);
 2028|  27.2k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2029|  27.2k|                    more_ = !cursor_mode_;
 2030|  27.2k|                    break;
 2031|  27.2k|                }
 2032|  2.71k|                case 0x3:
  ------------------
  |  Branch (2032:17): [True: 2.71k, False: 120k]
  ------------------
 2033|  2.71k|                {
 2034|  2.71k|                    bytes_buffer_.clear();
 2035|  2.71k|                    read(bytes_buffer_,ec);
 2036|  2.71k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.71k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 9, False: 2.70k]
  |  |  ------------------
  ------------------
 2037|      9|                    {
 2038|      9|                        more_ = false;
 2039|      9|                        return;
 2040|      9|                    }
 2041|  2.70k|                    bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 2042|  2.70k|                    n = -1 - n;
 2043|  2.70k|                    text_buffer_.clear();
 2044|  2.70k|                    n.write_string(text_buffer_);
 2045|  2.70k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2046|  2.70k|                    more_ = !cursor_mode_;
 2047|  2.70k|                    break;
 2048|  2.71k|                }
 2049|  1.15k|                case 0x15:
  ------------------
  |  Branch (2049:17): [True: 1.15k, False: 122k]
  ------------------
 2050|  1.15k|                {
 2051|  1.15k|                    read(bytes_buffer_,ec);
 2052|  1.15k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.15k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 1.15k]
  |  |  ------------------
  ------------------
 2053|      3|                    {
 2054|      3|                        more_ = false;
 2055|      3|                        return;
 2056|      3|                    }
 2057|  1.15k|                    visitor.byte_string_value(bytes_buffer_, semantic_tag::base64url, *this, ec);
 2058|  1.15k|                    more_ = !cursor_mode_;
 2059|  1.15k|                    break;
 2060|  1.15k|                }
 2061|    841|                case 0x16:
  ------------------
  |  Branch (2061:17): [True: 841, False: 122k]
  ------------------
 2062|    841|                {
 2063|    841|                    read(bytes_buffer_,ec);
 2064|    841|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    841|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 11, False: 830]
  |  |  ------------------
  ------------------
 2065|     11|                    {
 2066|     11|                        more_ = false;
 2067|     11|                        return;
 2068|     11|                    }
 2069|    830|                    visitor.byte_string_value(bytes_buffer_, semantic_tag::base64, *this, ec);
 2070|    830|                    more_ = !cursor_mode_;
 2071|    830|                    break;
 2072|    841|                }
 2073|    666|                case 0x17:
  ------------------
  |  Branch (2073:17): [True: 666, False: 122k]
  ------------------
 2074|    666|                {
 2075|    666|                    read(bytes_buffer_,ec);
 2076|    666|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    666|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4, False: 662]
  |  |  ------------------
  ------------------
 2077|      4|                    {
 2078|      4|                        more_ = false;
 2079|      4|                        return;
 2080|      4|                    }
 2081|    662|                    visitor.byte_string_value(bytes_buffer_, semantic_tag::base16, *this, ec);
 2082|    662|                    more_ = !cursor_mode_;
 2083|    662|                    break;
 2084|    666|                }
 2085|  1.10k|                case 0x40:
  ------------------
  |  Branch (2085:17): [True: 1.10k, False: 122k]
  ------------------
 2086|  1.10k|                {
 2087|  1.10k|                    array_tag_ = typed_array_tags::uint8;
 2088|  1.10k|                    array_buffer_.clear();
 2089|  1.10k|                    read(array_buffer_,ec);
 2090|  1.10k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.10k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 1.10k]
  |  |  ------------------
  ------------------
 2091|      2|                    {
 2092|      2|                        more_ = false;
 2093|      2|                        return;
 2094|      2|                    }
 2095|  1.10k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer_);
 2096|  1.10k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2096:25): [True: 0, False: 1.10k]
  ------------------
 2097|      0|                    {
 2098|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2098:29): [True: 0, False: 0]
  ------------------
 2099|      0|                        {
 2100|      0|                            ec = cbor_errc::bad_extents;
 2101|      0|                            more_ = false;
 2102|      0|                            return;
 2103|      0|                        }
 2104|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<const uint8_t>>(ta, extents_, order_);
 2105|      0|                    }
 2106|  1.10k|                    else
 2107|  1.10k|                    {
 2108|  1.10k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<const uint8_t>>(ta);
 2109|  1.10k|                    }
 2110|  1.10k|                    typed_array_iter_->next(visitor, *this, ec);
 2111|  1.10k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2112|  1.10k|                    more_ = !cursor_mode_;
 2113|  1.10k|                    break;
 2114|  1.10k|                }
 2115|    804|                case 0x44:
  ------------------
  |  Branch (2115:17): [True: 804, False: 122k]
  ------------------
 2116|    804|                {
 2117|    804|                    array_tag_ = typed_array_tags::uint8;
 2118|    804|                    typed_array_tag_ = semantic_tag::clamped;
 2119|    804|                    array_buffer_.clear();
 2120|    804|                    read(array_buffer_,ec);
 2121|    804|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    804|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 801]
  |  |  ------------------
  ------------------
 2122|      3|                    {
 2123|      3|                        more_ = false;
 2124|      3|                        return;
 2125|      3|                    }
 2126|    801|                    auto ta = typed_array_cast<const uint8_t>(array_buffer_);
 2127|    801|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2127:25): [True: 0, False: 801]
  ------------------
 2128|      0|                    {
 2129|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2129:29): [True: 0, False: 0]
  ------------------
 2130|      0|                        {
 2131|      0|                            ec = cbor_errc::bad_extents;
 2132|      0|                            more_ = false;
 2133|      0|                            return;
 2134|      0|                        }
 2135|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<const uint8_t>>(ta, extents_, order_);
 2136|      0|                    }
 2137|    801|                    else
 2138|    801|                    {
 2139|    801|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<const uint8_t>>(ta, semantic_tag::clamped);
 2140|    801|                    }
 2141|    801|                    typed_array_iter_->next(visitor, *this, ec);
 2142|    801|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2143|    801|                    more_ = !cursor_mode_;
 2144|    801|                    break;
 2145|    801|                }
 2146|  1.92k|                case 0x41:
  ------------------
  |  Branch (2146:17): [True: 1.92k, False: 121k]
  ------------------
 2147|  2.71k|                case 0x45:
  ------------------
  |  Branch (2147:17): [True: 788, False: 122k]
  ------------------
 2148|  2.71k|                {
 2149|  2.71k|                    array_tag_ = typed_array_tags::uint16;
 2150|  2.71k|                    array_buffer_.clear();
 2151|  2.71k|                    read(array_buffer_,ec);
 2152|  2.71k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.71k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 6, False: 2.71k]
  |  |  ------------------
  ------------------
 2153|      6|                    {
 2154|      6|                        more_ = false;
 2155|      6|                        return;
 2156|      6|                    }
 2157|  2.71k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2158|  2.71k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2159|  2.71k|                    auto ta = typed_array_cast<uint16_t>(array_buffer_);
 2160|  2.71k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2160:25): [True: 1.92k, False: 788]
  ------------------
 2161|  1.92k|                    {
 2162|  5.98k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2162:49): [True: 4.06k, False: 1.92k]
  ------------------
 2163|  4.06k|                        {
 2164|  4.06k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2165|  4.06k|                        }
 2166|  1.92k|                    }
 2167|  2.71k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2167:25): [True: 0, False: 2.71k]
  ------------------
 2168|      0|                    {
 2169|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2169:29): [True: 0, False: 0]
  ------------------
 2170|      0|                        {
 2171|      0|                            ec = cbor_errc::bad_extents;
 2172|      0|                            more_ = false;
 2173|      0|                            return;
 2174|      0|                        }
 2175|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<uint16_t>>(ta, extents_, order_);
 2176|      0|                    }
 2177|  2.71k|                    else
 2178|  2.71k|                    {
 2179|  2.71k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<uint16_t>>(ta);
 2180|  2.71k|                    }
 2181|  2.71k|                    typed_array_iter_->next(visitor, *this, ec);
 2182|  2.71k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2183|  2.71k|                    more_ = !cursor_mode_;
 2184|  2.71k|                    break;
 2185|  2.71k|                }
 2186|  1.33k|                case 0x42:
  ------------------
  |  Branch (2186:17): [True: 1.33k, False: 122k]
  ------------------
 2187|  1.70k|                case 0x46:
  ------------------
  |  Branch (2187:17): [True: 372, False: 123k]
  ------------------
 2188|  1.70k|                {
 2189|  1.70k|                    array_tag_ = typed_array_tags::uint32;
 2190|  1.70k|                    array_buffer_.clear();
 2191|  1.70k|                    read(array_buffer_,ec);
 2192|  1.70k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.70k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 10, False: 1.69k]
  |  |  ------------------
  ------------------
 2193|     10|                    {
 2194|     10|                        more_ = false;
 2195|     10|                        return;
 2196|     10|                    }
 2197|  1.69k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2198|  1.69k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2199|  1.69k|                    auto ta = typed_array_cast<uint32_t>(array_buffer_);
 2200|  1.69k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2200:25): [True: 1.32k, False: 371]
  ------------------
 2201|  1.32k|                    {
 2202|  1.41M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2202:49): [True: 1.41M, False: 1.32k]
  ------------------
 2203|  1.41M|                        {
 2204|  1.41M|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2205|  1.41M|                        }
 2206|  1.32k|                    }
 2207|  1.69k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2207:25): [True: 0, False: 1.69k]
  ------------------
 2208|      0|                    {
 2209|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2209:29): [True: 0, False: 0]
  ------------------
 2210|      0|                        {
 2211|      0|                            ec = cbor_errc::bad_extents;
 2212|      0|                            more_ = false;
 2213|      0|                            return;
 2214|      0|                        }
 2215|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<uint32_t>>(ta, extents_, order_);
 2216|      0|                    }
 2217|  1.69k|                    else
 2218|  1.69k|                    {
 2219|  1.69k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<uint32_t>>(ta);
 2220|  1.69k|                    }
 2221|  1.69k|                    typed_array_iter_->next(visitor, *this, ec);
 2222|  1.69k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2223|  1.69k|                    more_ = !cursor_mode_;
 2224|  1.69k|                    break;
 2225|  1.69k|                }
 2226|  5.44k|                case 0x43:
  ------------------
  |  Branch (2226:17): [True: 5.44k, False: 118k]
  ------------------
 2227|  6.06k|                case 0x47:
  ------------------
  |  Branch (2227:17): [True: 623, False: 123k]
  ------------------
 2228|  6.06k|                {
 2229|  6.06k|                    array_tag_ = typed_array_tags::uint64;
 2230|  6.06k|                    array_buffer_.clear();
 2231|  6.06k|                    read(array_buffer_,ec);
 2232|  6.06k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  6.06k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 6.06k]
  |  |  ------------------
  ------------------
 2233|      3|                    {
 2234|      3|                        more_ = false;
 2235|      3|                        return;
 2236|      3|                    }
 2237|  6.06k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2238|  6.06k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2239|  6.06k|                    auto ta = typed_array_cast<uint64_t>(array_buffer_);
 2240|  6.06k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2240:25): [True: 5.44k, False: 621]
  ------------------
 2241|  5.44k|                    {
 2242|   319k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2242:49): [True: 314k, False: 5.44k]
  ------------------
 2243|   314k|                        {
 2244|   314k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2245|   314k|                        }
 2246|  5.44k|                    }
 2247|  6.06k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2247:25): [True: 0, False: 6.06k]
  ------------------
 2248|      0|                    {
 2249|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2249:29): [True: 0, False: 0]
  ------------------
 2250|      0|                        {
 2251|      0|                            ec = cbor_errc::bad_extents;
 2252|      0|                            more_ = false;
 2253|      0|                            return;
 2254|      0|                        }
 2255|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<uint64_t>>(ta, extents_, order_);
 2256|      0|                    }
 2257|  6.06k|                    else
 2258|  6.06k|                    {
 2259|  6.06k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<uint64_t>>(ta);
 2260|  6.06k|                    }
 2261|  6.06k|                    typed_array_iter_->next(visitor, *this, ec);
 2262|  6.06k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2263|  6.06k|                    more_ = !cursor_mode_;
 2264|  6.06k|                    break;
 2265|  6.06k|                }
 2266|  1.77k|                case 0x48:
  ------------------
  |  Branch (2266:17): [True: 1.77k, False: 121k]
  ------------------
 2267|  1.77k|                {
 2268|  1.77k|                    array_tag_ = typed_array_tags::int8;
 2269|  1.77k|                    array_buffer_.clear();
 2270|  1.77k|                    read(array_buffer_,ec);
 2271|  1.77k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.77k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 19, False: 1.75k]
  |  |  ------------------
  ------------------
 2272|     19|                    {
 2273|     19|                        more_ = false;
 2274|     19|                        return;
 2275|     19|                    }
 2276|  1.75k|                    auto ta = typed_array_cast<int8_t>(array_buffer_);
 2277|  1.75k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2277:25): [True: 0, False: 1.75k]
  ------------------
 2278|      0|                    {
 2279|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2279:29): [True: 0, False: 0]
  ------------------
 2280|      0|                        {
 2281|      0|                            ec = cbor_errc::bad_extents;
 2282|      0|                            more_ = false;
 2283|      0|                            return;
 2284|      0|                        }
 2285|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<int8_t>>(ta, extents_, order_);
 2286|      0|                    }
 2287|  1.75k|                    else
 2288|  1.75k|                    {
 2289|  1.75k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<int8_t>>(ta);
 2290|  1.75k|                    }
 2291|  1.75k|                    typed_array_iter_->next(visitor, *this, ec);
 2292|  1.75k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2293|  1.75k|                    more_ = !cursor_mode_;
 2294|  1.75k|                    break;
 2295|  1.75k|                }
 2296|    872|                case 0x49:
  ------------------
  |  Branch (2296:17): [True: 872, False: 122k]
  ------------------
 2297|  1.53k|                case 0x4d:
  ------------------
  |  Branch (2297:17): [True: 660, False: 123k]
  ------------------
 2298|  1.53k|                {
 2299|  1.53k|                    array_tag_ = typed_array_tags::int16;
 2300|  1.53k|                    array_buffer_.clear();
 2301|  1.53k|                    read(array_buffer_,ec);
 2302|  1.53k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.53k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 1.53k]
  |  |  ------------------
  ------------------
 2303|      1|                    {
 2304|      1|                        more_ = false;
 2305|      1|                        return;
 2306|      1|                    }
 2307|  1.53k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2308|  1.53k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2309|  1.53k|                    auto ta = typed_array_cast<int16_t>(array_buffer_);
 2310|  1.53k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2310:25): [True: 872, False: 659]
  ------------------
 2311|    872|                    {
 2312|   271k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2312:49): [True: 270k, False: 872]
  ------------------
 2313|   270k|                        {
 2314|   270k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2315|   270k|                        }
 2316|    872|                    }
 2317|  1.53k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2317:25): [True: 0, False: 1.53k]
  ------------------
 2318|      0|                    {
 2319|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2319:29): [True: 0, False: 0]
  ------------------
 2320|      0|                        {
 2321|      0|                            ec = cbor_errc::bad_extents;
 2322|      0|                            more_ = false;
 2323|      0|                            return;
 2324|      0|                        }
 2325|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<int16_t>>(ta, extents_, order_);
 2326|      0|                    }
 2327|  1.53k|                    else
 2328|  1.53k|                    {
 2329|  1.53k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<int16_t>>(ta);
 2330|  1.53k|                    }
 2331|  1.53k|                    typed_array_iter_->next(visitor, *this, ec);
 2332|  1.53k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2333|  1.53k|                    more_ = !cursor_mode_;
 2334|  1.53k|                    break;
 2335|  1.53k|                }
 2336|  1.50k|                case 0x4a:
  ------------------
  |  Branch (2336:17): [True: 1.50k, False: 122k]
  ------------------
 2337|  1.87k|                case 0x4e:
  ------------------
  |  Branch (2337:17): [True: 375, False: 123k]
  ------------------
 2338|  1.87k|                {
 2339|  1.87k|                    array_tag_ = typed_array_tags::int32;
 2340|  1.87k|                    array_buffer_.clear();
 2341|  1.87k|                    read(array_buffer_,ec);
 2342|  1.87k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.87k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 8, False: 1.86k]
  |  |  ------------------
  ------------------
 2343|      8|                    {
 2344|      8|                        more_ = false;
 2345|      8|                        return;
 2346|      8|                    }
 2347|  1.86k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2348|  1.86k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2349|  1.86k|                    auto ta = typed_array_cast<int32_t>(array_buffer_);
 2350|  1.86k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2350:25): [True: 1.49k, False: 372]
  ------------------
 2351|  1.49k|                    {
 2352|  70.8k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2352:49): [True: 69.3k, False: 1.49k]
  ------------------
 2353|  69.3k|                        {
 2354|  69.3k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2355|  69.3k|                        }
 2356|  1.49k|                    }
 2357|  1.86k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2357:25): [True: 0, False: 1.86k]
  ------------------
 2358|      0|                    {
 2359|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2359:29): [True: 0, False: 0]
  ------------------
 2360|      0|                        {
 2361|      0|                            ec = cbor_errc::bad_extents;
 2362|      0|                            more_ = false;
 2363|      0|                            return;
 2364|      0|                        }
 2365|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<int32_t>>(ta, extents_, order_);
 2366|      0|                    }
 2367|  1.86k|                    else
 2368|  1.86k|                    {
 2369|  1.86k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<int32_t>>(ta);
 2370|  1.86k|                    }
 2371|  1.86k|                    typed_array_iter_->next(visitor, *this, ec);
 2372|  1.86k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2373|  1.86k|                    more_ = !cursor_mode_;
 2374|  1.86k|                    break;
 2375|  1.86k|                }
 2376|  2.13k|                case 0x4b:
  ------------------
  |  Branch (2376:17): [True: 2.13k, False: 121k]
  ------------------
 2377|  2.53k|                case 0x4f:
  ------------------
  |  Branch (2377:17): [True: 401, False: 123k]
  ------------------
 2378|  2.53k|                {
 2379|  2.53k|                    array_tag_ = typed_array_tags::int64;
 2380|  2.53k|                    array_buffer_.clear();
 2381|  2.53k|                    read(array_buffer_,ec);
 2382|  2.53k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.53k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 2.52k]
  |  |  ------------------
  ------------------
 2383|      7|                    {
 2384|      7|                        more_ = false;
 2385|      7|                        return;
 2386|      7|                    }
 2387|  2.52k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2388|  2.52k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2389|  2.52k|                    auto ta = typed_array_cast<int64_t>(array_buffer_);
 2390|  2.52k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2390:25): [True: 2.12k, False: 400]
  ------------------
 2391|  2.12k|                    {
 2392|  57.6k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2392:49): [True: 55.5k, False: 2.12k]
  ------------------
 2393|  55.5k|                        {
 2394|  55.5k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2395|  55.5k|                        }
 2396|  2.12k|                    }
 2397|  2.52k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2397:25): [True: 0, False: 2.52k]
  ------------------
 2398|      0|                    {
 2399|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2399:29): [True: 0, False: 0]
  ------------------
 2400|      0|                        {
 2401|      0|                            ec = cbor_errc::bad_extents;
 2402|      0|                            more_ = false;
 2403|      0|                            return;
 2404|      0|                        }
 2405|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<int64_t>>(ta, extents_, order_);
 2406|      0|                    }
 2407|  2.52k|                    else
 2408|  2.52k|                    {
 2409|  2.52k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<int64_t>>(ta);
 2410|  2.52k|                    }
 2411|  2.52k|                    typed_array_iter_->next(visitor, *this, ec);
 2412|  2.52k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2413|  2.52k|                    more_ = !cursor_mode_;
 2414|  2.52k|                    break;
 2415|  2.52k|                }
 2416|  1.29k|                case 0x50:
  ------------------
  |  Branch (2416:17): [True: 1.29k, False: 122k]
  ------------------
 2417|  1.74k|                case 0x54:
  ------------------
  |  Branch (2417:17): [True: 444, False: 123k]
  ------------------
 2418|  1.74k|                {
 2419|  1.74k|                    array_tag_ = typed_array_tags::half_float;
 2420|  1.74k|                    array_buffer_.clear();
 2421|  1.74k|                    read(array_buffer_,ec);
 2422|  1.74k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.74k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 1.73k]
  |  |  ------------------
  ------------------
 2423|      7|                    {
 2424|      7|                        more_ = false;
 2425|      7|                        return;
 2426|      7|                    }
 2427|  1.73k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2428|  1.73k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2429|  1.73k|                    auto ta = typed_array_cast<uint16_t>(array_buffer_);
 2430|  1.73k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2430:25): [True: 1.29k, False: 442]
  ------------------
 2431|  1.29k|                    {
 2432|   174k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2432:49): [True: 173k, False: 1.29k]
  ------------------
 2433|   173k|                        {
 2434|   173k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2435|   173k|                        }
 2436|  1.29k|                    }
 2437|  1.73k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2437:25): [True: 0, False: 1.73k]
  ------------------
 2438|      0|                    {
 2439|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2439:29): [True: 0, False: 0]
  ------------------
 2440|      0|                        {
 2441|      0|                            ec = cbor_errc::bad_extents;
 2442|      0|                            more_ = false;
 2443|      0|                            return;
 2444|      0|                        }
 2445|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<uint16_t>>(ta, extents_, order_);
 2446|      0|                    }
 2447|  1.73k|                    else
 2448|  1.73k|                    {
 2449|  1.73k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<uint16_t,decode_half>>(ta);
 2450|  1.73k|                    }
 2451|  1.73k|                    typed_array_iter_->next(visitor, *this, ec);
 2452|  1.73k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2453|  1.73k|                    more_ = !cursor_mode_;
 2454|  1.73k|                    break;
 2455|  1.73k|                }
 2456|    819|                case 0x51:
  ------------------
  |  Branch (2456:17): [True: 819, False: 122k]
  ------------------
 2457|  2.45k|                case 0x55:
  ------------------
  |  Branch (2457:17): [True: 1.63k, False: 122k]
  ------------------
 2458|  2.45k|                {
 2459|  2.45k|                    array_tag_ = typed_array_tags::float32;
 2460|  2.45k|                    array_buffer_.clear();
 2461|  2.45k|                    read(array_buffer_,ec);
 2462|  2.45k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.45k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 6, False: 2.44k]
  |  |  ------------------
  ------------------
 2463|      6|                    {
 2464|      6|                        more_ = false;
 2465|      6|                        return;
 2466|      6|                    }
 2467|  2.44k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2468|  2.44k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2469|  2.44k|                    auto ta = typed_array_cast<float>(array_buffer_);
 2470|  2.44k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2470:25): [True: 814, False: 1.63k]
  ------------------
 2471|    814|                    {
 2472|   141k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2472:49): [True: 140k, False: 814]
  ------------------
 2473|   140k|                        {
 2474|   140k|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2475|   140k|                        }
 2476|    814|                    }
 2477|  2.44k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2477:25): [True: 0, False: 2.44k]
  ------------------
 2478|      0|                    {
 2479|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2479:29): [True: 0, False: 0]
  ------------------
 2480|      0|                        {
 2481|      0|                            ec = cbor_errc::bad_extents;
 2482|      0|                            more_ = false;
 2483|      0|                            return;
 2484|      0|                        }
 2485|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<float>>(ta, extents_, order_);
 2486|      0|                    }
 2487|  2.44k|                    else
 2488|  2.44k|                    {
 2489|  2.44k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<float>>(ta);
 2490|  2.44k|                    }
 2491|  2.44k|                    typed_array_iter_->next(visitor, *this, ec);
 2492|  2.44k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2493|  2.44k|                    more_ = !cursor_mode_;
 2494|  2.44k|                    break;
 2495|  2.44k|                }
 2496|    859|                case 0x52:
  ------------------
  |  Branch (2496:17): [True: 859, False: 122k]
  ------------------
 2497|  1.72k|                case 0x56:
  ------------------
  |  Branch (2497:17): [True: 868, False: 122k]
  ------------------
 2498|  1.72k|                {
 2499|  1.72k|                    array_tag_ = typed_array_tags::float64 ;
 2500|  1.72k|                    array_buffer_.clear();
 2501|  1.72k|                    read(array_buffer_,ec);
 2502|  1.72k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.72k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 14, False: 1.71k]
  |  |  ------------------
  ------------------
 2503|     14|                    {
 2504|     14|                        more_ = false;
 2505|     14|                        return;
 2506|     14|                    }
 2507|  1.71k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2508|  1.71k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2509|  1.71k|                    auto ta = typed_array_cast<double>(array_buffer_);
 2510|  1.71k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2510:25): [True: 851, False: 862]
  ------------------
 2511|    851|                    {
 2512|  48.7k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2512:49): [True: 47.9k, False: 851]
  ------------------
 2513|  47.9k|                        {
 2514|  47.9k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2515|  47.9k|                        }
 2516|    851|                    }
 2517|  1.71k|                    if (state_stack_.back().mode == parse_mode::multi_dim) // multi-dim array
  ------------------
  |  Branch (2517:25): [True: 0, False: 1.71k]
  ------------------
 2518|      0|                    {
 2519|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2519:29): [True: 0, False: 0]
  ------------------
 2520|      0|                        {
 2521|      0|                            ec = cbor_errc::bad_extents;
 2522|      0|                            more_ = false;
 2523|      0|                            return;
 2524|      0|                        }
 2525|      0|                        typed_array_iter_ = jsoncons::make_unique<mdarray_iterator<double>>(ta, extents_, order_);
 2526|      0|                    }
 2527|  1.71k|                    else
 2528|  1.71k|                    {
 2529|  1.71k|                        typed_array_iter_ = jsoncons::make_unique<sequential_typed_array_iterator<double>>(ta);
 2530|  1.71k|                    }
 2531|  1.71k|                    typed_array_iter_->next(visitor, *this, ec);
 2532|  1.71k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2533|  1.71k|                    more_ = !cursor_mode_;
 2534|  1.71k|                    break;
 2535|  1.71k|                }
 2536|  65.0k|                default:
  ------------------
  |  Branch (2536:17): [True: 65.0k, False: 58.6k]
  ------------------
 2537|  65.0k|                {
 2538|  65.0k|                    read(bytes_buffer_,ec);
 2539|  65.0k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  65.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 11, False: 65.0k]
  |  |  ------------------
  ------------------
 2540|     11|                    {
 2541|     11|                        more_ = false;
 2542|     11|                        return;
 2543|     11|                    }
 2544|  65.0k|                    visitor.byte_string_value(bytes_buffer_, raw_tag_, *this, ec);
 2545|  65.0k|                    more_ = !cursor_mode_;
 2546|  65.0k|                    break;
 2547|  65.0k|                }
 2548|   123k|            }
 2549|   123k|            other_tags_[item_tag] = false;
 2550|   123k|        }
 2551|  10.2M|        else
 2552|  10.2M|        {
 2553|  10.2M|            read(bytes_buffer_,ec);
 2554|  10.2M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  10.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 628, False: 10.2M]
  |  |  ------------------
  ------------------
 2555|    628|            {
 2556|    628|                return;
 2557|    628|            }
 2558|  10.2M|            visitor.byte_string_value(bytes_buffer_, semantic_tag::none, *this, ec);
 2559|  10.2M|            more_ = !cursor_mode_;
 2560|  10.2M|        }
 2561|  10.3M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  314|  10.3M|        {
  315|  10.3M|            source->read_byte_string(cont,ec);
  316|  10.3M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringERNS3_6vectorIhS5_EERNS3_10error_codeE:
 1265|  10.8M|    {
 1266|  10.8M|        v.clear();
 1267|  10.8M|        auto c = source_.peek();
 1268|  10.8M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  10.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 10.8M]
  |  |  ------------------
  ------------------
 1269|      0|        {
 1270|      0|            ec = cbor_errc::unexpected_eof;
 1271|      0|            return;
 1272|      0|        }
 1273|  10.8M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1274|  10.8M|        uint8_t info = get_additional_information_value(c.value);
 1275|       |
 1276|  10.8M|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   45|  10.8M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 10.8M]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1277|       |
 1278|  10.8M|        switch(info)
 1279|  10.8M|        {
 1280|    725|            case jsoncons::cbor::detail::additional_info::indefinite_length:
  ------------------
  |  Branch (1280:13): [True: 725, False: 10.8M]
  ------------------
 1281|    725|            {
 1282|    725|                auto func = [&v](Source& source, std::size_t length, std::error_code& ec) -> bool
 1283|    725|                {
 1284|    725|                    if (source_reader<Source>::read(source, v, length) != length)
 1285|    725|                    {
 1286|    725|                        ec = cbor_errc::unexpected_eof;
 1287|    725|                        return false;
 1288|    725|                    }
 1289|    725|                    return true;
 1290|    725|                };
 1291|    725|                iterate_string_chunks(func, major_type, ec);
 1292|    725|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    725|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 259, False: 466]
  |  |  ------------------
  ------------------
 1293|    259|                {
 1294|    259|                    return;
 1295|    259|                }
 1296|    466|                break;
 1297|    725|            }
 1298|  10.8M|            default:
  ------------------
  |  Branch (1298:13): [True: 10.8M, False: 725]
  ------------------
 1299|  10.8M|            {
 1300|  10.8M|                std::size_t length = read_size(ec);
 1301|  10.8M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  10.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 10.8M]
  |  |  ------------------
  ------------------
 1302|      7|                {
 1303|      7|                    return;
 1304|      7|                }
 1305|  10.8M|                if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1305:21): [True: 514, False: 10.8M]
  ------------------
 1306|    514|                {
 1307|    514|                    ec = cbor_errc::unexpected_eof;
 1308|    514|                    return;
 1309|    514|                }
 1310|  10.8M|                if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1310:21): [True: 3.93M, False: 6.89M]
  ------------------
 1311|  3.93M|                    v.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1311:21): [True: 3.27M, False: 660k]
  ------------------
 1312|  3.27M|                {
 1313|  3.27M|                    stringref_map_stack_.back().emplace_back(mapped_string(v, alloc_));
 1314|  3.27M|                }
 1315|  10.8M|                break;
 1316|  10.8M|            }
 1317|       |
 1318|  10.8M|        }
 1319|  10.8M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21iterate_string_chunksIZNS8_16read_byte_stringERNS3_6vectorIhS5_EERNS3_10error_codeEEUlRS6_mSE_E_EEvRT_NS0_6detail15cbor_major_typeESE_:
 1323|    725|    {
 1324|    725|        int nesting_level = 0;
 1325|       |
 1326|    725|        bool done = false;
 1327|  4.52M|        while (!done)
  ------------------
  |  Branch (1327:16): [True: 4.52M, False: 466]
  ------------------
 1328|  4.52M|        {
 1329|  4.52M|            auto c = source_.peek();
 1330|  4.52M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  4.52M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 78, False: 4.52M]
  |  |  ------------------
  ------------------
 1331|     78|            {
 1332|     78|                ec = cbor_errc::unexpected_eof;
 1333|     78|                more_ = false;
 1334|     78|                return;
 1335|     78|            }
 1336|  4.52M|            if (nesting_level > 0 && c.value == 0xff)
  ------------------
  |  Branch (1336:17): [True: 4.52M, False: 725]
  |  Branch (1336:38): [True: 546k, False: 3.97M]
  ------------------
 1337|   546k|            {
 1338|   546k|                --nesting_level;
 1339|   546k|                if (nesting_level == 0)
  ------------------
  |  Branch (1339:21): [True: 466, False: 546k]
  ------------------
 1340|    466|                {
 1341|    466|                    done = true;
 1342|    466|                }
 1343|   546k|                source_.ignore(1);
 1344|   546k|                continue;
 1345|   546k|            }
 1346|       |
 1347|  3.97M|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1348|  3.97M|            if (major_type != type)
  ------------------
  |  Branch (1348:17): [True: 52, False: 3.97M]
  ------------------
 1349|     52|            {
 1350|     52|                ec = cbor_errc::illegal_chunked_string;
 1351|     52|                more_ = false;
 1352|     52|                return;
 1353|     52|            }
 1354|  3.97M|            uint8_t info = get_additional_information_value(c.value);
 1355|       |
 1356|  3.97M|            switch (info)
 1357|  3.97M|            {
 1358|  3.63M|                case jsoncons::cbor::detail::additional_info::indefinite_length:
  ------------------
  |  Branch (1358:17): [True: 3.63M, False: 345k]
  ------------------
 1359|  3.63M|                {
 1360|  3.63M|                    ++nesting_level;
 1361|  3.63M|                    source_.ignore(1);
 1362|  3.63M|                    break;
 1363|      0|                }
 1364|   345k|                default: // definite length
  ------------------
  |  Branch (1364:17): [True: 345k, False: 3.63M]
  ------------------
 1365|   345k|                {
 1366|   345k|                    std::size_t length = read_size(ec);
 1367|   345k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   345k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 345k]
  |  |  ------------------
  ------------------
 1368|      2|                    {
 1369|      2|                        return;
 1370|      2|                    }
 1371|   345k|                    more_ = func(source_, length, ec);
 1372|   345k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   345k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 127, False: 345k]
  |  |  ------------------
  ------------------
 1373|    127|                    {
 1374|    127|                        return;
 1375|    127|                    }
 1376|   345k|                    if (nesting_level == 0)
  ------------------
  |  Branch (1376:25): [True: 0, False: 345k]
  ------------------
 1377|      0|                    {
 1378|      0|                        done = true;
 1379|      0|                    }
 1380|   345k|                    break;
 1381|   345k|                }
 1382|  3.97M|            }
 1383|  3.97M|        } 
 1384|    725|    }
_ZZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringERNS3_6vectorIhS5_EERNS3_10error_codeEENKUlRS6_mSD_E_clESE_mSD_:
 1283|   345k|                {
 1284|   345k|                    if (source_reader<Source>::read(source, v, length) != length)
  ------------------
  |  Branch (1284:25): [True: 127, False: 345k]
  ------------------
 1285|    127|                    {
 1286|    127|                        ec = cbor_errc::unexpected_eof;
 1287|    127|                        return false;
 1288|    127|                    }
 1289|   345k|                    return true;
 1290|   345k|                };
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_sizeERNS3_10error_codeE:
 1249|  21.2M|    {
 1250|  21.2M|        uint64_t u = read_uint64(ec);
 1251|  21.2M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  21.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 141, False: 21.2M]
  |  |  ------------------
  ------------------
 1252|    141|        {
 1253|    141|            return 0;
 1254|    141|        }
 1255|  21.2M|        std::size_t len = static_cast<std::size_t>(u);
 1256|  21.2M|        if (len != u)
  ------------------
  |  Branch (1256:13): [True: 0, False: 21.2M]
  ------------------
 1257|      0|        {
 1258|      0|            ec = cbor_errc::number_too_large;
 1259|      0|            more_ = false;
 1260|      0|        }
 1261|  21.2M|        return len;
 1262|  21.2M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2EOS9_:
  233|  8.76M|        mapped_string(mapped_string&&) = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_6vectorIhS5_EERKS7_:
  222|  3.27M|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes,alloc)
  223|  3.27M|        {
  224|  3.27M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_text_stringERNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 1212|   875k|    {
 1213|   875k|        auto c = source_.peek();
 1214|   875k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   875k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 875k]
  |  |  ------------------
  ------------------
 1215|      0|        {
 1216|      0|            ec = cbor_errc::unexpected_eof;
 1217|      0|            more_ = false;
 1218|      0|            return;
 1219|      0|        }
 1220|   875k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1221|   875k|        uint8_t info = get_additional_information_value(c.value);
 1222|       |
 1223|   875k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::text_string);
  ------------------
  |  |   45|   875k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 875k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1224|   875k|        auto func = [&str](Source& source, std::size_t length, std::error_code& ec) -> bool
 1225|   875k|        {
 1226|   875k|            if (source_reader<Source>::read(source, str, length) != length)
 1227|   875k|            {
 1228|   875k|                ec = cbor_errc::unexpected_eof;
 1229|   875k|                return false;
 1230|   875k|            }
 1231|   875k|            return true;
 1232|   875k|        };
 1233|   875k|        iterate_string_chunks(func, major_type, ec);
 1234|   875k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   875k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 484, False: 875k]
  |  |  ------------------
  ------------------
 1235|    484|        {
 1236|    484|            return;
 1237|    484|        }
 1238|       |
 1239|   875k|        if (!stringref_map_stack_.empty() && 
  ------------------
  |  Branch (1239:13): [True: 656k, False: 218k]
  ------------------
 1240|   656k|            info != jsoncons::cbor::detail::additional_info::indefinite_length &&
  ------------------
  |  Branch (1240:13): [True: 656k, False: 297]
  ------------------
 1241|   656k|            str.length() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1241:13): [True: 430k, False: 225k]
  ------------------
 1242|   430k|        {
 1243|   430k|            stringref_map_stack_.back().emplace_back(mapped_string(str,alloc_));
 1244|   430k|        }
 1245|       |
 1246|   875k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21iterate_string_chunksIZNS8_16read_text_stringERNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeEEUlRS6_mSG_E_EEvRT_NS0_6detail15cbor_major_typeESG_:
 1323|   875k|    {
 1324|   875k|        int nesting_level = 0;
 1325|       |
 1326|   875k|        bool done = false;
 1327|  7.15M|        while (!done)
  ------------------
  |  Branch (1327:16): [True: 6.27M, False: 875k]
  ------------------
 1328|  6.27M|        {
 1329|  6.27M|            auto c = source_.peek();
 1330|  6.27M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  6.27M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 66, False: 6.27M]
  |  |  ------------------
  ------------------
 1331|     66|            {
 1332|     66|                ec = cbor_errc::unexpected_eof;
 1333|     66|                more_ = false;
 1334|     66|                return;
 1335|     66|            }
 1336|  6.27M|            if (nesting_level > 0 && c.value == 0xff)
  ------------------
  |  Branch (1336:17): [True: 5.40M, False: 875k]
  |  Branch (1336:38): [True: 948k, False: 4.45M]
  ------------------
 1337|   948k|            {
 1338|   948k|                --nesting_level;
 1339|   948k|                if (nesting_level == 0)
  ------------------
  |  Branch (1339:21): [True: 589, False: 948k]
  ------------------
 1340|    589|                {
 1341|    589|                    done = true;
 1342|    589|                }
 1343|   948k|                source_.ignore(1);
 1344|   948k|                continue;
 1345|   948k|            }
 1346|       |
 1347|  5.32M|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1348|  5.32M|            if (major_type != type)
  ------------------
  |  Branch (1348:17): [True: 41, False: 5.32M]
  ------------------
 1349|     41|            {
 1350|     41|                ec = cbor_errc::illegal_chunked_string;
 1351|     41|                more_ = false;
 1352|     41|                return;
 1353|     41|            }
 1354|  5.32M|            uint8_t info = get_additional_information_value(c.value);
 1355|       |
 1356|  5.32M|            switch (info)
 1357|  5.32M|            {
 1358|  4.45M|                case jsoncons::cbor::detail::additional_info::indefinite_length:
  ------------------
  |  Branch (1358:17): [True: 4.45M, False: 877k]
  ------------------
 1359|  4.45M|                {
 1360|  4.45M|                    ++nesting_level;
 1361|  4.45M|                    source_.ignore(1);
 1362|  4.45M|                    break;
 1363|      0|                }
 1364|   877k|                default: // definite length
  ------------------
  |  Branch (1364:17): [True: 877k, False: 4.45M]
  ------------------
 1365|   877k|                {
 1366|   877k|                    std::size_t length = read_size(ec);
 1367|   877k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   877k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 877k]
  |  |  ------------------
  ------------------
 1368|      1|                    {
 1369|      1|                        return;
 1370|      1|                    }
 1371|   877k|                    more_ = func(source_, length, ec);
 1372|   877k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   877k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 376, False: 876k]
  |  |  ------------------
  ------------------
 1373|    376|                    {
 1374|    376|                        return;
 1375|    376|                    }
 1376|   876k|                    if (nesting_level == 0)
  ------------------
  |  Branch (1376:25): [True: 874k, False: 2.30k]
  ------------------
 1377|   874k|                    {
 1378|   874k|                        done = true;
 1379|   874k|                    }
 1380|   876k|                    break;
 1381|   877k|                }
 1382|  5.32M|            }
 1383|  5.32M|        } 
 1384|   875k|    }
_ZZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_text_stringERNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeEENKUlRS6_mSF_E_clESG_mSF_:
 1225|   877k|        {
 1226|   877k|            if (source_reader<Source>::read(source, str, length) != length)
  ------------------
  |  Branch (1226:17): [True: 376, False: 876k]
  ------------------
 1227|    376|            {
 1228|    376|                ec = cbor_errc::unexpected_eof;
 1229|    376|                return false;
 1230|    376|            }
 1231|   876k|            return true;
 1232|   877k|        };
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERKS7_:
  211|   430k|            : type(jsoncons::cbor::detail::cbor_major_type::text_string), str(str.c_str(), str.size(), alloc), bytes(alloc)
  212|   430k|        {
  213|   430k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11read_doubleERNS3_10error_codeE:
 1557|  9.21k|    {
 1558|  9.21k|        double val = 0;
 1559|       |
 1560|  9.21k|        uint8_t b;
 1561|  9.21k|        if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1561:13): [True: 0, False: 9.21k]
  ------------------
 1562|      0|        {
 1563|      0|            ec = cbor_errc::unexpected_eof;
 1564|      0|            more_ = false;
 1565|      0|            return 0;
 1566|      0|        }
 1567|  9.21k|        uint8_t info = get_additional_information_value(b);
 1568|  9.21k|        switch (info)
 1569|  9.21k|        {
 1570|  6.67k|        case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (1570:9): [True: 6.67k, False: 2.53k]
  ------------------
 1571|  6.67k|            {
 1572|  6.67k|                uint8_t buf[sizeof(float)];
 1573|  6.67k|                if (source_.read(buf, sizeof(float)) !=sizeof(float)) 
  ------------------
  |  Branch (1573:21): [True: 19, False: 6.65k]
  ------------------
 1574|     19|                {
 1575|     19|                    ec = cbor_errc::unexpected_eof;
 1576|     19|                    more_ = false;
 1577|     19|                    return 0;
 1578|     19|                }
 1579|  6.65k|                val = binary::big_to_native<float>(buf, sizeof(buf));
 1580|  6.65k|                break;
 1581|  6.67k|            }
 1582|       |
 1583|  2.53k|        case 0x1b: //  Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (1583:9): [True: 2.53k, False: 6.67k]
  ------------------
 1584|  2.53k|            {
 1585|  2.53k|                uint8_t buf[sizeof(double)];
 1586|  2.53k|                if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (1586:21): [True: 17, False: 2.51k]
  ------------------
 1587|     17|                {
 1588|     17|                    ec = cbor_errc::unexpected_eof;
 1589|     17|                    more_ = false;
 1590|     17|                    return 0;
 1591|     17|                }
 1592|  2.51k|                val = binary::big_to_native<double>(buf, sizeof(buf));
 1593|  2.51k|                break;
 1594|  2.53k|            }
 1595|      0|            default:
  ------------------
  |  Branch (1595:13): [True: 0, False: 9.21k]
  ------------------
 1596|      0|                break;
 1597|  9.21k|        }
 1598|       |        
 1599|  9.17k|        return val;
 1600|  9.21k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_decimal_fractionERNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 1603|   720k|    {
 1604|   720k|        std::size_t size = read_size(ec);
 1605|   720k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   720k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 720k]
  |  |  ------------------
  ------------------
 1606|      1|        {
 1607|      1|            return;
 1608|      1|        }
 1609|   720k|        if (size != 2)
  ------------------
  |  Branch (1609:13): [True: 44, False: 719k]
  ------------------
 1610|     44|        {
 1611|     44|            ec = cbor_errc::invalid_decimal_fraction;
 1612|     44|            more_ = false;
 1613|     44|            return;
 1614|     44|        }
 1615|       |
 1616|   719k|        auto c = source_.peek();
 1617|   719k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   719k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 18, False: 719k]
  |  |  ------------------
  ------------------
 1618|     18|        {
 1619|     18|            ec = cbor_errc::unexpected_eof;
 1620|     18|            more_ = false;
 1621|     18|            return;
 1622|     18|        }
 1623|   719k|        int64_t exponent = 0;
 1624|   719k|        switch (get_major_type(c.value))
 1625|   719k|        {
 1626|   134k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1626:13): [True: 134k, False: 585k]
  ------------------
 1627|   134k|            {
 1628|   134k|                exponent = read_uint64(ec);
 1629|   134k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   134k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 134k]
  |  |  ------------------
  ------------------
 1630|      1|                {
 1631|      1|                    return;
 1632|      1|                }
 1633|   134k|                break;
 1634|   134k|            }
 1635|   585k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1635:13): [True: 585k, False: 134k]
  ------------------
 1636|   585k|            {
 1637|   585k|                exponent = read_int64(ec);
 1638|   585k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   585k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 585k]
  |  |  ------------------
  ------------------
 1639|      1|                {
 1640|      1|                    return;
 1641|      1|                }
 1642|   585k|                break;
 1643|   585k|            }
 1644|   585k|            default:
  ------------------
  |  Branch (1644:13): [True: 8, False: 719k]
  ------------------
 1645|      8|            {
 1646|      8|                ec = cbor_errc::invalid_decimal_fraction;
 1647|      8|                more_ = false;
 1648|      8|                return;
 1649|   585k|            }
 1650|   719k|        }
 1651|       |
 1652|   719k|        string_type str(alloc_);
 1653|       |
 1654|   719k|        c = source_.peek();
 1655|   719k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   719k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 25, False: 719k]
  |  |  ------------------
  ------------------
 1656|     25|        {
 1657|     25|            ec = cbor_errc::unexpected_eof;
 1658|     25|            more_ = false;
 1659|     25|            return;
 1660|     25|        }
 1661|       |
 1662|   719k|        switch (get_major_type(c.value))
 1663|   719k|        {
 1664|  2.27k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1664:13): [True: 2.27k, False: 717k]
  ------------------
 1665|  2.27k|            {
 1666|  2.27k|                uint64_t val = read_uint64(ec);
 1667|  2.27k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.27k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 2.27k]
  |  |  ------------------
  ------------------
 1668|      1|                {
 1669|      1|                    return;
 1670|      1|                }
 1671|  2.27k|                jsoncons::from_integer(val, str);
 1672|  2.27k|                break;
 1673|  2.27k|            }
 1674|   580k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1674:13): [True: 580k, False: 139k]
  ------------------
 1675|   580k|            {
 1676|   580k|                int64_t val = read_int64(ec);
 1677|   580k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   580k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 580k]
  |  |  ------------------
  ------------------
 1678|      1|                {
 1679|      1|                    return;
 1680|      1|                }
 1681|   580k|                jsoncons::from_integer(val, str);
 1682|   580k|                break;
 1683|   580k|            }
 1684|   136k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1684:13): [True: 136k, False: 583k]
  ------------------
 1685|   136k|            {
 1686|   136k|                uint8_t b;
 1687|   136k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1687:21): [True: 0, False: 136k]
  ------------------
 1688|      0|                {
 1689|      0|                    ec = cbor_errc::unexpected_eof;
 1690|      0|                    more_ = false;
 1691|      0|                    return;
 1692|      0|                }
 1693|   136k|                uint8_t tag = get_additional_information_value(b);
 1694|   136k|                c = source_.peek();
 1695|   136k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   136k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4, False: 136k]
  |  |  ------------------
  ------------------
 1696|      4|                {
 1697|      4|                    ec = cbor_errc::unexpected_eof;
 1698|      4|                    more_ = false;
 1699|      4|                    return;
 1700|      4|                }
 1701|       |
 1702|   136k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1702:21): [True: 136k, False: 21]
  ------------------
 1703|   136k|                {
 1704|   136k|                    bytes_buffer_.clear();
 1705|   136k|                    read_byte_string(bytes_buffer_, ec);
 1706|   136k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   136k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5, False: 136k]
  |  |  ------------------
  ------------------
 1707|      5|                    {
 1708|      5|                        more_ = false;
 1709|      5|                        return;
 1710|      5|                    }
 1711|   136k|                    if (tag == 2)
  ------------------
  |  Branch (1711:25): [True: 135k, False: 952]
  ------------------
 1712|   135k|                    {
 1713|   135k|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1714|   135k|                        n.write_string(str);
 1715|   135k|                    }
 1716|    952|                    else if (tag == 3)
  ------------------
  |  Branch (1716:30): [True: 946, False: 6]
  ------------------
 1717|    946|                    {
 1718|    946|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1719|    946|                        n = -1 - n;
 1720|    946|                        n.write_string(str);
 1721|    946|                    }
 1722|   136k|                }
 1723|   136k|                break;
 1724|   136k|            }
 1725|   136k|            default:
  ------------------
  |  Branch (1725:13): [True: 11, False: 719k]
  ------------------
 1726|     11|            {
 1727|     11|                ec = cbor_errc::invalid_decimal_fraction;
 1728|     11|                more_ = false;
 1729|     11|                return;
 1730|   136k|            }
 1731|   719k|        }
 1732|       |
 1733|   719k|        if (str.size() >= static_cast<std::size_t>((std::numeric_limits<int32_t>::max)()) || 
  ------------------
  |  Branch (1733:13): [True: 0, False: 719k]
  ------------------
 1734|   719k|            exponent >= (std::numeric_limits<int32_t>::max)() || 
  ------------------
  |  Branch (1734:13): [True: 2, False: 719k]
  ------------------
 1735|   719k|            exponent <= (std::numeric_limits<int32_t>::min)())
  ------------------
  |  Branch (1735:13): [True: 63, False: 719k]
  ------------------
 1736|     65|        {
 1737|     65|            ec = cbor_errc::invalid_decimal_fraction;
 1738|     65|            more_ = false;
 1739|     65|            return;
 1740|     65|        }
 1741|   719k|        else if (str.size() > 0)
  ------------------
  |  Branch (1741:18): [True: 719k, False: 26]
  ------------------
 1742|   719k|        {
 1743|   719k|            if (str[0] == '-')
  ------------------
  |  Branch (1743:17): [True: 581k, False: 138k]
  ------------------
 1744|   581k|            {
 1745|   581k|                result.push_back('-');
 1746|   581k|                jsoncons::prettify_string(str.c_str()+1, str.size()-1, (int)exponent, -4, 17, result);
 1747|   581k|            }
 1748|   138k|            else
 1749|   138k|            {
 1750|   138k|                jsoncons::prettify_string(str.c_str(), str.size(), (int)exponent, -4, 17, result);
 1751|   138k|            }
 1752|   719k|        }
 1753|     26|        else
 1754|     26|        {
 1755|     26|            ec = cbor_errc::invalid_decimal_fraction;
 1756|     26|            more_ = false;
 1757|     26|            return;
 1758|     26|        }
 1759|   719k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13read_bigfloatERNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 1762|   357k|    {
 1763|   357k|        std::size_t size = read_size(ec);
 1764|   357k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   357k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 357k]
  |  |  ------------------
  ------------------
 1765|      2|        {
 1766|      2|            return;
 1767|      2|        }
 1768|   357k|        if (size != 2)
  ------------------
  |  Branch (1768:13): [True: 80, False: 357k]
  ------------------
 1769|     80|        {
 1770|     80|            ec = cbor_errc::invalid_bigfloat;
 1771|     80|            more_ = false;
 1772|     80|            return;
 1773|     80|        }
 1774|       |
 1775|   357k|        auto c = source_.peek();
 1776|   357k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   357k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 12, False: 357k]
  |  |  ------------------
  ------------------
 1777|     12|        {
 1778|     12|            ec = cbor_errc::unexpected_eof;
 1779|     12|            more_ = false;
 1780|     12|            return;
 1781|     12|        }
 1782|   357k|        int64_t exponent = 0;
 1783|   357k|        switch (get_major_type(c.value))
 1784|   357k|        {
 1785|  6.30k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1785:13): [True: 6.30k, False: 350k]
  ------------------
 1786|  6.30k|            {
 1787|  6.30k|                exponent = read_uint64(ec);
 1788|  6.30k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  6.30k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 6.30k]
  |  |  ------------------
  ------------------
 1789|      1|                {
 1790|      1|                    return;
 1791|      1|                }
 1792|  6.30k|                break;
 1793|  6.30k|            }
 1794|   350k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1794:13): [True: 350k, False: 6.31k]
  ------------------
 1795|   350k|            {
 1796|   350k|                exponent = read_int64(ec);
 1797|   350k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   350k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 350k]
  |  |  ------------------
  ------------------
 1798|      1|                {
 1799|      1|                    return;
 1800|      1|                }
 1801|   350k|                break;
 1802|   350k|            }
 1803|   350k|            default:
  ------------------
  |  Branch (1803:13): [True: 7, False: 357k]
  ------------------
 1804|      7|            {
 1805|      7|                ec = cbor_errc::invalid_bigfloat;
 1806|      7|                more_ = false;
 1807|      7|                return;
 1808|   350k|            }
 1809|   357k|        }
 1810|       |
 1811|   357k|        c = source_.peek();
 1812|   357k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   357k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 23, False: 357k]
  |  |  ------------------
  ------------------
 1813|     23|        {
 1814|     23|            ec = cbor_errc::unexpected_eof;
 1815|     23|            more_ = false;
 1816|     23|            return;
 1817|     23|        }
 1818|   357k|        switch (get_major_type(c.value))
 1819|   357k|        {
 1820|  10.3k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1820:13): [True: 10.3k, False: 346k]
  ------------------
 1821|  10.3k|            {
 1822|  10.3k|                uint64_t val = read_uint64(ec);
 1823|  10.3k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  10.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 10.3k]
  |  |  ------------------
  ------------------
 1824|      1|                {
 1825|      1|                    return;
 1826|      1|                }
 1827|  10.3k|                str.push_back('0');
 1828|  10.3k|                str.push_back('x');
 1829|  10.3k|                jsoncons::integer_to_hex(val, str);
 1830|  10.3k|                break;
 1831|  10.3k|            }
 1832|  4.73k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1832:13): [True: 4.73k, False: 352k]
  ------------------
 1833|  4.73k|            {
 1834|  4.73k|                int64_t val = read_int64(ec);
 1835|  4.73k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  4.73k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 4.73k]
  |  |  ------------------
  ------------------
 1836|      1|                {
 1837|      1|                    return;
 1838|      1|                }
 1839|  4.73k|                str.push_back('-');
 1840|  4.73k|                str.push_back('0');
 1841|  4.73k|                str.push_back('x');
 1842|  4.73k|                jsoncons::integer_to_hex(static_cast<uint64_t>(-val), str);
 1843|  4.73k|                break;
 1844|  4.73k|            }
 1845|   341k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1845:13): [True: 341k, False: 15.0k]
  ------------------
 1846|   341k|            {
 1847|   341k|                uint8_t b;
 1848|   341k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1848:21): [True: 0, False: 341k]
  ------------------
 1849|      0|                {
 1850|      0|                    ec = cbor_errc::unexpected_eof;
 1851|      0|                    more_ = false;
 1852|      0|                    return;
 1853|      0|                }
 1854|   341k|                uint8_t tag = get_additional_information_value(b);
 1855|       |
 1856|   341k|                c = source_.peek();
 1857|   341k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   341k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 341k]
  |  |  ------------------
  ------------------
 1858|      7|                {
 1859|      7|                    ec = cbor_errc::unexpected_eof;
 1860|      7|                    more_ = false;
 1861|      7|                    return;
 1862|      7|                }
 1863|       |
 1864|   341k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1864:21): [True: 318k, False: 23.0k]
  ------------------
 1865|   318k|                {
 1866|   318k|                    bytes_buffer_.clear(); 
 1867|   318k|                    read_byte_string(bytes_buffer_, ec);
 1868|   318k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   318k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 17, False: 318k]
  |  |  ------------------
  ------------------
 1869|     17|                    {
 1870|     17|                        more_ = false;
 1871|     17|                        return;
 1872|     17|                    }
 1873|   318k|                    if (tag == 2)
  ------------------
  |  Branch (1873:25): [True: 12.6k, False: 306k]
  ------------------
 1874|  12.6k|                    {
 1875|  12.6k|                        str.push_back('0');
 1876|  12.6k|                        str.push_back('x');
 1877|  12.6k|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1878|  12.6k|                        n.write_string_hex(str);
 1879|  12.6k|                    }
 1880|   306k|                    else if (tag == 3)
  ------------------
  |  Branch (1880:30): [True: 1.27k, False: 304k]
  ------------------
 1881|  1.27k|                    {
 1882|  1.27k|                        str.push_back('-');
 1883|  1.27k|                        str.push_back('0');
 1884|  1.27k|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1885|  1.27k|                        n = -1 - n;
 1886|  1.27k|                        n.write_string_hex(str);
 1887|  1.27k|                        str[2] = 'x'; // overwrite minus
 1888|  1.27k|                    }
 1889|   318k|                }
 1890|   341k|                break;
 1891|   341k|            }
 1892|   341k|            default:
  ------------------
  |  Branch (1892:13): [True: 8, False: 357k]
  ------------------
 1893|      8|            {
 1894|      8|                ec = cbor_errc::invalid_bigfloat;
 1895|      8|                more_ = false;
 1896|      8|                return;
 1897|   341k|            }
 1898|   357k|        }
 1899|       |
 1900|   356k|        str.push_back('p');
 1901|   356k|        if (exponent >=0)
  ------------------
  |  Branch (1901:13): [True: 6.48k, False: 350k]
  ------------------
 1902|  6.48k|        {
 1903|  6.48k|            jsoncons::integer_to_hex(static_cast<uint64_t>(exponent), str);
 1904|  6.48k|        }
 1905|   350k|        else
 1906|   350k|        {
 1907|   350k|            str.push_back('-');
 1908|   350k|            jsoncons::integer_to_hex(static_cast<uint64_t>(-exponent), str);
 1909|   350k|        }
 1910|   356k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE19read_mdarray_headerERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
 2564|    363|    {
 2565|    363|        uint8_t b;
 2566|    363|        if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2566:13): [True: 0, False: 363]
  ------------------
 2567|      0|        {
 2568|      0|            ec = cbor_errc::unexpected_eof;
 2569|      0|            more_ = false;
 2570|      0|            return;
 2571|      0|        }
 2572|    363|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(b);
 2573|    363|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::array);
  ------------------
  |  |   45|    363|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 363]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 2574|    363|        uint8_t info = get_additional_information_value(b);
 2575|       |       
 2576|    363|        read_extents(ec);   
 2577|    363|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    363|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 300, False: 63]
  |  |  ------------------
  ------------------
 2578|    300|        {
 2579|    300|            return;
 2580|    300|        }
 2581|       |
 2582|     63|        read_tags(ec);
 2583|     63|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     63|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5, False: 58]
  |  |  ------------------
  ------------------
 2584|      5|        {
 2585|      5|            return;
 2586|      5|        }
 2587|     58|        auto c = source_.peek();
 2588|     58|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|     58|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 58]
  |  |  ------------------
  ------------------
 2589|      0|        {
 2590|      0|            ec = cbor_errc::unexpected_eof;
 2591|      0|            more_ = false;
 2592|      0|            return;
 2593|      0|        }
 2594|     58|        major_type = get_major_type(c.value);
 2595|     58|        info = get_additional_information_value(c.value);
 2596|     58|        state_stack_.emplace_back(parse_mode::multi_dim, 0);
 2597|     58|        ++state_stack_.back().index;
 2598|       |
 2599|     58|        if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::row_major)
  ------------------
  |  Branch (2599:13): [True: 15, False: 43]
  |  Branch (2599:77): [True: 15, False: 0]
  ------------------
 2600|     15|        {
 2601|     15|            begin_row_major_storage(info, ec);
 2602|     15|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     15|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 15]
  |  |  ------------------
  ------------------
 2603|      0|            {
 2604|      0|                return;
 2605|      0|            }
 2606|     15|            row_major_reader_ = mdarray_row_major_reader<Source,Allocator>(extents_, this);
 2607|     15|            if (!row_major_reader_.done())
  ------------------
  |  Branch (2607:17): [True: 15, False: 0]
  ------------------
 2608|     15|            {
 2609|     15|                row_major_reader_.next(visitor, *this, ec);
 2610|     15|            }
 2611|     15|        }
 2612|     43|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::column_major)
  ------------------
  |  Branch (2612:18): [True: 0, False: 43]
  |  Branch (2612:82): [True: 0, False: 0]
  ------------------
 2613|      0|        {
 2614|      0|            begin_array(visitor, info, ec);
 2615|      0|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2616|      0|            {
 2617|      0|                return;
 2618|      0|            }
 2619|      0|        }
 2620|     43|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2620:18): [True: 0, False: 43]
  ------------------
 2621|      0|        {
 2622|      0|            read_byte_string_from_source read(this);
 2623|      0|            read_byte_string(read, visitor, ec);
 2624|      0|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2625|      0|            {
 2626|      0|                return;
 2627|      0|            }
 2628|      0|        }
 2629|     43|        else
 2630|     43|        {
 2631|     43|            ec = cbor_errc::bad_mdarray;
 2632|     43|            return;
 2633|     43|        }
 2634|     58|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12read_extentsERNS3_10error_codeE:
 2637|    363|    {
 2638|    363|        extents_.clear();
 2639|       |
 2640|    363|        auto b = source_.peek();
 2641|    363|        if (JSONCONS_UNLIKELY(b.eof))
  ------------------
  |  |   78|    363|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 10, False: 353]
  |  |  ------------------
  ------------------
 2642|     10|        {
 2643|     10|            ec = cbor_errc::unexpected_eof;
 2644|     10|            more_ = false;
 2645|     10|            return;
 2646|     10|        }
 2647|    353|        uint8_t info = get_additional_information_value(b.value);
 2648|       |
 2649|    353|        switch (info)
 2650|    353|        {
 2651|     38|            case jsoncons::cbor::detail::additional_info::indefinite_length:
  ------------------
  |  Branch (2651:13): [True: 38, False: 315]
  ------------------
 2652|     38|            {
 2653|    570|                while (true)
  ------------------
  |  Branch (2653:24): [True: 570, Folded]
  ------------------
 2654|    570|                {
 2655|    570|                    auto c = source_.peek();
 2656|    570|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|    570|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 570]
  |  |  ------------------
  ------------------
 2657|      0|                    {
 2658|      0|                        ec = cbor_errc::unexpected_eof;
 2659|      0|                        more_ = false;
 2660|      0|                        return;
 2661|      0|                    }
 2662|    570|                    if (c.value == 0xff)
  ------------------
  |  Branch (2662:25): [True: 38, False: 532]
  ------------------
 2663|     38|                    {
 2664|     38|                        source_.ignore(1);
 2665|     38|                        return;
 2666|     38|                    }
 2667|    532|                    else
 2668|    532|                    {
 2669|    532|                        std::size_t extent = read_size(ec);
 2670|    532|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    532|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 532]
  |  |  ------------------
  ------------------
 2671|      0|                        {
 2672|      0|                            more_ = false;
 2673|      0|                            return;
 2674|      0|                        }
 2675|    532|                        extents_.push_back(extent);
 2676|    532|                    }
 2677|    570|                }
 2678|      0|                break;
 2679|     38|            }
 2680|    315|            default:
  ------------------
  |  Branch (2680:13): [True: 315, False: 38]
  ------------------
 2681|    315|            {
 2682|    315|                std::size_t size = read_size(ec);
 2683|    315|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    315|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 312]
  |  |  ------------------
  ------------------
 2684|      3|                {
 2685|      3|                    more_ = false;
 2686|      3|                    return;
 2687|      3|                }
 2688|   854k|                for (std::size_t i = 0; more_ && i < size; ++i)
  ------------------
  |  Branch (2688:41): [True: 854k, False: 0]
  |  Branch (2688:50): [True: 854k, False: 202]
  ------------------
 2689|   854k|                {
 2690|   854k|                    std::size_t extent = read_size(ec);
 2691|   854k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   854k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 110, False: 854k]
  |  |  ------------------
  ------------------
 2692|    110|                    {
 2693|    110|                        more_ = false;
 2694|    110|                        return;
 2695|    110|                    }
 2696|   854k|                    extents_.push_back(extent);
 2697|   854k|                }
 2698|    202|                break;
 2699|    312|            }
 2700|    353|        }
 2701|    202|        auto r = calculate_mdarray_size(extents_);
 2702|    202|        if (!r || *r == 0)
  ------------------
  |  Branch (2702:13): [True: 38, False: 164]
  |  Branch (2702:19): [True: 139, False: 25]
  ------------------
 2703|    177|        {
 2704|    177|            ec = cbor_errc::bad_extents;
 2705|    177|            more_ = false;
 2706|    177|            return;
 2707|    177|        }
 2708|     25|        mdarray_size_ = *r;
 2709|     25|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE23begin_row_major_storageEhRNS3_10error_codeE:
 1090|     15|    {
 1091|     15|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|     15|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 15]
  |  |  ------------------
  ------------------
 1092|      0|        {
 1093|      0|            ec = cbor_errc::max_nesting_depth_exceeded;
 1094|      0|            more_ = false;
 1095|      0|            return;
 1096|      0|        }
 1097|     15|        bool pop_stringref_map_stack = false;
 1098|     15|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1098:13): [True: 0, False: 15]
  ------------------
 1099|      0|        {
 1100|      0|            stringref_map_stack_.emplace_back();
 1101|      0|            other_tags_[stringref_namespace_tag] = false;
 1102|      0|            pop_stringref_map_stack = true;
 1103|      0|        }
 1104|     15|        switch (info)
 1105|     15|        {
 1106|      0|            case jsoncons::cbor::detail::additional_info::indefinite_length:
  ------------------
  |  Branch (1106:13): [True: 0, False: 15]
  ------------------
 1107|      0|            {
 1108|      0|                state_stack_.emplace_back(parse_mode::indefinite_array, 0, pop_stringref_map_stack);
 1109|      0|                more_ = !cursor_mode_;
 1110|      0|                source_.ignore(1);
 1111|      0|                break;
 1112|      0|            }
 1113|     15|            default: // definite length
  ------------------
  |  Branch (1113:13): [True: 15, False: 0]
  ------------------
 1114|     15|            {
 1115|     15|                std::size_t len = read_size(ec);
 1116|     15|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     15|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 15]
  |  |  ------------------
  ------------------
 1117|      0|                {
 1118|      0|                    return;
 1119|      0|                }
 1120|     15|                state_stack_.emplace_back(parse_mode::array, len, pop_stringref_map_stack);
 1121|     15|                more_ = !cursor_mode_;
 1122|     15|                break;
 1123|     15|            }
 1124|     15|        }
 1125|     15|    }
_ZN8jsoncons4cbor24mdarray_row_major_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2ENS_6detail4spanIKmLm18446744073709551615EEEPNS0_17basic_cbor_parserIS6_S7_EE:
   63|     15|        : dimensions_(extents.size(), mdarray_dimension{}),
   64|     15|          parser_(parser)
   65|     15|    {
   66|     15|        std::vector<std::size_t> strides(extents.size(), 0);
   67|     15|        std::size_t stride = 1;
   68|     15|        const size_t num_extents = extents.size();
   69|     40|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (69:28): [True: 25, False: 15]
  ------------------
   70|     25|        {
   71|     25|            strides[num_extents - i - 1] = stride;
   72|     25|            stride *= extents[num_extents - i - 1];
   73|     25|        }
   74|     40|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (74:33): [True: 25, False: 15]
  ------------------
   75|     25|        {
   76|     25|            dimensions_[i].extent = extents[i];
   77|     25|            dimensions_[i].stride = strides[i];
   78|     25|            dimensions_[i].index = 0;
   79|     25|            dimensions_[i].end = strides[i] * extents[i];
   80|     25|        }
   81|     15|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayERNS_24basic_item_event_visitorIcEEhRNS3_10error_codeE:
 1020|  1.32M|    {
 1021|  1.32M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|  1.32M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 1.32M]
  |  |  ------------------
  ------------------
 1022|      3|        {
 1023|      3|            ec = cbor_errc::max_nesting_depth_exceeded;
 1024|      3|            more_ = false;
 1025|      3|            return;
 1026|      3|        } 
 1027|  1.32M|        semantic_tag tag = semantic_tag::none;
 1028|  1.32M|        bool pop_stringref_map_stack = false;
 1029|  1.32M|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1029:13): [True: 4.20k, False: 1.32M]
  ------------------
 1030|  4.20k|        {
 1031|  4.20k|            stringref_map_stack_.emplace_back();
 1032|  4.20k|            other_tags_[stringref_namespace_tag] = false;
 1033|  4.20k|            pop_stringref_map_stack = true;
 1034|  4.20k|        }
 1035|  1.32M|        switch (info)
 1036|  1.32M|        {
 1037|   827k|            case jsoncons::cbor::detail::additional_info::indefinite_length:
  ------------------
  |  Branch (1037:13): [True: 827k, False: 501k]
  ------------------
 1038|   827k|            {
 1039|   827k|                state_stack_.emplace_back(parse_mode::indefinite_array,0,pop_stringref_map_stack);
 1040|   827k|                visitor.begin_array(tag, *this, ec);
 1041|   827k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   827k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 827k]
  |  |  ------------------
  ------------------
 1042|      0|                {
 1043|      0|                    return;
 1044|      0|                }
 1045|   827k|                more_ = !cursor_mode_;
 1046|   827k|                source_.ignore(1);
 1047|   827k|                break;
 1048|   827k|            }
 1049|   501k|            default: // definite length
  ------------------
  |  Branch (1049:13): [True: 501k, False: 827k]
  ------------------
 1050|   501k|            {
 1051|   501k|                std::size_t len = read_size(ec);
 1052|   501k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   501k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 14, False: 501k]
  |  |  ------------------
  ------------------
 1053|     14|                {
 1054|     14|                    return;
 1055|     14|                }
 1056|   501k|                state_stack_.emplace_back(parse_mode::array,len,pop_stringref_map_stack);
 1057|   501k|                visitor.begin_array(len, tag, *this, ec);
 1058|   501k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   501k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 501k]
  |  |  ------------------
  ------------------
 1059|      0|                {
 1060|      0|                    return;
 1061|      0|                }
 1062|   501k|                more_ = !cursor_mode_;
 1063|   501k|                break;
 1064|   501k|            }
 1065|  1.32M|        }
 1066|  1.32M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectERNS_24basic_item_event_visitorIcEEhRNS3_10error_codeE:
 1144|  6.91M|    {
 1145|  6.91M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|  6.91M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 6.91M]
  |  |  ------------------
  ------------------
 1146|      1|        {
 1147|      1|            ec = cbor_errc::max_nesting_depth_exceeded;
 1148|      1|            more_ = false;
 1149|      1|            return;
 1150|      1|        } 
 1151|  6.91M|        bool pop_stringref_map_stack = false;
 1152|  6.91M|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1152:13): [True: 3.67k, False: 6.90M]
  ------------------
 1153|  3.67k|        {
 1154|  3.67k|            stringref_map_stack_.emplace_back();
 1155|  3.67k|            other_tags_[stringref_namespace_tag] = false;
 1156|  3.67k|            pop_stringref_map_stack = true;
 1157|  3.67k|        }
 1158|  6.91M|        switch (info)
 1159|  6.91M|        {
 1160|  96.9k|            case jsoncons::cbor::detail::additional_info::indefinite_length: 
  ------------------
  |  Branch (1160:13): [True: 96.9k, False: 6.81M]
  ------------------
 1161|  96.9k|            {
 1162|  96.9k|                state_stack_.emplace_back(parse_mode::indefinite_map_key,0,pop_stringref_map_stack);
 1163|  96.9k|                visitor.begin_object(semantic_tag::none, *this, ec);
 1164|  96.9k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  96.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 96.9k]
  |  |  ------------------
  ------------------
 1165|      0|                {
 1166|      0|                    return;
 1167|      0|                }
 1168|  96.9k|                more_ = !cursor_mode_;
 1169|  96.9k|                source_.ignore(1);
 1170|  96.9k|                break;
 1171|  96.9k|            }
 1172|  6.81M|            default: // definite_length
  ------------------
  |  Branch (1172:13): [True: 6.81M, False: 96.9k]
  ------------------
 1173|  6.81M|            {
 1174|  6.81M|                std::size_t len = read_size(ec);
 1175|  6.81M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  6.81M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 6.81M]
  |  |  ------------------
  ------------------
 1176|      1|                {
 1177|      1|                    return;
 1178|      1|                }
 1179|  6.81M|                state_stack_.emplace_back(parse_mode::map_key,len,pop_stringref_map_stack);
 1180|  6.81M|                visitor.begin_object(len, semantic_tag::none, *this, ec);
 1181|  6.81M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  6.81M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 6.81M]
  |  |  ------------------
  ------------------
 1182|      0|                {
 1183|      0|                    return;
 1184|      0|                }
 1185|  6.81M|                more_ = !cursor_mode_;
 1186|  6.81M|                break;
 1187|  6.81M|            }
 1188|  6.91M|        }
 1189|  6.91M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
 1069|  1.29M|    {
 1070|  1.29M|        --nesting_depth_;
 1071|       |
 1072|  1.29M|        visitor.end_array(*this, ec);
 1073|  1.29M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.29M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.29M]
  |  |  ------------------
  ------------------
 1074|      0|        {
 1075|      0|            return;
 1076|      0|        }
 1077|  1.29M|        more_ = !cursor_mode_;
 1078|  1.29M|        if (level() == mark_level_)
  ------------------
  |  Branch (1078:13): [True: 0, False: 1.29M]
  ------------------
 1079|      0|        {
 1080|      0|            more_ = false;
 1081|      0|        }
 1082|  1.29M|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1082:13): [True: 2.50k, False: 1.29M]
  ------------------
 1083|  2.50k|        {
 1084|  2.50k|            stringref_map_stack_.pop_back();
 1085|  2.50k|        }
 1086|  1.29M|        state_stack_.pop_back();
 1087|  1.29M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_typed_array_itemERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
  676|  26.2M|    {
  677|  26.2M|        if (!typed_array_iter_->done())
  ------------------
  |  Branch (677:13): [True: 26.2M, False: 0]
  ------------------
  678|  26.2M|        {
  679|  26.2M|            typed_array_iter_->next(visitor, *this, ec);
  680|  26.2M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  26.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 26.2M]
  |  |  ------------------
  ------------------
  681|      0|            {
  682|      0|                return;
  683|      0|            }
  684|  26.2M|            more_ = !cursor_mode_;
  685|       |
  686|  26.2M|            if (typed_array_iter_->done())
  ------------------
  |  Branch (686:17): [True: 46.2k, False: 26.1M]
  ------------------
  687|  46.2k|            {
  688|  46.2k|                state_stack_.pop_back();
  689|  46.2k|            }
  690|  26.2M|        }
  691|  26.2M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
 1192|  6.86M|    {
 1193|  6.86M|        --nesting_depth_;
 1194|  6.86M|        visitor.end_object(*this, ec);
 1195|  6.86M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  6.86M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 6.86M]
  |  |  ------------------
  ------------------
 1196|      0|        {
 1197|      0|            return;
 1198|      0|        }
 1199|  6.86M|        more_ = !cursor_mode_;
 1200|  6.86M|        if (level() == mark_level_)
  ------------------
  |  Branch (1200:13): [True: 0, False: 6.86M]
  ------------------
 1201|      0|        {
 1202|      0|            more_ = false;
 1203|      0|        }
 1204|  6.86M|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1204:13): [True: 622, False: 6.86M]
  ------------------
 1205|    622|        {
 1206|    622|            stringref_map_stack_.pop_back();
 1207|    622|        }
 1208|  6.86M|        state_stack_.pop_back();
 1209|  6.86M|    }

_ZN8jsoncons4cbor17basic_cbor_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RNS_18basic_json_visitorIcEERKNS0_19cbor_decode_optionsERKS7_:
   52|  10.2k|       : parser_(std::forward<Sourceable>(source), options, alloc),
   53|  10.2k|         adaptor_(visitor, alloc), visitor_(adaptor_)
   54|  10.2k|    {
   55|  10.2k|    }
_ZN8jsoncons4cbor17basic_cbor_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4readERNS3_10error_codeE:
   88|  10.2k|    {
   89|  10.2k|        parser_.reset();
   90|  10.2k|        parser_.parse(visitor_, ec);
   91|  10.2k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  10.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7.84k, False: 2.37k]
  |  |  ------------------
  ------------------
   92|  7.84k|        {
   93|  7.84k|            return;
   94|  7.84k|        }
   95|  10.2k|    }

