LLVMFuzzerTestOneInput:
    7|  3.45k|{
    8|  3.45k|        std::string s(reinterpret_cast<const char*>(data), size);
    9|  3.45k|        std::istringstream is(s);
   10|       |
   11|  3.45k|        std::error_code ec;
   12|  3.45k|        json_stream_cursor reader(is, ec);
   13|  5.43k|        while (!reader.done() && !ec)
  ------------------
  |  Branch (13:16): [True: 2.78k, False: 2.65k]
  |  Branch (13:34): [True: 1.98k, False: 794]
  ------------------
   14|  1.98k|        {
   15|  1.98k|                const auto& event = reader.current();
   16|  1.98k|                std::string s2 = event.get<std::string>(ec);
   17|  1.98k|                if (!ec)
  ------------------
  |  Branch (17:21): [True: 1.98k, False: 6]
  ------------------
   18|  1.98k|                {
   19|  1.98k|                    reader.next(ec);
   20|  1.98k|                }
   21|  1.98k|        }
   22|       |
   23|  3.45k|        return 0;
   24|  3.45k|}

_ZN8jsoncons15make_error_codeENS_9conv_errcE:
  177|      6|{
  178|      6|    return std::error_code(static_cast<int>(result),conv_error_category());
  179|      6|}
_ZN8jsoncons19conv_error_categoryEv:
  170|      6|{
  171|      6|  static detail::conv_error_category_impl instance;
  172|      6|  return instance;
  173|      6|}

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

_ZN8jsoncons6detail24make_obj_using_allocatorINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES7_JRKPKcRKmEEENS2_9enable_ifIXaaaantsr10ext_traits11is_std_pairIT_EE5valuesr3std14uses_allocatorISG_T0_EE5valuesr3std16is_constructibleISG_DpT1_SH_EE5valueESG_E4typeERKSH_DpOSI_:
   16|    419|{
   17|    419|    return T(std::forward<Args>(args)..., alloc);
   18|    419|}
_ZN8jsoncons6detail24make_obj_using_allocatorINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES7_JEEENS2_9enable_ifIXaaaantsr10ext_traits11is_std_pairIT_EE5valuesr3std14uses_allocatorISA_T0_EE5valuesr3std16is_constructibleISA_DpT1_SB_EE5valueESA_E4typeERKSB_DpOSC_:
   16|  1.55k|{
   17|  1.55k|    return T(std::forward<Args>(args)..., alloc);
   18|  1.55k|}
_ZN8jsoncons6detail24make_obj_using_allocatorINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES7_JRKPKcEEENS2_9enable_ifIXaaaantsr10ext_traits11is_std_pairIT_EE5valuesr3std14uses_allocatorISE_T0_EE5valuesr3std16is_constructibleISE_DpT1_SF_EE5valueESE_E4typeERKSF_DpOSG_:
   16|      7|{
   17|      7|    return T(std::forward<Args>(args)..., alloc);
   18|      7|}

_ZN8jsoncons6detail4spanIKcLm18446744073709551615EEC2Ev:
   58|  4.37k|        {
   59|  4.37k|        }
_ZN8jsoncons6detail4spanIKcLm18446744073709551615EEC2EPS2_m:
   61|  14.4k|            : data_(data), size_(size)
   62|  14.4k|        {
   63|  14.4k|        }
_ZNK8jsoncons6detail4spanIKcLm18446744073709551615EE4sizeEv:
  116|  26.0k|        {
  117|  26.0k|            return size_;
  118|  26.0k|        }
_ZNK8jsoncons6detail4spanIKcLm18446744073709551615EE4dataEv:
  111|  14.4k|        {
  112|  14.4k|            return data_;
  113|  14.4k|        }

