LLVMFuzzerTestOneInput:
    7|  3.66k|{
    8|  3.66k|    std::string s(reinterpret_cast<const char*>(data), size);
    9|  3.66k|    std::istringstream is(s);
   10|       |
   11|  3.66k|    default_json_visitor visitor;
   12|       |
   13|  3.66k|    json_stream_reader reader(is, visitor);
   14|  3.66k|    std::error_code ec;
   15|  3.66k|    reader.read(ec);
   16|       |
   17|  3.66k|    return 0;
   18|  3.66k|}

_ZN8jsoncons15make_error_codeENS_9json_errcE:
  147|  2.97k|    {
  148|  2.97k|        return std::error_code(static_cast<int>(result),json_error_category());
  149|  2.97k|    }
_ZN8jsoncons19json_error_categoryEv:
  141|  2.97k|    {
  142|  2.97k|      static json_error_category_impl instance;
  143|  2.97k|      return instance;
  144|  2.97k|    }

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

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

_ZN8jsoncons17basic_json_readerIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_EC2IRNS2_19basic_istringstreamIcNS2_11char_traitsIcEES4_EEEEOT_RNS_18basic_json_visitorIcEERKS4_:
  207|  3.66k|            : basic_json_reader(std::forward<Sourceable>(source),
  208|  3.66k|                                visitor,
  209|  3.66k|                                basic_json_decode_options<CharT>(),
  210|  3.66k|                                temp_alloc)
  211|  3.66k|        {
  212|  3.66k|        }
_ZN8jsoncons17basic_json_readerIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_EC2IRNS2_19basic_istringstreamIcNS2_11char_traitsIcEES4_EEEEOT_RNS_18basic_json_visitorIcEERKNS_25basic_json_decode_optionsIcEERKS4_:
  219|  3.66k|        : source_(std::forward<Sourceable>(source)),
  220|  3.66k|          visitor_(visitor),
  221|  3.66k|          parser_(options, temp_alloc)
  222|  3.66k|        {
  223|  3.66k|        }
_ZN8jsoncons17basic_json_readerIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E4readERNS2_10error_codeE:
  397|  3.66k|        {
  398|  3.66k|            read_next(ec);
  399|  3.66k|            if (!ec)
  ------------------
  |  Branch (399:17): [True: 761, False: 2.90k]
  ------------------
  400|    761|            {
  401|    761|                check_done(ec);
  402|    761|            }
  403|  3.66k|        }
_ZN8jsoncons17basic_json_readerIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E9read_nextERNS2_10error_codeE:
  275|  3.66k|        {
  276|  3.66k|            if (source_.is_error())
  ------------------
  |  Branch (276:17): [True: 0, False: 3.66k]
  ------------------
  277|      0|            {
  278|      0|                ec = json_errc::source_error;
  279|      0|                return;
  280|      0|            }        
  281|  3.66k|            parser_.reset();
  282|  11.6k|            while (!parser_.stopped())
  ------------------
  |  Branch (282:20): [True: 10.8k, False: 739]
  ------------------
  283|  10.8k|            {
  284|  10.8k|                if (parser_.source_exhausted())
  ------------------
  |  Branch (284:21): [True: 10.8k, False: 0]
  ------------------
  285|  10.8k|                {
  286|  10.8k|                    auto s = source_.read_chunk(ec);
  287|  10.8k|                    if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   79|  10.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 21, False: 10.8k]
  |  |  ------------------
  ------------------
  288|  10.8k|                    if (s.size() > 0)
  ------------------
  |  Branch (288:25): [True: 7.88k, False: 2.97k]
  ------------------
  289|  7.88k|                    {
  290|  7.88k|                        parser_.update(s.data(),s.size());
  291|  7.88k|                    }
  292|  10.8k|                }
  293|  10.8k|                bool eof = parser_.source_exhausted();
  294|  10.8k|                parser_.parse_some(visitor_, ec);
  295|  10.8k|                if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   79|  10.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.34k, False: 8.50k]
  |  |  ------------------
  ------------------
  296|  8.50k|                if (eof)
  ------------------
  |  Branch (296:21): [True: 1.62k, False: 6.88k]
  ------------------
  297|  1.62k|                {
  298|  1.62k|                    if (parser_.enter())
  ------------------
  |  Branch (298:25): [True: 22, False: 1.60k]
  ------------------
  299|     22|                    {
  300|     22|                        break;
  301|     22|                    }
  302|  1.60k|                    else if (!parser_.accept())
  ------------------
  |  Branch (302:30): [True: 535, False: 1.06k]
  ------------------
  303|    535|                    {
  304|    535|                        ec = json_errc::unexpected_eof;
  305|    535|                        return;
  306|    535|                    }
  307|  1.62k|                }
  308|  8.50k|            }
  309|       |            
  310|    761|            parser_.skip_whitespace();
  311|  1.58k|            while (!source_.eof())
  ------------------
  |  Branch (311:20): [True: 851, False: 733]
  ------------------
  312|    851|            {
  313|    851|                parser_.skip_whitespace();
  314|    851|                if (parser_.source_exhausted())
  ------------------
  |  Branch (314:21): [True: 823, False: 28]
  ------------------
  315|    823|                {
  316|    823|                    auto s = source_.read_chunk(ec);
  317|    823|                    if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   79|    823|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 823]
  |  |  ------------------
  ------------------
  318|    823|                    if (s.size() > 0)
  ------------------
  |  Branch (318:25): [True: 796, False: 27]
  ------------------
  319|    796|                    {
  320|    796|                        parser_.update(s.data(),s.size());
  321|    796|                    }
  322|    823|                }
  323|     28|                else
  324|     28|                {
  325|     28|                    break;
  326|     28|                }
  327|    851|            }
  328|    761|        }
