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

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

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

_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|    413|{
   17|    413|    return T(std::forward<Args>(args)..., alloc);
   18|    413|}
_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.41k|{
   17|  1.41k|    return T(std::forward<Args>(args)..., alloc);
   18|  1.41k|}
_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|      6|{
   17|      6|    return T(std::forward<Args>(args)..., alloc);
   18|      6|}

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

_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_ED2Ev:
  257|  3.24k|    ~basic_json_cursor() = default;
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_nextERNS_18basic_json_visitorIcEERNS2_10error_codeE:
  529|  5.07k|    {
  530|  5.07k|        parser_.restart();
  531|  14.5k|        while (!parser_.stopped())
  ------------------
  |  Branch (531:16): [True: 10.9k, False: 3.66k]
  ------------------
  532|  10.9k|        {
  533|  10.9k|            if (parser_.source_exhausted())
  ------------------
  |  Branch (533:17): [True: 10.8k, False: 54]
  ------------------
  534|  10.8k|            {
  535|  10.8k|                auto s = source_.read_chunk(ec);
  536|  10.8k|                if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  10.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 19, False: 10.8k]
  |  |  ------------------
  ------------------
  537|  10.8k|                if (s.size() > 0)
  ------------------
  |  Branch (537:21): [True: 6.74k, False: 4.09k]
  ------------------
  538|  6.74k|                {
  539|  6.74k|                    parser_.update(s.data(),s.size());
  540|  6.74k|                    if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  6.74k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 6.74k]
  |  |  ------------------
  ------------------
  541|  6.74k|                }
  542|  10.8k|            }
  543|  10.8k|            bool eof = parser_.source_exhausted() && source_.eof();
  ------------------
  |  Branch (543:24): [True: 4.09k, False: 6.79k]
  |  Branch (543:54): [True: 4.09k, False: 0]
  ------------------
  544|  10.8k|            parser_.parse_some(visitor, ec);
  545|  10.8k|            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  10.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.35k, False: 9.53k]
  |  |  ------------------
  ------------------
  546|  9.53k|            if (eof)
  ------------------
  |  Branch (546:17): [True: 3.46k, False: 6.06k]
  ------------------
  547|  3.46k|            {
  548|  3.46k|                if (parser_.enter())
  ------------------
  |  Branch (548:21): [True: 24, False: 3.44k]
  ------------------
  549|     24|                {
  550|     24|                    done_ = true;
  551|     24|                    break;
  552|     24|                }
  553|  3.44k|                else if (!parser_.accept())
  ------------------
  |  Branch (553:26): [True: 9, False: 3.43k]
  ------------------
  554|      9|                {
  555|      9|                    ec = json_errc::unexpected_eof;
  556|      9|                    return;
  557|      9|                }
  558|  3.46k|            }
  559|  9.53k|        }
  560|  5.07k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_EC1IRNS2_19basic_istringstreamIcNS2_11char_traitsIcEES4_EEEEOT_RNS2_10error_codeE:
  134|  3.24k|        : basic_json_cursor(std::allocator_arg, Allocator(), 
  135|  3.24k|              std::forward<Sourceable>(source),
  136|  3.24k|              basic_json_decode_options<CharT>(),
  137|  3.24k|              ec)
  138|  3.24k|    {
  139|  3.24k|    }
