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

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

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

_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|    404|{
   17|    404|    return T(std::forward<Args>(args)..., alloc);
   18|    404|}
_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.54k|{
   17|  1.54k|    return T(std::forward<Args>(args)..., alloc);
   18|  1.54k|}
_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.32k|        {
   59|  4.32k|        }
_ZN8jsoncons6detail4spanIKcLm18446744073709551615EEC2EPS2_m:
   61|  13.9k|            : data_(data), size_(size)
   62|  13.9k|        {
   63|  13.9k|        }
_ZNK8jsoncons6detail4spanIKcLm18446744073709551615EE4sizeEv:
  116|  25.1k|        {
  117|  25.1k|            return size_;
  118|  25.1k|        }
_ZNK8jsoncons6detail4spanIKcLm18446744073709551615EE4dataEv:
  111|  13.8k|        {
  112|  13.8k|            return data_;
  113|  13.8k|        }
_ZN8jsoncons6detail4spanIKmLm18446744073709551615EEC2Ev:
   58|  3.34k|        {
   59|  3.34k|        }

_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_ED2Ev:
  257|  3.34k|    ~basic_json_cursor() = default;
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_nextERNS_18basic_json_visitorIcEERNS2_10error_codeE:
  529|  5.29k|    {
  530|  5.29k|        parser_.restart();
  531|  15.2k|        while (!parser_.stopped())
  ------------------
  |  Branch (531:16): [True: 11.3k, False: 3.92k]
  ------------------
  532|  11.3k|        {
  533|  11.3k|            if (parser_.source_exhausted())
  ------------------
  |  Branch (533:17): [True: 11.2k, False: 73]
  ------------------
  534|  11.2k|            {
  535|  11.2k|                auto s = source_.read_buffer(ec);
  536|  11.2k|                if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  11.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 14, False: 11.2k]
  |  |  ------------------
  ------------------
  537|  11.2k|                if (s.size() > 0)
  ------------------
  |  Branch (537:21): [True: 6.92k, False: 4.33k]
  ------------------
  538|  6.92k|                {
  539|  6.92k|                    parser_.update(s.data(),s.size());
  540|  6.92k|                    if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  6.92k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 6.92k]
  |  |  ------------------
  ------------------
  541|  6.92k|                }
  542|  11.2k|            }
  543|  11.3k|            bool eof = parser_.source_exhausted() && source_.eof();
  ------------------
  |  Branch (543:24): [True: 4.33k, False: 6.99k]
  |  Branch (543:54): [True: 4.33k, False: 0]
  ------------------
  544|  11.3k|            parser_.parse_some(visitor, ec);
  545|  11.3k|            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   78|  11.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.32k, False: 10.0k]
  |  |  ------------------
  ------------------
  546|  10.0k|            if (eof)
  ------------------
  |  Branch (546:17): [True: 3.71k, False: 6.29k]
  ------------------
  547|  3.71k|            {
  548|  3.71k|                if (parser_.enter())
  ------------------
  |  Branch (548:21): [True: 24, False: 3.69k]
  ------------------
  549|     24|                {
  550|     24|                    done_ = true;
  551|     24|                    break;
  552|     24|                }
  553|  3.69k|                else if (!parser_.accept())
  ------------------
  |  Branch (553:26): [True: 10, False: 3.68k]
  ------------------
  554|     10|                {
  555|     10|                    ec = json_errc::unexpected_eof;
  556|     10|                    return;
  557|     10|                }
  558|  3.71k|            }
  559|  10.0k|        }
  560|  5.29k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_EC1IRNS2_19basic_istringstreamIcNS2_11char_traitsIcEES4_EEEEOT_RNS2_10error_codeE:
  134|  3.34k|        : basic_json_cursor(std::allocator_arg, Allocator(), 
  135|  3.34k|              std::forward<Sourceable>(source),
  136|  3.34k|              basic_json_decode_options<CharT>(),
  137|  3.34k|              ec)
  138|  3.34k|    {
  139|  3.34k|    }