_ZN8jsoncons17basic_json_readerIcNS_13stream_sourceIcNSt3__19allocatorIcEEEES4_E10check_doneERNS2_10error_codeE:
  351|    761|        {
  352|    761|            if (source_.is_error())
  ------------------
  |  Branch (352:17): [True: 0, False: 761]
  ------------------
  353|      0|            {
  354|      0|                ec = json_errc::source_error;
  355|      0|                return;
  356|      0|            }   
  357|    761|            if (source_.eof())
  ------------------
  |  Branch (357:17): [True: 733, False: 28]
  ------------------
  358|    733|            {
  359|    733|                parser_.check_done(ec);
  360|    733|                if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   79|    733|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 50, False: 683]
  |  |  ------------------
  ------------------
  361|    733|            }
  362|     28|            else
  363|     28|            {
  364|     28|                do
  365|     28|                {
  366|     28|                    if (parser_.source_exhausted())
  ------------------
  |  Branch (366:25): [True: 0, False: 28]
  ------------------
  367|      0|                    {
  368|      0|                        auto s = source_.read_chunk(ec);
  369|      0|                        if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  370|      0|                        if (s.size() > 0)
  ------------------
  |  Branch (370:29): [True: 0, False: 0]
  ------------------
  371|      0|                        {
  372|      0|                            parser_.update(s.data(),s.size());
  373|      0|                        }
  374|      0|                    }
  375|     28|                    if (!parser_.source_exhausted())
  ------------------
  |  Branch (375:25): [True: 28, False: 0]
  ------------------
  376|     28|                    {
  377|     28|                        parser_.check_done(ec);
  378|     28|                        if (JSONCONS_UNLIKELY(ec)) return;
  ------------------
  |  |   79|     28|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 28, False: 0]
  |  |  ------------------
  ------------------
  379|     28|                    }
  380|     28|                }
  381|     28|                while (!eof());
  ------------------
  |  Branch (381:24): [True: 0, False: 0]
  ------------------
  382|     28|            }
  383|    761|        }