_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_ED2Ev:
  257|  3.45k|    ~basic_json_cursor() = default;
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_nextERNS_18basic_json_visitorIcEERNS2_10error_codeE:
  529|  5.43k|    {
  530|  5.43k|        parser_.restart();
  531|  15.6k|        while (!parser_.stopped())
  ------------------
  |  Branch (531:16): [True: 11.6k, False: 3.96k]
  ------------------
  532|  11.6k|        {
  533|  11.6k|            if (parser_.source_exhausted())
  ------------------
  |  Branch (533:17): [True: 11.6k, False: 71]
  ------------------
  534|  11.6k|            {
  535|  11.6k|                auto s = source_.read_chunk(ec);
  536|  11.6k|                if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  11.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 14, False: 11.5k]
  |  |  ------------------
  ------------------
  537|  11.5k|                if (s.size() > 0)
  ------------------
  |  Branch (537:21): [True: 7.21k, False: 4.38k]
  ------------------
  538|  7.21k|                {
  539|  7.21k|                    parser_.update(s.data(),s.size());
  540|  7.21k|                    if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  7.21k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 7.21k]
  |  |  ------------------
  ------------------
  541|  7.21k|                }
  542|  11.5k|            }
  543|  11.6k|            bool eof = parser_.source_exhausted() && source_.eof();
  ------------------
  |  Branch (543:24): [True: 4.38k, False: 7.28k]
  |  Branch (543:54): [True: 4.38k, False: 0]
  ------------------
  544|  11.6k|            parser_.parse_some(visitor, ec);
  545|  11.6k|            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  11.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.41k, False: 10.2k]
  |  |  ------------------
  ------------------
  546|  10.2k|            if (eof)
  ------------------
  |  Branch (546:17): [True: 3.74k, False: 6.50k]
  ------------------
  547|  3.74k|            {
  548|  3.74k|                if (parser_.enter())
  ------------------
  |  Branch (548:21): [True: 24, False: 3.71k]
  ------------------
  549|     24|                {
  550|     24|                    done_ = true;
  551|     24|                    break;
  552|     24|                }
  553|  3.71k|                else if (!parser_.accept())
  ------------------
  |  Branch (553:26): [True: 11, False: 3.70k]
  ------------------
  554|     11|                {
  555|     11|                    ec = json_errc::unexpected_eof;
  556|     11|                    return;
  557|     11|                }
  558|  3.74k|            }
  559|  10.2k|        }
  560|  5.43k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_EC1IRNS2_19basic_istringstreamIcNS2_11char_traitsIcEES4_EEEEOT_RNS2_10error_codeE:
  134|  3.45k|        : basic_json_cursor(std::allocator_arg, Allocator(), 
  135|  3.45k|              std::forward<Sourceable>(source),
  136|  3.45k|              basic_json_decode_options<CharT>(),
  137|  3.45k|              ec)
  138|  3.45k|    {
  139|  3.45k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_EC1IRNS2_19basic_istringstreamIcNS2_11char_traitsIcEES4_EEEENS2_15allocator_arg_tERKS4_OT_RKNS_25basic_json_decode_optionsIcEERNS2_10error_codeEPNS2_9enable_ifIXntsr3std16is_constructibleINS2_17basic_string_viewIcSA_EESG_EE5valueEvE4typeE:
  203|  3.45k|       : source_(std::forward<Sourceable>(source)),
  204|  3.45k|         parser_(options, alloc)
  205|  3.45k|    {
  206|  3.45k|        parser_.cursor_mode(true);
  207|       |
  208|  3.45k|        if (!read_done())
  ------------------
  |  Branch (208:13): [True: 3.45k, False: 0]
  ------------------
  209|  3.45k|        {
  210|  3.45k|            std::error_code local_ec;
  211|  3.45k|            read_next(local_ec);
  212|  3.45k|            if (local_ec)
  ------------------
  |  Branch (212:17): [True: 1.44k, False: 2.01k]
  ------------------
  213|  1.44k|            {
  214|  1.44k|                if (local_ec == json_errc::unexpected_eof)
  ------------------
  |  Branch (214:21): [True: 652, False: 788]
  ------------------
  215|    652|                {
  216|    652|                    done_ = true;
  217|    652|                }
  218|    788|                else
  219|    788|                {
  220|    788|                    ec = local_ec;
  221|    788|                }
  222|  1.44k|            }
  223|  3.45k|        }
  224|  3.45k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_doneEv:
  470|  3.45k|    {
  471|  3.45k|        return parser_.done() || done_;
  ------------------
  |  Branch (471:16): [True: 0, False: 3.45k]
  |  Branch (471:34): [True: 0, False: 3.45k]
  ------------------
  472|  3.45k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_nextERNS2_10error_codeE:
  524|  5.43k|    {
  525|  5.43k|        read_next(cursor_visitor_, ec);
  526|  5.43k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E4doneEv:
  336|  5.43k|    {
  337|  5.43k|        return parser_.done() || done_;
  ------------------
  |  Branch (337:16): [True: 1.98k, False: 3.45k]
  |  Branch (337:34): [True: 676, False: 2.78k]
  ------------------
  338|  5.43k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E7currentEv:
  341|  1.98k|    {
  342|  1.98k|        return cursor_visitor_.event();
  343|  1.98k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E4nextERNS2_10error_codeE:
  391|  1.98k|    {
  392|  1.98k|        read_next(ec);
  393|  1.98k|    }

_ZN8jsoncons15make_error_codeENS_9json_errcE:
  141|  2.88k|    {
  142|  2.88k|        return std::error_code(static_cast<int>(result),json_error_category());
  143|  2.88k|    }
_ZN8jsoncons19json_error_categoryEv:
  135|  2.88k|    {
  136|  2.88k|      static json_error_category_impl instance;
  137|  2.88k|      return instance;
  138|  2.88k|    }

_ZN8jsoncons25basic_json_decode_optionsIcEC1Ev:
  266|  3.45k|        : err_handler_(default_json_parsing())
  267|  3.45k|    {
  268|  3.45k|    }
_ZN8jsoncons25basic_json_options_commonIcEC2Ev:
  106|  3.45k|        enable_nan_to_num_(false),
  107|  3.45k|        enable_inf_to_num_(false),
  108|  3.45k|        enable_neginf_to_num_(false),
  109|  3.45k|        enable_nan_to_str_(false),
  110|  3.45k|        enable_inf_to_str_(false),
  111|  3.45k|        enable_neginf_to_str_(false),
  112|  3.45k|        enable_str_to_nan_(false),
  113|  3.45k|        enable_str_to_inf_(false),
  114|  3.45k|        enable_str_to_neginf_(false),
  115|  3.45k|        max_nesting_depth_(1024)
  116|  3.45k|    {}
_ZN8jsoncons20default_json_parsingclENS_9json_errcERKNS_11ser_contextE:
   48|  47.5k|    {
   49|  47.5k|        return ec == json_errc::illegal_comment;
   50|  47.5k|    }
_ZN8jsoncons25basic_json_options_commonIcED2Ev:
  118|  3.45k|    virtual ~basic_json_options_common() = default;
_ZNK8jsoncons25basic_json_options_commonIcE17max_nesting_depthEv:
  245|  6.90k|    {
  246|  6.90k|        return max_nesting_depth_;
  247|  6.90k|    }
_ZNK8jsoncons25basic_json_decode_optionsIcE20allow_trailing_commaEv:
  300|  3.45k|    {
  301|  3.45k|        return allow_trailing_comma_;
  302|  3.45k|    }
_ZNK8jsoncons25basic_json_decode_optionsIcE14allow_commentsEv:
  295|  3.45k|    {
  296|  3.45k|        return allow_comments_;
  297|  3.45k|    }
_ZNK8jsoncons25basic_json_decode_optionsIcE15lossless_numberEv:
  286|  3.45k|    {
  287|  3.45k|        return lossless_number_;
  288|  3.45k|    }
_ZNK8jsoncons25basic_json_decode_optionsIcE15lossless_bignumEv:
  290|  3.45k|    {
  291|  3.45k|        return lossless_bignum_;
  292|  3.45k|    }
_ZNK8jsoncons25basic_json_decode_optionsIcE11err_handlerEv:
  306|  3.45k|    {
  307|  3.45k|        return err_handler_;
  308|  3.45k|    }
_ZNK8jsoncons25basic_json_options_commonIcE17enable_str_to_nanEv:
  148|  3.45k|    {
  149|  3.45k|        return enable_str_to_nan_;
  150|  3.45k|    }
_ZNK8jsoncons25basic_json_options_commonIcE17enable_str_to_infEv:
  158|  3.45k|    {
  159|  3.45k|        return enable_str_to_inf_;
  160|  3.45k|    }
_ZNK8jsoncons25basic_json_options_commonIcE20enable_str_to_neginfEv:
  168|  3.45k|    {
  169|  3.45k|        return enable_str_to_neginf_ || enable_str_to_inf_;
  ------------------
  |  Branch (169:16): [True: 0, False: 3.45k]
  |  Branch (169:41): [True: 0, False: 3.45k]
  ------------------
  170|  3.45k|    }

_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEED2Ev:
  281|  3.45k|    {
  282|  3.45k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE11cursor_modeEb:
  251|  3.45k|    {
  252|  3.45k|        cursor_mode_ = value;
  253|  3.45k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE7restartEv:
  516|  5.43k|    {
  517|  5.43k|        more_ = true;
  518|  5.43k|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE7stoppedEv:
  306|  15.6k|    {
  307|  15.6k|        return !more_;
  308|  15.6k|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE16source_exhaustedEv:
  271|  23.3k|    {
  272|  23.3k|        return input_ptr_ == input_end_;
  273|  23.3k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE6updateEPKcm:
  560|  7.21k|    {
  561|  7.21k|        input_end_ = data + length;
  562|  7.21k|        input_ptr_ = data;
  563|  7.21k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE10parse_someERNS_18basic_json_visitorIcEERNS1_10error_codeE:
  576|  11.6k|    {
  577|  11.6k|        parse_some_(visitor, ec);
  578|  11.6k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE11parse_some_ERNS_18basic_json_visitorIcEERNS1_10error_codeE:
  600|  11.6k|    {
  601|  11.6k|        if (state_ == parse_state::accept)
  ------------------
  |  Branch (601:13): [True: 1.98k, False: 9.68k]
  ------------------
  602|  1.98k|        {
  603|  1.98k|            visitor.flush();
  604|  1.98k|            done_ = true;
  605|  1.98k|            state_ = parse_state::done;
  606|  1.98k|            more_ = false;
  607|  1.98k|            return;
  608|  1.98k|        }
  609|  9.68k|        const char_type* local_input_end = input_end_;
  610|       |
  611|  9.68k|        if (input_ptr_ == local_input_end && more_)
  ------------------
  |  Branch (611:13): [True: 2.47k, False: 7.21k]
  |  Branch (611:46): [True: 2.47k, False: 0]
  ------------------
  612|  2.47k|        {
  613|  2.47k|            switch (state_)
  614|  2.47k|            {
  615|  1.80k|                case parse_state::number:  
  ------------------
  |  Branch (615:17): [True: 1.80k, False: 667]
  ------------------
  616|  1.80k|                    if (number_state_ == parse_number_state::zero || number_state_ == parse_number_state::integer)
  ------------------
  |  Branch (616:25): [True: 0, False: 1.80k]
  |  Branch (616:70): [True: 767, False: 1.04k]
  ------------------
  617|    767|                    {
  618|    767|                        end_integer_value(visitor, ec);
  619|    767|                        if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|    767|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 767]
  |  |  ------------------
  ------------------
  620|    767|                    }
  621|  1.04k|                    else if (number_state_ == parse_number_state::fraction2 || number_state_ == parse_number_state::exp3)
  ------------------
  |  Branch (621:30): [True: 387, False: 653]
  |  Branch (621:80): [True: 644, False: 9]
  ------------------
  622|  1.03k|                    {
  623|  1.03k|                        end_fraction_value(visitor, ec);
  624|  1.03k|                        if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|  1.03k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.03k]
  |  |  ------------------
  ------------------
  625|  1.03k|                    }
  626|      9|                    else
  627|      9|                    {
  628|      9|                        err_handler_(json_errc::unexpected_eof, *this);
  629|      9|                        ec = json_errc::unexpected_eof;
  630|      9|                        more_ = false;
  631|      9|                    }
  632|  1.80k|                    break;
  633|  1.80k|                case parse_state::accept:
  ------------------
  |  Branch (633:17): [True: 0, False: 2.47k]
  ------------------
  634|      0|                    visitor.flush();
  635|      0|                    done_ = true;
  636|      0|                    state_ = parse_state::done;
  637|      0|                    more_ = false;
  638|      0|                    break;
  639|     84|                case parse_state::start:
  ------------------
  |  Branch (639:17): [True: 84, False: 2.39k]
  ------------------
  640|     84|                    more_ = false;
  641|     84|                    ec = json_errc::unexpected_eof;
  642|     84|                    return;                
  643|      0|                case parse_state::done:
  ------------------
  |  Branch (643:17): [True: 0, False: 2.47k]
  ------------------
  644|      0|                    more_ = false;
  645|      0|                    break;
  646|     35|                case parse_state::cr:
  ------------------
  |  Branch (646:17): [True: 35, False: 2.43k]
  ------------------
  647|     35|                    state_ = pop_state();
  648|     35|                    break;
  649|    548|                default:
  ------------------
  |  Branch (649:17): [True: 548, False: 1.92k]
  ------------------
  650|    548|                    err_handler_(json_errc::unexpected_eof, *this);
  651|    548|                    ec = json_errc::unexpected_eof;
  652|    548|                    more_ = false;
  653|    548|                    return;
  654|  2.47k|            }
  655|  2.47k|        }
  656|       |
  657|  4.18M|        while ((input_ptr_ < local_input_end) && more_)
  ------------------
  |  Branch (657:16): [True: 4.17M, False: 8.20k]
  |  Branch (657:50): [True: 4.17M, False: 75]
  ------------------
  658|  4.17M|        {
  659|  4.17M|            switch (state_)
  660|  4.17M|            {
  661|      0|                case parse_state::accept:
  ------------------
  |  Branch (661:17): [True: 0, False: 4.17M]
  ------------------
  662|      0|                    visitor.flush();
  663|      0|                    done_ = true;
  664|      0|                    state_ = parse_state::done;
  665|      0|                    more_ = false;
  666|      0|                    break;
  667|  1.37k|                case parse_state::cr:
  ------------------
  |  Branch (667:17): [True: 1.37k, False: 4.17M]
  ------------------
  668|  1.37k|                    ++line_;
  669|  1.37k|                    switch (*input_ptr_)
  670|  1.37k|                    {
  671|    198|                        case '\n':
  ------------------
  |  Branch (671:25): [True: 198, False: 1.17k]
  ------------------
  672|    198|                            ++input_ptr_;
  673|    198|                            ++position_;
  674|    198|                            state_ = pop_state();
  675|    198|                            break;
  676|  1.17k|                        default:
  ------------------
  |  Branch (676:25): [True: 1.17k, False: 198]
  ------------------
  677|  1.17k|                            state_ = pop_state();
  678|  1.17k|                            break;
  679|  1.37k|                    }
  680|  1.37k|                    mark_position_ = position_;
  681|  1.37k|                    break;
  682|  95.7k|                case parse_state::start: 
  ------------------
  |  Branch (682:17): [True: 95.7k, False: 4.08M]
  ------------------
  683|  95.7k|                {
  684|  95.7k|                    switch (*input_ptr_)
  685|  95.7k|                    {
  686|  1.51k|                        JSONCONS_ILLEGAL_CONTROL_CHARACTER:
  ------------------
  |  |   34|     43|        case 0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x0b: \
  |  |  ------------------
  |  |  |  Branch (34:9): [True: 20, False: 95.7k]
  |  |  |  Branch (34:19): [True: 3, False: 95.7k]
  |  |  |  Branch (34:29): [True: 3, False: 95.7k]
  |  |  |  Branch (34:39): [True: 4, False: 95.7k]
  |  |  |  Branch (34:49): [True: 1, False: 95.7k]
  |  |  |  Branch (34:59): [True: 2, False: 95.7k]
  |  |  |  Branch (34:69): [True: 2, False: 95.7k]
  |  |  |  Branch (34:79): [True: 3, False: 95.7k]
  |  |  |  Branch (34:89): [True: 3, False: 95.7k]
  |  |  |  Branch (34:99): [True: 2, False: 95.7k]
  |  |  ------------------
  |  |   35|     63|        case 0x0c:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16: \
  |  |  ------------------
  |  |  |  Branch (35:9): [True: 2, False: 95.7k]
  |  |  |  Branch (35:19): [True: 3, False: 95.7k]
  |  |  |  Branch (35:29): [True: 2, False: 95.7k]
  |  |  |  Branch (35:39): [True: 2, False: 95.7k]
  |  |  |  Branch (35:49): [True: 1, False: 95.7k]
  |  |  |  Branch (35:59): [True: 2, False: 95.7k]
  |  |  |  Branch (35:69): [True: 1, False: 95.7k]
  |  |  |  Branch (35:79): [True: 2, False: 95.7k]
  |  |  |  Branch (35:89): [True: 2, False: 95.7k]
  |  |  |  Branch (35:99): [True: 3, False: 95.7k]
  |  |  ------------------
  |  |   36|     80|        case 0x17:case 0x18:case 0x19:case 0x1a:case 0x1b:case 0x1c:case 0x1d:case 0x1e:case 0x1f 
  |  |  ------------------
  |  |  |  Branch (36:9): [True: 2, False: 95.7k]
  |  |  |  Branch (36:19): [True: 1, False: 95.7k]
  |  |  |  Branch (36:29): [True: 3, False: 95.7k]
  |  |  |  Branch (36:39): [True: 1, False: 95.7k]
  |  |  |  Branch (36:49): [True: 3, False: 95.7k]
  |  |  |  Branch (36:59): [True: 2, False: 95.7k]
  |  |  |  Branch (36:69): [True: 2, False: 95.7k]
  |  |  |  Branch (36:79): [True: 1, False: 95.7k]
  |  |  ------------------
  ------------------
  687|  1.51k|                            more_ = err_handler_(json_errc::illegal_control_character, *this);
  688|  1.51k|                            if (!more_)
  ------------------
  |  Branch (688:33): [True: 80, False: 0]
  ------------------
  689|     80|                            {
  690|     80|                                ec = json_errc::illegal_control_character;
  691|     80|                                return;
  692|     80|                            }
  693|      0|                            break;
  694|  46.3k|                        case ' ':case '\t':case '\n':case '\r':
  ------------------
  |  Branch (694:25): [True: 310, False: 95.4k]
  |  Branch (694:34): [True: 442, False: 95.3k]
  |  Branch (694:44): [True: 30.4k, False: 65.3k]
  |  Branch (694:54): [True: 15.1k, False: 80.5k]
  ------------------
  695|  46.3k|                            skip_space(&input_ptr_);
  696|  46.3k|                            break;
  697|  46.2k|                        case '/': 
  ------------------
  |  Branch (697:25): [True: 46.2k, False: 49.5k]
  ------------------
  698|  46.2k|                            ++input_ptr_;
  699|  46.2k|                            ++position_;
  700|  46.2k|                            push_state(state_);
  701|  46.2k|                            state_ = parse_state::slash;
  702|  46.2k|                            break;
  703|      3|                        case '{':
  ------------------
  |  Branch (703:25): [True: 3, False: 95.7k]
  ------------------
  704|      3|                            begin_position_ = position_;
  705|      3|                            ++input_ptr_;
  706|      3|                            ++position_;
  707|      3|                            begin_object(visitor, ec);
  708|      3|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  709|      3|                            break;
  710|      3|                        case '[':
  ------------------
  |  Branch (710:25): [True: 3, False: 95.7k]
  ------------------
  711|      3|                            begin_position_ = position_;
  712|      3|                            ++input_ptr_;
  713|      3|                            ++position_;
  714|      3|                            begin_array(visitor, ec);
  715|      3|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  716|      3|                            break;
  717|    869|                        case '\"':
  ------------------
  |  Branch (717:25): [True: 869, False: 94.8k]
  ------------------
  718|    869|                            state_ = parse_state::string;
  719|    869|                            string_state_ = parse_string_state{};
  720|    869|                            begin_position_ = position_;
  721|    869|                            ++input_ptr_;
  722|    869|                            ++position_;
  723|    869|                            escape_tag_ = semantic_tag::noesc;
  724|    869|                            buffer_.clear();
  725|    869|                            input_ptr_ = parse_string(input_ptr_, visitor, ec);
  726|    869|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|    869|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 274, False: 595]
  |  |  ------------------
  ------------------
  727|    595|                            break;
  728|    595|                        case '-':
  ------------------
  |  Branch (728:25): [True: 513, False: 95.2k]
  ------------------
  729|    513|                            buffer_.clear();
  730|    513|                            buffer_.push_back('-');
  731|    513|                            begin_position_ = position_;
  732|    513|                            ++input_ptr_;
  733|    513|                            ++position_;
  734|    513|                            state_ = parse_state::number;
  735|    513|                            number_state_ = parse_number_state::minus;
  736|    513|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
  737|    513|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|    513|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 12, False: 501]
  |  |  ------------------
  ------------------
  738|    501|                            break;
  739|    501|                        case '0': 
  ------------------
  |  Branch (739:25): [True: 118, False: 95.6k]
  ------------------
  740|    118|                            buffer_.clear();
  741|    118|                            buffer_.push_back(static_cast<char>(*input_ptr_));
  742|    118|                            state_ = parse_state::number;
  743|    118|                            number_state_ = parse_number_state::zero;
  744|    118|                            begin_position_ = position_;
  745|    118|                            ++input_ptr_;
  746|    118|                            ++position_;
  747|    118|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
  748|    118|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|    118|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 8, False: 110]
  |  |  ------------------
  ------------------
  749|    110|                            break;
  750|  1.27k|                        case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (750:25): [True: 281, False: 95.4k]
  |  Branch (750:34): [True: 164, False: 95.5k]
  |  Branch (750:43): [True: 80, False: 95.6k]
  |  Branch (750:52): [True: 73, False: 95.6k]
  |  Branch (750:61): [True: 76, False: 95.6k]
  |  Branch (750:70): [True: 89, False: 95.6k]
  |  Branch (750:79): [True: 109, False: 95.6k]
  |  Branch (750:88): [True: 185, False: 95.5k]
  |  Branch (750:98): [True: 220, False: 95.5k]
  ------------------
  751|  1.27k|                            buffer_.clear();
  752|  1.27k|                            buffer_.push_back(static_cast<char>(*input_ptr_));
  753|  1.27k|                            begin_position_ = position_;
  754|  1.27k|                            ++input_ptr_;
  755|  1.27k|                            ++position_;
  756|  1.27k|                            state_ = parse_state::number;
  757|  1.27k|                            number_state_ = parse_number_state::integer;
  758|  1.27k|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
  759|  1.27k|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  1.27k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 10, False: 1.26k]
  |  |  ------------------
  ------------------
  760|  1.26k|                            break;
  761|  1.26k|                        case 'n':
  ------------------
  |  Branch (761:25): [True: 85, False: 95.6k]
  ------------------
  762|     85|                            parse_null(visitor, ec);
  763|     85|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|     85|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 47, False: 38]
  |  |  ------------------
  ------------------
  764|     38|                            break;
  765|     80|                        case 't':
  ------------------
  |  Branch (765:25): [True: 80, False: 95.6k]
  ------------------
  766|     80|                            input_ptr_ = parse_true(input_ptr_, visitor, ec);
  767|     80|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|     80|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 48, False: 32]
  |  |  ------------------
  ------------------
  768|     32|                            break;
  769|     92|                        case 'f':
  ------------------
  |  Branch (769:25): [True: 92, False: 95.6k]
  ------------------
  770|     92|                            input_ptr_ = parse_false(input_ptr_, visitor, ec);
  771|     92|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|     92|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 43, False: 49]
  |  |  ------------------
  ------------------
  772|     49|                            break;
  773|     49|                        case '}':
  ------------------
  |  Branch (773:25): [True: 3, False: 95.7k]
  ------------------
  774|      3|                            err_handler_(json_errc::unexpected_rbrace, *this);
  775|      3|                            ec = json_errc::unexpected_rbrace;
  776|      3|                            more_ = false;
  777|      3|                            return;
  778|      1|                        case ']':
  ------------------
  |  Branch (778:25): [True: 1, False: 95.7k]
  ------------------
  779|      1|                            err_handler_(json_errc::unexpected_rbracket, *this);
  780|      1|                            ec = json_errc::unexpected_rbracket;
  781|      1|                            more_ = false;
  782|      1|                            return;
  783|     91|                        default:
  ------------------
  |  Branch (783:25): [True: 91, False: 95.6k]
  ------------------
  784|     91|                            err_handler_(json_errc::syntax_error, *this);
  785|     91|                            ec = json_errc::syntax_error;
  786|     91|                            more_ = false;
  787|     91|                            return;
  788|  95.7k|                    }
  789|  95.1k|                    break;
  790|  95.7k|                }
  791|  95.1k|                case parse_state::expect_comma_or_end: 
  ------------------
  |  Branch (791:17): [True: 0, False: 4.17M]
  ------------------
  792|      0|                {
  793|      0|                    switch (*input_ptr_)
  794|      0|                    {
  795|      0|                        JSONCONS_ILLEGAL_CONTROL_CHARACTER:
  ------------------
  |  |   34|      0|        case 0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x0b: \
  |  |  ------------------
  |  |  |  Branch (34:9): [True: 0, False: 0]
  |  |  |  Branch (34:19): [True: 0, False: 0]
  |  |  |  Branch (34:29): [True: 0, False: 0]
  |  |  |  Branch (34:39): [True: 0, False: 0]
  |  |  |  Branch (34:49): [True: 0, False: 0]
  |  |  |  Branch (34:59): [True: 0, False: 0]
  |  |  |  Branch (34:69): [True: 0, False: 0]
  |  |  |  Branch (34:79): [True: 0, False: 0]
  |  |  |  Branch (34:89): [True: 0, False: 0]
  |  |  |  Branch (34:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   35|      0|        case 0x0c:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16: \
  |  |  ------------------
  |  |  |  Branch (35:9): [True: 0, False: 0]
  |  |  |  Branch (35:19): [True: 0, False: 0]
  |  |  |  Branch (35:29): [True: 0, False: 0]
  |  |  |  Branch (35:39): [True: 0, False: 0]
  |  |  |  Branch (35:49): [True: 0, False: 0]
  |  |  |  Branch (35:59): [True: 0, False: 0]
  |  |  |  Branch (35:69): [True: 0, False: 0]
  |  |  |  Branch (35:79): [True: 0, False: 0]
  |  |  |  Branch (35:89): [True: 0, False: 0]
  |  |  |  Branch (35:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   36|      0|        case 0x17:case 0x18:case 0x19:case 0x1a:case 0x1b:case 0x1c:case 0x1d:case 0x1e:case 0x1f 
  |  |  ------------------
  |  |  |  Branch (36:9): [True: 0, False: 0]
  |  |  |  Branch (36:19): [True: 0, False: 0]
  |  |  |  Branch (36:29): [True: 0, False: 0]
  |  |  |  Branch (36:39): [True: 0, False: 0]
  |  |  |  Branch (36:49): [True: 0, False: 0]
  |  |  |  Branch (36:59): [True: 0, False: 0]
  |  |  |  Branch (36:69): [True: 0, False: 0]
  |  |  |  Branch (36:79): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  796|      0|                            more_ = err_handler_(json_errc::illegal_control_character, *this);
  797|      0|                            if (!more_)
  ------------------
  |  Branch (797:33): [True: 0, False: 0]
  ------------------
  798|      0|                            {
  799|      0|                                ec = json_errc::illegal_control_character;
  800|      0|                                return;
  801|      0|                            }
  802|      0|                            ++input_ptr_;
  803|      0|                            ++position_;
  804|      0|                            break;
  805|      0|                        case ' ':case '\t':case '\n':case '\r':
  ------------------
  |  Branch (805:25): [True: 0, False: 0]
  |  Branch (805:34): [True: 0, False: 0]
  |  Branch (805:44): [True: 0, False: 0]
  |  Branch (805:54): [True: 0, False: 0]
  ------------------
  806|      0|                            skip_space(&input_ptr_);
  807|      0|                            break;
  808|      0|                        case '/':
  ------------------
  |  Branch (808:25): [True: 0, False: 0]
  ------------------
  809|      0|                            ++input_ptr_;
  810|      0|                            ++position_;
  811|      0|                            push_state(state_); 
  812|      0|                            state_ = parse_state::slash;
  813|      0|                            break;
  814|      0|                        case '}':
  ------------------
  |  Branch (814:25): [True: 0, False: 0]
  ------------------
  815|      0|                            begin_position_ = position_;
  816|      0|                            ++input_ptr_;
  817|      0|                            ++position_;
  818|      0|                            end_object(visitor, ec);
  819|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  820|      0|                            break;
  821|      0|                        case ']':
  ------------------
  |  Branch (821:25): [True: 0, False: 0]
  ------------------
  822|      0|                            begin_position_ = position_;
  823|      0|                            ++input_ptr_;
  824|      0|                            ++position_;
  825|      0|                            end_array(visitor, ec);
  826|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  827|      0|                            break;
  828|      0|                        case ',':
  ------------------
  |  Branch (828:25): [True: 0, False: 0]
  ------------------
  829|      0|                            begin_member_or_element(ec);
  830|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  831|      0|                            ++input_ptr_;
  832|      0|                            ++position_;
  833|      0|                            break;
  834|      0|                        default:
  ------------------
  |  Branch (834:25): [True: 0, False: 0]
  ------------------
  835|      0|                            if (parent() == parse_state::array)
  ------------------
  |  Branch (835:33): [True: 0, False: 0]
  ------------------
  836|      0|                            {
  837|      0|                                more_ = err_handler_(json_errc::expected_comma_or_rbracket, *this);
  838|      0|                                if (!more_)
  ------------------
  |  Branch (838:37): [True: 0, False: 0]
  ------------------
  839|      0|                                {
  840|      0|                                    ec = json_errc::expected_comma_or_rbracket;
  841|      0|                                    return;
  842|      0|                                }
  843|      0|                            }
  844|      0|                            else if (parent() == parse_state::object)
  ------------------
  |  Branch (844:38): [True: 0, False: 0]
  ------------------
  845|      0|                            {
  846|      0|                                more_ = err_handler_(json_errc::expected_comma_or_rbrace, *this);
  847|      0|                                if (!more_)
  ------------------
  |  Branch (847:37): [True: 0, False: 0]
  ------------------
  848|      0|                                {
  849|      0|                                    ec = json_errc::expected_comma_or_rbrace;
  850|      0|                                    return;
  851|      0|                                }
  852|      0|                            }
  853|      0|                            else
  854|      0|                            {
  855|      0|                                more_ = err_handler_(json_errc::unexpected_character, *this);
  856|      0|                                if (!more_)
  ------------------
  |  Branch (856:37): [True: 0, False: 0]
  ------------------
  857|      0|                                {
  858|      0|                                    ec = json_errc::unexpected_character;
  859|      0|                                    return;
  860|      0|                                }
  861|      0|                            }
  862|      0|                            ++input_ptr_;
  863|      0|                            ++position_;
  864|      0|                            break;
  865|      0|                    }
  866|      0|                    break;
  867|      0|                }
  868|      0|                case parse_state::expect_member_name_or_end: 
  ------------------
  |  Branch (868:17): [True: 0, False: 4.17M]
  ------------------
  869|      0|                {
  870|      0|                    if (input_ptr_ >= local_input_end)
  ------------------
  |  Branch (870:25): [True: 0, False: 0]
  ------------------
  871|      0|                    {
  872|      0|                        return;
  873|      0|                    }
  874|      0|                    switch (*input_ptr_)
  875|      0|                    {
  876|      0|                        JSONCONS_ILLEGAL_CONTROL_CHARACTER:
  ------------------
  |  |   34|      0|        case 0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x0b: \
  |  |  ------------------
  |  |  |  Branch (34:9): [True: 0, False: 0]
  |  |  |  Branch (34:19): [True: 0, False: 0]
  |  |  |  Branch (34:29): [True: 0, False: 0]
  |  |  |  Branch (34:39): [True: 0, False: 0]
  |  |  |  Branch (34:49): [True: 0, False: 0]
  |  |  |  Branch (34:59): [True: 0, False: 0]
  |  |  |  Branch (34:69): [True: 0, False: 0]
  |  |  |  Branch (34:79): [True: 0, False: 0]
  |  |  |  Branch (34:89): [True: 0, False: 0]
  |  |  |  Branch (34:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   35|      0|        case 0x0c:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16: \
  |  |  ------------------
  |  |  |  Branch (35:9): [True: 0, False: 0]
  |  |  |  Branch (35:19): [True: 0, False: 0]
  |  |  |  Branch (35:29): [True: 0, False: 0]
  |  |  |  Branch (35:39): [True: 0, False: 0]
  |  |  |  Branch (35:49): [True: 0, False: 0]
  |  |  |  Branch (35:59): [True: 0, False: 0]
  |  |  |  Branch (35:69): [True: 0, False: 0]
  |  |  |  Branch (35:79): [True: 0, False: 0]
  |  |  |  Branch (35:89): [True: 0, False: 0]
  |  |  |  Branch (35:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   36|      0|        case 0x17:case 0x18:case 0x19:case 0x1a:case 0x1b:case 0x1c:case 0x1d:case 0x1e:case 0x1f 
  |  |  ------------------
  |  |  |  Branch (36:9): [True: 0, False: 0]
  |  |  |  Branch (36:19): [True: 0, False: 0]
  |  |  |  Branch (36:29): [True: 0, False: 0]
  |  |  |  Branch (36:39): [True: 0, False: 0]
  |  |  |  Branch (36:49): [True: 0, False: 0]
  |  |  |  Branch (36:59): [True: 0, False: 0]
  |  |  |  Branch (36:69): [True: 0, False: 0]
  |  |  |  Branch (36:79): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  877|      0|                            more_ = err_handler_(json_errc::illegal_control_character, *this);
  878|      0|                            if (!more_)
  ------------------
  |  Branch (878:33): [True: 0, False: 0]
  ------------------
  879|      0|                            {
  880|      0|                                ec = json_errc::illegal_control_character;
  881|      0|                                return;
  882|      0|                            }
  883|      0|                            ++input_ptr_;
  884|      0|                            ++position_;
  885|      0|                            break;
  886|      0|                        case ' ':case '\t':case '\n':case '\r':
  ------------------
  |  Branch (886:25): [True: 0, False: 0]
  |  Branch (886:34): [True: 0, False: 0]
  |  Branch (886:44): [True: 0, False: 0]
  |  Branch (886:54): [True: 0, False: 0]
  ------------------
  887|      0|                            skip_space(&input_ptr_);
  888|      0|                            break;
  889|      0|                        case '/':
  ------------------
  |  Branch (889:25): [True: 0, False: 0]
  ------------------
  890|      0|                            ++input_ptr_;
  891|      0|                            ++position_;
  892|      0|                            push_state(state_); 
  893|      0|                            state_ = parse_state::slash;
  894|      0|                            break;
  895|      0|                        case '}':
  ------------------
  |  Branch (895:25): [True: 0, False: 0]
  ------------------
  896|      0|                            begin_position_ = position_;
  897|      0|                            ++input_ptr_;
  898|      0|                            ++position_;
  899|      0|                            end_object(visitor, ec);
  900|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  901|      0|                            break;
  902|      0|                        case '\"':
  ------------------
  |  Branch (902:25): [True: 0, False: 0]
  ------------------
  903|      0|                            begin_position_ = position_;
  904|      0|                            ++input_ptr_;
  905|      0|                            ++position_;
  906|      0|                            push_state(parse_state::member_name);
  907|      0|                            state_ = parse_state::string;
  908|      0|                            string_state_ = parse_string_state{};
  909|      0|                            escape_tag_ = semantic_tag::noesc;
  910|      0|                            buffer_.clear();
  911|      0|                            input_ptr_ = parse_string(input_ptr_, visitor, ec);
  912|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  913|      0|                            break;
  914|      0|                        case '\'':
  ------------------
  |  Branch (914:25): [True: 0, False: 0]
  ------------------
  915|      0|                            more_ = err_handler_(json_errc::single_quote, *this);
  916|      0|                            if (!more_)
  ------------------
  |  Branch (916:33): [True: 0, False: 0]
  ------------------
  917|      0|                            {
  918|      0|                                ec = json_errc::single_quote;
  919|      0|                                return;
  920|      0|                            }
  921|      0|                            ++input_ptr_;
  922|      0|                            ++position_;
  923|      0|                            break;
  924|      0|                        default:
  ------------------
  |  Branch (924:25): [True: 0, False: 0]
  ------------------
  925|      0|                            more_ = err_handler_(json_errc::expected_key, *this);
  926|      0|                            if (!more_)
  ------------------
  |  Branch (926:33): [True: 0, False: 0]
  ------------------
  927|      0|                            {
  928|      0|                                ec = json_errc::expected_key;
  929|      0|                                return;
  930|      0|                            }
  931|      0|                            ++input_ptr_;
  932|      0|                            ++position_;
  933|      0|                            break;
  934|      0|                    }
  935|      0|                    break;
  936|      0|                }
  937|      0|                case parse_state::expect_member_name: 
  ------------------
  |  Branch (937:17): [True: 0, False: 4.17M]
  ------------------
  938|      0|                {
  939|      0|                    switch (*input_ptr_)
  940|      0|                    {
  941|      0|                        JSONCONS_ILLEGAL_CONTROL_CHARACTER:
  ------------------
  |  |   34|      0|        case 0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x0b: \
  |  |  ------------------
  |  |  |  Branch (34:9): [True: 0, False: 0]
  |  |  |  Branch (34:19): [True: 0, False: 0]
  |  |  |  Branch (34:29): [True: 0, False: 0]
  |  |  |  Branch (34:39): [True: 0, False: 0]
  |  |  |  Branch (34:49): [True: 0, False: 0]
  |  |  |  Branch (34:59): [True: 0, False: 0]
  |  |  |  Branch (34:69): [True: 0, False: 0]
  |  |  |  Branch (34:79): [True: 0, False: 0]
  |  |  |  Branch (34:89): [True: 0, False: 0]
  |  |  |  Branch (34:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   35|      0|        case 0x0c:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16: \
  |  |  ------------------
  |  |  |  Branch (35:9): [True: 0, False: 0]
  |  |  |  Branch (35:19): [True: 0, False: 0]
  |  |  |  Branch (35:29): [True: 0, False: 0]
  |  |  |  Branch (35:39): [True: 0, False: 0]
  |  |  |  Branch (35:49): [True: 0, False: 0]
  |  |  |  Branch (35:59): [True: 0, False: 0]
  |  |  |  Branch (35:69): [True: 0, False: 0]
  |  |  |  Branch (35:79): [True: 0, False: 0]
  |  |  |  Branch (35:89): [True: 0, False: 0]
  |  |  |  Branch (35:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   36|      0|        case 0x17:case 0x18:case 0x19:case 0x1a:case 0x1b:case 0x1c:case 0x1d:case 0x1e:case 0x1f 
  |  |  ------------------
  |  |  |  Branch (36:9): [True: 0, False: 0]
  |  |  |  Branch (36:19): [True: 0, False: 0]
  |  |  |  Branch (36:29): [True: 0, False: 0]
  |  |  |  Branch (36:39): [True: 0, False: 0]
  |  |  |  Branch (36:49): [True: 0, False: 0]
  |  |  |  Branch (36:59): [True: 0, False: 0]
  |  |  |  Branch (36:69): [True: 0, False: 0]
  |  |  |  Branch (36:79): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  942|      0|                            more_ = err_handler_(json_errc::illegal_control_character, *this);
  943|      0|                            if (!more_)
  ------------------
  |  Branch (943:33): [True: 0, False: 0]
  ------------------
  944|      0|                            {
  945|      0|                                ec = json_errc::illegal_control_character;
  946|      0|                                return;
  947|      0|                            }
  948|      0|                            ++input_ptr_;
  949|      0|                            ++position_;
  950|      0|                            break;
  951|      0|                        case ' ':case '\t':case '\n':case '\r':
  ------------------
  |  Branch (951:25): [True: 0, False: 0]
  |  Branch (951:34): [True: 0, False: 0]
  |  Branch (951:44): [True: 0, False: 0]
  |  Branch (951:54): [True: 0, False: 0]
  ------------------
  952|      0|                            skip_space(&input_ptr_);
  953|      0|                            break;
  954|      0|                        case '/': 
  ------------------
  |  Branch (954:25): [True: 0, False: 0]
  ------------------
  955|      0|                            ++input_ptr_;
  956|      0|                            ++position_;
  957|      0|                            push_state(state_);
  958|      0|                            state_ = parse_state::slash;
  959|      0|                            break;
  960|      0|                        case '\"':
  ------------------
  |  Branch (960:25): [True: 0, False: 0]
  ------------------
  961|      0|                            begin_position_ = position_;
  962|      0|                            ++input_ptr_;
  963|      0|                            ++position_;
  964|      0|                            push_state(parse_state::member_name);
  965|      0|                            state_ = parse_state::string;
  966|      0|                            string_state_ = parse_string_state{};
  967|      0|                            escape_tag_ = semantic_tag::noesc;
  968|      0|                            buffer_.clear();
  969|      0|                            input_ptr_ = parse_string(input_ptr_, visitor, ec);
  970|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  971|      0|                            break;
  972|      0|                        case '}':
  ------------------
  |  Branch (972:25): [True: 0, False: 0]
  ------------------
  973|      0|                            begin_position_ = position_;
  974|      0|                            ++input_ptr_;
  975|      0|                            ++position_;
  976|      0|                            if (!allow_trailing_comma_)
  ------------------
  |  Branch (976:33): [True: 0, False: 0]
  ------------------
  977|      0|                            {
  978|      0|                                more_ = err_handler_(json_errc::extra_comma, *this);
  979|      0|                                if (!more_)
  ------------------
  |  Branch (979:37): [True: 0, False: 0]
  ------------------
  980|      0|                                {
  981|      0|                                    ec = json_errc::extra_comma;
  982|      0|                                    return;
  983|      0|                                }
  984|      0|                            }
  985|      0|                            end_object(visitor, ec);  // Recover
  986|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  987|      0|                            break;
  988|      0|                        case '\'':
  ------------------
  |  Branch (988:25): [True: 0, False: 0]
  ------------------
  989|      0|                            more_ = err_handler_(json_errc::single_quote, *this);
  990|      0|                            if (!more_)
  ------------------
  |  Branch (990:33): [True: 0, False: 0]
  ------------------
  991|      0|                            {
  992|      0|                                ec = json_errc::single_quote;
  993|      0|                                return;
  994|      0|                            }
  995|      0|                            ++input_ptr_;
  996|      0|                            ++position_;
  997|      0|                            break;
  998|      0|                        default:
  ------------------
  |  Branch (998:25): [True: 0, False: 0]
  ------------------
  999|      0|                            more_ = err_handler_(json_errc::expected_key, *this);
 1000|      0|                            if (!more_)
  ------------------
  |  Branch (1000:33): [True: 0, False: 0]
  ------------------
 1001|      0|                            {
 1002|      0|                                ec = json_errc::expected_key;
 1003|      0|                                return;
 1004|      0|                            }
 1005|      0|                            ++input_ptr_;
 1006|      0|                            ++position_;
 1007|      0|                            break;
 1008|      0|                    }
 1009|      0|                    break;
 1010|      0|                }
 1011|      0|                case parse_state::expect_colon: 
  ------------------
  |  Branch (1011:17): [True: 0, False: 4.17M]
  ------------------
 1012|      0|                {
 1013|      0|                    switch (*input_ptr_)
 1014|      0|                    {
 1015|      0|                        JSONCONS_ILLEGAL_CONTROL_CHARACTER:
  ------------------
  |  |   34|      0|        case 0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x0b: \
  |  |  ------------------
  |  |  |  Branch (34:9): [True: 0, False: 0]
  |  |  |  Branch (34:19): [True: 0, False: 0]
  |  |  |  Branch (34:29): [True: 0, False: 0]
  |  |  |  Branch (34:39): [True: 0, False: 0]
  |  |  |  Branch (34:49): [True: 0, False: 0]
  |  |  |  Branch (34:59): [True: 0, False: 0]
  |  |  |  Branch (34:69): [True: 0, False: 0]
  |  |  |  Branch (34:79): [True: 0, False: 0]
  |  |  |  Branch (34:89): [True: 0, False: 0]
  |  |  |  Branch (34:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   35|      0|        case 0x0c:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16: \
  |  |  ------------------
  |  |  |  Branch (35:9): [True: 0, False: 0]
  |  |  |  Branch (35:19): [True: 0, False: 0]
  |  |  |  Branch (35:29): [True: 0, False: 0]
  |  |  |  Branch (35:39): [True: 0, False: 0]
  |  |  |  Branch (35:49): [True: 0, False: 0]
  |  |  |  Branch (35:59): [True: 0, False: 0]
  |  |  |  Branch (35:69): [True: 0, False: 0]
  |  |  |  Branch (35:79): [True: 0, False: 0]
  |  |  |  Branch (35:89): [True: 0, False: 0]
  |  |  |  Branch (35:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   36|      0|        case 0x17:case 0x18:case 0x19:case 0x1a:case 0x1b:case 0x1c:case 0x1d:case 0x1e:case 0x1f 
  |  |  ------------------
  |  |  |  Branch (36:9): [True: 0, False: 0]
  |  |  |  Branch (36:19): [True: 0, False: 0]
  |  |  |  Branch (36:29): [True: 0, False: 0]
  |  |  |  Branch (36:39): [True: 0, False: 0]
  |  |  |  Branch (36:49): [True: 0, False: 0]
  |  |  |  Branch (36:59): [True: 0, False: 0]
  |  |  |  Branch (36:69): [True: 0, False: 0]
  |  |  |  Branch (36:79): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1016|      0|                            more_ = err_handler_(json_errc::illegal_control_character, *this);
 1017|      0|                            if (!more_)
  ------------------
  |  Branch (1017:33): [True: 0, False: 0]
  ------------------
 1018|      0|                            {
 1019|      0|                                ec = json_errc::illegal_control_character;
 1020|      0|                                return;
 1021|      0|                            }
 1022|      0|                            ++input_ptr_;
 1023|      0|                            ++position_;
 1024|      0|                            break;
 1025|      0|                        case ' ':case '\t':case '\n':case '\r':
  ------------------
  |  Branch (1025:25): [True: 0, False: 0]
  |  Branch (1025:34): [True: 0, False: 0]
  |  Branch (1025:44): [True: 0, False: 0]
  |  Branch (1025:54): [True: 0, False: 0]
  ------------------
 1026|      0|                            skip_space(&input_ptr_);
 1027|      0|                            break;
 1028|      0|                        case '/': 
  ------------------
  |  Branch (1028:25): [True: 0, False: 0]
  ------------------
 1029|      0|                            push_state(state_);
 1030|      0|                            state_ = parse_state::slash;
 1031|      0|                            ++input_ptr_;
 1032|      0|                            ++position_;
 1033|      0|                            break;
 1034|      0|                        case ':':
  ------------------
  |  Branch (1034:25): [True: 0, False: 0]
  ------------------
 1035|      0|                            state_ = parse_state::expect_value;
 1036|      0|                            ++input_ptr_;
 1037|      0|                            ++position_;
 1038|      0|                            break;
 1039|      0|                        default:
  ------------------
  |  Branch (1039:25): [True: 0, False: 0]
  ------------------
 1040|      0|                            more_ = err_handler_(json_errc::expected_colon, *this);
 1041|      0|                            if (!more_)
  ------------------
  |  Branch (1041:33): [True: 0, False: 0]
  ------------------
 1042|      0|                            {
 1043|      0|                                ec = json_errc::expected_colon;
 1044|      0|                                return;
 1045|      0|                            }
 1046|      0|                            ++input_ptr_;
 1047|      0|                            ++position_;
 1048|      0|                            break;
 1049|      0|                    }
 1050|      0|                    break;
 1051|      0|                }
 1052|      0|                case parse_state::expect_value: 
  ------------------
  |  Branch (1052:17): [True: 0, False: 4.17M]
  ------------------
 1053|      0|                {
 1054|      0|                    switch (*input_ptr_)
 1055|      0|                    {
 1056|      0|                        JSONCONS_ILLEGAL_CONTROL_CHARACTER:
  ------------------
  |  |   34|      0|        case 0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x0b: \
  |  |  ------------------
  |  |  |  Branch (34:9): [True: 0, False: 0]
  |  |  |  Branch (34:19): [True: 0, False: 0]
  |  |  |  Branch (34:29): [True: 0, False: 0]
  |  |  |  Branch (34:39): [True: 0, False: 0]
  |  |  |  Branch (34:49): [True: 0, False: 0]
  |  |  |  Branch (34:59): [True: 0, False: 0]
  |  |  |  Branch (34:69): [True: 0, False: 0]
  |  |  |  Branch (34:79): [True: 0, False: 0]
  |  |  |  Branch (34:89): [True: 0, False: 0]
  |  |  |  Branch (34:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   35|      0|        case 0x0c:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16: \
  |  |  ------------------
  |  |  |  Branch (35:9): [True: 0, False: 0]
  |  |  |  Branch (35:19): [True: 0, False: 0]
  |  |  |  Branch (35:29): [True: 0, False: 0]
  |  |  |  Branch (35:39): [True: 0, False: 0]
  |  |  |  Branch (35:49): [True: 0, False: 0]
  |  |  |  Branch (35:59): [True: 0, False: 0]
  |  |  |  Branch (35:69): [True: 0, False: 0]
  |  |  |  Branch (35:79): [True: 0, False: 0]
  |  |  |  Branch (35:89): [True: 0, False: 0]
  |  |  |  Branch (35:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   36|      0|        case 0x17:case 0x18:case 0x19:case 0x1a:case 0x1b:case 0x1c:case 0x1d:case 0x1e:case 0x1f 
  |  |  ------------------
  |  |  |  Branch (36:9): [True: 0, False: 0]
  |  |  |  Branch (36:19): [True: 0, False: 0]
  |  |  |  Branch (36:29): [True: 0, False: 0]
  |  |  |  Branch (36:39): [True: 0, False: 0]
  |  |  |  Branch (36:49): [True: 0, False: 0]
  |  |  |  Branch (36:59): [True: 0, False: 0]
  |  |  |  Branch (36:69): [True: 0, False: 0]
  |  |  |  Branch (36:79): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1057|      0|                            more_ = err_handler_(json_errc::illegal_control_character, *this);
 1058|      0|                            if (!more_)
  ------------------
  |  Branch (1058:33): [True: 0, False: 0]
  ------------------
 1059|      0|                            {
 1060|      0|                                ec = json_errc::illegal_control_character;
 1061|      0|                                return;
 1062|      0|                            }
 1063|      0|                            ++input_ptr_;
 1064|      0|                            ++position_;
 1065|      0|                            break;
 1066|      0|                        case ' ':case '\t':case '\n':case '\r':
  ------------------
  |  Branch (1066:25): [True: 0, False: 0]
  |  Branch (1066:34): [True: 0, False: 0]
  |  Branch (1066:44): [True: 0, False: 0]
  |  Branch (1066:54): [True: 0, False: 0]
  ------------------
 1067|      0|                            skip_space(&input_ptr_);
 1068|      0|                            break;
 1069|      0|                        case '/': 
  ------------------
  |  Branch (1069:25): [True: 0, False: 0]
  ------------------
 1070|      0|                            push_state(state_);
 1071|      0|                            ++input_ptr_;
 1072|      0|                            ++position_;
 1073|      0|                            state_ = parse_state::slash;
 1074|      0|                            break;
 1075|      0|                        case '{':
  ------------------
  |  Branch (1075:25): [True: 0, False: 0]
  ------------------
 1076|      0|                            begin_position_ = position_;
 1077|      0|                            ++input_ptr_;
 1078|      0|                            ++position_;
 1079|      0|                            begin_object(visitor, ec);
 1080|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1081|      0|                            break;
 1082|      0|                        case '[':
  ------------------
  |  Branch (1082:25): [True: 0, False: 0]
  ------------------
 1083|      0|                            begin_position_ = position_;
 1084|      0|                            ++input_ptr_;
 1085|      0|                            ++position_;
 1086|      0|                            begin_array(visitor, ec);
 1087|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1088|      0|                            break;
 1089|      0|                        case '\"':
  ------------------
  |  Branch (1089:25): [True: 0, False: 0]
  ------------------
 1090|      0|                            begin_position_ = position_;
 1091|      0|                            ++input_ptr_;
 1092|      0|                            ++position_;
 1093|      0|                            state_ = parse_state::string;
 1094|      0|                            string_state_ = parse_string_state{};
 1095|      0|                            escape_tag_ = semantic_tag::noesc;
 1096|      0|                            buffer_.clear();
 1097|      0|                            input_ptr_ = parse_string(input_ptr_, visitor, ec);
 1098|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1099|      0|                            break;
 1100|      0|                        case '-':
  ------------------
  |  Branch (1100:25): [True: 0, False: 0]
  ------------------
 1101|      0|                            buffer_.clear();
 1102|      0|                            buffer_.push_back('-');
 1103|      0|                            begin_position_ = position_;
 1104|      0|                            ++input_ptr_;
 1105|      0|                            ++position_;
 1106|      0|                            state_ = parse_state::number;
 1107|      0|                            number_state_ = parse_number_state::minus;
 1108|      0|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
 1109|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1110|      0|                            break;
 1111|      0|                        case '0': 
  ------------------
  |  Branch (1111:25): [True: 0, False: 0]
  ------------------
 1112|      0|                            buffer_.clear();
 1113|      0|                            buffer_.push_back(static_cast<char>(*input_ptr_));
 1114|      0|                            begin_position_ = position_;
 1115|      0|                            ++input_ptr_;
 1116|      0|                            ++position_;
 1117|      0|                            state_ = parse_state::number;
 1118|      0|                            number_state_ = parse_number_state::zero;
 1119|      0|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
 1120|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1121|      0|                            break;
 1122|      0|                        case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (1122:25): [True: 0, False: 0]
  |  Branch (1122:34): [True: 0, False: 0]
  |  Branch (1122:43): [True: 0, False: 0]
  |  Branch (1122:52): [True: 0, False: 0]
  |  Branch (1122:61): [True: 0, False: 0]
  |  Branch (1122:70): [True: 0, False: 0]
  |  Branch (1122:79): [True: 0, False: 0]
  |  Branch (1122:88): [True: 0, False: 0]
  |  Branch (1122:98): [True: 0, False: 0]
  ------------------
 1123|      0|                            buffer_.clear();
 1124|      0|                            buffer_.push_back(static_cast<char>(*input_ptr_));
 1125|      0|                            begin_position_ = position_;
 1126|      0|                            ++input_ptr_;
 1127|      0|                            ++position_;
 1128|      0|                            state_ = parse_state::number;
 1129|      0|                            number_state_ = parse_number_state::integer;
 1130|      0|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
 1131|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1132|      0|                            break;
 1133|      0|                        case 'n':
  ------------------
  |  Branch (1133:25): [True: 0, False: 0]
  ------------------
 1134|      0|                            parse_null(visitor, ec);
 1135|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1136|      0|                            break;
 1137|      0|                        case 't':
  ------------------
  |  Branch (1137:25): [True: 0, False: 0]
  ------------------
 1138|      0|                            input_ptr_ = parse_true(input_ptr_, visitor, ec);
 1139|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1140|      0|                            break;
 1141|      0|                        case 'f':
  ------------------
  |  Branch (1141:25): [True: 0, False: 0]
  ------------------
 1142|      0|                            input_ptr_ = parse_false(input_ptr_, visitor, ec);
 1143|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1144|      0|                            break;
 1145|      0|                        case ']':
  ------------------
  |  Branch (1145:25): [True: 0, False: 0]
  ------------------
 1146|      0|                            begin_position_ = position_;
 1147|      0|                            ++input_ptr_;
 1148|      0|                            ++position_;
 1149|      0|                            if (parent() == parse_state::array)
  ------------------
  |  Branch (1149:33): [True: 0, False: 0]
  ------------------
 1150|      0|                            {
 1151|      0|                                if (!allow_trailing_comma_)
  ------------------
  |  Branch (1151:37): [True: 0, False: 0]
  ------------------
 1152|      0|                                {
 1153|      0|                                    more_ = err_handler_(json_errc::extra_comma, *this);
 1154|      0|                                    if (!more_)
  ------------------
  |  Branch (1154:41): [True: 0, False: 0]
  ------------------
 1155|      0|                                    {
 1156|      0|                                        ec = json_errc::extra_comma;
 1157|      0|                                        return;
 1158|      0|                                    }
 1159|      0|                                }
 1160|      0|                                end_array(visitor, ec);  // Recover
 1161|      0|                                if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1162|      0|                            }
 1163|      0|                            else
 1164|      0|                            {
 1165|      0|                                more_ = err_handler_(json_errc::expected_value, *this);
 1166|      0|                                if (!more_)
  ------------------
  |  Branch (1166:37): [True: 0, False: 0]
  ------------------
 1167|      0|                                {
 1168|      0|                                    ec = json_errc::expected_value;
 1169|      0|                                    return;
 1170|      0|                                }
 1171|      0|                            }
 1172|       |                            
 1173|      0|                            break;
 1174|      0|                        case '\'':
  ------------------
  |  Branch (1174:25): [True: 0, False: 0]
  ------------------
 1175|      0|                            more_ = err_handler_(json_errc::single_quote, *this);
 1176|      0|                            if (!more_)
  ------------------
  |  Branch (1176:33): [True: 0, False: 0]
  ------------------
 1177|      0|                            {
 1178|      0|                                ec = json_errc::single_quote;
 1179|      0|                                return;
 1180|      0|                            }
 1181|      0|                            ++input_ptr_;
 1182|      0|                            ++position_;
 1183|      0|                            break;
 1184|      0|                        default:
  ------------------
  |  Branch (1184:25): [True: 0, False: 0]
  ------------------
 1185|      0|                            more_ = err_handler_(json_errc::expected_value, *this);
 1186|      0|                            if (!more_)
  ------------------
  |  Branch (1186:33): [True: 0, False: 0]
  ------------------
 1187|      0|                            {
 1188|      0|                                ec = json_errc::expected_value;
 1189|      0|                                return;
 1190|      0|                            }
 1191|      0|                            ++input_ptr_;
 1192|      0|                            ++position_;
 1193|      0|                            break;
 1194|      0|                    }
 1195|      0|                    break;
 1196|      0|                }
 1197|      0|                case parse_state::expect_value_or_end: 
  ------------------
  |  Branch (1197:17): [True: 0, False: 4.17M]
  ------------------
 1198|      0|                {
 1199|      0|                    switch (*input_ptr_)
 1200|      0|                    {
 1201|      0|                        JSONCONS_ILLEGAL_CONTROL_CHARACTER:
  ------------------
  |  |   34|      0|        case 0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x0b: \
  |  |  ------------------
  |  |  |  Branch (34:9): [True: 0, False: 0]
  |  |  |  Branch (34:19): [True: 0, False: 0]
  |  |  |  Branch (34:29): [True: 0, False: 0]
  |  |  |  Branch (34:39): [True: 0, False: 0]
  |  |  |  Branch (34:49): [True: 0, False: 0]
  |  |  |  Branch (34:59): [True: 0, False: 0]
  |  |  |  Branch (34:69): [True: 0, False: 0]
  |  |  |  Branch (34:79): [True: 0, False: 0]
  |  |  |  Branch (34:89): [True: 0, False: 0]
  |  |  |  Branch (34:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   35|      0|        case 0x0c:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16: \
  |  |  ------------------
  |  |  |  Branch (35:9): [True: 0, False: 0]
  |  |  |  Branch (35:19): [True: 0, False: 0]
  |  |  |  Branch (35:29): [True: 0, False: 0]
  |  |  |  Branch (35:39): [True: 0, False: 0]
  |  |  |  Branch (35:49): [True: 0, False: 0]
  |  |  |  Branch (35:59): [True: 0, False: 0]
  |  |  |  Branch (35:69): [True: 0, False: 0]
  |  |  |  Branch (35:79): [True: 0, False: 0]
  |  |  |  Branch (35:89): [True: 0, False: 0]
  |  |  |  Branch (35:99): [True: 0, False: 0]
  |  |  ------------------
  |  |   36|      0|        case 0x17:case 0x18:case 0x19:case 0x1a:case 0x1b:case 0x1c:case 0x1d:case 0x1e:case 0x1f 
  |  |  ------------------
  |  |  |  Branch (36:9): [True: 0, False: 0]
  |  |  |  Branch (36:19): [True: 0, False: 0]
  |  |  |  Branch (36:29): [True: 0, False: 0]
  |  |  |  Branch (36:39): [True: 0, False: 0]
  |  |  |  Branch (36:49): [True: 0, False: 0]
  |  |  |  Branch (36:59): [True: 0, False: 0]
  |  |  |  Branch (36:69): [True: 0, False: 0]
  |  |  |  Branch (36:79): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1202|      0|                            more_ = err_handler_(json_errc::illegal_control_character, *this);
 1203|      0|                            if (!more_)
  ------------------
  |  Branch (1203:33): [True: 0, False: 0]
  ------------------
 1204|      0|                            {
 1205|      0|                                ec = json_errc::illegal_control_character;
 1206|      0|                                return;
 1207|      0|                            }
 1208|      0|                            ++input_ptr_;
 1209|      0|                            ++position_;
 1210|      0|                            break;
 1211|      0|                        case ' ':case '\t':case '\n':case '\r':
  ------------------
  |  Branch (1211:25): [True: 0, False: 0]
  |  Branch (1211:34): [True: 0, False: 0]
  |  Branch (1211:44): [True: 0, False: 0]
  |  Branch (1211:54): [True: 0, False: 0]
  ------------------
 1212|      0|                            skip_space(&input_ptr_);
 1213|      0|                            break;
 1214|      0|                        case '/': 
  ------------------
  |  Branch (1214:25): [True: 0, False: 0]
  ------------------
 1215|      0|                            ++input_ptr_;
 1216|      0|                            ++position_;
 1217|      0|                            push_state(state_);
 1218|      0|                            state_ = parse_state::slash;
 1219|      0|                            break;
 1220|      0|                        case '{':
  ------------------
  |  Branch (1220:25): [True: 0, False: 0]
  ------------------
 1221|      0|                            begin_position_ = position_;
 1222|      0|                            ++input_ptr_;
 1223|      0|                            ++position_;
 1224|      0|                            begin_object(visitor, ec);
 1225|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1226|      0|                            break;
 1227|      0|                        case '[':
  ------------------
  |  Branch (1227:25): [True: 0, False: 0]
  ------------------
 1228|      0|                            begin_position_ = position_;
 1229|      0|                            ++input_ptr_;
 1230|      0|                            ++position_;
 1231|      0|                            begin_array(visitor, ec);
 1232|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1233|      0|                            break;
 1234|      0|                        case ']':
  ------------------
  |  Branch (1234:25): [True: 0, False: 0]
  ------------------
 1235|      0|                            begin_position_ = position_;
 1236|      0|                            ++input_ptr_;
 1237|      0|                            ++position_;
 1238|      0|                            end_array(visitor, ec);
 1239|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1240|      0|                            break;
 1241|      0|                        case '\"':
  ------------------
  |  Branch (1241:25): [True: 0, False: 0]
  ------------------
 1242|      0|                            begin_position_ = position_;
 1243|      0|                            ++input_ptr_;
 1244|      0|                            ++position_;
 1245|      0|                            state_ = parse_state::string;
 1246|      0|                            string_state_ = parse_string_state{};
 1247|      0|                            escape_tag_ = semantic_tag::noesc;
 1248|      0|                            buffer_.clear();
 1249|      0|                            input_ptr_ = parse_string(input_ptr_, visitor, ec);
 1250|      0|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1251|      0|                            break;
 1252|      0|                        case '-':
  ------------------
  |  Branch (1252:25): [True: 0, False: 0]
  ------------------
 1253|      0|                            buffer_.clear();
 1254|      0|                            buffer_.push_back('-');
 1255|      0|                            begin_position_ = position_;
 1256|      0|                            ++input_ptr_;
 1257|      0|                            ++position_;
 1258|      0|                            state_ = parse_state::number;
 1259|      0|                            number_state_ = parse_number_state::minus;
 1260|      0|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
 1261|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1262|      0|                            break;
 1263|      0|                        case '0': 
  ------------------
  |  Branch (1263:25): [True: 0, False: 0]
  ------------------
 1264|      0|                            buffer_.clear();
 1265|      0|                            buffer_.push_back(static_cast<char>(*input_ptr_));
 1266|      0|                            begin_position_ = position_;
 1267|      0|                            ++input_ptr_;
 1268|      0|                            ++position_;
 1269|      0|                            state_ = parse_state::number;
 1270|      0|                            number_state_ = parse_number_state::zero;
 1271|      0|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
 1272|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1273|      0|                            break;
 1274|      0|                        case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (1274:25): [True: 0, False: 0]
  |  Branch (1274:34): [True: 0, False: 0]
  |  Branch (1274:43): [True: 0, False: 0]
  |  Branch (1274:52): [True: 0, False: 0]
  |  Branch (1274:61): [True: 0, False: 0]
  |  Branch (1274:70): [True: 0, False: 0]
  |  Branch (1274:79): [True: 0, False: 0]
  |  Branch (1274:88): [True: 0, False: 0]
  |  Branch (1274:98): [True: 0, False: 0]
  ------------------
 1275|      0|                            buffer_.clear();
 1276|      0|                            buffer_.push_back(static_cast<char>(*input_ptr_));
 1277|      0|                            begin_position_ = position_;
 1278|      0|                            ++input_ptr_;
 1279|      0|                            ++position_;
 1280|      0|                            state_ = parse_state::number;
 1281|      0|                            number_state_ = parse_number_state::integer;
 1282|      0|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
 1283|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1284|      0|                            break;
 1285|      0|                        case 'n':
  ------------------
  |  Branch (1285:25): [True: 0, False: 0]
  ------------------
 1286|      0|                            parse_null(visitor, ec);
 1287|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1288|      0|                            break;
 1289|      0|                        case 't':
  ------------------
  |  Branch (1289:25): [True: 0, False: 0]
  ------------------
 1290|      0|                            input_ptr_ = parse_true(input_ptr_, visitor, ec);
 1291|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1292|      0|                            break;
 1293|      0|                        case 'f':
  ------------------
  |  Branch (1293:25): [True: 0, False: 0]
  ------------------
 1294|      0|                            input_ptr_ = parse_false(input_ptr_, visitor, ec);
 1295|      0|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1296|      0|                            break;
 1297|      0|                        case '\'':
  ------------------
  |  Branch (1297:25): [True: 0, False: 0]
  ------------------
 1298|      0|                            more_ = err_handler_(json_errc::single_quote, *this);
 1299|      0|                            if (!more_)
  ------------------
  |  Branch (1299:33): [True: 0, False: 0]
  ------------------
 1300|      0|                            {
 1301|      0|                                ec = json_errc::single_quote;
 1302|      0|                                return;
 1303|      0|                            }
 1304|      0|                            ++input_ptr_;
 1305|      0|                            ++position_;
 1306|      0|                            break;
 1307|      0|                        default:
  ------------------
  |  Branch (1307:25): [True: 0, False: 0]
  ------------------
 1308|      0|                            more_ = err_handler_(json_errc::expected_value, *this);
 1309|      0|                            if (!more_)
  ------------------
  |  Branch (1309:33): [True: 0, False: 0]
  ------------------
 1310|      0|                            {
 1311|      0|                                ec = json_errc::expected_value;
 1312|      0|                                return;
 1313|      0|                            }
 1314|      0|                            ++input_ptr_;
 1315|      0|                            ++position_;
 1316|      0|                            break;
 1317|      0|                        }
 1318|      0|                    }
 1319|      0|                    break;
 1320|   277k|                case parse_state::string: 
  ------------------
  |  Branch (1320:17): [True: 277k, False: 3.89M]
  ------------------
 1321|   277k|                    input_ptr_ = parse_string(input_ptr_, visitor, ec);
 1322|   277k|                    if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|   277k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 53, False: 277k]
  |  |  ------------------
  ------------------
 1323|   277k|                    break;
 1324|   277k|                case parse_state::number:
  ------------------
  |  Branch (1324:17): [True: 2.02k, False: 4.17M]
  ------------------
 1325|  2.02k|                    input_ptr_ = parse_number(input_ptr_, visitor, ec);  
 1326|  2.02k|                    if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|  2.02k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4, False: 2.02k]
  |  |  ------------------
  ------------------
 1327|  2.02k|                    break;
 1328|  2.02k|                case parse_state::t: 
  ------------------
  |  Branch (1328:17): [True: 29, False: 4.17M]
  ------------------
 1329|     29|                    switch (*input_ptr_)
 1330|     29|                    {
 1331|     16|                        case 'r':
  ------------------
  |  Branch (1331:25): [True: 16, False: 13]
  ------------------
 1332|     16|                            ++input_ptr_;
 1333|     16|                            ++position_;
 1334|     16|                            state_ = parse_state::tr;
 1335|     16|                            break;
 1336|     13|                        default:
  ------------------
  |  Branch (1336:25): [True: 13, False: 16]
  ------------------
 1337|     13|                            err_handler_(json_errc::invalid_value, *this);
 1338|     13|                            ec = json_errc::invalid_value;
 1339|     13|                            more_ = false;
 1340|     13|                            return;
 1341|     29|                    }
 1342|     16|                    break;
 1343|     16|                case parse_state::tr: 
  ------------------
  |  Branch (1343:17): [True: 15, False: 4.17M]
  ------------------
 1344|     15|                    switch (*input_ptr_)
 1345|     15|                    {
 1346|      4|                        case 'u':
  ------------------
  |  Branch (1346:25): [True: 4, False: 11]
  ------------------
 1347|      4|                            state_ = parse_state::tru;
 1348|      4|                            break;
 1349|     11|                        default:
  ------------------
  |  Branch (1349:25): [True: 11, False: 4]
  ------------------
 1350|     11|                            err_handler_(json_errc::invalid_value, *this);
 1351|     11|                            ec = json_errc::invalid_value;
 1352|     11|                            more_ = false;
 1353|     11|                            return;
 1354|     15|                    }
 1355|      4|                    ++input_ptr_;
 1356|      4|                    ++position_;
 1357|      4|                    break;
 1358|      3|                case parse_state::tru: 
  ------------------
  |  Branch (1358:17): [True: 3, False: 4.17M]
  ------------------
 1359|      3|                    switch (*input_ptr_)
 1360|      3|                    {
 1361|      1|                        case 'e':
  ------------------
  |  Branch (1361:25): [True: 1, False: 2]
  ------------------
 1362|      1|                            ++input_ptr_;
 1363|      1|                            ++position_;
 1364|      1|                            visitor.bool_value(true,  semantic_tag::none, *this, ec);
 1365|      1|                            if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1366|      1|                            if (level_ == 0)
  ------------------
  |  Branch (1366:33): [True: 1, False: 0]
  ------------------
 1367|      1|                            {
 1368|      1|                                state_ = parse_state::accept;
 1369|      1|                            }
 1370|      0|                            else
 1371|      0|                            {
 1372|      0|                                state_ = parse_state::expect_comma_or_end;
 1373|      0|                            }
 1374|      1|                            more_ = !cursor_mode_;
 1375|      1|                            break;
 1376|      2|                        default:
  ------------------
  |  Branch (1376:25): [True: 2, False: 1]
  ------------------
 1377|      2|                            err_handler_(json_errc::invalid_value, *this);
 1378|      2|                            ec = json_errc::invalid_value;
 1379|      2|                            more_ = false;
 1380|      2|                            return;
 1381|      3|                    }
 1382|      1|                    break;
 1383|     46|                case parse_state::f: 
  ------------------
  |  Branch (1383:17): [True: 46, False: 4.17M]
  ------------------
 1384|     46|                    switch (*input_ptr_)
 1385|     46|                    {
 1386|     34|                        case 'a':
  ------------------
  |  Branch (1386:25): [True: 34, False: 12]
  ------------------
 1387|     34|                            ++input_ptr_;
 1388|     34|                            ++position_;
 1389|     34|                            state_ = parse_state::fa;
 1390|     34|                            break;
 1391|     12|                        default:
  ------------------
  |  Branch (1391:25): [True: 12, False: 34]
  ------------------
 1392|     12|                            err_handler_(json_errc::invalid_value, *this);
 1393|     12|                            ec = json_errc::invalid_value;
 1394|     12|                            more_ = false;
 1395|     12|                            return;
 1396|     46|                    }
 1397|     34|                    break;
 1398|     34|                case parse_state::fa: 
  ------------------
  |  Branch (1398:17): [True: 33, False: 4.17M]
  ------------------
 1399|     33|                    switch (*input_ptr_)
 1400|     33|                    {
 1401|     22|                        case 'l':
  ------------------
  |  Branch (1401:25): [True: 22, False: 11]
  ------------------
 1402|     22|                            state_ = parse_state::fal;
 1403|     22|                            break;
 1404|     11|                        default:
  ------------------
  |  Branch (1404:25): [True: 11, False: 22]
  ------------------
 1405|     11|                            err_handler_(json_errc::invalid_value, *this);
 1406|     11|                            ec = json_errc::invalid_value;
 1407|     11|                            more_ = false;
 1408|     11|                            return;
 1409|     33|                    }
 1410|     22|                    ++input_ptr_;
 1411|     22|                    ++position_;
 1412|     22|                    break;
 1413|     21|                case parse_state::fal: 
  ------------------
  |  Branch (1413:17): [True: 21, False: 4.17M]
  ------------------
 1414|     21|                    switch (*input_ptr_)
 1415|     21|                    {
 1416|     10|                        case 's':
  ------------------
  |  Branch (1416:25): [True: 10, False: 11]
  ------------------
 1417|     10|                            state_ = parse_state::fals;
 1418|     10|                            break;
 1419|     11|                        default:
  ------------------
  |  Branch (1419:25): [True: 11, False: 10]
  ------------------
 1420|     11|                            err_handler_(json_errc::invalid_value, *this);
 1421|     11|                            ec = json_errc::invalid_value;
 1422|     11|                            more_ = false;
 1423|     11|                            return;
 1424|     21|                    }
 1425|     10|                    ++input_ptr_;
 1426|     10|                    ++position_;
 1427|     10|                    break;
 1428|      9|                case parse_state::fals: 
  ------------------
  |  Branch (1428:17): [True: 9, False: 4.17M]
  ------------------
 1429|      9|                    switch (*input_ptr_)
 1430|      9|                    {
 1431|      1|                        case 'e':
  ------------------
  |  Branch (1431:25): [True: 1, False: 8]
  ------------------
 1432|      1|                            ++input_ptr_;
 1433|      1|                            ++position_;
 1434|      1|                            visitor.bool_value(false, semantic_tag::none, *this, ec);
 1435|      1|                            if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1436|      1|                            if (level_ == 0)
  ------------------
  |  Branch (1436:33): [True: 1, False: 0]
  ------------------
 1437|      1|                            {
 1438|      1|                                state_ = parse_state::accept;
 1439|      1|                            }
 1440|      0|                            else
 1441|      0|                            {
 1442|      0|                                state_ = parse_state::expect_comma_or_end;
 1443|      0|                            }
 1444|      1|                            more_ = !cursor_mode_;
 1445|      1|                            break;
 1446|      8|                        default:
  ------------------
  |  Branch (1446:25): [True: 8, False: 1]
  ------------------
 1447|      8|                            err_handler_(json_errc::invalid_value, *this);
 1448|      8|                            ec = json_errc::invalid_value;
 1449|      8|                            more_ = false;
 1450|      8|                            return;
 1451|      9|                    }
 1452|      1|                    break;
 1453|     34|                case parse_state::n: 
  ------------------
  |  Branch (1453:17): [True: 34, False: 4.17M]
  ------------------
 1454|     34|                    switch (*input_ptr_)
 1455|     34|                    {
 1456|     21|                        case 'u':
  ------------------
  |  Branch (1456:25): [True: 21, False: 13]
  ------------------
 1457|     21|                            ++input_ptr_;
 1458|     21|                            ++position_;
 1459|     21|                            state_ = parse_state::nu;
 1460|     21|                            break;
 1461|     13|                        default:
  ------------------
  |  Branch (1461:25): [True: 13, False: 21]
  ------------------
 1462|     13|                            err_handler_(json_errc::invalid_value, *this);
 1463|     13|                            ec = json_errc::invalid_value;
 1464|     13|                            more_ = false;
 1465|     13|                            return;
 1466|     34|                    }
 1467|     21|                    break;
 1468|     21|                case parse_state::nu: 
  ------------------
  |  Branch (1468:17): [True: 20, False: 4.17M]
  ------------------
 1469|     20|                    switch (*input_ptr_)
 1470|     20|                    {
 1471|     12|                        case 'l':
  ------------------
  |  Branch (1471:25): [True: 12, False: 8]
  ------------------
 1472|     12|                            state_ = parse_state::nul;
 1473|     12|                            break;
 1474|      8|                        default:
  ------------------
  |  Branch (1474:25): [True: 8, False: 12]
  ------------------
 1475|      8|                            err_handler_(json_errc::invalid_value, *this);
 1476|      8|                            ec = json_errc::invalid_value;
 1477|      8|                            more_ = false;
 1478|      8|                            return;
 1479|     20|                    }
 1480|     12|                    ++input_ptr_;
 1481|     12|                    ++position_;
 1482|     12|                    break;
 1483|     11|                case parse_state::nul: 
  ------------------
  |  Branch (1483:17): [True: 11, False: 4.17M]
  ------------------
 1484|     11|                    ++position_;
 1485|     11|                    switch (*input_ptr_)
 1486|     11|                    {
 1487|      1|                        case 'l':
  ------------------
  |  Branch (1487:25): [True: 1, False: 10]
  ------------------
 1488|      1|                            visitor.null_value(semantic_tag::none, *this, ec);
 1489|      1|                            if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1490|      1|                            if (level_ == 0)
  ------------------
  |  Branch (1490:33): [True: 1, False: 0]
  ------------------
 1491|      1|                            {
 1492|      1|                                state_ = parse_state::accept;
 1493|      1|                            }
 1494|      0|                            else
 1495|      0|                            {
 1496|      0|                                state_ = parse_state::expect_comma_or_end;
 1497|      0|                            }
 1498|      1|                            more_ = !cursor_mode_;
 1499|      1|                            break;
 1500|     10|                        default:
  ------------------
  |  Branch (1500:25): [True: 10, False: 1]
  ------------------
 1501|     10|                            err_handler_(json_errc::invalid_value, *this);
 1502|     10|                            ec = json_errc::invalid_value;
 1503|     10|                            more_ = false;
 1504|     10|                            return;
 1505|     11|                    }
 1506|      1|                    ++input_ptr_;
 1507|      1|                    break;
 1508|  46.1k|                case parse_state::slash: 
  ------------------
  |  Branch (1508:17): [True: 46.1k, False: 4.13M]
  ------------------
 1509|  46.1k|                {
 1510|  46.1k|                    switch (*input_ptr_)
 1511|  46.1k|                    {
 1512|    991|                        case '*':
  ------------------
  |  Branch (1512:25): [True: 991, False: 45.2k]
  ------------------
 1513|    991|                            if (!allow_comments_)
  ------------------
  |  Branch (1513:33): [True: 0, False: 991]
  ------------------
 1514|      0|                            {
 1515|      0|                                ec = json_errc::illegal_comment;
 1516|      0|                                return;
 1517|      0|                            }
 1518|    991|                            more_ = err_handler_(json_errc::illegal_comment, *this);
 1519|    991|                            if (!more_)
  ------------------
  |  Branch (1519:33): [True: 0, False: 991]
  ------------------
 1520|      0|                            {
 1521|      0|                                ec = json_errc::illegal_comment;
 1522|      0|                                return;
 1523|      0|                            }
 1524|    991|                            state_ = parse_state::slash_star;
 1525|    991|                            break;
 1526|  45.2k|                        case '/':
  ------------------
  |  Branch (1526:25): [True: 45.2k, False: 992]
  ------------------
 1527|  45.2k|                            if (!allow_comments_)
  ------------------
  |  Branch (1527:33): [True: 0, False: 45.2k]
  ------------------
 1528|      0|                            {
 1529|      0|                                ec = json_errc::illegal_comment;
 1530|      0|                                return;
 1531|      0|                            }
 1532|  45.2k|                            more_ = err_handler_(json_errc::illegal_comment, *this);
 1533|  45.2k|                            if (!more_)
  ------------------
  |  Branch (1533:33): [True: 0, False: 45.2k]
  ------------------
 1534|      0|                            {
 1535|      0|                                ec = json_errc::illegal_comment;
 1536|      0|                                return;
 1537|      0|                            }
 1538|  45.2k|                            state_ = parse_state::slash_slash;
 1539|  45.2k|                            break;
 1540|      1|                        default:    
  ------------------
  |  Branch (1540:25): [True: 1, False: 46.1k]
  ------------------
 1541|      1|                            more_ = err_handler_(json_errc::syntax_error, *this);
 1542|      1|                            if (!more_)
  ------------------
  |  Branch (1542:33): [True: 1, False: 0]
  ------------------
 1543|      1|                            {
 1544|      1|                                ec = json_errc::syntax_error;
 1545|      1|                                return;
 1546|      1|                            }
 1547|      0|                            break;
 1548|  46.1k|                    }
 1549|  46.1k|                    ++input_ptr_;
 1550|  46.1k|                    ++position_;
 1551|  46.1k|                    break;
 1552|  46.1k|                }
 1553|  1.51M|                case parse_state::slash_star:  
  ------------------
  |  Branch (1553:17): [True: 1.51M, False: 2.66M]
  ------------------
 1554|  1.51M|                {
 1555|  1.51M|                    switch (*input_ptr_)
 1556|  1.51M|                    {
 1557|  1.25k|                        case '\r':
  ------------------
  |  Branch (1557:25): [True: 1.25k, False: 1.51M]
  ------------------
 1558|  1.25k|                            push_state(state_);
 1559|  1.25k|                            ++input_ptr_;
 1560|  1.25k|                            ++position_;
 1561|  1.25k|                            state_ = parse_state::cr;
 1562|  1.25k|                            break;
 1563|  1.13k|                        case '\n':
  ------------------
  |  Branch (1563:25): [True: 1.13k, False: 1.51M]
  ------------------
 1564|  1.13k|                            ++input_ptr_;
 1565|  1.13k|                            ++line_;
 1566|  1.13k|                            ++position_;
 1567|  1.13k|                            mark_position_ = position_;
 1568|  1.13k|                            break;
 1569|  1.75k|                        case '*':
  ------------------
  |  Branch (1569:25): [True: 1.75k, False: 1.51M]
  ------------------
 1570|  1.75k|                            ++input_ptr_;
 1571|  1.75k|                            ++position_;
 1572|  1.75k|                            state_ = parse_state::slash_star_star;
 1573|  1.75k|                            break;
 1574|  1.51M|                        default:
  ------------------
  |  Branch (1574:25): [True: 1.51M, False: 4.14k]
  ------------------
 1575|  1.51M|                            ++input_ptr_;
 1576|  1.51M|                            ++position_;
 1577|  1.51M|                            break;
 1578|  1.51M|                    }
 1579|  1.51M|                    break;
 1580|  1.51M|                }
 1581|  2.23M|                case parse_state::slash_slash: 
  ------------------
  |  Branch (1581:17): [True: 2.23M, False: 1.94M]
  ------------------
 1582|  2.23M|                {
 1583|  2.23M|                    switch (*input_ptr_)
 1584|  2.23M|                    {
 1585|  14.7k|                    case '\r':
  ------------------
  |  Branch (1585:21): [True: 14.7k, False: 2.22M]
  ------------------
 1586|  45.1k|                    case '\n':
  ------------------
  |  Branch (1586:21): [True: 30.3k, False: 2.20M]
  ------------------
 1587|  45.1k|                        state_ = pop_state();
 1588|  45.1k|                        break;
 1589|  2.19M|                    default:
  ------------------
  |  Branch (1589:21): [True: 2.19M, False: 45.1k]
  ------------------
 1590|  2.19M|                        ++input_ptr_;
 1591|  2.19M|                        ++position_;
 1592|  2.23M|                    }
 1593|  2.23M|                    break;
 1594|  2.23M|                }
 1595|  2.23M|                case parse_state::slash_star_star: 
  ------------------
  |  Branch (1595:17): [True: 1.75k, False: 4.17M]
  ------------------
 1596|  1.75k|                {
 1597|  1.75k|                    switch (*input_ptr_)
 1598|  1.75k|                    {
 1599|    906|                    case '/':
  ------------------
  |  Branch (1599:21): [True: 906, False: 844]
  ------------------
 1600|    906|                        state_ = pop_state();
 1601|    906|                        break;
 1602|    844|                    default:    
  ------------------
  |  Branch (1602:21): [True: 844, False: 906]
  ------------------
 1603|    844|                        state_ = parse_state::slash_star;
 1604|    844|                        break;
 1605|  1.75k|                    }
 1606|  1.75k|                    ++input_ptr_;
 1607|  1.75k|                    ++position_;
 1608|  1.75k|                    break;
 1609|  1.75k|                }
 1610|      0|                default:
  ------------------
  |  Branch (1610:17): [True: 0, False: 4.17M]
  ------------------
 1611|      0|                    JSONCONS_ASSERT(false);
  ------------------
  |  |   49|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, Folded]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1612|      0|                    break;
 1613|  4.17M|            }
 1614|  4.17M|        }
 1615|  9.05k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE17end_integer_valueERNS_18basic_json_visitorIcEERNS1_10error_codeE:
 2457|    814|    {
 2458|    814|        if (buffer_[0] == '-')
  ------------------
  |  Branch (2458:13): [True: 452, False: 362]
  ------------------
 2459|    452|        {
 2460|    452|            end_negative_value(visitor, ec);
 2461|    452|        }
 2462|    362|        else
 2463|    362|        {
 2464|    362|            end_positive_value(visitor, ec);
 2465|    362|        }
 2466|    814|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE18end_negative_valueERNS_18basic_json_visitorIcEERNS1_10error_codeE:
 2469|    452|    {
 2470|    452|        int64_t val;
 2471|    452|        auto result = jsoncons::dec_to_integer(buffer_.data(), buffer_.length(), val);
 2472|    452|        if (result)
  ------------------
  |  Branch (2472:13): [True: 277, False: 175]
  ------------------
 2473|    277|        {
 2474|    277|            visitor.int64_value(val, semantic_tag::none, *this, ec);
 2475|    277|            if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|    277|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 277]
  |  |  ------------------
  ------------------
 2476|    277|        }
 2477|    175|        else // Must be overflow
 2478|    175|        {
 2479|    175|            if (lossless_bignum_)
  ------------------
  |  Branch (2479:17): [True: 175, False: 0]
  ------------------
 2480|    175|            {
 2481|    175|                visitor.string_value(buffer_, semantic_tag::bigint, *this, ec);
 2482|    175|                if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|    175|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 175]
  |  |  ------------------
  ------------------
 2483|    175|            }
 2484|      0|            else
 2485|      0|            {
 2486|      0|                double d{0};
 2487|      0|                result = jsoncons::decstr_to_double(&buffer_[0], buffer_.length(), d);
 2488|      0|                if (JSONCONS_LIKELY(result))
  ------------------
  |  |   77|      0|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2489|      0|                {
 2490|      0|                    visitor.double_value(d, semantic_tag::none, *this, ec);
 2491|      0|                    if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2492|      0|                }
 2493|      0|                else if (result.ec == std::errc::result_out_of_range)
  ------------------
  |  Branch (2493:26): [True: 0, False: 0]
  ------------------
 2494|      0|                {
 2495|      0|                    visitor.double_value(d, semantic_tag{}, *this, ec); // REVISIT
 2496|      0|                    if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2497|      0|                }
 2498|      0|                else
 2499|      0|                {
 2500|      0|                    ec = json_errc::invalid_number;
 2501|      0|                    more_ = false;
 2502|      0|                    return;
 2503|      0|                }
 2504|      0|            }
 2505|    175|        }
 2506|    452|        more_ = !cursor_mode_;
 2507|    452|        after_value(ec);
 2508|    452|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE11after_valueERNS1_10error_codeE:
 2684|  1.86k|    {
 2685|  1.86k|        switch (parent())
 2686|  1.86k|        {
 2687|      0|            case parse_state::array:
  ------------------
  |  Branch (2687:13): [True: 0, False: 1.86k]
  ------------------
 2688|      0|            case parse_state::object:
  ------------------
  |  Branch (2688:13): [True: 0, False: 1.86k]
  ------------------
 2689|      0|                state_ = parse_state::expect_comma_or_end;
 2690|      0|                break;
 2691|  1.86k|            case parse_state::root:
  ------------------
  |  Branch (2691:13): [True: 1.86k, False: 0]
  ------------------
 2692|  1.86k|                state_ = parse_state::accept;
 2693|  1.86k|                break;
 2694|      0|            default:
  ------------------
  |  Branch (2694:13): [True: 0, False: 1.86k]
  ------------------
 2695|      0|                more_ = err_handler_(json_errc::syntax_error, *this);
 2696|      0|                if (!more_)
  ------------------
  |  Branch (2696:21): [True: 0, False: 0]
  ------------------
 2697|      0|                {
 2698|      0|                    ec = json_errc::syntax_error;
 2699|      0|                    return;
 2700|      0|                }
 2701|      0|                break;
 2702|  1.86k|        }
 2703|  1.86k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE18end_positive_valueERNS_18basic_json_visitorIcEERNS1_10error_codeE:
 2511|    362|    {
 2512|    362|        uint64_t val;
 2513|    362|        auto result = jsoncons::dec_to_integer(buffer_.data(), buffer_.length(), val);
 2514|    362|        if (result)
  ------------------
  |  Branch (2514:13): [True: 291, False: 71]
  ------------------
 2515|    291|        {
 2516|    291|            visitor.uint64_value(val, semantic_tag::none, *this, ec);
 2517|    291|            if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|    291|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 291]
  |  |  ------------------
  ------------------
 2518|    291|        }
 2519|     71|        else // Must be overflow
 2520|     71|        {
 2521|     71|            if (lossless_bignum_)
  ------------------
  |  Branch (2521:17): [True: 71, False: 0]
  ------------------
 2522|     71|            {
 2523|     71|                visitor.string_value(buffer_, semantic_tag::bigint, *this, ec);
 2524|     71|                if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|     71|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 71]
  |  |  ------------------
  ------------------
 2525|     71|            }
 2526|      0|            else
 2527|      0|            {
 2528|      0|                double d{0};
 2529|      0|                result = jsoncons::decstr_to_double(&buffer_[0], buffer_.length(), d);
 2530|      0|                if (JSONCONS_LIKELY(result))
  ------------------
  |  |   77|      0|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2531|      0|                {
 2532|      0|                    visitor.double_value(d, semantic_tag::none, *this, ec);
 2533|      0|                    if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2534|      0|                }
 2535|      0|                else if (result.ec == std::errc::result_out_of_range)
  ------------------
  |  Branch (2535:26): [True: 0, False: 0]
  ------------------
 2536|      0|                {
 2537|      0|                    visitor.double_value(d, semantic_tag{}, *this, ec); // REVISIT
 2538|      0|                    if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2539|      0|                }
 2540|      0|                else
 2541|      0|                {
 2542|      0|                    ec = json_errc::invalid_number;
 2543|      0|                    more_ = false;
 2544|      0|                    return;
 2545|      0|                }
 2546|      0|            }
 2547|     71|        }
 2548|    362|        more_ = !cursor_mode_;
 2549|    362|        after_value(ec);
 2550|    362|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE18end_fraction_valueERNS_18basic_json_visitorIcEERNS1_10error_codeE:
 2553|  1.05k|    {
 2554|  1.05k|        if (lossless_number_)
  ------------------
  |  Branch (2554:13): [True: 0, False: 1.05k]
  ------------------
 2555|      0|        {
 2556|      0|            visitor.string_value(buffer_, semantic_tag::bigdec, *this, ec);
 2557|      0|            if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2558|      0|        }
 2559|  1.05k|        else
 2560|  1.05k|        {
 2561|  1.05k|            double d{0};
 2562|  1.05k|            auto result = jsoncons::decstr_to_double(&buffer_[0], buffer_.length(), d);
 2563|  1.05k|            if (JSONCONS_LIKELY(result))
  ------------------
  |  |   77|  1.05k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 987, False: 64]
  |  |  ------------------
  ------------------
 2564|    987|            {
 2565|    987|                visitor.double_value(d, semantic_tag::none, *this, ec);
 2566|    987|                if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|    987|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 987]
  |  |  ------------------
  ------------------
 2567|    987|            }
 2568|     64|            else if (result.ec == std::errc::result_out_of_range)
  ------------------
  |  Branch (2568:22): [True: 64, False: 0]
  ------------------
 2569|     64|            {
 2570|     64|                if (lossless_bignum_)
  ------------------
  |  Branch (2570:21): [True: 64, False: 0]
  ------------------
 2571|     64|                {
 2572|     64|                    visitor.string_value(buffer_, semantic_tag::bigdec, *this, ec);
 2573|     64|                    if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|     64|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 64]
  |  |  ------------------
  ------------------
 2574|     64|                }
 2575|      0|                else
 2576|      0|                {
 2577|      0|                    visitor.double_value(d, semantic_tag{}, *this, ec); // REVISIT
 2578|      0|                    if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2579|      0|                }
 2580|     64|            }
 2581|      0|            else
 2582|      0|            {
 2583|      0|                ec = json_errc::invalid_number;
 2584|      0|                more_ = false;
 2585|      0|                return;
 2586|      0|            }
 2587|  1.05k|        }
 2588|       |
 2589|  1.05k|        more_ = !cursor_mode_;
 2590|  1.05k|        after_value(ec);
 2591|  1.05k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE9pop_stateEv:
 2712|  47.4k|    {
 2713|  47.4k|        JSONCONS_ASSERT(!state_stack_.empty())
  ------------------
  |  |   49|  47.4k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 47.4k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 2714|  47.4k|        parse_state state = state_stack_.back();
 2715|  47.4k|        state_stack_.pop_back();
 2716|  47.4k|        return state;
 2717|  47.4k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE10skip_spaceEPPKc:
 2408|  46.3k|    {
 2409|  46.3k|        const char_type* local_input_end = input_end_;
 2410|  46.3k|        const char_type* cur = *ptr;
 2411|       |
 2412|  5.42M|        while (cur < local_input_end) 
  ------------------
  |  Branch (2412:16): [True: 5.42M, False: 246]
  ------------------
 2413|  5.42M|        {
 2414|  5.42M|            if (*cur == ' ' || *cur == '\t')
  ------------------
  |  Branch (2414:17): [True: 49.9k, False: 5.37M]
  |  Branch (2414:32): [True: 3.11M, False: 2.25M]
  ------------------
 2415|  3.16M|            {
 2416|  3.16M|                ++cur;
 2417|  3.16M|                ++position_;
 2418|  3.16M|                continue;
 2419|  3.16M|            }
 2420|  2.25M|            if (*cur == '\n')
  ------------------
  |  Branch (2420:17): [True: 144k, False: 2.11M]
  ------------------
 2421|   144k|            {
 2422|   144k|                ++cur;
 2423|   144k|                ++line_;
 2424|   144k|                ++position_;
 2425|   144k|                mark_position_ = position_;
 2426|   144k|                continue;
 2427|   144k|            }
 2428|  2.11M|            if (*cur == '\r')
  ------------------
  |  Branch (2428:17): [True: 2.06M, False: 45.9k]
  ------------------
 2429|  2.06M|            {
 2430|  2.06M|                ++cur;
 2431|  2.06M|                ++position_;
 2432|  2.06M|                if (cur < local_input_end)
  ------------------
  |  Branch (2432:21): [True: 2.06M, False: 150]
  ------------------
 2433|  2.06M|                {
 2434|  2.06M|                    ++line_;
 2435|  2.06M|                    if (*cur == '\n')
  ------------------
  |  Branch (2435:25): [True: 4.35k, False: 2.06M]
  ------------------
 2436|  4.35k|                    {
 2437|  4.35k|                        ++cur;
 2438|  4.35k|                        ++position_;
 2439|  4.35k|                    }
 2440|  2.06M|                    mark_position_ = position_;
 2441|  2.06M|                }
 2442|    150|                else
 2443|    150|                {
 2444|    150|                    push_state(state_);
 2445|    150|                    state_ = parse_state::cr;
 2446|    150|                    *ptr = cur;
 2447|    150|                    return; 
 2448|    150|                }
 2449|  2.06M|                continue;
 2450|  2.06M|            }
 2451|  45.9k|            break;
 2452|  2.11M|        }
 2453|  46.1k|        *ptr = cur;
 2454|  46.1k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE10push_stateENS_11parse_stateE:
 2706|  51.0k|    {
 2707|  51.0k|        state_stack_.push_back(state);
 2708|       |        //std::cout << "max_nesting_depth: " << max_nesting_depth_ << ", capacity: " << state_stack_.capacity() << ", nesting_depth: " << level_ << ", stack size: " << state_stack_.size() << "\n";
 2709|  51.0k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE12begin_objectERNS_18basic_json_visitorIcEERNS1_10error_codeE:
  361|      3|    {
  362|      3|        if (JSONCONS_UNLIKELY(++level_ > max_nesting_depth_))
  ------------------
  |  |   78|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  363|      0|        {
  364|      0|            more_ = err_handler_(json_errc::max_nesting_depth_exceeded, *this);
  365|      0|            if (!more_)
  ------------------
  |  Branch (365:17): [True: 0, False: 0]
  ------------------
  366|      0|            {
  367|      0|                ec = json_errc::max_nesting_depth_exceeded;
  368|      0|                return;
  369|      0|            }
  370|      0|        } 
  371|       |
  372|      3|        push_state(parse_state::object);
  373|      3|        state_ = parse_state::expect_member_name_or_end;
  374|      3|        visitor.begin_object(semantic_tag::none, *this, ec);
  375|      3|        more_ = !cursor_mode_;
  376|      3|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE11begin_arrayERNS_18basic_json_visitorIcEERNS1_10error_codeE:
  425|      3|    {
  426|      3|        if (++level_ > max_nesting_depth_)
  ------------------
  |  Branch (426:13): [True: 0, False: 3]
  ------------------
  427|      0|        {
  428|      0|            more_ = err_handler_(json_errc::max_nesting_depth_exceeded, *this);
  429|      0|            if (!more_)
  ------------------
  |  Branch (429:17): [True: 0, False: 0]
  ------------------
  430|      0|            {
  431|      0|                ec = json_errc::max_nesting_depth_exceeded;
  432|      0|                return;
  433|      0|            }
  434|      0|        }
  435|       |
  436|      3|        push_state(parse_state::array);
  437|      3|        state_ = parse_state::expect_value_or_end;
  438|      3|        visitor.begin_array(semantic_tag::none, *this, ec);
  439|      3|        if (JSONCONS_UNLIKELY(ec)){return;};
  ------------------
  |  |   78|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  440|       |
  441|      3|        more_ = !cursor_mode_;
  442|      3|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE12parse_stringEPKcRNS_18basic_json_visitorIcEERNS1_10error_codeE:
 1955|   278k|    {
 1956|   278k|        const char_type* local_input_end = input_end_;
 1957|   278k|        const char_type* sb = cur;
 1958|       |
 1959|   278k|        switch (string_state_)
 1960|   278k|        {
 1961|   278k|            case parse_string_state::text:
  ------------------
  |  Branch (1961:13): [True: 278k, False: 696]
  ------------------
 1962|   278k|                goto text;
 1963|    129|            case parse_string_state::escape:
  ------------------
  |  Branch (1963:13): [True: 129, False: 278k]
  ------------------
 1964|    129|                goto escape;
 1965|     65|            case parse_string_state::escape_u1:
  ------------------
  |  Branch (1965:13): [True: 65, False: 278k]
  ------------------
 1966|     65|                goto escape_u1;
 1967|     65|            case parse_string_state::escape_u2:
  ------------------
  |  Branch (1967:13): [True: 65, False: 278k]
  ------------------
 1968|     65|                goto escape_u2;
 1969|     66|            case parse_string_state::escape_u3:
  ------------------
  |  Branch (1969:13): [True: 66, False: 278k]
  ------------------
 1970|     66|                goto escape_u3;
 1971|     64|            case parse_string_state::escape_u4:
  ------------------
  |  Branch (1971:13): [True: 64, False: 278k]
  ------------------
 1972|     64|                goto escape_u4;
 1973|     47|            case parse_string_state::escape_expect_surrogate_pair1:
  ------------------
  |  Branch (1973:13): [True: 47, False: 278k]
  ------------------
 1974|     47|                goto escape_expect_surrogate_pair1;
 1975|     60|            case parse_string_state::escape_expect_surrogate_pair2:
  ------------------
  |  Branch (1975:13): [True: 60, False: 278k]
  ------------------
 1976|     60|                goto escape_expect_surrogate_pair2;
 1977|     45|            case parse_string_state::escape_u5:
  ------------------
  |  Branch (1977:13): [True: 45, False: 278k]
  ------------------
 1978|     45|                goto escape_u5;
 1979|     48|            case parse_string_state::escape_u6:
  ------------------
  |  Branch (1979:13): [True: 48, False: 278k]
  ------------------
 1980|     48|                goto escape_u6;
 1981|     56|            case parse_string_state::escape_u7:
  ------------------
  |  Branch (1981:13): [True: 56, False: 278k]
  ------------------
 1982|     56|                goto escape_u7;
 1983|     51|            case parse_string_state::escape_u8:
  ------------------
  |  Branch (1983:13): [True: 51, False: 278k]
  ------------------
 1984|     51|                goto escape_u8;
 1985|      0|            default:
  ------------------
  |  Branch (1985:13): [True: 0, False: 278k]
  ------------------
 1986|      0|                JSONCONS_UNREACHABLE();               
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1987|   278k|        }
 1988|       |
 1989|  2.31M|text:
 1990|  16.1M|        while (cur < local_input_end)
  ------------------
  |  Branch (1990:16): [True: 16.1M, False: 776]
  ------------------
 1991|  16.1M|        {
 1992|  16.1M|            switch (*cur)
 1993|  16.1M|            {
 1994|    600|                JSONCONS_ILLEGAL_CONTROL_CHARACTER:
  ------------------
  |  |   34|     13|        case 0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x0b: \
  |  |  ------------------
  |  |  |  Branch (34:9): [True: 2, False: 16.1M]
  |  |  |  Branch (34:19): [True: 1, False: 16.1M]
  |  |  |  Branch (34:29): [True: 1, False: 16.1M]
  |  |  |  Branch (34:39): [True: 1, False: 16.1M]
  |  |  |  Branch (34:49): [True: 1, False: 16.1M]
  |  |  |  Branch (34:59): [True: 1, False: 16.1M]
  |  |  |  Branch (34:69): [True: 1, False: 16.1M]
  |  |  |  Branch (34:79): [True: 2, False: 16.1M]
  |  |  |  Branch (34:89): [True: 1, False: 16.1M]
  |  |  |  Branch (34:99): [True: 2, False: 16.1M]
  |  |  ------------------
  |  |   35|     28|        case 0x0c:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16: \
  |  |  ------------------
  |  |  |  Branch (35:9): [True: 2, False: 16.1M]
  |  |  |  Branch (35:19): [True: 1, False: 16.1M]
  |  |  |  Branch (35:29): [True: 1, False: 16.1M]
  |  |  |  Branch (35:39): [True: 3, False: 16.1M]
  |  |  |  Branch (35:49): [True: 1, False: 16.1M]
  |  |  |  Branch (35:59): [True: 2, False: 16.1M]
  |  |  |  Branch (35:69): [True: 2, False: 16.1M]
  |  |  |  Branch (35:79): [True: 1, False: 16.1M]
  |  |  |  Branch (35:89): [True: 1, False: 16.1M]
  |  |  |  Branch (35:99): [True: 1, False: 16.1M]
  |  |  ------------------
  |  |   36|     39|        case 0x17:case 0x18:case 0x19:case 0x1a:case 0x1b:case 0x1c:case 0x1d:case 0x1e:case 0x1f 
  |  |  ------------------
  |  |  |  Branch (36:9): [True: 2, False: 16.1M]
  |  |  |  Branch (36:19): [True: 1, False: 16.1M]
  |  |  |  Branch (36:29): [True: 2, False: 16.1M]
  |  |  |  Branch (36:39): [True: 1, False: 16.1M]
  |  |  |  Branch (36:49): [True: 1, False: 16.1M]
  |  |  |  Branch (36:59): [True: 1, False: 16.1M]
  |  |  |  Branch (36:69): [True: 1, False: 16.1M]
  |  |  |  Branch (36:79): [True: 1, False: 16.1M]
  |  |  ------------------
  ------------------
 1995|    600|                {
 1996|    600|                    position_ += (cur - sb + 1);
 1997|    600|                    more_ = err_handler_(json_errc::illegal_control_character, *this);
 1998|    600|                    if (!more_)
  ------------------
  |  Branch (1998:25): [True: 39, False: 0]
  ------------------
 1999|     39|                    {
 2000|     39|                        ec = json_errc::illegal_control_character;
 2001|     39|                        string_state_ = parse_string_state{};
 2002|     39|                        return cur;
 2003|     39|                    }
 2004|       |                    // recovery - skip
 2005|      0|                    buffer_.append(sb,cur-sb);
 2006|      0|                    ++cur;
 2007|      0|                    string_state_ = parse_string_state{};
 2008|      0|                    return cur;
 2009|    600|                }
 2010|      1|                case '\n':
  ------------------
  |  Branch (2010:17): [True: 1, False: 16.1M]
  ------------------
 2011|      3|                case '\r':
  ------------------
  |  Branch (2011:17): [True: 2, False: 16.1M]
  ------------------
 2012|      4|                case '\t':
  ------------------
  |  Branch (2012:17): [True: 1, False: 16.1M]
  ------------------
 2013|      4|                {
 2014|      4|                    position_ += (cur - sb + 1);
 2015|      4|                    if (!err_handler_(json_errc::illegal_character_in_string, *this))
  ------------------
  |  Branch (2015:25): [True: 4, False: 0]
  ------------------
 2016|      4|                    {
 2017|      4|                        more_ = false;
 2018|      4|                        ec = json_errc::illegal_character_in_string;
 2019|      4|                        return cur;
 2020|      4|                    }
 2021|       |                    // recovery - skip
 2022|      0|                    buffer_.append(sb,cur-sb);
 2023|      0|                    sb = cur + 1;
 2024|      0|                    break;
 2025|      4|                }
 2026|  2.31M|                case '\\': 
  ------------------
  |  Branch (2026:17): [True: 2.31M, False: 13.8M]
  ------------------
 2027|  2.31M|                {
 2028|  2.31M|                    buffer_.append(sb,cur-sb);
 2029|  2.31M|                    position_ += (cur - sb + 1);
 2030|  2.31M|                    ++cur;
 2031|  2.31M|                    escape_tag_ = semantic_tag{};
 2032|  2.31M|                    goto escape;
 2033|      4|                }
 2034|    326|                case '\"':
  ------------------
  |  Branch (2034:17): [True: 326, False: 16.1M]
  ------------------
 2035|    326|                {
 2036|    326|                    position_ += (cur - sb + 1);
 2037|    326|                    if (buffer_.empty())
  ------------------
  |  Branch (2037:25): [True: 260, False: 66]
  ------------------
 2038|    260|                    {
 2039|    260|                        end_string_value(sb,cur-sb, visitor, ec);
 2040|    260|                        if (JSONCONS_UNLIKELY(ec)) {return cur;}
  ------------------
  |  |   78|    260|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 173, False: 87]
  |  |  ------------------
  ------------------
 2041|    260|                    }
 2042|     66|                    else
 2043|     66|                    {
 2044|     66|                        buffer_.append(sb,cur-sb);
 2045|     66|                        end_string_value(buffer_.data(), buffer_.length(), visitor, ec);
 2046|     66|                        if (JSONCONS_UNLIKELY(ec)) {return cur;}
  ------------------
  |  |   78|     66|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 44, False: 22]
  |  |  ------------------
  ------------------
 2047|     66|                    }
 2048|    109|                    ++cur;
 2049|    109|                    return cur;
 2050|    326|                }
 2051|  13.8M|            default:
  ------------------
  |  Branch (2051:13): [True: 13.8M, False: 2.31M]
  ------------------
 2052|  13.8M|                break;
 2053|  16.1M|            }
 2054|  13.8M|            ++cur;
 2055|  13.8M|        }
 2056|       |
 2057|       |        // Buffer exhausted               
 2058|    776|        {
 2059|    776|            buffer_.append(sb,cur-sb);
 2060|    776|            position_ += (cur - sb);
 2061|    776|            string_state_ = parse_string_state{};
 2062|    776|            return cur;
 2063|  2.31M|        }
 2064|       |
 2065|  2.31M|escape:
 2066|  2.31M|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|  2.31M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 147, False: 2.31M]
  |  |  ------------------
  ------------------
 2067|    147|        {
 2068|    147|            string_state_ = parse_string_state::escape;
 2069|    147|            return cur;
 2070|    147|        }
 2071|  2.31M|        switch (*cur)
 2072|  2.31M|        {
 2073|   336k|        case '\"':
  ------------------
  |  Branch (2073:9): [True: 336k, False: 1.97M]
  ------------------
 2074|   336k|            buffer_.push_back('\"');
 2075|   336k|            sb = ++cur;
 2076|   336k|            ++position_;
 2077|   336k|            goto text;
 2078|  1.42M|        case '\\': 
  ------------------
  |  Branch (2078:9): [True: 1.42M, False: 893k]
  ------------------
 2079|  1.42M|            buffer_.push_back('\\');
 2080|  1.42M|            sb = ++cur;
 2081|  1.42M|            ++position_;
 2082|  1.42M|            goto text;
 2083|  1.17k|        case '/':
  ------------------
  |  Branch (2083:9): [True: 1.17k, False: 2.31M]
  ------------------
 2084|  1.17k|            buffer_.push_back('/');
 2085|  1.17k|            sb = ++cur;
 2086|  1.17k|            ++position_;
 2087|  1.17k|            goto text;
 2088|    219|        case 'b':
  ------------------
  |  Branch (2088:9): [True: 219, False: 2.31M]
  ------------------
 2089|    219|            buffer_.push_back('\b');
 2090|    219|            sb = ++cur;
 2091|    219|            ++position_;
 2092|    219|            goto text;
 2093|    341|        case 'f':
  ------------------
  |  Branch (2093:9): [True: 341, False: 2.31M]
  ------------------
 2094|    341|            buffer_.push_back('\f');
 2095|    341|            sb = ++cur;
 2096|    341|            ++position_;
 2097|    341|            goto text;
 2098|    279|        case 'n':
  ------------------
  |  Branch (2098:9): [True: 279, False: 2.31M]
  ------------------
 2099|    279|            buffer_.push_back('\n');
 2100|    279|            sb = ++cur;
 2101|    279|            ++position_;
 2102|    279|            goto text;
 2103|    475|        case 'r':
  ------------------
  |  Branch (2103:9): [True: 475, False: 2.31M]
  ------------------
 2104|    475|            buffer_.push_back('\r');
 2105|    475|            sb = ++cur;
 2106|    475|            ++position_;
 2107|    475|            goto text;
 2108|    632|        case 't':
  ------------------
  |  Branch (2108:9): [True: 632, False: 2.31M]
  ------------------
 2109|    632|            buffer_.push_back('\t');
 2110|    632|            sb = ++cur;
 2111|    632|            ++position_;
 2112|    632|            goto text;
 2113|   553k|        case 'u':
  ------------------
  |  Branch (2113:9): [True: 553k, False: 1.76M]
  ------------------
 2114|   553k|             cp_ = 0;
 2115|   553k|             ++cur;
 2116|   553k|             ++position_;
 2117|   553k|             goto escape_u1;
 2118|      6|        default:    
  ------------------
  |  Branch (2118:9): [True: 6, False: 2.31M]
  ------------------
 2119|      6|            err_handler_(json_errc::illegal_escaped_character, *this);
 2120|      6|            ec = json_errc::illegal_escaped_character;
 2121|      6|            more_ = false;
 2122|      6|            string_state_ = parse_string_state::escape;
 2123|      6|            return cur;
 2124|  2.31M|        }
 2125|       |
 2126|   553k|escape_u1:
 2127|   553k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   553k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 77, False: 553k]
  |  |  ------------------
  ------------------
 2128|     77|        {
 2129|     77|            string_state_ = parse_string_state::escape_u1;
 2130|     77|            return cur;
 2131|     77|        }
 2132|   553k|        {
 2133|   553k|            cp_ = append_to_codepoint(0, *cur, ec);
 2134|   553k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   553k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 33, False: 553k]
  |  |  ------------------
  ------------------
 2135|     33|            {
 2136|     33|                string_state_ = parse_string_state::escape_u1;
 2137|     33|                return cur;
 2138|     33|            }
 2139|   553k|            ++cur;
 2140|   553k|            ++position_;
 2141|   553k|            goto escape_u2;
 2142|   553k|        }
 2143|       |
 2144|   553k|escape_u2:
 2145|   553k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   553k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 94, False: 553k]
  |  |  ------------------
  ------------------
 2146|     94|        {
 2147|     94|            string_state_ = parse_string_state::escape_u2;
 2148|     94|            return cur;
 2149|     94|        }
 2150|   553k|        {
 2151|   553k|            cp_ = append_to_codepoint(cp_, *cur, ec);
 2152|   553k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   553k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 553k]
  |  |  ------------------
  ------------------
 2153|      2|            {
 2154|      2|                string_state_ = parse_string_state::escape_u2;
 2155|      2|                return cur;
 2156|      2|            }
 2157|   553k|            ++cur;
 2158|   553k|            ++position_;
 2159|   553k|            goto escape_u3;
 2160|   553k|        }
 2161|       |
 2162|   553k|escape_u3:
 2163|   553k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   553k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 82, False: 553k]
  |  |  ------------------
  ------------------
 2164|     82|        {
 2165|     82|            string_state_ = parse_string_state::escape_u3;
 2166|     82|            return cur;
 2167|     82|        }
 2168|   553k|        {
 2169|   553k|            cp_ = append_to_codepoint(cp_, *cur, ec);
 2170|   553k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   553k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4, False: 553k]
  |  |  ------------------
  ------------------
 2171|      4|            {
 2172|      4|                string_state_ = parse_string_state::escape_u3;
 2173|      4|                return cur;
 2174|      4|            }
 2175|   553k|            ++cur;
 2176|   553k|            ++position_;
 2177|   553k|            goto escape_u4;
 2178|   553k|        }
 2179|       |
 2180|   553k|escape_u4:
 2181|   553k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   553k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 85, False: 553k]
  |  |  ------------------
  ------------------
 2182|     85|        {
 2183|     85|            string_state_ = parse_string_state::escape_u4;
 2184|     85|            return cur;
 2185|     85|        }
 2186|   553k|        {
 2187|   553k|            cp_ = append_to_codepoint(cp_, *cur, ec);
 2188|   553k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   553k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 553k]
  |  |  ------------------
  ------------------
 2189|      2|            {
 2190|      2|                string_state_ = parse_string_state::escape_u4;
 2191|      2|                return cur;
 2192|      2|            }
 2193|   553k|            if (unicode_traits::is_high_surrogate(cp_))
  ------------------
  |  Branch (2193:17): [True: 276k, False: 276k]
  ------------------
 2194|   276k|            {
 2195|   276k|                ++cur;
 2196|   276k|                ++position_;
 2197|   276k|                goto escape_expect_surrogate_pair1;
 2198|   276k|            }
 2199|   276k|            else
 2200|   276k|            {
 2201|   276k|                unicode_traits::convert(&cp_, 1, buffer_);
 2202|   276k|                sb = ++cur;
 2203|   276k|                ++position_;
 2204|   276k|                string_state_ = parse_string_state{};
 2205|   276k|                return cur;
 2206|   276k|            }
 2207|   553k|        }
 2208|       |
 2209|   277k|escape_expect_surrogate_pair1:
 2210|   277k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   277k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 72, False: 276k]
  |  |  ------------------
  ------------------
 2211|     72|        {
 2212|     72|            string_state_ = parse_string_state::escape_expect_surrogate_pair1;
 2213|     72|            return cur;
 2214|     72|        }
 2215|   276k|        {
 2216|   276k|            switch (*cur)
 2217|   276k|            {
 2218|   276k|            case '\\': 
  ------------------
  |  Branch (2218:13): [True: 276k, False: 13]
  ------------------
 2219|   276k|                cp2_ = 0;
 2220|   276k|                ++cur;
 2221|   276k|                ++position_;
 2222|   276k|                goto escape_expect_surrogate_pair2;
 2223|     13|            default:
  ------------------
  |  Branch (2223:13): [True: 13, False: 276k]
  ------------------
 2224|     13|                err_handler_(json_errc::expected_codepoint_surrogate_pair, *this);
 2225|     13|                ec = json_errc::expected_codepoint_surrogate_pair;
 2226|     13|                more_ = false;
 2227|     13|                string_state_ = parse_string_state::escape_expect_surrogate_pair1;
 2228|     13|                return cur;
 2229|   276k|            }
 2230|   276k|        }
 2231|       |
 2232|   277k|escape_expect_surrogate_pair2:
 2233|   277k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   277k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 76, False: 276k]
  |  |  ------------------
  ------------------
 2234|     76|        {
 2235|     76|            string_state_ = parse_string_state::escape_expect_surrogate_pair2;
 2236|     76|            return cur;
 2237|     76|        }
 2238|   276k|        {
 2239|   276k|            switch (*cur)
 2240|   276k|            {
 2241|   276k|            case 'u':
  ------------------
  |  Branch (2241:13): [True: 276k, False: 1]
  ------------------
 2242|   276k|                ++cur;
 2243|   276k|                ++position_;
 2244|   276k|                goto escape_u5;
 2245|      1|            default:
  ------------------
  |  Branch (2245:13): [True: 1, False: 276k]
  ------------------
 2246|      1|                err_handler_(json_errc::expected_codepoint_surrogate_pair, *this);
 2247|      1|                ec = json_errc::expected_codepoint_surrogate_pair;
 2248|      1|                more_ = false;
 2249|      1|                string_state_ = parse_string_state::escape_expect_surrogate_pair2;
 2250|      1|                return cur;
 2251|   276k|            }
 2252|   276k|        }
 2253|       |
 2254|   276k|escape_u5:
 2255|   276k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   276k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 60, False: 276k]
  |  |  ------------------
  ------------------
 2256|     60|        {
 2257|     60|            string_state_ = parse_string_state::escape_u5;
 2258|     60|            return cur;
 2259|     60|        }
 2260|   276k|        {
 2261|   276k|            cp2_ = append_to_codepoint(0, *cur, ec);
 2262|   276k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   276k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 276k]
  |  |  ------------------
  ------------------
 2263|      1|            {
 2264|      1|                string_state_ = parse_string_state::escape_u5;
 2265|      1|                return cur;
 2266|      1|            }
 2267|   276k|        }
 2268|   276k|        ++cur;
 2269|   276k|        ++position_;
 2270|   276k|        goto escape_u6;
 2271|       |
 2272|   276k|escape_u6:
 2273|   276k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   276k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 59, False: 276k]
  |  |  ------------------
  ------------------
 2274|     59|        {
 2275|     59|            string_state_ = parse_string_state::escape_u6;
 2276|     59|            return cur;
 2277|     59|        }
 2278|   276k|        {
 2279|   276k|            cp2_ = append_to_codepoint(cp2_, *cur, ec);
 2280|   276k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   276k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 276k]
  |  |  ------------------
  ------------------
 2281|      2|            {
 2282|      2|                string_state_ = parse_string_state::escape_u6;
 2283|      2|                return cur;
 2284|      2|            }
 2285|   276k|            ++cur;
 2286|   276k|            ++position_;
 2287|   276k|            goto escape_u7;
 2288|   276k|        }
 2289|       |
 2290|   276k|escape_u7:
 2291|   276k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   276k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 72, False: 276k]
  |  |  ------------------
  ------------------
 2292|     72|        {
 2293|     72|            string_state_ = parse_string_state::escape_u7;
 2294|     72|            return cur;
 2295|     72|        }
 2296|   276k|        {
 2297|   276k|            cp2_ = append_to_codepoint(cp2_, *cur, ec);
 2298|   276k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   276k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 276k]
  |  |  ------------------
  ------------------
 2299|      1|            {
 2300|      1|                string_state_ = parse_string_state::escape_u7;
 2301|      1|                return cur;
 2302|      1|            }
 2303|   276k|            ++cur;
 2304|   276k|            ++position_;
 2305|   276k|            goto escape_u8;
 2306|   276k|        }
 2307|       |
 2308|   276k|escape_u8:
 2309|   276k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   276k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 64, False: 276k]
  |  |  ------------------
  ------------------
 2310|     64|        {
 2311|     64|            string_state_ = parse_string_state::escape_u8;
 2312|     64|            return cur;
 2313|     64|        }
 2314|   276k|        {
 2315|   276k|            cp2_ = append_to_codepoint(cp2_, *cur, ec);
 2316|   276k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   276k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 276k]
  |  |  ------------------
  ------------------
 2317|      2|            {
 2318|      2|                string_state_ = parse_string_state::escape_u8;
 2319|      2|                return cur;
 2320|      2|            }
 2321|   276k|            uint32_t cp = 0x10000 + ((cp_ & 0x3FF) << 10) + (cp2_ & 0x3FF);
 2322|   276k|            unicode_traits::convert(&cp, 1, buffer_);
 2323|   276k|            sb = ++cur;
 2324|   276k|            ++position_;
 2325|   276k|            goto text;
 2326|   276k|        }
 2327|       |
 2328|      0|        JSONCONS_UNREACHABLE();               
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 2329|   276k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE16end_string_valueEPKcmRNS_18basic_json_visitorIcEERNS1_10error_codeE:
 2594|    326|    {
 2595|    326|        string_view_type sv(s, length);
 2596|    326|        auto result = unicode_traits::validate(s, length);
 2597|    326|        if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (2597:13): [True: 217, False: 109]
  ------------------
 2598|    217|        {
 2599|    217|            translate_conv_errc(result.ec,ec);
 2600|    217|            position_ += (result.ptr - s);
 2601|    217|            return;
 2602|    217|        }
 2603|    109|        switch (parent())
 2604|    109|        {
 2605|      0|            case parse_state::member_name:
  ------------------
  |  Branch (2605:13): [True: 0, False: 109]
  ------------------
 2606|      0|                visitor.key(sv, *this, ec);
 2607|      0|                if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2608|      0|                more_ = !cursor_mode_;
 2609|      0|                pop_state();
 2610|      0|                state_ = parse_state::expect_colon;
 2611|      0|                break;
 2612|      0|            case parse_state::object:
  ------------------
  |  Branch (2612:13): [True: 0, False: 109]
  ------------------
 2613|      0|            case parse_state::array:
  ------------------
  |  Branch (2613:13): [True: 0, False: 109]
  ------------------
 2614|      0|            {
 2615|      0|                auto it = std::find_if(string_double_map_.begin(), string_double_map_.end(), string_maps_to_double{ sv });
 2616|      0|                if (it != string_double_map_.end())
  ------------------
  |  Branch (2616:21): [True: 0, False: 0]
  ------------------
 2617|      0|                {
 2618|      0|                    visitor.double_value((*it).second, semantic_tag::none, *this, ec);
 2619|      0|                    if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2620|      0|                    more_ = !cursor_mode_;
 2621|      0|                }
 2622|      0|                else
 2623|      0|                {
 2624|      0|                    visitor.string_value(sv, escape_tag_, *this, ec);
 2625|      0|                    if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2626|      0|                    more_ = !cursor_mode_;
 2627|      0|                }
 2628|      0|                state_ = parse_state::expect_comma_or_end;
 2629|      0|                break;
 2630|      0|            }
 2631|    109|            case parse_state::root:
  ------------------
  |  Branch (2631:13): [True: 109, False: 0]
  ------------------
 2632|    109|            {
 2633|    109|                auto it = std::find_if(string_double_map_.begin(),string_double_map_.end(),string_maps_to_double{sv});
 2634|    109|                if (it != string_double_map_.end())
  ------------------
  |  Branch (2634:21): [True: 0, False: 109]
  ------------------
 2635|      0|                {
 2636|      0|                    visitor.double_value((*it).second, semantic_tag::none, *this, ec);
 2637|      0|                    if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2638|      0|                    more_ = !cursor_mode_;
 2639|      0|                }
 2640|    109|                else
 2641|    109|                {
 2642|    109|                    visitor.string_value(sv, escape_tag_, *this, ec);
 2643|    109|                    if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|    109|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 109]
  |  |  ------------------
  ------------------
 2644|    109|                    more_ = !cursor_mode_;
 2645|    109|                }
 2646|    109|                state_ = parse_state::accept;
 2647|    109|                break;
 2648|    109|            }
 2649|      0|            default:
  ------------------
  |  Branch (2649:13): [True: 0, False: 109]
  ------------------
 2650|      0|                more_ = err_handler_(json_errc::syntax_error, *this);
 2651|      0|                if (!more_)
  ------------------
  |  Branch (2651:21): [True: 0, False: 0]
  ------------------
 2652|      0|                {
 2653|      0|                    ec = json_errc::syntax_error;
 2654|      0|                    return;
 2655|      0|                }
 2656|      0|                break;
 2657|    109|        }
 2658|    109|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE19translate_conv_errcENS_14unicode_traits12unicode_errcERNS1_10error_codeE:
 2332|    217|    {
 2333|    217|        switch (result)
 2334|    217|        {
 2335|      0|        case unicode_traits::unicode_errc():
  ------------------
  |  Branch (2335:9): [True: 0, False: 217]
  ------------------
 2336|      0|            break;
 2337|     39|        case unicode_traits::unicode_errc::over_long_utf8_sequence:
  ------------------
  |  Branch (2337:9): [True: 39, False: 178]
  ------------------
 2338|     39|            more_ = err_handler_(json_errc::over_long_utf8_sequence, *this);
 2339|     39|            if (!more_)
  ------------------
  |  Branch (2339:17): [True: 39, False: 0]
  ------------------
 2340|     39|            {
 2341|     39|                ec = json_errc::over_long_utf8_sequence;
 2342|     39|                return;
 2343|     39|            }
 2344|      0|            break;
 2345|      0|        case unicode_traits::unicode_errc::unpaired_high_surrogate:
  ------------------
  |  Branch (2345:9): [True: 0, False: 217]
  ------------------
 2346|      0|            more_ = err_handler_(json_errc::unpaired_high_surrogate, *this);
 2347|      0|            if (!more_)
  ------------------
  |  Branch (2347:17): [True: 0, False: 0]
  ------------------
 2348|      0|            {
 2349|      0|                ec = json_errc::unpaired_high_surrogate;
 2350|      0|                return;
 2351|      0|            }
 2352|      0|            break;
 2353|     65|        case unicode_traits::unicode_errc::bad_continuation_byte:
  ------------------
  |  Branch (2353:9): [True: 65, False: 152]
  ------------------
 2354|     65|            more_ = err_handler_(json_errc::bad_continuation_byte, *this);
 2355|     65|            if (!more_)
  ------------------
  |  Branch (2355:17): [True: 65, False: 0]
  ------------------
 2356|     65|            {
 2357|     65|                ec = json_errc::bad_continuation_byte;
 2358|     65|                return;
 2359|     65|            }
 2360|      0|            break;
 2361|      0|        case unicode_traits::unicode_errc::illegal_surrogate_value:
  ------------------
  |  Branch (2361:9): [True: 0, False: 217]
  ------------------
 2362|      0|            more_ = err_handler_(json_errc::illegal_surrogate_value, *this);
 2363|      0|            if (!more_)
  ------------------
  |  Branch (2363:17): [True: 0, False: 0]
  ------------------
 2364|      0|            {
 2365|      0|                ec = json_errc::illegal_surrogate_value;
 2366|      0|                return;
 2367|      0|            }
 2368|      0|            break;
 2369|    113|        default:
  ------------------
  |  Branch (2369:9): [True: 113, False: 104]
  ------------------
 2370|    113|            more_ = err_handler_(json_errc::illegal_codepoint, *this);
 2371|    113|            if (!more_)
  ------------------
  |  Branch (2371:17): [True: 113, False: 0]
  ------------------
 2372|    113|            {
 2373|    113|                ec = json_errc::illegal_codepoint;
 2374|    113|                return;
 2375|    113|            }
 2376|      0|            break;
 2377|    217|        }
 2378|    217|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE19append_to_codepointEjiRNS1_10error_codeE:
 2720|  3.32M|    {
 2721|  3.32M|        cp *= 16;
 2722|  3.32M|        if (c >= '0'  &&  c <= '9')
  ------------------
  |  Branch (2722:13): [True: 3.32M, False: 24]
  |  Branch (2722:27): [True: 959k, False: 2.36M]
  ------------------
 2723|   959k|        {
 2724|   959k|            cp += c - '0';
 2725|   959k|        }
 2726|  2.36M|        else if (c >= 'a'  &&  c <= 'f')
  ------------------
  |  Branch (2726:18): [True: 501k, False: 1.86M]
  |  Branch (2726:32): [True: 501k, False: 8]
  ------------------
 2727|   501k|        {
 2728|   501k|            cp += c - 'a' + 10;
 2729|   501k|        }
 2730|  1.86M|        else if (c >= 'A'  &&  c <= 'F')
  ------------------
  |  Branch (2730:18): [True: 1.86M, False: 29]
  |  Branch (2730:32): [True: 1.86M, False: 18]
  ------------------
 2731|  1.86M|        {
 2732|  1.86M|            cp += c - 'A' + 10;
 2733|  1.86M|        }
 2734|     47|        else
 2735|     47|        {
 2736|     47|            more_ = err_handler_(json_errc::invalid_unicode_escape_sequence, *this);
 2737|     47|            if (!more_)
  ------------------
  |  Branch (2737:17): [True: 47, False: 0]
  ------------------
 2738|     47|            {
 2739|     47|                ec = json_errc::invalid_unicode_escape_sequence;
 2740|     47|                return cp;
 2741|     47|            }
 2742|     47|        }
 2743|  3.32M|        return cp;
 2744|  3.32M|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE12parse_numberEPKcRNS_18basic_json_visitorIcEERNS1_10error_codeE:
 1731|  3.93k|    {
 1732|  3.93k|        const char_type* cur = hdr;
 1733|  3.93k|        const char_type* local_input_end = input_end_;
 1734|       |
 1735|  3.93k|        switch (number_state_)
 1736|  3.93k|        {
 1737|    514|            case parse_number_state::minus:
  ------------------
  |  Branch (1737:13): [True: 514, False: 3.41k]
  ------------------
 1738|    514|                goto minus_sign;
 1739|    118|            case parse_number_state::zero:
  ------------------
  |  Branch (1739:13): [True: 118, False: 3.81k]
  ------------------
 1740|    118|                goto zero;
 1741|  2.58k|            case parse_number_state::integer:
  ------------------
  |  Branch (1741:13): [True: 2.58k, False: 1.34k]
  ------------------
 1742|  2.58k|                goto integer;
 1743|      4|            case parse_number_state::fraction1:
  ------------------
  |  Branch (1743:13): [True: 4, False: 3.92k]
  ------------------
 1744|      4|                goto fraction1;
 1745|    365|            case parse_number_state::fraction2:
  ------------------
  |  Branch (1745:13): [True: 365, False: 3.56k]
  ------------------
 1746|    365|                goto fraction2;
 1747|      3|            case parse_number_state::exp1:
  ------------------
  |  Branch (1747:13): [True: 3, False: 3.92k]
  ------------------
 1748|      3|                goto exp1;
 1749|      1|            case parse_number_state::exp2:
  ------------------
  |  Branch (1749:13): [True: 1, False: 3.93k]
  ------------------
 1750|      1|                goto exp2;
 1751|    343|            case parse_number_state::exp3:
  ------------------
  |  Branch (1751:13): [True: 343, False: 3.58k]
  ------------------
 1752|    343|                goto exp3;
 1753|      0|            default:
  ------------------
  |  Branch (1753:13): [True: 0, False: 3.93k]
  ------------------
 1754|      0|                JSONCONS_UNREACHABLE();               
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1755|  3.93k|        }
 1756|    514|minus_sign:
 1757|    514|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|    514|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 511]
  |  |  ------------------
  ------------------
 1758|      3|        {
 1759|      3|            number_state_ = parse_number_state::minus;
 1760|      3|            buffer_.append(hdr, cur);
 1761|      3|            position_ += (cur - hdr);
 1762|      3|            return cur;
 1763|      3|        }
 1764|    511|        if (jsoncons::is_nonzero_digit(*cur))
  ------------------
  |  Branch (1764:13): [True: 435, False: 76]
  ------------------
 1765|    435|        {
 1766|    435|            ++cur;
 1767|    435|            goto integer;
 1768|    435|        }
 1769|     76|        if (*cur == '0')
  ------------------
  |  Branch (1769:13): [True: 65, False: 11]
  ------------------
 1770|     65|        {
 1771|     65|            ++cur;
 1772|     65|            goto zero;
 1773|     65|        }
 1774|     11|        err_handler_(json_errc::invalid_number, *this);
 1775|     11|        ec = json_errc::invalid_number;
 1776|     11|        more_ = false;
 1777|     11|        position_ += (cur - hdr);
 1778|     11|        return cur;
 1779|    183|zero:
 1780|    183|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|    183|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 124, False: 59]
  |  |  ------------------
  ------------------
 1781|    124|        {
 1782|    124|            number_state_ = parse_number_state::integer;
 1783|    124|            buffer_.append(hdr, cur);
 1784|    124|            position_ += (cur - hdr);
 1785|    124|            return cur;
 1786|    124|        }
 1787|     59|        if (*cur == '.')
  ------------------
  |  Branch (1787:13): [True: 35, False: 24]
  ------------------
 1788|     35|        {
 1789|     35|            ++cur;
 1790|     35|            goto fraction1;
 1791|     35|        }
 1792|     24|        if (jsoncons::is_exp(*cur))
  ------------------
  |  Branch (1792:13): [True: 9, False: 15]
  ------------------
 1793|      9|        {
 1794|      9|            ++cur;
 1795|      9|            goto exp1;
 1796|      9|        }
 1797|     15|        if (jsoncons::is_digit(*cur))
  ------------------
  |  Branch (1797:13): [True: 4, False: 11]
  ------------------
 1798|      4|        {
 1799|      4|            err_handler_(json_errc::leading_zero, *this);
 1800|      4|            ec = json_errc::leading_zero;
 1801|      4|            more_ = false;
 1802|      4|            number_state_ = parse_number_state::zero;
 1803|       |
 1804|      4|            position_ += (cur - hdr);
 1805|      4|            return cur;
 1806|      4|        }
 1807|     11|        buffer_.append(hdr, cur);
 1808|     11|        position_ += (cur - hdr);
 1809|     11|        end_integer_value(visitor, ec);
 1810|     11|        return cur;
 1811|  3.01k|integer:
 1812|  20.4M|        while (true)
  ------------------
  |  Branch (1812:16): [True: 20.4M, Folded]
  ------------------
 1813|  20.4M|        {
 1814|  20.4M|            if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|  20.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.95k, False: 20.4M]
  |  |  ------------------
  ------------------
 1815|  1.95k|            {
 1816|  1.95k|                number_state_ = parse_number_state::integer;
 1817|  1.95k|                buffer_.append(hdr, cur);
 1818|  1.95k|                position_ += (cur - hdr);
 1819|  1.95k|                return cur;
 1820|  1.95k|            }
 1821|  20.4M|            if (JSONCONS_UNLIKELY(!jsoncons::is_digit(*cur)))
  ------------------
  |  |   78|  20.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.06k, False: 20.4M]
  |  |  ------------------
  ------------------
 1822|  1.06k|            {
 1823|  1.06k|                break;
 1824|  1.06k|            }
 1825|  20.4M|            ++cur;
 1826|  20.4M|        }
 1827|  1.06k|        if (*cur == '.')
  ------------------
  |  Branch (1827:13): [True: 381, False: 688]
  ------------------
 1828|    381|        {
 1829|    381|            ++cur;
 1830|    381|            goto fraction1;
 1831|    381|        }
 1832|    688|        if (jsoncons::is_exp(*cur))
  ------------------
  |  Branch (1832:13): [True: 652, False: 36]
  ------------------
 1833|    652|        {
 1834|    652|            ++cur;
 1835|    652|            goto exp1;
 1836|    652|        }
 1837|     36|        buffer_.append(hdr, cur);
 1838|     36|        position_ += (cur - hdr);
 1839|     36|        end_integer_value(visitor, ec);
 1840|     36|        return cur;
 1841|    420|fraction1:
 1842|    420|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|    420|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 6, False: 414]
  |  |  ------------------
  ------------------
 1843|      6|        {
 1844|      6|            number_state_ = parse_number_state::fraction1;
 1845|      6|            buffer_.append(hdr, cur);
 1846|      6|            position_ += (cur - hdr);
 1847|      6|            return cur;
 1848|      6|        }
 1849|    414|        if (jsoncons::is_digit(*cur))
  ------------------
  |  Branch (1849:13): [True: 412, False: 2]
  ------------------
 1850|    412|        {
 1851|    412|            ++cur;
 1852|    412|            goto fraction2;
 1853|    412|        }
 1854|      2|        err_handler_(json_errc::invalid_number, *this);
 1855|      2|        ec = json_errc::invalid_number;
 1856|      2|        more_ = false;
 1857|      2|        number_state_ = parse_number_state::fraction1;
 1858|      2|        position_ += (cur - hdr);
 1859|      2|        return cur;
 1860|    777|fraction2:
 1861|  5.99M|        while (true)
  ------------------
  |  Branch (1861:16): [True: 5.99M, Folded]
  ------------------
 1862|  5.99M|        {
 1863|  5.99M|            if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|  5.99M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 752, False: 5.99M]
  |  |  ------------------
  ------------------
 1864|    752|            {
 1865|    752|                number_state_ = parse_number_state::fraction2;
 1866|    752|                buffer_.append(hdr, cur);
 1867|    752|                position_ += (cur - hdr);
 1868|    752|                return cur;
 1869|    752|            }
 1870|  5.99M|            if (JSONCONS_UNLIKELY(!jsoncons::is_digit(*cur)))
  ------------------
  |  |   78|  5.99M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 25, False: 5.99M]
  |  |  ------------------
  ------------------
 1871|     25|            {
 1872|     25|                break;
 1873|     25|            }
 1874|  5.99M|            ++cur;
 1875|  5.99M|        }
 1876|     25|        if (jsoncons::is_exp(*cur))
  ------------------
  |  Branch (1876:13): [True: 16, False: 9]
  ------------------
 1877|     16|        {
 1878|     16|            ++cur;
 1879|     16|            goto exp1;
 1880|     16|        }
 1881|      9|        buffer_.append(hdr, cur);
 1882|      9|        position_ += (cur - hdr);
 1883|      9|        end_fraction_value(visitor, ec);
 1884|      9|        return cur;
 1885|    680|exp1:
 1886|    680|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|    680|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 6, False: 674]
  |  |  ------------------
  ------------------
 1887|      6|        {
 1888|      6|            number_state_ = parse_number_state::exp1;
 1889|      6|            buffer_.append(hdr, cur);
 1890|      6|            position_ += (cur - hdr);
 1891|      6|            return cur;
 1892|      6|        }
 1893|    674|        if (*cur == '-')
  ------------------
  |  Branch (1893:13): [True: 405, False: 269]
  ------------------
 1894|    405|        {
 1895|    405|            ++cur;
 1896|    405|            goto exp2;
 1897|    405|        }
 1898|    269|        if (jsoncons::is_digit(*cur))
  ------------------
  |  Branch (1898:13): [True: 253, False: 16]
  ------------------
 1899|    253|        {
 1900|    253|            ++cur;
 1901|    253|            goto exp3;
 1902|    253|        }
 1903|     16|        if (*cur == '+')
  ------------------
  |  Branch (1903:13): [True: 1, False: 15]
  ------------------
 1904|      1|        {
 1905|      1|            ++cur;
 1906|      1|            goto exp2;
 1907|      1|        }
 1908|     15|        err_handler_(json_errc::invalid_number, *this);
 1909|     15|        ec = json_errc::invalid_number;
 1910|     15|        more_ = false;
 1911|     15|        position_ += (cur - hdr);
 1912|     15|        return cur;
 1913|    407|exp2:
 1914|    407|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|    407|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 404]
  |  |  ------------------
  ------------------
 1915|      3|        {
 1916|      3|            number_state_ = parse_number_state::exp2;
 1917|      3|            buffer_.append(hdr, cur);
 1918|      3|            position_ += (cur - hdr);
 1919|      3|            return cur;
 1920|      3|        }
 1921|    404|        if (jsoncons::is_digit(*cur))
  ------------------
  |  Branch (1921:13): [True: 402, False: 2]
  ------------------
 1922|    402|        {
 1923|    402|            ++cur;
 1924|    402|            goto exp3;
 1925|    402|        }
 1926|      2|        err_handler_(json_errc::invalid_number, *this);
 1927|      2|        ec = json_errc::invalid_number;
 1928|      2|        more_ = false;
 1929|      2|        position_ += (cur - hdr);
 1930|      2|        return cur;
 1931|       |        
 1932|    998|exp3:
 1933|  5.47M|        while (true)
  ------------------
  |  Branch (1933:16): [True: 5.47M, Folded]
  ------------------
 1934|  5.47M|        {
 1935|  5.47M|            if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|  5.47M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 987, False: 5.47M]
  |  |  ------------------
  ------------------
 1936|    987|            {
 1937|    987|                number_state_ = parse_number_state::exp3;
 1938|    987|                buffer_.append(hdr, cur);
 1939|    987|                position_ += (cur - hdr);
 1940|    987|                return cur;
 1941|    987|            }
 1942|  5.47M|            if (JSONCONS_UNLIKELY(!jsoncons::is_digit(*cur)))
  ------------------
  |  |   78|  5.47M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 11, False: 5.47M]
  |  |  ------------------
  ------------------
 1943|     11|            {
 1944|     11|                break;
 1945|     11|            }
 1946|  5.47M|            ++cur;
 1947|  5.47M|        }
 1948|     11|        buffer_.append(hdr, cur);
 1949|     11|        position_ += (cur - hdr);
 1950|     11|        end_fraction_value(visitor, ec);
 1951|     11|        return cur;
 1952|    998|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE10parse_nullERNS_18basic_json_visitorIcEERNS1_10error_codeE:
 1656|     85|    {
 1657|     85|        begin_position_ = position_;
 1658|     85|        if (JSONCONS_LIKELY(input_end_ - input_ptr_ >= 4))
  ------------------
  |  |   77|     85|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 48, False: 37]
  |  |  ------------------
  ------------------
 1659|     48|        {
 1660|     48|            if (*(input_ptr_+1) == 'u' && *(input_ptr_+2) == 'l' && *(input_ptr_+3) == 'l')
  ------------------
  |  Branch (1660:17): [True: 28, False: 20]
  |  Branch (1660:43): [True: 14, False: 14]
  |  Branch (1660:69): [True: 1, False: 13]
  ------------------
 1661|      1|            {
 1662|      1|                input_ptr_ += 4;
 1663|      1|                position_ += 4;
 1664|      1|                visitor.null_value(semantic_tag::none, *this, ec);
 1665|      1|                if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1666|      1|                more_ = !cursor_mode_;
 1667|      1|                if (level_ == 0)
  ------------------
  |  Branch (1667:21): [True: 1, False: 0]
  ------------------
 1668|      1|                {
 1669|      1|                    state_ = parse_state::accept;
 1670|      1|                }
 1671|      0|                else
 1672|      0|                {
 1673|      0|                    state_ = parse_state::expect_comma_or_end;
 1674|      0|                }
 1675|      1|            }
 1676|     47|            else
 1677|     47|            {
 1678|     47|                err_handler_(json_errc::invalid_value, *this);
 1679|     47|                ec = json_errc::invalid_value;
 1680|     47|                more_ = false;
 1681|     47|                return;
 1682|     47|            }
 1683|     48|        }
 1684|     37|        else
 1685|     37|        {
 1686|     37|            ++input_ptr_;
 1687|     37|            ++position_;
 1688|     37|            state_ = parse_state::n;
 1689|     37|        }
 1690|     85|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE10parse_trueEPKcRNS_18basic_json_visitorIcEERNS1_10error_codeE:
 1618|     80|    {
 1619|     80|        begin_position_ = position_;
 1620|     80|        if (JSONCONS_LIKELY(input_end_ - cur >= 4))
  ------------------
  |  |   77|     80|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 50, False: 30]
  |  |  ------------------
  ------------------
 1621|     50|        {
 1622|     50|            if (*(cur+1) == 'r' && *(cur+2) == 'u' && *(cur+3) == 'e')
  ------------------
  |  Branch (1622:17): [True: 26, False: 24]
  |  Branch (1622:36): [True: 13, False: 13]
  |  Branch (1622:55): [True: 2, False: 11]
  ------------------
 1623|      2|            {
 1624|      2|                cur += 4;
 1625|      2|                position_ += 4;
 1626|      2|                visitor.bool_value(true, semantic_tag::none, *this, ec);
 1627|      2|                if (JSONCONS_UNLIKELY(ec)){return cur;}
  ------------------
  |  |   78|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 1628|      2|                if (level_ == 0)
  ------------------
  |  Branch (1628:21): [True: 2, False: 0]
  ------------------
 1629|      2|                {
 1630|      2|                    state_ = parse_state::accept;
 1631|      2|                }
 1632|      0|                else
 1633|      0|                {
 1634|      0|                    state_ = parse_state::expect_comma_or_end;
 1635|      0|                }
 1636|      2|                more_ = !cursor_mode_;
 1637|      2|            }
 1638|     48|            else
 1639|     48|            {
 1640|     48|                err_handler_(json_errc::invalid_value, *this);
 1641|     48|                ec = json_errc::invalid_value;
 1642|     48|                more_ = false;
 1643|     48|                return cur;
 1644|     48|            }
 1645|     50|        }
 1646|     30|        else
 1647|     30|        {
 1648|     30|            ++cur;
 1649|     30|            ++position_;
 1650|     30|            state_ = parse_state::t;
 1651|     30|        }
 1652|     32|        return cur;
 1653|     80|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE11parse_falseEPKcRNS_18basic_json_visitorIcEERNS1_10error_codeE:
 1693|     92|    {
 1694|     92|        begin_position_ = position_;
 1695|     92|        if (JSONCONS_LIKELY(input_end_ - cur >= 5))
  ------------------
  |  |   77|     92|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 44, False: 48]
  |  |  ------------------
  ------------------
 1696|     44|        {
 1697|     44|            if (*(cur+1) == 'a' && *(cur+2) == 'l' && *(cur+3) == 's' && *(cur+4) == 'e')
  ------------------
  |  Branch (1697:17): [True: 39, False: 5]
  |  Branch (1697:36): [True: 27, False: 12]
  |  Branch (1697:55): [True: 14, False: 13]
  |  Branch (1697:74): [True: 1, False: 13]
  ------------------
 1698|      1|            {
 1699|      1|                cur += 5;
 1700|      1|                position_ += 5;
 1701|      1|                visitor.bool_value(false, semantic_tag::none, *this, ec);
 1702|      1|                if (JSONCONS_UNLIKELY(ec)){return cur;}
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1703|      1|                more_ = !cursor_mode_;
 1704|      1|                if (level_ == 0)
  ------------------
  |  Branch (1704:21): [True: 1, False: 0]
  ------------------
 1705|      1|                {
 1706|      1|                    state_ = parse_state::accept;
 1707|      1|                }
 1708|      0|                else
 1709|      0|                {
 1710|      0|                    state_ = parse_state::expect_comma_or_end;
 1711|      0|                }
 1712|      1|            }
 1713|     43|            else
 1714|     43|            {
 1715|     43|                err_handler_(json_errc::invalid_value, *this);
 1716|     43|                ec = json_errc::invalid_value;
 1717|     43|                more_ = false;
 1718|     43|                return cur;
 1719|     43|            }
 1720|     44|        }
 1721|     48|        else
 1722|     48|        {
 1723|     48|            ++cur;
 1724|     48|            ++position_;
 1725|     48|            state_ = parse_state::f;
 1726|     48|        }
 1727|     49|        return cur;
 1728|     92|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE6parentEv:
  285|  1.97k|    {
  286|  1.97k|        JSONCONS_ASSERT(state_stack_.size() >= 1);
  ------------------
  |  |   49|  1.97k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 1.97k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  287|  1.97k|        return state_stack_.back();
  288|  1.97k|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE5enterEv:
  296|  3.74k|    {
  297|  3.74k|        return state_ == parse_state::start;
  298|  3.74k|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE6acceptEv:
  301|  3.71k|    {
  302|  3.71k|        return state_ == parse_state::accept || done_;
  ------------------
  |  Branch (302:16): [True: 1.79k, False: 1.92k]
  |  Branch (302:49): [True: 1.91k, False: 11]
  ------------------
  303|  3.71k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEEC2ERKNS_25basic_json_decode_optionsIcEERKS3_:
  178|  3.45k|       : max_nesting_depth_(options.max_nesting_depth()),
  179|  3.45k|         allow_trailing_comma_(options.allow_trailing_comma()),
  180|  3.45k|         allow_comments_(options.allow_comments()),
  181|  3.45k|         lossless_number_(options.lossless_number()),
  182|  3.45k|         lossless_bignum_(options.lossless_bignum()),
  183|       |#if !defined(JSONCONS_NO_DEPRECATED)
  184|  3.45k|         err_handler_(options.err_handler()),
  185|       |#else
  186|       |         err_handler_(default_json_parsing()),
  187|       |#endif
  188|  3.45k|         buffer_(temp_alloc),
  189|  3.45k|         state_stack_(temp_alloc)
  190|  3.45k|    {
  191|  3.45k|        buffer_.reserve(initial_buffer_capacity);
  192|       |
  193|  3.45k|        std::size_t initial_stack_capacity = options.max_nesting_depth() <= (default_initial_stack_capacity-2) ? (options.max_nesting_depth()+2) : default_initial_stack_capacity;
  ------------------
  |  Branch (193:46): [True: 0, False: 3.45k]
  ------------------
  194|  3.45k|        state_stack_.reserve(initial_stack_capacity );
  195|  3.45k|        push_state(parse_state::root);
  196|       |
  197|  3.45k|        if (options.enable_str_to_nan())
  ------------------
  |  Branch (197:13): [True: 0, False: 3.45k]
  ------------------
  198|      0|        {
  199|      0|            string_double_map_.emplace_back(options.nan_to_str(),std::nan(""));
  200|      0|        }
  201|  3.45k|        if (options.enable_str_to_inf())
  ------------------
  |  Branch (201:13): [True: 0, False: 3.45k]
  ------------------
  202|      0|        {
  203|      0|            string_double_map_.emplace_back(options.inf_to_str(),std::numeric_limits<double>::infinity());
  204|      0|        }
  205|  3.45k|        if (options.enable_str_to_neginf())
  ------------------
  |  Branch (205:13): [True: 0, False: 3.45k]
  ------------------
  206|      0|        {
  207|      0|            string_double_map_.emplace_back(options.neginf_to_str(),-std::numeric_limits<double>::infinity());
  208|      0|        }
  209|  3.45k|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE4doneEv:
  291|  8.88k|    {
  292|  8.88k|        return done_;
  293|  8.88k|    }

_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  3.45k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|      3|        {
  319|      3|            visit_begin_object(tag, context, ec);
  320|      3|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|      3|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  1.98k|        {
  109|  1.98k|            visit_flush();
  110|  1.98k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|    277|        {
  424|    277|            visit_int64(value, tag, context, ec);
  425|    277|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    277|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|    277|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|    419|        {
  384|    419|            visit_string(value, tag, context, ec);
  385|    419|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    419|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|    419|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|    987|        {
  442|    987|            visit_double(value, tag, context, ec);
  443|    987|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    987|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|    987|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|    291|        {
  415|    291|            visit_uint64(value, tag, context, ec);
  416|    291|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    291|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|    291|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|      3|        {
  340|      3|            visit_begin_array(tag, context, ec);
  341|      3|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|      3|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|      5|        {
  375|      5|            visit_bool(value, tag, context, ec);
  376|      5|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      5|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|      5|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|      2|        {
  366|      2|            visit_null(tag, context, ec);
  367|      2|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|      2|        }
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  3.45k|        basic_json_visitor() = default;

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

_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEED2Ev:
  193|  3.45k|    {
  194|  3.45k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 3.45k, False: 0]
  ------------------
  195|  3.45k|        {
  196|  3.45k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  3.45k|        }
  198|  3.45k|    }
_ZNK8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE3eofEv:
  271|  15.9k|    {
  272|  15.9k|        return count_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 15.9k, False: 0]
  |  Branch (272:31): [True: 8.74k, False: 7.25k]
  ------------------
  273|  15.9k|    }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE10read_chunkEv:
  330|  7.25k|    {
  331|  7.25k|        if (count_ == 0)
  ------------------
  |  Branch (331:13): [True: 7.25k, False: 0]
  ------------------
  332|  7.25k|        {
  333|  7.25k|            data_ = chunk_;
  334|  7.25k|            count_ = fill_buffer(chunk_, chunk_size_);
  335|  7.25k|        }
  336|  7.25k|        const value_type* data = data_;
  337|  7.25k|        std::size_t length = count_;
  338|  7.25k|        data_ += count_;
  339|  7.25k|        position_ += count_;
  340|  7.25k|        count_ = 0;
  341|       |
  342|  7.25k|        return span<const value_type>(data, length);
  343|  7.25k|    }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE11fill_bufferEPcm:
  430|  7.25k|    {
  431|  7.25k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (431:13): [True: 0, False: 7.25k]
  ------------------
  432|      0|        {
  433|      0|            return 0;
  434|      0|        }
  435|       |
  436|  7.25k|        JSONCONS_TRY
  ------------------
  |  |   37|  7.25k|    #define JSONCONS_TRY try
  ------------------
  437|  7.25k|        {
  438|  7.25k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  439|  7.25k|            std::size_t length = static_cast<std::size_t>(count);
  440|       |
  441|  7.25k|            if (length < chunk_size)
  ------------------
  |  Branch (441:17): [True: 3.43k, False: 3.81k]
  ------------------
  442|  3.43k|            {
  443|  3.43k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  444|  3.43k|            }
  445|  7.25k|            return length;
  446|  7.25k|        }
  447|  7.25k|        JSONCONS_CATCH(const std::exception&)     
  448|  7.25k|        {
  449|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  450|      0|            return 0;
  451|      0|        }
  452|  7.25k|    }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  3.45k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  3.45k|          chunk_size_(default_max_chunk_size)
  178|  3.45k|    {
  179|  3.45k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  3.45k|        data_ = chunk_;
  181|  3.45k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  3.45k|      : std::basic_istream<CharT>(&nb_)
   58|  3.45k|    {
   59|  3.45k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  3.45k|        null_buffer() = default;

_ZN8jsoncons19json_source_adaptorINS_13stream_sourceIcNSt3__19allocatorIcEEEEE10read_chunkERNS2_10error_codeE:
  113|  11.6k|        {
  114|  11.6k|            if (source_.eof())
  ------------------
  |  Branch (114:17): [True: 4.35k, False: 7.25k]
  ------------------
  115|  4.35k|            {
  116|  4.35k|                return span<const value_type>();
  117|  4.35k|            }
  118|       |
  119|  7.25k|            auto s = source_.read_chunk();
  120|  7.25k|            const value_type* data = s.data();
  121|  7.25k|            std::size_t length = s.size();
  122|       |
  123|  7.25k|            if (bof_ && length > 0)
  ------------------
  |  Branch (123:17): [True: 3.45k, False: 3.80k]
  |  Branch (123:25): [True: 3.45k, False: 0]
  ------------------
  124|  3.45k|            {
  125|  3.45k|                auto r = unicode_traits::detect_json_encoding(data, length);
  126|  3.45k|                if (!(r.encoding == unicode_traits::encoding_kind::utf8 || r.encoding == unicode_traits::encoding_kind::undetected))
  ------------------
  |  Branch (126:23): [True: 3.43k, False: 14]
  |  Branch (126:76): [True: 0, False: 14]
  ------------------
  127|     14|                {
  128|     14|                    ec = json_errc::illegal_unicode_character;
  129|     14|                    return span<const value_type>();
  130|     14|                }
  131|  3.43k|                length -= (r.ptr - data);
  132|  3.43k|                data = r.ptr;
  133|  3.43k|                bof_ = false;
  134|  3.43k|            }
  135|       |            
  136|  7.23k|            return span<const value_type>(data, length);           
  137|  7.25k|        }
_ZNK8jsoncons19json_source_adaptorINS_13stream_sourceIcNSt3__19allocatorIcEEEEE3eofEv:
  103|  4.38k|        {
  104|  4.38k|            return source_.eof();
  105|  4.38k|        }
_ZN8jsoncons19json_source_adaptorINS_13stream_sourceIcNSt3__19allocatorIcEEEEEC2IRNS2_19basic_istringstreamIcNS2_11char_traitsIcEES4_EEEEOT_:
   98|  3.45k|            : source_(std::forward<Sourceable>(source)), bof_(true)
   99|  3.45k|        {
  100|  3.45k|        }

_ZN8jsoncons17basic_staj_cursorIcED2Ev:
  558|  3.45k|    virtual ~basic_staj_cursor() = default;
_ZNK8jsoncons18basic_staj_visitorIcE5eventEv:
  418|  1.98k|    {
  419|  1.98k|        return event_;
  420|  1.98k|    }
_ZN8jsoncons18basic_staj_visitorIcEC2Ev:
  406|  3.45k|        : event_(staj_events::null_value)
  407|  3.45k|    {
  408|  3.45k|    }
_ZN8jsoncons18basic_staj_visitorIcE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  515|    291|    {
  516|    291|        event_ = staj_event_type(value, tag);
  517|    291|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    291|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  518|    291|    }
_ZN8jsoncons18basic_staj_visitorIcE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  524|    277|    {
  525|    277|        event_ = staj_event_type(value, tag);
  526|    277|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    277|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  527|    277|    }
_ZN8jsoncons18basic_staj_visitorIcE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  542|    987|    {
  543|    987|        event_ = staj_event_type(value, tag);
  544|    987|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    987|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  545|    987|    }
_ZN8jsoncons18basic_staj_visitorIcE11visit_flushEv:
  548|  1.98k|    {
  549|  1.98k|    }
_ZN8jsoncons18basic_staj_visitorIcE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  434|      3|    {
  435|      3|        event_ = staj_event_type(staj_events::begin_object, tag);
  436|      3|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  437|      3|    }
_ZN8jsoncons18basic_staj_visitorIcE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  452|      3|    {
  453|      3|        event_ = staj_event_type(staj_events::begin_array, tag);
  454|      3|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  455|      3|    }
_ZN8jsoncons18basic_staj_visitorIcE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  476|      2|    {
  477|      2|        event_ = staj_event_type(staj_events::null_value, tag);
  478|      2|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  479|      2|    }
_ZN8jsoncons18basic_staj_visitorIcE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  482|      5|    {
  483|      5|        event_ = staj_event_type(value, tag);
  484|      5|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      5|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  485|      5|    }
_ZN8jsoncons18basic_staj_visitorIcE12visit_stringERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  488|    419|    {
  489|    419|        event_ = staj_event_type(s, staj_events::string_value, tag);
  490|    419|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    419|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  491|    419|    }

_ZN8jsonconsanENS_11staj_eventsES0_:
   67|  1.98k|{ return (staj_events)((uint64_t)lhs & (uint64_t)rhs); }
_ZNK8jsoncons16basic_staj_eventIcE11storage_tagEv:
  213|  1.98k|    {
  214|  1.98k|        static constexpr staj_events mask = ~staj_events::key_flag;
  215|  1.98k|        return event_flags_ & mask;
  216|  1.98k|    }
_ZN8jsoncons16basic_staj_eventIcEC2ENS_11staj_eventsENS_12semantic_tagES2_:
  223|  3.45k|        : event_flags_(event_type | key_flag), tag_(tag), value_()
  224|  3.45k|    {
  225|  3.45k|    }
_ZN8jsonconsorENS_11staj_eventsES0_:
   62|  5.43k|{ return (staj_events)((uint64_t)lhs | (uint64_t)rhs); }
_ZN8jsoncons16basic_staj_eventIcEC2EmNS_12semantic_tagENS_11staj_eventsE:
  250|    291|        : event_flags_(staj_events::uint64_value | key_flag), tag_(tag)
  251|    291|    {
  252|    291|        value_.uint64_value_ = value;
  253|    291|    }
_ZN8jsoncons16basic_staj_eventIcEC2ElNS_12semantic_tagENS_11staj_eventsE:
  243|    277|        : event_flags_(staj_events::int64_value | key_flag), tag_(tag)
  244|    277|    {
  245|    277|        value_.int64_value_ = value;
  246|    277|    }
_ZN8jsoncons16basic_staj_eventIcEC2EdNS_12semantic_tagENS_11staj_eventsE:
  264|    987|        : event_flags_(staj_events::double_value | key_flag), tag_(tag)
  265|    987|    {
  266|    987|        value_.double_value_ = value;
  267|    987|    }
_ZN8jsoncons16basic_staj_eventIcEC2ERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_11staj_eventsENS_12semantic_tagES9_:
  273|    419|        : event_flags_(event_type | key_flag), tag_(tag), length_(s.length())
  274|    419|    {
  275|    419|        value_.string_data_ = s.data();
  276|    419|    }
_ZN8jsoncons16basic_staj_eventIcEC2EbNS_12semantic_tagENS_11staj_eventsE:
  236|      5|        : event_flags_(staj_events::bool_value | key_flag), tag_(tag)
  237|      5|    {
  238|      5|        value_.bool_value_ = value;
  239|      5|    }
_ZNK8jsoncons16basic_staj_eventIcE3getINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEET_RNS3_10error_codeE:
  317|  1.98k|    {
  318|  1.98k|        return get_<T>(std::allocator<char>{}, ec);
  319|  1.98k|    }
_ZNK8jsoncons16basic_staj_eventIcE4get_INSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES8_cEENS3_9enable_ifIXaasr10ext_traits9is_stringIT_EE5valuesr3std7is_sameINSB_10value_typeET1_EE5valueESB_E4typeET0_RNS3_10error_codeE:
  324|  1.98k|    {
  325|  1.98k|        constexpr const char_type* true_literal = JSONCONS_CSTRING_CONSTANT(char_type,"true"); 
  ------------------
  |  |  262|  1.98k|#define JSONCONS_CSTRING_CONSTANT(CharT, Str) jsoncons::cstring_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  260|  1.98k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  257|  1.98k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  326|  1.98k|        constexpr const char_type* false_literal = JSONCONS_CSTRING_CONSTANT(char_type,"false"); 
  ------------------
  |  |  262|  1.98k|#define JSONCONS_CSTRING_CONSTANT(CharT, Str) jsoncons::cstring_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  260|  1.98k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  257|  1.98k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  327|  1.98k|        constexpr const char_type* null_literal = JSONCONS_CSTRING_CONSTANT(char_type,"null"); 
  ------------------
  |  |  262|  1.98k|#define JSONCONS_CSTRING_CONSTANT(CharT, Str) jsoncons::cstring_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  260|  1.98k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  257|  1.98k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  328|       |
  329|  1.98k|        switch (storage_tag())
  330|  1.98k|        {
  331|    419|            case staj_events::string_value:
  ------------------
  |  Branch (331:13): [True: 419, False: 1.56k]
  ------------------
  332|    419|            {
  333|    419|                return jsoncons::make_obj_using_allocator<T>(alloc, value_.string_data_, length_);
  334|      0|            }
  335|      0|            case staj_events::byte_string_value:
  ------------------
  |  Branch (335:13): [True: 0, False: 1.98k]
  ------------------
  336|      0|            {
  337|      0|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  338|      0|                bytes_to_string(value_.byte_string_data_, value_.byte_string_data_+length_, tag(), s);
  339|      0|                return s;
  340|      0|            }
  341|    291|            case staj_events::uint64_value:
  ------------------
  |  Branch (341:13): [True: 291, False: 1.69k]
  ------------------
  342|    291|            {
  343|    291|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  344|    291|                jsoncons::from_integer(value_.uint64_value_, s);
  345|    291|                return s;
  346|      0|            }
  347|    277|            case staj_events::int64_value:
  ------------------
  |  Branch (347:13): [True: 277, False: 1.71k]
  ------------------
  348|    277|            {
  349|    277|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  350|    277|                jsoncons::from_integer(value_.int64_value_, s);
  351|    277|                return s;
  352|      0|            }
  353|      0|            case staj_events::half_value:
  ------------------
  |  Branch (353:13): [True: 0, False: 1.98k]
  ------------------
  354|      0|            {
  355|      0|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  356|      0|                jsoncons::write_double f{float_chars_format::general,0};
  357|      0|                double x = binary::decode_half(value_.half_value_);
  358|      0|                f(x, s);
  359|      0|                return s;
  360|      0|            }
  361|    987|            case staj_events::double_value:
  ------------------
  |  Branch (361:13): [True: 987, False: 1.00k]
  ------------------
  362|    987|            {
  363|    987|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  364|    987|                jsoncons::write_double f{float_chars_format::general,0};
  365|    987|                f(value_.double_value_, s);
  366|    987|                return s;
  367|      0|            }
  368|      5|            case staj_events::bool_value:
  ------------------
  |  Branch (368:13): [True: 5, False: 1.98k]
  ------------------
  369|      5|            {
  370|      5|                return jsoncons::make_obj_using_allocator<T>(alloc, value_.bool_value_ ? true_literal : false_literal);
  ------------------
  |  Branch (370:69): [True: 3, False: 2]
  ------------------
  371|      0|            }
  372|      2|            case staj_events::null_value:
  ------------------
  |  Branch (372:13): [True: 2, False: 1.98k]
  ------------------
  373|      2|            {
  374|      2|                return jsoncons::make_obj_using_allocator<T>(alloc, null_literal);
  375|      0|            }
  376|      6|            default:
  ------------------
  |  Branch (376:13): [True: 6, False: 1.98k]
  ------------------
  377|      6|            {
  378|      6|                ec = conv_errc::not_string;
  379|      6|                return T{};
  380|      0|            }
  381|  1.98k|        }
  382|  1.98k|    }

_ZN8jsoncons10ext_traits14integer_limitsIlvE6lowestEv:
  110|    384|        {
  111|    384|            return std::numeric_limits<T>::lowest();
  112|    384|        }

_ZN8jsoncons14dec_to_integerIlcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  327|    452|{
  328|    452|    if (length == 0)
  ------------------
  |  Branch (328:9): [True: 0, False: 452]
  ------------------
  329|      0|    {
  330|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  331|      0|    }
  332|       |
  333|    452|    bool sign = *s == '-';
  334|    452|    s += sign;
  335|    452|    length -= sign;
  336|       |
  337|    452|    using U = typename ext_traits::make_unsigned<T>::type;
  338|       |
  339|    452|    U num;
  340|    452|    auto ru = dec_to_integer(s, length, num);
  341|    452|    if (ru.ec != std::errc{})
  ------------------
  |  Branch (341:9): [True: 68, False: 384]
  ------------------
  342|     68|    {
  343|     68|        return to_number_result<CharT>(ru.ptr, ru.ec);
  344|     68|    }
  345|    384|    if (sign)
  ------------------
  |  Branch (345:9): [True: 384, False: 0]
  ------------------
  346|    384|    {
  347|    384|        if (num > static_cast<U>(-((ext_traits::integer_limits<T>::lowest)()+T(1))) + U(1))
  ------------------
  |  Branch (347:13): [True: 107, False: 277]
  ------------------
  348|    107|        {
  349|    107|            return to_number_result<CharT>(ru.ptr, std::errc::result_out_of_range);
  350|    107|        }
  351|    277|        else
  352|    277|        {
  353|    277|            value = static_cast<T>(U(0) - num);
  354|    277|            return to_number_result<CharT>(ru.ptr, std::errc{});
  355|    277|        }
  356|    384|    }
  357|      0|    else
  358|      0|    {
  359|      0|        if (num > static_cast<U>((ext_traits::integer_limits<T>::max)()))
  ------------------
  |  Branch (359:13): [True: 0, False: 0]
  ------------------
  360|      0|        {
  361|      0|            return to_number_result<CharT>(ru.ptr, std::errc::result_out_of_range);
  362|      0|        }
  363|      0|        else
  364|      0|        {
  365|      0|            value = static_cast<T>(num);
  366|      0|            return to_number_result<CharT>(ru.ptr, std::errc{});
  367|      0|        }
  368|      0|    }
  369|    384|}
_ZN8jsoncons16to_number_resultIcEC2EPKcNSt3__14errcE:
  141|  1.33k|        : ptr(ptr_), ec(ec_)
  142|  1.33k|    {
  143|  1.33k|    }
_ZN8jsoncons14dec_to_integerImcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedntsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  265|    814|{
  266|    814|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|    814|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 814]
  |  |  ------------------
  ------------------
  267|      0|    {
  268|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  269|      0|    }
  270|       |
  271|    814|    static constexpr T max_value = (ext_traits::integer_limits<T>::max)();
  272|    814|    static constexpr T max_value_div_10 = max_value / 10;
  273|       |
  274|    814|    T num = 0;
  275|    814|    const CharT* cur = s;
  276|    814|    const CharT* last = s + length;
  277|    814|    static constexpr std::size_t digits10 = static_cast<std::size_t>(ext_traits::integer_limits<T>::digits10);
  278|    814|    const std::size_t n = (std::min)(digits10, length);
  279|    814|    const CharT* stop = s + n;
  280|       |     
  281|  13.6k|    while (cur < stop)
  ------------------
  |  Branch (281:12): [True: 12.8k, False: 814]
  ------------------
  282|  12.8k|    {
  283|  12.8k|        uint8_t d;
  284|  12.8k|        if (JSONCONS_LIKELY((d = static_cast<uint8_t>(*cur - '0')) <= 9) )
  ------------------
  |  |   77|  12.8k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 12.8k, False: 0]
  |  |  ------------------
  ------------------
  285|  12.8k|        {
  286|  12.8k|            num = static_cast<T>(d) + num*10;
  287|  12.8k|        }
  288|      0|        else
  289|      0|        {
  290|      0|            return to_number_result<CharT>(cur, std::errc::invalid_argument);
  291|      0|        }
  292|  12.8k|        ++cur;
  293|  12.8k|    }
  294|    814|    if (cur == last)
  ------------------
  |  Branch (294:9): [True: 321, False: 493]
  ------------------
  295|    321|    {
  296|    321|        value = num;
  297|    321|        return to_number_result<CharT>(cur, std::errc{});
  298|    321|    }
  299|    493|    if (cur+1 != last)
  ------------------
  |  Branch (299:9): [True: 118, False: 375]
  ------------------
  300|    118|    {
  301|    118|        return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  302|    118|    }
  303|    375|    if (is_digit(*cur))
  ------------------
  |  Branch (303:9): [True: 375, False: 0]
  ------------------
  304|    375|    {
  305|    375|        if (num > max_value_div_10)
  ------------------
  |  Branch (305:13): [True: 17, False: 358]
  ------------------
  306|     17|        {
  307|     17|            return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  308|     17|        }
  309|    358|        uint8_t d = static_cast<uint8_t>(*cur - '0');
  310|    358|        num = num*10;
  311|    358|        if (num > max_value - d)
  ------------------
  |  Branch (311:13): [True: 4, False: 354]
  ------------------
  312|      4|        {
  313|      4|            return to_number_result<CharT>(s, std::errc::result_out_of_range);
  314|      4|        }
  315|    354|        num += d;
  316|    354|        ++cur;
  317|    354|        value = num;
  318|    354|        return to_number_result<CharT>(cur, std::errc{});
  319|    358|    }
  320|       |    
  321|      0|    return to_number_result<CharT>(cur, std::errc::invalid_argument);
  322|    375|}
_ZN8jsoncons8is_digitEc:
   83|  31.9M|constexpr bool is_digit(char d) {
   84|  31.9M|    return is_type(static_cast<uint8_t>(d), (uint8_t)(DIGIT_TYPE_ZERO | DIGIT_TYPE_NONZERO));
   85|  31.9M|}
_ZN8jsoncons7is_typeEhh:
   68|  31.9M|constexpr bool is_type(uint8_t d, uint8_t type) {
   69|  31.9M|    return (digi_table[d] & type) != 0;
   70|  31.9M|}
_ZNK8jsoncons16to_number_resultIcEcvbEv:
  150|  1.86k|    {
  151|  1.86k|        return ec == std::errc{};
  152|  1.86k|    }
_ZN8jsoncons16decstr_to_doubleEPKcmRd:
  866|  1.24k|{
  867|  1.24k|    const char* cur = s+length;
  868|  1.24k|    char *end = nullptr;
  869|  1.24k|    val = strtod(s, &end);
  870|  1.24k|    const char* str_end = end;
  871|  1.24k|    if (JSONCONS_UNLIKELY(end < cur))
  ------------------
  |  |   78|  1.24k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.24k]
  |  |  ------------------
  ------------------
  872|      0|    {
  873|      0|        if (*end == '.')
  ------------------
  |  Branch (873:13): [True: 0, False: 0]
  ------------------
  874|      0|        {
  875|      0|            std::string buf{s, length};
  876|      0|            char* dot_ptr = &buf[0] + (cur - end - 1);
  877|      0|            *dot_ptr = ',';
  878|      0|            end = nullptr;
  879|      0|            val = strtod(buf.c_str(), &end);
  880|      0|            str_end = s + (end - &buf[0]);
  881|      0|        }
  882|      0|        if (JSONCONS_UNLIKELY(str_end != cur))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  883|      0|        {
  884|      0|            return to_number_result<char>{str_end,std::errc::invalid_argument};
  885|      0|        }
  886|      0|    }
  887|  1.24k|    if (JSONCONS_UNLIKELY(val <= -HUGE_VAL || val >= HUGE_VAL))
  ------------------
  |  |   78|  2.46k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 64, False: 1.18k]
  |  |  |  Branch (78:50): [True: 23, False: 1.22k]
  |  |  |  Branch (78:50): [True: 41, False: 1.18k]
  |  |  ------------------
  ------------------
  888|     64|    {
  889|     64|        return to_number_result<char>{str_end, std::errc::result_out_of_range};
  890|     64|    }
  891|  1.18k|    return to_number_result<char>{str_end};
  892|  1.24k|}
_ZN8jsoncons16to_number_resultIcEC2EPKc:
  137|  1.18k|        : ptr(ptr_), ec(std::errc{})
  138|  1.18k|    {
  139|  1.18k|    }
_ZN8jsoncons16is_nonzero_digitEc:
   78|    511|constexpr bool is_nonzero_digit(char d) {
   79|    511|    return is_type(static_cast<uint8_t>(d), (uint8_t)DIGIT_TYPE_NONZERO);
   80|    511|}
_ZN8jsoncons6is_expEc:
   88|    737|constexpr bool is_exp(char d) {
   89|    737|    return is_type(static_cast<uint8_t>(d), (uint8_t)DIGIT_TYPE_EXP);
   90|    737|}

_ZN8jsoncons14unicode_traits20detect_json_encodingIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
  109|  3.45k|    {
  110|  3.45k|        detect_encoding_result<CharT> r = detect_encoding_from_bom(data,length);
  111|  3.45k|        if (r.encoding != encoding_kind::undetected)
  ------------------
  |  Branch (111:13): [True: 45, False: 3.40k]
  ------------------
  112|     45|        {
  113|     45|            return r;
  114|     45|        }
  115|  3.40k|        else if (length < 4)
  ------------------
  |  Branch (115:18): [True: 430, False: 2.97k]
  ------------------
  116|    430|        {
  117|    430|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  118|    430|        }
  119|  2.97k|        else if (*data == 0 && *(data+1) == 0 && *(data+2) == 0)
  ------------------
  |  Branch (119:18): [True: 22, False: 2.95k]
  |  Branch (119:32): [True: 13, False: 9]
  |  Branch (119:50): [True: 2, False: 11]
  ------------------
  120|      2|        {
  121|      2|            return detect_encoding_result<CharT>{data,encoding_kind::utf32be};
  122|      2|        }
  123|  2.97k|        else if (*data == 0 && *(data+2) == 0)
  ------------------
  |  Branch (123:18): [True: 20, False: 2.95k]
  |  Branch (123:32): [True: 3, False: 17]
  ------------------
  124|      3|        {
  125|      3|            return detect_encoding_result<CharT>{data,encoding_kind::utf16be};
  126|      3|        }
  127|  2.97k|        else if (*(data+1) == 0 && *(data+2) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (127:18): [True: 26, False: 2.94k]
  |  Branch (127:36): [True: 10, False: 16]
  |  Branch (127:54): [True: 1, False: 9]
  ------------------
  128|      1|        {
  129|      1|            return detect_encoding_result<CharT>{data,encoding_kind::utf32le};
  130|      1|        }
  131|  2.97k|        else if (*(data+1) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (131:18): [True: 25, False: 2.94k]
  |  Branch (131:36): [True: 1, False: 24]
  ------------------
  132|      1|        {
  133|      1|            return detect_encoding_result<CharT>{data,encoding_kind::utf16le};
  134|      1|        }
  135|  2.96k|        else
  136|  2.96k|        {
  137|  2.96k|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  138|  2.96k|        }
  139|  3.45k|    }
_ZN8jsoncons14unicode_traits24detect_encoding_from_bomIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
   66|  3.45k|    {
   67|  3.45k|        static constexpr uint8_t bom_utf8[] = {0xef,0xbb,0xbf}; 
   68|  3.45k|        static constexpr uint8_t bom_utf16le[] = {0xff,0xfe}; 
   69|  3.45k|        static constexpr uint8_t bom_utf16be[] = {0xfe,0xff}; 
   70|  3.45k|        static constexpr uint8_t bom_utf32le[] = {0xff,0xfe,0x00,0x00}; 
   71|  3.45k|        static constexpr uint8_t bom_utf32be[] = {0x00,0x00,0xfe,0xff}; 
   72|       |
   73|  3.45k|        if (length >= 4 && !memcmp(data,bom_utf32le,4))
  ------------------
  |  Branch (73:13): [True: 3.01k, False: 433]
  |  Branch (73:28): [True: 1, False: 3.01k]
  ------------------
   74|      1|        {
   75|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32le};
   76|      1|        }
   77|  3.45k|        else if (length >= 4 && !memcmp(data,bom_utf32be,4))
  ------------------
  |  Branch (77:18): [True: 3.01k, False: 433]
  |  Branch (77:33): [True: 1, False: 3.01k]
  ------------------
   78|      1|        {
   79|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32be};
   80|      1|        }
   81|  3.44k|        else if (length >= 2 && !memcmp(data,bom_utf16le,2))
  ------------------
  |  Branch (81:18): [True: 3.39k, False: 54]
  |  Branch (81:33): [True: 4, False: 3.39k]
  ------------------
   82|      4|        {
   83|      4|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16le};
   84|      4|        }
   85|  3.44k|        else if (length >= 2 && !memcmp(data,bom_utf16be,2))
  ------------------
  |  Branch (85:18): [True: 3.39k, False: 54]
  |  Branch (85:33): [True: 1, False: 3.39k]
  ------------------
   86|      1|        {
   87|      1|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16be};
   88|      1|        }
   89|  3.44k|        else if (length >= 3 && !memcmp(data,bom_utf8,3))
  ------------------
  |  Branch (89:18): [True: 3.19k, False: 246]
  |  Branch (89:33): [True: 38, False: 3.16k]
  ------------------
   90|     38|        {
   91|     38|            return detect_encoding_result<CharT>{data+3,encoding_kind::utf8};
   92|     38|        }
   93|  3.40k|        else
   94|  3.40k|        {
   95|  3.40k|            return detect_encoding_result<CharT>{data,encoding_kind::undetected};
   96|  3.40k|        }
   97|  3.45k|    }
_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|    326|    {
 1148|    326|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|    326|        const uint8_t* end = it + length;
 1150|       |
 1151|    326|        unicode_errc  result{};
 1152|   191k|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 191k, False: 109]
  ------------------
 1153|   191k|        {
 1154|   191k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 191k, False: 252]
  ------------------
 1155|   191k|            {
 1156|  1.23M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|   382k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 187k, False: 3.29k]
  |  |  |  Branch (281:34): [True: 180k, False: 6.93k]
  |  |  |  Branch (281:36): [True: 178k, False: 2.19k]
  |  |  |  Branch (281:38): [True: 176k, False: 2.13k]
  |  |  |  Branch (281:40): [True: 175k, False: 783]
  |  |  |  Branch (281:42): [True: 170k, False: 5.42k]
  |  |  |  Branch (281:44): [True: 164k, False: 5.81k]
  |  |  |  Branch (281:46): [True: 157k, False: 6.98k]
  |  |  ------------------
  ------------------
 1157|   157k|                continue;
 1158|  1.23M|            }
 1159|  33.8k|    non_ascii:
 1160|  33.8k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  33.8k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 34, False: 33.7k]
  ------------------
 1162|     34|            {
 1163|     34|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     34|            }
 1165|  33.7k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 183, False: 33.6k]
  ------------------
 1166|    183|            {
 1167|    183|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    183|            }
 1169|  33.6k|            it += len;
 1170|  33.6k|        }
 1171|    109|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|    326|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  33.7k|    {
  306|  33.7k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  33.7k|        const uint8_t* end = it+length;
  308|       |
  309|  33.7k|        uint8_t byte;
  310|  33.7k|        switch (length) {
  311|     39|        default:
  ------------------
  |  Branch (311:9): [True: 39, False: 33.7k]
  ------------------
  312|     39|            return unicode_errc::over_long_utf8_sequence;
  313|    954|        case 4:
  ------------------
  |  Branch (313:9): [True: 954, False: 32.8k]
  ------------------
  314|    954|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 7, False: 947]
  ------------------
  315|      7|                return unicode_errc::bad_continuation_byte;
  316|    947|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    947|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  8.08k|        case 3:
  ------------------
  |  Branch (317:9): [True: 7.13k, False: 26.6k]
  ------------------
  318|  8.08k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 16, False: 8.07k]
  ------------------
  319|     16|                return unicode_errc::bad_continuation_byte;
  320|  8.07k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  8.07k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  33.5k|        case 2:
  ------------------
  |  Branch (321:9): [True: 25.5k, False: 8.26k]
  ------------------
  322|  33.5k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 42, False: 33.5k]
  ------------------
  323|     42|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  33.5k|            switch (*it) 
  326|  33.5k|            {
  327|       |                // no fall-through in this inner switch
  328|  6.12k|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 6.12k, False: 27.4k]
  |  Branch (328:32): [True: 6, False: 6.11k]
  ------------------
  329|  6.11k|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 485, False: 33.0k]
  |  Branch (329:32): [True: 4, False: 481]
  ------------------
  330|    607|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 607, False: 32.9k]
  |  Branch (330:32): [True: 7, False: 600]
  ------------------
  331|    600|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 297, False: 33.2k]
  |  Branch (331:32): [True: 1, False: 296]
  ------------------
  332|  26.0k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 26.0k, False: 7.50k]
  |  Branch (332:32): [True: 0, False: 26.0k]
  ------------------
  333|  33.5k|            }
  334|       |
  335|  33.5k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  33.5k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  33.6k|        case 1:
  ------------------
  |  Branch (336:9): [True: 136, False: 33.6k]
  ------------------
  337|  33.6k|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 33.5k, False: 77]
  |  Branch (337:32): [True: 60, False: 33.5k]
  ------------------
  338|     60|                return unicode_errc::source_illegal;
  339|  33.6k|            break;
  340|  33.7k|        }
  341|  33.6k|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 1, False: 33.6k]
  ------------------
  342|      1|            return unicode_errc::source_illegal;
  343|       |
  344|  33.6k|        return unicode_errc();
  345|  33.6k|    }
