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

_ZN8jsoncons15make_error_codeENS_9conv_errcE:
  180|      3|{
  181|      3|    return std::error_code(static_cast<int>(result),conv_error_category());
  182|      3|}
_ZN8jsoncons19conv_error_categoryEv:
  173|      3|{
  174|      3|  static detail::conv_error_category_impl instance;
  175|      3|  return instance;
  176|      3|}

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

_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|    412|{
   17|    412|    return T(std::forward<Args>(args)..., alloc);
   18|    412|}
_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.45k|{
   17|  1.45k|    return T(std::forward<Args>(args)..., alloc);
   18|  1.45k|}
_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|      8|{
   17|      8|    return T(std::forward<Args>(args)..., alloc);
   18|      8|}

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

_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_ED2Ev:
  257|  3.31k|    ~basic_json_cursor() = default;
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_nextERNS_18basic_json_visitorIcEERNS2_10error_codeE:
  529|  5.19k|    {
  530|  5.19k|        parser_.restart();
  531|  14.8k|        while (!parser_.stopped())
  ------------------
  |  Branch (531:16): [True: 11.0k, False: 3.76k]
  ------------------
  532|  11.0k|        {
  533|  11.0k|            if (parser_.source_exhausted())
  ------------------
  |  Branch (533:17): [True: 11.0k, False: 47]
  ------------------
  534|  11.0k|            {
  535|  11.0k|                auto s = source_.read_chunk(ec);
  536|  11.0k|                if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  11.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 20, False: 11.0k]
  |  |  ------------------
  ------------------
  537|  11.0k|                if (s.size() > 0)
  ------------------
  |  Branch (537:21): [True: 6.80k, False: 4.21k]
  ------------------
  538|  6.80k|                {
  539|  6.80k|                    parser_.update(s.data(),s.size());
  540|  6.80k|                    if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  6.80k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 6.80k]
  |  |  ------------------
  ------------------
  541|  6.80k|                }
  542|  11.0k|            }
  543|  11.0k|            bool eof = parser_.source_exhausted() && source_.eof();
  ------------------
  |  Branch (543:24): [True: 4.21k, False: 6.84k]
  |  Branch (543:54): [True: 4.21k, False: 0]
  ------------------
  544|  11.0k|            parser_.parse_some(visitor, ec);
  545|  11.0k|            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  11.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.37k, False: 9.68k]
  |  |  ------------------
  ------------------
  546|  9.68k|            if (eof)
  ------------------
  |  Branch (546:17): [True: 3.57k, False: 6.10k]
  ------------------
  547|  3.57k|            {
  548|  3.57k|                if (parser_.enter())
  ------------------
  |  Branch (548:21): [True: 23, False: 3.55k]
  ------------------
  549|     23|                {
  550|     23|                    done_ = true;
  551|     23|                    break;
  552|     23|                }
  553|  3.55k|                else if (!parser_.accept())
  ------------------
  |  Branch (553:26): [True: 12, False: 3.54k]
  ------------------
  554|     12|                {
  555|     12|                    ec = json_errc::unexpected_eof;
  556|     12|                    return;
  557|     12|                }
  558|  3.57k|            }
  559|  9.68k|        }
  560|  5.19k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_EC1IRNS2_19basic_istringstreamIcNS2_11char_traitsIcEES4_EEEEOT_RNS2_10error_codeE:
  134|  3.31k|        : basic_json_cursor(std::allocator_arg, Allocator(), 
  135|  3.31k|              std::forward<Sourceable>(source),
  136|  3.31k|              basic_json_decode_options<CharT>(),
  137|  3.31k|              ec)
  138|  3.31k|    {
  139|  3.31k|    }
