LLVMFuzzerTestOneInput:
    7|  3.35k|{
    8|  3.35k|        std::string s(reinterpret_cast<const char*>(data), size);
    9|  3.35k|        std::istringstream is(s);
   10|       |
   11|  3.35k|        std::error_code ec;
   12|  3.35k|        json_stream_cursor reader(is, ec);
   13|  5.34k|        while (!reader.done() && !ec)
  ------------------
  |  Branch (13:16): [True: 2.69k, False: 2.65k]
  |  Branch (13:34): [True: 1.98k, False: 706]
  ------------------
   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: 2]
  ------------------
   18|  1.98k|                {
   19|  1.98k|                    reader.next(ec);
   20|  1.98k|                }
   21|  1.98k|        }
   22|       |
   23|  3.35k|        return 0;
   24|  3.35k|}

_ZN8jsoncons15make_error_codeENS_9conv_errcE:
  174|      2|{
  175|      2|    return std::error_code(static_cast<int>(result),conv_error_category());
  176|      2|}
_ZN8jsoncons19conv_error_categoryEv:
  167|      2|{
  168|      2|  static detail::conv_error_category_impl instance;
  169|      2|  return instance;
  170|      2|}

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

_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|    402|{
   17|    402|    return T(std::forward<Args>(args)..., alloc);
   18|    402|}
_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.57k|{
   17|  1.57k|    return T(std::forward<Args>(args)..., alloc);
   18|  1.57k|}
_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.0k|            : data_(data), size_(size)
   62|  14.0k|        {
   63|  14.0k|        }
_ZNK8jsoncons6detail4spanIKcLm18446744073709551615EE4sizeEv:
  116|  25.4k|        {
  117|  25.4k|            return size_;
  118|  25.4k|        }
_ZNK8jsoncons6detail4spanIKcLm18446744073709551615EE4dataEv:
  111|  14.0k|        {
  112|  14.0k|            return data_;
  113|  14.0k|        }
_ZN8jsoncons6detail4spanIKmLm18446744073709551615EEC2Ev:
   58|  3.35k|        {
   59|  3.35k|        }

_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_ED2Ev:
  257|  3.35k|    ~basic_json_cursor() = default;
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_nextERNS_18basic_json_visitorIcEERNS2_10error_codeE:
  529|  5.34k|    {
  530|  5.34k|        parser_.restart();
  531|  15.4k|        while (!parser_.stopped())
  ------------------
  |  Branch (531:16): [True: 11.4k, False: 3.97k]
  ------------------
  532|  11.4k|        {
  533|  11.4k|            if (parser_.source_exhausted())
  ------------------
  |  Branch (533:17): [True: 11.3k, False: 81]
  ------------------
  534|  11.3k|            {
  535|  11.3k|                auto s = source_.read_buffer(ec);
  536|  11.3k|                if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  11.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 19, False: 11.3k]
  |  |  ------------------
  ------------------
  537|  11.3k|                if (s.size() > 0)
  ------------------
  |  Branch (537:21): [True: 6.99k, False: 4.38k]
  ------------------
  538|  6.99k|                {
  539|  6.99k|                    parser_.update(s.data(),s.size());
  540|  6.99k|                    if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  6.99k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 6.99k]
  |  |  ------------------
  ------------------
  541|  6.99k|                }
  542|  11.3k|            }
  543|  11.4k|            bool eof = parser_.source_exhausted() && source_.eof();
  ------------------
  |  Branch (543:24): [True: 4.38k, False: 7.07k]
  |  Branch (543:54): [True: 4.38k, False: 0]
  ------------------
  544|  11.4k|            parser_.parse_some(visitor, ec);
  545|  11.4k|            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  11.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.32k, False: 10.1k]
  |  |  ------------------
  ------------------
  546|  10.1k|            if (eof)
  ------------------
  |  Branch (546:17): [True: 3.74k, False: 6.39k]
  ------------------
  547|  3.74k|            {
  548|  3.74k|                if (parser_.enter())
  ------------------
  |  Branch (548:21): [True: 25, False: 3.72k]
  ------------------
  549|     25|                {
  550|     25|                    done_ = true;
  551|     25|                    break;
  552|     25|                }
  553|  3.72k|                else if (!parser_.accept())
  ------------------
  |  Branch (553:26): [True: 9, False: 3.71k]
  ------------------
  554|      9|                {
  555|      9|                    ec = json_errc::unexpected_eof;
  556|      9|                    return;
  557|      9|                }
  558|  3.74k|            }
  559|  10.1k|        }
  560|  5.34k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_EC1IRNS2_19basic_istringstreamIcNS2_11char_traitsIcEES4_EEEEOT_RNS2_10error_codeE:
  134|  3.35k|        : basic_json_cursor(std::allocator_arg, Allocator(), 
  135|  3.35k|              std::forward<Sourceable>(source),
  136|  3.35k|              basic_json_decode_options<CharT>(),
  137|  3.35k|              ec)
  138|  3.35k|    {
  139|  3.35k|    }