_ZN8jsoncons14unicode_traits17is_high_surrogateEj:
  209|   553k|    {
  210|   553k|        return (ch >= sur_high_start && ch <= sur_high_end);
  ------------------
  |  Branch (210:17): [True: 322k, False: 231k]
  |  Branch (210:41): [True: 276k, False: 45.3k]
  ------------------
  211|   553k|    }
_ZN8jsoncons14unicode_traits7convertIjNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS2_9enable_ifIXaaaasr10ext_traits9is_char32IT_EE5valuesr10ext_traits18is_back_insertableIT0_EE5valuesr10ext_traits8is_char8INSB_10value_typeEEE5valueENS0_14unicode_resultISA_EEE4typeEPKSA_mRSB_NS0_11strict_flagE:
  980|   553k|    {
  981|   553k|        unicode_errc  result{};
  982|   553k|        const CharT* last = data + length;
  983|  1.06M|        while (data < last) 
  ------------------
  |  Branch (983:16): [True: 553k, False: 511k]
  ------------------
  984|   553k|        {
  985|   553k|            uint16_t bytes_to_write = 0;
  986|   553k|            static constexpr uint32_t byteMask = 0xBF;
  987|   553k|            static constexpr uint32_t byteMark = 0x80; 
  988|   553k|            uint32_t ch = *data++;
  989|   553k|            if (flags == strict_flag::strict ) 
  ------------------
  |  Branch (989:17): [True: 553k, False: 0]
  ------------------
  990|   553k|            {
  991|       |                /* UTF-16 surrogate values are illegal in UTF-32 */
  992|   553k|                if (is_surrogate(ch)) 
  ------------------
  |  Branch (992:21): [True: 41.8k, False: 511k]
  ------------------
  993|  41.8k|                {
  994|  41.8k|                    --data; /* return to the illegal value itself */
  995|  41.8k|                    result = unicode_errc::illegal_surrogate_value;
  996|  41.8k|                    break;
  997|  41.8k|                }
  998|   553k|            }
  999|       |            /*
 1000|       |             * Figure out how many bytes the result will require. Turn any
 1001|       |             * illegally large UTF32 things (> Plane 17) into replacement chars.
 1002|       |             */
 1003|   511k|            if (ch < (uint32_t)0x80) {      bytes_to_write = 1;
  ------------------
  |  Branch (1003:17): [True: 1.68k, False: 510k]
  ------------------
 1004|   510k|            } else if (ch < (uint32_t)0x800) {     bytes_to_write = 2;
  ------------------
  |  Branch (1004:24): [True: 5.19k, False: 504k]
  ------------------
 1005|   504k|            } else if (ch < (uint32_t)0x10000) {   bytes_to_write = 3;
  ------------------
  |  Branch (1005:24): [True: 228k, False: 276k]
  ------------------
 1006|   276k|            } else if (ch <= max_legal_utf32) {  bytes_to_write = 4;
  ------------------
  |  Branch (1006:24): [True: 276k, False: 0]
  ------------------
 1007|   276k|            } else {                            
 1008|      0|                bytes_to_write = 3;
 1009|      0|                ch = replacement_char;
 1010|      0|                result = unicode_errc::source_illegal;
 1011|      0|            }
 1012|       |
 1013|   511k|            uint8_t byte1 = 0;
 1014|   511k|            uint8_t byte2 = 0;
 1015|   511k|            uint8_t byte3 = 0;
 1016|   511k|            uint8_t byte4 = 0;
 1017|       |
 1018|   511k|            switch (bytes_to_write) {
  ------------------
  |  Branch (1018:21): [True: 511k, False: 0]
  ------------------
 1019|   276k|            case 4:
  ------------------
  |  Branch (1019:13): [True: 276k, False: 234k]
  ------------------
 1020|   276k|                byte4 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1021|   276k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   276k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1022|   504k|            case 3:
  ------------------
  |  Branch (1022:13): [True: 228k, False: 283k]
  ------------------
 1023|   504k|                byte3 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1024|   504k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   504k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1025|   510k|            case 2:
  ------------------
  |  Branch (1025:13): [True: 5.19k, False: 506k]
  ------------------
 1026|   510k|                byte2 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1027|   510k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   510k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1028|   511k|            case 1:
  ------------------
  |  Branch (1028:13): [True: 1.68k, False: 510k]
  ------------------
 1029|   511k|                byte1 = (uint8_t) (ch | first_byte_mark[bytes_to_write]);
 1030|   511k|                break;
 1031|   511k|            }
 1032|       |
 1033|   511k|            switch (bytes_to_write) 
  ------------------
  |  Branch (1033:21): [True: 511k, False: 0]
  ------------------
 1034|   511k|            {
 1035|   276k|            case 4: 
  ------------------
  |  Branch (1035:13): [True: 276k, False: 234k]
  ------------------
 1036|   276k|                target.push_back(byte1);
 1037|   276k|                target.push_back(byte2);
 1038|   276k|                target.push_back(byte3);
 1039|   276k|                target.push_back(byte4);
 1040|   276k|                break;
 1041|   228k|            case 3: 
  ------------------
  |  Branch (1041:13): [True: 228k, False: 283k]
  ------------------
 1042|   228k|                target.push_back(byte1);
 1043|   228k|                target.push_back(byte2);
 1044|   228k|                target.push_back(byte3);
 1045|   228k|                break;
 1046|  5.19k|            case 2: 
  ------------------
  |  Branch (1046:13): [True: 5.19k, False: 506k]
  ------------------
 1047|  5.19k|                target.push_back(byte1);
 1048|  5.19k|                target.push_back(byte2);
 1049|  5.19k|                break;
 1050|  1.68k|            case 1: 
  ------------------
  |  Branch (1050:13): [True: 1.68k, False: 510k]
  ------------------
 1051|  1.68k|                target.push_back(byte1);
 1052|  1.68k|                break;
 1053|   511k|            }
 1054|   511k|        }
 1055|   553k|        return unicode_result<CharT>{data,result} ;
 1056|   553k|    }
