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

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

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

_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4sizeEv:
  116|     42|        {
  117|     42|            return size_;
  118|     42|        }
_ZNK8jsoncons6detail4spanIKtLm18446744073709551615EE4sizeEv:
  116|      3|        {
  117|      3|            return size_;
  118|      3|        }
_ZNK8jsoncons6detail4spanIKmLm18446744073709551615EE4sizeEv:
  116|     10|        {
  117|     10|            return size_;
  118|     10|        }
_ZNK8jsoncons6detail4spanIKsLm18446744073709551615EE4sizeEv:
  116|  2.11k|        {
  117|  2.11k|            return size_;
  118|  2.11k|        }
_ZNK8jsoncons6detail4spanIKlLm18446744073709551615EE4sizeEv:
  116|      3|        {
  117|      3|            return size_;
  118|      3|        }
_ZNK8jsoncons6detail4spanIKfLm18446744073709551615EE4sizeEv:
  116|     10|        {
  117|     10|            return size_;
  118|     10|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|      4|            : data_(data), size_(size)
   62|      4|        {
   63|      4|        }
_ZNK8jsoncons6detail4spanIhLm18446744073709551615EE4dataEv:
  111|  1.40k|        {
  112|  1.40k|            return data_;
  113|  1.40k|        }
_ZNK8jsoncons6detail4spanIhLm18446744073709551615EE4sizeEv:
  116|  1.40k|        {
  117|  1.40k|            return size_;
  118|  1.40k|        }
_ZN8jsoncons6detail4spanIhLm18446744073709551615EEC2INSt3__16vectorIhNS4_9allocatorIhEEEEEERT_PNS4_9enable_ifIXaaaaaantsr7is_spanIS9_EE5valuentsr10ext_traits12is_std_arrayIS9_EE5valuesr10ext_traits21is_compatible_elementIS9_hEE5valuesr10ext_traits17has_data_and_sizeIS9_EE5valueEvE4typeE:
   68|  1.40k|            : data_(c.data()), size_(c.size())
   69|  1.40k|        {
   70|  1.40k|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2IhLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|      4|            : data_(s.data()), size_(s.size())
  103|      4|        {
  104|      4|        }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EEixEm:
  126|     26|         {
  127|     26|             return data_[index];
  128|     26|         }
_ZN8jsoncons6detail4spanItLm18446744073709551615EEC2EPtm:
   61|      2|            : data_(data), size_(size)
   62|      2|        {
   63|      2|        }
_ZNK8jsoncons6detail4spanItLm18446744073709551615EE4sizeEv:
  116|      3|        {
  117|      3|            return size_;
  118|      3|        }
_ZN8jsoncons6detail4spanIKtLm18446744073709551615EEC2ItLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|      1|            : data_(s.data()), size_(s.size())
  103|      1|        {
  104|      1|        }
_ZNK8jsoncons6detail4spanItLm18446744073709551615EE4dataEv:
  111|      1|        {
  112|      1|            return data_;
  113|      1|        }
_ZN8jsoncons6detail4spanImLm18446744073709551615EEC2EPmm:
   61|      6|            : data_(data), size_(size)
   62|      6|        {
   63|      6|        }
_ZNK8jsoncons6detail4spanImLm18446744073709551615EE4sizeEv:
  116|      8|        {
  117|      8|            return size_;
  118|      8|        }
_ZN8jsoncons6detail4spanIKmLm18446744073709551615EEC2ImLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|      3|            : data_(s.data()), size_(s.size())
  103|      3|        {
  104|      3|        }
_ZNK8jsoncons6detail4spanImLm18446744073709551615EE4dataEv:
  111|      3|        {
  112|      3|            return data_;
  113|      3|        }
_ZNK8jsoncons6detail4spanIKmLm18446744073709551615EEixEm:
  126|      1|         {
  127|      1|             return data_[index];
  128|      1|         }
_ZN8jsoncons6detail4spanIsLm18446744073709551615EEC2EPsm:
   61|  1.38k|            : data_(data), size_(size)
   62|  1.38k|        {
   63|  1.38k|        }
_ZNK8jsoncons6detail4spanIsLm18446744073709551615EE4sizeEv:
  116|  1.38k|        {
  117|  1.38k|            return size_;
  118|  1.38k|        }
_ZN8jsoncons6detail4spanIKsLm18446744073709551615EEC2IsLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|    692|            : data_(s.data()), size_(s.size())
  103|    692|        {
  104|    692|        }
_ZNK8jsoncons6detail4spanIsLm18446744073709551615EE4dataEv:
  111|    692|        {
  112|    692|            return data_;
  113|    692|        }
_ZNK8jsoncons6detail4spanIKsLm18446744073709551615EEixEm:
  126|     41|         {
  127|     41|             return data_[index];
  128|     41|         }
_ZN8jsoncons6detail4spanIlLm18446744073709551615EEC2EPlm:
   61|      2|            : data_(data), size_(size)
   62|      2|        {
   63|      2|        }
_ZNK8jsoncons6detail4spanIlLm18446744073709551615EE4sizeEv:
  116|      2|        {
  117|      2|            return size_;
  118|      2|        }
_ZN8jsoncons6detail4spanIKlLm18446744073709551615EEC2IlLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|      1|            : data_(s.data()), size_(s.size())
  103|      1|        {
  104|      1|        }
_ZNK8jsoncons6detail4spanIlLm18446744073709551615EE4dataEv:
  111|      1|        {
  112|      1|            return data_;
  113|      1|        }
_ZN8jsoncons6detail4spanIfLm18446744073709551615EEC2EPfm:
   61|      4|            : data_(data), size_(size)
   62|      4|        {
   63|      4|        }
_ZNK8jsoncons6detail4spanIfLm18446744073709551615EE4sizeEv:
  116|      4|        {
  117|      4|            return size_;
  118|      4|        }
_ZN8jsoncons6detail4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|      2|            : data_(s.data()), size_(s.size())
  103|      2|        {
  104|      2|        }
_ZNK8jsoncons6detail4spanIfLm18446744073709551615EE4dataEv:
  111|      2|        {
  112|      2|            return data_;
  113|      2|        }
_ZNK8jsoncons6detail4spanIKfLm18446744073709551615EEixEm:
  126|      4|         {
  127|      4|             return data_[index];
  128|      4|         }

_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1011|    894|        {
 1012|    894|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1012:17): [True: 185, False: 709]
  ------------------
 1013|    185|            {
 1014|    185|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1014:21): [True: 106, False: 79]
  |  Branch (1014:73): [True: 106, False: 0]
  ------------------
 1015|    106|                {
 1016|    106|                    key_buffer_.push_back(',');
 1017|    106|                }
 1018|    185|                level_stack_.emplace_back(target_t::buffer, container_t::array);
 1019|    185|                key_buffer_.push_back('[');
 1020|    185|            }
 1021|    709|            else
 1022|    709|            {
 1023|    709|                switch (level_stack_.back().target())
 1024|    709|                {
 1025|    626|                    case target_t::buffer:
  ------------------
  |  Branch (1025:21): [True: 626, False: 83]
  ------------------
 1026|    626|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1026:29): [True: 519, False: 107]
  |  Branch (1026:65): [True: 518, False: 1]
  ------------------
 1027|    518|                        {
 1028|    518|                            key_buffer_.push_back(',');
 1029|    518|                        }
 1030|    626|                        level_stack_.emplace_back(target_t::buffer, container_t::array);
 1031|    626|                        key_buffer_.push_back('[');
 1032|    626|                        break;
 1033|     83|                    default:
  ------------------
  |  Branch (1033:21): [True: 83, False: 626]
  ------------------
 1034|     83|                        level_stack_.emplace_back(target_t::destination, container_t::array);
 1035|     83|                        destination_->begin_array(length, tag, context, ec);
 1036|     83|                        break;
 1037|    709|                }
 1038|    709|            }
 1039|    894|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    894|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1040|    894|        }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6is_keyEv:
  814|  6.28M|            {
  815|  6.28M|                return even_odd_ == 0;
  816|  6.28M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level6targetEv:
  824|  3.38M|            {
  825|  3.38M|                return state_;
  826|  3.38M|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level5countEv:
  829|   762k|            {
  830|   762k|                return count_;
  831|   762k|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5levelC2ENS4_8target_tENS4_11container_tE:
  797|    931|                : state_(state), type_(type), even_odd_(type == container_t::object ? 0 : 1)
  ------------------
  |  Branch (797:57): [True: 30, False: 901]
  ------------------
  798|    931|            {
  799|    931|            }
_ZNK8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level9is_objectEv:
  819|  2.85M|            {
  820|  2.85M|                return type_ == container_t::object;
  821|  2.85M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1043|    890|        {
 1044|    890|            switch (level_stack_.back().target())
 1045|    890|            {
 1046|    810|                case target_t::buffer:
  ------------------
  |  Branch (1046:17): [True: 810, False: 80]
  ------------------
 1047|    810|                    key_buffer_.push_back(']');
 1048|    810|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|    810|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 810]
  |  |  ------------------
  |  |   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|    810|                    level_stack_.pop_back();
 1050|    810|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (1050:25): [True: 78, False: 732]
  ------------------
 1051|     78|                    {
 1052|     78|                        destination_->key(key_buffer_, context, ec);
 1053|     78|                        key_buffer_.clear();
 1054|     78|                    }
 1055|    732|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1055:30): [True: 106, False: 626]
  ------------------
 1056|    106|                    {
 1057|    106|                        key_buffer_.push_back(':');
 1058|    106|                    }
 1059|    810|                    level_stack_.back().advance();
 1060|    810|                    break;
 1061|     80|                default:
  ------------------
  |  Branch (1061:17): [True: 80, False: 810]
  ------------------
 1062|     80|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|     80|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 80]
  |  |  ------------------
  |  |   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|     80|                    level_stack_.pop_back();
 1064|     80|                    level_stack_.back().advance();
 1065|     80|                    destination_->end_array(context, ec);
 1066|     80|                    break;
 1067|    890|            }
 1068|    890|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    890|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1069|    890|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE5level7advanceEv:
  802|  2.09M|            {
  803|  2.09M|                if (!is_key())
  ------------------
  |  Branch (803:21): [True: 1.28M, False: 808k]
  ------------------
  804|  1.28M|                {
  805|  1.28M|                    ++count_;
  806|  1.28M|                }
  807|  2.09M|                if (is_object())
  ------------------
  |  Branch (807:21): [True: 1.61M, False: 477k]
  ------------------
  808|  1.61M|                {
  809|  1.61M|                    even_odd_ = !even_odd_;
  810|  1.61M|                }
  811|  2.09M|            }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1236|  2.09M|        {
 1237|  2.09M|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1237:17): [True: 808k, False: 1.28M]
  |  Branch (1237:49): [True: 761k, False: 523k]
  ------------------
 1238|  1.56M|            {
 1239|  1.56M|                key_.clear();
 1240|  1.56M|                jsoncons::from_integer(value,key_);
 1241|  1.56M|            }
 1242|       |
 1243|  2.09M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1243:17): [True: 808k, False: 1.28M]
  ------------------
 1244|   808k|            {
 1245|   808k|                switch (level_stack_.back().target())
 1246|   808k|                {
 1247|   284k|                    case target_t::buffer:
  ------------------
  |  Branch (1247:21): [True: 284k, False: 523k]
  ------------------
 1248|   284k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1248:29): [True: 284k, False: 2]
  ------------------
 1249|   284k|                        {
 1250|   284k|                            key_buffer_.push_back(',');
 1251|   284k|                        }
 1252|   284k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1253|   284k|                        key_buffer_.push_back(':');
 1254|   284k|                        break;
 1255|   523k|                    default:
  ------------------
  |  Branch (1255:21): [True: 523k, False: 284k]
  ------------------
 1256|   523k|                        destination_->key(key_, context, ec);
 1257|   523k|                        break;
 1258|   808k|                }
 1259|   808k|            }
 1260|  1.28M|            else
 1261|  1.28M|            {
 1262|  1.28M|                switch (level_stack_.back().target())
 1263|  1.28M|                {
 1264|   761k|                    case target_t::buffer:
  ------------------
  |  Branch (1264:21): [True: 761k, False: 523k]
  ------------------
 1265|   761k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1265:29): [True: 476k, False: 284k]
  |  Branch (1265:65): [True: 476k, False: 3]
  ------------------
 1266|   476k|                        {
 1267|   476k|                            key_buffer_.push_back(',');
 1268|   476k|                        }
 1269|   761k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1270|   761k|                        break;
 1271|   523k|                    default:
  ------------------
  |  Branch (1271:21): [True: 523k, False: 761k]
  ------------------
 1272|   523k|                        destination_->uint64_value(value, tag, context, ec);
 1273|   523k|                        break;
 1274|  1.28M|                }
 1275|  1.28M|            }
 1276|       |
 1277|  2.09M|            level_stack_.back().advance();
 1278|  2.09M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  2.09M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1279|  2.09M|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1282|    275|        {
 1283|    275|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1283:17): [True: 117, False: 158]
  |  Branch (1283:49): [True: 149, False: 9]
  ------------------
 1284|    266|            {
 1285|    266|                key_.clear();
 1286|    266|                jsoncons::from_integer(value,key_);
 1287|    266|            }
 1288|       |
 1289|    275|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1289:17): [True: 117, False: 158]
  ------------------
 1290|    117|            {
 1291|    117|                switch (level_stack_.back().target())
 1292|    117|                {
 1293|    104|                    case target_t::buffer:
  ------------------
  |  Branch (1293:21): [True: 104, False: 13]
  ------------------
 1294|    104|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1294:29): [True: 103, False: 1]
  ------------------
 1295|    103|                        {
 1296|    103|                            key_buffer_.push_back(',');
 1297|    103|                        }
 1298|    104|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1299|    104|                        key_buffer_.push_back(':');
 1300|    104|                        break;
 1301|     13|                    default:
  ------------------
  |  Branch (1301:21): [True: 13, False: 104]
  ------------------
 1302|     13|                        destination_->key(key_, context, ec);
 1303|     13|                        break;
 1304|    117|                }
 1305|    117|            }
 1306|    158|            else
 1307|    158|            {
 1308|    158|                switch (level_stack_.back().target())
 1309|    158|                {
 1310|    149|                    case target_t::buffer:
  ------------------
  |  Branch (1310:21): [True: 149, False: 9]
  ------------------
 1311|    149|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1311:29): [True: 49, False: 100]
  |  Branch (1311:65): [True: 39, False: 10]
  ------------------
 1312|     39|                        {
 1313|     39|                            key_buffer_.push_back(',');
 1314|     39|                        }
 1315|    149|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1316|    149|                        break;
 1317|      9|                    default:
  ------------------
  |  Branch (1317:21): [True: 9, False: 149]
  ------------------
 1318|      9|                        destination_->int64_value(value, tag, context, ec);
 1319|      9|                        break;
 1320|    158|                }
 1321|    158|            }
 1322|       |
 1323|    275|            level_stack_.back().advance();
 1324|    275|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    275|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1325|    275|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1377|      4|        {
 1378|      4|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1378:17): [True: 0, False: 4]
  |  Branch (1378:49): [True: 2, False: 2]
  ------------------
 1379|      2|            {
 1380|      2|                key_.clear();
 1381|      2|                string_sink<string_type> sink(key_);
 1382|      2|                jsoncons::write_double f{float_chars_format::general,0};
 1383|      2|                f(value, sink);
 1384|      2|            }
 1385|       |
 1386|      4|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1386:17): [True: 0, False: 4]
  ------------------
 1387|      0|            {
 1388|      0|                switch (level_stack_.back().target())
 1389|      0|                {
 1390|      0|                    case target_t::buffer:
  ------------------
  |  Branch (1390:21): [True: 0, False: 0]
  ------------------
 1391|      0|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1391:29): [True: 0, False: 0]
  ------------------
 1392|      0|                        {
 1393|      0|                            key_buffer_.push_back(',');
 1394|      0|                        }
 1395|      0|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1396|      0|                        key_buffer_.push_back(':');
 1397|      0|                        break;
 1398|      0|                    default:
  ------------------
  |  Branch (1398:21): [True: 0, False: 0]
  ------------------
 1399|      0|                        destination_->key(key_, context, ec);
 1400|      0|                        break;
 1401|      0|                }
 1402|      0|            }
 1403|      4|            else
 1404|      4|            {
 1405|      4|                switch (level_stack_.back().target())
 1406|      4|                {
 1407|      2|                    case target_t::buffer:
  ------------------
  |  Branch (1407:21): [True: 2, False: 2]
  ------------------
 1408|      2|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1408:29): [True: 2, False: 0]
  |  Branch (1408:65): [True: 1, False: 1]
  ------------------
 1409|      1|                        {
 1410|      1|                            key_buffer_.push_back(',');
 1411|      1|                        }
 1412|      2|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1413|      2|                        break;
 1414|      2|                    default:
  ------------------
  |  Branch (1414:21): [True: 2, False: 2]
  ------------------
 1415|      2|                        destination_->double_value(value, tag, context, ec);
 1416|      2|                        break;
 1417|      4|                }
 1418|      4|            }
 1419|       |
 1420|      4|            level_stack_.back().advance();
 1421|      4|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      4|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1422|      4|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  884|      3|        {
  885|      3|            destination_->flush();
  886|      3|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  889|      2|        {
  890|      2|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (890:17): [True: 0, False: 2]
  ------------------
  891|      0|            {
  892|      0|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (892:21): [True: 0, False: 0]
  |  Branch (892:73): [True: 0, False: 0]
  ------------------
  893|      0|                {
  894|      0|                    key_buffer_.push_back(',');
  895|      0|                }
  896|      0|                level_stack_.emplace_back(target_t::buffer, container_t::object);
  897|      0|                key_buffer_.push_back('{');
  898|      0|            }
  899|      2|            else
  900|      2|            {
  901|      2|                switch (level_stack_.back().target())
  902|      2|                {
  903|      1|                    case target_t::buffer:
  ------------------
  |  Branch (903:21): [True: 1, False: 1]
  ------------------
  904|      1|                        level_stack_.emplace_back(target_t::buffer, container_t::object);
  905|      1|                        key_buffer_.push_back('{');
  906|      1|                        break;
  907|      1|                    default:
  ------------------
  |  Branch (907:21): [True: 1, False: 1]
  ------------------
  908|      1|                        level_stack_.emplace_back(target_t::destination, container_t::object);
  909|      1|                        destination_->begin_object(tag, context, ec);
  910|      1|                        break;
  911|      2|                }
  912|      2|            }
  913|      2|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  914|      2|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  917|     28|        {
  918|     28|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (918:17): [True: 18, False: 10]
  ------------------
  919|     18|            {
  920|     18|                if (level_stack_.back().target() == target_t::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (920:21): [True: 13, False: 5]
  |  Branch (920:73): [True: 2, False: 11]
  ------------------
  921|      2|                {
  922|      2|                    key_buffer_.push_back(',');
  923|      2|                }
  924|     18|                level_stack_.emplace_back(target_t::buffer, container_t::object);
  925|     18|                key_buffer_.push_back('{');
  926|     18|            }
  927|     10|            else
  928|     10|            {
  929|     10|                switch (level_stack_.back().target())
  930|     10|                {
  931|      6|                    case target_t::buffer:
  ------------------
  |  Branch (931:21): [True: 6, False: 4]
  ------------------
  932|      6|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (932:29): [True: 4, False: 2]
  |  Branch (932:65): [True: 4, False: 0]
  ------------------
  933|      4|                        {
  934|      4|                            key_buffer_.push_back(',');
  935|      4|                        }
  936|      6|                        level_stack_.emplace_back(target_t::buffer, container_t::object);
  937|      6|                        key_buffer_.push_back('{');
  938|      6|                        break;
  939|      4|                    default:
  ------------------
  |  Branch (939:21): [True: 4, False: 6]
  ------------------
  940|      4|                        level_stack_.emplace_back(target_t::destination, container_t::object);
  941|      4|                        destination_->begin_object(length, tag, context, ec);
  942|      4|                        break;
  943|     10|                }
  944|     10|            }
  945|     28|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     28|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  946|     28|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  949|     28|        {
  950|     28|            switch (level_stack_.back().target())
  951|     28|            {
  952|     25|                case target_t::buffer:
  ------------------
  |  Branch (952:17): [True: 25, False: 3]
  ------------------
  953|     25|                    key_buffer_.push_back('}');
  954|     25|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|     25|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 25]
  |  |  ------------------
  |  |   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|     25|                    level_stack_.pop_back();
  956|       |                    
  957|     25|                    if (level_stack_.back().target() == target_t::destination)
  ------------------
  |  Branch (957:25): [True: 5, False: 20]
  ------------------
  958|      5|                    {
  959|      5|                        destination_->key(key_buffer_,context, ec);
  960|      5|                        key_buffer_.clear();
  961|      5|                    }
  962|     20|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (962:30): [True: 13, False: 7]
  ------------------
  963|     13|                    {
  964|     13|                        key_buffer_.push_back(':');
  965|     13|                    }
  966|     25|                    level_stack_.back().advance();
  967|     25|                    break;
  968|      3|                default:
  ------------------
  |  Branch (968:17): [True: 3, False: 25]
  ------------------
  969|      3|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   45|      3|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 3]
  |  |  ------------------
  |  |   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|      3|                    level_stack_.pop_back();
  971|      3|                    level_stack_.back().advance();
  972|      3|                    destination_->end_object(context, ec);
  973|      3|                    break;
  974|     28|            }
  975|     28|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     28|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  976|     28|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1478|     33|        {
 1479|     33|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1479:17): [True: 14, False: 19]
  |  Branch (1479:49): [True: 4, False: 15]
  ------------------
 1480|     18|            {
 1481|     18|                key_.clear(); 
 1482|     18|                key_.insert(key_.begin(), null_constant.begin(), null_constant.end());
 1483|     18|            }
 1484|       |
 1485|     33|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1485:17): [True: 14, False: 19]
  ------------------
 1486|     14|            {
 1487|     14|                switch (level_stack_.back().target())
 1488|     14|                {
 1489|      0|                    case target_t::buffer:
  ------------------
  |  Branch (1489:21): [True: 0, False: 14]
  ------------------
 1490|      0|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1490:29): [True: 0, False: 0]
  ------------------
 1491|      0|                        {
 1492|      0|                            key_buffer_.push_back(',');
 1493|      0|                        }
 1494|      0|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1495|      0|                        key_buffer_.push_back(':');
 1496|      0|                        break;
 1497|     14|                    default:
  ------------------
  |  Branch (1497:21): [True: 14, False: 0]
  ------------------
 1498|     14|                        destination_->key(key_, context, ec);
 1499|     14|                        break;
 1500|     14|                }
 1501|     14|            }
 1502|     19|            else
 1503|     19|            {
 1504|     19|                switch (level_stack_.back().target())
 1505|     19|                {
 1506|      4|                    case target_t::buffer:
  ------------------
  |  Branch (1506:21): [True: 4, False: 15]
  ------------------
 1507|      4|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1507:29): [True: 4, False: 0]
  |  Branch (1507:65): [True: 4, False: 0]
  ------------------
 1508|      4|                        {
 1509|      4|                            key_buffer_.push_back(',');
 1510|      4|                        }
 1511|      4|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1512|      4|                        break;
 1513|     15|                    default:
  ------------------
  |  Branch (1513:21): [True: 15, False: 4]
  ------------------
 1514|     15|                        destination_->null_value(tag, context, ec);
 1515|     15|                        break;
 1516|     19|                }
 1517|     19|            }
 1518|       |
 1519|     33|            level_stack_.back().advance();
 1520|     33|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     33|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1521|     33|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1425|     14|        {
 1426|     14|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1426:17): [True: 7, False: 7]
  |  Branch (1426:49): [True: 0, False: 7]
  ------------------
 1427|      7|            {
 1428|      7|                key_.clear(); 
 1429|      7|                if (value)
  ------------------
  |  Branch (1429:21): [True: 7, False: 0]
  ------------------
 1430|      7|                {
 1431|      7|                    key_.insert(key_.begin(), true_constant.begin(), true_constant.end());
 1432|      7|                }
 1433|      0|                else
 1434|      0|                {
 1435|      0|                    key_.insert(key_.begin(), false_constant.begin(), false_constant.end());
 1436|      0|                }
 1437|      7|            }
 1438|       |
 1439|     14|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1439:17): [True: 7, False: 7]
  ------------------
 1440|      7|            {
 1441|      7|                switch (level_stack_.back().target())
 1442|      7|                {
 1443|      0|                    case target_t::buffer:
  ------------------
  |  Branch (1443:21): [True: 0, False: 7]
  ------------------
 1444|      0|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1444:29): [True: 0, False: 0]
  ------------------
 1445|      0|                        {
 1446|      0|                            key_buffer_.push_back(',');
 1447|      0|                        }
 1448|      0|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1449|      0|                        key_buffer_.push_back(':');
 1450|      0|                        break;
 1451|      7|                    default:
  ------------------
  |  Branch (1451:21): [True: 7, False: 0]
  ------------------
 1452|      7|                        destination_->key(key_, context, ec);
 1453|      7|                        break;
 1454|      7|                }
 1455|      7|            }
 1456|      7|            else
 1457|      7|            {
 1458|      7|                switch (level_stack_.back().target())
 1459|      7|                {
 1460|      0|                    case target_t::buffer:
  ------------------
  |  Branch (1460:21): [True: 0, False: 7]
  ------------------
 1461|      0|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1461:29): [True: 0, False: 0]
  |  Branch (1461:65): [True: 0, False: 0]
  ------------------
 1462|      0|                        {
 1463|      0|                            key_buffer_.push_back(',');
 1464|      0|                        }
 1465|      0|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1466|      0|                        break;
 1467|      7|                    default:
  ------------------
  |  Branch (1467:21): [True: 7, False: 0]
  ------------------
 1468|      7|                        destination_->bool_value(value, tag, context, ec);
 1469|      7|                        break;
 1470|      7|                }
 1471|      7|            }
 1472|       |
 1473|     14|            level_stack_.back().advance();
 1474|     14|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     14|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1475|     14|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1075|     14|        {
 1076|     14|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1076:17): [True: 6, False: 8]
  ------------------
 1077|      6|            {
 1078|      6|                switch (level_stack_.back().target())
 1079|      6|                {
 1080|      2|                    case target_t::buffer:
  ------------------
  |  Branch (1080:21): [True: 2, False: 4]
  ------------------
 1081|      2|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1081:29): [True: 2, False: 0]
  ------------------
 1082|      2|                        {
 1083|      2|                            key_buffer_.push_back(',');
 1084|      2|                        }
 1085|      2|                        key_buffer_.push_back('\"');
 1086|      2|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1087|      2|                        key_buffer_.push_back('\"');
 1088|      2|                        key_buffer_.push_back(':');
 1089|      2|                        break;
 1090|      4|                    default:
  ------------------
  |  Branch (1090:21): [True: 4, False: 2]
  ------------------
 1091|      4|                        destination_->key(value, context, ec);
 1092|      4|                        break;
 1093|      6|                }
 1094|      6|            }
 1095|      8|            else
 1096|      8|            {
 1097|      8|                switch (level_stack_.back().target())
 1098|      8|                {
 1099|      2|                    case target_t::buffer:
  ------------------
  |  Branch (1099:21): [True: 2, False: 6]
  ------------------
 1100|      2|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1100:29): [True: 0, False: 2]
  |  Branch (1100:65): [True: 0, False: 0]
  ------------------
 1101|      0|                        {
 1102|      0|                            key_buffer_.push_back(',');
 1103|      0|                        }
 1104|      2|                        key_buffer_.push_back('\"');
 1105|      2|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1106|      2|                        key_buffer_.push_back('\"');
 1107|      2|                        break;
 1108|      6|                    default:
  ------------------
  |  Branch (1108:21): [True: 6, False: 2]
  ------------------
 1109|      6|                        destination_->string_value(value, tag, context, ec);
 1110|      6|                        break;
 1111|      8|                }
 1112|      8|            }
 1113|       |
 1114|     14|            level_stack_.back().advance();
 1115|     14|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     14|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1116|     14|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1122|    390|        {
 1123|    390|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1123:17): [True: 164, False: 226]
  |  Branch (1123:49): [True: 65, False: 161]
  ------------------
 1124|    229|            {
 1125|    229|                key_.clear();
 1126|    229|                switch (tag)
 1127|    229|                {
 1128|      0|                    case semantic_tag::base64:
  ------------------
  |  Branch (1128:21): [True: 0, False: 229]
  ------------------
 1129|      0|                        bytes_to_base64(value.begin(), value.end(), key_);
 1130|      0|                        break;
 1131|      0|                    case semantic_tag::base16:
  ------------------
  |  Branch (1131:21): [True: 0, False: 229]
  ------------------
 1132|      0|                        bytes_to_base16(value.begin(), value.end(),key_);
 1133|      0|                        break;
 1134|    229|                    default:
  ------------------
  |  Branch (1134:21): [True: 229, False: 0]
  ------------------
 1135|    229|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1136|    229|                        break;
 1137|    229|                }
 1138|    229|            }
 1139|       |
 1140|    390|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1140:17): [True: 164, False: 226]
  ------------------
 1141|    164|            {
 1142|    164|                switch (level_stack_.back().target())
 1143|    164|                {
 1144|      8|                    case target_t::buffer:
  ------------------
  |  Branch (1144:21): [True: 8, False: 156]
  ------------------
 1145|      8|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1145:29): [True: 4, False: 4]
  ------------------
 1146|      4|                        {
 1147|      4|                            key_buffer_.push_back(',');
 1148|      4|                        }
 1149|      8|                        key_buffer_.push_back('\"');
 1150|      8|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1151|      8|                        key_buffer_.push_back('\"');
 1152|      8|                        key_buffer_.push_back(':');
 1153|      8|                        break;
 1154|    156|                    default:
  ------------------
  |  Branch (1154:21): [True: 156, False: 8]
  ------------------
 1155|    156|                        destination_->key(key_, context, ec);
 1156|    156|                        break;
 1157|    164|                }
 1158|    164|            }
 1159|    226|            else
 1160|    226|            {
 1161|    226|                switch (level_stack_.back().target())
 1162|    226|                {
 1163|     65|                    case target_t::buffer:
  ------------------
  |  Branch (1163:21): [True: 65, False: 161]
  ------------------
 1164|     65|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1164:29): [True: 49, False: 16]
  |  Branch (1164:65): [True: 48, False: 1]
  ------------------
 1165|     48|                        {
 1166|     48|                            key_buffer_.push_back(',');
 1167|     48|                        }
 1168|     65|                        key_buffer_.push_back('\"');
 1169|     65|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1170|     65|                        key_buffer_.push_back('\"');
 1171|     65|                        break;
 1172|    161|                    default:
  ------------------
  |  Branch (1172:21): [True: 161, False: 65]
  ------------------
 1173|    161|                        destination_->byte_string_value(value, tag, context, ec);
 1174|    161|                        break;
 1175|    226|                }
 1176|    226|            }
 1177|       |
 1178|    390|            level_stack_.back().advance();
 1179|    390|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    390|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1180|    390|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1186|     22|        {
 1187|     22|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1187:17): [True: 3, False: 19]
  |  Branch (1187:49): [True: 18, False: 1]
  ------------------
 1188|     21|            {
 1189|     21|                key_.clear();
 1190|     21|                bytes_to_base64url(value.begin(), value.end(),key_);
 1191|     21|            }
 1192|       |
 1193|     22|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1193:17): [True: 3, False: 19]
  ------------------
 1194|      3|            {
 1195|      3|                switch (level_stack_.back().target())
 1196|      3|                {
 1197|      3|                    case target_t::buffer:
  ------------------
  |  Branch (1197:21): [True: 3, False: 0]
  ------------------
 1198|      3|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1198:29): [True: 3, False: 0]
  ------------------
 1199|      3|                        {
 1200|      3|                            key_buffer_.push_back(',');
 1201|      3|                        }
 1202|      3|                        key_buffer_.push_back('\"');
 1203|      3|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1204|      3|                        key_buffer_.push_back('\"');
 1205|      3|                        key_buffer_.push_back(':');
 1206|      3|                        break;
 1207|      0|                    default:
  ------------------
  |  Branch (1207:21): [True: 0, False: 3]
  ------------------
 1208|      0|                        destination_->key(key_, context, ec);
 1209|      0|                        break;
 1210|      3|                }
 1211|      3|            }
 1212|     19|            else
 1213|     19|            {
 1214|     19|                switch (level_stack_.back().target())
 1215|     19|                {
 1216|     18|                    case target_t::buffer:
  ------------------
  |  Branch (1216:21): [True: 18, False: 1]
  ------------------
 1217|     18|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1217:29): [True: 15, False: 3]
  |  Branch (1217:65): [True: 15, False: 0]
  ------------------
 1218|     15|                        {
 1219|     15|                            key_buffer_.push_back(',');
 1220|     15|                        }
 1221|     18|                        key_buffer_.push_back('\"');
 1222|     18|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1223|     18|                        key_buffer_.push_back('\"');
 1224|     18|                        break;
 1225|      1|                    default:
  ------------------
  |  Branch (1225:21): [True: 1, False: 18]
  ------------------
 1226|      1|                        destination_->byte_string_value(value, ext_tag, context, ec);
 1227|      1|                        break;
 1228|     19|                }
 1229|     19|            }
 1230|       |
 1231|     22|            level_stack_.back().advance();
 1232|     22|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     22|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1233|     22|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1328|      3|        {
 1329|      3|            if (level_stack_.back().is_key() || level_stack_.back().target() == target_t::buffer)
  ------------------
  |  Branch (1329:17): [True: 0, False: 3]
  |  Branch (1329:49): [True: 3, False: 0]
  ------------------
 1330|      3|            {
 1331|      3|                key_.clear();
 1332|      3|                jsoncons::string_sink<string_type> sink(key_);
 1333|      3|                jsoncons::write_double f{float_chars_format::general,0};
 1334|      3|                double x = binary::decode_half(value);
 1335|      3|                f(x, sink);
 1336|      3|            }
 1337|       |
 1338|      3|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1338:17): [True: 0, False: 3]
  ------------------
 1339|      0|            {
 1340|      0|                switch (level_stack_.back().target())
 1341|      0|                {
 1342|      0|                    case target_t::buffer:
  ------------------
  |  Branch (1342:21): [True: 0, False: 0]
  ------------------
 1343|      0|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1343:29): [True: 0, False: 0]
  ------------------
 1344|      0|                        {
 1345|      0|                            key_buffer_.push_back(',');
 1346|      0|                        }
 1347|      0|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1348|      0|                        key_buffer_.push_back(':');
 1349|      0|                        break;
 1350|      0|                    default:
  ------------------
  |  Branch (1350:21): [True: 0, False: 0]
  ------------------
 1351|      0|                        destination_->key(key_, context, ec);
 1352|      0|                        break;
 1353|      0|                }
 1354|      0|            }
 1355|      3|            else
 1356|      3|            {
 1357|      3|                switch (level_stack_.back().target())
 1358|      3|                {
 1359|      3|                    case target_t::buffer:
  ------------------
  |  Branch (1359:21): [True: 3, False: 0]
  ------------------
 1360|      3|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1360:29): [True: 2, False: 1]
  |  Branch (1360:65): [True: 2, False: 0]
  ------------------
 1361|      2|                        {
 1362|      2|                            key_buffer_.push_back(',');
 1363|      2|                        }
 1364|      3|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1365|      3|                        break;
 1366|      0|                    default:
  ------------------
  |  Branch (1366:21): [True: 0, False: 3]
  ------------------
 1367|      0|                        destination_->half_value(value, tag, context, ec);
 1368|      0|                        break;
 1369|      3|                }
 1370|      3|            }
 1371|       |
 1372|      3|            level_stack_.back().advance();
 1373|      3|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1374|      3|        }