_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.35k|       : source_(std::forward<Sourceable>(source)),
  204|  3.35k|         parser_(options, alloc)
  205|  3.35k|    {
  206|  3.35k|        parser_.cursor_mode(true);
  207|       |
  208|  3.35k|        if (!read_done())
  ------------------
  |  Branch (208:13): [True: 3.35k, False: 0]
  ------------------
  209|  3.35k|        {
  210|  3.35k|            std::error_code local_ec;
  211|  3.35k|            read_next(local_ec);
  212|  3.35k|            if (local_ec)
  ------------------
  |  Branch (212:17): [True: 1.34k, False: 2.01k]
  ------------------
  213|  1.34k|            {
  214|  1.34k|                if (local_ec == json_errc::unexpected_eof)
  ------------------
  |  Branch (214:21): [True: 644, False: 704]
  ------------------
  215|    644|                {
  216|    644|                    done_ = true;
  217|    644|                }
  218|    704|                else
  219|    704|                {
  220|    704|                    ec = local_ec;
  221|    704|                }
  222|  1.34k|            }
  223|  3.35k|        }
  224|  3.35k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_doneEv:
  470|  3.35k|    {
  471|  3.35k|        return parser_.done() || done_;
  ------------------
  |  Branch (471:16): [True: 0, False: 3.35k]
  |  Branch (471:34): [True: 0, False: 3.35k]
  ------------------
  472|  3.35k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_nextERNS2_10error_codeE:
  524|  5.34k|    {
  525|  5.34k|        read_next(cursor_visitor_, ec);
  526|  5.34k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E4doneEv:
  336|  5.34k|    {
  337|  5.34k|        return parser_.done() || done_;
  ------------------
  |  Branch (337:16): [True: 1.98k, False: 3.36k]
  |  Branch (337:34): [True: 669, False: 2.69k]
  ------------------
  338|  5.34k|    }
_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.69k|    {
  142|  2.69k|        return std::error_code(static_cast<int>(result),json_error_category());
  143|  2.69k|    }
_ZN8jsoncons19json_error_categoryEv:
  135|  2.69k|    {
  136|  2.69k|      static json_error_category_impl instance;
  137|  2.69k|      return instance;
  138|  2.69k|    }

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

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

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

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

_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEED2Ev:
  188|  3.35k|        {
  189|  3.35k|            if (buffer_)
  ------------------
  |  Branch (189:17): [True: 3.35k, False: 0]
  ------------------
  190|  3.35k|            {
  191|  3.35k|                std::allocator_traits<char_allocator_type>::deallocate(alloc_, buffer_, buffer_size_);
  192|  3.35k|            }
  193|  3.35k|        }
_ZNK8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE3eofEv:
  271|  15.7k|        {
  272|  15.7k|            return length_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:20): [True: 15.7k, False: 0]
  |  Branch (272:36): [True: 8.73k, False: 7.04k]
  ------------------
  273|  15.7k|        }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE11read_bufferEv:
  328|  7.04k|        {
  329|  7.04k|            if (length_ == 0)
  ------------------
  |  Branch (329:17): [True: 7.04k, False: 0]
  ------------------
  330|  7.04k|            {
  331|  7.04k|                fill_buffer();
  332|  7.04k|            }
  333|  7.04k|            const value_type* data = data_;
  334|  7.04k|            std::size_t length = length_;
  335|  7.04k|            data_ += length_;
  336|  7.04k|            position_ += length_;
  337|  7.04k|            length_ = 0;
  338|       |
  339|  7.04k|            return span<const value_type>(data, length);
  340|  7.04k|        }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE11fill_bufferEv:
  399|  7.04k|        {
  400|  7.04k|            if (stream_ptr_->eof())
  ------------------
  |  Branch (400:17): [True: 0, False: 7.04k]
  ------------------
  401|      0|            {
  402|      0|                length_ = 0;
  403|      0|                return;
  404|      0|            }
  405|       |
  406|  7.04k|            data_ = buffer_;
  407|  7.04k|            JSONCONS_TRY
  ------------------
  |  |   37|  7.04k|    #define JSONCONS_TRY try
  ------------------
  408|  7.04k|            {
  409|  7.04k|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(buffer_), buffer_size_);
  410|  7.04k|                length_ = static_cast<std::size_t>(count);
  411|       |
  412|  7.04k|                if (length_ < buffer_size_)
  ------------------
  |  Branch (412:21): [True: 3.34k, False: 3.70k]
  ------------------
  413|  3.34k|                {
  414|  3.34k|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  415|  3.34k|                }
  416|  7.04k|            }
  417|  7.04k|            JSONCONS_CATCH(const std::exception&)     
  418|  7.04k|            {
  419|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  420|      0|                length_ = 0;
  421|      0|            }
  422|  7.04k|        }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  171|  3.35k|            : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  172|  3.35k|              buffer_size_(default_max_buffer_size)
  173|  3.35k|        {
  174|  3.35k|            buffer_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, buffer_size_);
  175|  3.35k|            data_ = buffer_;
  176|  3.35k|        }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   54|  3.35k|          : std::basic_istream<CharT>(&nb_)
   55|  3.35k|        {
   56|  3.35k|        }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   40|  3.35k|            null_buffer() = default;

_ZN8jsoncons19json_source_adaptorINS_13stream_sourceIcNSt3__19allocatorIcEEEEE11read_bufferERNS2_10error_codeE:
  113|  11.3k|        {
  114|  11.3k|            if (source_.eof())
  ------------------
  |  Branch (114:17): [True: 4.35k, False: 7.04k]
  ------------------
  115|  4.35k|            {
  116|  4.35k|                return span<const value_type>();
  117|  4.35k|            }
  118|       |
  119|  7.04k|            auto s = source_.read_buffer();
  120|  7.04k|            const value_type* data = s.data();
  121|  7.04k|            std::size_t length = s.size();
  122|       |
  123|  7.04k|            if (bof_ && length > 0)
  ------------------
  |  Branch (123:17): [True: 3.35k, False: 3.68k]
  |  Branch (123:25): [True: 3.35k, False: 0]
  ------------------
  124|  3.35k|            {
  125|  3.35k|                auto r = unicode_traits::detect_json_encoding(data, length);
  126|  3.35k|                if (!(r.encoding == unicode_traits::encoding_kind::utf8 || r.encoding == unicode_traits::encoding_kind::undetected))
  ------------------
  |  Branch (126:23): [True: 3.34k, False: 19]
  |  Branch (126:76): [True: 0, False: 19]
  ------------------
  127|     19|                {
  128|     19|                    ec = json_errc::illegal_unicode_character;
  129|     19|                    return span<const value_type>();
  130|     19|                }
  131|  3.34k|                length -= (r.ptr - data);
  132|  3.34k|                data = r.ptr;
  133|  3.34k|                bof_ = false;
  134|  3.34k|            }
  135|       |            
  136|  7.02k|            return span<const value_type>(data, length);           
  137|  7.04k|        }
_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.35k|            : source_(std::forward<Sourceable>(source)), bof_(true)
   99|  3.35k|        {
  100|  3.35k|        }

_ZN8jsoncons17basic_staj_cursorIcED2Ev:
  260|  3.35k|    virtual ~basic_staj_cursor() = default;
_ZNK8jsoncons18basic_staj_visitorIcE5eventEv:
   73|  1.98k|    {
   74|  1.98k|        return event_;
   75|  1.98k|    }
_ZN8jsoncons18basic_staj_visitorIcEC2Ev:
   57|  3.35k|        : event_(staj_events::null_value),
   58|  3.35k|          state_(), shape_()
   59|  3.35k|    {
   60|  3.35k|    }
_ZN8jsoncons18basic_staj_visitorIcE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  199|    308|    {
  200|    308|        event_ = basic_staj_event<CharT>(value, tag);
  201|    308|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    308|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  202|    308|    }
_ZN8jsoncons18basic_staj_visitorIcE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  208|    234|    {
  209|    234|        event_ = basic_staj_event<CharT>(value, tag);
  210|    234|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    234|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  211|    234|    }
_ZN8jsoncons18basic_staj_visitorIcE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  226|  1.03k|    {
  227|  1.03k|        event_ = basic_staj_event<CharT>(value, tag);
  228|  1.03k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|  1.03k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  229|  1.03k|    }
_ZN8jsoncons18basic_staj_visitorIcE11visit_flushEv:
  250|  1.98k|    {
  251|  1.98k|    }
_ZN8jsoncons18basic_staj_visitorIcE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  118|      1|    {
  119|      1|        event_ = basic_staj_event<CharT>(staj_events::begin_object, tag);
  120|      1|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  121|      1|    }
_ZN8jsoncons18basic_staj_visitorIcE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  136|      1|    {
  137|      1|        event_ = basic_staj_event<CharT>(staj_events::begin_array, tag);
  138|      1|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  139|      1|    }