_ZN8jsoncons14unicode_traits12is_surrogateEj:
  221|   553k|    {
  222|   553k|        return (ch >= sur_high_start && ch <= sur_low_end);
  ------------------
  |  Branch (222:17): [True: 322k, False: 231k]
  |  Branch (222:41): [True: 41.8k, False: 280k]
  ------------------
  223|   553k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|    291|{
   43|    291|    using char_type = typename Result::value_type;
   44|       |
   45|    291|    char_type buf[255];
   46|    291|    char_type *p = buf;
   47|    291|    const char_type* last = buf+255;
   48|       |
   49|    291|    bool is_negative = value < 0;
   50|       |
   51|    291|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 291]
  ------------------
   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|    291|    else
   60|    291|    {
   61|       |
   62|    291|        do
   63|  3.94k|        {
   64|  3.94k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  3.94k|        }
   66|  3.94k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 3.65k, False: 291]
  |  Branch (66:33): [True: 3.65k, False: 0]
  ------------------
   67|    291|    }
   68|    291|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|    291|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 291]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|    291|    std::size_t count = (p - buf);
   71|    291|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 291]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  4.23k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 3.94k, False: 291]
  ------------------
   77|  3.94k|    {
   78|  3.94k|        result.push_back(*p);
   79|  3.94k|    }
   80|       |
   81|    291|    return count;
   82|    291|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|    277|{
   43|    277|    using char_type = typename Result::value_type;
   44|       |
   45|    277|    char_type buf[255];
   46|    277|    char_type *p = buf;
   47|    277|    const char_type* last = buf+255;
   48|       |
   49|    277|    bool is_negative = value < 0;
   50|       |
   51|    277|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 276, False: 1]
  ------------------
   52|    276|    {
   53|    276|        do
   54|  3.31k|        {
   55|  3.31k|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  3.31k|        }
   57|  3.31k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 3.03k, False: 276]
  |  Branch (57:33): [True: 3.03k, False: 0]
  ------------------
   58|    276|    }
   59|      1|    else
   60|      1|    {
   61|       |
   62|      1|        do
   63|      1|        {
   64|      1|            *p++ = static_cast<char_type>(48 + value % 10);
   65|      1|        }
   66|      1|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 0, False: 1]
  |  Branch (66:33): [True: 0, False: 0]
  ------------------
   67|      1|    }
   68|    277|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|    277|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 277]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|    277|    std::size_t count = (p - buf);
   71|    277|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 276, False: 1]
  ------------------
   72|    276|    {
   73|    276|        result.push_back('-');
   74|    276|        ++count;
   75|    276|    }
   76|  3.58k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 3.31k, False: 277]
  ------------------
   77|  3.31k|    {
   78|  3.31k|        result.push_back(*p);
   79|  3.31k|    }
   80|       |
   81|    277|    return count;
   82|    277|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|    987|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|    987|    {
  489|    987|#if !defined(JSONCONS_NO_LOCALECONV)
  490|    987|        struct lconv *lc = localeconv();
  491|    987|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 987, False: 0]
  |  Branch (491:30): [True: 987, False: 0]
  ------------------
  492|    987|        {
  493|    987|            decimal_point_ = lc->decimal_point[0];
  494|    987|        }
  495|    987|#endif
  496|    987|    }