_ZN8jsoncons24basic_item_event_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  293|    894|        {
  294|    894|            visit_begin_array(length, tag, context, ec);
  295|    894|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    894|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  296|    894|        }
_ZN8jsoncons24basic_item_event_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  362|  2.09M|        {
  363|  2.09M|            visit_uint64(value, tag, context, ec);
  364|  2.09M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  2.09M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  365|  2.09M|        }
_ZN8jsoncons24basic_item_event_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  299|    890|        {
  300|    890|            visit_end_array(context, ec);
  301|    890|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    890|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  302|    890|        }
_ZN8jsoncons24basic_item_event_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  371|    275|        {
  372|    275|            visit_int64(value, tag, context, ec);
  373|    275|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    275|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  374|    275|        }
_ZN8jsoncons24basic_item_event_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  380|      3|        {
  381|      3|            visit_half(value, tag, context, ec);
  382|      3|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  383|      3|        }
_ZN8jsoncons24basic_item_event_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  389|      4|        {
  390|      4|            visit_double(value, tag, context, ec);
  391|      4|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      4|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  392|      4|        }
_ZN8jsoncons40basic_item_event_visitor_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  858|      7|            : destination_(std::addressof(visitor)), 
  859|      7|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  860|      7|        {
  861|      7|            level_stack_.emplace_back(target_t::destination,container_t::root); // root
  862|      7|        }
_ZN8jsoncons24basic_item_event_visitorIcEC2Ev:
   51|      7|        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|    390|        {
  343|    390|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  344|    390|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    390|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  345|    390|        }
_ZN8jsoncons24basic_item_event_visitorIcE17byte_string_valueINSt3__16vectorIhNS3_9allocatorIhEEEEEEbRKT_mRKNS_11ser_contextERNS3_10error_codeENS3_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS8_EE5valueEiE4typeE:
  353|     22|        {
  354|     22|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), ext_tag, context, ec);
  355|     22|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     22|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  356|     22|        }
_ZN8jsoncons24basic_item_event_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  322|     14|        {
  323|     14|            visit_bool(value, tag, context, ec);
  324|     14|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     14|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  325|     14|        }
_ZN8jsoncons24basic_item_event_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  313|     33|        {
  314|     33|            visit_null(tag, context, ec);
  315|     33|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     33|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  316|     33|        }
_ZN8jsoncons24basic_item_event_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  331|     14|        {
  332|     14|            visit_string(value, tag, context, ec);
  333|     14|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     14|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  334|     14|        }
_ZN8jsoncons24basic_item_event_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  266|      2|        {
  267|      2|            visit_begin_object(tag, context, ec);
  268|      2|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  269|      2|        }
_ZN8jsoncons24basic_item_event_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  275|     28|        {
  276|     28|            visit_begin_object(length, tag, context, ec);
  277|     28|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     28|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  278|     28|        }
_ZN8jsoncons24basic_item_event_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  281|     28|        {
  282|     28|            visit_end_object(context, ec);
  283|     28|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     28|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  284|     28|        }
_ZN8jsoncons24basic_item_event_visitorIcE5flushEv:
   56|      3|        {
   57|      3|            visit_flush();
   58|      3|        }

_ZN8jsoncons19typed_array_visitorD2Ev:
   33|     21|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|     83|        {
  346|     83|            visit_begin_array(length, tag, context, ec);
  347|     83|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     83|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|     83|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|   524k|        {
  358|   524k|            visit_key(name, context, ec);
  359|   524k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   524k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|   524k|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|     80|        {
  352|     80|            visit_end_array(context, ec);
  353|     80|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     80|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|     80|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|   523k|        {
  415|   523k|            visit_uint64(value, tag, context, ec);
  416|   523k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   523k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|   523k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|      9|        {
  424|      9|            visit_int64(value, tag, context, ec);
  425|      9|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      9|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|      9|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|      2|        {
  442|      2|            visit_double(value, tag, context, ec);
  443|      2|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|      2|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|      3|        {
  109|      3|            visit_flush();
  110|      3|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|      1|        {
  319|      1|            visit_begin_object(tag, context, ec);
  320|      1|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|      1|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|      4|        {
  328|      4|            visit_begin_object(length, tag, context, ec);
  329|      4|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      4|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|      4|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|      3|        {
  334|      3|            visit_end_object(context, ec);
  335|      3|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|      3|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|     15|        {
  366|     15|            visit_null(tag, context, ec);
  367|     15|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     15|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|     15|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|      7|        {
  375|      7|            visit_bool(value, tag, context, ec);
  376|      7|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      7|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|      7|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|      6|        {
  384|      6|            visit_string(value, tag, context, ec);
  385|      6|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      6|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|      6|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|    161|        {
  395|    161|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|    161|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    161|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|    161|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|      1|        {
  406|      1|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), ext_tag, context, ec);
  407|      1|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|      1|        }
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|     14|        basic_json_visitor() = default;
_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|      7|        basic_default_json_visitor() = default;

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

_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2ERS7_:
  256|      5|            : buf_ptr(std::addressof(buf))
  257|      5|        {
  258|      5|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE9push_backEc:
  287|     69|        {
  288|     69|            buf_ptr->push_back(ch);
  289|     69|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvEC2ERS5_:
  315|      7|            : buf_ptr(std::addressof(buf))
  316|      7|        {
  317|      7|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE9push_backEh:
  329|  1.57M|        {
  330|  1.57M|            buf_ptr->push_back(static_cast<value_type>(ch));
  331|  1.57M|        }
_ZN8jsoncons10bytes_sinkINSt3__16vectorIhNS1_9allocatorIhEEEEvE5flushEv:
  325|     10|        {
  326|     10|        }

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  188|      7|        {
  189|      7|            if (buffer_)
  ------------------
  |  Branch (189:17): [True: 7, False: 0]
  ------------------
  190|      7|            {
  191|      7|                std::allocator_traits<char_allocator_type>::deallocate(alloc_, buffer_, buffer_size_);
  192|      7|            }
  193|      7|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  171|      7|            : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  172|      7|              buffer_size_(default_max_buffer_size)
  173|      7|        {
  174|      7|            buffer_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, buffer_size_);
  175|      7|            data_ = buffer_;
  176|      7|        }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   54|      7|          : std::basic_istream<CharT>(&nb_)
   55|      7|        {
   56|      7|        }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   40|      7|            null_buffer() = default;
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  343|  2.09M|        {
  344|  2.09M|            std::size_t len = 0;
  345|  2.09M|            if (length_ > 0)
  ------------------
  |  Branch (345:17): [True: 2.09M, False: 0]
  ------------------
  346|  2.09M|            {
  347|  2.09M|                len = (std::min)(length_, length);
  348|  2.09M|                std::memcpy(p, data_, len*sizeof(value_type));
  349|  2.09M|                data_ += len;
  350|  2.09M|                length_ -= len;
  351|  2.09M|                position_ += len;
  352|  2.09M|            }
  353|  2.09M|            if (length - len == 0)
  ------------------
  |  Branch (353:17): [True: 2.09M, False: 64]
  ------------------
  354|  2.09M|            {
  355|  2.09M|                return len;
  356|  2.09M|            }
  357|     64|            else if (length - len < buffer_size_)
  ------------------
  |  Branch (357:22): [True: 64, False: 0]
  ------------------
  358|     64|            {
  359|     64|                fill_buffer();
  360|     64|                if (length_ > 0)
  ------------------
  |  Branch (360:21): [True: 63, False: 1]
  ------------------
  361|     63|                {
  362|     63|                    std::size_t len2 = (std::min)(length_, length-len);
  363|     63|                    std::memcpy(p+len, data_, len2*sizeof(value_type));
  364|     63|                    data_ += len2;
  365|     63|                    length_ -= len2;
  366|     63|                    position_ += len2;
  367|     63|                    len += len2;
  368|     63|                }
  369|     64|                return len;
  370|     64|            }
  371|      0|            else
  372|      0|            {
  373|      0|                if (stream_ptr_->eof())
  ------------------
  |  Branch (373:21): [True: 0, False: 0]
  ------------------
  374|      0|                {
  375|      0|                    length_ = 0;
  376|      0|                    return 0;
  377|      0|                }
  378|      0|                JSONCONS_TRY
  ------------------
  |  |   37|      0|    #define JSONCONS_TRY try
  ------------------
  379|      0|                {
  380|      0|                    std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  381|      0|                    std::size_t len2 = static_cast<std::size_t>(count);
  382|      0|                    if (len2 < length-len)
  ------------------
  |  Branch (382:25): [True: 0, False: 0]
  ------------------
  383|      0|                    {
  384|      0|                        stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  385|      0|                    }
  386|      0|                    len += len2;
  387|      0|                    position_ += len2;
  388|      0|                    return len;
  389|      0|                }
  390|      0|                JSONCONS_CATCH(const std::exception&)     
  391|      0|                {
  392|      0|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  393|      0|                    return 0;
  394|      0|                }
  395|      0|            }
  396|  2.09M|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEv:
  399|    199|        {
  400|    199|            if (stream_ptr_->eof())
  ------------------
  |  Branch (400:17): [True: 0, False: 199]
  ------------------
  401|      0|            {
  402|      0|                length_ = 0;
  403|      0|                return;
  404|      0|            }
  405|       |
  406|    199|            data_ = buffer_;
  407|    199|            JSONCONS_TRY
  ------------------
  |  |   37|    199|    #define JSONCONS_TRY try
  ------------------
  408|    199|            {
  409|    199|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(buffer_), buffer_size_);
  410|    199|                length_ = static_cast<std::size_t>(count);
  411|       |
  412|    199|                if (length_ < buffer_size_)
  ------------------
  |  Branch (412:21): [True: 3, False: 196]
  ------------------
  413|      3|                {
  414|      3|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  415|      3|                }
  416|    199|            }
  417|    199|            JSONCONS_CATCH(const std::exception&)     
  418|    199|            {
  419|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  420|      0|                length_ = 0;
  421|      0|            }
  422|    199|        }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaaasr3std14is_convertibleIhNT_10value_typeEEE5valuesr10ext_traits11has_reserveISB_EE5valuesr10ext_traits14has_data_exactIPhSB_EE5valueEmE4typeERS5_RSB_m:
  859|  1.11k|        {
  860|  1.11k|            std::size_t unread = length;
  861|       |
  862|  1.11k|            std::size_t n = (std::min)(max_buffer_length, unread);
  863|  1.22k|            while (n > 0 && !source.eof())
  ------------------
  |  Branch (863:20): [True: 106, False: 1.11k]
  |  Branch (863:29): [True: 105, False: 1]
  ------------------
  864|    105|            {
  865|    105|                std::size_t offset = v.size();
  866|    105|                v.resize(v.size()+n);
  867|    105|                std::size_t actual = source.read(v.data()+offset, n);
  868|    105|                unread -= actual;
  869|    105|                n = (std::min)(max_buffer_length, unread);
  870|    105|            }
  871|       |
  872|  1.11k|            return length - unread;
  873|  1.11k|        }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|    106|        {
  272|    106|            return length_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:20): [True: 1, False: 105]
  |  Branch (272:36): [True: 1, False: 0]
  ------------------
  273|    106|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4peekEv:
  311|  5.00M|        {
  312|  5.00M|            if (length_ == 0)
  ------------------
  |  Branch (312:17): [True: 135, False: 5.00M]
  ------------------
  313|    135|            {
  314|    135|                fill_buffer();
  315|    135|            }
  316|  5.00M|            if (length_ > 0)
  ------------------
  |  Branch (316:17): [True: 5.00M, False: 2]
  ------------------
  317|  5.00M|            {
  318|  5.00M|                value_type c = *data_;
  319|  5.00M|                return char_result<value_type>{c, false};
  320|  5.00M|            }
  321|      2|            else
  322|      2|            {
  323|      2|                return char_result<value_type>{0, true};
  324|      2|            }
  325|  5.00M|        }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE6ignoreEm:
  286|    299|        {
  287|    299|            std::size_t len = 0;
  288|    299|            if (length_ > 0)
  ------------------
  |  Branch (288:17): [True: 299, False: 0]
  ------------------
  289|    299|            {
  290|    299|                len = (std::min)(length_, length);
  291|    299|                position_ += len;
  292|    299|                data_ += len;
  293|    299|                length_ -= len;
  294|    299|            }
  295|    299|            while (len < length)
  ------------------
  |  Branch (295:20): [True: 0, False: 299]
  ------------------
  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|    299|        }

_ZN8jsoncons16typed_array_castIKhEENS_6detail4spanIT_Lm18446744073709551615EEENS3_IhLm18446744073709551615EEE:
  141|      4|{
  142|      4|    return jsoncons::span<const uint8_t>{reinterpret_cast<const uint8_t*>(bytes.data()), bytes.size()};
  143|      4|}
_ZN8jsoncons16typed_array_castIhEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   81|      4|{
   82|      4|    return bytes;
   83|      4|}
_ZN8jsoncons16typed_array_castItEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   87|      2|{
   88|      2|    return jsoncons::span<uint16_t>{reinterpret_cast<uint16_t*>(bytes.data()), bytes.size()/sizeof(uint16_t)};
   89|      2|}
_ZN8jsoncons16typed_array_castImEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   99|      6|{
  100|      6|    return jsoncons::span<uint64_t>{reinterpret_cast<uint64_t*>(bytes.data()), bytes.size()/sizeof(uint64_t)};
  101|      6|}
_ZN8jsoncons16typed_array_castIsEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  111|  1.38k|{
  112|  1.38k|    return jsoncons::span<int16_t>{reinterpret_cast<int16_t*>(bytes.data()), bytes.size()/sizeof(int16_t)};
  113|  1.38k|}
_ZN8jsoncons16typed_array_castIlEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  123|      2|{
  124|      2|    return jsoncons::span<int64_t>{reinterpret_cast<int64_t*>(bytes.data()), bytes.size()/sizeof(int64_t)};
  125|      2|}
_ZN8jsoncons16typed_array_castIfEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  129|      4|{
  130|      4|    return jsoncons::span<float>{reinterpret_cast<float*>(bytes.data()), bytes.size()/sizeof(float)};
  131|      4|}

_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|      7|    {
   29|      7|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|      7|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|      7|#      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|      7|    }
_ZN8jsoncons6binary13native_to_bigIjNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|      3|    {
  128|      3|        T val2 = byte_swap(val);
  129|      3|        uint8_t buf[sizeof(T)];
  130|      3|        std::memcpy(buf, &val2, sizeof(T));
  131|      3|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 12, False: 3]
  ------------------
  132|     12|        {
  133|     12|            *d_first++ = item;
  134|     12|        }
  135|      3|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|     10|    {
   40|     10|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|     10|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|     10|#  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|     10|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|      5|    {
   52|      5|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|      5|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|      5|#  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|      5|    }
_ZN8jsoncons6binary13native_to_bigIhNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|   524k|    {
  128|   524k|        T val2 = byte_swap(val);
  129|   524k|        uint8_t buf[sizeof(T)];
  130|   524k|        std::memcpy(buf, &val2, sizeof(T));
  131|   524k|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 524k, False: 524k]
  ------------------
  132|   524k|        {
  133|   524k|            *d_first++ = item;
  134|   524k|        }
  135|   524k|    }
_ZN8jsoncons6binary9byte_swapIhEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|   524k|    {
   22|   524k|        return val;
   23|   524k|    }
_ZN8jsoncons6binary13native_to_bigIlNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|      5|    {
  128|      5|        T val2 = byte_swap(val);
  129|      5|        uint8_t buf[sizeof(T)];
  130|      5|        std::memcpy(buf, &val2, sizeof(T));
  131|      5|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 40, False: 5]
  ------------------
  132|     40|        {
  133|     40|            *d_first++ = item;
  134|     40|        }
  135|      5|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|      5|    {
   52|      5|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|      5|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|      5|#  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|      5|    }
_ZN8jsoncons6binary13native_to_bigIfNSt3__120back_insert_iteratorINS_10bytes_sinkINS2_6vectorIhNS2_9allocatorIhEEEEvEEEENS_6detail6endianEEENS2_9enable_ifIXeqsrT1_6nativesrSE_6littleEvE4typeET_T0_:
  127|      2|    {
  128|      2|        T val2 = byte_swap(val);
  129|      2|        uint8_t buf[sizeof(T)];
  130|      2|        std::memcpy(buf, &val2, sizeof(T));
  131|      2|        for (auto item : buf)
  ------------------
  |  Branch (131:24): [True: 8, False: 2]
  ------------------
  132|      8|        {
  133|      8|            *d_first++ = item;
  134|      8|        }
  135|      2|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|      2|    {
   65|      2|        uint32_t x;
   66|      2|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|      2|        uint32_t y = byte_swap(x);
   68|      2|        T val2;
   69|      2|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|      2|        return val2;
   71|      2|    }
_ZN8jsoncons6binary13big_to_nativeItNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|      7|    {
  183|      7|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 7]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|      7|        T val;
  188|      7|        std::memcpy(&val,first,sizeof(T));
  189|      7|        return byte_swap(val);
  190|      7|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|      5|    {
  183|      5|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 5]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|      5|        T val;
  188|      5|        std::memcpy(&val,first,sizeof(T));
  189|      5|        return byte_swap(val);
  190|      5|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|      5|    {
  183|      5|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 5]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|      5|        T val;
  188|      5|        std::memcpy(&val,first,sizeof(T));
  189|      5|        return byte_swap(val);
  190|      5|    }

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

_ZNK8jsoncons8identityclIRKhEEOT_S5_:
   19|     26|    {
   20|     26|        return std::forward<T>(val);
   21|     26|    }
_ZNK8jsoncons8identityclIRKmEEOT_S5_:
   19|      1|    {
   20|      1|        return std::forward<T>(val);
   21|      1|    }
_ZNK8jsoncons8identityclIRKsEEOT_S5_:
   19|     41|    {
   20|     41|        return std::forward<T>(val);
   21|     41|    }
_ZNK8jsoncons8identityclIRKfEEOT_S5_:
   19|      4|    {
   20|      4|        return std::forward<T>(val);
   21|      4|    }

_ZN8jsoncons10ext_traits14integer_limitsIlvE6lowestEv:
  110|      5|        {
  111|      5|            return std::numeric_limits<T>::lowest();
  112|      5|        }
_ZN8jsoncons10ext_traits14integer_limitsIlvE3maxEv:
  102|      1|        {
  103|      1|            return (std::numeric_limits<T>::max)();
  104|      1|        }

_ZN8jsoncons16to_number_resultIcEC2EPKcNSt3__14errcE:
  141|     14|        : ptr(ptr_), ec(ec_)
  142|     14|    {
  143|     14|    }
_ZN8jsoncons14dec_to_integerIlcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  327|      6|{
  328|      6|    if (length == 0)
  ------------------
  |  Branch (328:9): [True: 0, False: 6]
  ------------------
  329|      0|    {
  330|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  331|      0|    }
  332|       |
  333|      6|    bool sign = *s == '-';
  334|      6|    s += sign;
  335|      6|    length -= sign;
  336|       |
  337|      6|    using U = typename ext_traits::make_unsigned<T>::type;
  338|       |
  339|      6|    U num;
  340|      6|    auto ru = dec_to_integer(s, length, num);
  341|      6|    if (ru.ec != std::errc{})
  ------------------
  |  Branch (341:9): [True: 0, False: 6]
  ------------------
  342|      0|    {
  343|      0|        return to_number_result<CharT>(ru.ptr, ru.ec);
  344|      0|    }
  345|      6|    if (sign)
  ------------------
  |  Branch (345:9): [True: 5, False: 1]
  ------------------
  346|      5|    {
  347|      5|        if (num > static_cast<U>(-((ext_traits::integer_limits<T>::lowest)()+T(1))) + U(1))
  ------------------
  |  Branch (347:13): [True: 0, False: 5]
  ------------------
  348|      0|        {
  349|      0|            return to_number_result<CharT>(ru.ptr, std::errc::result_out_of_range);
  350|      0|        }
  351|      5|        else
  352|      5|        {
  353|      5|            value = static_cast<T>(U(0) - num);
  354|      5|            return to_number_result<CharT>(ru.ptr, std::errc{});
  355|      5|        }
  356|      5|    }
  357|      1|    else
  358|      1|    {
  359|      1|        if (num > static_cast<U>((ext_traits::integer_limits<T>::max)()))
  ------------------
  |  Branch (359:13): [True: 0, False: 1]
  ------------------
  360|      0|        {
  361|      0|            return to_number_result<CharT>(ru.ptr, std::errc::result_out_of_range);
  362|      0|        }
  363|      1|        else
  364|      1|        {
  365|      1|            value = static_cast<T>(num);
  366|      1|            return to_number_result<CharT>(ru.ptr, std::errc{});
  367|      1|        }
  368|      1|    }
  369|      6|}
_ZN8jsoncons14dec_to_integerImcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedntsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  265|      6|{
  266|      6|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|      6|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 6]
  |  |  ------------------
  ------------------
  267|      0|    {
  268|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  269|      0|    }
  270|       |
  271|      6|    static constexpr T max_value = (ext_traits::integer_limits<T>::max)();
  272|      6|    static constexpr T max_value_div_10 = max_value / 10;
  273|       |
  274|      6|    T num = 0;
  275|      6|    const CharT* cur = s;
  276|      6|    const CharT* last = s + length;
  277|      6|    static constexpr std::size_t digits10 = static_cast<std::size_t>(ext_traits::integer_limits<T>::digits10);
  278|      6|    const std::size_t n = (std::min)(digits10, length);
  279|      6|    const CharT* stop = s + n;
  280|       |     
  281|     81|    while (cur < stop)
  ------------------
  |  Branch (281:12): [True: 75, False: 6]
  ------------------
  282|     75|    {
  283|     75|        uint8_t d;
  284|     75|        if (JSONCONS_LIKELY((d = static_cast<uint8_t>(*cur - '0')) <= 9) )
  ------------------
  |  |   77|     75|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 75, False: 0]
  |  |  ------------------
  ------------------
  285|     75|        {
  286|     75|            num = static_cast<T>(d) + num*10;
  287|     75|        }
  288|      0|        else
  289|      0|        {
  290|      0|            return to_number_result<CharT>(cur, std::errc::invalid_argument);
  291|      0|        }
  292|     75|        ++cur;
  293|     75|    }
  294|      6|    if (cur == last)
  ------------------
  |  Branch (294:9): [True: 6, False: 0]
  ------------------
  295|      6|    {
  296|      6|        value = num;
  297|      6|        return to_number_result<CharT>(cur, std::errc{});
  298|      6|    }
  299|      0|    if (cur+1 != last)
  ------------------
  |  Branch (299:9): [True: 0, False: 0]
  ------------------
  300|      0|    {
  301|      0|        return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  302|      0|    }
  303|      0|    if (is_digit(*cur))
  ------------------
  |  Branch (303:9): [True: 0, False: 0]
  ------------------
  304|      0|    {
  305|      0|        if (num > max_value_div_10)
  ------------------
  |  Branch (305:13): [True: 0, False: 0]
  ------------------
  306|      0|        {
  307|      0|            return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  308|      0|        }
  309|      0|        uint8_t d = static_cast<uint8_t>(*cur - '0');
  310|      0|        num = num*10;
  311|      0|        if (num > max_value - d)
  ------------------
  |  Branch (311:13): [True: 0, False: 0]
  ------------------
  312|      0|        {
  313|      0|            return to_number_result<CharT>(s, std::errc::result_out_of_range);
  314|      0|        }
  315|      0|        num += d;
  316|      0|        ++cur;
  317|      0|        value = num;
  318|      0|        return to_number_result<CharT>(cur, std::errc{});
  319|      0|    }
  320|       |    
  321|      0|    return to_number_result<CharT>(cur, std::errc::invalid_argument);
  322|      0|}
_ZNK8jsoncons16to_number_resultIcEcvbEv:
  150|      8|    {
  151|      8|        return ec == std::errc{};
  152|      8|    }
_ZN8jsoncons14hex_to_integerIlcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  618|      2|{
  619|      2|    static_assert(ext_traits::integer_limits<T>::is_specialized, "Integer type not specialized");
  620|      2|    JSONCONS_ASSERT(length > 0);
  ------------------
  |  |   45|      2|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 2]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  621|       |
  622|      2|    n = 0;
  623|       |
  624|      2|    const CharT* end = s + length; 
  625|      2|    if (*s == '-')
  ------------------
  |  Branch (625:9): [True: 2, False: 0]
  ------------------
  626|      2|    {
  627|      2|        static constexpr T min_value = (ext_traits::integer_limits<T>::lowest)();
  628|      2|        static constexpr T min_value_div_16 = min_value / 16;
  629|      2|        ++s;
  630|     19|        for (; s < end; ++s)
  ------------------
  |  Branch (630:16): [True: 17, False: 2]
  ------------------
  631|     17|        {
  632|     17|            CharT c = *s;
  633|     17|            T x = 0;
  634|     17|            switch (c)
  635|     17|            {
  636|     16|                case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (636:17): [True: 12, False: 5]
  |  Branch (636:26): [True: 1, False: 16]
  |  Branch (636:35): [True: 1, False: 16]
  |  Branch (636:44): [True: 0, False: 17]
  |  Branch (636:53): [True: 0, False: 17]
  |  Branch (636:62): [True: 0, False: 17]
  |  Branch (636:71): [True: 0, False: 17]
  |  Branch (636:80): [True: 2, False: 15]
  |  Branch (636:89): [True: 0, False: 17]
  |  Branch (636:99): [True: 0, False: 17]
  ------------------
  637|     16|                    x = c - '0';
  638|     16|                    break;
  639|      0|                case 'a':case 'b':case 'c':case 'd':case 'e':case 'f':
  ------------------
  |  Branch (639:17): [True: 0, False: 17]
  |  Branch (639:26): [True: 0, False: 17]
  |  Branch (639:35): [True: 0, False: 17]
  |  Branch (639:44): [True: 0, False: 17]
  |  Branch (639:53): [True: 0, False: 17]
  |  Branch (639:62): [True: 0, False: 17]
  ------------------
  640|      0|                    x = c - ('a' - 10);
  641|      0|                    break;
  642|      1|                case 'A':case 'B':case 'C':case 'D':case 'E':case 'F':
  ------------------
  |  Branch (642:17): [True: 0, False: 17]
  |  Branch (642:26): [True: 0, False: 17]
  |  Branch (642:35): [True: 0, False: 17]
  |  Branch (642:44): [True: 0, False: 17]
  |  Branch (642:53): [True: 0, False: 17]
  |  Branch (642:62): [True: 1, False: 16]
  ------------------
  643|      1|                    x = c - ('A' - 10);
  644|      1|                    break;
  645|      0|                default:
  ------------------
  |  Branch (645:17): [True: 0, False: 17]
  ------------------
  646|      0|                    return to_number_result<CharT>(s, std::errc::invalid_argument);
  647|     17|            }
  648|     17|            if (n < min_value_div_16)
  ------------------
  |  Branch (648:17): [True: 0, False: 17]
  ------------------
  649|      0|            {
  650|      0|                return to_number_result<CharT>(s, std::errc::result_out_of_range);
  651|      0|            }
  652|     17|            n = n * 16;
  653|     17|            if (n < min_value + x)
  ------------------
  |  Branch (653:17): [True: 0, False: 17]
  ------------------
  654|      0|            {
  655|      0|                return to_number_result<CharT>(s, std::errc::result_out_of_range);
  656|      0|            }
  657|     17|            n -= x;
  658|     17|        }
  659|      2|    }
  660|      0|    else
  661|      0|    {
  662|      0|        static constexpr T max_value = (ext_traits::integer_limits<T>::max)();
  663|      0|        static constexpr T max_value_div_16 = max_value / 16;
  664|      0|        for (; s < end; ++s)
  ------------------
  |  Branch (664:16): [True: 0, False: 0]
  ------------------
  665|      0|        {
  666|      0|            CharT c = *s;
  667|      0|            T x = 0;
  668|      0|            switch (c)
  669|      0|            {
  670|      0|                case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (670:17): [True: 0, False: 0]
  |  Branch (670:26): [True: 0, False: 0]
  |  Branch (670:35): [True: 0, False: 0]
  |  Branch (670:44): [True: 0, False: 0]
  |  Branch (670:53): [True: 0, False: 0]
  |  Branch (670:62): [True: 0, False: 0]
  |  Branch (670:71): [True: 0, False: 0]
  |  Branch (670:80): [True: 0, False: 0]
  |  Branch (670:89): [True: 0, False: 0]
  |  Branch (670:99): [True: 0, False: 0]
  ------------------
  671|      0|                    x = c - '0';
  672|      0|                    break;
  673|      0|                case 'a':case 'b':case 'c':case 'd':case 'e':case 'f':
  ------------------
  |  Branch (673:17): [True: 0, False: 0]
  |  Branch (673:26): [True: 0, False: 0]
  |  Branch (673:35): [True: 0, False: 0]
  |  Branch (673:44): [True: 0, False: 0]
  |  Branch (673:53): [True: 0, False: 0]
  |  Branch (673:62): [True: 0, False: 0]
  ------------------
  674|      0|                    x = c - ('a' - 10);
  675|      0|                    break;
  676|      0|                case 'A':case 'B':case 'C':case 'D':case 'E':case 'F':
  ------------------
  |  Branch (676:17): [True: 0, False: 0]
  |  Branch (676:26): [True: 0, False: 0]
  |  Branch (676:35): [True: 0, False: 0]
  |  Branch (676:44): [True: 0, False: 0]
  |  Branch (676:53): [True: 0, False: 0]
  |  Branch (676:62): [True: 0, False: 0]
  ------------------
  677|      0|                    x = c - ('A' - 10);
  678|      0|                    break;
  679|      0|                default:
  ------------------
  |  Branch (679:17): [True: 0, False: 0]
  ------------------
  680|      0|                    return to_number_result<CharT>(s, std::errc::invalid_argument);
  681|      0|            }
  682|      0|            if (n > max_value_div_16)
  ------------------
  |  Branch (682:17): [True: 0, False: 0]
  ------------------
  683|      0|            {
  684|      0|                return to_number_result<CharT>(s, std::errc::result_out_of_range);
  685|      0|            }
  686|      0|            n = n * 16;
  687|      0|            if (n > max_value - x)
  ------------------
  |  Branch (687:17): [True: 0, False: 0]
  ------------------
  688|      0|            {
  689|      0|                return to_number_result<CharT>(s, std::errc::result_out_of_range);
  690|      0|            }
  691|       |
  692|      0|            n += x;
  693|      0|        }
  694|      0|    }
  695|       |
  696|      2|    return to_number_result<CharT>(s, std::errc{});
  697|      2|}

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

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  1.56M|{
   43|  1.56M|    using char_type = typename Result::value_type;
   44|       |
   45|  1.56M|    char_type buf[255];
   46|  1.56M|    char_type *p = buf;
   47|  1.56M|    const char_type* last = buf+255;
   48|       |
   49|  1.56M|    bool is_negative = value < 0;
   50|       |
   51|  1.56M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 1.56M]
  ------------------
   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|  1.56M|    else
   60|  1.56M|    {
   61|       |
   62|  1.56M|        do
   63|  1.56M|        {
   64|  1.56M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  1.56M|        }
   66|  1.56M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 71, False: 1.56M]
  |  Branch (66:33): [True: 71, False: 0]
  ------------------
   67|  1.56M|    }
   68|  1.56M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|  1.56M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 1.56M]
  |  |  ------------------
  |  |   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|  1.56M|    std::size_t count = (p - buf);
   71|  1.56M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 1.56M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  3.13M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 1.56M, False: 1.56M]
  ------------------
   77|  1.56M|    {
   78|  1.56M|        result.push_back(*p);
   79|  1.56M|    }
   80|       |
   81|  1.56M|    return count;
   82|  1.56M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|    274|{
   43|    274|    using char_type = typename Result::value_type;
   44|       |
   45|    274|    char_type buf[255];
   46|    274|    char_type *p = buf;
   47|    274|    const char_type* last = buf+255;
   48|       |
   49|    274|    bool is_negative = value < 0;
   50|       |
   51|    274|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 230, False: 44]
  ------------------
   52|    230|    {
   53|    230|        do
   54|    466|        {
   55|    466|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|    466|        }
   57|    466|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 236, False: 230]
  |  Branch (57:33): [True: 236, False: 0]
  ------------------
   58|    230|    }
   59|     44|    else
   60|     44|    {
   61|       |
   62|     44|        do
   63|    198|        {
   64|    198|            *p++ = static_cast<char_type>(48 + value % 10);
   65|    198|        }
   66|    198|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 154, False: 44]
  |  Branch (66:33): [True: 154, False: 0]
  ------------------
   67|     44|    }
   68|    274|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|    274|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 274]
  |  |  ------------------
  |  |   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|    274|    std::size_t count = (p - buf);
   71|    274|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 230, False: 44]
  ------------------
   72|    230|    {
   73|    230|        result.push_back('-');
   74|    230|        ++count;
   75|    230|    }
   76|    938|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 664, False: 274]
  ------------------
   77|    664|    {
   78|    664|        result.push_back(*p);
   79|    664|    }
   80|       |
   81|    274|    return count;
   82|    274|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|      5|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|      5|    {
  489|      5|#if !defined(JSONCONS_NO_LOCALECONV)
  490|      5|        struct lconv *lc = localeconv();
  491|      5|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 5, False: 0]
  |  Branch (491:30): [True: 5, False: 0]
  ------------------
  492|      5|        {
  493|      5|            decimal_point_ = lc->decimal_point[0];
  494|      5|        }
  495|      5|#endif
  496|      5|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|      5|    {
  504|      5|        std::size_t count = 0;
  505|       |
  506|      5|        char number_buffer[200];
  507|      5|        int length = 0;
  508|       |
  509|      5|        switch (float_format_)
  510|      5|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 5]
  ------------------
  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: 5]
  ------------------
  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|      5|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 5, False: 0]
  ------------------
  552|      5|            {
  553|      5|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 5]
  ------------------
  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|      5|                else
  563|      5|                {
  564|      5|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 5]
  ------------------
  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|      5|                }             
  569|      5|                break;
  570|      5|            }
  571|      5|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 5]
  ------------------
  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|      5|        }
  575|      5|        return count;
  576|      5|    }
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmiiiRT_:
  171|      5|{
  172|      5|    int nb_digits = (int)length;
  173|      5|    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|      5|    int kk = nb_digits + k;
  179|       |
  180|      5|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 2, False: 3]
  |  Branch (180:28): [True: 0, False: 2]
  ------------------
  181|      0|    {
  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|      0|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 0, False: 0]
  ------------------
  186|      0|        {
  187|      0|            result.push_back(buffer[i]);
  188|      0|        }
  189|      0|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 0, False: 0]
  ------------------
  190|      0|        {
  191|      0|            result.push_back('0');
  192|      0|        }
  193|      0|        result.push_back('.');
  194|      0|        result.push_back('0');
  195|      0|    } 
  196|      5|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 5, False: 0]
  |  Branch (196:24): [True: 3, False: 2]
  ------------------
  197|      3|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|      6|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 3, False: 3]
  ------------------
  200|      3|        {
  201|      3|            result.push_back(buffer[i]);
  202|      3|        }
  203|      3|        result.push_back('.');
  204|     21|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 18, False: 3]
  ------------------
  205|     18|        {
  206|     18|            result.push_back(buffer[i]);
  207|     18|        }
  208|      3|    } 
  209|      2|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 2, False: 0]
  |  Branch (209:30): [True: 0, False: 2]
  ------------------
  210|      0|    {
  211|      0|        offset = 2 - kk;
  212|       |
  213|      0|        result.push_back('0');
  214|      0|        result.push_back('.');
  215|      0|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 0, False: 0]
  ------------------
  216|      0|            result.push_back('0');
  217|      0|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 0, False: 0]
  ------------------
  218|      0|        {
  219|      0|            result.push_back(buffer[i]);
  220|      0|        }
  221|      0|    } 
  222|      2|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 0, False: 2]
  ------------------
  223|      0|    {
  224|      0|        result.push_back(buffer[0]);
  225|      0|        result.push_back('e');
  226|      0|        fill_exponent(kk - 1, result);
  227|      0|    } 
  228|      2|    else
  229|      2|    {
  230|      2|        result.push_back(buffer[0]);
  231|      2|        result.push_back('.');
  232|     33|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 31, False: 2]
  ------------------
  233|     31|        {
  234|     31|            result.push_back(buffer[i]);
  235|     31|        }
  236|      2|        result.push_back('e');
  237|      2|        fill_exponent(kk - 1, result);
  238|      2|    }
  239|      5|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|      2|{
  137|      2|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 0, False: 2]
  ------------------
  138|      0|    {
  139|      0|        result.push_back('-');
  140|      0|        K = -K;
  141|      0|    }
  142|      2|    else
  143|      2|    {
  144|      2|        result.push_back('+'); // compatibility with sprintf
  145|      2|    }
  146|       |
  147|      2|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 0, False: 2]
  ------------------
  148|      0|    {
  149|      0|        result.push_back('0'); // compatibility with sprintf
  150|      0|        result.push_back((char)('0' + K));
  151|      0|    }
  152|      2|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 2, False: 0]
  ------------------
  153|      2|    {
  154|      2|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|      2|        result.push_back((char)('0' + K));
  156|      2|    }
  157|      0|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 0, False: 0]
  ------------------
  158|      0|    {
  159|      0|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|      0|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|      0|        result.push_back((char)('0' + K));
  162|      0|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|      2|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|      5|{
  476|      5|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|      5|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|      5|{
  367|      5|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 0, False: 5]
  ------------------
  368|      0|    {
  369|      0|        result.push_back('0');
  370|      0|        result.push_back('.');
  371|      0|        result.push_back('0');
  372|      0|        return true;
  373|      0|    }
  374|       |
  375|      5|    int length = 0;
  376|      5|    int k;
  377|       |
  378|      5|    char buffer[100];
  379|       |
  380|      5|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 2, False: 3]
  ------------------
  381|      5|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 5, False: 0]
  ------------------
  382|      5|    {
  383|      5|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 2, False: 3]
  ------------------
  384|      2|        {
  385|      2|            result.push_back('-');
  386|      2|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|      5|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|      5|        return true;
  391|      5|    }
  392|      0|    else
  393|      0|    {
  394|      0|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|      0|    }
  396|      5|}