_ZN8jsoncons18basic_staj_visitorIcE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  160|      3|    {
  161|      3|        event_ = basic_staj_event<CharT>(staj_events::null_value, tag);
  162|      3|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  163|      3|    }
_ZN8jsoncons18basic_staj_visitorIcE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  166|      4|    {
  167|      4|        event_ = basic_staj_event<CharT>(value, tag);
  168|      4|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|      4|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  169|      4|    }
_ZN8jsoncons18basic_staj_visitorIcE12visit_stringERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  172|    402|    {
  173|    402|        event_ = basic_staj_event<CharT>(s, staj_events::string_value, tag);
  174|    402|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  272|    402|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  175|    402|    }

_ZN8jsoncons16basic_staj_eventIcEC2ENS_11staj_eventsENS_12semantic_tagE:
  211|  3.36k|        : event_type_(event_type), tag_(tag), value_()
  212|  3.36k|    {
  213|  3.36k|    }
_ZN8jsoncons16basic_staj_eventIcEC2EmNS_12semantic_tagE:
  238|    308|        : event_type_(staj_events::uint64_value), tag_(tag)
  239|    308|    {
  240|    308|        value_.uint64_value_ = value;
  241|    308|    }
_ZN8jsoncons16basic_staj_eventIcEC2ElNS_12semantic_tagE:
  232|    234|        : event_type_(staj_events::int64_value), tag_(tag)
  233|    234|    {
  234|    234|        value_.int64_value_ = value;
  235|    234|    }
_ZN8jsoncons16basic_staj_eventIcEC2EdNS_12semantic_tagE:
  250|  1.03k|        : event_type_(staj_events::double_value), tag_(tag)
  251|  1.03k|    {
  252|  1.03k|        value_.double_value_ = value;
  253|  1.03k|    }
_ZN8jsoncons16basic_staj_eventIcEC2ERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_11staj_eventsENS_12semantic_tagE:
  258|    402|        : event_type_(event_type), tag_(tag), length_(s.length())
  259|    402|    {
  260|    402|        value_.string_data_ = s.data();
  261|    402|    }
_ZN8jsoncons16basic_staj_eventIcEC2EbNS_12semantic_tagE:
  226|      4|        : event_type_(staj_events::bool_value), tag_(tag)
  227|      4|    {
  228|      4|        value_.bool_value_ = value;
  229|      4|    }