_ZN8jsoncons12write_doubleclINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEmdRT_:
  503|    987|    {
  504|    987|        std::size_t count = 0;
  505|       |
  506|    987|        char number_buffer[200];
  507|    987|        int length = 0;
  508|       |
  509|    987|        switch (float_format_)
  510|    987|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 987]
  ------------------
  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: 987]
  ------------------
  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|    987|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 987, False: 0]
  ------------------
  552|    987|            {
  553|    987|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 987]
  ------------------
  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|    987|                else
  563|    987|                {
  564|    987|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 987]
  ------------------
  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|    987|                }             
  569|    987|                break;
  570|    987|            }
  571|    987|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 987]
  ------------------
  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|    987|        }
  575|    987|        return count;
  576|    987|    }
_ZN8jsoncons11dump_bufferINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvPKcmcRT_:
  243|    195|{
  244|    195|    const char *sbeg = buffer;
  245|    195|    const char *send = sbeg + length;
  246|       |
  247|    195|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 195, False: 0]
  ------------------
  248|    195|    {
  249|    195|        bool needs_dot = true;
  250|  2.62k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 2.42k, False: 195]
  ------------------
  251|  2.42k|        {
  252|  2.42k|            switch (*q)
  253|  2.42k|            {
  254|      9|            case '-':
  ------------------
  |  Branch (254:13): [True: 9, False: 2.42k]
  ------------------
  255|    262|            case '0':
  ------------------
  |  Branch (255:13): [True: 253, False: 2.17k]
  ------------------
  256|    457|            case '1':
  ------------------
  |  Branch (256:13): [True: 195, False: 2.23k]
  ------------------
  257|    640|            case '2':
  ------------------
  |  Branch (257:13): [True: 183, False: 2.24k]
  ------------------
  258|    842|            case '3':
  ------------------
  |  Branch (258:13): [True: 202, False: 2.22k]
  ------------------
  259|  1.04k|            case '4':
  ------------------
  |  Branch (259:13): [True: 204, False: 2.22k]
  ------------------
  260|  1.25k|            case '5':
  ------------------
  |  Branch (260:13): [True: 207, False: 2.22k]
  ------------------
  261|  1.47k|            case '6':
  ------------------
  |  Branch (261:13): [True: 220, False: 2.20k]
  ------------------
  262|  1.61k|            case '7':
  ------------------
  |  Branch (262:13): [True: 141, False: 2.28k]
  ------------------
  263|  1.83k|            case '8':
  ------------------
  |  Branch (263:13): [True: 219, False: 2.21k]
  ------------------
  264|  2.13k|            case '9':
  ------------------
  |  Branch (264:13): [True: 298, False: 2.13k]
  ------------------
  265|  2.18k|            case '+':
  ------------------
  |  Branch (265:13): [True: 53, False: 2.37k]
  ------------------
  266|  2.18k|                result.push_back(*q);
  267|  2.18k|                break;
  268|     59|            case 'e':
  ------------------
  |  Branch (268:13): [True: 59, False: 2.37k]
  ------------------
  269|     59|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 2.42k]
  ------------------
  270|     59|                result.push_back('e');
  271|     59|                needs_dot = false;
  272|     59|                break;
  273|    186|            default:
  ------------------
  |  Branch (273:13): [True: 186, False: 2.24k]
  ------------------
  274|    186|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 186, False: 0]
  ------------------
  275|    186|                {
  276|    186|                    needs_dot = false;
  277|    186|                    result.push_back('.');
  278|    186|                }
  279|    186|                break;
  280|  2.42k|            }
  281|  2.42k|        }
  282|    195|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 2, False: 193]
  ------------------
  283|      2|        {
  284|      2|            result.push_back('.');
  285|      2|            result.push_back('0');
  286|      2|        }
  287|    195|    }
  288|    195|}