_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.34k|       : source_(std::forward<Sourceable>(source)),
  204|  3.34k|         parser_(options, alloc)
  205|  3.34k|    {
  206|  3.34k|        parser_.cursor_mode(true);
  207|       |
  208|  3.34k|        if (!read_done())
  ------------------
  |  Branch (208:13): [True: 3.34k, False: 0]
  ------------------
  209|  3.34k|        {
  210|  3.34k|            std::error_code local_ec;
  211|  3.34k|            read_next(local_ec);
  212|  3.34k|            if (local_ec)
  ------------------
  |  Branch (212:17): [True: 1.35k, False: 1.98k]
  ------------------
  213|  1.35k|            {
  214|  1.35k|                if (local_ec == json_errc::unexpected_eof)
  ------------------
  |  Branch (214:21): [True: 632, False: 721]
  ------------------
  215|    632|                {
  216|    632|                    done_ = true;
  217|    632|                }
  218|    721|                else
  219|    721|                {
  220|    721|                    ec = local_ec;
  221|    721|                }
  222|  1.35k|            }
  223|  3.34k|        }
  224|  3.34k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_doneEv:
  470|  3.34k|    {
  471|  3.34k|        return parser_.done() || done_;
  ------------------
  |  Branch (471:16): [True: 0, False: 3.34k]
  |  Branch (471:34): [True: 0, False: 3.34k]
  ------------------
  472|  3.34k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_nextERNS2_10error_codeE:
  524|  5.29k|    {
  525|  5.29k|        read_next(cursor_visitor_, ec);
  526|  5.29k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E4doneEv:
  336|  5.30k|    {
  337|  5.30k|        return parser_.done() || done_;
  ------------------
  |  Branch (337:16): [True: 1.95k, False: 3.34k]
  |  Branch (337:34): [True: 656, False: 2.68k]
  ------------------
  338|  5.30k|    }
_ZNK8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E7currentEv:
  341|  1.96k|    {
  342|  1.96k|        return cursor_visitor_.event();
  343|  1.96k|    }
_ZN8jsoncons17basic_json_cursorIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E4nextERNS2_10error_codeE:
  391|  1.95k|    {
  392|  1.95k|        read_next(ec);
  393|  1.95k|    }

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

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

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

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

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

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

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

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

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

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

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

_ZN8jsoncons14unicode_traits20detect_json_encodingIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
  108|  3.34k|    {
  109|  3.34k|        detect_encoding_result<CharT> r = detect_encoding_from_bom(data,length);
  110|  3.34k|        if (r.encoding != encoding_kind::undetected)
  ------------------
  |  Branch (110:13): [True: 45, False: 3.29k]
  ------------------
  111|     45|        {
  112|     45|            return r;
  113|     45|        }
  114|  3.29k|        else if (length < 4)
  ------------------
  |  Branch (114:18): [True: 457, False: 2.83k]
  ------------------
  115|    457|        {
  116|    457|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  117|    457|        }
  118|  2.83k|        else if (*data == 0 && *(data+1) == 0 && *(data+2) == 0)
  ------------------
  |  Branch (118:18): [True: 25, False: 2.81k]
  |  Branch (118:32): [True: 14, False: 11]
  |  Branch (118:50): [True: 2, False: 12]
  ------------------
  119|      2|        {
  120|      2|            return detect_encoding_result<CharT>{data,encoding_kind::utf32be};
  121|      2|        }
  122|  2.83k|        else if (*data == 0 && *(data+2) == 0)
  ------------------
  |  Branch (122:18): [True: 23, False: 2.81k]
  |  Branch (122:32): [True: 1, False: 22]
  ------------------
  123|      1|        {
  124|      1|            return detect_encoding_result<CharT>{data,encoding_kind::utf16be};
  125|      1|        }
  126|  2.83k|        else if (*(data+1) == 0 && *(data+2) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (126:18): [True: 23, False: 2.81k]
  |  Branch (126:36): [True: 9, False: 14]
  |  Branch (126:54): [True: 1, False: 8]
  ------------------
  127|      1|        {
  128|      1|            return detect_encoding_result<CharT>{data,encoding_kind::utf32le};
  129|      1|        }
  130|  2.83k|        else if (*(data+1) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (130:18): [True: 22, False: 2.81k]
  |  Branch (130:36): [True: 1, False: 21]
  ------------------
  131|      1|        {
  132|      1|            return detect_encoding_result<CharT>{data,encoding_kind::utf16le};
  133|      1|        }
  134|  2.83k|        else
  135|  2.83k|        {
  136|  2.83k|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  137|  2.83k|        }
  138|  3.34k|    }
_ZN8jsoncons14unicode_traits24detect_encoding_from_bomIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
   65|  3.34k|    {
   66|  3.34k|        const uint8_t bom_utf8[] = {0xef,0xbb,0xbf}; 
   67|  3.34k|        const uint8_t bom_utf16le[] = {0xff,0xfe}; 
   68|  3.34k|        const uint8_t bom_utf16be[] = {0xfe,0xff}; 
   69|  3.34k|        const uint8_t bom_utf32le[] = {0xff,0xfe,0x00,0x00}; 
   70|  3.34k|        const uint8_t bom_utf32be[] = {0x00,0x00,0xfe,0xff}; 
   71|       |
   72|  3.34k|        if (length >= 4 && !memcmp(data,bom_utf32le,4))
  ------------------
  |  Branch (72:13): [True: 2.88k, False: 460]
  |  Branch (72:28): [True: 1, False: 2.87k]
  ------------------
   73|      1|        {
   74|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32le};
   75|      1|        }
   76|  3.33k|        else if (length >= 4 && !memcmp(data,bom_utf32be,4))
  ------------------
  |  Branch (76:18): [True: 2.87k, False: 460]
  |  Branch (76:33): [True: 1, False: 2.87k]
  ------------------
   77|      1|        {
   78|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32be};
   79|      1|        }
   80|  3.33k|        else if (length >= 2 && !memcmp(data,bom_utf16le,2))
  ------------------
  |  Branch (80:18): [True: 3.28k, False: 54]
  |  Branch (80:33): [True: 6, False: 3.27k]
  ------------------
   81|      6|        {
   82|      6|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16le};
   83|      6|        }
   84|  3.33k|        else if (length >= 2 && !memcmp(data,bom_utf16be,2))
  ------------------
  |  Branch (84:18): [True: 3.27k, False: 54]
  |  Branch (84:33): [True: 1, False: 3.27k]
  ------------------
   85|      1|        {
   86|      1|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16be};
   87|      1|        }
   88|  3.33k|        else if (length >= 3 && !memcmp(data,bom_utf8,3))
  ------------------
  |  Branch (88:18): [True: 3.07k, False: 258]
  |  Branch (88:33): [True: 36, False: 3.03k]
  ------------------
   89|     36|        {
   90|     36|            return detect_encoding_result<CharT>{data+3,encoding_kind::utf8};
   91|     36|        }
   92|  3.29k|        else
   93|  3.29k|        {
   94|  3.29k|            return detect_encoding_result<CharT>{data,encoding_kind::undetected};
   95|  3.29k|        }
   96|  3.34k|    }
_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14convert_resultIS4_EEE4typeEPKS4_m:
 1134|    192|    {
 1135|    192|        conv_errc  result = conv_errc();
 1136|    192|        const CharT* last = data + length;
 1137|  1.47M|        while (data != last) 
  ------------------
  |  Branch (1137:16): [True: 1.47M, False: 86]
  ------------------
 1138|  1.47M|        {
 1139|  1.47M|            std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[static_cast<uint8_t>(*data)]) + 1;
 1140|  1.47M|            if (len > (std::size_t)(last - data))
  ------------------
  |  Branch (1140:17): [True: 3, False: 1.47M]
  ------------------
 1141|      3|            {
 1142|      3|                return convert_result<CharT>{data, conv_errc::source_exhausted};
 1143|      3|            }
 1144|  1.47M|            if ((result=is_legal_utf8(data, len)) != conv_errc())
  ------------------
  |  Branch (1144:17): [True: 103, False: 1.47M]
  ------------------
 1145|    103|            {
 1146|    103|                return convert_result<CharT>{data,result} ;
 1147|    103|            }
 1148|  1.47M|            data += len;
 1149|  1.47M|        }
 1150|     86|        return convert_result<CharT>{data,result} ;
 1151|    192|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8IcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_9conv_errcEE4typeEPKS4_m:
  303|  1.47M|    {
  304|  1.47M|        uint8_t a;
  305|  1.47M|        const CharT* srcptr = first+length;
  306|  1.47M|        switch (length) {
  307|     22|        default:
  ------------------
  |  Branch (307:9): [True: 22, False: 1.47M]
  ------------------
  308|     22|            return conv_errc::over_long_utf8_sequence;
  309|    793|        case 4:
  ------------------
  |  Branch (309:9): [True: 793, False: 1.47M]
  ------------------
  310|    793|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (310:17): [True: 6, False: 787]
  ------------------
  311|      6|                return conv_errc::expected_continuation_byte;
  312|    787|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    787|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  313|  1.88k|        case 3:
  ------------------
  |  Branch (313:9): [True: 1.09k, False: 1.46M]
  ------------------
  314|  1.88k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 6, False: 1.87k]
  ------------------
  315|      6|                return conv_errc::expected_continuation_byte;
  316|  1.87k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.87k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  2.17k|        case 2:
  ------------------
  |  Branch (317:9): [True: 298, False: 1.47M]
  ------------------
  318|  2.17k|            if (((a = (*--srcptr))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 17, False: 2.15k]
  ------------------
  319|     17|                return conv_errc::expected_continuation_byte;
  320|       |
  321|  2.15k|            switch (static_cast<uint8_t>(*first)) 
  322|  2.15k|            {
  323|       |                // no fall-through in this inner switch
  324|    694|                case 0xE0: if (a < 0xA0) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (324:17): [True: 694, False: 1.46k]
  |  Branch (324:32): [True: 10, False: 684]
  ------------------
  325|    684|                case 0xED: if (a > 0x9F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (325:17): [True: 299, False: 1.85k]
  |  Branch (325:32): [True: 2, False: 297]
  ------------------
  326|    564|                case 0xF0: if (a < 0x90) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (326:17): [True: 564, False: 1.59k]
  |  Branch (326:32): [True: 5, False: 559]
  ------------------
  327|    559|                case 0xF4: if (a > 0x8F) return conv_errc::source_illegal; break;
  ------------------
  |  Branch (327:17): [True: 216, False: 1.94k]
  |  Branch (327:32): [True: 5, False: 211]
  ------------------
  328|    385|                default:   if (a < 0x80) return conv_errc::source_illegal;
  ------------------
  |  Branch (328:17): [True: 385, False: 1.77k]
  |  Branch (328:32): [True: 0, False: 385]
  ------------------
  329|  2.15k|            }
  330|       |
  331|  2.13k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  2.13k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  332|  1.47M|        case 1:
  ------------------
  |  Branch (332:9): [True: 1.46M, False: 2.20k]
  ------------------
  333|  1.47M|            if (static_cast<uint8_t>(*first) >= 0x80 && static_cast<uint8_t>(*first) < 0xC2)
  ------------------
  |  Branch (333:17): [True: 2.16k, False: 1.46M]
  |  Branch (333:57): [True: 27, False: 2.13k]
  ------------------
  334|     27|                return conv_errc::source_illegal;
  335|  1.47M|            break;
  336|  1.47M|        }
  337|  1.47M|        if (static_cast<uint8_t>(*first) > 0xF4) 
  ------------------
  |  Branch (337:13): [True: 3, False: 1.47M]
  ------------------
  338|      3|            return conv_errc::source_illegal;
  339|       |
  340|  1.47M|        return conv_errc();
  341|  1.47M|    }
_ZN8jsoncons14unicode_traits17is_high_surrogateEj:
  206|   527k|    {
  207|   527k|        return (ch >= sur_high_start && ch <= sur_high_end);
  ------------------
  |  Branch (207:17): [True: 308k, False: 218k]
  |  Branch (207:41): [True: 261k, False: 46.8k]
  ------------------
  208|   527k|    }
_ZN8jsoncons14unicode_traits7convertIjNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS2_9enable_ifIXaaaasr10ext_traits9is_char32IT_EE5valuesr10ext_traits18is_back_insertableIT0_EE5valuesr10ext_traits8is_char8INSB_10value_typeEEE5valueENS0_14convert_resultISA_EEE4typeEPKSA_mRSB_NS0_10conv_flagsE:
  967|   527k|    {
  968|   527k|        conv_errc  result = conv_errc();
  969|   527k|        const CharT* last = data + length;
  970|  1.01M|        while (data < last) 
  ------------------
  |  Branch (970:16): [True: 527k, False: 483k]
  ------------------
  971|   527k|        {
  972|   527k|            unsigned short bytes_to_write = 0;
  973|   527k|            const uint32_t byteMask = 0xBF;
  974|   527k|            const uint32_t byteMark = 0x80; 
  975|   527k|            uint32_t ch = *data++;
  976|   527k|            if (flags == conv_flags::strict ) 
  ------------------
  |  Branch (976:17): [True: 527k, False: 0]
  ------------------
  977|   527k|            {
  978|       |                /* UTF-16 surrogate values are illegal in UTF-32 */
  979|   527k|                if (is_surrogate(ch)) 
  ------------------
  |  Branch (979:21): [True: 43.4k, False: 483k]
  ------------------
  980|  43.4k|                {
  981|  43.4k|                    --data; /* return to the illegal value itself */
  982|  43.4k|                    result = conv_errc::illegal_surrogate_value;
  983|  43.4k|                    break;
  984|  43.4k|                }
  985|   527k|            }
  986|       |            /*
  987|       |             * Figure out how many bytes the result will require. Turn any
  988|       |             * illegally large UTF32 things (> Plane 17) into replacement chars.
  989|       |             */
  990|   483k|            if (ch < (uint32_t)0x80) {      bytes_to_write = 1;
  ------------------
  |  Branch (990:17): [True: 1.68k, False: 481k]
  ------------------
  991|   481k|            } else if (ch < (uint32_t)0x800) {     bytes_to_write = 2;
  ------------------
  |  Branch (991:24): [True: 4.85k, False: 477k]
  ------------------
  992|   477k|            } else if (ch < (uint32_t)0x10000) {   bytes_to_write = 3;
  ------------------
  |  Branch (992:24): [True: 215k, False: 261k]
  ------------------
  993|   261k|            } else if (ch <= max_legal_utf32) {  bytes_to_write = 4;
  ------------------
  |  Branch (993:24): [True: 261k, False: 0]
  ------------------
  994|   261k|            } else {                            
  995|      0|                bytes_to_write = 3;
  996|      0|                ch = replacement_char;
  997|      0|                result = conv_errc::source_illegal;
  998|      0|            }
  999|       |
 1000|   483k|            uint8_t byte1 = 0;
 1001|   483k|            uint8_t byte2 = 0;
 1002|   483k|            uint8_t byte3 = 0;
 1003|   483k|            uint8_t byte4 = 0;
 1004|       |
 1005|   483k|            switch (bytes_to_write) {
  ------------------
  |  Branch (1005:21): [True: 483k, False: 0]
  ------------------
 1006|   261k|            case 4:
  ------------------
  |  Branch (1006:13): [True: 261k, False: 221k]
  ------------------
 1007|   261k|                byte4 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1008|   261k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   261k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1009|   477k|            case 3:
  ------------------
  |  Branch (1009:13): [True: 215k, False: 268k]
  ------------------
 1010|   477k|                byte3 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1011|   477k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   477k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1012|   481k|            case 2:
  ------------------
  |  Branch (1012:13): [True: 4.85k, False: 478k]
  ------------------
 1013|   481k|                byte2 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1014|   481k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|   481k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1015|   483k|            case 1:
  ------------------
  |  Branch (1015:13): [True: 1.68k, False: 481k]
  ------------------
 1016|   483k|                byte1 = (uint8_t) (ch | first_byte_mark[bytes_to_write]);
 1017|   483k|                break;
 1018|   483k|            }
 1019|       |
 1020|   483k|            switch (bytes_to_write) 
  ------------------
  |  Branch (1020:21): [True: 483k, False: 0]
  ------------------
 1021|   483k|            {
 1022|   261k|            case 4: 
  ------------------
  |  Branch (1022:13): [True: 261k, False: 221k]
  ------------------
 1023|   261k|                target.push_back(byte1);
 1024|   261k|                target.push_back(byte2);
 1025|   261k|                target.push_back(byte3);
 1026|   261k|                target.push_back(byte4);
 1027|   261k|                break;
 1028|   215k|            case 3: 
  ------------------
  |  Branch (1028:13): [True: 215k, False: 268k]
  ------------------
 1029|   215k|                target.push_back(byte1);
 1030|   215k|                target.push_back(byte2);
 1031|   215k|                target.push_back(byte3);
 1032|   215k|                break;
 1033|  4.85k|            case 2: 
  ------------------
  |  Branch (1033:13): [True: 4.85k, False: 478k]
  ------------------
 1034|  4.85k|                target.push_back(byte1);
 1035|  4.85k|                target.push_back(byte2);
 1036|  4.85k|                break;
 1037|  1.68k|            case 1: 
  ------------------
  |  Branch (1037:13): [True: 1.68k, False: 481k]
  ------------------
 1038|  1.68k|                target.push_back(byte1);
 1039|  1.68k|                break;
 1040|   483k|            }
 1041|   483k|        }
 1042|   527k|        return convert_result<CharT>{data,result} ;
 1043|   527k|    }
_ZN8jsoncons14unicode_traits12is_surrogateEj:
  218|   527k|    {
  219|   527k|        return (ch >= sur_high_start && ch <= sur_low_end);
  ------------------
  |  Branch (219:17): [True: 308k, False: 218k]
  |  Branch (219:41): [True: 43.4k, False: 265k]
  ------------------
  220|   527k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|    297|{
   43|    297|    using char_type = typename Result::value_type;
   44|       |
   45|    297|    char_type buf[255];
   46|    297|    char_type *p = buf;
   47|    297|    const char_type* last = buf+255;
   48|       |
   49|    297|    bool is_negative = value < 0;
   50|       |
   51|    297|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 297]
  ------------------
   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|    297|    else
   60|    297|    {
   61|       |
   62|    297|        do
   63|  4.00k|        {
   64|  4.00k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  4.00k|        }
   66|  4.00k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 3.70k, False: 297]
  |  Branch (66:33): [True: 3.70k, False: 0]
  ------------------
   67|    297|    }
   68|    297|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|    297|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 297]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|    297|    std::size_t count = (p - buf);
   71|    297|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 297]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  4.30k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 4.00k, False: 297]
  ------------------
   77|  4.00k|    {
   78|  4.00k|        result.push_back(*p);
   79|  4.00k|    }
   80|       |
   81|    297|    return count;
   82|    297|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|    229|{
   43|    229|    using char_type = typename Result::value_type;
   44|       |
   45|    229|    char_type buf[255];
   46|    229|    char_type *p = buf;
   47|    229|    const char_type* last = buf+255;
   48|       |
   49|    229|    bool is_negative = value < 0;
   50|       |
   51|    229|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 227, False: 2]
  ------------------
   52|    227|    {
   53|    227|        do
   54|  2.74k|        {
   55|  2.74k|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  2.74k|        }
   57|  2.74k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 2.51k, False: 227]
  |  Branch (57:33): [True: 2.51k, False: 0]
  ------------------
   58|    227|    }
   59|      2|    else
   60|      2|    {
   61|       |
   62|      2|        do
   63|      2|        {
   64|      2|            *p++ = static_cast<char_type>(48 + value % 10);
   65|      2|        }
   66|      2|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 0, False: 2]
  |  Branch (66:33): [True: 0, False: 0]
  ------------------
   67|      2|    }
   68|    229|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   45|    229|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 0, False: 229]
  |  |  ------------------
  |  |   46|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   47|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|    229|    std::size_t count = (p - buf);
   71|    229|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 227, False: 2]
  ------------------
   72|    227|    {
   73|    227|        result.push_back('-');
   74|    227|        ++count;
   75|    227|    }
   76|  2.97k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 2.74k, False: 229]
  ------------------
   77|  2.74k|    {
   78|  2.74k|        result.push_back(*p);
   79|  2.74k|    }
   80|       |
   81|    229|    return count;
   82|    229|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  1.02k|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  1.02k|    {
  489|  1.02k|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  1.02k|        struct lconv *lc = localeconv();
  491|  1.02k|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 1.02k, False: 0]
  |  Branch (491:30): [True: 1.02k, False: 0]
  ------------------
  492|  1.02k|        {
  493|  1.02k|            decimal_point_ = lc->decimal_point[0];
  494|  1.02k|        }
  495|  1.02k|#endif
  496|  1.02k|    }