_ZNK8jsoncons16basic_staj_eventIcE3getINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEET_RNS3_10error_codeE:
  300|  1.98k|    {
  301|  1.98k|        return get_<T>(std::allocator<char>{}, ec);
  302|  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:
  307|  1.98k|    {
  308|  1.98k|        constexpr const char_type* true_constant = JSONCONS_CSTRING_CONSTANT(char_type,"true"); 
  ------------------
  |  |  258|  1.98k|#define JSONCONS_CSTRING_CONSTANT(CharT, Str) cstring_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  256|  1.98k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  253|  1.98k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  309|  1.98k|        constexpr const char_type* false_constant = JSONCONS_CSTRING_CONSTANT(char_type,"false"); 
  ------------------
  |  |  258|  1.98k|#define JSONCONS_CSTRING_CONSTANT(CharT, Str) cstring_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  256|  1.98k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  253|  1.98k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  310|  1.98k|        constexpr const char_type* null_constant = JSONCONS_CSTRING_CONSTANT(char_type,"null"); 
  ------------------
  |  |  258|  1.98k|#define JSONCONS_CSTRING_CONSTANT(CharT, Str) cstring_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  256|  1.98k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  253|  1.98k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  311|       |
  312|  1.98k|        switch (event_type_)
  313|  1.98k|        {
  314|      0|            case staj_events::key:
  ------------------
  |  Branch (314:13): [True: 0, False: 1.98k]
  ------------------
  315|    402|            case staj_events::string_value:
  ------------------
  |  Branch (315:13): [True: 402, False: 1.58k]
  ------------------
  316|    402|            {
  317|    402|                return jsoncons::make_obj_using_allocator<T>(alloc, value_.string_data_, length_);
  318|      0|            }
  319|      0|            case staj_events::byte_string_value:
  ------------------
  |  Branch (319:13): [True: 0, False: 1.98k]
  ------------------
  320|      0|            {
  321|      0|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  322|      0|                bytes_to_string(value_.byte_string_data_, value_.byte_string_data_+length_, tag(), s);
  323|      0|                return s;
  324|      0|            }
  325|    308|            case staj_events::uint64_value:
  ------------------
  |  Branch (325:13): [True: 308, False: 1.67k]
  ------------------
  326|    308|            {
  327|    308|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  328|    308|                jsoncons::from_integer(value_.uint64_value_, s);
  329|    308|                return s;
  330|      0|            }
  331|    234|            case staj_events::int64_value:
  ------------------
  |  Branch (331:13): [True: 234, False: 1.75k]
  ------------------
  332|    234|            {
  333|    234|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  334|    234|                jsoncons::from_integer(value_.int64_value_, s);
  335|    234|                return s;
  336|      0|            }
  337|      0|            case staj_events::half_value:
  ------------------
  |  Branch (337:13): [True: 0, False: 1.98k]
  ------------------
  338|      0|            {
  339|      0|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  340|      0|                jsoncons::write_double f{float_chars_format::general,0};
  341|      0|                double x = binary::decode_half(value_.half_value_);
  342|      0|                f(x, s);
  343|      0|                return s;
  344|      0|            }
  345|  1.03k|            case staj_events::double_value:
  ------------------
  |  Branch (345:13): [True: 1.03k, False: 953]
  ------------------
  346|  1.03k|            {
  347|  1.03k|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  348|  1.03k|                jsoncons::write_double f{float_chars_format::general,0};
  349|  1.03k|                f(value_.double_value_, s);
  350|  1.03k|                return s;
  351|      0|            }
  352|      4|            case staj_events::bool_value:
  ------------------
  |  Branch (352:13): [True: 4, False: 1.98k]
  ------------------
  353|      4|            {
  354|      4|                return jsoncons::make_obj_using_allocator<T>(alloc, value_.bool_value_ ? true_constant : false_constant);
  ------------------
  |  Branch (354:69): [True: 2, False: 2]
  ------------------
  355|      0|            }
  356|      3|            case staj_events::null_value:
  ------------------
  |  Branch (356:13): [True: 3, False: 1.98k]
  ------------------
  357|      3|            {
  358|      3|                return jsoncons::make_obj_using_allocator<T>(alloc, null_constant);
  359|      0|            }
  360|      2|            default:
  ------------------
  |  Branch (360:13): [True: 2, False: 1.98k]
  ------------------
  361|      2|            {
  362|      2|                ec = conv_errc::not_string;
  363|      2|                return T{};
  364|      0|            }
  365|  1.98k|        }
  366|  1.98k|    }

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

_ZN8jsoncons14dec_to_integerIlcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  327|    420|{
  328|    420|    if (length == 0)
  ------------------
  |  Branch (328:9): [True: 0, False: 420]
  ------------------
  329|      0|    {
  330|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  331|      0|    }
  332|       |
  333|    420|    bool sign = *s == '-';
  334|    420|    s += sign;
  335|    420|    length -= sign;
  336|       |
  337|    420|    using U = typename ext_traits::make_unsigned<T>::type;
  338|       |
  339|    420|    U num;
  340|    420|    auto ru = dec_to_integer(s, length, num);
  341|    420|    if (ru.ec != std::errc{})
  ------------------
  |  Branch (341:9): [True: 84, False: 336]
  ------------------
  342|     84|    {
  343|     84|        return to_number_result<CharT>(ru.ptr, ru.ec);
  344|     84|    }
  345|    336|    if (sign)
  ------------------
  |  Branch (345:9): [True: 336, False: 0]
  ------------------
  346|    336|    {
  347|    336|        if (num > static_cast<U>(-((ext_traits::integer_limits<T>::lowest)()+T(1))) + U(1))
  ------------------
  |  Branch (347:13): [True: 102, False: 234]
  ------------------
  348|    102|        {
  349|    102|            return to_number_result<CharT>(ru.ptr, std::errc::result_out_of_range);
  350|    102|        }
  351|    234|        else
  352|    234|        {
  353|    234|            value = static_cast<T>(U(0) - num);
  354|    234|            return to_number_result<CharT>(ru.ptr, std::errc{});
  355|    234|        }
  356|    336|    }
  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|    336|}
_ZN8jsoncons16to_number_resultIcEC2EPKcNSt3__14errcE:
  141|  1.27k|        : ptr(ptr_), ec(ec_)
  142|  1.27k|    {
  143|  1.27k|    }
_ZN8jsoncons14dec_to_integerImcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedntsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  265|    795|{
  266|    795|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|    795|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 795]
  |  |  ------------------
  ------------------
  267|      0|    {
  268|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  269|      0|    }
  270|       |
  271|    795|    static constexpr T max_value = (ext_traits::integer_limits<T>::max)();
  272|    795|    static constexpr T max_value_div_10 = max_value / 10;
  273|       |
  274|    795|    T num = 0;
  275|    795|    const CharT* cur = s;
  276|    795|    const CharT* last = s + length;
  277|    795|    static constexpr std::size_t digits10 = static_cast<std::size_t>(ext_traits::integer_limits<T>::digits10);
  278|    795|    const std::size_t n = (std::min)(digits10, length);
  279|    795|    const CharT* stop = s + n;
  280|       |     
  281|  12.9k|    while (cur < stop)
  ------------------
  |  Branch (281:12): [True: 12.1k, False: 795]
  ------------------
  282|  12.1k|    {
  283|  12.1k|        uint8_t d;
  284|  12.1k|        if (JSONCONS_LIKELY((d = static_cast<uint8_t>(*cur - '0')) <= 9) )
  ------------------
  |  |   77|  12.1k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 12.1k, False: 0]
  |  |  ------------------
  ------------------
  285|  12.1k|        {
  286|  12.1k|            num = static_cast<T>(d) + num*10;
  287|  12.1k|        }
  288|      0|        else
  289|      0|        {
  290|      0|            return to_number_result<CharT>(cur, std::errc::invalid_argument);
  291|      0|        }
  292|  12.1k|        ++cur;
  293|  12.1k|    }
  294|    795|    if (cur == last)
  ------------------
  |  Branch (294:9): [True: 345, False: 450]
  ------------------
  295|    345|    {
  296|    345|        value = num;
  297|    345|        return to_number_result<CharT>(cur, std::errc{});
  298|    345|    }
  299|    450|    if (cur+1 != last)
  ------------------
  |  Branch (299:9): [True: 132, False: 318]
  ------------------
  300|    132|    {
  301|    132|        return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  302|    132|    }
  303|    318|    if (is_digit(*cur))
  ------------------
  |  Branch (303:9): [True: 318, False: 0]
  ------------------
  304|    318|    {
  305|    318|        if (num > max_value_div_10)
  ------------------
  |  Branch (305:13): [True: 15, False: 303]
  ------------------
  306|     15|        {
  307|     15|            return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  308|     15|        }
  309|    303|        uint8_t d = static_cast<uint8_t>(*cur - '0');
  310|    303|        num = num*10;
  311|    303|        if (num > max_value - d)
  ------------------
  |  Branch (311:13): [True: 4, False: 299]
  ------------------
  312|      4|        {
  313|      4|            return to_number_result<CharT>(s, std::errc::result_out_of_range);
  314|      4|        }
  315|    299|        num += d;
  316|    299|        ++cur;
  317|    299|        value = num;
  318|    299|        return to_number_result<CharT>(cur, std::errc{});
  319|    303|    }
  320|       |    
  321|      0|    return to_number_result<CharT>(cur, std::errc::invalid_argument);
  322|    318|}
_ZN8jsoncons8is_digitEc:
   83|  33.0M|constexpr bool is_digit(char d) {
   84|  33.0M|    return is_type(static_cast<uint8_t>(d), (uint8_t)(DIGIT_TYPE_ZERO | DIGIT_TYPE_NONZERO));
   85|  33.0M|}
_ZN8jsoncons7is_typeEhh:
   68|  33.0M|constexpr bool is_type(uint8_t d, uint8_t type) {
   69|  33.0M|    return (digi_table[d] & type) != 0;
   70|  33.0M|}
_ZNK8jsoncons16to_number_resultIcEcvbEv:
  150|  1.88k|    {
  151|  1.88k|        return ec == std::errc{};
  152|  1.88k|    }
_ZN8jsoncons16decstr_to_doubleEPKcmRd:
  866|  1.29k|{
  867|  1.29k|    const char* cur = s+length;
  868|  1.29k|    char *end = nullptr;
  869|  1.29k|    val = strtod(s, &end);
  870|  1.29k|    const char* str_end = end;
  871|  1.29k|    if (JSONCONS_UNLIKELY(end < cur))
  ------------------
  |  |   78|  1.29k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.29k]
  |  |  ------------------
  ------------------
  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.29k|    if (JSONCONS_UNLIKELY(val <= -HUGE_VAL || val >= HUGE_VAL))
  ------------------
  |  |   78|  2.57k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 58, False: 1.23k]
  |  |  |  Branch (78:50): [True: 14, False: 1.28k]
  |  |  |  Branch (78:50): [True: 44, False: 1.23k]
  |  |  ------------------
  ------------------
  888|     58|    {
  889|     58|        return to_number_result<char>{str_end, std::errc::result_out_of_range};
  890|     58|    }
  891|  1.23k|    return to_number_result<char>{str_end};
  892|  1.29k|}
_ZN8jsoncons16to_number_resultIcEC2EPKc:
  137|  1.23k|        : ptr(ptr_), ec(std::errc{})
  138|  1.23k|    {
  139|  1.23k|    }