_ZN8jsoncons15prettify_stringINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvPKcmiiiRT_:
  171|    779|{
  172|    779|    int nb_digits = (int)length;
  173|    779|    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|    779|    int kk = nb_digits + k;
  179|       |
  180|    779|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 167, False: 612]
  |  Branch (180:28): [True: 58, False: 109]
  ------------------
  181|     58|    {
  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|    228|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 170, False: 58]
  ------------------
  186|    170|        {
  187|    170|            result.push_back(buffer[i]);
  188|    170|        }
  189|    301|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 243, False: 58]
  ------------------
  190|    243|        {
  191|    243|            result.push_back('0');
  192|    243|        }
  193|     58|        result.push_back('.');
  194|     58|        result.push_back('0');
  195|     58|    } 
  196|    721|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 312, False: 409]
  |  Branch (196:24): [True: 203, False: 109]
  ------------------
  197|    203|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  1.17k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 969, False: 203]
  ------------------
  200|    969|        {
  201|    969|            result.push_back(buffer[i]);
  202|    969|        }
  203|    203|        result.push_back('.');
  204|  1.17k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 974, False: 203]
  ------------------
  205|    974|        {
  206|    974|            result.push_back(buffer[i]);
  207|    974|        }
  208|    203|    } 
  209|    518|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 135, False: 383]
  |  Branch (209:30): [True: 26, False: 109]
  ------------------
  210|     26|    {
  211|     26|        offset = 2 - kk;
  212|       |
  213|     26|        result.push_back('0');
  214|     26|        result.push_back('.');
  215|     39|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 13, False: 26]
  ------------------
  216|     13|            result.push_back('0');
  217|    127|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 101, False: 26]
  ------------------
  218|    101|        {
  219|    101|            result.push_back(buffer[i]);
  220|    101|        }
  221|     26|    } 
  222|    492|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 169, False: 323]
  ------------------
  223|    169|    {
  224|    169|        result.push_back(buffer[0]);
  225|    169|        result.push_back('e');
  226|    169|        fill_exponent(kk - 1, result);
  227|    169|    } 
  228|    323|    else
  229|    323|    {
  230|    323|        result.push_back(buffer[0]);
  231|    323|        result.push_back('.');
  232|  1.76k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 1.44k, False: 323]
  ------------------
  233|  1.44k|        {
  234|  1.44k|            result.push_back(buffer[i]);
  235|  1.44k|        }
  236|    323|        result.push_back('e');
  237|    323|        fill_exponent(kk - 1, result);
  238|    323|    }
  239|    779|}