_ZN8jsoncons12write_doubleclINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEmdRT_:
  503|  1.02k|    {
  504|  1.02k|        std::size_t count = 0;
  505|       |
  506|  1.02k|        char number_buffer[200];
  507|  1.02k|        int length = 0;
  508|       |
  509|  1.02k|        switch (float_format_)
  510|  1.02k|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 1.02k]
  ------------------
  512|      0|            {
  513|      0|                if (precision_ > 0)
  ------------------
  |  Branch (513:21): [True: 0, False: 0]
  ------------------
  514|      0|                {
  515|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*f", precision_, val);
  516|      0|                    if (length < 0)
  ------------------
  |  Branch (516:25): [True: 0, False: 0]
  ------------------
  517|      0|                    {
  518|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  519|      0|                    }
  520|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  521|      0|                }
  522|      0|                else
  523|      0|                {
  524|      0|                    if (!dtoa_fixed(val, decimal_point_, result))
  ------------------
  |  Branch (524:25): [True: 0, False: 0]
  ------------------
  525|      0|                    {
  526|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  527|      0|                    }
  528|      0|                }
  529|      0|            }
  530|      0|            break;
  531|      0|        case float_chars_format::scientific:
  ------------------
  |  Branch (531:9): [True: 0, False: 1.02k]
  ------------------
  532|      0|            {
  533|      0|                if (precision_ > 0)
  ------------------
  |  Branch (533:21): [True: 0, False: 0]
  ------------------
  534|      0|                {
  535|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*e", precision_, val);
  536|      0|                    if (length < 0)
  ------------------
  |  Branch (536:25): [True: 0, False: 0]
  ------------------
  537|      0|                    {
  538|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  539|      0|                    }
  540|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  541|      0|                }
  542|      0|                else
  543|      0|                {
  544|      0|                    if (!dtoa_scientific(val, decimal_point_, result))
  ------------------
  |  Branch (544:25): [True: 0, False: 0]
  ------------------
  545|      0|                    {
  546|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  547|      0|                    }
  548|      0|                }
  549|      0|            }
  550|      0|            break;
  551|  1.02k|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 1.02k, False: 0]
  ------------------
  552|  1.02k|            {
  553|  1.02k|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 1.02k]
  ------------------
  554|      0|                {
  555|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*g", precision_, val);
  556|      0|                    if (length < 0)
  ------------------
  |  Branch (556:25): [True: 0, False: 0]
  ------------------
  557|      0|                    {
  558|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  559|      0|                    }
  560|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  561|      0|                }
  562|  1.02k|                else
  563|  1.02k|                {
  564|  1.02k|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 1.02k]
  ------------------
  565|      0|                    {
  566|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  567|      0|                    }
  568|  1.02k|                }             
  569|  1.02k|                break;
  570|  1.02k|            }
  571|  1.02k|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 1.02k]
  ------------------
  572|      0|                JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  573|      0|                break;
  574|  1.02k|        }
  575|  1.02k|        return count;
  576|  1.02k|    }