_ZN8jsoncons16is_nonzero_digitEc:
   78|    475|constexpr bool is_nonzero_digit(char d) {
   79|    475|    return is_type(static_cast<uint8_t>(d), (uint8_t)DIGIT_TYPE_NONZERO);
   80|    475|}
_ZN8jsoncons6is_expEc:
   88|    753|constexpr bool is_exp(char d) {
   89|    753|    return is_type(static_cast<uint8_t>(d), (uint8_t)DIGIT_TYPE_EXP);
   90|    753|}

_ZN8jsoncons14unicode_traits20detect_json_encodingIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
  108|  3.35k|    {
  109|  3.35k|        detect_encoding_result<CharT> r = detect_encoding_from_bom(data,length);
  110|  3.35k|        if (r.encoding != encoding_kind::undetected)
  ------------------
  |  Branch (110:13): [True: 42, False: 3.31k]
  ------------------
  111|     42|        {
  112|     42|            return r;
  113|     42|        }
  114|  3.31k|        else if (length < 4)
  ------------------
  |  Branch (114:18): [True: 454, False: 2.86k]
  ------------------
  115|    454|        {
  116|    454|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  117|    454|        }
  118|  2.86k|        else if (*data == 0 && *(data+1) == 0 && *(data+2) == 0)
  ------------------
  |  Branch (118:18): [True: 25, False: 2.83k]
  |  Branch (118:32): [True: 15, False: 10]
  |  Branch (118:50): [True: 2, False: 13]
  ------------------
  119|      2|        {
  120|      2|            return detect_encoding_result<CharT>{data,encoding_kind::utf32be};
  121|      2|        }
  122|  2.86k|        else if (*data == 0 && *(data+2) == 0)
  ------------------
  |  Branch (122:18): [True: 23, False: 2.83k]
  |  Branch (122:32): [True: 5, False: 18]
  ------------------
  123|      5|        {
  124|      5|            return detect_encoding_result<CharT>{data,encoding_kind::utf16be};
  125|      5|        }
  126|  2.85k|        else if (*(data+1) == 0 && *(data+2) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (126:18): [True: 27, False: 2.82k]
  |  Branch (126:36): [True: 10, False: 17]
  |  Branch (126:54): [True: 1, False: 9]
  ------------------
  127|      1|        {
  128|      1|            return detect_encoding_result<CharT>{data,encoding_kind::utf32le};
  129|      1|        }
  130|  2.85k|        else if (*(data+1) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (130:18): [True: 26, False: 2.82k]
  |  Branch (130:36): [True: 4, False: 22]
  ------------------
  131|      4|        {
  132|      4|            return detect_encoding_result<CharT>{data,encoding_kind::utf16le};
  133|      4|        }
  134|  2.85k|        else
  135|  2.85k|        {
  136|  2.85k|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  137|  2.85k|        }
  138|  3.35k|    }
_ZN8jsoncons14unicode_traits24detect_encoding_from_bomIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
   65|  3.35k|    {
   66|  3.35k|        const uint8_t bom_utf8[] = {0xef,0xbb,0xbf}; 
   67|  3.35k|        const uint8_t bom_utf16le[] = {0xff,0xfe}; 
   68|  3.35k|        const uint8_t bom_utf16be[] = {0xfe,0xff}; 
   69|  3.35k|        const uint8_t bom_utf32le[] = {0xff,0xfe,0x00,0x00}; 
   70|  3.35k|        const uint8_t bom_utf32be[] = {0x00,0x00,0xfe,0xff}; 
   71|       |
   72|  3.35k|        if (length >= 4 && !memcmp(data,bom_utf32le,4))
  ------------------
  |  Branch (72:13): [True: 2.90k, False: 457]
  |  Branch (72:28): [True: 1, False: 2.90k]
  ------------------
   73|      1|        {
   74|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32le};
   75|      1|        }
   76|  3.35k|        else if (length >= 4 && !memcmp(data,bom_utf32be,4))
  ------------------
  |  Branch (76:18): [True: 2.90k, False: 457]
  |  Branch (76:33): [True: 1, False: 2.90k]
  ------------------
   77|      1|        {
   78|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32be};
   79|      1|        }
   80|  3.35k|        else if (length >= 2 && !memcmp(data,bom_utf16le,2))
  ------------------
  |  Branch (80:18): [True: 3.30k, False: 54]
  |  Branch (80:33): [True: 4, False: 3.29k]
  ------------------
   81|      4|        {
   82|      4|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16le};
   83|      4|        }
   84|  3.35k|        else if (length >= 2 && !memcmp(data,bom_utf16be,2))
  ------------------
  |  Branch (84:18): [True: 3.29k, False: 54]
  |  Branch (84:33): [True: 1, False: 3.29k]
  ------------------
   85|      1|        {
   86|      1|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16be};
   87|      1|        }
   88|  3.35k|        else if (length >= 3 && !memcmp(data,bom_utf8,3))
  ------------------
  |  Branch (88:18): [True: 3.09k, False: 254]
  |  Branch (88:33): [True: 35, False: 3.06k]
  ------------------
   89|     35|        {
   90|     35|            return detect_encoding_result<CharT>{data+3,encoding_kind::utf8};
   91|     35|        }
   92|  3.31k|        else
   93|  3.31k|        {
   94|  3.31k|            return detect_encoding_result<CharT>{data,encoding_kind::undetected};
   95|  3.31k|        }
   96|  3.35k|    }