_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.24k|       : source_(std::forward<Sourceable>(source)),
  204|  3.24k|         parser_(options, alloc)
  205|  3.24k|    {
  206|  3.24k|        parser_.cursor_mode(true);
  207|       |
  208|  3.24k|        if (!read_done())
  ------------------
  |  Branch (208:13): [True: 3.24k, False: 0]
  ------------------
  209|  3.24k|        {
  210|  3.24k|            std::error_code local_ec;
  211|  3.24k|            read_next(local_ec);
  212|  3.24k|            if (local_ec)
  ------------------
  |  Branch (212:17): [True: 1.37k, False: 1.86k]
  ------------------
  213|  1.37k|            {
  214|  1.37k|                if (local_ec == json_errc::unexpected_eof)
  ------------------
  |  Branch (214:21): [True: 630, False: 749]
  ------------------
  215|    630|                {
  216|    630|                    done_ = true;
  217|    630|                }
  218|    749|                else
  219|    749|                {
  220|    749|                    ec = local_ec;
  221|    749|                }
  222|  1.37k|            }
  223|  3.24k|        }
  224|  3.24k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_doneEv:
  470|  3.24k|    {
  471|  3.24k|        return parser_.done() || done_;
  ------------------
  |  Branch (471:16): [True: 0, False: 3.24k]
  |  Branch (471:34): [True: 0, False: 3.24k]
  ------------------
  472|  3.24k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_nextERNS2_10error_codeE:
  524|  5.07k|    {
  525|  5.07k|        read_next(cursor_visitor_, ec);
  526|  5.07k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E4doneEv:
  336|  5.07k|    {
  337|  5.07k|        return parser_.done() || done_;
  ------------------
  |  Branch (337:16): [True: 1.83k, False: 3.24k]
  |  Branch (337:34): [True: 654, False: 2.59k]
  ------------------
  338|  5.07k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E7currentEv:
  341|  1.83k|    {
  342|  1.83k|        return cursor_visitor_.event();
  343|  1.83k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E4nextERNS2_10error_codeE:
  391|  1.83k|    {
  392|  1.83k|        read_next(ec);
  393|  1.83k|    }

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

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

_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEED2Ev:
  272|  3.24k|    {
  273|  3.24k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE11cursor_modeEb:
  242|  3.24k|    {
  243|  3.24k|        cursor_mode_ = value;
  244|  3.24k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE7restartEv:
  507|  5.07k|    {
  508|  5.07k|        more_ = true;
  509|  5.07k|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE7stoppedEv:
  297|  14.5k|    {
  298|  14.5k|        return !more_;
  299|  14.5k|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE16source_exhaustedEv:
  262|  21.7k|    {
  263|  21.7k|        return input_ptr_ == input_end_;
  264|  21.7k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE6updateEPKcm:
  551|  6.74k|    {
  552|  6.74k|        input_end_ = data + length;
  553|  6.74k|        input_ptr_ = data;
  554|  6.74k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE10parse_someERNS_18basic_json_visitorIcEERNS1_10error_codeE:
  567|  10.8k|    {
  568|  10.8k|        parse_some_(visitor, ec);
  569|  10.8k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE11parse_some_ERNS_18basic_json_visitorIcEERNS1_10error_codeE:
  591|  10.8k|    {
  592|  10.8k|        if (state_ == parse_state::accept)
  ------------------
  |  Branch (592:13): [True: 1.83k, False: 9.05k]
  ------------------
  593|  1.83k|        {
  594|  1.83k|            visitor.flush();
  595|  1.83k|            done_ = true;
  596|  1.83k|            state_ = parse_state::done;
  597|  1.83k|            more_ = false;
  598|  1.83k|            return;
  599|  1.83k|        }
  600|  9.05k|        const char_type* local_input_end = input_end_;
  601|       |
  602|  9.05k|        if (input_ptr_ == local_input_end && more_)
  ------------------
  |  Branch (602:13): [True: 2.31k, False: 6.74k]
  |  Branch (602:46): [True: 2.31k, False: 0]
  ------------------
  603|  2.31k|        {
  604|  2.31k|            switch (state_)
  605|  2.31k|            {
  606|  1.66k|                case parse_state::number:  
  ------------------
  |  Branch (606:17): [True: 1.66k, False: 644]
  ------------------
  607|  1.66k|                    if (number_state_ == parse_number_state::zero || number_state_ == parse_number_state::integer)
  ------------------
  |  Branch (607:25): [True: 0, False: 1.66k]
  |  Branch (607:70): [True: 679, False: 989]
  ------------------
  608|    679|                    {
  609|    679|                        end_integer_value(visitor, ec);
  610|    679|                        if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|    679|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 679]
  |  |  ------------------
  ------------------
  611|    679|                    }
  612|    989|                    else if (number_state_ == parse_number_state::fraction2 || number_state_ == parse_number_state::exp3)
  ------------------
  |  Branch (612:30): [True: 366, False: 623]
  |  Branch (612:80): [True: 613, False: 10]
  ------------------
  613|    979|                    {
  614|    979|                        end_fraction_value(visitor, ec);
  615|    979|                        if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|    979|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 979]
  |  |  ------------------
  ------------------
  616|    979|                    }
  617|     10|                    else
  618|     10|                    {
  619|     10|                        err_handler_(json_errc::unexpected_eof, *this);
  620|     10|                        ec = json_errc::unexpected_eof;
  621|     10|                        more_ = false;
  622|     10|                    }
  623|  1.66k|                    break;
  624|  1.66k|                case parse_state::accept:
  ------------------
  |  Branch (624:17): [True: 0, False: 2.31k]
  ------------------
  625|      0|                    visitor.flush();
  626|      0|                    done_ = true;
  627|      0|                    state_ = parse_state::done;
  628|      0|                    more_ = false;
  629|      0|                    break;
  630|     78|                case parse_state::start:
  ------------------
  |  Branch (630:17): [True: 78, False: 2.23k]
  ------------------
  631|     78|                    more_ = false;
  632|     78|                    ec = json_errc::unexpected_eof;
  633|     78|                    return;                
  634|      0|                case parse_state::done:
  ------------------
  |  Branch (634:17): [True: 0, False: 2.31k]
  ------------------
  635|      0|                    more_ = false;
  636|      0|                    break;
  637|     33|                case parse_state::cr:
  ------------------
  |  Branch (637:17): [True: 33, False: 2.27k]
  ------------------
  638|     33|                    state_ = pop_state();
  639|     33|                    break;
  640|    533|                default:
  ------------------
  |  Branch (640:17): [True: 533, False: 1.77k]
  ------------------
  641|    533|                    err_handler_(json_errc::unexpected_eof, *this);
  642|    533|                    ec = json_errc::unexpected_eof;
  643|    533|                    more_ = false;
  644|    533|                    return;
  645|  2.31k|            }
  646|  2.31k|        }
  647|       |
  648|  3.50M|        while ((input_ptr_ < local_input_end) && more_)
  ------------------
  |  Branch (648:16): [True: 3.49M, False: 7.65k]
  |  Branch (648:50): [True: 3.49M, False: 54]
  ------------------
  649|  3.49M|        {
  650|  3.49M|            switch (state_)
  651|  3.49M|            {
  652|      0|                case parse_state::accept:
  ------------------
  |  Branch (652:17): [True: 0, False: 3.49M]
  ------------------
  653|      0|                    visitor.flush();
  654|      0|                    done_ = true;
  655|      0|                    state_ = parse_state::done;
  656|      0|                    more_ = false;
  657|      0|                    break;
  658|  6.16k|                case parse_state::cr:
  ------------------
  |  Branch (658:17): [True: 6.16k, False: 3.48M]
  ------------------
  659|  6.16k|                    ++line_;
  660|  6.16k|                    switch (*input_ptr_)
  661|  6.16k|                    {
  662|    361|                        case '\n':
  ------------------
  |  Branch (662:25): [True: 361, False: 5.80k]
  ------------------
  663|    361|                            ++input_ptr_;
  664|    361|                            ++position_;
  665|    361|                            state_ = pop_state();
  666|    361|                            break;
  667|  5.80k|                        default:
  ------------------
  |  Branch (667:25): [True: 5.80k, False: 361]
  ------------------
  668|  5.80k|                            state_ = pop_state();
  669|  5.80k|                            break;
  670|  6.16k|                    }
  671|  6.16k|                    mark_position_ = position_;
  672|  6.16k|                    break;
  673|  66.3k|                case parse_state::start: 
  ------------------
  |  Branch (673:17): [True: 66.3k, False: 3.42M]
  ------------------
  674|  66.3k|                {
  675|  66.3k|                    switch (*input_ptr_)
  676|  66.3k|                    {
  677|  1.31k|                        JSONCONS_ILLEGAL_CONTROL_CHARACTER:
  ------------------
  |  |   34|     38|        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.2k]
  |  |  |  Branch (34:19): [True: 3, False: 66.3k]
  |  |  |  Branch (34:29): [True: 2, False: 66.3k]
  |  |  |  Branch (34:39): [True: 1, False: 66.3k]
  |  |  |  Branch (34:49): [True: 2, False: 66.3k]
  |  |  |  Branch (34:59): [True: 3, False: 66.3k]
  |  |  |  Branch (34:69): [True: 2, False: 66.3k]
  |  |  |  Branch (34:79): [True: 2, False: 66.3k]
  |  |  |  Branch (34:89): [True: 2, False: 66.3k]
  |  |  |  Branch (34:99): [True: 3, False: 66.3k]
  |  |  ------------------
  |  |   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.3k]
  |  |  |  Branch (35:19): [True: 1, False: 66.3k]
  |  |  |  Branch (35:29): [True: 2, False: 66.3k]
  |  |  |  Branch (35:39): [True: 3, False: 66.3k]
  |  |  |  Branch (35:49): [True: 2, False: 66.3k]
  |  |  |  Branch (35:59): [True: 1, False: 66.3k]
  |  |  |  Branch (35:69): [True: 1, False: 66.3k]
  |  |  |  Branch (35:79): [True: 1, False: 66.3k]
  |  |  |  Branch (35:89): [True: 2, False: 66.3k]
  |  |  |  Branch (35:99): [True: 1, False: 66.3k]
  |  |  ------------------
  |  |   36|     69|        case 0x17:case 0x18:case 0x19:case 0x1a:case 0x1b:case 0x1c:case 0x1d:case 0x1e:case 0x1f 
  |  |  ------------------
  |  |  |  Branch (36:9): [True: 2, False: 66.3k]
  |  |  |  Branch (36:19): [True: 2, False: 66.3k]
  |  |  |  Branch (36:29): [True: 1, False: 66.3k]
  |  |  |  Branch (36:39): [True: 2, False: 66.3k]
  |  |  |  Branch (36:49): [True: 1, False: 66.3k]
  |  |  |  Branch (36:59): [True: 1, False: 66.3k]
  |  |  |  Branch (36:69): [True: 2, False: 66.3k]
  |  |  |  Branch (36:79): [True: 2, False: 66.3k]
  |  |  ------------------
  ------------------
  678|  1.31k|                            more_ = err_handler_(json_errc::illegal_control_character, *this);
  679|  1.31k|                            if (!more_)
  ------------------
  |  Branch (679:33): [True: 69, False: 0]
  ------------------
  680|     69|                            {
  681|     69|                                ec = json_errc::illegal_control_character;
  682|     69|                                return;
  683|     69|                            }
  684|      0|                            break;
  685|  31.7k|                        case ' ':case '\t':case '\n':case '\r':
  ------------------
  |  Branch (685:25): [True: 300, False: 66.0k]
  |  Branch (685:34): [True: 431, False: 65.8k]
  |  Branch (685:44): [True: 19.5k, False: 46.8k]
  |  Branch (685:54): [True: 11.4k, False: 54.8k]
  ------------------
  686|  31.7k|                            skip_space(&input_ptr_);
  687|  31.7k|                            break;
  688|  31.5k|                        case '/': 
  ------------------
  |  Branch (688:25): [True: 31.5k, False: 34.7k]
  ------------------
  689|  31.5k|                            ++input_ptr_;
  690|  31.5k|                            ++position_;
  691|  31.5k|                            push_state(state_);
  692|  31.5k|                            state_ = parse_state::slash;
  693|  31.5k|                            break;
  694|      3|                        case '{':
  ------------------
  |  Branch (694:25): [True: 3, False: 66.3k]
  ------------------
  695|      3|                            begin_position_ = position_;
  696|      3|                            ++input_ptr_;
  697|      3|                            ++position_;
  698|      3|                            begin_object(visitor, ec);
  699|      3|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  700|      3|                            break;
  701|      3|                        case '[':
  ------------------
  |  Branch (701:25): [True: 2, False: 66.3k]
  ------------------
  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|    831|                        case '\"':
  ------------------
  |  Branch (708:25): [True: 831, False: 65.4k]
  ------------------
  709|    831|                            state_ = parse_state::string;
  710|    831|                            string_state_ = parse_string_state{};
  711|    831|                            begin_position_ = position_;
  712|    831|                            ++input_ptr_;
  713|    831|                            ++position_;
  714|    831|                            escape_tag_ = semantic_tag::noesc;
  715|    831|                            buffer_.clear();
  716|    831|                            input_ptr_ = parse_string(input_ptr_, visitor, ec);
  717|    831|                            if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|    831|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 251, False: 580]
  |  |  ------------------
  ------------------
  718|    580|                            break;
  719|    580|                        case '-':
  ------------------
  |  Branch (719:25): [True: 466, False: 65.8k]
  ------------------
  720|    466|                            buffer_.clear();
  721|    466|                            buffer_.push_back('-');
  722|    466|                            begin_position_ = position_;
  723|    466|                            ++input_ptr_;
  724|    466|                            ++position_;
  725|    466|                            state_ = parse_state::number;
  726|    466|                            number_state_ = parse_number_state::minus;
  727|    466|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
  728|    466|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|    466|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 12, False: 454]
  |  |  ------------------
  ------------------
  729|    454|                            break;
  730|    454|                        case '0': 
  ------------------
  |  Branch (730:25): [True: 82, False: 66.2k]
  ------------------
  731|     82|                            buffer_.clear();
  732|     82|                            buffer_.push_back(static_cast<char>(*input_ptr_));
  733|     82|                            state_ = parse_state::number;
  734|     82|                            number_state_ = parse_number_state::zero;
  735|     82|                            begin_position_ = position_;
  736|     82|                            ++input_ptr_;
  737|     82|                            ++position_;
  738|     82|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
  739|     82|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|     82|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4, False: 78]
  |  |  ------------------
  ------------------
  740|     78|                            break;
  741|  1.20k|                        case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (741:25): [True: 240, False: 66.0k]
  |  Branch (741:34): [True: 152, False: 66.1k]
  |  Branch (741:43): [True: 86, False: 66.2k]
  |  Branch (741:52): [True: 69, False: 66.2k]
  |  Branch (741:61): [True: 68, False: 66.2k]
  |  Branch (741:70): [True: 60, False: 66.2k]
  |  Branch (741:79): [True: 117, False: 66.1k]
  |  Branch (741:88): [True: 172, False: 66.1k]
  |  Branch (741:98): [True: 237, False: 66.0k]
  ------------------
  742|  1.20k|                            buffer_.clear();
  743|  1.20k|                            buffer_.push_back(static_cast<char>(*input_ptr_));
  744|  1.20k|                            begin_position_ = position_;
  745|  1.20k|                            ++input_ptr_;
  746|  1.20k|                            ++position_;
  747|  1.20k|                            state_ = parse_state::number;
  748|  1.20k|                            number_state_ = parse_number_state::integer;
  749|  1.20k|                            input_ptr_ = parse_number(input_ptr_, visitor, ec);
  750|  1.20k|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  1.20k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 11, False: 1.19k]
  |  |  ------------------
  ------------------
  751|  1.19k|                            break;
  752|  1.19k|                        case 'n':
  ------------------
  |  Branch (752:25): [True: 84, False: 66.2k]
  ------------------
  753|     84|                            parse_null(visitor, ec);
  754|     84|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|     84|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 46, False: 38]
  |  |  ------------------
  ------------------
  755|     38|                            break;
  756|     83|                        case 't':
  ------------------
  |  Branch (756:25): [True: 83, False: 66.2k]
  ------------------
  757|     83|                            input_ptr_ = parse_true(input_ptr_, visitor, ec);
  758|     83|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|     83|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 45, False: 38]
  |  |  ------------------
  ------------------
  759|     38|                            break;
  760|     97|                        case 'f':
  ------------------
  |  Branch (760:25): [True: 97, False: 66.2k]
  ------------------
  761|     97|                            input_ptr_ = parse_false(input_ptr_, visitor, ec);
  762|     97|                            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|     97|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 48, False: 49]
  |  |  ------------------
  ------------------
  763|     49|                            break;
  764|     49|                        case '}':
  ------------------
  |  Branch (764:25): [True: 1, False: 66.3k]
  ------------------
  765|      1|                            err_handler_(json_errc::unexpected_rbrace, *this);
  766|      1|                            ec = json_errc::unexpected_rbrace;
  767|      1|                            more_ = false;
  768|      1|                            return;
  769|      2|                        case ']':
  ------------------
  |  Branch (769:25): [True: 2, False: 66.3k]
  ------------------
  770|      2|                            err_handler_(json_errc::unexpected_rbracket, *this);
  771|      2|                            ec = json_errc::unexpected_rbracket;
  772|      2|                            more_ = false;
  773|      2|                            return;
  774|     90|                        default:
  ------------------
  |  Branch (774:25): [True: 90, False: 66.2k]
  ------------------
  775|     90|                            err_handler_(json_errc::syntax_error, *this);
  776|     90|                            ec = json_errc::syntax_error;
  777|     90|                            more_ = false;
  778|     90|                            return;
  779|  66.3k|                    }
  780|  65.7k|                    break;
  781|  66.3k|                }
  782|  65.7k|                case parse_state::expect_comma_or_end: 
  ------------------
  |  Branch (782:17): [True: 0, False: 3.49M]
  ------------------
  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: 3.49M]
  ------------------
  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: 3.49M]
  ------------------
  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: 3.49M]
  ------------------
 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: 3.49M]
  ------------------
 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: 3.49M]
  ------------------
 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|   271k|                case parse_state::string: 
  ------------------
  |  Branch (1311:17): [True: 271k, False: 3.22M]
  ------------------
 1312|   271k|                    input_ptr_ = parse_string(input_ptr_, visitor, ec);
 1313|   271k|                    if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|   271k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 40, False: 271k]
  |  |  ------------------
  ------------------
 1314|   271k|                    break;
 1315|   271k|                case parse_state::number:
  ------------------
  |  Branch (1315:17): [True: 1.75k, False: 3.49M]
  ------------------
 1316|  1.75k|                    input_ptr_ = parse_number(input_ptr_, visitor, ec);  
 1317|  1.75k|                    if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   78|  1.75k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 1.75k]
  |  |  ------------------
  ------------------
 1318|  1.75k|                    break;
 1319|  1.75k|                case parse_state::t: 
  ------------------
  |  Branch (1319:17): [True: 36, False: 3.49M]
  ------------------
 1320|     36|                    switch (*input_ptr_)
 1321|     36|                    {
 1322|     24|                        case 'r':
  ------------------
  |  Branch (1322:25): [True: 24, False: 12]
  ------------------
 1323|     24|                            ++input_ptr_;
 1324|     24|                            ++position_;
 1325|     24|                            state_ = parse_state::tr;
 1326|     24|                            break;
 1327|     12|                        default:
  ------------------
  |  Branch (1327:25): [True: 12, False: 24]
  ------------------
 1328|     12|                            err_handler_(json_errc::invalid_value, *this);
 1329|     12|                            ec = json_errc::invalid_value;
 1330|     12|                            more_ = false;
 1331|     12|                            return;
 1332|     36|                    }
 1333|     24|                    break;
 1334|     24|                case parse_state::tr: 
  ------------------
  |  Branch (1334:17): [True: 23, False: 3.49M]
  ------------------
 1335|     23|                    switch (*input_ptr_)
 1336|     23|                    {
 1337|     12|                        case 'u':
  ------------------
  |  Branch (1337:25): [True: 12, False: 11]
  ------------------
 1338|     12|                            state_ = parse_state::tru;
 1339|     12|                            break;
 1340|     11|                        default:
  ------------------
  |  Branch (1340:25): [True: 11, False: 12]
  ------------------
 1341|     11|                            err_handler_(json_errc::invalid_value, *this);
 1342|     11|                            ec = json_errc::invalid_value;
 1343|     11|                            more_ = false;
 1344|     11|                            return;
 1345|     23|                    }
 1346|     12|                    ++input_ptr_;
 1347|     12|                    ++position_;
 1348|     12|                    break;
 1349|     10|                case parse_state::tru: 
  ------------------
  |  Branch (1349:17): [True: 10, False: 3.49M]
  ------------------
 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|     47|                case parse_state::f: 
  ------------------
  |  Branch (1374:17): [True: 47, False: 3.49M]
  ------------------
 1375|     47|                    switch (*input_ptr_)
 1376|     47|                    {
 1377|     36|                        case 'a':
  ------------------
  |  Branch (1377:25): [True: 36, False: 11]
  ------------------
 1378|     36|                            ++input_ptr_;
 1379|     36|                            ++position_;
 1380|     36|                            state_ = parse_state::fa;
 1381|     36|                            break;
 1382|     11|                        default:
  ------------------
  |  Branch (1382:25): [True: 11, False: 36]
  ------------------
 1383|     11|                            err_handler_(json_errc::invalid_value, *this);
 1384|     11|                            ec = json_errc::invalid_value;
 1385|     11|                            more_ = false;
 1386|     11|                            return;
 1387|     47|                    }
 1388|     36|                    break;
 1389|     36|                case parse_state::fa: 
  ------------------
  |  Branch (1389:17): [True: 35, False: 3.49M]
  ------------------
 1390|     35|                    switch (*input_ptr_)
 1391|     35|                    {
 1392|     24|                        case 'l':
  ------------------
  |  Branch (1392:25): [True: 24, False: 11]
  ------------------
 1393|     24|                            state_ = parse_state::fal;
 1394|     24|                            break;
 1395|     11|                        default:
  ------------------
  |  Branch (1395:25): [True: 11, False: 24]
  ------------------
 1396|     11|                            err_handler_(json_errc::invalid_value, *this);
 1397|     11|                            ec = json_errc::invalid_value;
 1398|     11|                            more_ = false;
 1399|     11|                            return;
 1400|     35|                    }
 1401|     24|                    ++input_ptr_;
 1402|     24|                    ++position_;
 1403|     24|                    break;
 1404|     23|                case parse_state::fal: 
  ------------------
  |  Branch (1404:17): [True: 23, False: 3.49M]
  ------------------
 1405|     23|                    switch (*input_ptr_)
 1406|     23|                    {
 1407|     12|                        case 's':
  ------------------
  |  Branch (1407:25): [True: 12, False: 11]
  ------------------
 1408|     12|                            state_ = parse_state::fals;
 1409|     12|                            break;
 1410|     11|                        default:
  ------------------
  |  Branch (1410:25): [True: 11, False: 12]
  ------------------
 1411|     11|                            err_handler_(json_errc::invalid_value, *this);
 1412|     11|                            ec = json_errc::invalid_value;
 1413|     11|                            more_ = false;
 1414|     11|                            return;
 1415|     23|                    }
 1416|     12|                    ++input_ptr_;
 1417|     12|                    ++position_;
 1418|     12|                    break;
 1419|     11|                case parse_state::fals: 
  ------------------
  |  Branch (1419:17): [True: 11, False: 3.49M]
  ------------------
 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: 3.49M]
  ------------------
 1445|     36|                    switch (*input_ptr_)
 1446|     36|                    {
 1447|     24|                        case 'u':
  ------------------
  |  Branch (1447:25): [True: 24, False: 12]
  ------------------
 1448|     24|                            ++input_ptr_;
 1449|     24|                            ++position_;
 1450|     24|                            state_ = parse_state::nu;
 1451|     24|                            break;
 1452|     12|                        default:
  ------------------
  |  Branch (1452:25): [True: 12, False: 24]
  ------------------
 1453|     12|                            err_handler_(json_errc::invalid_value, *this);
 1454|     12|                            ec = json_errc::invalid_value;
 1455|     12|                            more_ = false;
 1456|     12|                            return;
 1457|     36|                    }
 1458|     24|                    break;
 1459|     24|                case parse_state::nu: 
  ------------------
  |  Branch (1459:17): [True: 23, False: 3.49M]
  ------------------
 1460|     23|                    switch (*input_ptr_)
 1461|     23|                    {
 1462|     12|                        case 'l':
  ------------------
  |  Branch (1462:25): [True: 12, False: 11]
  ------------------
 1463|     12|                            state_ = parse_state::nul;
 1464|     12|                            break;
 1465|     11|                        default:
  ------------------
  |  Branch (1465:25): [True: 11, False: 12]
  ------------------
 1466|     11|                            err_handler_(json_errc::invalid_value, *this);
 1467|     11|                            ec = json_errc::invalid_value;
 1468|     11|                            more_ = false;
 1469|     11|                            return;
 1470|     23|                    }
 1471|     12|                    ++input_ptr_;
 1472|     12|                    ++position_;
 1473|     12|                    break;
 1474|     11|                case parse_state::nul: 
  ------------------
  |  Branch (1474:17): [True: 11, False: 3.49M]
  ------------------
 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.5k|                case parse_state::slash: 
  ------------------
  |  Branch (1499:17): [True: 31.5k, False: 3.46M]
  ------------------
 1500|  31.5k|                {
 1501|  31.5k|                    switch (*input_ptr_)
 1502|  31.5k|                    {
 1503|    907|                        case '*':
  ------------------
  |  Branch (1503:25): [True: 907, False: 30.6k]
  ------------------
 1504|    907|                            if (!allow_comments_)
  ------------------
  |  Branch (1504:33): [True: 0, False: 907]
  ------------------
 1505|      0|                            {
 1506|      0|                                ec = json_errc::illegal_comment;
 1507|      0|                                return;
 1508|      0|                            }
 1509|    907|                            more_ = err_handler_(json_errc::illegal_comment, *this);
 1510|    907|                            if (!more_)
  ------------------
  |  Branch (1510:33): [True: 0, False: 907]
  ------------------
 1511|      0|                            {
 1512|      0|                                ec = json_errc::illegal_comment;
 1513|      0|                                return;
 1514|      0|                            }
 1515|    907|                            state_ = parse_state::slash_star;
 1516|    907|                            break;
 1517|  30.6k|                        case '/':
  ------------------
  |  Branch (1517:25): [True: 30.6k, False: 908]
  ------------------
 1518|  30.6k|                            if (!allow_comments_)
  ------------------
  |  Branch (1518:33): [True: 0, False: 30.6k]
  ------------------
 1519|      0|                            {
 1520|      0|                                ec = json_errc::illegal_comment;
 1521|      0|                                return;
 1522|      0|                            }
 1523|  30.6k|                            more_ = err_handler_(json_errc::illegal_comment, *this);
 1524|  30.6k|                            if (!more_)
  ------------------
  |  Branch (1524:33): [True: 0, False: 30.6k]
  ------------------
 1525|      0|                            {
 1526|      0|                                ec = json_errc::illegal_comment;
 1527|      0|                                return;
 1528|      0|                            }
 1529|  30.6k|                            state_ = parse_state::slash_slash;
 1530|  30.6k|                            break;
 1531|      1|                        default:    
  ------------------
  |  Branch (1531:25): [True: 1, False: 31.5k]
  ------------------
 1532|      1|                            more_ = err_handler_(json_errc::syntax_error, *this);
 1533|      1|                            if (!more_)
  ------------------
  |  Branch (1533:33): [True: 1, False: 0]
  ------------------
 1534|      1|                            {
 1535|      1|                                ec = json_errc::syntax_error;
 1536|      1|                                return;
 1537|      1|                            }
 1538|      0|                            break;
 1539|  31.5k|                    }
 1540|  31.5k|                    ++input_ptr_;
 1541|  31.5k|                    ++position_;
 1542|  31.5k|                    break;
 1543|  31.5k|                }
 1544|  1.63M|                case parse_state::slash_star:  
  ------------------
  |  Branch (1544:17): [True: 1.63M, False: 1.86M]
  ------------------
 1545|  1.63M|                {
 1546|  1.63M|                    switch (*input_ptr_)
 1547|  1.63M|                    {
 1548|  6.05k|                        case '\r':
  ------------------
  |  Branch (1548:25): [True: 6.05k, False: 1.62M]
  ------------------
 1549|  6.05k|                            push_state(state_);
 1550|  6.05k|                            ++input_ptr_;
 1551|  6.05k|                            ++position_;
 1552|  6.05k|                            state_ = parse_state::cr;
 1553|  6.05k|                            break;
 1554|  7.17k|                        case '\n':
  ------------------
  |  Branch (1554:25): [True: 7.17k, False: 1.62M]
  ------------------
 1555|  7.17k|                            ++input_ptr_;
 1556|  7.17k|                            ++line_;
 1557|  7.17k|                            ++position_;
 1558|  7.17k|                            mark_position_ = position_;
 1559|  7.17k|                            break;
 1560|  1.56k|                        case '*':
  ------------------
  |  Branch (1560:25): [True: 1.56k, False: 1.62M]
  ------------------
 1561|  1.56k|                            ++input_ptr_;
 1562|  1.56k|                            ++position_;
 1563|  1.56k|                            state_ = parse_state::slash_star_star;
 1564|  1.56k|                            break;
 1565|  1.61M|                        default:
  ------------------
  |  Branch (1565:25): [True: 1.61M, False: 14.7k]
  ------------------
 1566|  1.61M|                            ++input_ptr_;
 1567|  1.61M|                            ++position_;
 1568|  1.61M|                            break;
 1569|  1.63M|                    }
 1570|  1.63M|                    break;
 1571|  1.63M|                }
 1572|  1.63M|                case parse_state::slash_slash: 
  ------------------
  |  Branch (1572:17): [True: 1.48M, False: 2.00M]
  ------------------
 1573|  1.48M|                {
 1574|  1.48M|                    switch (*input_ptr_)
 1575|  1.48M|                    {
 1576|  11.1k|                    case '\r':
  ------------------
  |  Branch (1576:21): [True: 11.1k, False: 1.47M]
  ------------------
 1577|  30.6k|                    case '\n':
  ------------------
  |  Branch (1577:21): [True: 19.4k, False: 1.46M]
  ------------------
 1578|  30.6k|                        state_ = pop_state();
 1579|  30.6k|                        break;
 1580|  1.45M|                    default:
  ------------------
  |  Branch (1580:21): [True: 1.45M, False: 30.6k]
  ------------------
 1581|  1.45M|                        ++input_ptr_;
 1582|  1.45M|                        ++position_;
 1583|  1.48M|                    }
 1584|  1.48M|                    break;
 1585|  1.48M|                }
 1586|  1.48M|                case parse_state::slash_star_star: 
  ------------------
  |  Branch (1586:17): [True: 1.55k, False: 3.49M]
  ------------------
 1587|  1.55k|                {
 1588|  1.55k|                    switch (*input_ptr_)
 1589|  1.55k|                    {
 1590|    830|                    case '/':
  ------------------
  |  Branch (1590:21): [True: 830, False: 727]
  ------------------
 1591|    830|                        state_ = pop_state();
 1592|    830|                        break;
 1593|    727|                    default:    
  ------------------
  |  Branch (1593:21): [True: 727, False: 830]
  ------------------
 1594|    727|                        state_ = parse_state::slash_star;
 1595|    727|                        break;
 1596|  1.55k|                    }
 1597|  1.55k|                    ++input_ptr_;
 1598|  1.55k|                    ++position_;
 1599|  1.55k|                    break;
 1600|  1.55k|                }
 1601|      0|                default:
  ------------------
  |  Branch (1601:17): [True: 0, False: 3.49M]
  ------------------
 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|  3.49M|            }
 1605|  3.49M|        }
 1606|  8.44k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE17end_integer_valueERNS_18basic_json_visitorIcEERNS1_10error_codeE:
 2448|    714|    {
 2449|    714|        if (buffer_[0] == '-')
  ------------------
  |  Branch (2449:13): [True: 408, False: 306]
  ------------------
 2450|    408|        {
 2451|    408|            end_negative_value(visitor, ec);
 2452|    408|        }
 2453|    306|        else
 2454|    306|        {
 2455|    306|            end_positive_value(visitor, ec);
 2456|    306|        }
 2457|    714|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE18end_negative_valueERNS_18basic_json_visitorIcEERNS1_10error_codeE:
 2460|    408|    {
 2461|    408|        int64_t val;
 2462|    408|        auto result = jsoncons::dec_to_integer(buffer_.data(), buffer_.length(), val);
 2463|    408|        if (result)
  ------------------
  |  Branch (2463:13): [True: 248, False: 160]
  ------------------
 2464|    248|        {
 2465|    248|            visitor.int64_value(val, semantic_tag::none, *this, ec);
 2466|    248|            if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|    248|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 248]
  |  |  ------------------
  ------------------
 2467|    248|        }
 2468|    160|        else // Must be overflow
 2469|    160|        {
 2470|    160|            if (lossless_bignum_)
  ------------------
  |  Branch (2470:17): [True: 160, False: 0]
  ------------------
 2471|    160|            {
 2472|    160|                visitor.string_value(buffer_, semantic_tag::bigint, *this, ec);
 2473|    160|                if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|    160|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 160]
  |  |  ------------------
  ------------------
 2474|    160|            }
 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|    160|        }
 2497|    408|        more_ = !cursor_mode_;
 2498|    408|        after_value(ec);
 2499|    408|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE11after_valueERNS1_10error_codeE:
 2685|  1.71k|    {
 2686|  1.71k|        switch (parent())
 2687|  1.71k|        {
 2688|      0|            case parse_state::array:
  ------------------
  |  Branch (2688:13): [True: 0, False: 1.71k]
  ------------------
 2689|      0|            case parse_state::object:
  ------------------
  |  Branch (2689:13): [True: 0, False: 1.71k]
  ------------------
 2690|      0|                state_ = parse_state::expect_comma_or_end;
 2691|      0|                break;
 2692|  1.71k|            case parse_state::root:
  ------------------
  |  Branch (2692:13): [True: 1.71k, False: 0]
  ------------------
 2693|  1.71k|                state_ = parse_state::accept;
 2694|  1.71k|                break;
 2695|      0|            default:
  ------------------
  |  Branch (2695:13): [True: 0, False: 1.71k]
  ------------------
 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.71k|        }
 2704|  1.71k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE18end_positive_valueERNS_18basic_json_visitorIcEERNS1_10error_codeE:
 2502|    306|    {
 2503|    306|        uint64_t val;
 2504|    306|        auto result = jsoncons::dec_to_integer(buffer_.data(), buffer_.length(), val);
 2505|    306|        if (result)
  ------------------
  |  Branch (2505:13): [True: 227, False: 79]
  ------------------
 2506|    227|        {
 2507|    227|            visitor.uint64_value(val, semantic_tag::none, *this, ec);
 2508|    227|            if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|    227|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 227]
  |  |  ------------------
  ------------------
 2509|    227|        }
 2510|     79|        else // Must be overflow
 2511|     79|        {
 2512|     79|            if (lossless_bignum_)
  ------------------
  |  Branch (2512:17): [True: 79, False: 0]
  ------------------
 2513|     79|            {
 2514|     79|                visitor.string_value(buffer_, semantic_tag::bigint, *this, ec);
 2515|     79|                if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|     79|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 79]
  |  |  ------------------
  ------------------
 2516|     79|            }
 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|     79|        }
 2539|    306|        more_ = !cursor_mode_;
 2540|    306|        after_value(ec);
 2541|    306|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE18end_fraction_valueERNS_18basic_json_visitorIcEERNS1_10error_codeE:
 2544|    996|    {
 2545|    996|        if (lossless_number_)
  ------------------
  |  Branch (2545:13): [True: 0, False: 996]
  ------------------
 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|    996|        else
 2551|    996|        {
 2552|    996|            double d{0};
 2553|    996|            auto result = jsoncons::decstr_to_double(&buffer_[0], buffer_.length(), d);
 2554|    996|            if (JSONCONS_LIKELY(result))
  ------------------
  |  |   77|    996|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 938, False: 58]
  |  |  ------------------
  ------------------
 2555|    938|            {
 2556|    938|                visitor.double_value(d, semantic_tag::none, *this, ec);
 2557|    938|                if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|    938|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 938]
  |  |  ------------------
  ------------------
 2558|    938|            }
 2559|     58|            else if (result.ec == std::errc::result_out_of_range)
  ------------------
  |  Branch (2559:22): [True: 58, False: 0]
  ------------------
 2560|     58|            {
 2561|     58|                if (lossless_bignum_)
  ------------------
  |  Branch (2561:21): [True: 58, False: 0]
  ------------------
 2562|     58|                {
 2563|     58|                    visitor.string_value(buffer_, semantic_tag::bigdec, *this, ec);
 2564|     58|                    if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|     58|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 58]
  |  |  ------------------
  ------------------
 2565|     58|                }
 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|     58|            }
 2572|      0|            else
 2573|      0|            {
 2574|      0|                ec = json_errc::invalid_number;
 2575|      0|                more_ = false;
 2576|      0|                return;
 2577|      0|            }
 2578|    996|        }
 2579|       |
 2580|    996|        more_ = !cursor_mode_;
 2581|    996|        after_value(ec);
 2582|    996|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE9pop_stateEv:
 2713|  37.6k|    {
 2714|  37.6k|        JSONCONS_ASSERT(!state_stack_.empty())
  ------------------
  |  |   49|  37.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 37.6k]
  |  |  ------------------
  |  |   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|  37.6k|        parse_state state = state_stack_.back();
 2716|  37.6k|        state_stack_.pop_back();
 2717|  37.6k|        return state;
 2718|  37.6k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE10skip_spaceEPPKc:
 2399|  31.7k|    {
 2400|  31.7k|        const char_type* local_input_end = input_end_;
 2401|  31.7k|        const char_type* cur = *ptr;
 2402|       |
 2403|  5.23M|        while (cur < local_input_end) 
  ------------------
  |  Branch (2403:16): [True: 5.23M, False: 223]
  ------------------
 2404|  5.23M|        {
 2405|  5.23M|            if (*cur == ' ' || *cur == '\t')
  ------------------
  |  Branch (2405:17): [True: 49.8k, False: 5.18M]
  |  Branch (2405:32): [True: 3.01M, False: 2.16M]
  ------------------
 2406|  3.06M|            {
 2407|  3.06M|                ++cur;
 2408|  3.06M|                ++position_;
 2409|  3.06M|                continue;
 2410|  3.06M|            }
 2411|  2.16M|            if (*cur == '\n')
  ------------------
  |  Branch (2411:17): [True: 101k, False: 2.06M]
  ------------------
 2412|   101k|            {
 2413|   101k|                ++cur;
 2414|   101k|                ++line_;
 2415|   101k|                ++position_;
 2416|   101k|                mark_position_ = position_;
 2417|   101k|                continue;
 2418|   101k|            }
 2419|  2.06M|            if (*cur == '\r')
  ------------------
  |  Branch (2419:17): [True: 2.03M, False: 31.3k]
  ------------------
 2420|  2.03M|            {
 2421|  2.03M|                ++cur;
 2422|  2.03M|                ++position_;
 2423|  2.03M|                if (cur < local_input_end)
  ------------------
  |  Branch (2423:21): [True: 2.03M, False: 149]
  ------------------
 2424|  2.03M|                {
 2425|  2.03M|                    ++line_;
 2426|  2.03M|                    if (*cur == '\n')
  ------------------
  |  Branch (2426:25): [True: 3.27k, False: 2.02M]
  ------------------
 2427|  3.27k|                    {
 2428|  3.27k|                        ++cur;
 2429|  3.27k|                        ++position_;
 2430|  3.27k|                    }
 2431|  2.03M|                    mark_position_ = position_;
 2432|  2.03M|                }
 2433|    149|                else
 2434|    149|                {
 2435|    149|                    push_state(state_);
 2436|    149|                    state_ = parse_state::cr;
 2437|    149|                    *ptr = cur;
 2438|    149|                    return; 
 2439|    149|                }
 2440|  2.03M|                continue;
 2441|  2.03M|            }
 2442|  31.3k|            break;
 2443|  2.06M|        }
 2444|  31.5k|        *ptr = cur;
 2445|  31.5k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE10push_stateENS_11parse_stateE:
 2707|  41.0k|    {
 2708|  41.0k|        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|  41.0k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE12begin_objectERNS_18basic_json_visitorIcEERNS1_10error_codeE:
  352|      3|    {
  353|      3|        if (JSONCONS_UNLIKELY(++level_ > max_nesting_depth_))
  ------------------
  |  |   78|      3|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 3]
  |  |  ------------------
  ------------------
  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|      3|        push_state(parse_state::object);
  364|      3|        state_ = parse_state::expect_member_name_or_end;
  365|      3|        visitor.begin_object(semantic_tag::none, *this, ec);
  366|      3|        more_ = !cursor_mode_;
  367|      3|    }
_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|   272k|    {
 1947|   272k|        const char_type* local_input_end = input_end_;
 1948|   272k|        const char_type* sb = cur;
 1949|       |
 1950|   272k|        switch (string_state_)
 1951|   272k|        {
 1952|   271k|            case parse_string_state::text:
  ------------------
  |  Branch (1952:13): [True: 271k, False: 676]
  ------------------
 1953|   271k|                goto text;
 1954|    133|            case parse_string_state::escape:
  ------------------
  |  Branch (1954:13): [True: 133, False: 272k]
  ------------------
 1955|    133|                goto escape;
 1956|     64|            case parse_string_state::escape_u1:
  ------------------
  |  Branch (1956:13): [True: 64, False: 272k]
  ------------------
 1957|     64|                goto escape_u1;
 1958|     64|            case parse_string_state::escape_u2:
  ------------------
  |  Branch (1958:13): [True: 64, False: 272k]
  ------------------
 1959|     64|                goto escape_u2;
 1960|     64|            case parse_string_state::escape_u3:
  ------------------
  |  Branch (1960:13): [True: 64, False: 272k]
  ------------------
 1961|     64|                goto escape_u3;
 1962|     64|            case parse_string_state::escape_u4:
  ------------------
  |  Branch (1962:13): [True: 64, False: 272k]
  ------------------
 1963|     64|                goto escape_u4;
 1964|     47|            case parse_string_state::escape_expect_surrogate_pair1:
  ------------------
  |  Branch (1964:13): [True: 47, False: 272k]
  ------------------
 1965|     47|                goto escape_expect_surrogate_pair1;
 1966|     47|            case parse_string_state::escape_expect_surrogate_pair2:
  ------------------
  |  Branch (1966:13): [True: 47, False: 272k]
  ------------------
 1967|     47|                goto escape_expect_surrogate_pair2;
 1968|     47|            case parse_string_state::escape_u5:
  ------------------
  |  Branch (1968:13): [True: 47, False: 272k]
  ------------------
 1969|     47|                goto escape_u5;
 1970|     47|            case parse_string_state::escape_u6:
  ------------------
  |  Branch (1970:13): [True: 47, False: 272k]
  ------------------
 1971|     47|                goto escape_u6;
 1972|     47|            case parse_string_state::escape_u7:
  ------------------
  |  Branch (1972:13): [True: 47, False: 272k]
  ------------------
 1973|     47|                goto escape_u7;
 1974|     52|            case parse_string_state::escape_u8:
  ------------------
  |  Branch (1974:13): [True: 52, False: 272k]
  ------------------
 1975|     52|                goto escape_u8;
 1976|      0|            default:
  ------------------
  |  Branch (1976:13): [True: 0, False: 272k]
  ------------------
 1977|      0|                JSONCONS_UNREACHABLE();               
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1978|   272k|        }
 1979|       |
 1980|  2.20M|text:
 1981|  16.6M|        while (cur < local_input_end)
  ------------------
  |  Branch (1981:16): [True: 16.6M, False: 808]
  ------------------
 1982|  16.6M|        {
 1983|  16.6M|            switch (*cur)
 1984|  16.6M|            {
 1985|    611|                JSONCONS_ILLEGAL_CONTROL_CHARACTER:
  ------------------
  |  |   34|     14|        case 0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x0b: \
  |  |  ------------------
  |  |  |  Branch (34:9): [True: 2, False: 16.6M]
  |  |  |  Branch (34:19): [True: 1, False: 16.6M]
  |  |  |  Branch (34:29): [True: 1, False: 16.6M]
  |  |  |  Branch (34:39): [True: 2, False: 16.6M]
  |  |  |  Branch (34:49): [True: 1, False: 16.6M]
  |  |  |  Branch (34:59): [True: 1, False: 16.6M]
  |  |  |  Branch (34:69): [True: 1, False: 16.6M]
  |  |  |  Branch (34:79): [True: 3, False: 16.6M]
  |  |  |  Branch (34:89): [True: 1, False: 16.6M]
  |  |  |  Branch (34:99): [True: 1, False: 16.6M]
  |  |  ------------------
  |  |   35|     28|        case 0x0c:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16: \
  |  |  ------------------
  |  |  |  Branch (35:9): [True: 3, False: 16.6M]
  |  |  |  Branch (35:19): [True: 2, False: 16.6M]
  |  |  |  Branch (35:29): [True: 1, False: 16.6M]
  |  |  |  Branch (35:39): [True: 2, False: 16.6M]
  |  |  |  Branch (35:49): [True: 1, False: 16.6M]
  |  |  |  Branch (35:59): [True: 1, False: 16.6M]
  |  |  |  Branch (35:69): [True: 1, False: 16.6M]
  |  |  |  Branch (35:79): [True: 1, False: 16.6M]
  |  |  |  Branch (35:89): [True: 1, False: 16.6M]
  |  |  |  Branch (35:99): [True: 1, False: 16.6M]
  |  |  ------------------
  |  |   36|     38|        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.6M]
  |  |  |  Branch (36:19): [True: 1, False: 16.6M]
  |  |  |  Branch (36:29): [True: 1, False: 16.6M]
  |  |  |  Branch (36:39): [True: 1, False: 16.6M]
  |  |  |  Branch (36:49): [True: 2, False: 16.6M]
  |  |  |  Branch (36:59): [True: 1, False: 16.6M]
  |  |  |  Branch (36:69): [True: 1, False: 16.6M]
  |  |  |  Branch (36:79): [True: 1, False: 16.6M]
  |  |  ------------------
  ------------------
 1986|    611|                {
 1987|    611|                    position_ += (cur - sb + 1);
 1988|    611|                    more_ = err_handler_(json_errc::illegal_control_character, *this);
 1989|    611|                    if (!more_)
  ------------------
  |  Branch (1989:25): [True: 38, False: 0]
  ------------------
 1990|     38|                    {
 1991|     38|                        ec = json_errc::illegal_control_character;
 1992|     38|                        string_state_ = parse_string_state{};
 1993|     38|                        return cur;
 1994|     38|                    }
 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|    611|                }
 2001|      1|                case '\n':
  ------------------
  |  Branch (2001:17): [True: 1, False: 16.6M]
  ------------------
 2002|      2|                case '\r':
  ------------------
  |  Branch (2002:17): [True: 1, False: 16.6M]
  ------------------
 2003|      3|                case '\t':
  ------------------
  |  Branch (2003:17): [True: 1, False: 16.6M]
  ------------------
 2004|      3|                {
 2005|      3|                    position_ += (cur - sb + 1);
 2006|      3|                    if (!err_handler_(json_errc::illegal_character_in_string, *this))
  ------------------
  |  Branch (2006:25): [True: 3, False: 0]
  ------------------
 2007|      3|                    {
 2008|      3|                        more_ = false;
 2009|      3|                        ec = json_errc::illegal_character_in_string;
 2010|      3|                        return cur;
 2011|      3|                    }
 2012|       |                    // recovery - skip
 2013|      0|                    buffer_.append(sb,cur-sb);
 2014|      0|                    sb = cur + 1;
 2015|      0|                    break;
 2016|      3|                }
 2017|  2.20M|                case '\\': 
  ------------------
  |  Branch (2017:17): [True: 2.20M, False: 14.4M]
  ------------------
 2018|  2.20M|                {
 2019|  2.20M|                    buffer_.append(sb,cur-sb);
 2020|  2.20M|                    position_ += (cur - sb + 1);
 2021|  2.20M|                    ++cur;
 2022|  2.20M|                    escape_tag_ = semantic_tag{};
 2023|  2.20M|                    goto escape;
 2024|      3|                }
 2025|    309|                case '\"':
  ------------------
  |  Branch (2025:17): [True: 309, False: 16.6M]
  ------------------
 2026|    309|                {
 2027|    309|                    position_ += (cur - sb + 1);
 2028|    309|                    if (buffer_.empty())
  ------------------
  |  Branch (2028:25): [True: 256, False: 53]
  ------------------
 2029|    256|                    {
 2030|    256|                        end_string_value(sb,cur-sb, visitor, ec);
 2031|    256|                        if (JSONCONS_UNLIKELY(ec)) {return cur;}
  ------------------
  |  |   78|    256|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 161, False: 95]
  |  |  ------------------
  ------------------
 2032|    256|                    }
 2033|     53|                    else
 2034|     53|                    {
 2035|     53|                        buffer_.append(sb,cur-sb);
 2036|     53|                        end_string_value(buffer_.data(), buffer_.length(), visitor, ec);
 2037|     53|                        if (JSONCONS_UNLIKELY(ec)) {return cur;}
  ------------------
  |  |   78|     53|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 32, False: 21]
  |  |  ------------------
  ------------------
 2038|     53|                    }
 2039|    116|                    ++cur;
 2040|    116|                    return cur;
 2041|    309|                }
 2042|  14.4M|            default:
  ------------------
  |  Branch (2042:13): [True: 14.4M, False: 2.20M]
  ------------------
 2043|  14.4M|                break;
 2044|  16.6M|            }
 2045|  14.4M|            ++cur;
 2046|  14.4M|        }
 2047|       |
 2048|       |        // Buffer exhausted               
 2049|    808|        {
 2050|    808|            buffer_.append(sb,cur-sb);
 2051|    808|            position_ += (cur - sb);
 2052|    808|            string_state_ = parse_string_state{};
 2053|    808|            return cur;
 2054|  2.20M|        }
 2055|       |
 2056|  2.20M|escape:
 2057|  2.20M|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|  2.20M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 150, False: 2.20M]
  |  |  ------------------
  ------------------
 2058|    150|        {
 2059|    150|            string_state_ = parse_string_state::escape;
 2060|    150|            return cur;
 2061|    150|        }
 2062|  2.20M|        switch (*cur)
 2063|  2.20M|        {
 2064|   321k|        case '\"':
  ------------------
  |  Branch (2064:9): [True: 321k, False: 1.88M]
  ------------------
 2065|   321k|            buffer_.push_back('\"');
 2066|   321k|            sb = ++cur;
 2067|   321k|            ++position_;
 2068|   321k|            goto text;
 2069|  1.34M|        case '\\': 
  ------------------
  |  Branch (2069:9): [True: 1.34M, False: 861k]
  ------------------
 2070|  1.34M|            buffer_.push_back('\\');
 2071|  1.34M|            sb = ++cur;
 2072|  1.34M|            ++position_;
 2073|  1.34M|            goto text;
 2074|  1.07k|        case '/':
  ------------------
  |  Branch (2074:9): [True: 1.07k, False: 2.20M]
  ------------------
 2075|  1.07k|            buffer_.push_back('/');
 2076|  1.07k|            sb = ++cur;
 2077|  1.07k|            ++position_;
 2078|  1.07k|            goto text;
 2079|    361|        case 'b':
  ------------------
  |  Branch (2079:9): [True: 361, False: 2.20M]
  ------------------
 2080|    361|            buffer_.push_back('\b');
 2081|    361|            sb = ++cur;
 2082|    361|            ++position_;
 2083|    361|            goto text;
 2084|    437|        case 'f':
  ------------------
  |  Branch (2084:9): [True: 437, False: 2.20M]
  ------------------
 2085|    437|            buffer_.push_back('\f');
 2086|    437|            sb = ++cur;
 2087|    437|            ++position_;
 2088|    437|            goto text;
 2089|    324|        case 'n':
  ------------------
  |  Branch (2089:9): [True: 324, False: 2.20M]
  ------------------
 2090|    324|            buffer_.push_back('\n');
 2091|    324|            sb = ++cur;
 2092|    324|            ++position_;
 2093|    324|            goto text;
 2094|    464|        case 'r':
  ------------------
  |  Branch (2094:9): [True: 464, False: 2.20M]
  ------------------
 2095|    464|            buffer_.push_back('\r');
 2096|    464|            sb = ++cur;
 2097|    464|            ++position_;
 2098|    464|            goto text;
 2099|    653|        case 't':
  ------------------
  |  Branch (2099:9): [True: 653, False: 2.20M]
  ------------------
 2100|    653|            buffer_.push_back('\t');
 2101|    653|            sb = ++cur;
 2102|    653|            ++position_;
 2103|    653|            goto text;
 2104|   536k|        case 'u':
  ------------------
  |  Branch (2104:9): [True: 536k, False: 1.67M]
  ------------------
 2105|   536k|             cp_ = 0;
 2106|   536k|             ++cur;
 2107|   536k|             ++position_;
 2108|   536k|             goto escape_u1;
 2109|      2|        default:    
  ------------------
  |  Branch (2109:9): [True: 2, False: 2.20M]
  ------------------
 2110|      2|            err_handler_(json_errc::illegal_escaped_character, *this);
 2111|      2|            ec = json_errc::illegal_escaped_character;
 2112|      2|            more_ = false;
 2113|      2|            string_state_ = parse_string_state::escape;
 2114|      2|            return cur;
 2115|  2.20M|        }
 2116|       |
 2117|   537k|escape_u1:
 2118|   537k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   537k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 78, False: 536k]
  |  |  ------------------
  ------------------
 2119|     78|        {
 2120|     78|            string_state_ = parse_string_state::escape_u1;
 2121|     78|            return cur;
 2122|     78|        }
 2123|   536k|        {
 2124|   536k|            cp_ = append_to_codepoint(0, *cur, ec);
 2125|   536k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   536k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 35, False: 536k]
  |  |  ------------------
  ------------------
 2126|     35|            {
 2127|     35|                string_state_ = parse_string_state::escape_u1;
 2128|     35|                return cur;
 2129|     35|            }
 2130|   536k|            ++cur;
 2131|   536k|            ++position_;
 2132|   536k|            goto escape_u2;
 2133|   536k|        }
 2134|       |
 2135|   537k|escape_u2:
 2136|   537k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   537k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 90, False: 536k]
  |  |  ------------------
  ------------------
 2137|     90|        {
 2138|     90|            string_state_ = parse_string_state::escape_u2;
 2139|     90|            return cur;
 2140|     90|        }
 2141|   536k|        {
 2142|   536k|            cp_ = append_to_codepoint(cp_, *cur, ec);
 2143|   536k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   536k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 536k]
  |  |  ------------------
  ------------------
 2144|      3|            {
 2145|      3|                string_state_ = parse_string_state::escape_u2;
 2146|      3|                return cur;
 2147|      3|            }
 2148|   536k|            ++cur;
 2149|   536k|            ++position_;
 2150|   536k|            goto escape_u3;
 2151|   536k|        }
 2152|       |
 2153|   536k|escape_u3:
 2154|   536k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   536k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 83, False: 536k]
  |  |  ------------------
  ------------------
 2155|     83|        {
 2156|     83|            string_state_ = parse_string_state::escape_u3;
 2157|     83|            return cur;
 2158|     83|        }
 2159|   536k|        {
 2160|   536k|            cp_ = append_to_codepoint(cp_, *cur, ec);
 2161|   536k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   536k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 536k]
  |  |  ------------------
  ------------------
 2162|      3|            {
 2163|      3|                string_state_ = parse_string_state::escape_u3;
 2164|      3|                return cur;
 2165|      3|            }
 2166|   536k|            ++cur;
 2167|   536k|            ++position_;
 2168|   536k|            goto escape_u4;
 2169|   536k|        }
 2170|       |
 2171|   536k|escape_u4:
 2172|   536k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   536k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 83, False: 536k]
  |  |  ------------------
  ------------------
 2173|     83|        {
 2174|     83|            string_state_ = parse_string_state::escape_u4;
 2175|     83|            return cur;
 2176|     83|        }
 2177|   536k|        {
 2178|   536k|            cp_ = append_to_codepoint(cp_, *cur, ec);
 2179|   536k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   536k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 536k]
  |  |  ------------------
  ------------------
 2180|      2|            {
 2181|      2|                string_state_ = parse_string_state::escape_u4;
 2182|      2|                return cur;
 2183|      2|            }
 2184|   536k|            if (unicode_traits::is_high_surrogate(cp_))
  ------------------
  |  Branch (2184:17): [True: 266k, False: 270k]
  ------------------
 2185|   266k|            {
 2186|   266k|                ++cur;
 2187|   266k|                ++position_;
 2188|   266k|                goto escape_expect_surrogate_pair1;
 2189|   266k|            }
 2190|   270k|            else
 2191|   270k|            {
 2192|   270k|                unicode_traits::convert(&cp_, 1, buffer_);
 2193|   270k|                sb = ++cur;
 2194|   270k|                ++position_;
 2195|   270k|                string_state_ = parse_string_state{};
 2196|   270k|                return cur;
 2197|   270k|            }
 2198|   536k|        }
 2199|       |
 2200|   266k|escape_expect_surrogate_pair1:
 2201|   266k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   266k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 69, False: 266k]
  |  |  ------------------
  ------------------
 2202|     69|        {
 2203|     69|            string_state_ = parse_string_state::escape_expect_surrogate_pair1;
 2204|     69|            return cur;
 2205|     69|        }
 2206|   266k|        {
 2207|   266k|            switch (*cur)
 2208|   266k|            {
 2209|   266k|            case '\\': 
  ------------------
  |  Branch (2209:13): [True: 266k, False: 3]
  ------------------
 2210|   266k|                cp2_ = 0;
 2211|   266k|                ++cur;
 2212|   266k|                ++position_;
 2213|   266k|                goto escape_expect_surrogate_pair2;
 2214|      3|            default:
  ------------------
  |  Branch (2214:13): [True: 3, False: 266k]
  ------------------
 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|   266k|            }
 2221|   266k|        }
 2222|       |
 2223|   266k|escape_expect_surrogate_pair2:
 2224|   266k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   266k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 66, False: 266k]
  |  |  ------------------
  ------------------
 2225|     66|        {
 2226|     66|            string_state_ = parse_string_state::escape_expect_surrogate_pair2;
 2227|     66|            return cur;
 2228|     66|        }
 2229|   266k|        {
 2230|   266k|            switch (*cur)
 2231|   266k|            {
 2232|   266k|            case 'u':
  ------------------
  |  Branch (2232:13): [True: 266k, False: 2]
  ------------------
 2233|   266k|                ++cur;
 2234|   266k|                ++position_;
 2235|   266k|                goto escape_u5;
 2236|      2|            default:
  ------------------
  |  Branch (2236:13): [True: 2, False: 266k]
  ------------------
 2237|      2|                err_handler_(json_errc::expected_codepoint_surrogate_pair, *this);
 2238|      2|                ec = json_errc::expected_codepoint_surrogate_pair;
 2239|      2|                more_ = false;
 2240|      2|                string_state_ = parse_string_state::escape_expect_surrogate_pair2;
 2241|      2|                return cur;
 2242|   266k|            }
 2243|   266k|        }
 2244|       |
 2245|   266k|escape_u5:
 2246|   266k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   266k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 63, False: 266k]
  |  |  ------------------
  ------------------
 2247|     63|        {
 2248|     63|            string_state_ = parse_string_state::escape_u5;
 2249|     63|            return cur;
 2250|     63|        }
 2251|   266k|        {
 2252|   266k|            cp2_ = append_to_codepoint(0, *cur, ec);
 2253|   266k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   266k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 266k]
  |  |  ------------------
  ------------------
 2254|      1|            {
 2255|      1|                string_state_ = parse_string_state::escape_u5;
 2256|      1|                return cur;
 2257|      1|            }
 2258|   266k|        }
 2259|   266k|        ++cur;
 2260|   266k|        ++position_;
 2261|   266k|        goto escape_u6;
 2262|       |
 2263|   266k|escape_u6:
 2264|   266k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   266k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 62, False: 266k]
  |  |  ------------------
  ------------------
 2265|     62|        {
 2266|     62|            string_state_ = parse_string_state::escape_u6;
 2267|     62|            return cur;
 2268|     62|        }
 2269|   266k|        {
 2270|   266k|            cp2_ = append_to_codepoint(cp2_, *cur, ec);
 2271|   266k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   266k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 266k]
  |  |  ------------------
  ------------------
 2272|      2|            {
 2273|      2|                string_state_ = parse_string_state::escape_u6;
 2274|      2|                return cur;
 2275|      2|            }
 2276|   266k|            ++cur;
 2277|   266k|            ++position_;
 2278|   266k|            goto escape_u7;
 2279|   266k|        }
 2280|       |
 2281|   266k|escape_u7:
 2282|   266k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   266k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 60, False: 266k]
  |  |  ------------------
  ------------------
 2283|     60|        {
 2284|     60|            string_state_ = parse_string_state::escape_u7;
 2285|     60|            return cur;
 2286|     60|        }
 2287|   266k|        {
 2288|   266k|            cp2_ = append_to_codepoint(cp2_, *cur, ec);
 2289|   266k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   266k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 266k]
  |  |  ------------------
  ------------------
 2290|      2|            {
 2291|      2|                string_state_ = parse_string_state::escape_u7;
 2292|      2|                return cur;
 2293|      2|            }
 2294|   266k|            ++cur;
 2295|   266k|            ++position_;
 2296|   266k|            goto escape_u8;
 2297|   266k|        }
 2298|       |
 2299|   266k|escape_u8:
 2300|   266k|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|   266k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 69, False: 266k]
  |  |  ------------------
  ------------------
 2301|     69|        {
 2302|     69|            string_state_ = parse_string_state::escape_u8;
 2303|     69|            return cur;
 2304|     69|        }
 2305|   266k|        {
 2306|   266k|            cp2_ = append_to_codepoint(cp2_, *cur, ec);
 2307|   266k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   266k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 266k]
  |  |  ------------------
  ------------------
 2308|      2|            {
 2309|      2|                string_state_ = parse_string_state::escape_u8;
 2310|      2|                return cur;
 2311|      2|            }
 2312|   266k|            uint32_t cp = 0x10000 + ((cp_ & 0x3FF) << 10) + (cp2_ & 0x3FF);
 2313|   266k|            unicode_traits::convert(&cp, 1, buffer_);
 2314|   266k|            sb = ++cur;
 2315|   266k|            ++position_;
 2316|   266k|            goto text;
 2317|   266k|        }
 2318|       |
 2319|      0|        JSONCONS_UNREACHABLE();               
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 2320|   266k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE16end_string_valueEPKcmRNS_18basic_json_visitorIcEERNS1_10error_codeE:
 2585|    309|    {
 2586|    309|        string_view_type sv(s, length);
 2587|    309|        auto result = unicode_traits::validate(s, length);
 2588|    309|        if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (2588:13): [True: 193, False: 116]
  ------------------
 2589|    193|        {
 2590|    193|            translate_conv_errc(result.ec,ec);
 2591|    193|            position_ += (result.ptr - s);
 2592|    193|            return;
 2593|    193|        }
 2594|    116|        switch (parent())
 2595|    116|        {
 2596|      0|            case parse_state::member_name:
  ------------------
  |  Branch (2596:13): [True: 0, False: 116]
  ------------------
 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: 116]
  ------------------
 2604|      0|            case parse_state::array:
  ------------------
  |  Branch (2604:13): [True: 0, False: 116]
  ------------------
 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|    116|            case parse_state::root:
  ------------------
  |  Branch (2627:13): [True: 116, False: 0]
  ------------------
 2628|    116|            {
 2629|    116|                if (enable_str_to_inf_ && sv == inf_to_str_)
  ------------------
  |  Branch (2629:21): [True: 0, False: 116]
  |  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|    116|                else if (enable_str_to_neginf_ && sv == neginf_to_str_)
  ------------------
  |  Branch (2633:26): [True: 0, False: 116]
  |  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|    116|                else if (enable_str_to_nan_ && sv == nan_to_str_)
  ------------------
  |  Branch (2637:26): [True: 0, False: 116]
  |  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|    116|                else
 2642|    116|                {
 2643|    116|                    visitor.string_value(sv, escape_tag_, *this, ec);
 2644|    116|                }
 2645|    116|                if (JSONCONS_UNLIKELY(ec)){return;}
  ------------------
  |  |   78|    116|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 116]
  |  |  ------------------
  ------------------
 2646|    116|                more_ = !cursor_mode_;
 2647|    116|                state_ = parse_state::accept;
 2648|    116|                break;
 2649|    116|            }
 2650|      0|            default:
  ------------------
  |  Branch (2650:13): [True: 0, False: 116]
  ------------------
 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|    116|        }
 2659|    116|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE19translate_conv_errcENS_14unicode_traits12unicode_errcERNS1_10error_codeE:
 2323|    193|    {
 2324|    193|        switch (result)
 2325|    193|        {
 2326|      0|        case unicode_traits::unicode_errc():
  ------------------
  |  Branch (2326:9): [True: 0, False: 193]
  ------------------
 2327|      0|            break;
 2328|     34|        case unicode_traits::unicode_errc::over_long_utf8_sequence:
  ------------------
  |  Branch (2328:9): [True: 34, False: 159]
  ------------------
 2329|     34|            more_ = err_handler_(json_errc::over_long_utf8_sequence, *this);
 2330|     34|            if (!more_)
  ------------------
  |  Branch (2330:17): [True: 34, False: 0]
  ------------------
 2331|     34|            {
 2332|     34|                ec = json_errc::over_long_utf8_sequence;
 2333|     34|                return;
 2334|     34|            }
 2335|      0|            break;
 2336|      0|        case unicode_traits::unicode_errc::unpaired_high_surrogate:
  ------------------
  |  Branch (2336:9): [True: 0, False: 193]
  ------------------
 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|     60|        case unicode_traits::unicode_errc::bad_continuation_byte:
  ------------------
  |  Branch (2344:9): [True: 60, False: 133]
  ------------------
 2345|     60|            more_ = err_handler_(json_errc::bad_continuation_byte, *this);
 2346|     60|            if (!more_)
  ------------------
  |  Branch (2346:17): [True: 60, False: 0]
  ------------------
 2347|     60|            {
 2348|     60|                ec = json_errc::bad_continuation_byte;
 2349|     60|                return;
 2350|     60|            }
 2351|      0|            break;
 2352|      0|        case unicode_traits::unicode_errc::illegal_surrogate_value:
  ------------------
  |  Branch (2352:9): [True: 0, False: 193]
  ------------------
 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|     99|        default:
  ------------------
  |  Branch (2360:9): [True: 99, False: 94]
  ------------------
 2361|     99|            more_ = err_handler_(json_errc::illegal_codepoint, *this);
 2362|     99|            if (!more_)
  ------------------
  |  Branch (2362:17): [True: 99, False: 0]
  ------------------
 2363|     99|            {
 2364|     99|                ec = json_errc::illegal_codepoint;
 2365|     99|                return;
 2366|     99|            }
 2367|      0|            break;
 2368|    193|        }
 2369|    193|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE19append_to_codepointEjiRNS1_10error_codeE:
 2721|  3.21M|    {
 2722|  3.21M|        cp *= 16;
 2723|  3.21M|        if (c >= '0'  &&  c <= '9')
  ------------------
  |  Branch (2723:13): [True: 3.21M, False: 23]
  |  Branch (2723:27): [True: 939k, False: 2.27M]
  ------------------
 2724|   939k|        {
 2725|   939k|            cp += c - '0';
 2726|   939k|        }
 2727|  2.27M|        else if (c >= 'a'  &&  c <= 'f')
  ------------------
  |  Branch (2727:18): [True: 487k, False: 1.78M]
  |  Branch (2727:32): [True: 487k, False: 8]
  ------------------
 2728|   487k|        {
 2729|   487k|            cp += c - 'a' + 10;
 2730|   487k|        }
 2731|  1.78M|        else if (c >= 'A'  &&  c <= 'F')
  ------------------
  |  Branch (2731:18): [True: 1.78M, False: 29]
  |  Branch (2731:32): [True: 1.78M, False: 21]
  ------------------
 2732|  1.78M|        {
 2733|  1.78M|            cp += c - 'A' + 10;
 2734|  1.78M|        }
 2735|     50|        else
 2736|     50|        {
 2737|     50|            more_ = err_handler_(json_errc::invalid_unicode_escape_sequence, *this);
 2738|     50|            if (!more_)
  ------------------
  |  Branch (2738:17): [True: 50, False: 0]
  ------------------
 2739|     50|            {
 2740|     50|                ec = json_errc::invalid_unicode_escape_sequence;
 2741|     50|                return cp;
 2742|     50|            }
 2743|     50|        }
 2744|  3.21M|        return cp;
 2745|  3.21M|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE12parse_numberEPKcRNS_18basic_json_visitorIcEERNS1_10error_codeE:
 1722|  3.50k|    {
 1723|  3.50k|        const char_type* cur = hdr;
 1724|  3.50k|        const char_type* local_input_end = input_end_;
 1725|       |
 1726|  3.50k|        switch (number_state_)
 1727|  3.50k|        {
 1728|    467|            case parse_number_state::minus:
  ------------------
  |  Branch (1728:13): [True: 467, False: 3.04k]
  ------------------
 1729|    467|                goto minus_sign;
 1730|     82|            case parse_number_state::zero:
  ------------------
  |  Branch (1730:13): [True: 82, False: 3.42k]
  ------------------
 1731|     82|                goto zero;
 1732|  2.37k|            case parse_number_state::integer:
  ------------------
  |  Branch (1732:13): [True: 2.37k, False: 1.13k]
  ------------------
 1733|  2.37k|                goto integer;
 1734|      3|            case parse_number_state::fraction1:
  ------------------
  |  Branch (1734:13): [True: 3, False: 3.50k]
  ------------------
 1735|      3|                goto fraction1;
 1736|    262|            case parse_number_state::fraction2:
  ------------------
  |  Branch (1736:13): [True: 262, False: 3.24k]
  ------------------
 1737|    262|                goto fraction2;
 1738|      3|            case parse_number_state::exp1:
  ------------------
  |  Branch (1738:13): [True: 3, False: 3.50k]
  ------------------
 1739|      3|                goto exp1;
 1740|      1|            case parse_number_state::exp2:
  ------------------
  |  Branch (1740:13): [True: 1, False: 3.50k]
  ------------------
 1741|      1|                goto exp2;
 1742|    313|            case parse_number_state::exp3:
  ------------------
  |  Branch (1742:13): [True: 313, False: 3.19k]
  ------------------
 1743|    313|                goto exp3;
 1744|      0|            default:
  ------------------
  |  Branch (1744:13): [True: 0, False: 3.50k]
  ------------------
 1745|      0|                JSONCONS_UNREACHABLE();               
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1746|  3.50k|        }
 1747|    467|minus_sign:
 1748|    467|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|    467|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4, False: 463]
  |  |  ------------------
  ------------------
 1749|      4|        {
 1750|      4|            number_state_ = parse_number_state::minus;
 1751|      4|            buffer_.append(hdr, cur);
 1752|      4|            position_ += (cur - hdr);
 1753|      4|            return cur;
 1754|      4|        }
 1755|    463|        if (jsoncons::is_nonzero_digit(*cur))
  ------------------
  |  Branch (1755:13): [True: 400, False: 63]
  ------------------
 1756|    400|        {
 1757|    400|            ++cur;
 1758|    400|            goto integer;
 1759|    400|        }
 1760|     63|        if (*cur == '0')
  ------------------
  |  Branch (1760:13): [True: 51, False: 12]
  ------------------
 1761|     51|        {
 1762|     51|            ++cur;
 1763|     51|            goto zero;
 1764|     51|        }
 1765|     12|        err_handler_(json_errc::invalid_number, *this);
 1766|     12|        ec = json_errc::invalid_number;
 1767|     12|        more_ = false;
 1768|     12|        position_ += (cur - hdr);
 1769|     12|        return cur;
 1770|    133|zero:
 1771|    133|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|    133|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 80, False: 53]
  |  |  ------------------
  ------------------
 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|     53|        if (*cur == '.')
  ------------------
  |  Branch (1778:13): [True: 36, False: 17]
  ------------------
 1779|     36|        {
 1780|     36|            ++cur;
 1781|     36|            goto fraction1;
 1782|     36|        }
 1783|     17|        if (jsoncons::is_exp(*cur))
  ------------------
  |  Branch (1783:13): [True: 6, False: 11]
  ------------------
 1784|      6|        {
 1785|      6|            ++cur;
 1786|      6|            goto exp1;
 1787|      6|        }
 1788|     11|        if (jsoncons::is_digit(*cur))
  ------------------
  |  Branch (1788:13): [True: 2, False: 9]
  ------------------
 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|      9|        buffer_.append(hdr, cur);
 1799|      9|        position_ += (cur - hdr);
 1800|      9|        end_integer_value(visitor, ec);
 1801|      9|        return cur;
 1802|  2.77k|integer:
 1803|  18.9M|        while (true)
  ------------------
  |  Branch (1803:16): [True: 18.9M, Folded]
  ------------------
 1804|  18.9M|        {
 1805|  18.9M|            if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|  18.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.77k, False: 18.9M]
  |  |  ------------------
  ------------------
 1806|  1.77k|            {
 1807|  1.77k|                number_state_ = parse_number_state::integer;
 1808|  1.77k|                buffer_.append(hdr, cur);
 1809|  1.77k|                position_ += (cur - hdr);
 1810|  1.77k|                return cur;
 1811|  1.77k|            }
 1812|  18.9M|            if (JSONCONS_UNLIKELY(!jsoncons::is_digit(*cur)))
  ------------------
  |  |   78|  18.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.00k, False: 18.9M]
  |  |  ------------------
  ------------------
 1813|  1.00k|            {
 1814|  1.00k|                break;
 1815|  1.00k|            }
 1816|  18.9M|            ++cur;
 1817|  18.9M|        }
 1818|  1.00k|        if (*cur == '.')
  ------------------
  |  Branch (1818:13): [True: 357, False: 645]
  ------------------
 1819|    357|        {
 1820|    357|            ++cur;
 1821|    357|            goto fraction1;
 1822|    357|        }
 1823|    645|        if (jsoncons::is_exp(*cur))
  ------------------
  |  Branch (1823:13): [True: 619, False: 26]
  ------------------
 1824|    619|        {
 1825|    619|            ++cur;
 1826|    619|            goto exp1;
 1827|    619|        }
 1828|     26|        buffer_.append(hdr, cur);
 1829|     26|        position_ += (cur - hdr);
 1830|     26|        end_integer_value(visitor, ec);
 1831|     26|        return cur;
 1832|    396|fraction1:
 1833|    396|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|    396|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5, False: 391]
  |  |  ------------------
  ------------------
 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|    391|        if (jsoncons::is_digit(*cur))
  ------------------
  |  Branch (1840:13): [True: 390, False: 1]
  ------------------
 1841|    390|        {
 1842|    390|            ++cur;
 1843|    390|            goto fraction2;
 1844|    390|        }
 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|    652|fraction2:
 1852|  4.27M|        while (true)
  ------------------
  |  Branch (1852:16): [True: 4.27M, Folded]
  ------------------
 1853|  4.27M|        {
 1854|  4.27M|            if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|  4.27M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 628, False: 4.27M]
  |  |  ------------------
  ------------------
 1855|    628|            {
 1856|    628|                number_state_ = parse_number_state::fraction2;
 1857|    628|                buffer_.append(hdr, cur);
 1858|    628|                position_ += (cur - hdr);
 1859|    628|                return cur;
 1860|    628|            }
 1861|  4.27M|            if (JSONCONS_UNLIKELY(!jsoncons::is_digit(*cur)))
  ------------------
  |  |   78|  4.27M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 24, False: 4.27M]
  |  |  ------------------
  ------------------
 1862|     24|            {
 1863|     24|                break;
 1864|     24|            }
 1865|  4.27M|            ++cur;
 1866|  4.27M|        }
 1867|     24|        if (jsoncons::is_exp(*cur))
  ------------------
  |  Branch (1867:13): [True: 15, False: 9]
  ------------------
 1868|     15|        {
 1869|     15|            ++cur;
 1870|     15|            goto exp1;
 1871|     15|        }
 1872|      9|        buffer_.append(hdr, cur);
 1873|      9|        position_ += (cur - hdr);
 1874|      9|        end_fraction_value(visitor, ec);
 1875|      9|        return cur;
 1876|    643|exp1:
 1877|    643|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|    643|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 6, False: 637]
  |  |  ------------------
  ------------------
 1878|      6|        {
 1879|      6|            number_state_ = parse_number_state::exp1;
 1880|      6|            buffer_.append(hdr, cur);
 1881|      6|            position_ += (cur - hdr);
 1882|      6|            return cur;
 1883|      6|        }
 1884|    637|        if (*cur == '-')
  ------------------
  |  Branch (1884:13): [True: 388, False: 249]
  ------------------
 1885|    388|        {
 1886|    388|            ++cur;
 1887|    388|            goto exp2;
 1888|    388|        }
 1889|    249|        if (jsoncons::is_digit(*cur))
  ------------------
  |  Branch (1889:13): [True: 234, False: 15]
  ------------------
 1890|    234|        {
 1891|    234|            ++cur;
 1892|    234|            goto exp3;
 1893|    234|        }
 1894|     15|        if (*cur == '+')
  ------------------
  |  Branch (1894:13): [True: 2, False: 13]
  ------------------
 1895|      2|        {
 1896|      2|            ++cur;
 1897|      2|            goto exp2;
 1898|      2|        }
 1899|     13|        err_handler_(json_errc::invalid_number, *this);
 1900|     13|        ec = json_errc::invalid_number;
 1901|     13|        more_ = false;
 1902|     13|        position_ += (cur - hdr);
 1903|     13|        return cur;
 1904|    391|exp2:
 1905|    391|        if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|    391|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 388]
  |  |  ------------------
  ------------------
 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|    388|        if (jsoncons::is_digit(*cur))
  ------------------
  |  Branch (1912:13): [True: 387, False: 1]
  ------------------
 1913|    387|        {
 1914|    387|            ++cur;
 1915|    387|            goto exp3;
 1916|    387|        }
 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|    934|exp3:
 1924|  4.99M|        while (true)
  ------------------
  |  Branch (1924:16): [True: 4.99M, Folded]
  ------------------
 1925|  4.99M|        {
 1926|  4.99M|            if (JSONCONS_UNLIKELY(cur >= local_input_end)) // Buffer exhausted               
  ------------------
  |  |   78|  4.99M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 926, False: 4.99M]
  |  |  ------------------
  ------------------
 1927|    926|            {
 1928|    926|                number_state_ = parse_number_state::exp3;
 1929|    926|                buffer_.append(hdr, cur);
 1930|    926|                position_ += (cur - hdr);
 1931|    926|                return cur;
 1932|    926|            }
 1933|  4.99M|            if (JSONCONS_UNLIKELY(!jsoncons::is_digit(*cur)))
  ------------------
  |  |   78|  4.99M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 8, False: 4.99M]
  |  |  ------------------
  ------------------
 1934|      8|            {
 1935|      8|                break;
 1936|      8|            }
 1937|  4.99M|            ++cur;
 1938|  4.99M|        }
 1939|      8|        buffer_.append(hdr, cur);
 1940|      8|        position_ += (cur - hdr);
 1941|      8|        end_fraction_value(visitor, ec);
 1942|      8|        return cur;
 1943|    934|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE10parse_nullERNS_18basic_json_visitorIcEERNS1_10error_codeE:
 1647|     84|    {
 1648|     84|        begin_position_ = position_;
 1649|     84|        if (JSONCONS_LIKELY(input_end_ - input_ptr_ >= 4))
  ------------------
  |  |   77|     84|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 47, False: 37]
  |  |  ------------------
  ------------------
 1650|     47|        {
 1651|     47|            if (*(input_ptr_+1) == 'u' && *(input_ptr_+2) == 'l' && *(input_ptr_+3) == 'l')
  ------------------
  |  Branch (1651:17): [True: 26, False: 21]
  |  Branch (1651:43): [True: 13, False: 13]
  |  Branch (1651:69): [True: 1, False: 12]
  ------------------
 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|     46|            else
 1668|     46|            {
 1669|     46|                err_handler_(json_errc::invalid_value, *this);
 1670|     46|                ec = json_errc::invalid_value;
 1671|     46|                more_ = false;
 1672|     46|                return;
 1673|     46|            }
 1674|     47|        }
 1675|     37|        else
 1676|     37|        {
 1677|     37|            ++input_ptr_;
 1678|     37|            ++position_;
 1679|     37|            state_ = parse_state::n;
 1680|     37|        }
 1681|     84|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE10parse_trueEPKcRNS_18basic_json_visitorIcEERNS1_10error_codeE:
 1609|     83|    {
 1610|     83|        begin_position_ = position_;
 1611|     83|        if (JSONCONS_LIKELY(input_end_ - cur >= 4))
  ------------------
  |  |   77|     83|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 46, False: 37]
  |  |  ------------------
  ------------------
 1612|     46|        {
 1613|     46|            if (*(cur+1) == 'r' && *(cur+2) == 'u' && *(cur+3) == 'e')
  ------------------
  |  Branch (1613:17): [True: 29, False: 17]
  |  Branch (1613:36): [True: 15, False: 14]
  |  Branch (1613:55): [True: 1, False: 14]
  ------------------
 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|     45|            else
 1630|     45|            {
 1631|     45|                err_handler_(json_errc::invalid_value, *this);
 1632|     45|                ec = json_errc::invalid_value;
 1633|     45|                more_ = false;
 1634|     45|                return cur;
 1635|     45|            }
 1636|     46|        }
 1637|     37|        else
 1638|     37|        {
 1639|     37|            ++cur;
 1640|     37|            ++position_;
 1641|     37|            state_ = parse_state::t;
 1642|     37|        }
 1643|     38|        return cur;
 1644|     83|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE11parse_falseEPKcRNS_18basic_json_visitorIcEERNS1_10error_codeE:
 1684|     97|    {
 1685|     97|        begin_position_ = position_;
 1686|     97|        if (JSONCONS_LIKELY(input_end_ - cur >= 5))
  ------------------
  |  |   77|     97|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 49, False: 48]
  |  |  ------------------
  ------------------
 1687|     49|        {
 1688|     49|            if (*(cur+1) == 'a' && *(cur+2) == 'l' && *(cur+3) == 's' && *(cur+4) == 'e')
  ------------------
  |  Branch (1688:17): [True: 38, False: 11]
  |  Branch (1688:36): [True: 26, False: 12]
  |  Branch (1688:55): [True: 13, False: 13]
  |  Branch (1688:74): [True: 1, False: 12]
  ------------------
 1689|      1|            {
 1690|      1|                cur += 5;
 1691|      1|                position_ += 5;
 1692|      1|                visitor.bool_value(false, semantic_tag::none, *this, ec);
 1693|      1|                if (JSONCONS_UNLIKELY(ec)){return cur;}
  ------------------
  |  |   78|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
 1694|      1|                more_ = !cursor_mode_;
 1695|      1|                if (level_ == 0)
  ------------------
  |  Branch (1695:21): [True: 1, False: 0]
  ------------------
 1696|      1|                {
 1697|      1|                    state_ = parse_state::accept;
 1698|      1|                }
 1699|      0|                else
 1700|      0|                {
 1701|      0|                    state_ = parse_state::expect_comma_or_end;
 1702|      0|                }
 1703|      1|            }
 1704|     48|            else
 1705|     48|            {
 1706|     48|                err_handler_(json_errc::invalid_value, *this);
 1707|     48|                ec = json_errc::invalid_value;
 1708|     48|                more_ = false;
 1709|     48|                return cur;
 1710|     48|            }
 1711|     49|        }
 1712|     48|        else
 1713|     48|        {
 1714|     48|            ++cur;
 1715|     48|            ++position_;
 1716|     48|            state_ = parse_state::f;
 1717|     48|        }
 1718|     49|        return cur;
 1719|     97|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE6parentEv:
  276|  1.82k|    {
  277|  1.82k|        JSONCONS_ASSERT(state_stack_.size() >= 1);
  ------------------
  |  |   49|  1.82k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 1.82k]
  |  |  ------------------
  |  |   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.82k|        return state_stack_.back();
  279|  1.82k|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE5enterEv:
  287|  3.46k|    {
  288|  3.46k|        return state_ == parse_state::start;
  289|  3.46k|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE6acceptEv:
  292|  3.44k|    {
  293|  3.44k|        return state_ == parse_state::accept || done_;
  ------------------
  |  Branch (293:16): [True: 1.65k, False: 1.78k]
  |  Branch (293:49): [True: 1.77k, False: 9]
  ------------------
  294|  3.44k|    }
_ZN8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEEC2ERKNS_25basic_json_decode_optionsIcEERKS3_:
  183|  3.24k|       : max_nesting_depth_(options.max_nesting_depth()),
  184|  3.24k|         allow_trailing_comma_(options.allow_trailing_comma()),
  185|  3.24k|         allow_comments_(options.allow_comments()),
  186|  3.24k|         lossless_number_(options.lossless_number()),
  187|  3.24k|         lossless_bignum_(options.lossless_bignum()),
  188|  3.24k|         enable_str_to_inf_(options.enable_str_to_inf()),
  189|  3.24k|         enable_str_to_neginf_(options.enable_str_to_neginf()),
  190|  3.24k|         enable_str_to_nan_(options.enable_str_to_nan()),
  191|  3.24k|         inf_to_str_(options.inf_to_str()),
  192|  3.24k|         neginf_to_str_(options.neginf_to_str()),
  193|  3.24k|         nan_to_str_(options.nan_to_str()),
  194|       |#if !defined(JSONCONS_NO_DEPRECATED)
  195|  3.24k|         err_handler_(options.err_handler()),
  196|       |#else
  197|       |         err_handler_(default_json_parsing()),
  198|       |#endif
  199|  3.24k|         buffer_(temp_alloc),
  200|  3.24k|         state_stack_(temp_alloc)
  201|  3.24k|    {
  202|  3.24k|        buffer_.reserve(initial_buffer_capacity);
  203|       |
  204|  3.24k|        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.24k]
  ------------------
  205|  3.24k|        state_stack_.reserve(initial_stack_capacity );
  206|  3.24k|        push_state(parse_state::root);
  207|  3.24k|    }