_ZN8jsoncons11dump_bufferINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvPKcmcRT_:
  243|    199|{
  244|    199|    const char *sbeg = buffer;
  245|    199|    const char *send = sbeg + length;
  246|       |
  247|    199|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 199, False: 0]
  ------------------
  248|    199|    {
  249|    199|        bool needs_dot = true;
  250|  2.65k|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 2.46k, False: 199]
  ------------------
  251|  2.46k|        {
  252|  2.46k|            switch (*q)
  253|  2.46k|            {
  254|     10|            case '-':
  ------------------
  |  Branch (254:13): [True: 10, False: 2.45k]
  ------------------
  255|    284|            case '0':
  ------------------
  |  Branch (255:13): [True: 274, False: 2.18k]
  ------------------
  256|    462|            case '1':
  ------------------
  |  Branch (256:13): [True: 178, False: 2.28k]
  ------------------
  257|    685|            case '2':
  ------------------
  |  Branch (257:13): [True: 223, False: 2.23k]
  ------------------
  258|    866|            case '3':
  ------------------
  |  Branch (258:13): [True: 181, False: 2.27k]
  ------------------
  259|  1.08k|            case '4':
  ------------------
  |  Branch (259:13): [True: 221, False: 2.23k]
  ------------------
  260|  1.30k|            case '5':
  ------------------
  |  Branch (260:13): [True: 213, False: 2.24k]
  ------------------
  261|  1.50k|            case '6':
  ------------------
  |  Branch (261:13): [True: 201, False: 2.25k]
  ------------------
  262|  1.67k|            case '7':
  ------------------
  |  Branch (262:13): [True: 174, False: 2.28k]
  ------------------
  263|  1.89k|            case '8':
  ------------------
  |  Branch (263:13): [True: 216, False: 2.24k]
  ------------------
  264|  2.15k|            case '9':
  ------------------
  |  Branch (264:13): [True: 268, False: 2.19k]
  ------------------
  265|  2.21k|            case '+':
  ------------------
  |  Branch (265:13): [True: 53, False: 2.40k]
  ------------------
  266|  2.21k|                result.push_back(*q);
  267|  2.21k|                break;
  268|     60|            case 'e':
  ------------------
  |  Branch (268:13): [True: 60, False: 2.40k]
  ------------------
  269|     60|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 2.46k]
  ------------------
  270|     60|                result.push_back('e');
  271|     60|                needs_dot = false;
  272|     60|                break;
  273|    188|            default:
  ------------------
  |  Branch (273:13): [True: 188, False: 2.27k]
  ------------------
  274|    188|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 188, False: 0]
  ------------------
  275|    188|                {
  276|    188|                    needs_dot = false;
  277|    188|                    result.push_back('.');
  278|    188|                }
  279|    188|                break;
  280|  2.46k|            }
  281|  2.46k|        }
  282|    199|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 3, False: 196]
  ------------------
  283|      3|        {
  284|      3|            result.push_back('.');
  285|      3|            result.push_back('0');
  286|      3|        }
  287|    199|    }
  288|    199|}