_ZN8jsoncons15prettify_stringINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvPKcmiiiRT_:
  171|     13|{
  172|     13|    int nb_digits = (int)length;
  173|     13|    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|     13|    int kk = nb_digits + k;
  179|       |
  180|     13|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 8, False: 5]
  |  Branch (180:28): [True: 8, False: 0]
  ------------------
  181|      8|    {
  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|     16|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 8, False: 8]
  ------------------
  186|      8|        {
  187|      8|            result.push_back(buffer[i]);
  188|      8|        }
  189|    136|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 128, False: 8]
  ------------------
  190|    128|        {
  191|    128|            result.push_back('0');
  192|    128|        }
  193|      8|        result.push_back('.');
  194|      8|        result.push_back('0');
  195|      8|    } 
  196|      5|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 0, False: 5]
  |  Branch (196:24): [True: 0, False: 0]
  ------------------
  197|      0|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|      0|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 0, False: 0]
  ------------------
  200|      0|        {
  201|      0|            result.push_back(buffer[i]);
  202|      0|        }
  203|      0|        result.push_back('.');
  204|      0|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 0, False: 0]
  ------------------
  205|      0|        {
  206|      0|            result.push_back(buffer[i]);
  207|      0|        }
  208|      0|    } 
  209|      5|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 0, False: 5]
  |  Branch (209:30): [True: 0, False: 0]
  ------------------
  210|      0|    {
  211|      0|        offset = 2 - kk;
  212|       |
  213|      0|        result.push_back('0');
  214|      0|        result.push_back('.');
  215|      0|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 0, False: 0]
  ------------------
  216|      0|            result.push_back('0');
  217|      0|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 0, False: 0]
  ------------------
  218|      0|        {
  219|      0|            result.push_back(buffer[i]);
  220|      0|        }
  221|      0|    } 
  222|      5|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 5, False: 0]
  ------------------
  223|      5|    {
  224|      5|        result.push_back(buffer[0]);
  225|      5|        result.push_back('e');
  226|      5|        fill_exponent(kk - 1, result);
  227|      5|    } 
  228|      0|    else
  229|      0|    {
  230|      0|        result.push_back(buffer[0]);
  231|      0|        result.push_back('.');
  232|      0|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 0, False: 0]
  ------------------
  233|      0|        {
  234|      0|            result.push_back(buffer[i]);
  235|      0|        }
  236|      0|        result.push_back('e');
  237|      0|        fill_exponent(kk - 1, result);
  238|      0|    }
  239|     13|}
_ZN8jsoncons13fill_exponentINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEviRT_:
  136|      5|{
  137|      5|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 5, False: 0]
  ------------------
  138|      5|    {
  139|      5|        result.push_back('-');
  140|      5|        K = -K;
  141|      5|    }
  142|      0|    else
  143|      0|    {
  144|      0|        result.push_back('+'); // compatibility with sprintf
  145|      0|    }
  146|       |
  147|      5|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 4, False: 1]
  ------------------
  148|      4|    {
  149|      4|        result.push_back('0'); // compatibility with sprintf
  150|      4|        result.push_back((char)('0' + K));
  151|      4|    }
  152|      1|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 1, False: 0]
  ------------------
  153|      1|    {
  154|      1|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|      1|        result.push_back((char)('0' + K));
  156|      1|    }
  157|      0|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 0, False: 0]
  ------------------
  158|      0|    {
  159|      0|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|      0|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|      0|        result.push_back((char)('0' + K));
  162|      0|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|      5|}
_ZN8jsoncons14integer_to_hexImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   89|      2|{
   90|      2|    using char_type = typename Result::value_type;
   91|       |
   92|      2|    char_type buf[255];
   93|      2|    char_type *p = buf;
   94|      2|    const char_type* last = buf+255;
   95|       |
   96|      2|    bool is_negative = value < 0;
   97|       |
   98|      2|    if (value < 0)
  ------------------
  |  Branch (98:9): [True: 0, False: 2]
  ------------------
   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|      2|    else
  107|      2|    {
  108|       |
  109|      2|        do
  110|     17|        {
  111|     17|            *p++ = to_hex_character(value % 16);
  112|     17|        }
  113|     17|        while ((value /= 16) && (p < last));
  ------------------
  |  Branch (113:16): [True: 15, False: 2]
  |  Branch (113:33): [True: 15, False: 0]
  ------------------
  114|      2|    }
  115|      2|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|      2|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 2]
  |  |  ------------------
  |  |   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|      2|    std::size_t count = (p - buf);
  118|      2|    if (is_negative)
  ------------------
  |  Branch (118:9): [True: 0, False: 2]
  ------------------
  119|      0|    {
  120|      0|        result.push_back('-');
  121|      0|        ++count;
  122|      0|    }
  123|     19|    while (--p >= buf)
  ------------------
  |  Branch (123:12): [True: 17, False: 2]
  ------------------
  124|     17|    {
  125|     17|        result.push_back(*p);
  126|     17|    }
  127|       |
  128|      2|    return count;
  129|      2|}
_ZN8jsoncons16to_hex_characterEh:
   33|     17|{
   34|     17|    return (char)((c < 10) ? ('0' + c) : ('A' - 10 + c));
  ------------------
  |  Branch (34:19): [True: 16, False: 1]
  ------------------
   35|     17|}