_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14convert_resultIS4_EEE4typeEPKS4_m:
 1134|    191|    {
 1135|    191|        conv_errc  result = conv_errc();
 1136|    191|        const CharT* last = data + length;
 1137|  1.15M|        while (data != last) 
  ------------------
  |  Branch (1137:16): [True: 1.15M, False: 91]
  ------------------
 1138|  1.15M|        {
 1139|  1.15M|            std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[static_cast<uint8_t>(*data)]) + 1;
 1140|  1.15M|            if (len > (std::size_t)(last - data))
  ------------------
  |  Branch (1140:17): [True: 4, False: 1.15M]
  ------------------
 1141|      4|            {
 1142|      4|                return convert_result<CharT>{data, conv_errc::source_exhausted};
 1143|      4|            }
 1144|  1.15M|            if ((result=is_legal_utf8(data, len)) != conv_errc())
  ------------------
  |  Branch (1144:17): [True: 96, False: 1.15M]
  ------------------
 1145|     96|            {
 1146|     96|                return convert_result<CharT>{data,result} ;
 1147|     96|            }
 1148|  1.15M|            data += len;
 1149|  1.15M|        }
 1150|     91|        return convert_result<CharT>{data,result} ;
 1151|    191|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8IcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_9conv_errcEE4typeEPKS4_m:
  303|  1.15M|    {
  304|  1.15M|        uint8_t a;
  305|  1.15M|        const CharT* srcptr = first+length;
  306|  1.15M|        switch (length) {
  307|     23|        default:
  ------------------
  |  Branch (307:9): [True: 23, False: 1.15M]
  ------------------
  308|     23|            return conv_errc::over_long_utf8_sequence;
  309|    714|        case 4:
  ------------------
  |  Branch (309:9): [True: 714, False: 1.15M]
  ------------------
  310|    714|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (310:17): [True: 7, False: 707]
  ------------------
  311|      7|                return conv_errc::expected_continuation_byte;
  312|    707|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    707|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  313|  1.72k|        case 3:
  ------------------
  |  Branch (313:9): [True: 1.01k, False: 1.15M]
  ------------------
  314|  1.72k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 5, False: 1.71k]
  ------------------
  315|      5|                return conv_errc::expected_continuation_byte;
  316|  1.71k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.71k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  1.98k|        case 2:
  ------------------
  |  Branch (317:9): [True: 267, False: 1.15M]
  ------------------
  318|  1.98k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 15, False: 1.96k]
  ------------------
  319|     15|                return conv_errc::expected_continuation_byte;
  320|       |
  321|  1.96k|            switch (static_cast<uint8_t>(*first)) 
  322|  1.96k|            {
  323|       |                // no fall-through in this inner switch
  324|    616|                case 0xE0: if (a < 0xA0) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (324:17): [True: 616, False: 1.35k]
  |  Branch (324:32): [True: 7, False: 609]
  ------------------
  325|    609|                case 0xED: if (a > 0x9F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (325:17): [True: 303, False: 1.66k]
  |  Branch (325:32): [True: 3, False: 300]
  ------------------
  326|    472|                case 0xF0: if (a < 0x90) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (326:17): [True: 472, False: 1.49k]
  |  Branch (326:32): [True: 3, False: 469]
  ------------------
  327|    469|                case 0xF4: if (a > 0x8F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (327:17): [True: 231, False: 1.73k]
  |  Branch (327:32): [True: 5, False: 226]
  ------------------
  328|    346|                default:   if (a < 0x80) return conv_errc::source_illegal;
  ------------------
  |  Branch (328:17): [True: 346, False: 1.62k]
  |  Branch (328:32): [True: 0, False: 346]
  ------------------
  329|  1.96k|            }
  330|       |
  331|  1.95k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.95k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  332|  1.15M|        case 1:
  ------------------
  |  Branch (332:9): [True: 1.15M, False: 2.01k]
  ------------------
  333|  1.15M|            if (static_cast<uint8_t>(*first) >= 0x80 && static_cast<uint8_t>(*first) < 0xC2)
  ------------------
  |  Branch (333:17): [True: 1.97k, False: 1.15M]
  |  Branch (333:57): [True: 26, False: 1.95k]
  ------------------
  334|     26|                return conv_errc::source_illegal;
  335|  1.15M|            break;
  336|  1.15M|        }
  337|  1.15M|        if (static_cast<uint8_t>(*first) > 0xF4) 
  ------------------
  |  Branch (337:13): [True: 2, False: 1.15M]
  ------------------
  338|      2|            return conv_errc::source_illegal;
  339|       |
  340|  1.15M|        return conv_errc();
  341|  1.15M|    }
_ZN8jsoncons14unicode_traits17is_high_surrogateEj:
  206|   557k|    {
  207|   557k|        return (ch >= sur_high_start && ch <= sur_high_end);
  ------------------
  |  Branch (207:17): [True: 326k, False: 231k]
  |  Branch (207:41): [True: 277k, False: 48.8k]
  ------------------
  208|   557k|    }
_ZN8jsoncons14unicode_traits7convertIjNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS2_9enable_ifIXaaaasr10ext_traits9is_char32IT_EE5valuesr10ext_traits18is_back_insertableIT0_EE5valuesr10ext_traits8is_char8INSB_10value_typeEEE5valueENS0_14convert_resultISA_EEE4typeEPKSA_mRSB_NS0_10conv_flagsE:
  967|   557k|    {
  968|   557k|        conv_errc  result = conv_errc();
  969|   557k|        const CharT* last = data + length;
  970|  1.06M|        while (data < last) 
  ------------------
  |  Branch (970:16): [True: 557k, False: 512k]
  ------------------
  971|   557k|        {
  972|   557k|            unsigned short bytes_to_write = 0;
  973|   557k|            const uint32_t byteMask = 0xBF;
  974|   557k|            const uint32_t byteMark = 0x80; 
  975|   557k|            uint32_t ch = *data++;
  976|   557k|            if (flags == conv_flags::strict ) 
  ------------------
  |  Branch (976:17): [True: 557k, False: 0]
  ------------------
  977|   557k|            {
  978|       |                /* UTF-16 surrogate values are illegal in UTF-32 */
  979|   557k|                if (is_surrogate(ch)) 
  ------------------
  |  Branch (979:21): [True: 45.2k, False: 512k]
  ------------------
  980|  45.2k|                {
  981|  45.2k|                    --data; /* return to the illegal value itself */
  982|  45.2k|                    result = conv_errc::illegal_surrogate_value;
  983|  45.2k|                    break;
  984|  45.2k|                }
  985|   557k|            }
  986|       |            /*
  987|       |             * Figure out how many bytes the result will require. Turn any
  988|       |             * illegally large UTF32 things (> Plane 17) into replacement chars.
  989|       |             */
  990|   512k|            if (ch < (uint32_t)0x80) {      bytes_to_write = 1;
  ------------------
  |  Branch (990:17): [True: 1.78k, False: 510k]
  ------------------
  991|   510k|            } else if (ch < (uint32_t)0x800) {     bytes_to_write = 2;
  ------------------
  |  Branch (991:24): [True: 5.11k, False: 505k]
  ------------------
  992|   505k|            } else if (ch < (uint32_t)0x10000) {   bytes_to_write = 3;
  ------------------
  |  Branch (992:24): [True: 227k, False: 277k]
  ------------------
  993|   277k|            } else if (ch <= max_legal_utf32) {  bytes_to_write = 4;
  ------------------
  |  Branch (993:24): [True: 277k, False: 0]
  ------------------
  994|   277k|            } else {                            
  995|      0|                bytes_to_write = 3;
  996|      0|                ch = replacement_char;
  997|      0|                result = conv_errc::source_illegal;
  998|      0|            }
  999|       |
 1000|   512k|            uint8_t byte1 = 0;
 1001|   512k|            uint8_t byte2 = 0;
 1002|   512k|            uint8_t byte3 = 0;
 1003|   512k|            uint8_t byte4 = 0;
 1004|       |
 1005|   512k|            switch (bytes_to_write) {
  ------------------
  |  Branch (1005:21): [True: 512k, False: 0]
  ------------------
 1006|   277k|            case 4:
  ------------------
  |  Branch (1006:13): [True: 277k, False: 234k]
  ------------------
 1007|   277k|                byte4 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1008|   277k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   277k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1009|   505k|            case 3:
  ------------------
  |  Branch (1009:13): [True: 227k, False: 284k]
  ------------------
 1010|   505k|                byte3 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1011|   505k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   505k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1012|   510k|            case 2:
  ------------------
  |  Branch (1012:13): [True: 5.11k, False: 507k]
  ------------------
 1013|   510k|                byte2 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1014|   510k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   510k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1015|   512k|            case 1:
  ------------------
  |  Branch (1015:13): [True: 1.78k, False: 510k]
  ------------------
 1016|   512k|                byte1 = (uint8_t) (ch | first_byte_mark[bytes_to_write]);
 1017|   512k|                break;
 1018|   512k|            }
 1019|       |
 1020|   512k|            switch (bytes_to_write) 
  ------------------
  |  Branch (1020:21): [True: 512k, False: 0]
  ------------------
 1021|   512k|            {
 1022|   277k|            case 4: 
  ------------------
  |  Branch (1022:13): [True: 277k, False: 234k]
  ------------------
 1023|   277k|                target.push_back(byte1);
 1024|   277k|                target.push_back(byte2);
 1025|   277k|                target.push_back(byte3);
 1026|   277k|                target.push_back(byte4);
 1027|   277k|                break;
 1028|   227k|            case 3: 
  ------------------
  |  Branch (1028:13): [True: 227k, False: 284k]
  ------------------
 1029|   227k|                target.push_back(byte1);
 1030|   227k|                target.push_back(byte2);
 1031|   227k|                target.push_back(byte3);
 1032|   227k|                break;
 1033|  5.11k|            case 2: 
  ------------------
  |  Branch (1033:13): [True: 5.11k, False: 507k]
  ------------------
 1034|  5.11k|                target.push_back(byte1);
 1035|  5.11k|                target.push_back(byte2);
 1036|  5.11k|                break;
 1037|  1.78k|            case 1: 
  ------------------
  |  Branch (1037:13): [True: 1.78k, False: 510k]
  ------------------
 1038|  1.78k|                target.push_back(byte1);
 1039|  1.78k|                break;
 1040|   512k|            }
 1041|   512k|        }
 1042|   557k|        return convert_result<CharT>{data,result} ;
 1043|   557k|    }