_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  7.32k|        basic_default_json_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  7.32k|        basic_json_visitor() = default;
_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  7.32k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons26basic_default_json_visitorIcE15visit_end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  833|  3.81k|        {
  834|  3.81k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  3.81k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  835|  3.81k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  858|   997k|        {
  859|   997k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   997k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  860|   997k|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  863|  94.2k|        {
  864|  94.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  94.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  865|  94.2k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  873|   859k|        {
  874|   859k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   859k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  875|   859k|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_flushEv:
  814|    739|        {
  815|    739|        }
_ZN8jsoncons26basic_default_json_visitorIcE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  818|  4.11k|        {
  819|  4.11k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  4.11k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  820|  4.11k|        }
_ZN8jsoncons26basic_default_json_visitorIcE16visit_end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  823|  2.50k|        {
  824|  2.50k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.50k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  825|  2.50k|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  828|  95.4k|        {
  829|  95.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  95.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  830|  95.4k|        }
_ZN8jsoncons26basic_default_json_visitorIcE9visit_keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  838|  2.70k|        {
  839|  2.70k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.70k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|  2.70k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  843|   398k|        {
  844|   398k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   398k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  845|   398k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  878|   536k|        {
  879|   536k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   536k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  880|   536k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_stringERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  848|  65.0k|        {
  849|  65.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  65.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  850|  65.0k|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|   997k|        {
  415|   997k|            visit_uint64(value, tag, context, ec);
  416|   997k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   997k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|   997k|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|  3.81k|        {
  352|  3.81k|            visit_end_array(context, ec);
  353|  3.81k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  3.81k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|  3.81k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|  94.2k|        {
  424|  94.2k|            visit_int64(value, tag, context, ec);
  425|  94.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  94.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|  94.2k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|   859k|        {
  442|   859k|            visit_double(value, tag, context, ec);
  443|   859k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   859k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|   859k|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|    739|        {
  109|    739|            visit_flush();
  110|    739|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|  65.0k|        {
  384|  65.0k|            visit_string(value, tag, context, ec);
  385|  65.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  65.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  65.0k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|  4.11k|        {
  319|  4.11k|            visit_begin_object(tag, context, ec);
  320|  4.11k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  4.11k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|  4.11k|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|  95.4k|        {
  340|  95.4k|            visit_begin_array(tag, context, ec);
  341|  95.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  95.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|  95.4k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|  2.70k|        {
  358|  2.70k|            visit_key(name, context, ec);
  359|  2.70k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.70k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|  2.70k|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  2.50k|        {
  334|  2.50k|            visit_end_object(context, ec);
  335|  2.50k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.50k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  2.50k|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|   536k|        {
  375|   536k|            visit_bool(value, tag, context, ec);
  376|   536k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   536k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|   536k|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|   398k|        {
  366|   398k|            visit_null(tag, context, ec);
  367|   398k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   398k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|   398k|        }

_ZN8jsoncons6nonstd4spanIKcLm18446744073709551615EEC2Ev:
   99|  2.96k|    {
  100|  2.96k|    }
_ZN8jsoncons6nonstd4spanIKcLm18446744073709551615EEC2EPS2_m:
  102|  17.4k|        : data_(data), size_(size)
  103|  17.4k|    {
  104|  17.4k|    }
_ZNK8jsoncons6nonstd4spanIKcLm18446744073709551615EE4sizeEv:
  159|  29.1k|    {
  160|  29.1k|        return size_;
  161|  29.1k|    }
_ZNK8jsoncons6nonstd4spanIKcLm18446744073709551615EE4dataEv:
  154|  17.4k|    {
  155|  17.4k|        return data_;
  156|  17.4k|    }

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

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

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

_ZN8jsoncons10ext_traits14integer_limitsIlvE6lowestEv:
  106|  98.8k|        {
  107|  98.8k|            return std::numeric_limits<T>::lowest();
  108|  98.8k|        }

_ZN8jsoncons14dec_to_integerIlcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  350|   110k|{
  351|   110k|    if (length == 0)
  ------------------
  |  Branch (351:9): [True: 0, False: 110k]
  ------------------
  352|      0|    {
  353|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  354|      0|    }
  355|       |
  356|   110k|    bool sign = *s == '-';
  357|   110k|    s += sign;
  358|   110k|    length -= sign;
  359|       |
  360|   110k|    using U = typename ext_traits::make_unsigned<T>::type;
  361|       |
  362|   110k|    U num;
  363|   110k|    auto ru = dec_to_integer(s, length, num);
  364|   110k|    if (ru.ec != std::errc{})
  ------------------
  |  Branch (364:9): [True: 11.6k, False: 98.8k]
  ------------------
  365|  11.6k|    {
  366|  11.6k|        return to_number_result<CharT>(ru.ptr, ru.ec);
  367|  11.6k|    }
  368|  98.8k|    if (sign)
  ------------------
  |  Branch (368:9): [True: 98.8k, False: 0]
  ------------------
  369|  98.8k|    {
  370|  98.8k|        if (num > static_cast<U>(-((ext_traits::integer_limits<T>::lowest)()+T(1))) + U(1))
  ------------------
  |  Branch (370:13): [True: 4.59k, False: 94.2k]
  ------------------
  371|  4.59k|        {
  372|  4.59k|            return to_number_result<CharT>(ru.ptr, std::errc::result_out_of_range);
  373|  4.59k|        }
  374|  94.2k|        else
  375|  94.2k|        {
  376|  94.2k|            value = static_cast<T>(U(0) - num);
  377|  94.2k|            return to_number_result<CharT>(ru.ptr, std::errc{});
  378|  94.2k|        }
  379|  98.8k|    }
  380|      0|    else
  381|      0|    {
  382|      0|        if (num > static_cast<U>((ext_traits::integer_limits<T>::max)()))
  ------------------
  |  Branch (382:13): [True: 0, False: 0]
  ------------------
  383|      0|        {
  384|      0|            return to_number_result<CharT>(ru.ptr, std::errc::result_out_of_range);
  385|      0|        }
  386|      0|        else
  387|      0|        {
  388|      0|            value = static_cast<T>(num);
  389|      0|            return to_number_result<CharT>(ru.ptr, std::errc{});
  390|      0|        }
  391|      0|    }
  392|  98.8k|}
_ZN8jsoncons16to_number_resultIcEC2EPKcNSt3__14errcE:
  164|  1.26M|        : ptr(ptr_), ec(ec_)
  165|  1.26M|    {
  166|  1.26M|    }
_ZN8jsoncons14dec_to_integerImcEENSt3__19enable_ifIXaasr10ext_traits14integer_limitsIT_EE14is_specializedntsr10ext_traits14integer_limitsIS3_EE9is_signedENS_16to_number_resultIT0_EEE4typeEPKS5_mRS3_:
  288|  1.11M|{
  289|  1.11M|    if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  1.11M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.11M]
  |  |  ------------------
  ------------------
  290|      0|    {
  291|      0|        return to_number_result<CharT>(s, std::errc::invalid_argument);
  292|      0|    }
  293|       |
  294|  1.11M|    static constexpr T max_value = (ext_traits::integer_limits<T>::max)();
  295|  1.11M|    static constexpr T max_value_div_10 = max_value / 10;
  296|       |
  297|  1.11M|    T num = 0;
  298|  1.11M|    const CharT* cur = s;
  299|  1.11M|    const CharT* last = s + length;
  300|  1.11M|    static constexpr std::size_t digits10 = static_cast<std::size_t>(ext_traits::integer_limits<T>::digits10);
  301|  1.11M|    const std::size_t n = (std::min)(digits10, length);
  302|  1.11M|    const CharT* stop = s + n;
  303|       |     
  304|  3.07M|    while (cur < stop)
  ------------------
  |  Branch (304:12): [True: 1.96M, False: 1.11M]
  ------------------
  305|  1.96M|    {
  306|  1.96M|        uint8_t d;
  307|  1.96M|        if (JSONCONS_LIKELY((d = static_cast<uint8_t>(*cur - '0')) <= 9) )
  ------------------
  |  |   78|  1.96M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 1.96M, False: 0]
  |  |  ------------------
  ------------------
  308|  1.96M|        {
  309|  1.96M|            num = static_cast<T>(d) + num*10;
  310|  1.96M|        }
  311|      0|        else
  312|      0|        {
  313|      0|            return to_number_result<CharT>(cur, std::errc::invalid_argument);
  314|      0|        }
  315|  1.96M|        ++cur;
  316|  1.96M|    }
  317|  1.11M|    if (cur == last)
  ------------------
  |  Branch (317:9): [True: 1.09M, False: 24.7k]
  ------------------
  318|  1.09M|    {
  319|  1.09M|        value = num;
  320|  1.09M|        return to_number_result<CharT>(cur, std::errc{});
  321|  1.09M|    }
  322|  24.7k|    if (cur+1 != last)
  ------------------
  |  Branch (322:9): [True: 10.9k, False: 13.7k]
  ------------------
  323|  10.9k|    {
  324|  10.9k|        return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  325|  10.9k|    }
  326|  13.7k|    if (is_char_digit(*cur))
  ------------------
  |  Branch (326:9): [True: 13.7k, False: 0]
  ------------------
  327|  13.7k|    {
  328|  13.7k|        if (num > max_value_div_10)
  ------------------
  |  Branch (328:13): [True: 6.92k, False: 6.86k]
  ------------------
  329|  6.92k|        {
  330|  6.92k|            return to_number_result<CharT>(cur, std::errc::result_out_of_range);
  331|  6.92k|        }
  332|  6.86k|        uint8_t d = static_cast<uint8_t>(*cur - '0');
  333|  6.86k|        num = num*10;
  334|  6.86k|        if (num > max_value - d)
  ------------------
  |  Branch (334:13): [True: 2.28k, False: 4.58k]
  ------------------
  335|  2.28k|        {
  336|  2.28k|            return to_number_result<CharT>(s, std::errc::result_out_of_range);
  337|  2.28k|        }
  338|  4.58k|        num += d;
  339|  4.58k|        ++cur;
  340|  4.58k|        value = num;
  341|  4.58k|        return to_number_result<CharT>(cur, std::errc{});
  342|  6.86k|    }
  343|       |    
  344|      0|    return to_number_result<CharT>(cur, std::errc::invalid_argument);
  345|  13.7k|}
_ZN8jsoncons13is_char_digitEc:
   83|  27.7M|constexpr bool is_char_digit(char d) {
   84|  27.7M|    return is_type(static_cast<uint8_t>(d), (uint8_t)(digit_type_zero | digit_type_nonzero));
   85|  27.7M|}
_ZN8jsoncons7is_typeEhh:
   68|  29.8M|constexpr bool is_type(uint8_t d, uint8_t type) {
   69|  29.8M|    return (digi_table[d] & type) != 0;
   70|  29.8M|}
_ZNK8jsoncons16to_number_resultIcEcvbEv:
  173|  2.01M|    {
  174|  2.01M|        return ec == std::errc{};
  175|  2.01M|    }
_ZN8jsoncons16decstr_to_doubleEPKcmRd:
  889|   898k|{
  890|   898k|    const char* cur = s+length;
  891|   898k|    char *end = nullptr;
  892|   898k|    val = strtod(s, &end);
  893|   898k|    const char* str_end = end;
  894|   898k|    if (JSONCONS_UNLIKELY(end < cur))
  ------------------
  |  |   79|   898k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 898k]
  |  |  ------------------
  ------------------
  895|      0|    {
  896|      0|        if (*end == '.')
  ------------------
  |  Branch (896:13): [True: 0, False: 0]
  ------------------
  897|      0|        {
  898|      0|            std::string buf{s, length};
  899|      0|            char* dot_ptr = &buf[0] + (cur - end - 1);
  900|      0|            *dot_ptr = ',';
  901|      0|            end = nullptr;
  902|      0|            val = strtod(buf.c_str(), &end);
  903|      0|            str_end = s + (end - &buf[0]);
  904|      0|        }
  905|      0|        if (JSONCONS_UNLIKELY(str_end != cur))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  906|      0|        {
  907|      0|            return to_number_result<char>{str_end,std::errc::invalid_argument};
  908|      0|        }
  909|      0|    }
  910|   898k|    if (JSONCONS_UNLIKELY(val <= -HUGE_VAL || val >= HUGE_VAL))
  ------------------
  |  |   79|  1.77M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 38.7k, False: 859k]
  |  |  |  Branch (79:50): [True: 26.6k, False: 871k]
  |  |  |  Branch (79:50): [True: 12.1k, False: 859k]
  |  |  ------------------
  ------------------
  911|  38.7k|    {
  912|  38.7k|        return to_number_result<char>{str_end, std::errc::result_out_of_range};
  913|  38.7k|    }
  914|   859k|    return to_number_result<char>{str_end};
  915|   898k|}
_ZN8jsoncons16to_number_resultIcEC2EPKc:
  160|   859k|        : ptr(ptr_), ec(std::errc{})
  161|   859k|    {
  162|   859k|    }
_ZN8jsoncons21is_char_nonzero_digitEc:
   78|   137k|constexpr bool is_char_nonzero_digit(char d) {
   79|   137k|    return is_type(static_cast<uint8_t>(d), (uint8_t)digit_type_nonzero);
   80|   137k|}
_ZN8jsoncons11is_char_expEc:
   88|  2.01M|constexpr bool is_char_exp(char d) {
   89|  2.01M|    return is_type(static_cast<uint8_t>(d), (uint8_t)digit_type_exp);
   90|  2.01M|}

_ZN8jsoncons14unicode_traits20detect_json_encodingIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
  109|  3.66k|    {
  110|  3.66k|        detect_encoding_result<CharT> r = detect_encoding_from_bom(data,length);
  111|  3.66k|        if (r.encoding != encoding_kind::undetected)
  ------------------
  |  Branch (111:13): [True: 33, False: 3.62k]
  ------------------
  112|     33|        {
  113|     33|            return r;
  114|     33|        }
  115|  3.62k|        else if (length < 4)
  ------------------
  |  Branch (115:18): [True: 470, False: 3.15k]
  ------------------
  116|    470|        {
  117|    470|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  118|    470|        }
  119|  3.15k|        else if (*data == 0 && *(data+1) == 0 && *(data+2) == 0)
  ------------------
  |  Branch (119:18): [True: 26, False: 3.13k]
  |  Branch (119:32): [True: 21, False: 5]
  |  Branch (119:50): [True: 3, False: 18]
  ------------------
  120|      3|        {
  121|      3|            return detect_encoding_result<CharT>{data,encoding_kind::utf32be};
  122|      3|        }
  123|  3.15k|        else if (*data == 0 && *(data+2) == 0)
  ------------------
  |  Branch (123:18): [True: 23, False: 3.13k]
  |  Branch (123:32): [True: 1, False: 22]
  ------------------
  124|      1|        {
  125|      1|            return detect_encoding_result<CharT>{data,encoding_kind::utf16be};
  126|      1|        }
  127|  3.15k|        else if (*(data+1) == 0 && *(data+2) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (127:18): [True: 31, False: 3.12k]
  |  Branch (127:36): [True: 11, False: 20]
  |  Branch (127:54): [True: 1, False: 10]
  ------------------
  128|      1|        {
  129|      1|            return detect_encoding_result<CharT>{data,encoding_kind::utf32le};
  130|      1|        }
  131|  3.15k|        else if (*(data+1) == 0 && *(data+3) == 0)
  ------------------
  |  Branch (131:18): [True: 30, False: 3.12k]
  |  Branch (131:36): [True: 4, False: 26]
  ------------------
  132|      4|        {
  133|      4|            return detect_encoding_result<CharT>{data,encoding_kind::utf16le};
  134|      4|        }
  135|  3.15k|        else
  136|  3.15k|        {
  137|  3.15k|            return detect_encoding_result<CharT>{data,encoding_kind::utf8};
  138|  3.15k|        }
  139|  3.66k|    }
_ZN8jsoncons14unicode_traits24detect_encoding_from_bomIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_22detect_encoding_resultIS4_EEE4typeEPKS4_m:
   66|  3.66k|    {
   67|  3.66k|        static constexpr uint8_t bom_utf8[] = {0xef,0xbb,0xbf}; 
   68|  3.66k|        static constexpr uint8_t bom_utf16le[] = {0xff,0xfe}; 
   69|  3.66k|        static constexpr uint8_t bom_utf16be[] = {0xfe,0xff}; 
   70|  3.66k|        static constexpr uint8_t bom_utf32le[] = {0xff,0xfe,0x00,0x00}; 
   71|  3.66k|        static constexpr uint8_t bom_utf32be[] = {0x00,0x00,0xfe,0xff}; 
   72|       |
   73|  3.66k|        if (length >= 4 && !memcmp(data,bom_utf32le,4))
  ------------------
  |  Branch (73:13): [True: 3.18k, False: 473]
  |  Branch (73:28): [True: 1, False: 3.18k]
  ------------------
   74|      1|        {
   75|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32le};
   76|      1|        }
   77|  3.66k|        else if (length >= 4 && !memcmp(data,bom_utf32be,4))
  ------------------
  |  Branch (77:18): [True: 3.18k, False: 473]
  |  Branch (77:33): [True: 1, False: 3.18k]
  ------------------
   78|      1|        {
   79|      1|            return detect_encoding_result<CharT>{data+4,encoding_kind::utf32be};
   80|      1|        }
   81|  3.66k|        else if (length >= 2 && !memcmp(data,bom_utf16le,2))
  ------------------
  |  Branch (81:18): [True: 3.60k, False: 54]
  |  Branch (81:33): [True: 9, False: 3.59k]
  ------------------
   82|      9|        {
   83|      9|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16le};
   84|      9|        }
   85|  3.65k|        else if (length >= 2 && !memcmp(data,bom_utf16be,2))
  ------------------
  |  Branch (85:18): [True: 3.59k, False: 54]
  |  Branch (85:33): [True: 1, False: 3.59k]
  ------------------
   86|      1|        {
   87|      1|            return detect_encoding_result<CharT>{data+2,encoding_kind::utf16be};
   88|      1|        }
   89|  3.65k|        else if (length >= 3 && !memcmp(data,bom_utf8,3))
  ------------------
  |  Branch (89:18): [True: 3.34k, False: 306]
  |  Branch (89:33): [True: 21, False: 3.32k]
  ------------------
   90|     21|        {
   91|     21|            return detect_encoding_result<CharT>{data+3,encoding_kind::utf8};
   92|     21|        }
   93|  3.62k|        else
   94|  3.62k|        {
   95|  3.62k|            return detect_encoding_result<CharT>{data,encoding_kind::undetected};
   96|  3.62k|        }
   97|  3.66k|    }
_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|  4.47k|    {
 1148|  4.47k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|  4.47k|        const uint8_t* end = it + length;
 1150|       |
 1151|  4.47k|        unicode_errc  result{};
 1152|   248k|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 244k, False: 4.26k]
  ------------------
 1153|   244k|        {
 1154|   244k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 243k, False: 810]
  ------------------
 1155|   243k|            {
 1156|  1.68M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  342|   486k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (342:32): [True: 241k, False: 1.62k]
  |  |  |  Branch (342:34): [True: 241k, False: 283]
  |  |  |  Branch (342:36): [True: 241k, False: 235]
  |  |  |  Branch (342:38): [True: 240k, False: 343]
  |  |  |  Branch (342:40): [True: 240k, False: 433]
  |  |  |  Branch (342:42): [True: 240k, False: 393]
  |  |  |  Branch (342:44): [True: 239k, False: 270]
  |  |  |  Branch (342:46): [True: 239k, False: 317]
  |  |  ------------------
  ------------------
 1157|   239k|                continue;
 1158|  1.68M|            }
 1159|  4.71k|    non_ascii:
 1160|  4.71k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  4.71k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 39, False: 4.67k]
  ------------------
 1162|     39|            {
 1163|     39|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     39|            }
 1165|  4.67k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 165, False: 4.50k]
  ------------------
 1166|    165|            {
 1167|    165|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    165|            }
 1169|  4.50k|            it += len;
 1170|  4.50k|        }
 1171|  4.26k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|  4.47k|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  4.67k|    {
  306|  4.67k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  4.67k|        const uint8_t* end = it+length;
  308|       |
  309|  4.67k|        uint8_t byte;
  310|  4.67k|        switch (length) {
  311|     34|        default:
  ------------------
  |  Branch (311:9): [True: 34, False: 4.63k]
  ------------------
  312|     34|            return unicode_errc::over_long_utf8_sequence;
  313|    665|        case 4:
  ------------------
  |  Branch (313:9): [True: 665, False: 4.00k]
  ------------------
  314|    665|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 9, False: 656]
  ------------------
  315|      9|                return unicode_errc::bad_continuation_byte;
  316|    656|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|    656|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  1.82k|        case 3:
  ------------------
  |  Branch (317:9): [True: 1.17k, False: 3.50k]
  ------------------
  318|  1.82k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 13, False: 1.81k]
  ------------------
  319|     13|                return unicode_errc::bad_continuation_byte;
  320|  1.81k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|  1.81k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  3.94k|        case 2:
  ------------------
  |  Branch (321:9): [True: 2.12k, False: 2.54k]
  ------------------
  322|  3.94k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 41, False: 3.90k]
  ------------------
  323|     41|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  3.90k|            switch (*it) 
  326|  3.90k|            {
  327|       |                // no fall-through in this inner switch
  328|    502|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 502, False: 3.39k]
  |  Branch (328:32): [True: 7, False: 495]
  ------------------
  329|    495|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 253, False: 3.64k]
  |  Branch (329:32): [True: 1, False: 252]
  ------------------
  330|    252|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 203, False: 3.69k]
  |  Branch (330:32): [True: 7, False: 196]
  ------------------
  331|    231|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 231, False: 3.66k]
  |  Branch (331:32): [True: 5, False: 226]
  ------------------
  332|  2.71k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 2.71k, False: 1.18k]
  |  Branch (332:32): [True: 0, False: 2.71k]
  ------------------
  333|  3.90k|            }
  334|       |
  335|  3.88k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|  3.88k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  4.55k|        case 1:
  ------------------
  |  Branch (336:9): [True: 676, False: 3.99k]
  ------------------
  337|  4.55k|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 3.92k, False: 631]
  |  Branch (337:32): [True: 47, False: 3.87k]
  ------------------
  338|     47|                return unicode_errc::source_illegal;
  339|  4.50k|            break;
  340|  4.67k|        }
  341|  4.50k|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 1, False: 4.50k]
  ------------------
  342|      1|            return unicode_errc::source_illegal;
  343|       |
  344|  4.50k|        return unicode_errc();
  345|  4.50k|    }
_ZN8jsoncons14unicode_traits17is_high_surrogateEj:
  209|   527k|    {
  210|   527k|        return (ch >= sur_high_start && ch <= sur_high_end);
  ------------------
  |  Branch (210:17): [True: 171k, False: 355k]
  |  Branch (210:41): [True: 169k, False: 1.56k]
  ------------------
  211|   527k|    }
_ZN8jsoncons14unicode_traits7convertIjNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS2_9enable_ifIXaaaasr10ext_traits9is_char32IT_EE5valuesr10ext_traits18is_back_insertableIT0_EE5valuesr10ext_traits8is_char8INSB_10value_typeEEE5valueENS0_14unicode_resultISA_EEE4typeEPKSA_mRSB_NS0_11strict_flagE:
  980|   527k|    {
  981|   527k|        unicode_errc  result{};
  982|   527k|        const CharT* last = data + length;
  983|  1.05M|        while (data < last) 
  ------------------
  |  Branch (983:16): [True: 527k, False: 526k]
  ------------------
  984|   527k|        {
  985|   527k|            uint16_t bytes_to_write = 0;
  986|   527k|            static constexpr uint32_t byteMask = 0xBF;
  987|   527k|            static constexpr uint32_t byteMark = 0x80; 
  988|   527k|            uint32_t ch = *data++;
  989|   527k|            if (flags == strict_flag::strict ) 
  ------------------
  |  Branch (989:17): [True: 527k, False: 0]
  ------------------
  990|   527k|            {
  991|       |                /* UTF-16 surrogate values are illegal in UTF-32 */
  992|   527k|                if (is_surrogate(ch)) 
  ------------------
  |  Branch (992:21): [True: 341, False: 526k]
  ------------------
  993|    341|                {
  994|    341|                    --data; /* return to the illegal value itself */
  995|    341|                    result = unicode_errc::illegal_surrogate_value;
  996|    341|                    break;
  997|    341|                }
  998|   527k|            }
  999|       |            /*
 1000|       |             * Figure out how many bytes the result will require. Turn any
 1001|       |             * illegally large UTF32 things (> Plane 17) into replacement chars.
 1002|       |             */
 1003|   526k|            if (ch < (uint32_t)0x80) {      bytes_to_write = 1;
  ------------------
  |  Branch (1003:17): [True: 3.06k, False: 523k]
  ------------------
 1004|   523k|            } else if (ch < (uint32_t)0x800) {     bytes_to_write = 2;
  ------------------
  |  Branch (1004:24): [True: 281, False: 523k]
  ------------------
 1005|   523k|            } else if (ch < (uint32_t)0x10000) {   bytes_to_write = 3;
  ------------------
  |  Branch (1005:24): [True: 353k, False: 169k]
  ------------------
 1006|   353k|            } else if (ch <= max_legal_utf32) {  bytes_to_write = 4;
  ------------------
  |  Branch (1006:24): [True: 169k, False: 0]
  ------------------
 1007|   169k|            } else {                            
 1008|      0|                bytes_to_write = 3;
 1009|      0|                ch = replacement_char;
 1010|      0|                result = unicode_errc::source_illegal;
 1011|      0|            }
 1012|       |
 1013|   526k|            uint8_t byte1 = 0;
 1014|   526k|            uint8_t byte2 = 0;
 1015|   526k|            uint8_t byte3 = 0;
 1016|   526k|            uint8_t byte4 = 0;
 1017|       |
 1018|   526k|            switch (bytes_to_write) {
  ------------------
  |  Branch (1018:21): [True: 526k, False: 0]
  ------------------
 1019|   169k|            case 4:
  ------------------
  |  Branch (1019:13): [True: 169k, False: 357k]
  ------------------
 1020|   169k|                byte4 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1021|   169k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|   169k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1022|   523k|            case 3:
  ------------------
  |  Branch (1022:13): [True: 353k, False: 173k]
  ------------------
 1023|   523k|                byte3 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1024|   523k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|   523k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1025|   523k|            case 2:
  ------------------
  |  Branch (1025:13): [True: 281, False: 526k]
  ------------------
 1026|   523k|                byte2 = (uint8_t)((ch | byteMark) & byteMask); ch >>= 6;
 1027|   523k|                JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|   523k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
 1028|   526k|            case 1:
  ------------------
  |  Branch (1028:13): [True: 3.06k, False: 523k]
  ------------------
 1029|   526k|                byte1 = (uint8_t) (ch | first_byte_mark[bytes_to_write]);
 1030|   526k|                break;
 1031|   526k|            }
 1032|       |
 1033|   526k|            switch (bytes_to_write) 
  ------------------
  |  Branch (1033:21): [True: 526k, False: 0]
  ------------------
 1034|   526k|            {
 1035|   169k|            case 4: 
  ------------------
  |  Branch (1035:13): [True: 169k, False: 357k]
  ------------------
 1036|   169k|                target.push_back(byte1);
 1037|   169k|                target.push_back(byte2);
 1038|   169k|                target.push_back(byte3);
 1039|   169k|                target.push_back(byte4);
 1040|   169k|                break;
 1041|   353k|            case 3: 
  ------------------
  |  Branch (1041:13): [True: 353k, False: 173k]
  ------------------
 1042|   353k|                target.push_back(byte1);
 1043|   353k|                target.push_back(byte2);
 1044|   353k|                target.push_back(byte3);
 1045|   353k|                break;
 1046|    281|            case 2: 
  ------------------
  |  Branch (1046:13): [True: 281, False: 526k]
  ------------------
 1047|    281|                target.push_back(byte1);
 1048|    281|                target.push_back(byte2);
 1049|    281|                break;
 1050|  3.06k|            case 1: 
  ------------------
  |  Branch (1050:13): [True: 3.06k, False: 523k]
  ------------------
 1051|  3.06k|                target.push_back(byte1);
 1052|  3.06k|                break;
 1053|   526k|            }
 1054|   526k|        }
 1055|   527k|        return unicode_result<CharT>{data,result} ;
 1056|   527k|    }
_ZN8jsoncons14unicode_traits12is_surrogateEj:
  221|   527k|    {
  222|   527k|        return (ch >= sur_high_start && ch <= sur_low_end);
  ------------------
  |  Branch (222:17): [True: 171k, False: 355k]
  |  Branch (222:41): [True: 341, False: 170k]
  ------------------
  223|   527k|    }