_ZN8jsoncons13fill_exponentINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEviRT_:
  136|    492|{
  137|    492|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 383, False: 109]
  ------------------
  138|    383|    {
  139|    383|        result.push_back('-');
  140|    383|        K = -K;
  141|    383|    }
  142|    109|    else
  143|    109|    {
  144|    109|        result.push_back('+'); // compatibility with sprintf
  145|    109|    }
  146|       |
  147|    492|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 11, False: 481]
  ------------------
  148|     11|    {
  149|     11|        result.push_back('0'); // compatibility with sprintf
  150|     11|        result.push_back((char)('0' + K));
  151|     11|    }
  152|    481|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 88, False: 393]
  ------------------
  153|     88|    {
  154|     88|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|     88|        result.push_back((char)('0' + K));
  156|     88|    }
  157|    393|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 393, False: 0]
  ------------------
  158|    393|    {
  159|    393|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|    393|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|    393|        result.push_back((char)('0' + K));
  162|    393|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|    492|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_:
  475|    987|{
  476|    987|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|    987|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_NS1_17integral_constantIbLb1EEE:
  366|    987|{
  367|    987|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 13, False: 974]
  ------------------
  368|     13|    {
  369|     13|        result.push_back('0');
  370|     13|        result.push_back('.');
  371|     13|        result.push_back('0');
  372|     13|        return true;
  373|     13|    }
  374|       |
  375|    974|    int length = 0;
  376|    974|    int k;
  377|       |
  378|    974|    char buffer[100];
  379|       |
  380|    974|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 20, False: 954]
  ------------------
  381|    974|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 779, False: 195]
  ------------------
  382|    779|    {
  383|    779|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 17, False: 762]
  ------------------
  384|     17|        {
  385|     17|            result.push_back('-');
  386|     17|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|    779|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|    779|        return true;
  391|    779|    }
  392|    195|    else
  393|    195|    {
  394|    195|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|    195|    }
  396|    974|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_NS1_17integral_constantIbLb0EEE:
  329|    195|{
  330|    195|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 195]
  ------------------
  331|      0|    {
  332|      0|        result.push_back('0');
  333|      0|        result.push_back('.');
  334|      0|        result.push_back('0');
  335|      0|        return true;
  336|      0|    }
  337|       |
  338|    195|    char buffer[100];
  339|    195|    int precision = std::numeric_limits<double>::digits10;
  340|    195|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|    195|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 195]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|    195|    double x{0};
  346|    195|    auto res = decstr_to_double(buffer, length, x);
  347|    195|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 195]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|    195|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 55, False: 140]
  ------------------
  352|     55|    {
  353|     55|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|     55|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|     55|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 55]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|     55|    }
  360|    195|    dump_buffer(buffer, length, decimal_point, result);
  361|    195|    return true;
  362|    195|}