_ZN8jsoncons14unicode_traits12is_surrogateEj:
  218|   557k|    {
  219|   557k|        return (ch >= sur_high_start && ch <= sur_low_end);
  ------------------
  |  Branch (219:17): [True: 326k, False: 231k]
  |  Branch (219:41): [True: 45.2k, False: 281k]
  ------------------
  220|   557k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|    308|{
   43|    308|    using char_type = typename Result::value_type;
   44|       |
   45|    308|    char_type buf[255];
   46|    308|    char_type *p = buf;
   47|    308|    const char_type* last = buf+255;
   48|       |
   49|    308|    bool is_negative = value < 0;
   50|       |
   51|    308|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 308]
  ------------------
   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|    308|    else
   60|    308|    {
   61|       |
   62|    308|        do
   63|  4.10k|        {
   64|  4.10k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  4.10k|        }
   66|  4.10k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 3.79k, False: 308]
  |  Branch (66:33): [True: 3.79k, False: 0]
  ------------------
   67|    308|    }
   68|    308|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|    308|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 308]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|    308|    std::size_t count = (p - buf);
   71|    308|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 308]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  4.41k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 4.10k, False: 308]
  ------------------
   77|  4.10k|    {
   78|  4.10k|        result.push_back(*p);
   79|  4.10k|    }
   80|       |
   81|    308|    return count;
   82|    308|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|    234|{
   43|    234|    using char_type = typename Result::value_type;
   44|       |
   45|    234|    char_type buf[255];
   46|    234|    char_type *p = buf;
   47|    234|    const char_type* last = buf+255;
   48|       |
   49|    234|    bool is_negative = value < 0;
   50|       |
   51|    234|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 233, False: 1]
  ------------------
   52|    233|    {
   53|    233|        do
   54|  2.79k|        {
   55|  2.79k|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  2.79k|        }
   57|  2.79k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 2.56k, False: 233]
  |  Branch (57:33): [True: 2.56k, False: 0]
  ------------------
   58|    233|    }
   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|    234|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|    234|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 234]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|    234|    std::size_t count = (p - buf);
   71|    234|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 233, False: 1]
  ------------------
   72|    233|    {
   73|    233|        result.push_back('-');
   74|    233|        ++count;
   75|    233|    }
   76|  3.02k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 2.79k, False: 234]
  ------------------
   77|  2.79k|    {
   78|  2.79k|        result.push_back(*p);
   79|  2.79k|    }
   80|       |
   81|    234|    return count;
   82|    234|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  1.03k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  1.03k|    {
  489|  1.03k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  1.03k|        struct lconv *lc = localeconv();
  491|  1.03k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 1.03k, False: 0]
  |  Branch (491:30): [True: 1.03k, False: 0]
  ------------------
  492|  1.03k|        {
  493|  1.03k|            decimal_point_ = lc->decimal_point[0];
  494|  1.03k|        }
  495|  1.03k|#endif
  496|  1.03k|    }
_ZN8jsoncons12write_doubleclINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEmdRT_:
  503|  1.03k|    {
  504|  1.03k|        std::size_t count = 0;
  505|       |
  506|  1.03k|        char number_buffer[200];
  507|  1.03k|        int length = 0;
  508|       |
  509|  1.03k|        switch (float_format_)
  510|  1.03k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 1.03k]
  ------------------
  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: 1.03k]
  ------------------
  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|  1.03k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 1.03k, False: 0]
  ------------------
  552|  1.03k|            {
  553|  1.03k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 1.03k]
  ------------------
  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|  1.03k|                else
  563|  1.03k|                {
  564|  1.03k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 1.03k]
  ------------------
  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|  1.03k|                }             
  569|  1.03k|                break;
  570|  1.03k|            }
  571|  1.03k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 1.03k]
  ------------------
  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|  1.03k|        }
  575|  1.03k|        return count;
  576|  1.03k|    }