_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.31k|       : source_(std::forward<Sourceable>(source)),
  204|  3.31k|         parser_(options, alloc)
  205|  3.31k|    {
  206|  3.31k|        parser_.cursor_mode(true);
  207|       |
  208|  3.31k|        if (!read_done())
  ------------------
  |  Branch (208:13): [True: 3.31k, False: 0]
  ------------------
  209|  3.31k|        {
  210|  3.31k|            std::error_code local_ec;
  211|  3.31k|            read_next(local_ec);
  212|  3.31k|            if (local_ec)
  ------------------
  |  Branch (212:17): [True: 1.40k, False: 1.90k]
  ------------------
  213|  1.40k|            {
  214|  1.40k|                if (local_ec == json_errc::unexpected_eof)
  ------------------
  |  Branch (214:21): [True: 647, False: 762]
  ------------------
  215|    647|                {
  216|    647|                    done_ = true;
  217|    647|                }
  218|    762|                else
  219|    762|                {
  220|    762|                    ec = local_ec;
  221|    762|                }
  222|  1.40k|            }
  223|  3.31k|        }
  224|  3.31k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_doneEv:
  470|  3.31k|    {
  471|  3.31k|        return parser_.done() || done_;
  ------------------
  |  Branch (471:16): [True: 0, False: 3.31k]
  |  Branch (471:34): [True: 0, False: 3.31k]
  ------------------
  472|  3.31k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_nextERNS2_10error_codeE:
  524|  5.19k|    {
  525|  5.19k|        read_next(cursor_visitor_, ec);
  526|  5.19k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E4doneEv:
  336|  5.19k|    {
  337|  5.19k|        return parser_.done() || done_;
  ------------------
  |  Branch (337:16): [True: 1.87k, False: 3.31k]
  |  Branch (337:34): [True: 670, False: 2.64k]
  ------------------
  338|  5.19k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E7currentEv:
  341|  1.88k|    {
  342|  1.88k|        return cursor_visitor_.event();
  343|  1.88k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E4nextERNS2_10error_codeE:
  391|  1.87k|    {
  392|  1.87k|        read_next(ec);
  393|  1.87k|    }

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

_ZN8jsoncons25basic_json_decode_optionsIcEC1Ev:
  266|  3.31k|        : err_handler_(default_json_parsing())
  267|  3.31k|    {
  268|  3.31k|    }
_ZN8jsoncons25basic_json_options_commonIcEC2Ev:
  106|  3.31k|        enable_nan_to_num_(false),
  107|  3.31k|        enable_inf_to_num_(false),
  108|  3.31k|        enable_neginf_to_num_(false),
  109|  3.31k|        enable_nan_to_str_(false),
  110|  3.31k|        enable_inf_to_str_(false),
  111|  3.31k|        enable_neginf_to_str_(false),
  112|  3.31k|        enable_str_to_nan_(false),
  113|  3.31k|        enable_str_to_inf_(false),
  114|  3.31k|        enable_str_to_neginf_(false),
  115|  3.31k|        max_nesting_depth_(1024)
  116|  3.31k|    {}
_ZN8jsoncons20default_json_parsingclENS_9json_errcERKNS_11ser_contextE:
   48|  33.0k|    {
   49|  33.0k|        return ec == json_errc::illegal_comment;
   50|  33.0k|    }
_ZN8jsoncons25basic_json_options_commonIcED2Ev:
  118|  3.31k|    virtual ~basic_json_options_common() = default;
_ZNK8jsoncons25basic_json_options_commonIcE17max_nesting_depthEv:
  245|  6.62k|    {
  246|  6.62k|        return max_nesting_depth_;
  247|  6.62k|    }
_ZNK8jsoncons25basic_json_decode_optionsIcE20allow_trailing_commaEv:
  300|  3.31k|    {
  301|  3.31k|        return allow_trailing_comma_;
  302|  3.31k|    }
_ZNK8jsoncons25basic_json_decode_optionsIcE14allow_commentsEv:
  295|  3.31k|    {
  296|  3.31k|        return allow_comments_;
  297|  3.31k|    }
_ZNK8jsoncons25basic_json_decode_optionsIcE15lossless_numberEv:
  286|  3.31k|    {
  287|  3.31k|        return lossless_number_;
  288|  3.31k|    }
_ZNK8jsoncons25basic_json_decode_optionsIcE15lossless_bignumEv:
  290|  3.31k|    {
  291|  3.31k|        return lossless_bignum_;
  292|  3.31k|    }
_ZNK8jsoncons25basic_json_options_commonIcE17enable_str_to_infEv:
  158|  3.31k|    {
  159|  3.31k|        return enable_str_to_inf_;
  160|  3.31k|    }
_ZNK8jsoncons25basic_json_options_commonIcE20enable_str_to_neginfEv:
  168|  3.31k|    {
  169|  3.31k|        return enable_str_to_neginf_ || enable_str_to_inf_;
  ------------------
  |  Branch (169:16): [True: 0, False: 3.31k]
  |  Branch (169:41): [True: 0, False: 3.31k]
  ------------------
  170|  3.31k|    }
_ZNK8jsoncons25basic_json_options_commonIcE17enable_str_to_nanEv:
  148|  3.31k|    {
  149|  3.31k|        return enable_str_to_nan_;
  150|  3.31k|    }
_ZNK8jsoncons25basic_json_options_commonIcE10inf_to_strEv:
  221|  3.31k|    {
  222|  3.31k|        return inf_to_str_;
  223|  3.31k|    }
_ZNK8jsoncons25basic_json_options_commonIcE13neginf_to_strEv:
  226|  3.31k|    {
  227|  3.31k|        if (enable_neginf_to_str_)
  ------------------
  |  Branch (227:13): [True: 0, False: 3.31k]
  ------------------
  228|      0|        {
  229|      0|            return neginf_to_str_;
  230|      0|        }
  231|  3.31k|        else if (enable_inf_to_str_)
  ------------------
  |  Branch (231:18): [True: 0, False: 3.31k]
  ------------------
  232|      0|        {
  233|      0|            string_type s;
  234|      0|            s.push_back('-');
  235|      0|            s.append(inf_to_str_);
  236|      0|            return s;
  237|      0|        }
  238|  3.31k|        else
  239|  3.31k|        {
  240|  3.31k|            return neginf_to_str_; // empty string
  241|  3.31k|        }
  242|  3.31k|    }
_ZNK8jsoncons25basic_json_options_commonIcE10nan_to_strEv:
  216|  3.31k|    {
  217|  3.31k|        return nan_to_str_;
  218|  3.31k|    }
_ZNK8jsoncons25basic_json_decode_optionsIcE11err_handlerEv:
  306|  3.31k|    {
  307|  3.31k|        return err_handler_;
  308|  3.31k|    }

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

_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  3.31k|        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;
  ------------------
  |  |  276|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|      1|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  1.87k|        {
  109|  1.87k|            visit_flush();
  110|  1.87k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|    257|        {
  424|    257|            visit_int64(value, tag, context, ec);
  425|    257|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    257|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|    257|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|    412|        {
  384|    412|            visit_string(value, tag, context, ec);
  385|    412|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    412|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|    412|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|    976|        {
  442|    976|            visit_double(value, tag, context, ec);
  443|    976|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    976|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|    976|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|    226|        {
  415|    226|            visit_uint64(value, tag, context, ec);
  416|    226|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    226|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|    226|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|      2|        {
  340|      2|            visit_begin_array(tag, context, ec);
  341|      2|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|      2|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|      6|        {
  375|      6|            visit_bool(value, tag, context, ec);
  376|      6|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      6|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|      6|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|      2|        {
  366|      2|            visit_null(tag, context, ec);
  367|      2|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|      2|        }
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  3.31k|        basic_json_visitor() = default;

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

_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEED2Ev:
  193|  3.31k|    {
  194|  3.31k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 3.31k, False: 0]
  ------------------
  195|  3.31k|        {
  196|  3.31k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  3.31k|        }
  198|  3.31k|    }
_ZNK8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE3eofEv:
  271|  15.2k|    {
  272|  15.2k|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 15.2k, False: 0]
  |  Branch (272:35): [True: 8.40k, False: 6.83k]
  ------------------
  273|  15.2k|    }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE10read_chunkEv:
  330|  6.83k|    {
  331|  6.83k|        if (remaining_ == 0)
  ------------------
  |  Branch (331:13): [True: 6.83k, False: 0]
  ------------------
  332|  6.83k|        {
  333|  6.83k|            data_end_ = chunk_;
  334|  6.83k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  335|  6.83k|        }
  336|  6.83k|        const value_type* data = data_end_;
  337|  6.83k|        std::size_t length = remaining_;
  338|  6.83k|        data_end_ += remaining_;
  339|  6.83k|        position_ += remaining_;
  340|  6.83k|        remaining_ = 0;
  341|       |
  342|  6.83k|        return span<const value_type>(data, length);
  343|  6.83k|    }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEE11fill_bufferEPcm:
  442|  6.83k|    {
  443|  6.83k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 0, False: 6.83k]
  ------------------
  444|      0|        {
  445|      0|            return 0;
  446|      0|        }
  447|       |
  448|  6.83k|        JSONCONS_TRY
  ------------------
  |  |   37|  6.83k|    #define JSONCONS_TRY try
  ------------------
  449|  6.83k|        {
  450|  6.83k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  6.83k|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  6.83k|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 3.30k, False: 3.53k]
  ------------------
  454|  3.30k|            {
  455|  3.30k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  3.30k|            }
  457|  6.83k|            return length;
  458|  6.83k|        }
  459|  6.83k|        JSONCONS_CATCH(const std::exception&)     
  460|  6.83k|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  6.83k|    }
_ZN8jsoncons13stream_sourceIcNSt3__19allocatorIcEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  3.31k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  3.31k|          chunk_size_(default_max_chunk_size)
  178|  3.31k|    {
  179|  3.31k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  3.31k|        data_end_ = chunk_;
  181|  3.31k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  3.31k|      : std::basic_istream<CharT>(&nb_)
   58|  3.31k|    {
   59|  3.31k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  3.31k|        null_buffer() = default;

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

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

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

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

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

_ZN8jsoncons14unicode_traits20detect_json_encodingIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
  109|  3.31k|    {
  110|  3.31k|        detect_encoding_result<CharT> r = detect_encoding_from_bom(data,length);
  111|  3.31k|        if (r.encoding != encoding_kind::undetected)
  ------------------
  |  Branch (111:13): [True: 44, False: 3.27k]
  ------------------
  112|     44|        {
  113|     44|            return r;
  114|     44|        }
  115|  3.27k|        else if (length < 4)
  ------------------
  |  Branch (115:18): [True: 436, False: 2.83k]
  ------------------
  116|    436|        {
  117|    436|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  118|    436|        }
  119|  2.83k|        else if (*data == 0 && *(data+1) == 0 && *(data+2) == 0)
  ------------------
  |  Branch (119:18): [True: 22, False: 2.81k]
  |  Branch (119:32): [True: 13, False: 9]
  |  Branch (119:50): [True: 2, False: 11]
  ------------------
  120|      2|        {
  121|      2|            return detect_encoding_result<CharT>{data,encoding_kind::utf32be};
  122|      2|        }
  123|  2.83k|        else if (*data == 0 && *(data+2) == 0)
  ------------------
  |  Branch (123:18): [True: 20, False: 2.81k]
  |  Branch (123:32): [True: 5, False: 15]
  ------------------
  124|      5|        {
  125|      5|            return detect_encoding_result<CharT>{data,encoding_kind::utf16be};
  126|      5|        }
  127|  2.82k|        else if (*(data+1) == 0 && *(data+2) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (127:18): [True: 24, False: 2.80k]
  |  Branch (127:36): [True: 9, False: 15]
  |  Branch (127:54): [True: 1, False: 8]
  ------------------
  128|      1|        {
  129|      1|            return detect_encoding_result<CharT>{data,encoding_kind::utf32le};
  130|      1|        }
  131|  2.82k|        else if (*(data+1) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (131:18): [True: 23, False: 2.80k]
  |  Branch (131:36): [True: 3, False: 20]
  ------------------
  132|      3|        {
  133|      3|            return detect_encoding_result<CharT>{data,encoding_kind::utf16le};
  134|      3|        }
  135|  2.82k|        else
  136|  2.82k|        {
  137|  2.82k|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  138|  2.82k|        }
  139|  3.31k|    }
_ZN8jsoncons14unicode_traits24detect_encoding_from_bomIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
   66|  3.31k|    {
   67|  3.31k|        static constexpr uint8_t bom_utf8[] = {0xef,0xbb,0xbf}; 
   68|  3.31k|        static constexpr uint8_t bom_utf16le[] = {0xff,0xfe}; 
   69|  3.31k|        static constexpr uint8_t bom_utf16be[] = {0xfe,0xff}; 
   70|  3.31k|        static constexpr uint8_t bom_utf32le[] = {0xff,0xfe,0x00,0x00}; 
   71|  3.31k|        static constexpr uint8_t bom_utf32be[] = {0x00,0x00,0xfe,0xff}; 
   72|       |
   73|  3.31k|        if (length >= 4 && !memcmp(data,bom_utf32le,4))
  ------------------
  |  Branch (73:13): [True: 2.87k, False: 439]
  |  Branch (73:28): [True: 1, False: 2.87k]
  ------------------
   74|      1|        {
   75|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32le};
   76|      1|        }
   77|  3.31k|        else if (length >= 4 && !memcmp(data,bom_utf32be,4))
  ------------------
  |  Branch (77:18): [True: 2.87k, False: 439]
  |  Branch (77:33): [True: 1, False: 2.87k]
  ------------------
   78|      1|        {
   79|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32be};
   80|      1|        }
   81|  3.31k|        else if (length >= 2 && !memcmp(data,bom_utf16le,2))
  ------------------
  |  Branch (81:18): [True: 3.25k, False: 54]
  |  Branch (81:33): [True: 6, False: 3.25k]
  ------------------
   82|      6|        {
   83|      6|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16le};
   84|      6|        }
   85|  3.30k|        else if (length >= 2 && !memcmp(data,bom_utf16be,2))
  ------------------
  |  Branch (85:18): [True: 3.25k, False: 54]
  |  Branch (85:33): [True: 1, False: 3.25k]
  ------------------
   86|      1|        {
   87|      1|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16be};
   88|      1|        }
   89|  3.30k|        else if (length >= 3 && !memcmp(data,bom_utf8,3))
  ------------------
  |  Branch (89:18): [True: 3.06k, False: 244]
  |  Branch (89:33): [True: 35, False: 3.02k]
  ------------------
   90|     35|        {
   91|     35|            return detect_encoding_result<CharT>{data+3,encoding_kind::utf8};
   92|     35|        }
   93|  3.27k|        else
   94|  3.27k|        {
   95|  3.27k|            return detect_encoding_result<CharT>{data,encoding_kind::undetected};
   96|  3.27k|        }
   97|  3.31k|    }
_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|    311|    {
 1148|    311|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|    311|        const uint8_t* end = it + length;
 1150|       |
 1151|    311|        unicode_errc  result{};
 1152|   145k|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 144k, False: 115]
  ------------------
 1153|   144k|        {
 1154|   144k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 144k, False: 272]
  ------------------
 1155|   144k|            {
 1156|   974k|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|   289k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 142k, False: 2.16k]
  |  |  |  Branch (281:34): [True: 141k, False: 1.38k]
  |  |  |  Branch (281:36): [True: 139k, False: 1.48k]
  |  |  |  Branch (281:38): [True: 138k, False: 808]
  |  |  |  Branch (281:40): [True: 138k, False: 395]
  |  |  |  Branch (281:42): [True: 137k, False: 1.01k]
  |  |  |  Branch (281:44): [True: 136k, False: 1.06k]
  |  |  |  Branch (281:46): [True: 131k, False: 5.00k]
  |  |  ------------------
  ------------------
 1157|   131k|                continue;
 1158|   974k|            }
 1159|  13.5k|    non_ascii:
 1160|  13.5k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  13.5k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 41, False: 13.5k]
  ------------------
 1162|     41|            {
 1163|     41|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     41|            }
 1165|  13.5k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 155, False: 13.3k]
  ------------------
 1166|    155|            {
 1167|    155|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    155|            }
 1169|  13.3k|            it += len;
 1170|  13.3k|        }
 1171|    115|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|    311|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  13.5k|    {
  306|  13.5k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  13.5k|        const uint8_t* end = it+length;
  308|       |
  309|  13.5k|        uint8_t byte;
  310|  13.5k|        switch (length) {
  311|     29|        default:
  ------------------
  |  Branch (311:9): [True: 29, False: 13.5k]
  ------------------
  312|     29|            return unicode_errc::over_long_utf8_sequence;
  313|    621|        case 4:
  ------------------
  |  Branch (313:9): [True: 621, False: 12.9k]
  ------------------
  314|    621|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 2, False: 619]
  ------------------
  315|      2|                return unicode_errc::bad_continuation_byte;
  316|    619|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    619|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  1.86k|        case 3:
  ------------------
  |  Branch (317:9): [True: 1.24k, False: 12.3k]
  ------------------
  318|  1.86k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 9, False: 1.85k]
  ------------------
  319|      9|                return unicode_errc::bad_continuation_byte;
  320|  1.85k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.85k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  13.3k|        case 2:
  ------------------
  |  Branch (321:9): [True: 11.5k, False: 2.03k]
  ------------------
  322|  13.3k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 43, False: 13.3k]
  ------------------
  323|     43|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  13.3k|            switch (*it) 
  326|  13.3k|            {
  327|       |                // no fall-through in this inner switch
  328|    779|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 779, False: 12.5k]
  |  Branch (328:32): [True: 9, False: 770]
  ------------------
  329|    770|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 345, False: 12.9k]
  |  Branch (329:32): [True: 1, False: 344]
  ------------------
  330|    344|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 331, False: 12.9k]
  |  Branch (330:32): [True: 4, False: 327]
  ------------------
  331|    327|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 277, False: 13.0k]
  |  Branch (331:32): [True: 6, False: 271]
  ------------------
  332|  11.5k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 11.5k, False: 1.73k]
  |  Branch (332:32): [True: 0, False: 11.5k]
  ------------------
  333|  13.3k|            }
  334|       |
  335|  13.3k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  13.3k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  13.4k|        case 1:
  ------------------
  |  Branch (336:9): [True: 139, False: 13.4k]
  ------------------
  337|  13.4k|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 13.3k, False: 89]
  |  Branch (337:32): [True: 51, False: 13.3k]
  ------------------
  338|     51|                return unicode_errc::source_illegal;
  339|  13.3k|            break;
  340|  13.5k|        }
  341|  13.3k|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 1, False: 13.3k]
  ------------------
  342|      1|            return unicode_errc::source_illegal;
  343|       |
  344|  13.3k|        return unicode_errc();
  345|  13.3k|    }