_ZNK8jsoncons17basic_json_parserIcNSt3__19allocatorIcEEE4doneEv:
  282|  8.31k|    {
  283|  8.31k|        return done_;
  284|  8.31k|    }

_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  3.24k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|      3|        {
  319|      3|            visit_begin_object(tag, context, ec);
  320|      3|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|      3|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  1.83k|        {
  109|  1.83k|            visit_flush();
  110|  1.83k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|    248|        {
  424|    248|            visit_int64(value, tag, context, ec);
  425|    248|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    248|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|    248|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|    413|        {
  384|    413|            visit_string(value, tag, context, ec);
  385|    413|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    413|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|    413|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|    938|        {
  442|    938|            visit_double(value, tag, context, ec);
  443|    938|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    938|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|    938|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|    227|        {
  415|    227|            visit_uint64(value, tag, context, ec);
  416|    227|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    227|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|    227|        }
_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|      4|        {
  375|      4|            visit_bool(value, tag, context, ec);
  376|      4|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      4|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|      4|        }
_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.24k|        basic_json_visitor() = default;

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

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

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

_ZN8jsoncons17basic_staj_cursorIcED2Ev:
  558|  3.24k|    virtual ~basic_staj_cursor() = default;
_ZNK8jsoncons18basic_staj_visitorIcE5eventEv:
  418|  1.83k|    {
  419|  1.83k|        return event_;
  420|  1.83k|    }
_ZN8jsoncons18basic_staj_visitorIcEC2Ev:
  406|  3.24k|        : event_(staj_events::null_value)
  407|  3.24k|    {
  408|  3.24k|    }
_ZN8jsoncons18basic_staj_visitorIcE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  515|    227|    {
  516|    227|        event_ = staj_event_type(value, tag);
  517|    227|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    227|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  518|    227|    }
_ZN8jsoncons18basic_staj_visitorIcE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  524|    248|    {
  525|    248|        event_ = staj_event_type(value, tag);
  526|    248|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    248|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  527|    248|    }
_ZN8jsoncons18basic_staj_visitorIcE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  542|    938|    {
  543|    938|        event_ = staj_event_type(value, tag);
  544|    938|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    938|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  545|    938|    }
_ZN8jsoncons18basic_staj_visitorIcE11visit_flushEv:
  548|  1.83k|    {
  549|  1.83k|    }
_ZN8jsoncons18basic_staj_visitorIcE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  434|      3|    {
  435|      3|        event_ = staj_event_type(staj_events::begin_object, tag);
  436|      3|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  437|      3|    }
_ZN8jsoncons18basic_staj_visitorIcE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  452|      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|      4|    {
  483|      4|        event_ = staj_event_type(value, tag);
  484|      4|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      4|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  485|      4|    }
_ZN8jsoncons18basic_staj_visitorIcE12visit_stringERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  488|    413|    {
  489|    413|        event_ = staj_event_type(s, staj_events::string_value, tag);
  490|    413|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|    413|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  491|    413|    }

_ZN8jsonconsanENS_11staj_eventsES0_:
   67|  1.83k|{ return (staj_events)((uint64_t)lhs & (uint64_t)rhs); }
_ZNK8jsoncons16basic_staj_eventIcE11storage_tagEv:
  213|  1.83k|    {
  214|  1.83k|        static constexpr staj_events mask = ~staj_events::key_flag;
  215|  1.83k|        return event_flags_ & mask;
  216|  1.83k|    }
_ZN8jsoncons16basic_staj_eventIcEC2ENS_11staj_eventsENS_12semantic_tagES2_:
  223|  3.24k|        : event_flags_(event_type | key_flag), tag_(tag), value_()
  224|  3.24k|    {
  225|  3.24k|    }
_ZN8jsonconsorENS_11staj_eventsES0_:
   62|  5.07k|{ return (staj_events)((uint64_t)lhs | (uint64_t)rhs); }
_ZN8jsoncons16basic_staj_eventIcEC2EmNS_12semantic_tagENS_11staj_eventsE:
  250|    227|        : event_flags_(staj_events::uint64_value | key_flag), tag_(tag)
  251|    227|    {
  252|    227|        value_.uint64_value_ = value;
  253|    227|    }
_ZN8jsoncons16basic_staj_eventIcEC2ElNS_12semantic_tagENS_11staj_eventsE:
  243|    248|        : event_flags_(staj_events::int64_value | key_flag), tag_(tag)
  244|    248|    {
  245|    248|        value_.int64_value_ = value;
  246|    248|    }
_ZN8jsoncons16basic_staj_eventIcEC2EdNS_12semantic_tagENS_11staj_eventsE:
  264|    938|        : event_flags_(staj_events::double_value | key_flag), tag_(tag)
  265|    938|    {
  266|    938|        value_.double_value_ = value;
  267|    938|    }
_ZN8jsoncons16basic_staj_eventIcEC2ERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_11staj_eventsENS_12semantic_tagES9_:
  273|    413|        : event_flags_(event_type | key_flag), tag_(tag), length_(s.length())
  274|    413|    {
  275|    413|        value_.string_data_ = s.data();
  276|    413|    }
_ZN8jsoncons16basic_staj_eventIcEC2EbNS_12semantic_tagENS_11staj_eventsE:
  236|      4|        : event_flags_(staj_events::bool_value | key_flag), tag_(tag)
  237|      4|    {
  238|      4|        value_.bool_value_ = value;
  239|      4|    }
_ZNK8jsoncons16basic_staj_eventIcE3getINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEET_RNS3_10error_codeE:
  317|  1.83k|    {
  318|  1.83k|        return get_<T>(std::allocator<char>{}, ec);
  319|  1.83k|    }
_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.83k|    {
  325|  1.83k|        constexpr const char_type* true_literal = JSONCONS_CSTRING_CONSTANT(char_type,"true"); 
  ------------------
  |  |  262|  1.83k|#define JSONCONS_CSTRING_CONSTANT(CharT, Str) jsoncons::cstring_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  260|  1.83k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  257|  1.83k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  326|  1.83k|        constexpr const char_type* false_literal = JSONCONS_CSTRING_CONSTANT(char_type,"false"); 
  ------------------
  |  |  262|  1.83k|#define JSONCONS_CSTRING_CONSTANT(CharT, Str) jsoncons::cstring_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  260|  1.83k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  257|  1.83k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  327|  1.83k|        constexpr const char_type* null_literal = JSONCONS_CSTRING_CONSTANT(char_type,"null"); 
  ------------------
  |  |  262|  1.83k|#define JSONCONS_CSTRING_CONSTANT(CharT, Str) jsoncons::cstring_constant_of_type<CharT>(Str, JSONCONS_PP_WIDEN(Str))
  |  |  ------------------
  |  |  |  |  260|  1.83k|#define JSONCONS_PP_WIDEN(A) JSONCONS_PP_EXPAND(L ## A)
  |  |  |  |  ------------------
  |  |  |  |  |  |  257|  1.83k|#define JSONCONS_PP_EXPAND(X) X    
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  328|       |
  329|  1.83k|        switch (storage_tag())
  330|  1.83k|        {
  331|    413|            case staj_events::string_value:
  ------------------
  |  Branch (331:13): [True: 413, False: 1.42k]
  ------------------
  332|    413|            {
  333|    413|                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.83k]
  ------------------
  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|    227|            case staj_events::uint64_value:
  ------------------
  |  Branch (341:13): [True: 227, False: 1.61k]
  ------------------
  342|    227|            {
  343|    227|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  344|    227|                jsoncons::from_integer(value_.uint64_value_, s);
  345|    227|                return s;
  346|      0|            }
  347|    248|            case staj_events::int64_value:
  ------------------
  |  Branch (347:13): [True: 248, False: 1.58k]
  ------------------
  348|    248|            {
  349|    248|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  350|    248|                jsoncons::from_integer(value_.int64_value_, s);
  351|    248|                return s;
  352|      0|            }
  353|      0|            case staj_events::half_value:
  ------------------
  |  Branch (353:13): [True: 0, False: 1.83k]
  ------------------
  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|    938|            case staj_events::double_value:
  ------------------
  |  Branch (361:13): [True: 938, False: 899]
  ------------------
  362|    938|            {
  363|    938|                auto s = jsoncons::make_obj_using_allocator<T>(alloc);
  364|    938|                jsoncons::write_double f{float_chars_format::general,0};
  365|    938|                f(value_.double_value_, s);
  366|    938|                return s;
  367|      0|            }
  368|      4|            case staj_events::bool_value:
  ------------------
  |  Branch (368:13): [True: 4, False: 1.83k]
  ------------------
  369|      4|            {
  370|      4|                return jsoncons::make_obj_using_allocator<T>(alloc, value_.bool_value_ ? true_literal : false_literal);
  ------------------
  |  Branch (370:69): [True: 2, False: 2]
  ------------------
  371|      0|            }
  372|      2|            case staj_events::null_value:
  ------------------
  |  Branch (372:13): [True: 2, False: 1.83k]
  ------------------
  373|      2|            {
  374|      2|                return jsoncons::make_obj_using_allocator<T>(alloc, null_literal);
  375|      0|            }
  376|      5|            default:
  ------------------
  |  Branch (376:13): [True: 5, False: 1.83k]
  ------------------
  377|      5|            {
  378|      5|                ec = conv_errc::not_string;
  379|      5|                return T{};
  380|      0|            }
  381|  1.83k|        }
  382|  1.83k|    }

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

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

_ZN8jsoncons14unicode_traits20detect_json_encodingIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
  109|  3.24k|    {
  110|  3.24k|        detect_encoding_result<CharT> r = detect_encoding_from_bom(data,length);
  111|  3.24k|        if (r.encoding != encoding_kind::undetected)
  ------------------
  |  Branch (111:13): [True: 44, False: 3.19k]
  ------------------
  112|     44|        {
  113|     44|            return r;
  114|     44|        }
  115|  3.19k|        else if (length < 4)
  ------------------
  |  Branch (115:18): [True: 421, False: 2.77k]
  ------------------
  116|    421|        {
  117|    421|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  118|    421|        }
  119|  2.77k|        else if (*data == 0 && *(data+1) == 0 && *(data+2) == 0)
  ------------------
  |  Branch (119:18): [True: 21, False: 2.75k]
  |  Branch (119:32): [True: 13, False: 8]
  |  Branch (119:50): [True: 2, False: 11]
  ------------------
  120|      2|        {
  121|      2|            return detect_encoding_result<CharT>{data,encoding_kind::utf32be};
  122|      2|        }
  123|  2.77k|        else if (*data == 0 && *(data+2) == 0)
  ------------------
  |  Branch (123:18): [True: 19, False: 2.75k]
  |  Branch (123:32): [True: 3, False: 16]
  ------------------
  124|      3|        {
  125|      3|            return detect_encoding_result<CharT>{data,encoding_kind::utf16be};
  126|      3|        }
  127|  2.77k|        else if (*(data+1) == 0 && *(data+2) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (127:18): [True: 26, False: 2.74k]
  |  Branch (127:36): [True: 9, False: 17]
  |  Branch (127:54): [True: 1, False: 8]
  ------------------
  128|      1|        {
  129|      1|            return detect_encoding_result<CharT>{data,encoding_kind::utf32le};
  130|      1|        }
  131|  2.76k|        else if (*(data+1) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (131:18): [True: 25, False: 2.74k]
  |  Branch (131:36): [True: 3, False: 22]
  ------------------
  132|      3|        {
  133|      3|            return detect_encoding_result<CharT>{data,encoding_kind::utf16le};
  134|      3|        }
  135|  2.76k|        else
  136|  2.76k|        {
  137|  2.76k|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  138|  2.76k|        }
  139|  3.24k|    }
_ZN8jsoncons14unicode_traits24detect_encoding_from_bomIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
   66|  3.24k|    {
   67|  3.24k|        static constexpr uint8_t bom_utf8[] = {0xef,0xbb,0xbf}; 
   68|  3.24k|        static constexpr uint8_t bom_utf16le[] = {0xff,0xfe}; 
   69|  3.24k|        static constexpr uint8_t bom_utf16be[] = {0xfe,0xff}; 
   70|  3.24k|        static constexpr uint8_t bom_utf32le[] = {0xff,0xfe,0x00,0x00}; 
   71|  3.24k|        static constexpr uint8_t bom_utf32be[] = {0x00,0x00,0xfe,0xff}; 
   72|       |
   73|  3.24k|        if (length >= 4 && !memcmp(data,bom_utf32le,4))
  ------------------
  |  Branch (73:13): [True: 2.81k, False: 424]
  |  Branch (73:28): [True: 1, False: 2.81k]
  ------------------
   74|      1|        {
   75|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32le};
   76|      1|        }
   77|  3.23k|        else if (length >= 4 && !memcmp(data,bom_utf32be,4))
  ------------------
  |  Branch (77:18): [True: 2.81k, False: 424]
  |  Branch (77:33): [True: 1, False: 2.81k]
  ------------------
   78|      1|        {
   79|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32be};
   80|      1|        }
   81|  3.23k|        else if (length >= 2 && !memcmp(data,bom_utf16le,2))
  ------------------
  |  Branch (81:18): [True: 3.18k, False: 54]
  |  Branch (81:33): [True: 7, False: 3.17k]
  ------------------
   82|      7|        {
   83|      7|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16le};
   84|      7|        }
   85|  3.23k|        else if (length >= 2 && !memcmp(data,bom_utf16be,2))
  ------------------
  |  Branch (85:18): [True: 3.17k, False: 54]
  |  Branch (85:33): [True: 1, False: 3.17k]
  ------------------
   86|      1|        {
   87|      1|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16be};
   88|      1|        }
   89|  3.23k|        else if (length >= 3 && !memcmp(data,bom_utf8,3))
  ------------------
  |  Branch (89:18): [True: 2.98k, False: 242]
  |  Branch (89:33): [True: 34, False: 2.95k]
  ------------------
   90|     34|        {
   91|     34|            return detect_encoding_result<CharT>{data+3,encoding_kind::utf8};
   92|     34|        }
   93|  3.19k|        else
   94|  3.19k|        {
   95|  3.19k|            return detect_encoding_result<CharT>{data,encoding_kind::undetected};
   96|  3.19k|        }
   97|  3.24k|    }
_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|    309|    {
 1148|    309|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|    309|        const uint8_t* end = it + length;
 1150|       |
 1151|    309|        unicode_errc  result{};
 1152|   163k|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 163k, False: 116]
  ------------------
 1153|   163k|        {
 1154|   163k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 163k, False: 269]
  ------------------
 1155|   163k|            {
 1156|  1.06M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|   326k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 160k, False: 2.94k]
  |  |  |  Branch (281:34): [True: 155k, False: 4.60k]
  |  |  |  Branch (281:36): [True: 153k, False: 2.16k]
  |  |  |  Branch (281:38): [True: 151k, False: 1.66k]
  |  |  |  Branch (281:40): [True: 151k, False: 612]
  |  |  |  Branch (281:42): [True: 147k, False: 3.59k]
  |  |  |  Branch (281:44): [True: 143k, False: 3.84k]
  |  |  |  Branch (281:46): [True: 136k, False: 7.36k]
  |  |  ------------------
  ------------------
 1157|   136k|                continue;
 1158|  1.06M|            }
 1159|  27.0k|    non_ascii:
 1160|  27.0k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  27.0k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 35, False: 27.0k]
  ------------------
 1162|     35|            {
 1163|     35|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     35|            }
 1165|  27.0k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 158, False: 26.8k]
  ------------------
 1166|    158|            {
 1167|    158|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    158|            }
 1169|  26.8k|            it += len;
 1170|  26.8k|        }
 1171|    116|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|    309|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  27.0k|    {
  306|  27.0k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  27.0k|        const uint8_t* end = it+length;
  308|       |
  309|  27.0k|        uint8_t byte;
  310|  27.0k|        switch (length) {
  311|     34|        default:
  ------------------
  |  Branch (311:9): [True: 34, False: 27.0k]
  ------------------
  312|     34|            return unicode_errc::over_long_utf8_sequence;
  313|    699|        case 4:
  ------------------
  |  Branch (313:9): [True: 699, False: 26.3k]
  ------------------
  314|    699|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 6, False: 693]
  ------------------
  315|      6|                return unicode_errc::bad_continuation_byte;
  316|    693|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    693|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  5.01k|        case 3:
  ------------------
  |  Branch (317:9): [True: 4.32k, False: 22.7k]
  ------------------
  318|  5.01k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 11, False: 5.00k]
  ------------------
  319|     11|                return unicode_errc::bad_continuation_byte;
  320|  5.00k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  5.00k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  26.8k|        case 2:
  ------------------
  |  Branch (321:9): [True: 21.8k, False: 5.19k]
  ------------------
  322|  26.8k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 43, False: 26.8k]
  ------------------
  323|     43|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  26.8k|            switch (*it) 
  326|  26.8k|            {
  327|       |                // no fall-through in this inner switch
  328|  3.74k|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 3.74k, False: 23.0k]
  |  Branch (328:32): [True: 7, False: 3.74k]
  ------------------
  329|  3.74k|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 408, False: 26.3k]
  |  Branch (329:32): [True: 2, False: 406]
  ------------------
  330|    422|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 422, False: 26.3k]
  |  Branch (330:32): [True: 4, False: 418]
  ------------------
  331|    418|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 262, False: 26.5k]
  |  Branch (331:32): [True: 5, False: 257]
  ------------------
  332|  21.9k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 21.9k, False: 4.83k]
  |  Branch (332:32): [True: 0, False: 21.9k]
  ------------------
  333|  26.8k|            }
  334|       |
  335|  26.7k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  26.7k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  26.9k|        case 1:
  ------------------
  |  Branch (336:9): [True: 140, False: 26.8k]
  ------------------
  337|  26.9k|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 26.8k, False: 96]
  |  Branch (337:32): [True: 45, False: 26.7k]
  ------------------
  338|     45|                return unicode_errc::source_illegal;
  339|  26.8k|            break;
  340|  27.0k|        }
  341|  26.8k|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 1, False: 26.8k]
  ------------------
  342|      1|            return unicode_errc::source_illegal;
  343|       |
  344|  26.8k|        return unicode_errc();
  345|  26.8k|    }