_ZN8jsoncons11dump_bufferINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvPKcmcRT_:
  243|    203|{
  244|    203|    const char *sbeg = buffer;
  245|    203|    const char *send = sbeg + length;
  246|       |
  247|    203|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 203, False: 0]
  ------------------
  248|    203|    {
  249|    203|        bool needs_dot = true;
  250|  2.69k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 2.49k, False: 203]
  ------------------
  251|  2.49k|        {
  252|  2.49k|            switch (*q)
  253|  2.49k|            {
  254|     10|            case '-':
  ------------------
  |  Branch (254:13): [True: 10, False: 2.48k]
  ------------------
  255|    290|            case '0':
  ------------------
  |  Branch (255:13): [True: 280, False: 2.21k]
  ------------------
  256|    486|            case '1':
  ------------------
  |  Branch (256:13): [True: 196, False: 2.30k]
  ------------------
  257|    686|            case '2':
  ------------------
  |  Branch (257:13): [True: 200, False: 2.29k]
  ------------------
  258|    891|            case '3':
  ------------------
  |  Branch (258:13): [True: 205, False: 2.29k]
  ------------------
  259|  1.12k|            case '4':
  ------------------
  |  Branch (259:13): [True: 230, False: 2.26k]
  ------------------
  260|  1.33k|            case '5':
  ------------------
  |  Branch (260:13): [True: 214, False: 2.28k]
  ------------------
  261|  1.54k|            case '6':
  ------------------
  |  Branch (261:13): [True: 205, False: 2.29k]
  ------------------
  262|  1.70k|            case '7':
  ------------------
  |  Branch (262:13): [True: 164, False: 2.33k]
  ------------------
  263|  1.95k|            case '8':
  ------------------
  |  Branch (263:13): [True: 251, False: 2.24k]
  ------------------
  264|  2.19k|            case '9':
  ------------------
  |  Branch (264:13): [True: 241, False: 2.25k]
  ------------------
  265|  2.24k|            case '+':
  ------------------
  |  Branch (265:13): [True: 51, False: 2.44k]
  ------------------
  266|  2.24k|                result.push_back(*q);
  267|  2.24k|                break;
  268|     57|            case 'e':
  ------------------
  |  Branch (268:13): [True: 57, False: 2.43k]
  ------------------
  269|     57|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 2.49k]
  ------------------
  270|     57|                result.push_back('e');
  271|     57|                needs_dot = false;
  272|     57|                break;
  273|    192|            default:
  ------------------
  |  Branch (273:13): [True: 192, False: 2.30k]
  ------------------
  274|    192|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 192, False: 0]
  ------------------
  275|    192|                {
  276|    192|                    needs_dot = false;
  277|    192|                    result.push_back('.');
  278|    192|                }
  279|    192|                break;
  280|  2.49k|            }
  281|  2.49k|        }
  282|    203|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 3, False: 200]
  ------------------
  283|      3|        {
  284|      3|            result.push_back('.');
  285|      3|            result.push_back('0');
  286|      3|        }
  287|    203|    }
  288|    203|}
_ZN8jsoncons15prettify_stringINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvPKcmiiiRT_:
  171|    815|{
  172|    815|    int nb_digits = (int)length;
  173|    815|    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|    815|    int kk = nb_digits + k;
  179|       |
  180|    815|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 169, False: 646]
  |  Branch (180:28): [True: 58, False: 111]
  ------------------
  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|    198|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 140, False: 58]
  ------------------
  186|    140|        {
  187|    140|            result.push_back(buffer[i]);
  188|    140|        }
  189|    306|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 248, False: 58]
  ------------------
  190|    248|        {
  191|    248|            result.push_back('0');
  192|    248|        }
  193|     58|        result.push_back('.');
  194|     58|        result.push_back('0');
  195|     58|    } 
  196|    757|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 341, False: 416]
  |  Branch (196:24): [True: 230, False: 111]
  ------------------
  197|    230|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  1.24k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 1.01k, False: 230]
  ------------------
  200|  1.01k|        {
  201|  1.01k|            result.push_back(buffer[i]);
  202|  1.01k|        }
  203|    230|        result.push_back('.');
  204|  1.38k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 1.15k, False: 230]
  ------------------
  205|  1.15k|        {
  206|  1.15k|            result.push_back(buffer[i]);
  207|  1.15k|        }
  208|    230|    } 
  209|    527|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 137, False: 390]
  |  Branch (209:30): [True: 26, False: 111]
  ------------------
  210|     26|    {
  211|     26|        offset = 2 - kk;
  212|       |
  213|     26|        result.push_back('0');
  214|     26|        result.push_back('.');
  215|     35|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 9, False: 26]
  ------------------
  216|      9|            result.push_back('0');
  217|    138|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 112, False: 26]
  ------------------
  218|    112|        {
  219|    112|            result.push_back(buffer[i]);
  220|    112|        }
  221|     26|    } 
  222|    501|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 174, False: 327]
  ------------------
  223|    174|    {
  224|    174|        result.push_back(buffer[0]);
  225|    174|        result.push_back('e');
  226|    174|        fill_exponent(kk - 1, result);
  227|    174|    } 
  228|    327|    else
  229|    327|    {
  230|    327|        result.push_back(buffer[0]);
  231|    327|        result.push_back('.');
  232|  1.77k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 1.44k, False: 327]
  ------------------
  233|  1.44k|        {
  234|  1.44k|            result.push_back(buffer[i]);
  235|  1.44k|        }
  236|    327|        result.push_back('e');
  237|    327|        fill_exponent(kk - 1, result);
  238|    327|    }
  239|    815|}
_ZN8jsoncons13fill_exponentINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEviRT_:
  136|    501|{
  137|    501|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 390, False: 111]
  ------------------
  138|    390|    {
  139|    390|        result.push_back('-');
  140|    390|        K = -K;
  141|    390|    }
  142|    111|    else
  143|    111|    {
  144|    111|        result.push_back('+'); // compatibility with sprintf
  145|    111|    }
  146|       |
  147|    501|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 10, False: 491]
  ------------------
  148|     10|    {
  149|     10|        result.push_back('0'); // compatibility with sprintf
  150|     10|        result.push_back((char)('0' + K));
  151|     10|    }
  152|    491|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 80, False: 411]
  ------------------
  153|     80|    {
  154|     80|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|     80|        result.push_back((char)('0' + K));
  156|     80|    }
  157|    411|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 411, False: 0]
  ------------------
  158|    411|    {
  159|    411|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|    411|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|    411|        result.push_back((char)('0' + K));
  162|    411|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|    501|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_:
  475|  1.03k|{
  476|  1.03k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  1.03k|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_NS1_17integral_constantIbLb1EEE:
  366|  1.03k|{
  367|  1.03k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 15, False: 1.01k]
  ------------------
  368|     15|    {
  369|     15|        result.push_back('0');
  370|     15|        result.push_back('.');
  371|     15|        result.push_back('0');
  372|     15|        return true;
  373|     15|    }
  374|       |
  375|  1.01k|    int length = 0;
  376|  1.01k|    int k;
  377|       |
  378|  1.01k|    char buffer[100];
  379|       |
  380|  1.01k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 21, False: 997]
  ------------------
  381|  1.01k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 815, False: 203]
  ------------------
  382|    815|    {
  383|    815|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 17, False: 798]
  ------------------
  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|    815|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|    815|        return true;
  391|    815|    }
  392|    203|    else
  393|    203|    {
  394|    203|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|    203|    }
  396|  1.01k|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_NS1_17integral_constantIbLb0EEE:
  329|    203|{
  330|    203|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 203]
  ------------------
  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|    203|    char buffer[100];
  339|    203|    int precision = std::numeric_limits<double>::digits10;
  340|    203|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|    203|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 203]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|    203|    double x{0};
  346|    203|    auto res = decstr_to_double(buffer, length, x);
  347|    203|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 203]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|    203|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 58, False: 145]
  ------------------
  352|     58|    {
  353|     58|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|     58|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|     58|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 58]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|     58|    }
  360|    203|    dump_buffer(buffer, length, decimal_point, result);
  361|    203|    return true;
  362|    203|}