_ZN8jsoncons15prettify_stringINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvPKcmiiiRT_:
  171|    808|{
  172|    808|    int nb_digits = (int)length;
  173|    808|    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|    808|    int kk = nb_digits + k;
  179|       |
  180|    808|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 173, False: 635]
  |  Branch (180:28): [True: 57, False: 116]
  ------------------
  181|     57|    {
  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|    205|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 148, False: 57]
  ------------------
  186|    148|        {
  187|    148|            result.push_back(buffer[i]);
  188|    148|        }
  189|    325|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 268, False: 57]
  ------------------
  190|    268|        {
  191|    268|            result.push_back('0');
  192|    268|        }
  193|     57|        result.push_back('.');
  194|     57|        result.push_back('0');
  195|     57|    } 
  196|    751|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 339, False: 412]
  |  Branch (196:24): [True: 223, False: 116]
  ------------------
  197|    223|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  1.20k|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 985, False: 223]
  ------------------
  200|    985|        {
  201|    985|            result.push_back(buffer[i]);
  202|    985|        }
  203|    223|        result.push_back('.');
  204|  1.28k|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 1.06k, False: 223]
  ------------------
  205|  1.06k|        {
  206|  1.06k|            result.push_back(buffer[i]);
  207|  1.06k|        }
  208|    223|    } 
  209|    528|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 142, False: 386]
  |  Branch (209:30): [True: 26, False: 116]
  ------------------
  210|     26|    {
  211|     26|        offset = 2 - kk;
  212|       |
  213|     26|        result.push_back('0');
  214|     26|        result.push_back('.');
  215|     40|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 14, False: 26]
  ------------------
  216|     14|            result.push_back('0');
  217|    121|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 95, False: 26]
  ------------------
  218|     95|        {
  219|     95|            result.push_back(buffer[i]);
  220|     95|        }
  221|     26|    } 
  222|    502|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 179, False: 323]
  ------------------
  223|    179|    {
  224|    179|        result.push_back(buffer[0]);
  225|    179|        result.push_back('e');
  226|    179|        fill_exponent(kk - 1, result);
  227|    179|    } 
  228|    323|    else
  229|    323|    {
  230|    323|        result.push_back(buffer[0]);
  231|    323|        result.push_back('.');
  232|  1.69k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 1.37k, False: 323]
  ------------------
  233|  1.37k|        {
  234|  1.37k|            result.push_back(buffer[i]);
  235|  1.37k|        }
  236|    323|        result.push_back('e');
  237|    323|        fill_exponent(kk - 1, result);
  238|    323|    }
  239|    808|}