_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEEC2EOS8_RKS9_:
  125|      7|       : basic_cbor_encoder(std::forward<Sink>(sink), cbor_encode_options(), alloc)
  126|      7|    {
  127|      7|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEEC2EOS8_RKNS0_19cbor_encode_optionsERKS9_:
  131|      7|       : sink_(std::forward<Sink>(sink)), 
  132|      7|         max_nesting_depth_(options.max_nesting_depth()), 
  133|      7|         pack_strings_(options.pack_strings()),
  134|      7|         use_typed_arrays_(options.use_typed_arrays()),
  135|      7|         alloc_(alloc),
  136|      7|         stack_(alloc),
  137|      7|         stringref_map_(alloc),
  138|      7|         bytestringref_map_(alloc)
  139|      7|    {
  140|      7|        if (options.pack_strings())
  ------------------
  |  Branch (140:13): [True: 0, False: 7]
  ------------------
  141|      0|        {
  142|      0|            write_tag(256);
  143|      0|        }
  144|      7|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9write_tagEm:
 1205|      7|    {
 1206|      7|        if (value <= 0x17)
  ------------------
  |  Branch (1206:13): [True: 6, False: 1]
  ------------------
 1207|      6|        {
 1208|      6|            sink_.push_back(0xc0 | static_cast<uint8_t>(value)); 
 1209|      6|        } 
 1210|      1|        else if (value <=(std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (1210:18): [True: 1, False: 0]
  ------------------
 1211|      1|        {
 1212|      1|            sink_.push_back(0xd8);
 1213|      1|            sink_.push_back(static_cast<uint8_t>(value));
 1214|      1|        } 
 1215|      0|        else if (value <=(std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (1215:18): [True: 0, False: 0]
  ------------------
 1216|      0|        {
 1217|      0|            sink_.push_back(0xd9);
 1218|      0|            binary::native_to_big(static_cast<uint16_t>(value), 
 1219|      0|                                            std::back_inserter(sink_));
 1220|      0|        }
 1221|      0|        else if (value <=(std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (1221:18): [True: 0, False: 0]
  ------------------
 1222|      0|        {
 1223|      0|            sink_.push_back(0xda);
 1224|      0|            binary::native_to_big(static_cast<uint32_t>(value), 
 1225|      0|                                            std::back_inserter(sink_));
 1226|      0|        }
 1227|      0|        else 
 1228|      0|        {
 1229|      0|            sink_.push_back(0xdb);
 1230|      0|            binary::native_to_big(static_cast<uint64_t>(value), 
 1231|      0|                                            std::back_inserter(sink_));
 1232|      0|        }
 1233|      7|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  366|     89|    {
  367|     89|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|     89|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 89]
  |  |  ------------------
  ------------------
  368|      0|        {
  369|      0|            ec = cbor_errc::max_nesting_depth_exceeded;
  370|      0|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  371|      0|        } 
  372|     89|        stack_.emplace_back(cbor_container_type::array, length);
  373|     89|        if (length <= 0x17)
  ------------------
  |  Branch (373:13): [True: 86, False: 3]
  ------------------
  374|     86|        {
  375|     86|            binary::native_to_big(static_cast<uint8_t>(0x80 + length), 
  376|     86|                                  std::back_inserter(sink_));
  377|     86|        } 
  378|      3|        else if (length <= 0xff)
  ------------------
  |  Branch (378:18): [True: 0, False: 3]
  ------------------
  379|      0|        {
  380|      0|            binary::native_to_big(static_cast<uint8_t>(0x98), 
  381|      0|                                  std::back_inserter(sink_));
  382|      0|            binary::native_to_big(static_cast<uint8_t>(length), 
  383|      0|                                  std::back_inserter(sink_));
  384|      0|        } 
  385|      3|        else if (length <= 0xffff)
  ------------------
  |  Branch (385:18): [True: 0, False: 3]
  ------------------
  386|      0|        {
  387|      0|            binary::native_to_big(static_cast<uint8_t>(0x99), 
  388|      0|                                  std::back_inserter(sink_));
  389|      0|            binary::native_to_big(static_cast<uint16_t>(length), 
  390|      0|                                  std::back_inserter(sink_));
  391|      0|        } 
  392|      3|        else if (length <= 0xffffffff)
  ------------------
  |  Branch (392:18): [True: 3, False: 0]
  ------------------
  393|      3|        {
  394|      3|            binary::native_to_big(static_cast<uint8_t>(0x9a), 
  395|      3|                                  std::back_inserter(sink_));
  396|      3|            binary::native_to_big(static_cast<uint32_t>(length), 
  397|      3|                                  std::back_inserter(sink_));
  398|      3|        } 
  399|      0|        else if (uint64_t(length) <= (std::numeric_limits<std::uint64_t>::max)())
  ------------------
  |  Branch (399:18): [True: 0, False: 0]
  ------------------
  400|      0|        {
  401|      0|            binary::native_to_big(static_cast<uint8_t>(0x9b), 
  402|      0|                                  std::back_inserter(sink_));
  403|      0|            binary::native_to_big(static_cast<uint64_t>(length), 
  404|      0|                                  std::back_inserter(sink_));
  405|      0|        }
  406|     89|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     89|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  407|     89|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_itemC2ENS0_19cbor_container_typeEm:
   74|     94|           : type_(type), length_(length)
   75|     94|        {
   76|     94|        }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE15visit_end_arrayERKNS_11ser_contextERNS3_10error_codeE:
  410|     86|    {
  411|     86|        JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   45|     86|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 86]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  412|     86|        --nesting_depth_;
  413|       |
  414|     86|        if (stack_.back().is_indefinite_length())
  ------------------
  |  Branch (414:13): [True: 0, False: 86]
  ------------------
  415|      0|        {
  416|      0|            sink_.push_back(0xff);
  417|      0|        }
  418|     86|        else
  419|     86|        {
  420|     86|            if (stack_.back().count() < stack_.back().length())
  ------------------
  |  Branch (420:17): [True: 0, False: 86]
  ------------------
  421|      0|            {
  422|      0|                ec = cbor_errc::too_few_items;
  423|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  424|      0|            }
  425|     86|            if (stack_.back().count() > stack_.back().length())
  ------------------
  |  Branch (425:17): [True: 0, False: 86]
  ------------------
  426|      0|            {
  427|      0|                ec = cbor_errc::too_many_items;
  428|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  429|      0|            }
  430|     86|        }
  431|       |
  432|     86|        stack_.pop_back();
  433|     86|        end_value();
  434|       |
  435|     86|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     86|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  436|     86|    }
_ZNK8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item20is_indefinite_lengthEv:
   96|     89|        {
   97|     89|            return type_ == cbor_container_type::indefinite_length_array || type_ == cbor_container_type::indefinite_length_object;
  ------------------
  |  Branch (97:20): [True: 0, False: 89]
  |  Branch (97:77): [True: 0, False: 89]
  ------------------
   98|     89|        }
_ZNK8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item5countEv:
   86|    178|        {
   87|    178|            return is_object() ? index_/2 : index_;
  ------------------
  |  Branch (87:20): [True: 6, False: 172]
  ------------------
   88|    178|        }
_ZNK8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item9is_objectEv:
   91|    178|        {
   92|    178|            return type_ == cbor_container_type::object || type_ == cbor_container_type::indefinite_length_object;
  ------------------
  |  Branch (92:20): [True: 6, False: 172]
  |  Branch (92:60): [True: 0, False: 172]
  ------------------
   93|    178|        }
_ZNK8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10stack_item6lengthEv:
   81|    178|        {
   82|    178|            return length_;
   83|    178|        }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9end_valueEv:
 1838|  1.04M|    {
 1839|  1.04M|        if (!stack_.empty())
  ------------------
  |  Branch (1839:13): [True: 1.04M, False: 3]
  ------------------
 1840|  1.04M|        {
 1841|  1.04M|            ++stack_.back().index_;
 1842|  1.04M|        }
 1843|  1.04M|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
 1186|   523k|    {
 1187|   523k|        switch (tag)
 1188|   523k|        {
 1189|      0|            case semantic_tag::epoch_milli:
  ------------------
  |  Branch (1189:13): [True: 0, False: 523k]
  ------------------
 1190|      0|            case semantic_tag::epoch_nano:
  ------------------
  |  Branch (1190:13): [True: 0, False: 523k]
  ------------------
 1191|      0|                return visit_double(static_cast<double>(value), tag, context, ec);
 1192|      0|            case semantic_tag::epoch_second:
  ------------------
  |  Branch (1192:13): [True: 0, False: 523k]
  ------------------
 1193|      0|                write_tag(1);
 1194|      0|                break;
 1195|   523k|            default:
  ------------------
  |  Branch (1195:13): [True: 523k, False: 0]
  ------------------
 1196|   523k|                break;
 1197|   523k|        }
 1198|       |
 1199|   523k|        write_uint64_value(value);
 1200|   523k|        end_value();
 1201|   523k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   523k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1202|   523k|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE18write_uint64_valueEm:
 1236|   523k|    {
 1237|   523k|        if (value <= 0x17)
  ------------------
  |  Branch (1237:13): [True: 523k, False: 0]
  ------------------
 1238|   523k|        {
 1239|   523k|            sink_.push_back(static_cast<uint8_t>(value));
 1240|   523k|        } 
 1241|      0|        else if (value <=(std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (1241:18): [True: 0, False: 0]
  ------------------
 1242|      0|        {
 1243|      0|            sink_.push_back(static_cast<uint8_t>(0x18));
 1244|      0|            sink_.push_back(static_cast<uint8_t>(value));
 1245|      0|        } 
 1246|      0|        else if (value <=(std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (1246:18): [True: 0, False: 0]
  ------------------
 1247|      0|        {
 1248|      0|            sink_.push_back(static_cast<uint8_t>(0x19));
 1249|      0|            binary::native_to_big(static_cast<uint16_t>(value), 
 1250|      0|                                            std::back_inserter(sink_));
 1251|      0|        } 
 1252|      0|        else if (value <=(std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (1252:18): [True: 0, False: 0]
  ------------------
 1253|      0|        {
 1254|      0|            sink_.push_back(static_cast<uint8_t>(0x1a));
 1255|      0|            binary::native_to_big(static_cast<uint32_t>(value), 
 1256|      0|                                            std::back_inserter(sink_));
 1257|      0|        } 
 1258|      0|        else if (value <=(std::numeric_limits<uint64_t>::max)())
  ------------------
  |  Branch (1258:18): [True: 0, False: 0]
  ------------------
 1259|      0|        {
 1260|      0|            sink_.push_back(static_cast<uint8_t>(0x1b));
 1261|      0|            binary::native_to_big(static_cast<uint64_t>(value), 
 1262|      0|                                            std::back_inserter(sink_));
 1263|      0|        }
 1264|   523k|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
 1165|     21|    {
 1166|     21|        switch (tag)
 1167|     21|        {
 1168|      0|            case semantic_tag::epoch_milli:
  ------------------
  |  Branch (1168:13): [True: 0, False: 21]
  ------------------
 1169|      0|            case semantic_tag::epoch_nano:
  ------------------
  |  Branch (1169:13): [True: 0, False: 21]
  ------------------
 1170|      0|                return visit_double(static_cast<double>(value), tag, context, ec);
 1171|      0|            case semantic_tag::epoch_second:
  ------------------
  |  Branch (1171:13): [True: 0, False: 21]
  ------------------
 1172|      0|                write_tag(1);
 1173|      0|                break;
 1174|     21|            default:
  ------------------
  |  Branch (1174:13): [True: 21, False: 0]
  ------------------
 1175|     21|                break;
 1176|     21|        }
 1177|     21|        write_int64_value(value);
 1178|     21|        end_value();
 1179|     21|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     21|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1180|     21|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17write_int64_valueEl:
 1267|     21|    {
 1268|     21|        if (value >= 0)
  ------------------
  |  Branch (1268:13): [True: 5, False: 16]
  ------------------
 1269|      5|        {
 1270|      5|            if (value <= 0x17)
  ------------------
  |  Branch (1270:17): [True: 5, False: 0]
  ------------------
 1271|      5|            {
 1272|      5|                binary::native_to_big(static_cast<uint8_t>(value), 
 1273|      5|                                  std::back_inserter(sink_));
 1274|      5|            } 
 1275|      0|            else if (value <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (1275:22): [True: 0, False: 0]
  ------------------
 1276|      0|            {
 1277|      0|                binary::native_to_big(static_cast<uint8_t>(0x18), 
 1278|      0|                                  std::back_inserter(sink_));
 1279|      0|                binary::native_to_big(static_cast<uint8_t>(value), 
 1280|      0|                                  std::back_inserter(sink_));
 1281|      0|            } 
 1282|      0|            else if (value <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (1282:22): [True: 0, False: 0]
  ------------------
 1283|      0|            {
 1284|      0|                binary::native_to_big(static_cast<uint8_t>(0x19), 
 1285|      0|                                  std::back_inserter(sink_));
 1286|      0|                binary::native_to_big(static_cast<uint16_t>(value), 
 1287|      0|                                  std::back_inserter(sink_));
 1288|      0|            } 
 1289|      0|            else if (value <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (1289:22): [True: 0, False: 0]
  ------------------
 1290|      0|            {
 1291|      0|                binary::native_to_big(static_cast<uint8_t>(0x1a), 
 1292|      0|                                  std::back_inserter(sink_));
 1293|      0|                binary::native_to_big(static_cast<uint32_t>(value), 
 1294|      0|                                  std::back_inserter(sink_));
 1295|      0|            } 
 1296|      0|            else if (value <= (std::numeric_limits<int64_t>::max)())
  ------------------
  |  Branch (1296:22): [True: 0, False: 0]
  ------------------
 1297|      0|            {
 1298|      0|                binary::native_to_big(static_cast<uint8_t>(0x1b), 
 1299|      0|                                  std::back_inserter(sink_));
 1300|      0|                binary::native_to_big(static_cast<int64_t>(value), 
 1301|      0|                                  std::back_inserter(sink_));
 1302|      0|            }
 1303|      5|        } else
 1304|     16|        {
 1305|     16|            const auto posnum = -1 - value;
 1306|     16|            if (value >= -24)
  ------------------
  |  Branch (1306:17): [True: 11, False: 5]
  ------------------
 1307|     11|            {
 1308|     11|                binary::native_to_big(static_cast<uint8_t>(0x20 + posnum), 
 1309|     11|                                  std::back_inserter(sink_));
 1310|     11|            } 
 1311|      5|            else if (posnum <= (std::numeric_limits<uint8_t>::max)())
  ------------------
  |  Branch (1311:22): [True: 0, False: 5]
  ------------------
 1312|      0|            {
 1313|      0|                binary::native_to_big(static_cast<uint8_t>(0x38), 
 1314|      0|                                  std::back_inserter(sink_));
 1315|      0|                binary::native_to_big(static_cast<uint8_t>(posnum), 
 1316|      0|                                  std::back_inserter(sink_));
 1317|      0|            } 
 1318|      5|            else if (posnum <= (std::numeric_limits<uint16_t>::max)())
  ------------------
  |  Branch (1318:22): [True: 0, False: 5]
  ------------------
 1319|      0|            {
 1320|      0|                binary::native_to_big(static_cast<uint8_t>(0x39), 
 1321|      0|                                  std::back_inserter(sink_));
 1322|      0|                binary::native_to_big(static_cast<uint16_t>(posnum), 
 1323|      0|                                  std::back_inserter(sink_));
 1324|      0|            } 
 1325|      5|            else if (posnum <= (std::numeric_limits<uint32_t>::max)())
  ------------------
  |  Branch (1325:22): [True: 0, False: 5]
  ------------------
 1326|      0|            {
 1327|      0|                binary::native_to_big(static_cast<uint8_t>(0x3a), 
 1328|      0|                                  std::back_inserter(sink_));
 1329|      0|                binary::native_to_big(static_cast<uint32_t>(posnum), 
 1330|      0|                                  std::back_inserter(sink_));
 1331|      0|            } 
 1332|      5|            else if (posnum <= (std::numeric_limits<int64_t>::max)())
  ------------------
  |  Branch (1332:22): [True: 5, False: 0]
  ------------------
 1333|      5|            {
 1334|      5|                binary::native_to_big(static_cast<uint8_t>(0x3b), 
 1335|      5|                                  std::back_inserter(sink_));
 1336|      5|                binary::native_to_big(static_cast<int64_t>(posnum), 
 1337|      5|                                  std::back_inserter(sink_));
 1338|      5|            }
 1339|     16|        }
 1340|     21|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
 1117|      2|    {
 1118|      2|        switch (tag)
 1119|      2|        {
 1120|      0|            case semantic_tag::epoch_second:
  ------------------
  |  Branch (1120:13): [True: 0, False: 2]
  ------------------
 1121|      0|                write_tag(1);
 1122|      0|                break;
 1123|      0|            case semantic_tag::epoch_milli:
  ------------------
  |  Branch (1123:13): [True: 0, False: 2]
  ------------------
 1124|      0|                write_tag(1);
 1125|      0|                if (val != 0)
  ------------------
  |  Branch (1125:21): [True: 0, False: 0]
  ------------------
 1126|      0|                {
 1127|      0|                    val /= millis_in_second;
 1128|      0|                }
 1129|      0|                break;
 1130|      0|            case semantic_tag::epoch_nano:
  ------------------
  |  Branch (1130:13): [True: 0, False: 2]
  ------------------
 1131|      0|                write_tag(1);
 1132|      0|                if (val != 0)
  ------------------
  |  Branch (1132:21): [True: 0, False: 0]
  ------------------
 1133|      0|                {
 1134|      0|                    val /= nanos_in_second;
 1135|      0|                }
 1136|      0|                break;
 1137|      2|            default:
  ------------------
  |  Branch (1137:13): [True: 2, False: 0]
  ------------------
 1138|      2|                break;
 1139|      2|        }
 1140|       |
 1141|      2|        float valf = (float)val;
 1142|      2|        if ((double)valf == val)
  ------------------
  |  Branch (1142:13): [True: 2, False: 0]
  ------------------
 1143|      2|        {
 1144|      2|            binary::native_to_big(static_cast<uint8_t>(0xfa), 
 1145|      2|                                  std::back_inserter(sink_));
 1146|      2|            binary::native_to_big(valf, std::back_inserter(sink_));
 1147|      2|        }
 1148|      0|        else
 1149|      0|        {
 1150|      0|            binary::native_to_big(static_cast<uint8_t>(0xfb), 
 1151|      0|                                  std::back_inserter(sink_));
 1152|      0|            binary::native_to_big(val, std::back_inserter(sink_));
 1153|      0|        }
 1154|       |
 1155|       |        // write double
 1156|       |
 1157|      2|        end_value();
 1158|      2|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1159|      2|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE11visit_flushEv:
  261|      3|    {
  262|      3|        sink_.flush();
  263|      3|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  266|      1|    {
  267|      1|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  268|      0|        {
  269|      0|            ec = cbor_errc::max_nesting_depth_exceeded;
  270|      0|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  271|      0|        } 
  272|      1|        stack_.emplace_back(cbor_container_type::indefinite_length_object);
  273|       |        
  274|      1|        sink_.push_back(0xbf);
  275|      1|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  276|      1|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  279|      4|    {
  280|      4|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|      4|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 4]
  |  |  ------------------
  ------------------
  281|      0|        {
  282|      0|            ec = cbor_errc::max_nesting_depth_exceeded;
  283|      0|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  284|      0|        } 
  285|      4|        stack_.emplace_back(cbor_container_type::object, length);
  286|       |
  287|      4|        if (length <= 0x17)
  ------------------
  |  Branch (287:13): [True: 4, False: 0]
  ------------------
  288|      4|        {
  289|      4|            binary::native_to_big(static_cast<uint8_t>(0xa0 + length), 
  290|      4|                                  std::back_inserter(sink_));
  291|      4|        } 
  292|      0|        else if (length <= 0xff)
  ------------------
  |  Branch (292:18): [True: 0, False: 0]
  ------------------
  293|      0|        {
  294|      0|            binary::native_to_big(static_cast<uint8_t>(0xb8), 
  295|      0|                                  std::back_inserter(sink_));
  296|      0|            binary::native_to_big(static_cast<uint8_t>(length), 
  297|      0|                                  std::back_inserter(sink_));
  298|      0|        } 
  299|      0|        else if (length <= 0xffff)
  ------------------
  |  Branch (299:18): [True: 0, False: 0]
  ------------------
  300|      0|        {
  301|      0|            binary::native_to_big(static_cast<uint8_t>(0xb9), 
  302|      0|                                  std::back_inserter(sink_));
  303|      0|            binary::native_to_big(static_cast<uint16_t>(length), 
  304|      0|                                  std::back_inserter(sink_));
  305|      0|        } 
  306|      0|        else if (length <= 0xffffffff)
  ------------------
  |  Branch (306:18): [True: 0, False: 0]
  ------------------
  307|      0|        {
  308|      0|            binary::native_to_big(static_cast<uint8_t>(0xba), 
  309|      0|                                  std::back_inserter(sink_));
  310|      0|            binary::native_to_big(static_cast<uint32_t>(length), 
  311|      0|                                  std::back_inserter(sink_));
  312|      0|        } 
  313|      0|        else if (uint64_t(length) <= (std::numeric_limits<std::uint64_t>::max)())
  ------------------
  |  Branch (313:18): [True: 0, False: 0]
  ------------------
  314|      0|        {
  315|      0|            binary::native_to_big(static_cast<uint8_t>(0xbb), 
  316|      0|                                  std::back_inserter(sink_));
  317|      0|            binary::native_to_big(static_cast<uint64_t>(length), 
  318|      0|                                  std::back_inserter(sink_));
  319|      0|        }
  320|       |
  321|      4|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      4|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  322|      4|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE16visit_end_objectERKNS_11ser_contextERNS3_10error_codeE:
  325|      3|    {
  326|      3|        JSONCONS_ASSERT(!stack_.empty());
  ------------------
  |  |   45|      3|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 3]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  327|      3|        --nesting_depth_;
  328|       |
  329|      3|        if (stack_.back().is_indefinite_length())
  ------------------
  |  Branch (329:13): [True: 0, False: 3]
  ------------------
  330|      0|        {
  331|      0|            sink_.push_back(0xff);
  332|      0|        }
  333|      3|        else
  334|      3|        {
  335|      3|            if (stack_.back().count() < stack_.back().length())
  ------------------
  |  Branch (335:17): [True: 0, False: 3]
  ------------------
  336|      0|            {
  337|      0|                ec = cbor_errc::too_few_items;
  338|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  339|      0|            }
  340|      3|            if (stack_.back().count() > stack_.back().length())
  ------------------
  |  Branch (340:17): [True: 0, False: 3]
  ------------------
  341|      0|            {
  342|      0|                ec = cbor_errc::too_many_items;
  343|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  344|      0|            }
  345|      3|        }
  346|       |
  347|      3|        stack_.pop_back();
  348|      3|        end_value();
  349|       |
  350|      3|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  351|      3|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE9visit_keyERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  439|   524k|    {
  440|   524k|        visit_string(name, semantic_tag::none, context, ec);
  441|   524k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   524k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  442|   524k|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  445|     15|    {
  446|     15|        if (tag == semantic_tag::undefined)
  ------------------
  |  Branch (446:13): [True: 12, False: 3]
  ------------------
  447|     12|        {
  448|     12|            sink_.push_back(0xf7);
  449|     12|        }
  450|      3|        else
  451|      3|        {
  452|      3|            sink_.push_back(0xf6);
  453|      3|        }
  454|       |
  455|     15|        end_value();
  456|     15|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|     15|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  457|     15|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
 1343|      7|    {
 1344|      7|        if (value)
  ------------------
  |  Branch (1344:13): [True: 7, False: 0]
  ------------------
 1345|      7|        {
 1346|      7|            sink_.push_back(0xf5);
 1347|      7|        }
 1348|      0|        else
 1349|      0|        {
 1350|      0|            sink_.push_back(0xf4);
 1351|      0|        }
 1352|       |
 1353|      7|        end_value();
 1354|      7|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      7|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1355|      7|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12visit_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  921|   524k|    {
  922|   524k|        switch (tag)
  923|   524k|        {
  924|      0|            case semantic_tag::bigint:
  ------------------
  |  Branch (924:13): [True: 0, False: 524k]
  ------------------
  925|      0|            {
  926|      0|                bigint n(sv.data(), sv.length());
  927|      0|                write_bignum(n);
  928|      0|                end_value();
  929|      0|                break;
  930|      0|            }
  931|      5|            case semantic_tag::bigdec:
  ------------------
  |  Branch (931:13): [True: 5, False: 524k]
  ------------------
  932|      5|            {
  933|      5|                write_decimal_value(sv, context, ec);
  934|      5|                break;
  935|      0|            }
  936|      1|            case semantic_tag::bigfloat:
  ------------------
  |  Branch (936:13): [True: 1, False: 524k]
  ------------------
  937|      1|            {
  938|      1|                write_hexfloat_value(sv, context, ec);
  939|      1|                break;
  940|      0|            }
  941|      0|            case semantic_tag::datetime:
  ------------------
  |  Branch (941:13): [True: 0, False: 524k]
  ------------------
  942|      0|            {
  943|      0|                write_tag(0);
  944|       |
  945|      0|                write_string(sv);
  946|      0|                end_value();
  947|      0|                break;
  948|      0|            }
  949|      0|            case semantic_tag::uri:
  ------------------
  |  Branch (949:13): [True: 0, False: 524k]
  ------------------
  950|      0|            {
  951|      0|                write_tag(32);
  952|      0|                write_string(sv);
  953|      0|                end_value();
  954|      0|                break;
  955|      0|            }
  956|      0|            case semantic_tag::base64url:
  ------------------
  |  Branch (956:13): [True: 0, False: 524k]
  ------------------
  957|      0|            {
  958|      0|                write_tag(33);
  959|      0|                write_string(sv);
  960|      0|                end_value();
  961|      0|                break;
  962|      0|            }
  963|      0|            case semantic_tag::base64:
  ------------------
  |  Branch (963:13): [True: 0, False: 524k]
  ------------------
  964|      0|            {
  965|      0|                write_tag(34);
  966|      0|                write_string(sv);
  967|      0|                end_value();
  968|      0|                break;
  969|      0|            }
  970|   524k|            default:
  ------------------
  |  Branch (970:13): [True: 524k, False: 6]
  ------------------
  971|   524k|            {
  972|   524k|                write_string(sv);
  973|   524k|                end_value();
  974|   524k|                break;
  975|      0|            }
  976|   524k|        }
  977|   524k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|   524k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  978|   524k|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE19write_decimal_valueERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  597|      5|    {
  598|      5|        decimal_parse_state state = decimal_parse_state::start;
  599|      5|        std::basic_string<char> s;
  600|      5|        std::basic_string<char> exponent;
  601|      5|        int64_t scale = 0;
  602|      5|        for (auto c : sv)
  ------------------
  |  Branch (602:21): [True: 85, False: 5]
  ------------------
  603|     85|        {
  604|     85|            switch (state)
  ------------------
  |  Branch (604:21): [True: 85, False: 0]
  ------------------
  605|     85|            {
  606|      5|                case decimal_parse_state::start:
  ------------------
  |  Branch (606:17): [True: 5, False: 80]
  ------------------
  607|      5|                {
  608|      5|                    switch (c)
  609|      5|                    {
  610|      4|                        case '-':
  ------------------
  |  Branch (610:25): [True: 4, False: 1]
  ------------------
  611|      5|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (611:25): [True: 1, False: 4]
  |  Branch (611:34): [True: 0, False: 5]
  |  Branch (611:43): [True: 0, False: 5]
  |  Branch (611:52): [True: 0, False: 5]
  |  Branch (611:61): [True: 0, False: 5]
  |  Branch (611:70): [True: 0, False: 5]
  |  Branch (611:79): [True: 0, False: 5]
  |  Branch (611:88): [True: 0, False: 5]
  |  Branch (611:97): [True: 0, False: 5]
  |  Branch (611:107): [True: 0, False: 5]
  ------------------
  612|      5|                            s.push_back(c);
  613|      5|                            state = decimal_parse_state::integer;
  614|      5|                            break;
  615|      0|                        case '+':
  ------------------
  |  Branch (615:25): [True: 0, False: 5]
  ------------------
  616|      0|                            state = decimal_parse_state::integer;
  617|      0|                            break;
  618|      0|                        case '.':
  ------------------
  |  Branch (618:25): [True: 0, False: 5]
  ------------------
  619|      0|                            state = decimal_parse_state::fraction1;
  620|      0|                            break;
  621|      0|                        default:
  ------------------
  |  Branch (621:25): [True: 0, False: 5]
  ------------------
  622|      0|                        {
  623|      0|                            ec = cbor_errc::invalid_decimal_fraction;
  624|      0|                            return;
  625|      5|                        }
  626|      5|                    }
  627|      5|                    break;
  628|      5|                }
  629|     73|                case decimal_parse_state::integer:
  ------------------
  |  Branch (629:17): [True: 73, False: 12]
  ------------------
  630|     73|                {
  631|     73|                    switch (c)
  632|     73|                    {
  633|     68|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (633:25): [True: 64, False: 9]
  |  Branch (633:34): [True: 0, False: 73]
  |  Branch (633:43): [True: 0, False: 73]
  |  Branch (633:52): [True: 4, False: 69]
  |  Branch (633:61): [True: 0, False: 73]
  |  Branch (633:70): [True: 0, False: 73]
  |  Branch (633:79): [True: 0, False: 73]
  |  Branch (633:88): [True: 0, False: 73]
  |  Branch (633:97): [True: 0, False: 73]
  |  Branch (633:107): [True: 0, False: 73]
  ------------------
  634|     68|                            s.push_back(c);
  635|     68|                            break;
  636|      1|                        case 'e': case 'E':
  ------------------
  |  Branch (636:25): [True: 1, False: 72]
  |  Branch (636:35): [True: 0, False: 73]
  ------------------
  637|      1|                            state = decimal_parse_state::exp1;
  638|      1|                            break;
  639|      4|                        case '.':
  ------------------
  |  Branch (639:25): [True: 4, False: 69]
  ------------------
  640|      4|                            state = decimal_parse_state::fraction1;
  641|      4|                            break;
  642|      0|                        default:
  ------------------
  |  Branch (642:25): [True: 0, False: 73]
  ------------------
  643|      0|                        {
  644|      0|                            ec = cbor_errc::invalid_decimal_fraction;
  645|      0|                            return;
  646|      1|                        }
  647|     73|                    }
  648|     73|                    break;
  649|     73|                }
  650|     73|                case decimal_parse_state::exp1:
  ------------------
  |  Branch (650:17): [True: 1, False: 84]
  ------------------
  651|      1|                {
  652|      1|                    switch (c)
  653|      1|                    {
  654|      0|                        case '+':
  ------------------
  |  Branch (654:25): [True: 0, False: 1]
  ------------------
  655|      0|                            state = decimal_parse_state::exp2;
  656|      0|                            break;
  657|      1|                        case '-':
  ------------------
  |  Branch (657:25): [True: 1, False: 0]
  ------------------
  658|      1|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (658:25): [True: 0, False: 1]
  |  Branch (658:34): [True: 0, False: 1]
  |  Branch (658:43): [True: 0, False: 1]
  |  Branch (658:52): [True: 0, False: 1]
  |  Branch (658:61): [True: 0, False: 1]
  |  Branch (658:70): [True: 0, False: 1]
  |  Branch (658:79): [True: 0, False: 1]
  |  Branch (658:88): [True: 0, False: 1]
  |  Branch (658:97): [True: 0, False: 1]
  |  Branch (658:107): [True: 0, False: 1]
  ------------------
  659|      1|                            exponent.push_back(c);
  660|      1|                            state = decimal_parse_state::exp2;
  661|      1|                            break;
  662|      0|                        default:
  ------------------
  |  Branch (662:25): [True: 0, False: 1]
  ------------------
  663|      0|                        {
  664|      0|                            ec = cbor_errc::invalid_decimal_fraction;
  665|      0|                            return;
  666|      1|                        }
  667|      1|                    }
  668|      1|                    break;
  669|      1|                }
  670|      2|                case decimal_parse_state::exp2:
  ------------------
  |  Branch (670:17): [True: 2, False: 83]
  ------------------
  671|      2|                {
  672|      2|                    switch (c)
  673|      2|                    {
  674|      2|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (674:25): [True: 0, False: 2]
  |  Branch (674:34): [True: 0, False: 2]
  |  Branch (674:43): [True: 2, False: 0]
  |  Branch (674:52): [True: 0, False: 2]
  |  Branch (674:61): [True: 0, False: 2]
  |  Branch (674:70): [True: 0, False: 2]
  |  Branch (674:79): [True: 0, False: 2]
  |  Branch (674:88): [True: 0, False: 2]
  |  Branch (674:97): [True: 0, False: 2]
  |  Branch (674:107): [True: 0, False: 2]
  ------------------
  675|      2|                            exponent.push_back(c);
  676|      2|                            break;
  677|      0|                        default:
  ------------------
  |  Branch (677:25): [True: 0, False: 2]
  ------------------
  678|      0|                        {
  679|      0|                            ec = cbor_errc::invalid_decimal_fraction;
  680|      0|                            return;
  681|      2|                        }
  682|      2|                    }
  683|      2|                    break;
  684|      2|                }
  685|      4|                case decimal_parse_state::fraction1:
  ------------------
  |  Branch (685:17): [True: 4, False: 81]
  ------------------
  686|      4|                {
  687|      4|                    switch (c)
  688|      4|                    {
  689|      4|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (689:25): [True: 4, False: 0]
  |  Branch (689:34): [True: 0, False: 4]
  |  Branch (689:43): [True: 0, False: 4]
  |  Branch (689:52): [True: 0, False: 4]
  |  Branch (689:61): [True: 0, False: 4]
  |  Branch (689:70): [True: 0, False: 4]
  |  Branch (689:79): [True: 0, False: 4]
  |  Branch (689:88): [True: 0, False: 4]
  |  Branch (689:97): [True: 0, False: 4]
  |  Branch (689:107): [True: 0, False: 4]
  ------------------
  690|      4|                            s.push_back(c);
  691|      4|                            --scale;
  692|      4|                            break;
  693|      0|                        case 'e': case 'E':
  ------------------
  |  Branch (693:25): [True: 0, False: 4]
  |  Branch (693:35): [True: 0, False: 4]
  ------------------
  694|      0|                            state = decimal_parse_state::exp1;
  695|      0|                            break;
  696|      0|                        default:
  ------------------
  |  Branch (696:25): [True: 0, False: 4]
  ------------------
  697|      0|                        {
  698|      0|                            ec = cbor_errc::invalid_decimal_fraction;
  699|      0|                            return;
  700|      0|                        }
  701|      4|                    }
  702|      4|                    break;
  703|      4|                }
  704|     85|            }
  705|     85|        }
  706|       |
  707|      5|        write_tag(4);
  708|      5|        visit_begin_array((std::size_t)2, semantic_tag::none, context, ec);
  709|      5|        if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      5|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  710|      5|        if (exponent.length() > 0)
  ------------------
  |  Branch (710:13): [True: 1, False: 4]
  ------------------
  711|      1|        {
  712|      1|            int64_t val{};
  713|      1|            auto r = jsoncons::dec_to_integer(exponent.data(), exponent.length(), val);
  714|      1|            if (!r)
  ------------------
  |  Branch (714:17): [True: 0, False: 1]
  ------------------
  715|      0|            {
  716|      0|                ec = r.error_code();
  717|      0|                return;
  718|      0|            }
  719|      1|            scale += val;
  720|      1|        }
  721|      5|        visit_int64(scale, semantic_tag::none, context, ec);
  722|      5|        if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      5|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  723|       |
  724|      5|        int64_t val{ 0 };
  725|      5|        auto r = jsoncons::dec_to_integer(s.data(),s.length(), val);
  726|      5|        if (r)
  ------------------
  |  Branch (726:13): [True: 5, False: 0]
  ------------------
  727|      5|        {
  728|      5|            visit_int64(val, semantic_tag::none, context, ec);
  729|      5|            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      5|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  730|      5|        }
  731|      0|        else if (r.error_code() == std::errc::result_out_of_range)
  ------------------
  |  Branch (731:18): [True: 0, False: 0]
  ------------------
  732|      0|        {
  733|      0|            bigint n(s.data(), s.length());
  734|      0|            write_bignum(n);
  735|      0|            end_value();
  736|      0|        }
  737|      0|        else
  738|      0|        {
  739|      0|            ec = r.error_code();
  740|      0|            return;
  741|      0|        }
  742|      5|        visit_end_array(context, ec);
  743|      5|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE20write_hexfloat_valueERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  746|      1|    {
  747|      1|        hexfloat_parse_state state = hexfloat_parse_state::start;
  748|      1|        std::basic_string<char> s;
  749|      1|        std::basic_string<char> exponent;
  750|      1|        int64_t scale = 0;
  751|       |
  752|      1|        for (auto c : sv)
  ------------------
  |  Branch (752:21): [True: 22, False: 1]
  ------------------
  753|     22|        {
  754|     22|            switch (state)
  ------------------
  |  Branch (754:21): [True: 22, False: 0]
  ------------------
  755|     22|            {
  756|      1|                case hexfloat_parse_state::start:
  ------------------
  |  Branch (756:17): [True: 1, False: 21]
  ------------------
  757|      1|                {
  758|      1|                    switch (c)
  759|      1|                    {
  760|      1|                        case '-':
  ------------------
  |  Branch (760:25): [True: 1, False: 0]
  ------------------
  761|      1|                            s.push_back(c);
  762|      1|                            state = hexfloat_parse_state::expect_0;
  763|      1|                            break;
  764|      0|                        case '0':
  ------------------
  |  Branch (764:25): [True: 0, False: 1]
  ------------------
  765|      0|                            state = hexfloat_parse_state::expect_x;
  766|      0|                            break;
  767|      0|                        default:
  ------------------
  |  Branch (767:25): [True: 0, False: 1]
  ------------------
  768|      0|                        {
  769|      0|                            ec = cbor_errc::invalid_bigfloat;
  770|      0|                            return;
  771|      0|                        }
  772|      1|                    }
  773|      1|                    break;
  774|      1|                }
  775|      1|                case hexfloat_parse_state::expect_0:
  ------------------
  |  Branch (775:17): [True: 1, False: 21]
  ------------------
  776|      1|                {
  777|      1|                    switch (c)
  778|      1|                    {
  779|      1|                        case '0':
  ------------------
  |  Branch (779:25): [True: 1, False: 0]
  ------------------
  780|      1|                            state = hexfloat_parse_state::expect_x;
  781|      1|                            break;
  782|      0|                        default:
  ------------------
  |  Branch (782:25): [True: 0, False: 1]
  ------------------
  783|      0|                        {
  784|      0|                            ec = cbor_errc::invalid_bigfloat;
  785|      0|                            return;
  786|      0|                        }
  787|      1|                    }
  788|      1|                    break;
  789|      1|                }
  790|      1|                case hexfloat_parse_state::expect_x:
  ------------------
  |  Branch (790:17): [True: 1, False: 21]
  ------------------
  791|      1|                {
  792|      1|                    switch (c)
  793|      1|                    {
  794|      1|                        case 'x':
  ------------------
  |  Branch (794:25): [True: 1, False: 0]
  ------------------
  795|      1|                        case 'X':
  ------------------
  |  Branch (795:25): [True: 0, False: 1]
  ------------------
  796|      1|                            state = hexfloat_parse_state::integer;
  797|      1|                            break;
  798|      0|                        default:
  ------------------
  |  Branch (798:25): [True: 0, False: 1]
  ------------------
  799|      0|                        {
  800|      0|                            ec = cbor_errc::invalid_bigfloat;
  801|      0|                            return;
  802|      1|                        }
  803|      1|                    }
  804|      1|                    break;
  805|      1|                }
  806|     17|                case hexfloat_parse_state::integer:
  ------------------
  |  Branch (806:17): [True: 17, False: 5]
  ------------------
  807|     17|                {
  808|     17|                    switch (c)
  809|     17|                    {
  810|     16|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':case 'a':case 'b':case 'c':case 'd':case 'e':case 'f':case 'A':case 'B':case 'C':case 'D':case 'E':case 'F':
  ------------------
  |  Branch (810:25): [True: 12, False: 5]
  |  Branch (810:34): [True: 1, False: 16]
  |  Branch (810:43): [True: 1, False: 16]
  |  Branch (810:52): [True: 0, False: 17]
  |  Branch (810:61): [True: 0, False: 17]
  |  Branch (810:70): [True: 0, False: 17]
  |  Branch (810:79): [True: 0, False: 17]
  |  Branch (810:88): [True: 2, False: 15]
  |  Branch (810:97): [True: 0, False: 17]
  |  Branch (810:107): [True: 0, False: 17]
  |  Branch (810:116): [True: 0, False: 17]
  |  Branch (810:125): [True: 0, False: 17]
  |  Branch (810:134): [True: 0, False: 17]
  |  Branch (810:143): [True: 0, False: 17]
  |  Branch (810:152): [True: 0, False: 17]
  |  Branch (810:161): [True: 0, False: 17]
  |  Branch (810:170): [True: 0, False: 17]
  |  Branch (810:179): [True: 0, False: 17]
  |  Branch (810:188): [True: 0, False: 17]
  |  Branch (810:197): [True: 0, False: 17]
  |  Branch (810:206): [True: 0, False: 17]
  |  Branch (810:215): [True: 0, False: 17]
  ------------------
  811|     16|                            s.push_back(c);
  812|     16|                            break;
  813|      1|                        case 'p': case 'P':
  ------------------
  |  Branch (813:25): [True: 1, False: 16]
  |  Branch (813:35): [True: 0, False: 17]
  ------------------
  814|      1|                            state = hexfloat_parse_state::exp1;
  815|      1|                            break;
  816|      0|                        case '.':
  ------------------
  |  Branch (816:25): [True: 0, False: 17]
  ------------------
  817|      0|                            state = hexfloat_parse_state::fraction1;
  818|      0|                            break;
  819|      0|                        default:
  ------------------
  |  Branch (819:25): [True: 0, False: 17]
  ------------------
  820|      0|                        {
  821|      0|                            ec = cbor_errc::invalid_bigfloat;
  822|      0|                            return;
  823|      1|                        }
  824|     17|                    }
  825|     17|                    break;
  826|     17|                }
  827|     17|                case hexfloat_parse_state::exp1:
  ------------------
  |  Branch (827:17): [True: 1, False: 21]
  ------------------
  828|      1|                {
  829|      1|                    switch (c)
  830|      1|                    {
  831|      0|                        case '+':
  ------------------
  |  Branch (831:25): [True: 0, False: 1]
  ------------------
  832|      0|                            state = hexfloat_parse_state::exp2;
  833|      0|                            break;
  834|      1|                        case '-':
  ------------------
  |  Branch (834:25): [True: 1, False: 0]
  ------------------
  835|      1|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':case 'a':case 'b':case 'c':case 'd':case 'e':case 'f':case 'A':case 'B':case 'C':case 'D':case 'E':case 'F':
  ------------------
  |  Branch (835:25): [True: 0, False: 1]
  |  Branch (835:34): [True: 0, False: 1]
  |  Branch (835:43): [True: 0, False: 1]
  |  Branch (835:52): [True: 0, False: 1]
  |  Branch (835:61): [True: 0, False: 1]
  |  Branch (835:70): [True: 0, False: 1]
  |  Branch (835:79): [True: 0, False: 1]
  |  Branch (835:88): [True: 0, False: 1]
  |  Branch (835:97): [True: 0, False: 1]
  |  Branch (835:107): [True: 0, False: 1]
  |  Branch (835:116): [True: 0, False: 1]
  |  Branch (835:125): [True: 0, False: 1]
  |  Branch (835:134): [True: 0, False: 1]
  |  Branch (835:143): [True: 0, False: 1]
  |  Branch (835:152): [True: 0, False: 1]
  |  Branch (835:161): [True: 0, False: 1]
  |  Branch (835:170): [True: 0, False: 1]
  |  Branch (835:179): [True: 0, False: 1]
  |  Branch (835:188): [True: 0, False: 1]
  |  Branch (835:197): [True: 0, False: 1]
  |  Branch (835:206): [True: 0, False: 1]
  |  Branch (835:215): [True: 0, False: 1]
  ------------------
  836|      1|                            exponent.push_back(c);
  837|      1|                            state = hexfloat_parse_state::exp2;
  838|      1|                            break;
  839|      0|                        default:
  ------------------
  |  Branch (839:25): [True: 0, False: 1]
  ------------------
  840|      0|                        {
  841|      0|                            ec = cbor_errc::invalid_bigfloat;
  842|      0|                            return;
  843|      1|                        }
  844|      1|                    }
  845|      1|                    break;
  846|      1|                }
  847|      1|                case hexfloat_parse_state::exp2:
  ------------------
  |  Branch (847:17): [True: 1, False: 21]
  ------------------
  848|      1|                {
  849|      1|                    switch (c)
  850|      1|                    {
  851|      1|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':case 'a':case 'b':case 'c':case 'd':case 'e':case 'f':case 'A':case 'B':case 'C':case 'D':case 'E':case 'F':
  ------------------
  |  Branch (851:25): [True: 0, False: 1]
  |  Branch (851:34): [True: 0, False: 1]
  |  Branch (851:43): [True: 0, False: 1]
  |  Branch (851:52): [True: 0, False: 1]
  |  Branch (851:61): [True: 0, False: 1]
  |  Branch (851:70): [True: 0, False: 1]
  |  Branch (851:79): [True: 0, False: 1]
  |  Branch (851:88): [True: 0, False: 1]
  |  Branch (851:97): [True: 0, False: 1]
  |  Branch (851:107): [True: 0, False: 1]
  |  Branch (851:116): [True: 0, False: 1]
  |  Branch (851:125): [True: 0, False: 1]
  |  Branch (851:134): [True: 0, False: 1]
  |  Branch (851:143): [True: 0, False: 1]
  |  Branch (851:152): [True: 0, False: 1]
  |  Branch (851:161): [True: 0, False: 1]
  |  Branch (851:170): [True: 0, False: 1]
  |  Branch (851:179): [True: 0, False: 1]
  |  Branch (851:188): [True: 0, False: 1]
  |  Branch (851:197): [True: 0, False: 1]
  |  Branch (851:206): [True: 0, False: 1]
  |  Branch (851:215): [True: 1, False: 0]
  ------------------
  852|      1|                            exponent.push_back(c);
  853|      1|                            break;
  854|      0|                        default:
  ------------------
  |  Branch (854:25): [True: 0, False: 1]
  ------------------
  855|      0|                        {
  856|      0|                            ec = cbor_errc::invalid_bigfloat;
  857|      0|                            return;
  858|      0|                        }
  859|      1|                    }
  860|      1|                    break;
  861|      1|                }
  862|      1|                case hexfloat_parse_state::fraction1:
  ------------------
  |  Branch (862:17): [True: 0, False: 22]
  ------------------
  863|      0|                {
  864|      0|                    switch (c)
  865|      0|                    {
  866|      0|                        case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':case 'a':case 'b':case 'c':case 'd':case 'e':case 'f':case 'A':case 'B':case 'C':case 'D':case 'E':case 'F':
  ------------------
  |  Branch (866:25): [True: 0, False: 0]
  |  Branch (866:34): [True: 0, False: 0]
  |  Branch (866:43): [True: 0, False: 0]
  |  Branch (866:52): [True: 0, False: 0]
  |  Branch (866:61): [True: 0, False: 0]
  |  Branch (866:70): [True: 0, False: 0]
  |  Branch (866:79): [True: 0, False: 0]
  |  Branch (866:88): [True: 0, False: 0]
  |  Branch (866:97): [True: 0, False: 0]
  |  Branch (866:107): [True: 0, False: 0]
  |  Branch (866:116): [True: 0, False: 0]
  |  Branch (866:125): [True: 0, False: 0]
  |  Branch (866:134): [True: 0, False: 0]
  |  Branch (866:143): [True: 0, False: 0]
  |  Branch (866:152): [True: 0, False: 0]
  |  Branch (866:161): [True: 0, False: 0]
  |  Branch (866:170): [True: 0, False: 0]
  |  Branch (866:179): [True: 0, False: 0]
  |  Branch (866:188): [True: 0, False: 0]
  |  Branch (866:197): [True: 0, False: 0]
  |  Branch (866:206): [True: 0, False: 0]
  |  Branch (866:215): [True: 0, False: 0]
  ------------------
  867|      0|                            s.push_back(c);
  868|      0|                            scale -= 4;
  869|      0|                            break;
  870|      0|                        default:
  ------------------
  |  Branch (870:25): [True: 0, False: 0]
  ------------------
  871|      0|                        {
  872|      0|                            ec = cbor_errc::invalid_bigfloat;
  873|      0|                            return;
  874|      0|                        }
  875|      0|                    }
  876|      0|                    break;
  877|      0|                }
  878|     22|            }
  879|     22|        }
  880|       |
  881|      1|        write_tag(5);
  882|      1|        visit_begin_array((std::size_t)2, semantic_tag::none, context, ec);
  883|      1|        if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  884|       |
  885|      1|        if (exponent.length() > 0)
  ------------------
  |  Branch (885:13): [True: 1, False: 0]
  ------------------
  886|      1|        {
  887|      1|            int64_t val{ 0 };
  888|      1|            auto r = jsoncons::hex_to_integer(exponent.data(), exponent.length(), val);
  889|      1|            if (!r)
  ------------------
  |  Branch (889:17): [True: 0, False: 1]
  ------------------
  890|      0|            {
  891|      0|                ec = r.error_code();
  892|      0|                return;
  893|      0|            }
  894|      1|            scale += val;
  895|      1|        }
  896|      1|        visit_int64(scale, semantic_tag::none, context, ec);
  897|      1|        if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  898|       |
  899|      1|        int64_t val{ 0 };
  900|      1|        auto r = jsoncons::hex_to_integer(s.data(),s.length(), val);
  901|      1|        if (r)
  ------------------
  |  Branch (901:13): [True: 1, False: 0]
  ------------------
  902|      1|        {
  903|      1|            visit_int64(val, semantic_tag::none, context, ec);
  904|      1|            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  905|      1|        }
  906|      0|        else if (r.error_code() == std::errc::result_out_of_range)
  ------------------
  |  Branch (906:18): [True: 0, False: 0]
  ------------------
  907|      0|        {
  908|      0|            bigint n = bigint::parse_radix(s.data(), s.length(), 16);
  909|      0|            write_bignum(n);
  910|      0|            end_value();
  911|      0|        }
  912|      0|        else
  913|      0|        {
  914|      0|            ec = r.error_code();
  915|      0|            return;
  916|      0|        }
  917|      1|        visit_end_array(context, ec);
  918|      1|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE12write_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEE:
  460|   524k|    {
  461|   524k|        auto sink = unicode_traits::validate(sv.data(), sv.size());
  462|   524k|        if (sink.ec != unicode_traits::conv_errc())
  ------------------
  |  Branch (462:13): [True: 0, False: 524k]
  ------------------
  463|      0|        {
  464|      0|            JSONCONS_THROW(ser_error(cbor_errc::invalid_utf8_text_string));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  465|      0|        }
  466|       |
  467|   524k|        if (pack_strings_ && sv.size() >= jsoncons::cbor::detail::min_length_for_stringref(next_stringref_))
  ------------------
  |  Branch (467:13): [True: 0, False: 524k]
  |  Branch (467:30): [True: 0, False: 0]
  ------------------
  468|      0|        {
  469|      0|            string_type s(sv.data(), sv.size(), alloc_);
  470|      0|            auto it = stringref_map_.find(s);
  471|      0|            if (it == stringref_map_.end())
  ------------------
  |  Branch (471:17): [True: 0, False: 0]
  ------------------
  472|      0|            {
  473|      0|                stringref_map_.emplace(std::make_pair(std::move(s), next_stringref_++));
  474|      0|                write_utf8_string(sv);
  475|      0|            }
  476|      0|            else
  477|      0|            {
  478|      0|                write_tag(25);
  479|      0|                write_uint64_value((*it).second);
  480|      0|            }
  481|      0|        }
  482|   524k|        else
  483|   524k|        {
  484|   524k|            write_utf8_string(sv);
  485|   524k|        }
  486|   524k|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17write_utf8_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEE:
  489|   524k|    {
  490|   524k|        const size_t length = sv.size();
  491|       |
  492|   524k|        if (length <= 0x17)
  ------------------
  |  Branch (492:13): [True: 524k, False: 3]
  ------------------
  493|   524k|        {
  494|       |            // fixstr stores a byte array whose length is upto 31 bytes
  495|   524k|            binary::native_to_big(static_cast<uint8_t>(0x60 + length), 
  496|   524k|                                            std::back_inserter(sink_));
  497|   524k|        }
  498|      3|        else if (length <= 0xff)
  ------------------
  |  Branch (498:18): [True: 3, False: 0]
  ------------------
  499|      3|        {
  500|      3|            binary::native_to_big(static_cast<uint8_t>(0x78), 
  501|      3|                                            std::back_inserter(sink_));
  502|      3|            binary::native_to_big(static_cast<uint8_t>(length), 
  503|      3|                                            std::back_inserter(sink_));
  504|      3|        }
  505|      0|        else if (length <= 0xffff)
  ------------------
  |  Branch (505:18): [True: 0, False: 0]
  ------------------
  506|      0|        {
  507|      0|            binary::native_to_big(static_cast<uint8_t>(0x79), 
  508|      0|                                            std::back_inserter(sink_));
  509|      0|            binary::native_to_big(static_cast<uint16_t>(length), 
  510|      0|                                            std::back_inserter(sink_));
  511|      0|        }
  512|      0|        else if (length <= 0xffffffff)
  ------------------
  |  Branch (512:18): [True: 0, False: 0]
  ------------------
  513|      0|        {
  514|      0|            binary::native_to_big(static_cast<uint8_t>(0x7a), 
  515|      0|                                            std::back_inserter(sink_));
  516|      0|            binary::native_to_big(static_cast<uint32_t>(length), 
  517|      0|                                            std::back_inserter(sink_));
  518|      0|        }
  519|      0|        else if (uint64_t(length) <= (std::numeric_limits<std::uint64_t>::max)())
  ------------------
  |  Branch (519:18): [True: 0, False: 0]
  ------------------
  520|      0|        {
  521|      0|            binary::native_to_big(static_cast<uint8_t>(0x7b), 
  522|      0|                                            std::back_inserter(sink_));
  523|      0|            binary::native_to_big(static_cast<uint64_t>(length), 
  524|      0|                                            std::back_inserter(sink_));
  525|      0|        }
  526|       |
  527|   524k|        for (auto c : sv)
  ------------------
  |  Branch (527:21): [True: 524k, False: 524k]
  ------------------
  528|   524k|        {
  529|   524k|            sink_.push_back(c);
  530|   524k|        }
  531|   524k|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  984|    161|    {
  985|    161|        byte_string_chars_format encoding_hint;
  986|    161|        switch (tag)
  987|    161|        {
  988|      0|            case semantic_tag::base16:
  ------------------
  |  Branch (988:13): [True: 0, False: 161]
  ------------------
  989|      0|                encoding_hint = byte_string_chars_format::base16;
  990|      0|                break;
  991|      0|            case semantic_tag::base64:
  ------------------
  |  Branch (991:13): [True: 0, False: 161]
  ------------------
  992|      0|                encoding_hint = byte_string_chars_format::base64;
  993|      0|                break;
  994|      0|            case semantic_tag::base64url:
  ------------------
  |  Branch (994:13): [True: 0, False: 161]
  ------------------
  995|      0|                encoding_hint = byte_string_chars_format::base64url;
  996|      0|                break;
  997|    161|            default:
  ------------------
  |  Branch (997:13): [True: 161, False: 0]
  ------------------
  998|    161|                encoding_hint = byte_string_chars_format::none;
  999|    161|                break;
 1000|    161|        }
 1001|    161|        switch (encoding_hint)
 1002|    161|        {
 1003|      0|            case byte_string_chars_format::base64url:
  ------------------
  |  Branch (1003:13): [True: 0, False: 161]
  ------------------
 1004|      0|                write_tag(21);
 1005|      0|                break;
 1006|      0|            case byte_string_chars_format::base64:
  ------------------
  |  Branch (1006:13): [True: 0, False: 161]
  ------------------
 1007|      0|                write_tag(22);
 1008|      0|                break;
 1009|      0|            case byte_string_chars_format::base16:
  ------------------
  |  Branch (1009:13): [True: 0, False: 161]
  ------------------
 1010|      0|                write_tag(23);
 1011|      0|                break;
 1012|    161|            default:
  ------------------
  |  Branch (1012:13): [True: 161, False: 0]
  ------------------
 1013|    161|                break;
 1014|    161|        }
 1015|    161|        if (pack_strings_ && b.size() >= jsoncons::cbor::detail::min_length_for_stringref(next_stringref_))
  ------------------
  |  Branch (1015:13): [True: 0, False: 161]
  |  Branch (1015:30): [True: 0, False: 0]
  ------------------
 1016|      0|        {
 1017|      0|            byte_string_type bs(b.data(), b.size(), alloc_);
 1018|      0|            auto it = bytestringref_map_.find(bs);
 1019|      0|            if (it == bytestringref_map_.end())
  ------------------
  |  Branch (1019:17): [True: 0, False: 0]
  ------------------
 1020|      0|            {
 1021|      0|                bytestringref_map_.emplace(std::make_pair(bs, next_stringref_++));
 1022|      0|                write_byte_string(bs);
 1023|      0|            }
 1024|      0|            else
 1025|      0|            {
 1026|      0|                write_tag(25);
 1027|      0|                write_uint64_value((*it).second);
 1028|      0|            }
 1029|      0|        }
 1030|    161|        else
 1031|    161|        {
 1032|    161|            write_byte_string(b);
 1033|    161|        }
 1034|       |
 1035|    161|        end_value();
 1036|    161|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    161|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|    161|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17write_byte_stringERKNS_16byte_string_viewE:
 1071|    162|    {
 1072|    162|        if (b.size() <= 0x17)
  ------------------
  |  Branch (1072:13): [True: 162, False: 0]
  ------------------
 1073|    162|        {
 1074|       |            // fixstr stores a byte array whose length is upto 31 bytes
 1075|    162|            binary::native_to_big(static_cast<uint8_t>(0x40 + b.size()), 
 1076|    162|                                            std::back_inserter(sink_));
 1077|    162|        }
 1078|      0|        else if (b.size() <= 0xff)
  ------------------
  |  Branch (1078:18): [True: 0, False: 0]
  ------------------
 1079|      0|        {
 1080|      0|            binary::native_to_big(static_cast<uint8_t>(0x58), 
 1081|      0|                                            std::back_inserter(sink_));
 1082|      0|            binary::native_to_big(static_cast<uint8_t>(b.size()), 
 1083|      0|                                            std::back_inserter(sink_));
 1084|      0|        }
 1085|      0|        else if (b.size() <= 0xffff)
  ------------------
  |  Branch (1085:18): [True: 0, False: 0]
  ------------------
 1086|      0|        {
 1087|      0|            binary::native_to_big(static_cast<uint8_t>(0x59), 
 1088|      0|                                            std::back_inserter(sink_));
 1089|      0|            binary::native_to_big(static_cast<uint16_t>(b.size()), 
 1090|      0|                                            std::back_inserter(sink_));
 1091|      0|        }
 1092|      0|        else if (b.size() <= 0xffffffff)
  ------------------
  |  Branch (1092:18): [True: 0, False: 0]
  ------------------
 1093|      0|        {
 1094|      0|            binary::native_to_big(static_cast<uint8_t>(0x5a), 
 1095|      0|                                            std::back_inserter(sink_));
 1096|      0|            binary::native_to_big(static_cast<uint32_t>(b.size()), 
 1097|      0|                                            std::back_inserter(sink_));
 1098|      0|        }
 1099|      0|        else // if (b.size() <= 0xffffffffffffffff)
 1100|      0|        {
 1101|      0|            binary::native_to_big(static_cast<uint8_t>(0x5b), 
 1102|      0|                                            std::back_inserter(sink_));
 1103|      0|            binary::native_to_big(static_cast<uint64_t>(b.size()), 
 1104|      0|                                            std::back_inserter(sink_));
 1105|      0|        }
 1106|       |
 1107|    162|        for (auto c : b)
  ------------------
  |  Branch (1107:21): [True: 65, False: 162]
  ------------------
 1108|     65|        {
 1109|     65|            sink_.push_back(c);
 1110|     65|        }
 1111|    162|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS3_10error_codeE:
 1043|      1|    {
 1044|      1|        if (pack_strings_ && b.size() >= jsoncons::cbor::detail::min_length_for_stringref(next_stringref_))
  ------------------
  |  Branch (1044:13): [True: 0, False: 1]
  |  Branch (1044:30): [True: 0, False: 0]
  ------------------
 1045|      0|        {
 1046|      0|            byte_string_type bs(b.data(), b.size(), alloc_);
 1047|      0|            auto it = bytestringref_map_.find(bs);
 1048|      0|            if (it == bytestringref_map_.end())
  ------------------
  |  Branch (1048:17): [True: 0, False: 0]
  ------------------
 1049|      0|            {
 1050|      0|                bytestringref_map_.emplace(std::make_pair(bs, next_stringref_++));
 1051|      0|                write_tag(ext_tag);
 1052|      0|                write_byte_string(bs);
 1053|      0|            }
 1054|      0|            else
 1055|      0|            {
 1056|      0|                write_tag(25);
 1057|      0|                write_uint64_value((*it).second);
 1058|      0|            }
 1059|      0|        }
 1060|      1|        else
 1061|      1|        {
 1062|      1|            write_tag(ext_tag);
 1063|      1|            write_byte_string(b);
 1064|      1|        }
 1065|       |
 1066|      1|        end_value();
 1067|      1|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1068|      1|    }
_ZN8jsoncons4cbor18basic_cbor_encoderINS_10bytes_sinkINSt3__16vectorIhNS3_9allocatorIhEEEEvEENS5_IcEEED2Ev:
  147|      7|    {
  148|      7|        JSONCONS_TRY
  ------------------
  |  |   37|      7|    #define JSONCONS_TRY try
  ------------------
  149|      7|        {
  150|      7|            sink_.flush();
  151|      7|        }
  152|      7|        JSONCONS_CATCH(...)
  153|      7|        {
  154|      0|        }
  155|      7|    }

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

_ZN8jsoncons4cbor19cbor_decode_optionsC1Ev:
   42|      7|    cbor_decode_options() = default;
_ZN8jsoncons4cbor19cbor_options_commonC2Ev:
   25|     14|    cbor_options_common() = default;
_ZN8jsoncons4cbor19cbor_options_commonD2Ev:
   27|     14|    virtual ~cbor_options_common() = default;
_ZN8jsoncons4cbor19cbor_encode_optionsC1Ev:
   55|      7|    cbor_encode_options() = default;
_ZNK8jsoncons4cbor19cbor_options_common17max_nesting_depthEv:
   33|     14|    {
   34|     14|        return max_nesting_depth_;
   35|     14|    }
_ZNK8jsoncons4cbor19cbor_encode_options12pack_stringsEv:
   61|     14|    {
   62|     14|        return use_stringref_;
   63|     14|    }
_ZNK8jsoncons4cbor19cbor_encode_options16use_typed_arraysEv:
   66|      7|    {
   67|      7|        return use_typed_arrays_;
   68|      7|    }

_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEED2Ev:
  213|      7|    ~basic_cbor_parser() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RKNS0_19cbor_decode_optionsERKS7_:
  197|      7|       : alloc_(alloc),
  198|      7|         source_(std::forward<Sourceable>(source)),
  199|      7|         max_nesting_depth_(options.max_nesting_depth()),
  200|      7|         text_buffer_(alloc),
  201|      7|         bytes_buffer_(alloc),
  202|      7|         state_stack_(alloc),
  203|      7|         stringref_map_stack_(alloc)
  204|      7|    {
  205|      7|        state_stack_.emplace_back(parse_mode::root,0);
  206|      7|    }
_ZN8jsoncons4cbor11parse_stateC2ENS0_10parse_modeEmb:
   51|    938|        : mode(mode), length(length), pop_stringref_map_stack(pop_stringref_map_stack)
   52|    938|    {
   53|    938|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  221|      7|    {
  222|      7|        more_ = true;
  223|      7|        done_ = false;
  224|      7|        text_buffer_.clear();
  225|      7|        bytes_buffer_.clear();
  226|      7|        raw_tag_ = 0;
  227|      7|        state_stack_.clear();
  228|      7|        state_stack_.emplace_back(parse_mode::root,0);
  229|      7|        stringref_map_stack_.clear();
  230|      7|        nesting_depth_ = 0;
  231|      7|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
  320|      7|    {
  321|  2.09M|        while (!done_ && more_)
  ------------------
  |  Branch (321:16): [True: 2.09M, False: 3]
  |  Branch (321:26): [True: 2.09M, False: 0]
  ------------------
  322|  2.09M|        {
  323|  2.09M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (323:21): [True: 2.09M, False: 0]
  ------------------
  324|  2.09M|            {
  325|      0|                case parse_mode::multi_dim:
  ------------------
  |  Branch (325:17): [True: 0, False: 2.09M]
  ------------------
  326|      0|                {
  327|      0|                    typed_array_iter_ = multi_dim_stack_.back();
  328|      0|                    multi_dim_stack_.pop_back();
  329|      0|                    state_stack_.pop_back();
  330|      0|                    break;
  331|      0|                }
  332|   477k|                case parse_mode::array:
  ------------------
  |  Branch (332:17): [True: 477k, False: 1.61M]
  ------------------
  333|   477k|                {
  334|   477k|                    if (is_multi_dim())
  ------------------
  |  Branch (334:25): [True: 0, False: 477k]
  ------------------
  335|      0|                    {
  336|      0|                        if (!typed_array_iter_->done())
  ------------------
  |  Branch (336:29): [True: 0, False: 0]
  ------------------
  337|      0|                        {
  338|      0|                            typed_array_iter_->next(visitor, *this, ec);
  339|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  340|      0|                            {
  341|      0|                                return;
  342|      0|                            }
  343|      0|                        }
  344|      0|                        else
  345|      0|                        {
  346|      0|                            if (typed_array_iter_->count() != state_stack_.back().length)
  ------------------
  |  Branch (346:33): [True: 0, False: 0]
  ------------------
  347|      0|                            {
  348|       |                                //std::cout << state_stack_.back().index << "!=" << state_stack_.back().length << "\n";
  349|      0|                                ec = cbor_errc::bad_mdarray;
  350|      0|                                return;
  351|      0|                            }
  352|      0|                            end_classical_array_storage(ec);
  353|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  354|      0|                            {
  355|      0|                                return;
  356|      0|                            }
  357|      0|                        }
  358|      0|                    }
  359|   477k|                    else
  360|   477k|                    {
  361|   477k|                        if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (361:29): [True: 477k, False: 187]
  ------------------
  362|   477k|                        {
  363|   477k|                            ++state_stack_.back().index;
  364|   477k|                            read_item(visitor, ec);
  365|   477k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   477k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 477k]
  |  |  ------------------
  ------------------
  366|      1|                            {
  367|      1|                                return;
  368|      1|                            }
  369|   477k|                        }
  370|    187|                        else
  371|    187|                        {
  372|    187|                            end_array(visitor, ec);
  373|    187|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    187|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 187]
  |  |  ------------------
  ------------------
  374|      0|                            {
  375|      0|                                return;
  376|      0|                            }
  377|    187|                        }
  378|   477k|                    }
  379|   477k|                    break;
  380|   477k|                }
  381|   477k|                case parse_mode::indefinite_array:
  ------------------
  |  Branch (381:17): [True: 0, False: 2.09M]
  ------------------
  382|      0|                {
  383|      0|                    if (is_multi_dim()) 
  ------------------
  |  Branch (383:25): [True: 0, False: 0]
  ------------------
  384|      0|                    {
  385|      0|                        if (!typed_array_iter_->done())
  ------------------
  |  Branch (385:29): [True: 0, False: 0]
  ------------------
  386|      0|                        {
  387|      0|                            typed_array_iter_->next(visitor, *this, ec);
  388|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  389|      0|                            {
  390|      0|                                return;
  391|      0|                            }
  392|      0|                        }
  393|      0|                        else
  394|      0|                        {
  395|      0|                            auto c = source_.peek();
  396|      0|                            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  397|      0|                            {
  398|      0|                                ec = cbor_errc::unexpected_eof;
  399|      0|                                more_ = false;
  400|      0|                                return;
  401|      0|                            }
  402|      0|                            if (c.value == 0xff)
  ------------------
  |  Branch (402:33): [True: 0, False: 0]
  ------------------
  403|      0|                            {
  404|      0|                                source_.ignore(1);
  405|      0|                            }
  406|      0|                            else
  407|      0|                            {
  408|      0|                                ec = cbor_errc::bad_mdarray;
  409|      0|                                return;
  410|      0|                            }
  411|      0|                            end_classical_array_storage(ec);
  412|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  413|      0|                            {
  414|      0|                                return;
  415|      0|                            }
  416|      0|                        }
  417|      0|                    }
  418|      0|                    else
  419|      0|                    {
  420|      0|                        auto c = source_.peek();
  421|      0|                        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  422|      0|                        {
  423|      0|                            ec = cbor_errc::unexpected_eof;
  424|      0|                            more_ = false;
  425|      0|                            return;
  426|      0|                        }
  427|      0|                        if (c.value == 0xff)
  ------------------
  |  Branch (427:29): [True: 0, False: 0]
  ------------------
  428|      0|                        {
  429|      0|                            source_.ignore(1);
  430|      0|                            end_array(visitor, ec);
  431|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  432|      0|                            {
  433|      0|                                return;
  434|      0|                            }
  435|      0|                        }
  436|      0|                        else
  437|      0|                        {
  438|      0|                            read_item(visitor, ec);
  439|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  440|      0|                            {
  441|      0|                                return;
  442|      0|                            }
  443|      0|                        }
  444|      0|                    }
  445|      0|                    break;
  446|      0|                }
  447|    775|                case parse_mode::typed_array:
  ------------------
  |  Branch (447:17): [True: 775, False: 2.09M]
  ------------------
  448|    775|                {
  449|    775|                    read_typed_array_item(visitor, ec);
  450|    775|                    break;
  451|      0|                }
  452|     63|                case parse_mode::map_key:
  ------------------
  |  Branch (452:17): [True: 63, False: 2.09M]
  ------------------
  453|     63|                {
  454|     63|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (454:25): [True: 36, False: 27]
  ------------------
  455|     36|                    {
  456|     36|                        ++state_stack_.back().index;
  457|     36|                        state_stack_.back().mode = parse_mode::map_value;
  458|     36|                        read_item(visitor, ec);
  459|     36|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     36|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 36]
  |  |  ------------------
  ------------------
  460|      0|                        {
  461|      0|                            return;
  462|      0|                        }
  463|     36|                    }
  464|     27|                    else
  465|     27|                    {
  466|     27|                        end_object(visitor, ec);
  467|     27|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     27|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 27]
  |  |  ------------------
  ------------------
  468|      0|                        {
  469|      0|                            return;
  470|      0|                        }
  471|     27|                    }
  472|     63|                    break;
  473|     63|                }
  474|     63|                case parse_mode::map_value:
  ------------------
  |  Branch (474:17): [True: 35, False: 2.09M]
  ------------------
  475|     35|                {
  476|     35|                    state_stack_.back().mode = parse_mode::map_key;
  477|     35|                    read_item(visitor, ec);
  478|     35|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     35|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 35]
  |  |  ------------------
  ------------------
  479|      0|                    {
  480|      0|                        return;
  481|      0|                    }
  482|     35|                    break;
  483|     35|                }
  484|   808k|                case parse_mode::indefinite_map_key:
  ------------------
  |  Branch (484:17): [True: 808k, False: 1.28M]
  ------------------
  485|   808k|                {
  486|   808k|                    auto c = source_.peek();
  487|   808k|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   808k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 808k]
  |  |  ------------------
  ------------------
  488|      1|                    {
  489|      1|                        ec = cbor_errc::unexpected_eof;
  490|      1|                        more_ = false;
  491|      1|                        return;
  492|      1|                    }
  493|   808k|                    if (c.value == 0xff)
  ------------------
  |  Branch (493:25): [True: 1, False: 808k]
  ------------------
  494|      1|                    {
  495|      1|                        source_.ignore(1);
  496|      1|                        end_object(visitor, ec);
  497|      1|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  498|      0|                        {
  499|      0|                            return;
  500|      0|                        }
  501|      1|                    }
  502|   808k|                    else
  503|   808k|                    {
  504|   808k|                        state_stack_.back().mode = parse_mode::indefinite_map_value;
  505|   808k|                        read_item(visitor, ec);
  506|   808k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   808k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 808k]
  |  |  ------------------
  ------------------
  507|      0|                        {
  508|      0|                            return;
  509|      0|                        }
  510|   808k|                    }
  511|   808k|                    break;
  512|   808k|                }
  513|   808k|                case parse_mode::indefinite_map_value:
  ------------------
  |  Branch (513:17): [True: 808k, False: 1.28M]
  ------------------
  514|   808k|                {
  515|   808k|                    state_stack_.back().mode = parse_mode::indefinite_map_key;
  516|   808k|                    read_item(visitor, ec);
  517|   808k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   808k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 808k]
  |  |  ------------------
  ------------------
  518|      0|                    {
  519|      0|                        return;
  520|      0|                    }
  521|   808k|                    break;
  522|   808k|                }
  523|   808k|                case parse_mode::root:
  ------------------
  |  Branch (523:17): [True: 7, False: 2.09M]
  ------------------
  524|      7|                {
  525|      7|                    state_stack_.back().mode = parse_mode::accept;
  526|      7|                    read_item(visitor, ec);
  527|      7|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      7|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 5]
  |  |  ------------------
  ------------------
  528|      2|                    {
  529|      2|                        return;
  530|      2|                    }
  531|      5|                    break;
  532|      7|                }
  533|      5|                case parse_mode::accept:
  ------------------
  |  Branch (533:17): [True: 3, False: 2.09M]
  ------------------
  534|      3|                {
  535|      3|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   45|      3|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 3]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  536|      3|                    state_stack_.clear();
  537|      3|                    more_ = false;
  538|      3|                    done_ = true;
  539|      3|                    visitor.flush();
  540|      3|                    break;
  541|      3|                }
  542|  2.09M|            }
  543|  2.09M|        }
  544|      7|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12is_multi_dimEv:
  239|   477k|    {
  240|   477k|        return state_stack_.size() >=2 && state_stack_[state_stack_.size()-2].mode == parse_mode::multi_dim;
  ------------------
  |  Branch (240:16): [True: 477k, False: 0]
  |  Branch (240:43): [True: 0, False: 477k]
  ------------------
  241|   477k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5levelEv:
  275|    215|    {
  276|    215|        return static_cast<int>(state_stack_.size());
  277|    215|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
  565|  2.09M|    {
  566|  2.09M|        read_tags(ec);
  567|  2.09M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.09M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 2.09M]
  |  |  ------------------
  ------------------
  568|      1|        {
  569|      1|            return;
  570|      1|        }
  571|  2.09M|        auto c = source_.peek();
  572|  2.09M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  2.09M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.09M]
  |  |  ------------------
  ------------------
  573|      0|        {
  574|      0|            ec = cbor_errc::unexpected_eof;
  575|      0|            more_ = false;
  576|      0|            return;
  577|      0|        }
  578|  2.09M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
  579|  2.09M|        uint8_t info = get_additional_information_value(c.value);
  580|       |
  581|  2.09M|        switch (major_type)
  582|  2.09M|        {
  583|  2.09M|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (583:13): [True: 2.09M, False: 1.63k]
  ------------------
  584|  2.09M|            {
  585|  2.09M|                uint64_t val = read_uint64(ec);
  586|  2.09M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.09M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.09M]
  |  |  ------------------
  ------------------
  587|      0|                {
  588|      0|                    return;
  589|      0|                }
  590|  2.09M|                if (!stringref_map_stack_.empty() && other_tags_[stringref_tag])
  ------------------
  |  Branch (590:21): [True: 0, False: 2.09M]
  |  Branch (590:21): [True: 0, False: 2.09M]
  |  Branch (590:54): [True: 0, False: 0]
  ------------------
  591|      0|                {
  592|      0|                    other_tags_[stringref_tag] = false;
  593|      0|                    if (val >= stringref_map_stack_.back().size())
  ------------------
  |  Branch (593:25): [True: 0, False: 0]
  ------------------
  594|      0|                    {
  595|      0|                        ec = cbor_errc::stringref_too_large;
  596|      0|                        more_ = false;
  597|      0|                        return;
  598|      0|                    }
  599|      0|                    auto index = static_cast<typename stringref_map::size_type>(val);
  600|      0|                    if (index != val)
  ------------------
  |  Branch (600:25): [True: 0, False: 0]
  ------------------
  601|      0|                    {
  602|      0|                        ec = cbor_errc::number_too_large;
  603|      0|                        more_ = false;
  604|      0|                        return;
  605|      0|                    }
  606|      0|                    auto& str = stringref_map_stack_.back().at(index);
  607|      0|                    switch (str.type)
  608|      0|                    {
  609|      0|                        case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (609:25): [True: 0, False: 0]
  ------------------
  610|      0|                        {
  611|      0|                            handle_string(visitor, jsoncons::basic_string_view<char>(str.str.data(),str.str.length()),ec);
  612|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  613|      0|                            {
  614|      0|                                return;
  615|      0|                            }
  616|      0|                            break;
  617|      0|                        }
  618|      0|                        case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (618:25): [True: 0, False: 0]
  ------------------
  619|      0|                        {
  620|      0|                            read_byte_string_from_buffer read(byte_string_view(str.bytes));
  621|      0|                            read_byte_string(read, visitor, ec);
  622|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  623|      0|                            {
  624|      0|                                return;
  625|      0|                            }
  626|      0|                            break;
  627|      0|                        }
  628|      0|                        default:
  ------------------
  |  Branch (628:25): [True: 0, False: 0]
  ------------------
  629|      0|                            JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
  630|      0|                            break;
  631|      0|                    }
  632|      0|                }
  633|  2.09M|                else
  634|  2.09M|                {
  635|  2.09M|                    semantic_tag tag = semantic_tag::none;
  636|  2.09M|                    if (other_tags_[item_tag])
  ------------------
  |  Branch (636:25): [True: 10, False: 2.09M]
  ------------------
  637|     10|                    {
  638|     10|                        if (raw_tag_ == 1)
  ------------------
  |  Branch (638:29): [True: 0, False: 10]
  ------------------
  639|      0|                        {
  640|      0|                            tag = semantic_tag::epoch_second;
  641|      0|                        }
  642|     10|                        other_tags_[item_tag] = false;
  643|     10|                    }
  644|  2.09M|                    visitor.uint64_value(val, tag, *this, ec);
  645|  2.09M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.09M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.09M]
  |  |  ------------------
  ------------------
  646|      0|                    {
  647|      0|                        return;
  648|      0|                    }
  649|  2.09M|                    more_ = !cursor_mode_;
  650|  2.09M|                }
  651|  2.09M|                break;
  652|  2.09M|            }
  653|  2.09M|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (653:13): [True: 234, False: 2.09M]
  ------------------
  654|    234|            {
  655|    234|                int64_t val = read_int64(ec);
  656|    234|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    234|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 234]
  |  |  ------------------
  ------------------
  657|      0|                {
  658|      0|                    return;
  659|      0|                }
  660|    234|                semantic_tag tag = semantic_tag::none;
  661|    234|                if (other_tags_[item_tag])
  ------------------
  |  Branch (661:21): [True: 3, False: 231]
  ------------------
  662|      3|                {
  663|      3|                    if (raw_tag_ == 1)
  ------------------
  |  Branch (663:25): [True: 0, False: 3]
  ------------------
  664|      0|                    {
  665|      0|                        tag = semantic_tag::epoch_second;
  666|      0|                    }
  667|      3|                    other_tags_[item_tag] = false;
  668|      3|                }
  669|    234|                visitor.int64_value(val, tag, *this, ec);
  670|    234|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    234|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 234]
  |  |  ------------------
  ------------------
  671|      0|                {
  672|      0|                    return;
  673|      0|                }
  674|    234|                more_ = !cursor_mode_;
  675|    234|                break;
  676|    234|            }
  677|  1.11k|            case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (677:13): [True: 1.11k, False: 2.09M]
  ------------------
  678|  1.11k|            {
  679|  1.11k|                read_byte_string_from_source read(this);
  680|  1.11k|                read_byte_string(read, visitor, ec);
  681|  1.11k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.11k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 1.11k]
  |  |  ------------------
  ------------------
  682|      1|                {
  683|      1|                    return;
  684|      1|                }
  685|  1.11k|                break;
  686|  1.11k|            }
  687|  1.11k|            case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (687:13): [True: 0, False: 2.09M]
  ------------------
  688|      0|            {
  689|      0|                text_buffer_.clear();
  690|       |
  691|      0|                read_text_string(text_buffer_, ec);
  692|      0|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  693|      0|                {
  694|      0|                    return;
  695|      0|                }
  696|      0|                auto result = unicode_traits::validate(text_buffer_.data(),text_buffer_.size());
  697|      0|                if (result.ec != unicode_traits::conv_errc())
  ------------------
  |  Branch (697:21): [True: 0, False: 0]
  ------------------
  698|      0|                {
  699|      0|                    ec = cbor_errc::invalid_utf8_text_string;
  700|      0|                    more_ = false;
  701|      0|                    return;
  702|      0|                }
  703|      0|                handle_string(visitor, jsoncons::basic_string_view<char>(text_buffer_.data(),text_buffer_.length()),ec);
  704|      0|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  705|      0|                {
  706|      0|                    return;
  707|      0|                }
  708|      0|                break;
  709|      0|            }
  710|      0|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (710:13): [True: 0, False: 2.09M]
  ------------------
  711|      0|            {
  712|      0|                JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
  713|      0|                break;
  714|      0|            }
  715|     51|            case jsoncons::cbor::detail::cbor_major_type::simple:
  ------------------
  |  Branch (715:13): [True: 51, False: 2.09M]
  ------------------
  716|     51|            {
  717|     51|                switch (info)
  718|     51|                {
  719|      0|                    case 0x14:
  ------------------
  |  Branch (719:21): [True: 0, False: 51]
  ------------------
  720|      0|                        visitor.bool_value(false, semantic_tag::none, *this, ec);
  721|      0|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  722|      0|                        {
  723|      0|                            return;
  724|      0|                        }
  725|      0|                        more_ = !cursor_mode_;
  726|      0|                        source_.ignore(1);
  727|      0|                        break;
  728|     14|                    case 0x15:
  ------------------
  |  Branch (728:21): [True: 14, False: 37]
  ------------------
  729|     14|                        visitor.bool_value(true, semantic_tag::none, *this, ec);
  730|     14|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     14|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 14]
  |  |  ------------------
  ------------------
  731|      0|                        {
  732|      0|                            return;
  733|      0|                        }
  734|     14|                        more_ = !cursor_mode_;
  735|     14|                        source_.ignore(1);
  736|     14|                        break;
  737|      9|                    case 0x16:
  ------------------
  |  Branch (737:21): [True: 9, False: 42]
  ------------------
  738|      9|                        visitor.null_value(semantic_tag::none, *this, ec);
  739|      9|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      9|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 9]
  |  |  ------------------
  ------------------
  740|      0|                        {
  741|      0|                            return;
  742|      0|                        }
  743|      9|                        more_ = !cursor_mode_;
  744|      9|                        source_.ignore(1);
  745|      9|                        break;
  746|     24|                    case 0x17:
  ------------------
  |  Branch (746:21): [True: 24, False: 27]
  ------------------
  747|     24|                        visitor.null_value(semantic_tag::undefined, *this, ec);
  748|     24|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     24|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 24]
  |  |  ------------------
  ------------------
  749|      0|                        {
  750|      0|                            return;
  751|      0|                        }
  752|     24|                        more_ = !cursor_mode_;
  753|     24|                        source_.ignore(1);
  754|     24|                        break;
  755|      3|                    case 0x19: // Half-Precision Float (two-byte IEEE 754)
  ------------------
  |  Branch (755:21): [True: 3, False: 48]
  ------------------
  756|      3|                    {
  757|      3|                        uint64_t val = read_uint64(ec);
  758|      3|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  759|      0|                        {
  760|      0|                            return;
  761|      0|                        }
  762|      3|                        visitor.half_value(static_cast<uint16_t>(val), semantic_tag::none, *this, ec);
  763|      3|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  764|      0|                        {
  765|      0|                            return;
  766|      0|                        }
  767|      3|                        more_ = !cursor_mode_;
  768|      3|                        break;
  769|      3|                    }
  770|      0|                    case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (770:21): [True: 0, False: 51]
  ------------------
  771|      0|                    case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (771:21): [True: 0, False: 51]
  ------------------
  772|      0|                    {
  773|      0|                        double val = read_double(ec);
  774|      0|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  775|      0|                        {
  776|      0|                            return;
  777|      0|                        }
  778|      0|                        semantic_tag tag = semantic_tag::none;
  779|      0|                        if (other_tags_[item_tag])
  ------------------
  |  Branch (779:29): [True: 0, False: 0]
  ------------------
  780|      0|                        {
  781|      0|                            if (raw_tag_ == 1)
  ------------------
  |  Branch (781:33): [True: 0, False: 0]
  ------------------
  782|      0|                            {
  783|      0|                                tag = semantic_tag::epoch_second;
  784|      0|                            }
  785|      0|                            other_tags_[item_tag] = false;
  786|      0|                        }
  787|      0|                        visitor.double_value(val, tag, *this, ec);
  788|      0|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  789|      0|                        {
  790|      0|                            return;
  791|      0|                        }
  792|      0|                        more_ = !cursor_mode_;
  793|      0|                        break;
  794|      0|                    }
  795|      1|                    default:
  ------------------
  |  Branch (795:21): [True: 1, False: 50]
  ------------------
  796|      1|                    {
  797|      1|                        ec = cbor_errc::unknown_type;
  798|      1|                        more_ = false;
  799|      1|                        return;
  800|      0|                    }
  801|     51|                }
  802|     50|                break;
  803|     51|            }
  804|    205|            case jsoncons::cbor::detail::cbor_major_type::array:
  ------------------
  |  Branch (804:13): [True: 205, False: 2.09M]
  ------------------
  805|    205|            {
  806|    205|                if (other_tags_[item_tag])
  ------------------
  |  Branch (806:21): [True: 14, False: 191]
  ------------------
  807|     14|                {
  808|     14|                    switch (raw_tag_)
  809|     14|                    {
  810|     13|                        case 0x04:
  ------------------
  |  Branch (810:25): [True: 13, False: 1]
  ------------------
  811|     13|                            text_buffer_.clear();
  812|     13|                            read_decimal_fraction(text_buffer_, ec);
  813|     13|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     13|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 13]
  |  |  ------------------
  ------------------
  814|      0|                            {
  815|      0|                                return;
  816|      0|                            }
  817|     13|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
  818|     13|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     13|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 13]
  |  |  ------------------
  ------------------
  819|      0|                            {
  820|      0|                                return;
  821|      0|                            }
  822|     13|                            more_ = !cursor_mode_;
  823|     13|                            break;
  824|      1|                        case 0x05:
  ------------------
  |  Branch (824:25): [True: 1, False: 13]
  ------------------
  825|      1|                            text_buffer_.clear();
  826|      1|                            read_bigfloat(text_buffer_, ec);
  827|      1|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  828|      0|                            {
  829|      0|                                return;
  830|      0|                            }
  831|      1|                            visitor.string_value(text_buffer_, semantic_tag::bigfloat, *this, ec);
  832|      1|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  833|      0|                            {
  834|      0|                                return;
  835|      0|                            }
  836|      1|                            more_ = !cursor_mode_;
  837|      1|                            break;
  838|      0|                        case 40: // row-major storage
  ------------------
  |  Branch (838:25): [True: 0, False: 14]
  ------------------
  839|      0|                            order_ = mdarray_order::row_major;
  840|      0|                            read_mdarray_header(visitor, ec);
  841|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  842|      0|                            {
  843|      0|                                return;
  844|      0|                            }
  845|      0|                            break;
  846|      0|                        case 1040: // column-major storage
  ------------------
  |  Branch (846:25): [True: 0, False: 14]
  ------------------
  847|      0|                            order_ = mdarray_order::column_major;
  848|      0|                            read_mdarray_header(visitor, ec);
  849|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  850|      0|                            {
  851|      0|                                return;
  852|      0|                            }
  853|      0|                            break;
  854|      0|                        default:
  ------------------
  |  Branch (854:25): [True: 0, False: 14]
  ------------------
  855|      0|                            begin_array(visitor, info, ec);
  856|      0|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  857|      0|                            {
  858|      0|                                return;
  859|      0|                            }
  860|      0|                            break;
  861|     14|                    }
  862|     14|                    other_tags_[item_tag] = false;
  863|     14|                }
  864|    191|                else
  865|    191|                {
  866|    191|                    begin_array(visitor, info, ec);
  867|    191|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    191|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 191]
  |  |  ------------------
  ------------------
  868|      0|                    {
  869|      0|                        return;
  870|      0|                    }
  871|    191|                }
  872|    205|                break;
  873|    205|            }
  874|    205|            case jsoncons::cbor::detail::cbor_major_type::map:
  ------------------
  |  Branch (874:13): [True: 30, False: 2.09M]
  ------------------
  875|     30|            {
  876|     30|                begin_object(visitor, info, ec);
  877|     30|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     30|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 30]
  |  |  ------------------
  ------------------
  878|      0|                {
  879|      0|                    return;
  880|      0|                }
  881|     30|                break;
  882|     30|            }
  883|     30|            default:
  ------------------
  |  Branch (883:13): [True: 0, False: 2.09M]
  ------------------
  884|      0|                break;
  885|  2.09M|        }
  886|  2.09M|        other_tags_[item_tag] = false;
  887|  2.09M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_tagsERNS3_10error_codeE:
 1798|  2.09M|    {
 1799|  2.09M|        auto c = source_.peek();
 1800|  2.09M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  2.09M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 2.09M]
  |  |  ------------------
  ------------------
 1801|      1|        {
 1802|      1|            ec = cbor_errc::unexpected_eof;
 1803|      1|            more_ = false;
 1804|      1|            return;
 1805|      1|        }
 1806|  2.09M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1807|       |
 1808|  2.09M|        while (major_type == jsoncons::cbor::detail::cbor_major_type::semantic_tag)
  ------------------
  |  Branch (1808:16): [True: 796, False: 2.09M]
  ------------------
 1809|    796|        {
 1810|    796|            uint64_t val = read_uint64(ec);
 1811|    796|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    796|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 796]
  |  |  ------------------
  ------------------
 1812|      0|            {
 1813|      0|                return;
 1814|      0|            }
 1815|    796|            switch(val)
 1816|    796|            {
 1817|      4|                case 25: // stringref
  ------------------
  |  Branch (1817:17): [True: 4, False: 792]
  ------------------
 1818|      4|                    other_tags_[stringref_tag] = true;
 1819|      4|                    break;
 1820|      0|                case 256: // stringref-namespace
  ------------------
  |  Branch (1820:17): [True: 0, False: 796]
  ------------------
 1821|      0|                    other_tags_[stringref_namespace_tag] = true;
 1822|      0|                    break;
 1823|    792|                default:
  ------------------
  |  Branch (1823:17): [True: 792, False: 4]
  ------------------
 1824|    792|                    other_tags_[item_tag] = true;
 1825|    792|                    raw_tag_ = val;
 1826|    792|                    break;
 1827|    796|            }
 1828|    796|            c = source_.peek();
 1829|    796|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|    796|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 796]
  |  |  ------------------
  ------------------
 1830|      0|            {
 1831|      0|                ec = cbor_errc::unexpected_eof;
 1832|      0|                more_ = false;
 1833|      0|                return;
 1834|      0|            }
 1835|    796|            major_type = get_major_type(c.value);
 1836|    796|        }
 1837|  2.09M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE14get_major_typeEh:
 1784|  4.19M|    {
 1785|  4.19M|        static constexpr uint8_t major_type_shift = 0x05;
 1786|  4.19M|        uint8_t value = type >> major_type_shift;
 1787|  4.19M|        return static_cast<jsoncons::cbor::detail::cbor_major_type>(value);
 1788|  4.19M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE32get_additional_information_valueEh:
 1791|  4.19M|    {
 1792|  4.19M|        static constexpr uint8_t additional_information_mask = (1U << 5) - 1;
 1793|  4.19M|        uint8_t value = type & additional_information_mask;
 1794|  4.19M|        return value;
 1795|  4.19M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11read_uint64ERNS3_10error_codeE:
 1258|  2.09M|    {
 1259|  2.09M|        uint64_t val = 0;
 1260|       |
 1261|  2.09M|        uint8_t initial_b;
 1262|  2.09M|        if (source_.read(&initial_b, 1) == 0)
  ------------------
  |  Branch (1262:13): [True: 0, False: 2.09M]
  ------------------
 1263|      0|        {
 1264|      0|            ec = cbor_errc::unexpected_eof;
 1265|      0|            more_ = false;
 1266|      0|            return 0;
 1267|      0|        }
 1268|  2.09M|        uint8_t info = get_additional_information_value(initial_b);
 1269|  2.09M|        switch (info)
 1270|  2.09M|        {
 1271|  2.09M|            case JSONCONS_EXT_CBOR_0x00_0x17: // Integer 0x00..0x17 (0..23)
  ------------------
  |  |   18|  2.09M|    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: 26, False: 2.09M]
  |  |  |  Branch (18:20): [True: 20, False: 2.09M]
  |  |  |  Branch (18:30): [True: 6, False: 2.09M]
  |  |  |  Branch (18:40): [True: 23, False: 2.09M]
  |  |  |  Branch (18:50): [True: 9, False: 2.09M]
  |  |  |  Branch (18:60): [True: 1, False: 2.09M]
  |  |  |  Branch (18:70): [True: 1, False: 2.09M]
  |  |  |  Branch (18:80): [True: 8, False: 2.09M]
  |  |  |  Branch (18:90): [True: 1, False: 2.09M]
  |  |  |  Branch (18:100): [True: 1, False: 2.09M]
  |  |  |  Branch (18:110): [True: 4, False: 2.09M]
  |  |  |  Branch (18:120): [True: 0, False: 2.09M]
  |  |  |  Branch (18:130): [True: 33, False: 2.09M]
  |  |  |  Branch (18:140): [True: 0, False: 2.09M]
  |  |  |  Branch (18:150): [True: 0, False: 2.09M]
  |  |  |  Branch (18:160): [True: 11, False: 2.09M]
  |  |  |  Branch (18:170): [True: 2, False: 2.09M]
  |  |  |  Branch (18:180): [True: 1, False: 2.09M]
  |  |  |  Branch (18:190): [True: 0, False: 2.09M]
  |  |  |  Branch (18:200): [True: 0, False: 2.09M]
  |  |  |  Branch (18:210): [True: 0, False: 2.09M]
  |  |  |  Branch (18:220): [True: 5, False: 2.09M]
  |  |  ------------------
  ------------------
  |  Branch (1271:13): [True: 2.09M, False: 1.29k]
  ------------------
 1272|  2.09M|            {
 1273|  2.09M|                val = info;
 1274|  2.09M|                break;
 1275|  46.0M|            }
 1276|       |
 1277|    732|            case 0x18: // Unsigned integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1277:13): [True: 732, False: 2.09M]
  ------------------
 1278|    732|            {
 1279|    732|                uint8_t b;
 1280|    732|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1280:21): [True: 0, False: 732]
  ------------------
 1281|      0|                {
 1282|      0|                    ec = cbor_errc::unexpected_eof;
 1283|      0|                    more_ = false;
 1284|      0|                    return val;
 1285|      0|                }
 1286|    732|                val = b;
 1287|    732|                break;
 1288|    732|            }
 1289|       |
 1290|      4|            case 0x19: // Unsigned integer (two-byte uint16_t follows)
  ------------------
  |  Branch (1290:13): [True: 4, False: 2.09M]
  ------------------
 1291|      4|            {
 1292|      4|                uint8_t buf[sizeof(uint16_t)];
 1293|      4|                source_.read(buf, sizeof(uint16_t));
 1294|      4|                val = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1295|      4|                break;
 1296|    732|            }
 1297|       |
 1298|      5|            case 0x1a: // Unsigned integer (four-byte uint32_t follows)
  ------------------
  |  Branch (1298:13): [True: 5, False: 2.09M]
  ------------------
 1299|      5|            {
 1300|      5|                uint8_t buf[sizeof(uint32_t)];
 1301|      5|                source_.read(buf, sizeof(uint32_t));
 1302|      5|                val = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1303|      5|                break;
 1304|    732|            }
 1305|       |
 1306|      2|            case 0x1b: // Unsigned integer (eight-byte uint64_t follows)
  ------------------
  |  Branch (1306:13): [True: 2, False: 2.09M]
  ------------------
 1307|      2|            {
 1308|      2|                uint8_t buf[sizeof(uint64_t)];
 1309|      2|                source_.read(buf, sizeof(uint64_t));
 1310|      2|                val = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1311|      2|                break;
 1312|    732|            }
 1313|    364|            default:
  ------------------
  |  Branch (1313:13): [True: 364, False: 2.09M]
  ------------------
 1314|    364|                break;
 1315|  2.09M|        }
 1316|  2.09M|        return val;
 1317|  2.09M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26get_typed_array_endiannessEh:
 1868|    699|    {
 1869|    699|        return ((tag & detail::cbor_array_tags_e_mask) >> detail::cbor_array_tags_e_shift) == 0 ? jsoncons::endian::big : jsoncons::endian::little; 
  ------------------
  |  Branch (1869:16): [True: 3, False: 696]
  ------------------
 1870|    699|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10read_int64ERNS3_10error_codeE:
 1320|    249|    {
 1321|    249|        int64_t val = 0;
 1322|       |
 1323|    249|        auto ch = source_.peek();
 1324|    249|        if (ch.eof)
  ------------------
  |  Branch (1324:13): [True: 0, False: 249]
  ------------------
 1325|      0|        {
 1326|      0|            ec = cbor_errc::unexpected_eof;
 1327|      0|            more_ = false;
 1328|      0|            return val;
 1329|      0|        }
 1330|       |
 1331|    249|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(ch.value);
 1332|    249|        uint8_t info = get_additional_information_value(ch.value);
 1333|    249|        switch (major_type)
 1334|    249|        {
 1335|    249|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1335:13): [True: 249, False: 0]
  ------------------
 1336|    249|                source_.ignore(1);
 1337|    249|                switch (info)
  ------------------
  |  Branch (1337:25): [True: 235, False: 14]
  ------------------
 1338|    249|                {
 1339|    229|                    case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|    229|    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: 0, False: 249]
  |  |  |  Branch (18:20): [True: 20, False: 229]
  |  |  |  Branch (18:30): [True: 0, False: 249]
  |  |  |  Branch (18:40): [True: 0, False: 249]
  |  |  |  Branch (18:50): [True: 8, False: 241]
  |  |  |  Branch (18:60): [True: 0, False: 249]
  |  |  |  Branch (18:70): [True: 1, False: 248]
  |  |  |  Branch (18:80): [True: 1, False: 248]
  |  |  |  Branch (18:90): [True: 1, False: 248]
  |  |  |  Branch (18:100): [True: 0, False: 249]
  |  |  |  Branch (18:110): [True: 0, False: 249]
  |  |  |  Branch (18:120): [True: 1, False: 248]
  |  |  |  Branch (18:130): [True: 1, False: 248]
  |  |  |  Branch (18:140): [True: 3, False: 246]
  |  |  |  Branch (18:150): [True: 0, False: 249]
  |  |  |  Branch (18:160): [True: 2, False: 247]
  |  |  |  Branch (18:170): [True: 1, False: 248]
  |  |  |  Branch (18:180): [True: 172, False: 77]
  |  |  |  Branch (18:190): [True: 1, False: 248]
  |  |  |  Branch (18:200): [True: 2, False: 247]
  |  |  |  Branch (18:210): [True: 5, False: 244]
  |  |  |  Branch (18:220): [True: 1, False: 248]
  |  |  ------------------
  ------------------
  |  Branch (1339:21): [True: 9, False: 240]
  ------------------
 1340|    229|                    {
 1341|    229|                        val = static_cast<int8_t>(- 1 - info);
 1342|    229|                        break;
 1343|  1.75k|                    }
 1344|      0|                    case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1344:21): [True: 0, False: 249]
  ------------------
 1345|      0|                        {
 1346|      0|                            uint8_t b;
 1347|      0|                            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1347:33): [True: 0, False: 0]
  ------------------
 1348|      0|                            {
 1349|      0|                                ec = cbor_errc::unexpected_eof;
 1350|      0|                                more_ = false;
 1351|      0|                                return val;
 1352|      0|                            }
 1353|      0|                            val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1354|      0|                            break;
 1355|      0|                        }
 1356|       |
 1357|      3|                    case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1357:21): [True: 3, False: 246]
  ------------------
 1358|      3|                        {
 1359|      3|                            uint8_t buf[sizeof(uint16_t)];
 1360|      3|                            if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1360:33): [True: 0, False: 3]
  ------------------
 1361|      0|                            {
 1362|      0|                                ec = cbor_errc::unexpected_eof;
 1363|      0|                                more_ = false;
 1364|      0|                                return val;
 1365|      0|                            }
 1366|      3|                            auto x = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1367|      3|                            val = static_cast<int64_t>(-1)- x;
 1368|      3|                            break;
 1369|      3|                        }
 1370|       |
 1371|      0|                    case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1371:21): [True: 0, False: 249]
  ------------------
 1372|      0|                        {
 1373|      0|                            uint8_t buf[sizeof(uint32_t)];
 1374|      0|                            if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1374:33): [True: 0, False: 0]
  ------------------
 1375|      0|                            {
 1376|      0|                                ec = cbor_errc::unexpected_eof;
 1377|      0|                                more_ = false;
 1378|      0|                                return val;
 1379|      0|                            }
 1380|      0|                            auto x = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1381|      0|                            val = static_cast<int64_t>(-1)- x;
 1382|      0|                            break;
 1383|      0|                        }
 1384|       |
 1385|      3|                    case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1385:21): [True: 3, False: 246]
  ------------------
 1386|      3|                        {
 1387|      3|                            uint8_t buf[sizeof(uint64_t)];
 1388|      3|                            if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1388:33): [True: 0, False: 3]
  ------------------
 1389|      0|                            {
 1390|      0|                                ec = cbor_errc::unexpected_eof;
 1391|      0|                                more_ = false;
 1392|      0|                                return val;
 1393|      0|                            }
 1394|      3|                            auto x = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1395|      3|                            val = static_cast<int64_t>(-1)- static_cast<int64_t>(x);
 1396|      3|                            break;
 1397|      3|                        }
 1398|    249|                }
 1399|    249|                break;
 1400|       |
 1401|    249|                case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1401:17): [True: 0, False: 249]
  ------------------
 1402|      0|                {
 1403|      0|                    uint64_t x = read_uint64(ec);
 1404|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1405|      0|                    {
 1406|      0|                        return 0;
 1407|      0|                    }
 1408|      0|                    if (x <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1408:25): [True: 0, False: 0]
  ------------------
 1409|      0|                    {
 1410|      0|                        val = x;
 1411|      0|                    }
 1412|      0|                    else
 1413|      0|                    {
 1414|       |                        // error;
 1415|      0|                    }
 1416|       |                    
 1417|      0|                    break;
 1418|      0|                }
 1419|      0|                break;
 1420|      0|            default:
  ------------------
  |  Branch (1420:13): [True: 0, False: 249]
  ------------------
 1421|      0|                break;
 1422|    249|        }
 1423|       |
 1424|    249|        return val;
 1425|    249|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceC2EPS8_:
  182|  1.11k|            : source(source)
  183|  1.11k|        {
  184|  1.11k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_sourceEEEvT_RNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
 1882|  1.11k|    {
 1883|  1.11k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (1883:13): [True: 725, False: 391]
  ------------------
 1884|    725|        {
 1885|    725|            switch (raw_tag_)
 1886|    725|            {
 1887|      0|                case 0x2:
  ------------------
  |  Branch (1887:17): [True: 0, False: 725]
  ------------------
 1888|      0|                {
 1889|      0|                    bytes_buffer_.clear();
 1890|      0|                    read(bytes_buffer_,ec);
 1891|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1892|      0|                    {
 1893|      0|                        more_ = false;
 1894|      0|                        return;
 1895|      0|                    }
 1896|      0|                    bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1897|      0|                    text_buffer_.clear();
 1898|      0|                    n.write_string(text_buffer_);
 1899|      0|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 1900|      0|                    more_ = !cursor_mode_;
 1901|      0|                    break;
 1902|      0|                }
 1903|      0|                case 0x3:
  ------------------
  |  Branch (1903:17): [True: 0, False: 725]
  ------------------
 1904|      0|                {
 1905|      0|                    bytes_buffer_.clear();
 1906|      0|                    read(bytes_buffer_,ec);
 1907|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1908|      0|                    {
 1909|      0|                        more_ = false;
 1910|      0|                        return;
 1911|      0|                    }
 1912|      0|                    bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1913|      0|                    n = -1 - n;
 1914|      0|                    text_buffer_.clear();
 1915|      0|                    n.write_string(text_buffer_);
 1916|      0|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 1917|      0|                    more_ = !cursor_mode_;
 1918|      0|                    break;
 1919|      0|                }
 1920|      0|                case 0x15:
  ------------------
  |  Branch (1920:17): [True: 0, False: 725]
  ------------------
 1921|      0|                {
 1922|      0|                    read(bytes_buffer_,ec);
 1923|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1924|      0|                    {
 1925|      0|                        more_ = false;
 1926|      0|                        return;
 1927|      0|                    }
 1928|      0|                    visitor.byte_string_value(bytes_buffer_, semantic_tag::base64url, *this, ec);
 1929|      0|                    more_ = !cursor_mode_;
 1930|      0|                    break;
 1931|      0|                }
 1932|      0|                case 0x16:
  ------------------
  |  Branch (1932:17): [True: 0, False: 725]
  ------------------
 1933|      0|                {
 1934|      0|                    read(bytes_buffer_,ec);
 1935|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1936|      0|                    {
 1937|      0|                        more_ = false;
 1938|      0|                        return;
 1939|      0|                    }
 1940|      0|                    visitor.byte_string_value(bytes_buffer_, semantic_tag::base64, *this, ec);
 1941|      0|                    more_ = !cursor_mode_;
 1942|      0|                    break;
 1943|      0|                }
 1944|      0|                case 0x17:
  ------------------
  |  Branch (1944:17): [True: 0, False: 725]
  ------------------
 1945|      0|                {
 1946|      0|                    read(bytes_buffer_,ec);
 1947|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1948|      0|                    {
 1949|      0|                        more_ = false;
 1950|      0|                        return;
 1951|      0|                    }
 1952|      0|                    visitor.byte_string_value(bytes_buffer_, semantic_tag::base16, *this, ec);
 1953|      0|                    more_ = !cursor_mode_;
 1954|      0|                    break;
 1955|      0|                }
 1956|      4|                case 0x40:
  ------------------
  |  Branch (1956:17): [True: 4, False: 721]
  ------------------
 1957|      4|                {
 1958|      4|                    array_tag_ = typed_array_tags::uint8;
 1959|      4|                    byte_string_type array_buffer(alloc_);
 1960|      4|                    read(array_buffer, ec);
 1961|      4|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      4|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 4]
  |  |  ------------------
  ------------------
 1962|      0|                    {
 1963|      0|                        more_ = false;
 1964|      0|                        return;
 1965|      0|                    }
 1966|      4|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 1967|      4|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (1967:25): [True: 4, False: 0]
  |  Branch (1967:42): [True: 0, False: 4]
  ------------------
 1968|      0|                    {
 1969|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (1969:29): [True: 0, False: 0]
  ------------------
 1970|      0|                        {
 1971|      0|                            ec = cbor_errc::bad_extents;
 1972|      0|                            more_ = false;
 1973|      0|                            return;
 1974|      0|                        }
 1975|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 1976|      0|                            typed_array_tags::uint8, extents_, order_);
 1977|      0|                    }
 1978|      4|                    else
 1979|      4|                    {
 1980|      4|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 1981|      4|                            typed_array_tags::uint8);
 1982|      4|                    }
 1983|      4|                    typed_array_iter_->next(visitor, *this, ec);
 1984|      4|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 1985|      4|                    more_ = !cursor_mode_;
 1986|      4|                    break;
 1987|      4|                }
 1988|      0|                case 0x44:
  ------------------
  |  Branch (1988:17): [True: 0, False: 725]
  ------------------
 1989|      0|                {
 1990|      0|                    array_tag_ = typed_array_tags::uint8;
 1991|      0|                    typed_array_tag_ = semantic_tag::clamped;
 1992|      0|                    byte_string_type array_buffer(alloc_);
 1993|      0|                    read(array_buffer, ec);
 1994|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1995|      0|                    {
 1996|      0|                        more_ = false;
 1997|      0|                        return;
 1998|      0|                    }
 1999|      0|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2000|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2000:25): [True: 0, False: 0]
  |  Branch (2000:42): [True: 0, False: 0]
  ------------------
 2001|      0|                    {
 2002|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2002:29): [True: 0, False: 0]
  ------------------
 2003|      0|                        {
 2004|      0|                            ec = cbor_errc::bad_extents;
 2005|      0|                            more_ = false;
 2006|      0|                            return;
 2007|      0|                        }
 2008|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2009|      0|                            typed_array_tags::uint8, extents_, order_);
 2010|      0|                    }
 2011|      0|                    else
 2012|      0|                    {
 2013|      0|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2014|      0|                            typed_array_tags::uint8, semantic_tag::clamped);
 2015|      0|                    }
 2016|      0|                    typed_array_iter_->next(visitor, *this, ec);
 2017|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2018|      0|                    more_ = !cursor_mode_;
 2019|      0|                    break;
 2020|      0|                }
 2021|      1|                case 0x41:
  ------------------
  |  Branch (2021:17): [True: 1, False: 724]
  ------------------
 2022|      1|                case 0x45:
  ------------------
  |  Branch (2022:17): [True: 0, False: 725]
  ------------------
 2023|      1|                {
 2024|      1|                    array_tag_ = typed_array_tags::uint16;
 2025|      1|                    byte_string_type array_buffer(alloc_);
 2026|      1|                    read(array_buffer, ec);
 2027|      1|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 2028|      0|                    {
 2029|      0|                        more_ = false;
 2030|      0|                        return;
 2031|      0|                    }
 2032|      1|                    const uint8_t tag = (uint8_t)raw_tag_;
 2033|      1|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2034|      1|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2035|      1|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2035:25): [True: 1, False: 0]
  ------------------
 2036|      1|                    {
 2037|      1|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2037:49): [True: 0, False: 1]
  ------------------
 2038|      0|                        {
 2039|      0|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2040|      0|                        }
 2041|      1|                    }
 2042|      1|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2042:25): [True: 1, False: 0]
  |  Branch (2042:42): [True: 0, False: 1]
  ------------------
 2043|      0|                    {
 2044|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2044:29): [True: 0, False: 0]
  ------------------
 2045|      0|                        {
 2046|      0|                            ec = cbor_errc::bad_extents;
 2047|      0|                            more_ = false;
 2048|      0|                            return;
 2049|      0|                        }
 2050|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2051|      0|                            typed_array_tags::uint16, extents_, order_);
 2052|      0|                    }
 2053|      1|                    else
 2054|      1|                    {
 2055|      1|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2056|      1|                            typed_array_tags::uint16);
 2057|      1|                    }
 2058|      1|                    typed_array_iter_->next(visitor, *this, ec);
 2059|      1|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2060|      1|                    more_ = !cursor_mode_;
 2061|      1|                    break;
 2062|      1|                }
 2063|      0|                case 0x42:
  ------------------
  |  Branch (2063:17): [True: 0, False: 725]
  ------------------
 2064|      0|                case 0x46:
  ------------------
  |  Branch (2064:17): [True: 0, False: 725]
  ------------------
 2065|      0|                {
 2066|      0|                    array_tag_ = typed_array_tags::uint32;
 2067|      0|                    byte_string_type array_buffer(alloc_);
 2068|      0|                    read(array_buffer, ec);
 2069|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2070|      0|                    {
 2071|      0|                        more_ = false;
 2072|      0|                        return;
 2073|      0|                    }
 2074|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 2075|      0|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2076|      0|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2077|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2077:25): [True: 0, False: 0]
  ------------------
 2078|      0|                    {
 2079|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2079:49): [True: 0, False: 0]
  ------------------
 2080|      0|                        {
 2081|      0|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2082|      0|                        }
 2083|      0|                    }
 2084|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2084:25): [True: 0, False: 0]
  |  Branch (2084:42): [True: 0, False: 0]
  ------------------
 2085|      0|                    {
 2086|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2086:29): [True: 0, False: 0]
  ------------------
 2087|      0|                        {
 2088|      0|                            ec = cbor_errc::bad_extents;
 2089|      0|                            more_ = false;
 2090|      0|                            return;
 2091|      0|                        }
 2092|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2093|      0|                            typed_array_tags::uint32, extents_, order_);
 2094|      0|                    }
 2095|      0|                    else
 2096|      0|                    {
 2097|      0|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2098|      0|                            typed_array_tags::uint32);
 2099|      0|                    }
 2100|      0|                    typed_array_iter_->next(visitor, *this, ec);
 2101|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2102|      0|                    more_ = !cursor_mode_;
 2103|      0|                    break;
 2104|      0|                }
 2105|      2|                case 0x43:
  ------------------
  |  Branch (2105:17): [True: 2, False: 723]
  ------------------
 2106|      3|                case 0x47:
  ------------------
  |  Branch (2106:17): [True: 1, False: 724]
  ------------------
 2107|      3|                {
 2108|      3|                    array_tag_ = typed_array_tags::uint64;
 2109|      3|                    byte_string_type array_buffer(alloc_);
 2110|      3|                    read(array_buffer, ec);
 2111|      3|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
 2112|      0|                    {
 2113|      0|                        more_ = false;
 2114|      0|                        return;
 2115|      0|                    }
 2116|      3|                    const uint8_t tag = (uint8_t)raw_tag_;
 2117|      3|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2118|      3|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2119|      3|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2119:25): [True: 2, False: 1]
  ------------------
 2120|      2|                    {
 2121|      2|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2121:49): [True: 0, False: 2]
  ------------------
 2122|      0|                        {
 2123|      0|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2124|      0|                        }
 2125|      2|                    }
 2126|      3|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2126:25): [True: 3, False: 0]
  |  Branch (2126:42): [True: 0, False: 3]
  ------------------
 2127|      0|                    {
 2128|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2128:29): [True: 0, False: 0]
  ------------------
 2129|      0|                        {
 2130|      0|                            ec = cbor_errc::bad_extents;
 2131|      0|                            more_ = false;
 2132|      0|                            return;
 2133|      0|                        }
 2134|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2135|      0|                            typed_array_tags::uint64, extents_, order_);
 2136|      0|                    }
 2137|      3|                    else
 2138|      3|                    {
 2139|      3|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2140|      3|                            typed_array_tags::uint64);
 2141|      3|                    }
 2142|      3|                    typed_array_iter_->next(visitor, *this, ec);
 2143|      3|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2144|      3|                    more_ = !cursor_mode_;
 2145|      3|                    break;
 2146|      3|                }
 2147|      0|                case 0x48:
  ------------------
  |  Branch (2147:17): [True: 0, False: 725]
  ------------------
 2148|      0|                {
 2149|      0|                    array_tag_ = typed_array_tags::int8;
 2150|      0|                    byte_string_type array_buffer(alloc_);
 2151|      0|                    read(array_buffer, ec);
 2152|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2153|      0|                    {
 2154|      0|                        more_ = false;
 2155|      0|                        return;
 2156|      0|                    }
 2157|      0|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2158|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2158:25): [True: 0, False: 0]
  |  Branch (2158:42): [True: 0, False: 0]
  ------------------
 2159|      0|                    {
 2160|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2160:29): [True: 0, False: 0]
  ------------------
 2161|      0|                        {
 2162|      0|                            ec = cbor_errc::bad_extents;
 2163|      0|                            more_ = false;
 2164|      0|                            return;
 2165|      0|                        }
 2166|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2167|      0|                            typed_array_tags::int8, extents_, order_);
 2168|      0|                    }
 2169|      0|                    else
 2170|      0|                    {
 2171|      0|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2172|      0|                            typed_array_tags::int8);
 2173|      0|                    }
 2174|      0|                    typed_array_iter_->next(visitor, *this, ec);
 2175|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2176|      0|                    more_ = !cursor_mode_;
 2177|      0|                    break;
 2178|      0|                }
 2179|      0|                case 0x49:
  ------------------
  |  Branch (2179:17): [True: 0, False: 725]
  ------------------
 2180|    692|                case 0x4d:
  ------------------
  |  Branch (2180:17): [True: 692, False: 33]
  ------------------
 2181|    692|                {
 2182|    692|                    array_tag_ = typed_array_tags::int16;
 2183|    692|                    byte_string_type array_buffer(alloc_);
 2184|    692|                    read(array_buffer, ec);
 2185|    692|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    692|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 692]
  |  |  ------------------
  ------------------
 2186|      0|                    {
 2187|      0|                        more_ = false;
 2188|      0|                        return;
 2189|      0|                    }
 2190|    692|                    const uint8_t tag = (uint8_t)raw_tag_;
 2191|    692|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2192|    692|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2193|    692|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2193:25): [True: 0, False: 692]
  ------------------
 2194|      0|                    {
 2195|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2195:49): [True: 0, False: 0]
  ------------------
 2196|      0|                        {
 2197|      0|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2198|      0|                        }
 2199|      0|                    }
 2200|    692|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2200:25): [True: 692, False: 0]
  |  Branch (2200:42): [True: 0, False: 692]
  ------------------
 2201|      0|                    {
 2202|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2202:29): [True: 0, False: 0]
  ------------------
 2203|      0|                        {
 2204|      0|                            ec = cbor_errc::bad_extents;
 2205|      0|                            more_ = false;
 2206|      0|                            return;
 2207|      0|                        }
 2208|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2209|      0|                            typed_array_tags::int16, extents_, order_);
 2210|      0|                    }
 2211|    692|                    else
 2212|    692|                    {
 2213|    692|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2214|    692|                            typed_array_tags::int16);
 2215|    692|                    }
 2216|    692|                    typed_array_iter_->next(visitor, *this, ec);
 2217|    692|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2218|    692|                    more_ = !cursor_mode_;
 2219|    692|                    break;
 2220|    692|                }
 2221|      0|                case 0x4a:
  ------------------
  |  Branch (2221:17): [True: 0, False: 725]
  ------------------
 2222|      0|                case 0x4e:
  ------------------
  |  Branch (2222:17): [True: 0, False: 725]
  ------------------
 2223|      0|                {
 2224|      0|                    array_tag_ = typed_array_tags::int32;
 2225|      0|                    byte_string_type array_buffer(alloc_);
 2226|      0|                    read(array_buffer, ec);
 2227|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2228|      0|                    {
 2229|      0|                        more_ = false;
 2230|      0|                        return;
 2231|      0|                    }
 2232|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 2233|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2234|      0|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2235|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2235:25): [True: 0, False: 0]
  ------------------
 2236|      0|                    {
 2237|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2237:49): [True: 0, False: 0]
  ------------------
 2238|      0|                        {
 2239|      0|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2240|      0|                        }
 2241|      0|                    }
 2242|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2242:25): [True: 0, False: 0]
  |  Branch (2242:42): [True: 0, False: 0]
  ------------------
 2243|      0|                    {
 2244|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2244:29): [True: 0, False: 0]
  ------------------
 2245|      0|                        {
 2246|      0|                            ec = cbor_errc::bad_extents;
 2247|      0|                            more_ = false;
 2248|      0|                            return;
 2249|      0|                        }
 2250|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2251|      0|                            typed_array_tags::int32, extents_, order_);
 2252|      0|                    }
 2253|      0|                    else
 2254|      0|                    {
 2255|      0|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2256|      0|                            typed_array_tags::int32);
 2257|      0|                    }
 2258|      0|                    typed_array_iter_->next(visitor, *this, ec);
 2259|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2260|      0|                    more_ = !cursor_mode_;
 2261|      0|                    break;
 2262|      0|                }
 2263|      0|                case 0x4b:
  ------------------
  |  Branch (2263:17): [True: 0, False: 725]
  ------------------
 2264|      1|                case 0x4f:
  ------------------
  |  Branch (2264:17): [True: 1, False: 724]
  ------------------
 2265|      1|                {
 2266|      1|                    array_tag_ = typed_array_tags::int64;
 2267|      1|                    byte_string_type array_buffer(alloc_);
 2268|      1|                    read(array_buffer, ec);
 2269|      1|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 2270|      0|                    {
 2271|      0|                        more_ = false;
 2272|      0|                        return;
 2273|      0|                    }
 2274|      1|                    const uint8_t tag = (uint8_t)raw_tag_;
 2275|      1|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2276|      1|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2277|      1|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2277:25): [True: 0, False: 1]
  ------------------
 2278|      0|                    {
 2279|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2279:49): [True: 0, False: 0]
  ------------------
 2280|      0|                        {
 2281|      0|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2282|      0|                        }
 2283|      0|                    }
 2284|      1|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2284:25): [True: 1, False: 0]
  |  Branch (2284:42): [True: 0, False: 1]
  ------------------
 2285|      0|                    {
 2286|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2286:29): [True: 0, False: 0]
  ------------------
 2287|      0|                        {
 2288|      0|                            ec = cbor_errc::bad_extents;
 2289|      0|                            more_ = false;
 2290|      0|                            return;
 2291|      0|                        }
 2292|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2293|      0|                            typed_array_tags::int64, extents_, order_);
 2294|      0|                    }
 2295|      1|                    else
 2296|      1|                    {
 2297|      1|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), typed_array_tags::int64);
 2298|      1|                    }
 2299|      1|                    typed_array_iter_->next(visitor, *this, ec);
 2300|      1|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2301|      1|                    more_ = !cursor_mode_;
 2302|      1|                    break;
 2303|      1|                }
 2304|      0|                case 0x50:
  ------------------
  |  Branch (2304:17): [True: 0, False: 725]
  ------------------
 2305|      0|                case 0x54:
  ------------------
  |  Branch (2305:17): [True: 0, False: 725]
  ------------------
 2306|      0|                {
 2307|      0|                    array_tag_ = typed_array_tags::half_float;
 2308|      0|                    byte_string_type array_buffer(alloc_);
 2309|      0|                    read(array_buffer, ec);
 2310|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2311|      0|                    {
 2312|      0|                        more_ = false;
 2313|      0|                        return;
 2314|      0|                    }
 2315|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 2316|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2317|      0|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2318|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2318:25): [True: 0, False: 0]
  ------------------
 2319|      0|                    {
 2320|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2320:49): [True: 0, False: 0]
  ------------------
 2321|      0|                        {
 2322|      0|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2323|      0|                        }
 2324|      0|                    }
 2325|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2325:25): [True: 0, False: 0]
  |  Branch (2325:42): [True: 0, False: 0]
  ------------------
 2326|      0|                    {
 2327|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2327:29): [True: 0, False: 0]
  ------------------
 2328|      0|                        {
 2329|      0|                            ec = cbor_errc::bad_extents;
 2330|      0|                            more_ = false;
 2331|      0|                            return;
 2332|      0|                        }
 2333|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2334|      0|                            typed_array_tags::half_float, extents_, order_);
 2335|      0|                    }
 2336|      0|                    else
 2337|      0|                    {
 2338|      0|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2339|      0|                            typed_array_tags::half_float);
 2340|      0|                    }
 2341|      0|                    typed_array_iter_->next(visitor, *this, ec);
 2342|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2343|      0|                    more_ = !cursor_mode_;
 2344|      0|                    break;
 2345|      0|                }
 2346|      0|                case 0x51:
  ------------------
  |  Branch (2346:17): [True: 0, False: 725]
  ------------------
 2347|      2|                case 0x55:
  ------------------
  |  Branch (2347:17): [True: 2, False: 723]
  ------------------
 2348|      2|                {
 2349|      2|                    array_tag_ = typed_array_tags::float32;
 2350|      2|                    byte_string_type array_buffer(alloc_);
 2351|      2|                    read(array_buffer, ec);
 2352|      2|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2353|      0|                    {
 2354|      0|                        more_ = false;
 2355|      0|                        return;
 2356|      0|                    }
 2357|      2|                    const uint8_t tag = (uint8_t)raw_tag_;
 2358|      2|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2359|      2|                    auto ta = typed_array_cast<float>(array_buffer);
 2360|      2|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2360:25): [True: 0, False: 2]
  ------------------
 2361|      0|                    {
 2362|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2362:49): [True: 0, False: 0]
  ------------------
 2363|      0|                        {
 2364|      0|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2365|      0|                        }
 2366|      0|                    }
 2367|      2|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2367:25): [True: 2, False: 0]
  |  Branch (2367:42): [True: 0, False: 2]
  ------------------
 2368|      0|                    {
 2369|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2369:29): [True: 0, False: 0]
  ------------------
 2370|      0|                        {
 2371|      0|                            ec = cbor_errc::bad_extents;
 2372|      0|                            more_ = false;
 2373|      0|                            return;
 2374|      0|                        }
 2375|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2376|      0|                            typed_array_tags::float32, extents_, order_);
 2377|      0|                    }
 2378|      2|                    else
 2379|      2|                    {
 2380|      2|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2381|      2|                            typed_array_tags::float32);
 2382|      2|                    }
 2383|      2|                    typed_array_iter_->next(visitor, *this, ec);
 2384|      2|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2385|      2|                    more_ = !cursor_mode_;
 2386|      2|                    break;
 2387|      2|                }
 2388|      0|                case 0x52:
  ------------------
  |  Branch (2388:17): [True: 0, False: 725]
  ------------------
 2389|      0|                case 0x56:
  ------------------
  |  Branch (2389:17): [True: 0, False: 725]
  ------------------
 2390|      0|                {
 2391|      0|                    array_tag_ = typed_array_tags::float64;
 2392|      0|                    byte_string_type array_buffer(alloc_);
 2393|      0|                    read(array_buffer, ec);
 2394|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2395|      0|                    {
 2396|      0|                        more_ = false;
 2397|      0|                        return;
 2398|      0|                    }
 2399|      0|                    const uint8_t tag = (uint8_t)raw_tag_;
 2400|      0|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2401|      0|                    auto ta = typed_array_cast<double>(array_buffer);
 2402|      0|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2402:25): [True: 0, False: 0]
  ------------------
 2403|      0|                    {
 2404|      0|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2404:49): [True: 0, False: 0]
  ------------------
 2405|      0|                        {
 2406|      0|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2407|      0|                        }
 2408|      0|                    }
 2409|      0|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2409:25): [True: 0, False: 0]
  |  Branch (2409:42): [True: 0, False: 0]
  ------------------
 2410|      0|                    {
 2411|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2411:29): [True: 0, False: 0]
  ------------------
 2412|      0|                        {
 2413|      0|                            ec = cbor_errc::bad_extents;
 2414|      0|                            more_ = false;
 2415|      0|                            return;
 2416|      0|                        }
 2417|      0|                        typed_array_iter_ = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2418|      0|                            typed_array_tags::float64, extents_, order_);
 2419|      0|                    }
 2420|      0|                    else
 2421|      0|                    {
 2422|      0|                        typed_array_iter_ = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2423|      0|                            typed_array_tags::float64);
 2424|      0|                    }
 2425|      0|                    typed_array_iter_->next(visitor, *this, ec);
 2426|      0|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2427|      0|                    more_ = !cursor_mode_;
 2428|      0|                    break;
 2429|      0|                }
 2430|     22|                default:
  ------------------
  |  Branch (2430:17): [True: 22, False: 703]
  ------------------
 2431|     22|                {
 2432|     22|                    read(bytes_buffer_,ec);
 2433|     22|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     22|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 22]
  |  |  ------------------
  ------------------
 2434|      0|                    {
 2435|      0|                        more_ = false;
 2436|      0|                        return;
 2437|      0|                    }
 2438|     22|                    visitor.byte_string_value(bytes_buffer_, raw_tag_, *this, ec);
 2439|     22|                    more_ = !cursor_mode_;
 2440|     22|                    break;
 2441|     22|                }
 2442|    725|            }
 2443|    725|            other_tags_[item_tag] = false;
 2444|    725|        }
 2445|    391|        else
 2446|    391|        {
 2447|    391|            read(bytes_buffer_,ec);
 2448|    391|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    391|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 390]
  |  |  ------------------
  ------------------
 2449|      1|            {
 2450|      1|                return;
 2451|      1|            }
 2452|    390|            visitor.byte_string_value(bytes_buffer_, semantic_tag::none, *this, ec);
 2453|    390|            more_ = !cursor_mode_;
 2454|    390|        }
 2455|  1.11k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  187|  1.11k|        {
  188|  1.11k|            source->read_byte_string(cont,ec);
  189|  1.11k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringERNS3_6vectorIhS5_EERNS3_10error_codeE:
 1136|  1.11k|    {
 1137|  1.11k|        v.clear();
 1138|  1.11k|        auto c = source_.peek();
 1139|  1.11k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  1.11k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.11k]
  |  |  ------------------
  ------------------
 1140|      0|        {
 1141|      0|            ec = cbor_errc::unexpected_eof;
 1142|      0|            return;
 1143|      0|        }
 1144|  1.11k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1145|  1.11k|        uint8_t info = get_additional_information_value(c.value);
 1146|       |
 1147|  1.11k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   45|  1.11k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 1.11k]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1148|       |
 1149|  1.11k|        switch(info)
 1150|  1.11k|        {
 1151|      0|            case jsoncons::cbor::detail::additional_info::indefinite_length:
  ------------------
  |  Branch (1151:13): [True: 0, False: 1.11k]
  ------------------
 1152|      0|            {
 1153|      0|                auto func = [&v](Source& source, std::size_t length, std::error_code& ec) -> bool
 1154|      0|                {
 1155|      0|                    if (source_reader<Source>::read(source, v, length) != length)
 1156|      0|                    {
 1157|      0|                        ec = cbor_errc::unexpected_eof;
 1158|      0|                        return false;
 1159|      0|                    }
 1160|      0|                    return true;
 1161|      0|                };
 1162|      0|                iterate_string_chunks(func, major_type, ec);
 1163|      0|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1164|      0|                {
 1165|      0|                    return;
 1166|      0|                }
 1167|      0|                break;
 1168|      0|            }
 1169|  1.11k|            default:
  ------------------
  |  Branch (1169:13): [True: 1.11k, False: 0]
  ------------------
 1170|  1.11k|            {
 1171|  1.11k|                std::size_t length = read_size(ec);
 1172|  1.11k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.11k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.11k]
  |  |  ------------------
  ------------------
 1173|      0|                {
 1174|      0|                    return;
 1175|      0|                }
 1176|  1.11k|                if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1176:21): [True: 1, False: 1.11k]
  ------------------
 1177|      1|                {
 1178|      1|                    ec = cbor_errc::unexpected_eof;
 1179|      1|                    return;
 1180|      1|                }
 1181|  1.11k|                if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1181:21): [True: 0, False: 1.11k]
  ------------------
 1182|      0|                    v.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1182:21): [True: 0, False: 0]
  ------------------
 1183|      0|                {
 1184|      0|                    stringref_map_stack_.back().emplace_back(mapped_string(v, alloc_));
 1185|      0|                }
 1186|  1.11k|                break;
 1187|  1.11k|            }
 1188|       |
 1189|  1.11k|        }
 1190|  1.11k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_sizeERNS3_10error_codeE:
 1120|  1.34k|    {
 1121|  1.34k|        uint64_t u = read_uint64(ec);
 1122|  1.34k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.34k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.34k]
  |  |  ------------------
  ------------------
 1123|      0|        {
 1124|      0|            return 0;
 1125|      0|        }
 1126|  1.34k|        std::size_t len = static_cast<std::size_t>(u);
 1127|  1.34k|        if (len != u)
  ------------------
  |  Branch (1127:13): [True: 0, False: 1.34k]
  ------------------
 1128|      0|        {
 1129|      0|            ec = cbor_errc::number_too_large;
 1130|      0|            more_ = false;
 1131|      0|        }
 1132|  1.34k|        return len;
 1133|  1.34k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_decimal_fractionERNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 1474|     13|    {
 1475|     13|        std::size_t size = read_size(ec);
 1476|     13|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     13|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 13]
  |  |  ------------------
  ------------------
 1477|      0|        {
 1478|      0|            return;
 1479|      0|        }
 1480|     13|        if (size != 2)
  ------------------
  |  Branch (1480:13): [True: 0, False: 13]
  ------------------
 1481|      0|        {
 1482|      0|            ec = cbor_errc::invalid_decimal_fraction;
 1483|      0|            more_ = false;
 1484|      0|            return;
 1485|      0|        }
 1486|       |
 1487|     13|        auto c = source_.peek();
 1488|     13|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|     13|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 13]
  |  |  ------------------
  ------------------
 1489|      0|        {
 1490|      0|            ec = cbor_errc::unexpected_eof;
 1491|      0|            more_ = false;
 1492|      0|            return;
 1493|      0|        }
 1494|     13|        int64_t exponent = 0;
 1495|     13|        switch (get_major_type(c.value))
 1496|     13|        {
 1497|      8|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1497:13): [True: 8, False: 5]
  ------------------
 1498|      8|            {
 1499|      8|                exponent = read_uint64(ec);
 1500|      8|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      8|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 8]
  |  |  ------------------
  ------------------
 1501|      0|                {
 1502|      0|                    return;
 1503|      0|                }
 1504|      8|                break;
 1505|      8|            }
 1506|      8|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1506:13): [True: 5, False: 8]
  ------------------
 1507|      5|            {
 1508|      5|                exponent = read_int64(ec);
 1509|      5|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      5|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5]
  |  |  ------------------
  ------------------
 1510|      0|                {
 1511|      0|                    return;
 1512|      0|                }
 1513|      5|                break;
 1514|      5|            }
 1515|      5|            default:
  ------------------
  |  Branch (1515:13): [True: 0, False: 13]
  ------------------
 1516|      0|            {
 1517|      0|                ec = cbor_errc::invalid_decimal_fraction;
 1518|      0|                more_ = false;
 1519|      0|                return;
 1520|      5|            }
 1521|     13|        }
 1522|       |
 1523|     13|        string_type str(alloc_);
 1524|       |
 1525|     13|        c = source_.peek();
 1526|     13|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|     13|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 13]
  |  |  ------------------
  ------------------
 1527|      0|        {
 1528|      0|            ec = cbor_errc::unexpected_eof;
 1529|      0|            more_ = false;
 1530|      0|            return;
 1531|      0|        }
 1532|       |
 1533|     13|        switch (get_major_type(c.value))
 1534|     13|        {
 1535|      5|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1535:13): [True: 5, False: 8]
  ------------------
 1536|      5|            {
 1537|      5|                uint64_t val = read_uint64(ec);
 1538|      5|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      5|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5]
  |  |  ------------------
  ------------------
 1539|      0|                {
 1540|      0|                    return;
 1541|      0|                }
 1542|      5|                jsoncons::from_integer(val, str);
 1543|      5|                break;
 1544|      5|            }
 1545|      8|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1545:13): [True: 8, False: 5]
  ------------------
 1546|      8|            {
 1547|      8|                int64_t val = read_int64(ec);
 1548|      8|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      8|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 8]
  |  |  ------------------
  ------------------
 1549|      0|                {
 1550|      0|                    return;
 1551|      0|                }
 1552|      8|                jsoncons::from_integer(val, str);
 1553|      8|                break;
 1554|      8|            }
 1555|      0|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1555:13): [True: 0, False: 13]
  ------------------
 1556|      0|            {
 1557|      0|                uint8_t b;
 1558|      0|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1558:21): [True: 0, False: 0]
  ------------------
 1559|      0|                {
 1560|      0|                    ec = cbor_errc::unexpected_eof;
 1561|      0|                    more_ = false;
 1562|      0|                    return;
 1563|      0|                }
 1564|      0|                uint8_t tag = get_additional_information_value(b);
 1565|      0|                c = source_.peek();
 1566|      0|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1567|      0|                {
 1568|      0|                    ec = cbor_errc::unexpected_eof;
 1569|      0|                    more_ = false;
 1570|      0|                    return;
 1571|      0|                }
 1572|       |
 1573|      0|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1573:21): [True: 0, False: 0]
  ------------------
 1574|      0|                {
 1575|      0|                    bytes_buffer_.clear();
 1576|      0|                    read_byte_string(bytes_buffer_, ec);
 1577|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1578|      0|                    {
 1579|      0|                        more_ = false;
 1580|      0|                        return;
 1581|      0|                    }
 1582|      0|                    if (tag == 2)
  ------------------
  |  Branch (1582:25): [True: 0, False: 0]
  ------------------
 1583|      0|                    {
 1584|      0|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1585|      0|                        n.write_string(str);
 1586|      0|                    }
 1587|      0|                    else if (tag == 3)
  ------------------
  |  Branch (1587:30): [True: 0, False: 0]
  ------------------
 1588|      0|                    {
 1589|      0|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1590|      0|                        n = -1 - n;
 1591|      0|                        n.write_string(str);
 1592|      0|                    }
 1593|      0|                }
 1594|      0|                break;
 1595|      0|            }
 1596|      0|            default:
  ------------------
  |  Branch (1596:13): [True: 0, False: 13]
  ------------------
 1597|      0|            {
 1598|      0|                ec = cbor_errc::invalid_decimal_fraction;
 1599|      0|                more_ = false;
 1600|      0|                return;
 1601|      0|            }
 1602|     13|        }
 1603|       |
 1604|     13|        if (str.size() >= static_cast<std::size_t>((std::numeric_limits<int32_t>::max)()) || 
  ------------------
  |  Branch (1604:13): [True: 0, False: 13]
  ------------------
 1605|     13|            exponent >= (std::numeric_limits<int32_t>::max)() || 
  ------------------
  |  Branch (1605:13): [True: 0, False: 13]
  ------------------
 1606|     13|            exponent <= (std::numeric_limits<int32_t>::min)())
  ------------------
  |  Branch (1606:13): [True: 0, False: 13]
  ------------------
 1607|      0|        {
 1608|      0|            ec = cbor_errc::invalid_decimal_fraction;
 1609|      0|            more_ = false;
 1610|      0|            return;
 1611|      0|        }
 1612|     13|        else if (str.size() > 0)
  ------------------
  |  Branch (1612:18): [True: 13, False: 0]
  ------------------
 1613|     13|        {
 1614|     13|            if (str[0] == '-')
  ------------------
  |  Branch (1614:17): [True: 8, False: 5]
  ------------------
 1615|      8|            {
 1616|      8|                result.push_back('-');
 1617|      8|                jsoncons::prettify_string(str.c_str()+1, str.size()-1, (int)exponent, -4, 17, result);
 1618|      8|            }
 1619|      5|            else
 1620|      5|            {
 1621|      5|                jsoncons::prettify_string(str.c_str(), str.size(), (int)exponent, -4, 17, result);
 1622|      5|            }
 1623|     13|        }
 1624|      0|        else
 1625|      0|        {
 1626|      0|            ec = cbor_errc::invalid_decimal_fraction;
 1627|      0|            more_ = false;
 1628|      0|            return;
 1629|      0|        }
 1630|     13|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13read_bigfloatERNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 1633|      1|    {
 1634|      1|        std::size_t size = read_size(ec);
 1635|      1|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1636|      0|        {
 1637|      0|            return;
 1638|      0|        }
 1639|      1|        if (size != 2)
  ------------------
  |  Branch (1639:13): [True: 0, False: 1]
  ------------------
 1640|      0|        {
 1641|      0|            ec = cbor_errc::invalid_bigfloat;
 1642|      0|            more_ = false;
 1643|      0|            return;
 1644|      0|        }
 1645|       |
 1646|      1|        auto c = source_.peek();
 1647|      1|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1648|      0|        {
 1649|      0|            ec = cbor_errc::unexpected_eof;
 1650|      0|            more_ = false;
 1651|      0|            return;
 1652|      0|        }
 1653|      1|        int64_t exponent = 0;
 1654|      1|        switch (get_major_type(c.value))
 1655|      1|        {
 1656|      0|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1656:13): [True: 0, False: 1]
  ------------------
 1657|      0|            {
 1658|      0|                exponent = read_uint64(ec);
 1659|      0|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1660|      0|                {
 1661|      0|                    return;
 1662|      0|                }
 1663|      0|                break;
 1664|      0|            }
 1665|      1|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1665:13): [True: 1, False: 0]
  ------------------
 1666|      1|            {
 1667|      1|                exponent = read_int64(ec);
 1668|      1|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1669|      0|                {
 1670|      0|                    return;
 1671|      0|                }
 1672|      1|                break;
 1673|      1|            }
 1674|      1|            default:
  ------------------
  |  Branch (1674:13): [True: 0, False: 1]
  ------------------
 1675|      0|            {
 1676|      0|                ec = cbor_errc::invalid_bigfloat;
 1677|      0|                more_ = false;
 1678|      0|                return;
 1679|      1|            }
 1680|      1|        }
 1681|       |
 1682|      1|        c = source_.peek();
 1683|      1|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1684|      0|        {
 1685|      0|            ec = cbor_errc::unexpected_eof;
 1686|      0|            more_ = false;
 1687|      0|            return;
 1688|      0|        }
 1689|      1|        switch (get_major_type(c.value))
 1690|      1|        {
 1691|      0|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1691:13): [True: 0, False: 1]
  ------------------
 1692|      0|            {
 1693|      0|                uint64_t val = read_uint64(ec);
 1694|      0|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1695|      0|                {
 1696|      0|                    return;
 1697|      0|                }
 1698|      0|                str.push_back('0');
 1699|      0|                str.push_back('x');
 1700|      0|                jsoncons::integer_to_hex(val, str);
 1701|      0|                break;
 1702|      0|            }
 1703|      1|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1703:13): [True: 1, False: 0]
  ------------------
 1704|      1|            {
 1705|      1|                int64_t val = read_int64(ec);
 1706|      1|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1707|      0|                {
 1708|      0|                    return;
 1709|      0|                }
 1710|      1|                str.push_back('-');
 1711|      1|                str.push_back('0');
 1712|      1|                str.push_back('x');
 1713|      1|                jsoncons::integer_to_hex(static_cast<uint64_t>(-val), str);
 1714|      1|                break;
 1715|      1|            }
 1716|      0|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1716:13): [True: 0, False: 1]
  ------------------
 1717|      0|            {
 1718|      0|                uint8_t b;
 1719|      0|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1719:21): [True: 0, False: 0]
  ------------------
 1720|      0|                {
 1721|      0|                    ec = cbor_errc::unexpected_eof;
 1722|      0|                    more_ = false;
 1723|      0|                    return;
 1724|      0|                }
 1725|      0|                uint8_t tag = get_additional_information_value(b);
 1726|       |
 1727|      0|                c = source_.peek();
 1728|      0|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1729|      0|                {
 1730|      0|                    ec = cbor_errc::unexpected_eof;
 1731|      0|                    more_ = false;
 1732|      0|                    return;
 1733|      0|                }
 1734|       |
 1735|      0|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1735:21): [True: 0, False: 0]
  ------------------
 1736|      0|                {
 1737|      0|                    bytes_buffer_.clear(); 
 1738|      0|                    read_byte_string(bytes_buffer_, ec);
 1739|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1740|      0|                    {
 1741|      0|                        more_ = false;
 1742|      0|                        return;
 1743|      0|                    }
 1744|      0|                    if (tag == 2)
  ------------------
  |  Branch (1744:25): [True: 0, False: 0]
  ------------------
 1745|      0|                    {
 1746|      0|                        str.push_back('0');
 1747|      0|                        str.push_back('x');
 1748|      0|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1749|      0|                        n.write_string_hex(str);
 1750|      0|                    }
 1751|      0|                    else if (tag == 3)
  ------------------
  |  Branch (1751:30): [True: 0, False: 0]
  ------------------
 1752|      0|                    {
 1753|      0|                        str.push_back('-');
 1754|      0|                        str.push_back('0');
 1755|      0|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1756|      0|                        n = -1 - n;
 1757|      0|                        n.write_string_hex(str);
 1758|      0|                        str[2] = 'x'; // overwrite minus
 1759|      0|                    }
 1760|      0|                }
 1761|      0|                break;
 1762|      0|            }
 1763|      0|            default:
  ------------------
  |  Branch (1763:13): [True: 0, False: 1]
  ------------------
 1764|      0|            {
 1765|      0|                ec = cbor_errc::invalid_bigfloat;
 1766|      0|                more_ = false;
 1767|      0|                return;
 1768|      0|            }
 1769|      1|        }
 1770|       |
 1771|      1|        str.push_back('p');
 1772|      1|        if (exponent >=0)
  ------------------
  |  Branch (1772:13): [True: 0, False: 1]
  ------------------
 1773|      0|        {
 1774|      0|            jsoncons::integer_to_hex(static_cast<uint64_t>(exponent), str);
 1775|      0|        }
 1776|      1|        else
 1777|      1|        {
 1778|      1|            str.push_back('-');
 1779|      1|            jsoncons::integer_to_hex(static_cast<uint64_t>(-exponent), str);
 1780|      1|        }
 1781|      1|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayERNS_24basic_item_event_visitorIcEEhRNS3_10error_codeE:
  891|    191|    {
  892|    191|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|    191|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 191]
  |  |  ------------------
  ------------------
  893|      0|        {
  894|      0|            ec = cbor_errc::max_nesting_depth_exceeded;
  895|      0|            more_ = false;
  896|      0|            return;
  897|      0|        } 
  898|    191|        semantic_tag tag = semantic_tag::none;
  899|    191|        bool pop_stringref_map_stack = false;
  900|    191|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (900:13): [True: 0, False: 191]
  ------------------
  901|      0|        {
  902|      0|            stringref_map_stack_.emplace_back();
  903|      0|            other_tags_[stringref_namespace_tag] = false;
  904|      0|            pop_stringref_map_stack = true;
  905|      0|        }
  906|    191|        switch (info)
  907|    191|        {
  908|      0|            case jsoncons::cbor::detail::additional_info::indefinite_length:
  ------------------
  |  Branch (908:13): [True: 0, False: 191]
  ------------------
  909|      0|            {
  910|      0|                state_stack_.emplace_back(parse_mode::indefinite_array,0,pop_stringref_map_stack);
  911|      0|                visitor.begin_array(tag, *this, ec);
  912|      0|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  913|      0|                {
  914|      0|                    return;
  915|      0|                }
  916|      0|                more_ = !cursor_mode_;
  917|      0|                source_.ignore(1);
  918|      0|                break;
  919|      0|            }
  920|    191|            default: // definite length
  ------------------
  |  Branch (920:13): [True: 191, False: 0]
  ------------------
  921|    191|            {
  922|    191|                std::size_t len = read_size(ec);
  923|    191|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    191|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 191]
  |  |  ------------------
  ------------------
  924|      0|                {
  925|      0|                    return;
  926|      0|                }
  927|    191|                state_stack_.emplace_back(parse_mode::array,len,pop_stringref_map_stack);
  928|    191|                visitor.begin_array(len, tag, *this, ec);
  929|    191|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    191|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 191]
  |  |  ------------------
  ------------------
  930|      0|                {
  931|      0|                    return;
  932|      0|                }
  933|    191|                more_ = !cursor_mode_;
  934|    191|                break;
  935|    191|            }
  936|    191|        }
  937|    191|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectERNS_24basic_item_event_visitorIcEEhRNS3_10error_codeE:
 1015|     30|    {
 1016|     30|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|     30|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 30]
  |  |  ------------------
  ------------------
 1017|      0|        {
 1018|      0|            ec = cbor_errc::max_nesting_depth_exceeded;
 1019|      0|            more_ = false;
 1020|      0|            return;
 1021|      0|        } 
 1022|     30|        bool pop_stringref_map_stack = false;
 1023|     30|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1023:13): [True: 0, False: 30]
  ------------------
 1024|      0|        {
 1025|      0|            stringref_map_stack_.emplace_back();
 1026|      0|            other_tags_[stringref_namespace_tag] = false;
 1027|      0|            pop_stringref_map_stack = true;
 1028|      0|        }
 1029|     30|        switch (info)
 1030|     30|        {
 1031|      2|            case jsoncons::cbor::detail::additional_info::indefinite_length: 
  ------------------
  |  Branch (1031:13): [True: 2, False: 28]
  ------------------
 1032|      2|            {
 1033|      2|                state_stack_.emplace_back(parse_mode::indefinite_map_key,0,pop_stringref_map_stack);
 1034|      2|                visitor.begin_object(semantic_tag::none, *this, ec);
 1035|      2|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 1036|      0|                {
 1037|      0|                    return;
 1038|      0|                }
 1039|      2|                more_ = !cursor_mode_;
 1040|      2|                source_.ignore(1);
 1041|      2|                break;
 1042|      2|            }
 1043|     28|            default: // definite_length
  ------------------
  |  Branch (1043:13): [True: 28, False: 2]
  ------------------
 1044|     28|            {
 1045|     28|                std::size_t len = read_size(ec);
 1046|     28|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     28|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 28]
  |  |  ------------------
  ------------------
 1047|      0|                {
 1048|      0|                    return;
 1049|      0|                }
 1050|     28|                state_stack_.emplace_back(parse_mode::map_key,len,pop_stringref_map_stack);
 1051|     28|                visitor.begin_object(len, semantic_tag::none, *this, ec);
 1052|     28|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     28|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 28]
  |  |  ------------------
  ------------------
 1053|      0|                {
 1054|      0|                    return;
 1055|      0|                }
 1056|     28|                more_ = !cursor_mode_;
 1057|     28|                break;
 1058|     28|            }
 1059|     30|        }
 1060|     30|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
  940|    187|    {
  941|    187|        --nesting_depth_;
  942|       |
  943|    187|        visitor.end_array(*this, ec);
  944|    187|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    187|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 187]
  |  |  ------------------
  ------------------
  945|      0|        {
  946|      0|            return;
  947|      0|        }
  948|    187|        more_ = !cursor_mode_;
  949|    187|        if (level() == mark_level_)
  ------------------
  |  Branch (949:13): [True: 0, False: 187]
  ------------------
  950|      0|        {
  951|      0|            more_ = false;
  952|      0|        }
  953|    187|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (953:13): [True: 0, False: 187]
  ------------------
  954|      0|        {
  955|      0|            stringref_map_stack_.pop_back();
  956|      0|        }
  957|    187|        state_stack_.pop_back();
  958|    187|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_typed_array_itemERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
  547|    775|    {
  548|    775|        if (!typed_array_iter_->done())
  ------------------
  |  Branch (548:13): [True: 775, False: 0]
  ------------------
  549|    775|        {
  550|    775|            typed_array_iter_->next(visitor, *this, ec);
  551|    775|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    775|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 775]
  |  |  ------------------
  ------------------
  552|      0|            {
  553|      0|                return;
  554|      0|            }
  555|    775|            more_ = !cursor_mode_;
  556|       |
  557|    775|            if (typed_array_iter_->done())
  ------------------
  |  Branch (557:17): [True: 703, False: 72]
  ------------------
  558|    703|            {
  559|    703|                state_stack_.pop_back();
  560|    703|            }
  561|    775|        }
  562|    775|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_24basic_item_event_visitorIcEERNS3_10error_codeE:
 1063|     28|    {
 1064|     28|        --nesting_depth_;
 1065|     28|        visitor.end_object(*this, ec);
 1066|     28|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     28|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 28]
  |  |  ------------------
  ------------------
 1067|      0|        {
 1068|      0|            return;
 1069|      0|        }
 1070|     28|        more_ = !cursor_mode_;
 1071|     28|        if (level() == mark_level_)
  ------------------
  |  Branch (1071:13): [True: 0, False: 28]
  ------------------
 1072|      0|        {
 1073|      0|            more_ = false;
 1074|      0|        }
 1075|     28|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1075:13): [True: 0, False: 28]
  ------------------
 1076|      0|        {
 1077|      0|            stringref_map_stack_.pop_back();
 1078|      0|        }
 1079|     28|        state_stack_.pop_back();
 1080|     28|    }

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