_ZN8jsoncons14unicode_traits17is_high_surrogateEj:
  209|   550k|    {
  210|   550k|        return (ch >= sur_high_start && ch <= sur_high_end);
  ------------------
  |  Branch (210:17): [True: 320k, False: 230k]
  |  Branch (210:41): [True: 274k, False: 45.3k]
  ------------------
  211|   550k|    }
_ZN8jsoncons14unicode_traits7convertIjNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS2_9enable_ifIXaaaasr10ext_traits9is_char32IT_EE5valuesr10ext_traits18is_back_insertableIT0_EE5valuesr10ext_traits8is_char8INSB_10value_typeEEE5valueENS0_14unicode_resultISA_EEE4typeEPKSA_mRSB_NS0_11strict_flagE:
  980|   550k|    {
  981|   550k|        unicode_errc  result{};
  982|   550k|        const CharT* last = data + length;
  983|  1.05M|        while (data < last) 
  ------------------
  |  Branch (983:16): [True: 550k, False: 508k]
  ------------------
  984|   550k|        {
  985|   550k|            uint16_t bytes_to_write = 0;
  986|   550k|            static constexpr uint32_t byteMask = 0xBF;
  987|   550k|            static constexpr uint32_t byteMark = 0x80; 
  988|   550k|            uint32_t ch = *data++;
  989|   550k|            if (flags == strict_flag::strict ) 
  ------------------
  |  Branch (989:17): [True: 550k, False: 0]
  ------------------
  990|   550k|            {
  991|       |                /* UTF-16 surrogate values are illegal in UTF-32 */
  992|   550k|                if (is_surrogate(ch)) 
  ------------------
  |  Branch (992:21): [True: 41.7k, False: 508k]
  ------------------
  993|  41.7k|                {
  994|  41.7k|                    --data; /* return to the illegal value itself */
  995|  41.7k|                    result = unicode_errc::illegal_surrogate_value;
  996|  41.7k|                    break;
  997|  41.7k|                }
  998|   550k|            }
  999|       |            /*
 1000|       |             * Figure out how many bytes the result will require. Turn any
 1001|       |             * illegally large UTF32 things (> Plane 17) into replacement chars.
 1002|       |             */
 1003|   508k|            if (ch < (uint32_t)0x80) {      bytes_to_write = 1;
  ------------------
  |  Branch (1003:17): [True: 1.70k, False: 507k]
  ------------------
 1004|   507k|            } else if (ch < (uint32_t)0x800) {     bytes_to_write = 2;
  ------------------
  |  Branch (1004:24): [True: 5.30k, False: 501k]
  ------------------
 1005|   501k|            } else if (ch < (uint32_t)0x10000) {   bytes_to_write = 3;
  ------------------
  |  Branch (1005:24): [True: 226k, False: 274k]
  ------------------
 1006|   274k|            } else if (ch <= max_legal_utf32) {  bytes_to_write = 4;
  ------------------
  |  Branch (1006:24): [True: 274k, False: 0]
  ------------------
 1007|   274k|            } else {                            
 1008|      0|                bytes_to_write = 3;
 1009|      0|                ch = replacement_char;
 1010|      0|                result = unicode_errc::source_illegal;
 1011|      0|            }
 1012|       |
 1013|   508k|            uint8_t byte1 = 0;
 1014|   508k|            uint8_t byte2 = 0;
 1015|   508k|            uint8_t byte3 = 0;
 1016|   508k|            uint8_t byte4 = 0;
 1017|       |
 1018|   508k|            switch (bytes_to_write) {
  ------------------
  |  Branch (1018:21): [True: 508k, False: 0]
  ------------------
 1019|   274k|            case 4:
  ------------------
  |  Branch (1019:13): [True: 274k, False: 233k]
  ------------------
 1020|   274k|                byte4 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1021|   274k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   274k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1022|   501k|            case 3:
  ------------------
  |  Branch (1022:13): [True: 226k, False: 281k]
  ------------------
 1023|   501k|                byte3 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1024|   501k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   501k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1025|   507k|            case 2:
  ------------------
  |  Branch (1025:13): [True: 5.30k, False: 503k]
  ------------------
 1026|   507k|                byte2 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1027|   507k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   507k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1028|   508k|            case 1:
  ------------------
  |  Branch (1028:13): [True: 1.70k, False: 507k]
  ------------------
 1029|   508k|                byte1 = (uint8_t) (ch | first_byte_mark[bytes_to_write]);
 1030|   508k|                break;
 1031|   508k|            }
 1032|       |
 1033|   508k|            switch (bytes_to_write) 
  ------------------
  |  Branch (1033:21): [True: 508k, False: 0]
  ------------------
 1034|   508k|            {
 1035|   274k|            case 4: 
  ------------------
  |  Branch (1035:13): [True: 274k, False: 233k]
  ------------------
 1036|   274k|                target.push_back(byte1);
 1037|   274k|                target.push_back(byte2);
 1038|   274k|                target.push_back(byte3);
 1039|   274k|                target.push_back(byte4);
 1040|   274k|                break;
 1041|   226k|            case 3: 
  ------------------
  |  Branch (1041:13): [True: 226k, False: 281k]
  ------------------
 1042|   226k|                target.push_back(byte1);
 1043|   226k|                target.push_back(byte2);
 1044|   226k|                target.push_back(byte3);
 1045|   226k|                break;
 1046|  5.30k|            case 2: 
  ------------------
  |  Branch (1046:13): [True: 5.30k, False: 503k]
  ------------------
 1047|  5.30k|                target.push_back(byte1);
 1048|  5.30k|                target.push_back(byte2);
 1049|  5.30k|                break;
 1050|  1.70k|            case 1: 
  ------------------
  |  Branch (1050:13): [True: 1.70k, False: 507k]
  ------------------
 1051|  1.70k|                target.push_back(byte1);
 1052|  1.70k|                break;
 1053|   508k|            }
 1054|   508k|        }
 1055|   550k|        return unicode_result<CharT>{data,result} ;
 1056|   550k|    }
_ZN8jsoncons14unicode_traits12is_surrogateEj:
  221|   550k|    {
  222|   550k|        return (ch >= sur_high_start && ch <= sur_low_end);
  ------------------
  |  Branch (222:17): [True: 320k, False: 230k]
  |  Branch (222:41): [True: 41.7k, False: 278k]
  ------------------
  223|   550k|    }

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