_ZN8jsoncons13fill_exponentINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEviRT_:
  136|    502|{
  137|    502|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 386, False: 116]
  ------------------
  138|    386|    {
  139|    386|        result.push_back('-');
  140|    386|        K = -K;
  141|    386|    }
  142|    116|    else
  143|    116|    {
  144|    116|        result.push_back('+'); // compatibility with sprintf
  145|    116|    }
  146|       |
  147|    502|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 8, False: 494]
  ------------------
  148|      8|    {
  149|      8|        result.push_back('0'); // compatibility with sprintf
  150|      8|        result.push_back((char)('0' + K));
  151|      8|    }
  152|    494|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 90, False: 404]
  ------------------
  153|     90|    {
  154|     90|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|     90|        result.push_back((char)('0' + K));
  156|     90|    }
  157|    404|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 404, False: 0]
  ------------------
  158|    404|    {
  159|    404|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|    404|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|    404|        result.push_back((char)('0' + K));
  162|    404|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|    502|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_:
  475|  1.02k|{
  476|  1.02k|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  1.02k|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_NS1_17integral_constantIbLb1EEE:
  366|  1.02k|{
  367|  1.02k|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 16, False: 1.00k]
  ------------------
  368|     16|    {
  369|     16|        result.push_back('0');
  370|     16|        result.push_back('.');
  371|     16|        result.push_back('0');
  372|     16|        return true;
  373|     16|    }
  374|       |
  375|  1.00k|    int length = 0;
  376|  1.00k|    int k;
  377|       |
  378|  1.00k|    char buffer[100];
  379|       |
  380|  1.00k|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 20, False: 987]
  ------------------
  381|  1.00k|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 808, False: 199]
  ------------------
  382|    808|    {
  383|    808|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 17, False: 791]
  ------------------
  384|     17|        {
  385|     17|            result.push_back('-');
  386|     17|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|    808|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|    808|        return true;
  391|    808|    }
  392|    199|    else
  393|    199|    {
  394|    199|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|    199|    }
  396|  1.00k|}
_ZN8jsoncons12dtoa_generalINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEbdcRT_NS1_17integral_constantIbLb0EEE:
  329|    199|{
  330|    199|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 199]
  ------------------
  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|    199|    char buffer[100];
  339|    199|    int precision = std::numeric_limits<double>::digits10;
  340|    199|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|    199|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 199]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|    199|    double x{0};
  346|    199|    auto res = decstr_to_double(buffer, length, x);
  347|    199|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 199]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|    199|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 58, False: 141]
  ------------------
  352|     58|    {
  353|     58|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|     58|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|     58|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 58]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|     58|    }
  360|    199|    dump_buffer(buffer, length, decimal_point, result);
  361|    199|    return true;
  362|    199|}