_ZN8jsoncons4cbor20typed_array_iteratorD2Ev:
   43|    703|    virtual ~typed_array_iterator() = default;
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIhEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_24basic_item_event_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|     26|    {
   73|     26|        visitor.uint64_value(val, tag, context, ec);
   74|     26|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagES2_:
  105|      4|        : data_(std::move(data)), 
  106|      4|          span_(typed_array_cast<ValueType>(data_)), 
  107|      4|          array_tag_(array_tag), 
  108|      4|          extent_(span_.size()), 
  109|      4|          tag_(tag), 
  110|      4|          func_(func)
  111|      4|    {
  112|      4|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4doneEv:
  140|     60|    {
  141|     60|        return done_;
  142|     60|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4nextERNS_24basic_item_event_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  146|     34|    {
  147|     34|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|     34|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4, False: 30]
  |  |  ------------------
  ------------------
  148|      4|        {
  149|      4|            visitor.begin_array(span_.size(), tag_, context, ec);
  150|      4|            first_ = false;
  151|      4|        }
  152|     30|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|     30|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 26, False: 4]
  |  |  ------------------
  ------------------
  153|     26|        {
  154|     26|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  155|     26|            ++index_;
  156|     26|        }
  157|      4|        else if (!done_)
  ------------------
  |  Branch (157:18): [True: 4, False: 0]
  ------------------
  158|      4|        {
  159|      4|            visitor.end_array(context, ec);
  160|      4|            done_ = true;
  161|      4|        }
  162|     34|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagES2_:
  105|      1|        : data_(std::move(data)), 
  106|      1|          span_(typed_array_cast<ValueType>(data_)), 
  107|      1|          array_tag_(array_tag), 
  108|      1|          extent_(span_.size()), 
  109|      1|          tag_(tag), 
  110|      1|          func_(func)
  111|      1|    {
  112|      1|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4doneEv:
  140|      2|    {
  141|      2|        return done_;
  142|      2|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4nextERNS_24basic_item_event_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  146|      2|    {
  147|      2|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 1]
  |  |  ------------------
  ------------------
  148|      1|        {
  149|      1|            visitor.begin_array(span_.size(), tag_, context, ec);
  150|      1|            first_ = false;
  151|      1|        }
  152|      1|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|      1|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  153|      0|        {
  154|      0|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  155|      0|            ++index_;
  156|      0|        }
  157|      1|        else if (!done_)
  ------------------
  |  Branch (157:18): [True: 1, False: 0]
  ------------------
  158|      1|        {
  159|      1|            visitor.end_array(context, ec);
  160|      1|            done_ = true;
  161|      1|        }
  162|      2|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueImEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_24basic_item_event_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|      1|    {
   73|      1|        visitor.uint64_value(val, tag, context, ec);
   74|      1|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagES2_:
  105|      3|        : data_(std::move(data)), 
  106|      3|          span_(typed_array_cast<ValueType>(data_)), 
  107|      3|          array_tag_(array_tag), 
  108|      3|          extent_(span_.size()), 
  109|      3|          tag_(tag), 
  110|      3|          func_(func)
  111|      3|    {
  112|      3|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4doneEv:
  140|      8|    {
  141|      8|        return done_;
  142|      8|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4nextERNS_24basic_item_event_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  146|      7|    {
  147|      7|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|      7|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 4]
  |  |  ------------------
  ------------------
  148|      3|        {
  149|      3|            visitor.begin_array(span_.size(), tag_, context, ec);
  150|      3|            first_ = false;
  151|      3|        }
  152|      4|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|      4|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 1, False: 3]
  |  |  ------------------
  ------------------
  153|      1|        {
  154|      1|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  155|      1|            ++index_;
  156|      1|        }
  157|      3|        else if (!done_)
  ------------------
  |  Branch (157:18): [True: 3, False: 0]
  ------------------
  158|      3|        {
  159|      3|            visitor.end_array(context, ec);
  160|      3|            done_ = true;
  161|      3|        }
  162|      7|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIsEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_24basic_item_event_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|     41|    {
   65|     41|        visitor.int64_value(val, tag, context, ec);
   66|     41|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagES2_:
  105|    692|        : data_(std::move(data)), 
  106|    692|          span_(typed_array_cast<ValueType>(data_)), 
  107|    692|          array_tag_(array_tag), 
  108|    692|          extent_(span_.size()), 
  109|    692|          tag_(tag), 
  110|    692|          func_(func)
  111|    692|    {
  112|    692|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4doneEv:
  140|  1.46k|    {
  141|  1.46k|        return done_;
  142|  1.46k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4nextERNS_24basic_item_event_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  146|  1.42k|    {
  147|  1.42k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  1.42k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 692, False: 733]
  |  |  ------------------
  ------------------
  148|    692|        {
  149|    692|            visitor.begin_array(span_.size(), tag_, context, ec);
  150|    692|            first_ = false;
  151|    692|        }
  152|    733|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|    733|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 41, False: 692]
  |  |  ------------------
  ------------------
  153|     41|        {
  154|     41|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  155|     41|            ++index_;
  156|     41|        }
  157|    692|        else if (!done_)
  ------------------
  |  Branch (157:18): [True: 692, False: 0]
  ------------------
  158|    692|        {
  159|    692|            visitor.end_array(context, ec);
  160|    692|            done_ = true;
  161|    692|        }
  162|  1.42k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagES2_:
  105|      1|        : data_(std::move(data)), 
  106|      1|          span_(typed_array_cast<ValueType>(data_)), 
  107|      1|          array_tag_(array_tag), 
  108|      1|          extent_(span_.size()), 
  109|      1|          tag_(tag), 
  110|      1|          func_(func)
  111|      1|    {
  112|      1|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  140|      2|    {
  141|      2|        return done_;
  142|      2|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_24basic_item_event_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  146|      2|    {
  147|      2|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 1]
  |  |  ------------------
  ------------------
  148|      1|        {
  149|      1|            visitor.begin_array(span_.size(), tag_, context, ec);
  150|      1|            first_ = false;
  151|      1|        }
  152|      1|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|      1|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  153|      0|        {
  154|      0|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  155|      0|            ++index_;
  156|      0|        }
  157|      1|        else if (!done_)
  ------------------
  |  Branch (157:18): [True: 1, False: 0]
  ------------------
  158|      1|        {
  159|      1|            visitor.end_array(context, ec);
  160|      1|            done_ = true;
  161|      1|        }
  162|      2|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIfEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_24basic_item_event_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   80|      4|    {
   81|      4|        visitor.double_value(val, tag, context, ec);
   82|      4|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagES2_:
  105|      2|        : data_(std::move(data)), 
  106|      2|          span_(typed_array_cast<ValueType>(data_)), 
  107|      2|          array_tag_(array_tag), 
  108|      2|          extent_(span_.size()), 
  109|      2|          tag_(tag), 
  110|      2|          func_(func)
  111|      2|    {
  112|      2|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4doneEv:
  140|     12|    {
  141|     12|        return done_;
  142|     12|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4nextERNS_24basic_item_event_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  146|      8|    {
  147|      8|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|      8|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 6]
  |  |  ------------------
  ------------------
  148|      2|        {
  149|      2|            visitor.begin_array(span_.size(), tag_, context, ec);
  150|      2|            first_ = false;
  151|      2|        }
  152|      6|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|      6|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 4, False: 2]
  |  |  ------------------
  ------------------
  153|      4|        {
  154|      4|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  155|      4|            ++index_;
  156|      4|        }
  157|      2|        else if (!done_)
  ------------------
  |  Branch (157:18): [True: 2, False: 0]
  ------------------
  158|      2|        {
  159|      2|            visitor.end_array(context, ec);
  160|      2|            done_ = true;
  161|      2|        }
  162|      8|    }