_ZN8jsoncons14unicode_traits17is_high_surrogateEj:
  209|   536k|    {
  210|   536k|        return (ch >= sur_high_start && ch <= sur_high_end);
  ------------------
  |  Branch (210:17): [True: 313k, False: 223k]
  |  Branch (210:41): [True: 266k, False: 46.7k]
  ------------------
  211|   536k|    }
_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|   536k|    {
  981|   536k|        unicode_errc  result{};
  982|   536k|        const CharT* last = data + length;
  983|  1.03M|        while (data < last) 
  ------------------
  |  Branch (983:16): [True: 536k, False: 493k]
  ------------------
  984|   536k|        {
  985|   536k|            uint16_t bytes_to_write = 0;
  986|   536k|            static constexpr uint32_t byteMask = 0xBF;
  987|   536k|            static constexpr uint32_t byteMark = 0x80; 
  988|   536k|            uint32_t ch = *data++;
  989|   536k|            if (flags == strict_flag::strict ) 
  ------------------
  |  Branch (989:17): [True: 536k, False: 0]
  ------------------
  990|   536k|            {
  991|       |                /* UTF-16 surrogate values are illegal in UTF-32 */
  992|   536k|                if (is_surrogate(ch)) 
  ------------------
  |  Branch (992:21): [True: 42.9k, False: 493k]
  ------------------
  993|  42.9k|                {
  994|  42.9k|                    --data; /* return to the illegal value itself */
  995|  42.9k|                    result = unicode_errc::illegal_surrogate_value;
  996|  42.9k|                    break;
  997|  42.9k|                }
  998|   536k|            }
  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|   493k|            if (ch < (uint32_t)0x80) {      bytes_to_write = 1;
  ------------------
  |  Branch (1003:17): [True: 1.63k, False: 492k]
  ------------------
 1004|   492k|            } else if (ch < (uint32_t)0x800) {     bytes_to_write = 2;
  ------------------
  |  Branch (1004:24): [True: 5.11k, False: 487k]
  ------------------
 1005|   487k|            } else if (ch < (uint32_t)0x10000) {   bytes_to_write = 3;
  ------------------
  |  Branch (1005:24): [True: 220k, False: 266k]
  ------------------
 1006|   266k|            } else if (ch <= max_legal_utf32) {  bytes_to_write = 4;
  ------------------
  |  Branch (1006:24): [True: 266k, False: 0]
  ------------------
 1007|   266k|            } else {                            
 1008|      0|                bytes_to_write = 3;
 1009|      0|                ch = replacement_char;
 1010|      0|                result = unicode_errc::source_illegal;
 1011|      0|            }
 1012|       |
 1013|   493k|            uint8_t byte1 = 0;
 1014|   493k|            uint8_t byte2 = 0;
 1015|   493k|            uint8_t byte3 = 0;
 1016|   493k|            uint8_t byte4 = 0;
 1017|       |
 1018|   493k|            switch (bytes_to_write) {
  ------------------
  |  Branch (1018:21): [True: 493k, False: 0]
  ------------------
 1019|   266k|            case 4:
  ------------------
  |  Branch (1019:13): [True: 266k, False: 227k]
  ------------------
 1020|   266k|                byte4 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1021|   266k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   266k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1022|   487k|            case 3:
  ------------------
  |  Branch (1022:13): [True: 220k, False: 273k]
  ------------------
 1023|   487k|                byte3 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1024|   487k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   487k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1025|   492k|            case 2:
  ------------------
  |  Branch (1025:13): [True: 5.11k, False: 488k]
  ------------------
 1026|   492k|                byte2 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1027|   492k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   492k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1028|   493k|            case 1:
  ------------------
  |  Branch (1028:13): [True: 1.63k, False: 492k]
  ------------------
 1029|   493k|                byte1 = (uint8_t) (ch | first_byte_mark[bytes_to_write]);
 1030|   493k|                break;
 1031|   493k|            }
 1032|       |
 1033|   493k|            switch (bytes_to_write) 
  ------------------
  |  Branch (1033:21): [True: 493k, False: 0]
  ------------------
 1034|   493k|            {
 1035|   266k|            case 4: 
  ------------------
  |  Branch (1035:13): [True: 266k, False: 227k]
  ------------------
 1036|   266k|                target.push_back(byte1);
 1037|   266k|                target.push_back(byte2);
 1038|   266k|                target.push_back(byte3);
 1039|   266k|                target.push_back(byte4);
 1040|   266k|                break;
 1041|   220k|            case 3: 
  ------------------
  |  Branch (1041:13): [True: 220k, False: 273k]
  ------------------
 1042|   220k|                target.push_back(byte1);
 1043|   220k|                target.push_back(byte2);
 1044|   220k|                target.push_back(byte3);
 1045|   220k|                break;
 1046|  5.11k|            case 2: 
  ------------------
  |  Branch (1046:13): [True: 5.11k, False: 488k]
  ------------------
 1047|  5.11k|                target.push_back(byte1);
 1048|  5.11k|                target.push_back(byte2);
 1049|  5.11k|                break;
 1050|  1.63k|            case 1: 
  ------------------
  |  Branch (1050:13): [True: 1.63k, False: 492k]
  ------------------
 1051|  1.63k|                target.push_back(byte1);
 1052|  1.63k|                break;
 1053|   493k|            }
 1054|   493k|        }
 1055|   536k|        return unicode_result<CharT>{data,result} ;
 1056|   536k|    }
_ZN8jsoncons14unicode_traits12is_surrogateEj:
  221|   536k|    {
  222|   536k|        return (ch >= sur_high_start && ch <= sur_low_end);
  ------------------
  |  Branch (222:17): [True: 313k, False: 223k]
  |  Branch (222:41): [True: 42.9k, False: 270k]
  ------------------
  223|   536k|    }

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

