LLVMFuzzerTestOneInput:
   11|     43|{
   12|     43|    std::string s(reinterpret_cast<const char*>(data), size);
   13|     43|    std::istringstream is(s);
   14|       |
   15|     43|    default_json_visitor visitor;
   16|       |
   17|     43|    ubjson_stream_reader reader(is, visitor);
   18|     43|    std::error_code ec;
   19|     43|    reader.read(ec);
   20|       |
   21|     43|    return 0;
   22|     43|}

_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|     43|        basic_default_json_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|     43|        basic_json_visitor() = default;
_ZN8jsoncons19typed_array_visitorD2Ev:
   33|     43|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  560|  1.61k|        {
  561|  1.61k|            visit_begin_array(tag, context, ec);
  562|  1.61k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.61k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  563|  1.61k|        }
_ZN8jsoncons26basic_default_json_visitorIcE15visit_end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  833|  1.21M|        {
  834|  1.21M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.21M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  835|  1.21M|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  858|    242|        {
  859|    242|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|    242|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  860|    242|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  863|  2.74M|        {
  864|  2.74M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.74M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  865|  2.74M|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  873|     84|        {
  874|     84|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     84|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  875|     84|        }
_ZN8jsoncons26basic_default_json_visitorIcE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  818|  1.55M|        {
  819|  1.55M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.55M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  820|  1.55M|        }
_ZN8jsoncons18basic_json_visitorIcE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  544|  1.16k|        {
  545|  1.16k|            visit_begin_object(tag, context, ec);
  546|  1.16k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.16k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  547|  1.16k|        }
_ZN8jsoncons26basic_default_json_visitorIcE16visit_end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  823|  1.55M|        {
  824|  1.55M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.55M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  825|  1.55M|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  828|  1.21M|        {
  829|  1.21M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.21M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  830|  1.21M|        }
_ZN8jsoncons26basic_default_json_visitorIcE9visit_keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  838|   846k|        {
  839|   846k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   846k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|   846k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  843|  3.83M|        {
  844|  3.83M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  3.83M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  845|  3.83M|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  878|   612k|        {
  879|   612k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   612k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  880|   612k|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_stringERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  848|  15.6k|        {
  849|  15.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  15.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  850|  15.6k|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|  1.61k|        {
  346|  1.61k|            visit_begin_array(length, tag, context, ec);
  347|  1.61k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.61k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|  1.61k|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|    242|        {
  415|    242|            visit_uint64(value, tag, context, ec);
  416|    242|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|    242|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|    242|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|  1.21M|        {
  352|  1.21M|            visit_end_array(context, ec);
  353|  1.21M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.21M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|  1.21M|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|  2.74M|        {
  424|  2.74M|            visit_int64(value, tag, context, ec);
  425|  2.74M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.74M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|  2.74M|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|     84|        {
  442|     84|            visit_double(value, tag, context, ec);
  443|     84|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     84|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|     84|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  3.83M|        {
  366|  3.83M|            visit_null(tag, context, ec);
  367|  3.83M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  3.83M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  3.83M|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|   612k|        {
  375|   612k|            visit_bool(value, tag, context, ec);
  376|   612k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   612k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|   612k|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|  15.6k|        {
  384|  15.6k|            visit_string(value, tag, context, ec);
  385|  15.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  15.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  15.6k|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|  1.21M|        {
  340|  1.21M|            visit_begin_array(tag, context, ec);
  341|  1.21M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.21M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|  1.21M|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  1.16k|        {
  328|  1.16k|            visit_begin_object(length, tag, context, ec);
  329|  1.16k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.16k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  1.16k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|  1.55M|        {
  319|  1.55M|            visit_begin_object(tag, context, ec);
  320|  1.55M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.55M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|  1.55M|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|   846k|        {
  358|   846k|            visit_key(name, context, ec);
  359|   846k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   846k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|   846k|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  1.55M|        {
  334|  1.55M|            visit_end_object(context, ec);
  335|  1.55M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.55M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  1.55M|        }

_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4sizeEv:
  159|  2.58M|    {
  160|  2.58M|        return size_;
  161|  2.58M|    }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2Ev:
   99|   668k|    {
  100|   668k|    }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2EPS2_m:
  102|   193k|        : data_(data), size_(size)
  103|   193k|    {
  104|   193k|    }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4dataEv:
  154|  1.72M|    {
  155|  1.72M|        return data_;
  156|  1.72M|    }

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

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|     43|    {
  194|     43|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 43, False: 0]
  ------------------
  195|     43|        {
  196|     43|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|     43|        }
  198|     43|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|     43|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|     43|          chunk_size_(default_max_chunk_size)
  178|     43|    {
  179|     43|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|     43|        data_end_ = chunk_;
  181|     43|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|     43|      : std::basic_istream<CharT>(&nb_)
   58|     43|    {
   59|     43|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|     43|        null_buffer() = default;
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8is_errorEv:
  276|  5.11M|    {
  277|  5.11M|        return stream_ptr_->bad();  
  278|  5.11M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  9.59M|    {
  378|  9.59M|        std::size_t len = 0;
  379|  9.59M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 9.59M, False: 274]
  ------------------
  380|  9.59M|        {
  381|  9.59M|            len = (std::min)(remaining_, length);
  382|  9.59M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  9.59M|            data_end_ += len;
  384|  9.59M|            remaining_ -= len;
  385|  9.59M|            position_ += len;
  386|  9.59M|        }
  387|  9.59M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 9.59M, False: 820]
  ------------------
  388|  9.59M|        {
  389|  9.59M|            return len;
  390|  9.59M|        }
  391|    820|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 820, False: 0]
  ------------------
  392|    820|        {
  393|    820|            data_end_ = chunk_;
  394|    820|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|    820|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 807, False: 13]
  ------------------
  396|    807|            {
  397|    807|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|    807|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|    807|                data_end_ += len2;
  400|    807|                remaining_ -= len2;
  401|    807|                position_ += len2;
  402|    807|                len += len2;
  403|    807|            }
  404|    820|            return len;
  405|    820|        }
  406|      0|        else
  407|      0|        {
  408|      0|            if (stream_ptr_->eof())
  ------------------
  |  Branch (408:17): [True: 0, False: 0]
  ------------------
  409|      0|            {
  410|      0|                remaining_ = 0;
  411|      0|                return 0;
  412|      0|            }
  413|      0|            JSONCONS_TRY
  ------------------
  |  |   37|      0|    #define JSONCONS_TRY try
  ------------------
  414|      0|            {
  415|      0|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  416|      0|                std::size_t len2 = static_cast<std::size_t>(count);
  417|      0|                if (len2 < length-len)
  ------------------
  |  Branch (417:21): [True: 0, False: 0]
  ------------------
  418|      0|                {
  419|      0|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  420|      0|                }
  421|      0|                len += len2;
  422|      0|                position_ += len2;
  423|      0|                return len;
  424|      0|            }
  425|      0|            JSONCONS_CATCH(const std::exception&)     
  426|      0|            {
  427|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  428|      0|                return 0;
  429|      0|            }
  430|      0|        }
  431|  9.59M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  1.54k|    {
  443|  1.54k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 14, False: 1.52k]
  ------------------
  444|     14|        {
  445|     14|            return 0;
  446|     14|        }
  447|       |
  448|  1.52k|        JSONCONS_TRY
  ------------------
  |  |   37|  1.52k|    #define JSONCONS_TRY try
  ------------------
  449|  1.52k|        {
  450|  1.52k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  1.52k|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  1.52k|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 34, False: 1.49k]
  ------------------
  454|     34|            {
  455|     34|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|     34|            }
  457|  1.52k|            return length;
  458|  1.52k|        }
  459|  1.52k|        JSONCONS_CATCH(const std::exception&)     
  460|  1.52k|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  1.52k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_12basic_stringIcNS1_11char_traitsIcEENS2_IcEEEEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|   861k|    {
  353|   861k|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|   861k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 668k, False: 193k]
  |  |  ------------------
  ------------------
  354|   668k|        {
  355|   668k|            return span<const value_type>{};
  356|   668k|        }
  357|   193k|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 49, False: 193k]
  |  Branch (357:32): [True: 44, False: 5]
  ------------------
  358|     44|        {
  359|     44|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|     44|            data_end_ = chunk_;
  361|     44|        }
  362|   193k|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 170, False: 192k]
  ------------------
  363|    170|        {
  364|    170|            buffer.clear();
  365|    170|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|    170|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|    170|        }
  368|       |
  369|   192k|        const value_type* data = data_end_;
  370|   192k|        data_end_ += length;
  371|   192k|        remaining_ -= length;
  372|   192k|        position_ += length;
  373|   192k|        return span<const value_type>(data, length);
  374|   193k|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSG_m:
  749|    170|    {
  750|    170|        std::size_t unread = length;
  751|       |
  752|    955|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (752:16): [True: 799, False: 156]
  |  Branch (752:30): [True: 785, False: 14]
  ------------------
  753|    785|        {
  754|    785|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (754:17): [True: 191, False: 594]
  |  Branch (754:44): [True: 191, False: 0]
  ------------------
  755|    191|            {
  756|    191|                std::size_t n = source.chunk_size();
  757|    191|                std::size_t offset = buffer.size();
  758|    191|                buffer.resize(offset+n);
  759|    191|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  760|    191|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|    191|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 186]
  |  |  ------------------
  ------------------
  761|      5|                {
  762|      5|                    buffer.resize(offset+actual);
  763|      5|                }
  764|    191|                unread -= actual;
  765|    191|            }
  766|    594|            else
  767|    594|            {
  768|    594|                std::size_t n = (std::min)(source.chunk_size(), unread);
  769|    594|                std::size_t offset = buffer.size();
  770|    594|                buffer.resize(offset+n);
  771|    594|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  772|    594|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|    594|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 9, False: 585]
  |  |  ------------------
  ------------------
  773|      9|                {
  774|      9|                    buffer.resize(offset + actual);
  775|      9|                }
  776|    594|                unread -= actual;
  777|    594|            }
  778|    785|        }
  779|    170|        return length - unread;
  780|    170|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|    799|    {
  272|    799|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 205, False: 594]
  |  Branch (272:35): [True: 14, False: 191]
  ------------------
  273|    799|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|    785|    {
  347|    785|        return remaining_;
  348|    785|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|    976|    {
  262|    976|        return chunk_size_;
  263|    976|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|    191|    {
  436|    191|        auto len = fill_buffer(chunk, chunk_size);
  437|    191|        position_ += len;
  438|    191|        return len;
  439|    191|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4peekEv:
  312|  12.2M|    {
  313|  12.2M|        if (remaining_ == 0)
  ------------------
  |  Branch (313:13): [True: 487, False: 12.2M]
  ------------------
  314|    487|        {
  315|    487|            data_end_ = chunk_;
  316|    487|            remaining_ = fill_buffer(chunk_, chunk_size_);
  317|    487|        }
  318|  12.2M|        if (remaining_ > 0)
  ------------------
  |  Branch (318:13): [True: 12.2M, False: 10]
  ------------------
  319|  12.2M|        {
  320|  12.2M|            value_type c = *data_end_;
  321|  12.2M|            return char_result<value_type>{c, false};
  322|  12.2M|        }
  323|     10|        else
  324|     10|        {
  325|     10|            return char_result<value_type>{0, true};
  326|     10|        }
  327|  12.2M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE6ignoreEm:
  286|  2.77M|    {
  287|  2.77M|        std::size_t len = 0;
  288|  2.77M|        if (remaining_ > 0)
  ------------------
  |  Branch (288:13): [True: 2.77M, False: 0]
  ------------------
  289|  2.77M|        {
  290|  2.77M|            len = (std::min)(remaining_, length);
  291|  2.77M|            position_ += len;
  292|  2.77M|            data_end_ += len;
  293|  2.77M|            remaining_ -= len;
  294|  2.77M|        }
  295|  2.77M|        while (len < length)
  ------------------
  |  Branch (295:16): [True: 0, False: 2.77M]
  ------------------
  296|      0|        {
  297|      0|            data_end_ = chunk_;
  298|      0|            remaining_ = fill_buffer(chunk_, chunk_size_);
  299|      0|            if (remaining_ == 0)
  ------------------
  |  Branch (299:17): [True: 0, False: 0]
  ------------------
  300|      0|            {
  301|      0|                break;
  302|      0|            }
  303|      0|            std::size_t len2 = (std::min)(remaining_, length-len);
  304|      0|            position_ += len2;
  305|      0|            data_end_ += len2;
  306|      0|            remaining_ -= len2;
  307|      0|            len += len2;
  308|      0|        }
  309|  2.77M|    }

_ZN8jsoncons6binary13big_to_nativeIaNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  3.59M|    {
  183|  3.59M|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 3.59M]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  3.59M|        T val;
  188|  3.59M|        std::memcpy(&val,first,sizeof(T));
  189|  3.59M|        return byte_swap(val);
  190|  3.59M|    }
_ZN8jsoncons6binary9byte_swapIaEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm1EES4_E4typeES4_:
   21|  3.59M|    {
   22|  3.59M|        return val;
   23|  3.59M|    }
_ZN8jsoncons6binary13big_to_nativeIsNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|    563|    {
  183|    563|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 563]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|    563|        T val;
  188|    563|        std::memcpy(&val,first,sizeof(T));
  189|    563|        return byte_swap(val);
  190|    563|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|    563|    {
   29|    563|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|    563|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  478|    563|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|    563|    }
_ZN8jsoncons6binary13big_to_nativeIiNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|     37|    {
  183|     37|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 37]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|     37|        T val;
  188|     37|        std::memcpy(&val,first,sizeof(T));
  189|     37|        return byte_swap(val);
  190|     37|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|     37|    {
   40|     37|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|     37|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  474|     37|#  define JSONCONS_BYTE_SWAP_32 __builtin_bswap32
  ------------------
   42|       |    #else
   43|       |        uint32_t tmp = ((static_cast<uint32_t>(val) << 8) & 0xff00ff00) | ((static_cast<uint32_t>(val) >> 8) & 0xff00ff);
   44|       |        return (tmp << 16) | (tmp >> 16);
   45|       |    #endif
   46|     37|    }
_ZN8jsoncons6binary13big_to_nativeIlNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|    103|    {
  183|    103|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 103]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|    103|        T val;
  188|    103|        std::memcpy(&val,first,sizeof(T));
  189|    103|        return byte_swap(val);
  190|    103|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|    103|    {
   52|    103|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|    103|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  473|    103|#  define JSONCONS_BYTE_SWAP_64 __builtin_bswap64
  ------------------
   54|       |    #else
   55|       |        uint64_t tmp = ((static_cast<uint64_t>(val) & 0x00000000ffffffffull) << 32) | ((static_cast<uint64_t>(val) & 0xffffffff00000000ull) >> 32);
   56|       |        tmp = ((tmp & 0x0000ffff0000ffffull) << 16) | ((tmp & 0xffff0000ffff0000ull) >> 16);
   57|       |        return ((tmp & 0x00ff00ff00ff00ffull) << 8)  | ((tmp & 0xff00ff00ff00ff00ull) >> 8);
   58|       |    #endif
   59|    103|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|     84|    {
  183|     84|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 84]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|     84|        T val;
  188|     84|        std::memcpy(&val,first,sizeof(T));
  189|     84|        return byte_swap(val);
  190|     84|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|     84|    {
   77|     84|        uint64_t x;
   78|     84|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|     84|        uint64_t y = byte_swap(x);
   80|     84|        T val2;
   81|     84|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|     84|        return val2;
   83|     84|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|     84|    {
   52|     84|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|     84|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  473|     84|#  define JSONCONS_BYTE_SWAP_64 __builtin_bswap64
  ------------------
   54|       |    #else
   55|       |        uint64_t tmp = ((static_cast<uint64_t>(val) & 0x00000000ffffffffull) << 32) | ((static_cast<uint64_t>(val) & 0xffffffff00000000ull) >> 32);
   56|       |        tmp = ((tmp & 0x0000ffff0000ffffull) << 16) | ((tmp & 0xffff0000ffff0000ull) >> 16);
   57|       |        return ((tmp & 0x00ff00ff00ff00ffull) << 8)  | ((tmp & 0xff00ff00ff00ff00ull) >> 8);
   58|       |    #endif
   59|     84|    }

_ZN8jsoncons9is_base10IhEEbPKT_m:
  187|    265|{
  188|    265|    integer_chars_state state = integer_chars_state::initial;
  189|       |
  190|    265|    const CharT* end = s + length; 
  191|    524|    for (;s < end; ++s)
  ------------------
  |  Branch (191:11): [True: 389, False: 135]
  ------------------
  192|    389|    {
  193|    389|        switch(state)
  194|    389|        {
  195|    263|            case integer_chars_state::initial:
  ------------------
  |  Branch (195:13): [True: 263, False: 126]
  ------------------
  196|    263|            {
  197|    263|                switch(*s)
  198|    263|                {
  199|      3|                    case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (199:21): [True: 1, False: 262]
  |  Branch (199:30): [True: 1, False: 262]
  |  Branch (199:39): [True: 0, False: 263]
  |  Branch (199:48): [True: 0, False: 263]
  |  Branch (199:57): [True: 0, False: 263]
  |  Branch (199:66): [True: 0, False: 263]
  |  Branch (199:75): [True: 1, False: 262]
  |  Branch (199:84): [True: 0, False: 263]
  |  Branch (199:93): [True: 0, False: 263]
  |  Branch (199:103): [True: 0, False: 263]
  ------------------
  200|      3|                        state = integer_chars_state::decimal;
  201|      3|                        break;
  202|    156|                    case '-':
  ------------------
  |  Branch (202:21): [True: 156, False: 107]
  ------------------
  203|    156|                        state = integer_chars_state::minus;
  204|    156|                        break;
  205|    104|                    default:
  ------------------
  |  Branch (205:21): [True: 104, False: 159]
  ------------------
  206|    104|                        return false;
  207|    263|                }
  208|    159|                break;
  209|    263|            }
  210|    159|            case integer_chars_state::minus:
  ------------------
  |  Branch (210:13): [True: 26, False: 363]
  ------------------
  211|     26|            {
  212|     26|                switch(*s)
  213|     26|                {
  214|     25|                    case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (214:21): [True: 25, False: 1]
  |  Branch (214:30): [True: 0, False: 26]
  |  Branch (214:39): [True: 0, False: 26]
  |  Branch (214:48): [True: 0, False: 26]
  |  Branch (214:57): [True: 0, False: 26]
  |  Branch (214:66): [True: 0, False: 26]
  |  Branch (214:75): [True: 0, False: 26]
  |  Branch (214:84): [True: 0, False: 26]
  |  Branch (214:93): [True: 0, False: 26]
  |  Branch (214:103): [True: 0, False: 26]
  ------------------
  215|     25|                        state = integer_chars_state::decimal;
  216|     25|                        break;
  217|      1|                    default:
  ------------------
  |  Branch (217:21): [True: 1, False: 25]
  ------------------
  218|      1|                        return false;
  219|     26|                }
  220|     25|                break;
  221|     26|            }
  222|    100|            case integer_chars_state::decimal:
  ------------------
  |  Branch (222:13): [True: 100, False: 289]
  ------------------
  223|    100|            {
  224|    100|                switch(*s)
  225|    100|                {
  226|     75|                    case '0':case '1':case '2':case '3':case '4':case '5':case '6':case '7':case '8': case '9':
  ------------------
  |  Branch (226:21): [True: 0, False: 100]
  |  Branch (226:30): [True: 6, False: 94]
  |  Branch (226:39): [True: 19, False: 81]
  |  Branch (226:48): [True: 0, False: 100]
  |  Branch (226:57): [True: 25, False: 75]
  |  Branch (226:66): [True: 0, False: 100]
  |  Branch (226:75): [True: 0, False: 100]
  |  Branch (226:84): [True: 25, False: 75]
  |  Branch (226:93): [True: 0, False: 100]
  |  Branch (226:103): [True: 0, False: 100]
  ------------------
  227|     75|                        break;
  228|     25|                    default:
  ------------------
  |  Branch (228:21): [True: 25, False: 75]
  ------------------
  229|     25|                        return false;
  230|    100|                }
  231|     75|                break;
  232|    100|            }
  233|     75|            default:
  ------------------
  |  Branch (233:13): [True: 0, False: 389]
  ------------------
  234|      0|                break;
  235|    389|        }
  236|    389|    }
  237|    135|    return state == integer_chars_state::decimal ? true : false;
  ------------------
  |  Branch (237:12): [True: 3, False: 132]
  ------------------
  238|    265|}

_ZN8jsoncons14unicode_traits8validateIhEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   861k|    {
 1148|   861k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   861k|        const uint8_t* end = it + length;
 1150|       |
 1151|   861k|        unicode_errc  result{};
 1152|  1.29M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 429k, False: 861k]
  ------------------
 1153|   429k|        {
 1154|   429k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 172k, False: 256k]
  ------------------
 1155|   172k|            {
 1156|  1.20M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  342|   345k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (342:32): [True: 172k, False: 61]
  |  |  |  Branch (342:34): [True: 172k, False: 5]
  |  |  |  Branch (342:36): [True: 172k, False: 25]
  |  |  |  Branch (342:38): [True: 172k, False: 41]
  |  |  |  Branch (342:40): [True: 172k, False: 133]
  |  |  |  Branch (342:42): [True: 172k, False: 189]
  |  |  |  Branch (342:44): [True: 168k, False: 3.87k]
  |  |  |  Branch (342:46): [True: 155k, False: 13.1k]
  |  |  ------------------
  ------------------
 1157|   155k|                continue;
 1158|  1.20M|            }
 1159|   273k|    non_ascii:
 1160|   273k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|   273k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 0, False: 273k]
  ------------------
 1162|      0|            {
 1163|      0|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|      0|            }
 1165|   273k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 4, False: 273k]
  ------------------
 1166|      4|            {
 1167|      4|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|      4|            }
 1169|   273k|            it += len;
 1170|   273k|        }
 1171|   861k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   861k|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|   273k|    {
  306|   273k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|   273k|        const uint8_t* end = it+length;
  308|       |
  309|   273k|        uint8_t byte;
  310|   273k|        switch (length) {
  311|      4|        default:
  ------------------
  |  Branch (311:9): [True: 4, False: 273k]
  ------------------
  312|      4|            return unicode_errc::over_long_utf8_sequence;
  313|      3|        case 4:
  ------------------
  |  Branch (313:9): [True: 3, False: 273k]
  ------------------
  314|      3|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 0, False: 3]
  ------------------
  315|      0|                return unicode_errc::bad_continuation_byte;
  316|      3|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|      3|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|      5|        case 3:
  ------------------
  |  Branch (317:9): [True: 2, False: 273k]
  ------------------
  318|      5|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 0, False: 5]
  ------------------
  319|      0|                return unicode_errc::bad_continuation_byte;
  320|      5|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|      5|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  17.4k|        case 2:
  ------------------
  |  Branch (321:9): [True: 17.4k, False: 256k]
  ------------------
  322|  17.4k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 0, False: 17.4k]
  ------------------
  323|      0|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  17.4k|            switch (*it) 
  326|  17.4k|            {
  327|       |                // no fall-through in this inner switch
  328|      1|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 1, False: 17.4k]
  |  Branch (328:32): [True: 0, False: 1]
  ------------------
  329|      1|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 0, False: 17.4k]
  |  Branch (329:32): [True: 0, False: 0]
  ------------------
  330|      0|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 0, False: 17.4k]
  |  Branch (330:32): [True: 0, False: 0]
  ------------------
  331|      0|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 0, False: 17.4k]
  |  Branch (331:32): [True: 0, False: 0]
  ------------------
  332|  17.4k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 17.4k, False: 1]
  |  Branch (332:32): [True: 0, False: 17.4k]
  ------------------
  333|  17.4k|            }
  334|       |
  335|  17.4k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|  17.4k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|   273k|        case 1:
  ------------------
  |  Branch (336:9): [True: 256k, False: 17.4k]
  ------------------
  337|   273k|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 17.4k, False: 256k]
  |  Branch (337:32): [True: 0, False: 17.4k]
  ------------------
  338|      0|                return unicode_errc::source_illegal;
  339|   273k|            break;
  340|   273k|        }
  341|   273k|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 0, False: 273k]
  ------------------
  342|      0|            return unicode_errc::source_illegal;
  343|       |
  344|   273k|        return unicode_errc();
  345|   273k|    }

_ZN8jsoncons6ubjson15make_error_codeENS0_11ubjson_errcE:
   96|     44|{
   97|     44|    return std::error_code(static_cast<int>(e),ubjson_error_category());
   98|     44|}
_ZN8jsoncons6ubjson21ubjson_error_categoryEv:
   89|     44|{
   90|     44|  static ubjson_error_category_impl instance;
   91|     44|  return instance;
   92|     44|}

_ZN8jsoncons6ubjson21ubjson_decode_optionsC1Ev:
   38|     43|    ubjson_decode_options() = default;
_ZN8jsoncons6ubjson21ubjson_options_commonC2Ev:
   23|     43|    ubjson_options_common() = default;
_ZN8jsoncons6ubjson21ubjson_options_commonD2Ev:
   25|     43|    virtual ~ubjson_options_common() = default;
_ZNK8jsoncons6ubjson21ubjson_options_common17max_nesting_depthEv:
   28|     43|    {
   29|     43|        return max_nesting_depth_;
   30|     43|    }
_ZNK8jsoncons6ubjson21ubjson_decode_options9max_itemsEv:
   44|     43|    {
   45|     43|        return max_items_;
   46|     43|    }

_ZN8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RKNS0_21ubjson_decode_optionsERKS7_:
   79|     43|       : source_(std::forward<Sourceable>(source)), 
   80|     43|         max_nesting_depth_(options.max_nesting_depth()),
   81|     43|         max_items_(options.max_items()),
   82|     43|         text_buffer_(alloc),
   83|     43|         state_stack_(alloc)
   84|     43|    {
   85|     43|        state_stack_.emplace_back(parse_mode::root,0);
   86|     43|    }
_ZN8jsoncons6ubjson11parse_stateC2ENS0_10parse_modeEmh:
   45|  2.77M|        : mode(mode), length(length), type(type)
   46|  2.77M|    {
   47|  2.77M|    }
_ZN8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
   94|     43|    {
   95|     43|        more_ = true;
   96|     43|        done_ = false;
   97|     43|        text_buffer_.clear();
   98|     43|        state_stack_.clear();
   99|     43|        state_stack_.emplace_back(parse_mode::root,0,uint8_t(0));
  100|     43|        nesting_depth_ = 0;
  101|     43|    }
_ZN8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  151|     43|    {
  152|  14.0M|        while (!done_ && more_)
  ------------------
  |  Branch (152:16): [True: 14.0M, False: 0]
  |  Branch (152:26): [True: 14.0M, False: 0]
  ------------------
  153|  14.0M|        {
  154|  14.0M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (154:21): [True: 14.0M, False: 0]
  ------------------
  155|  14.0M|            {
  156|  4.07k|                case parse_mode::array:
  ------------------
  |  Branch (156:17): [True: 4.07k, False: 14.0M]
  ------------------
  157|  4.07k|                {
  158|  4.07k|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (158:25): [True: 3.46k, False: 614]
  ------------------
  159|  3.46k|                    {
  160|  3.46k|                        ++state_stack_.back().index;
  161|  3.46k|                        read_type_and_value(visitor, ec);
  162|  3.46k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.46k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.46k]
  |  |  ------------------
  ------------------
  163|      0|                        {
  164|      0|                            return;
  165|      0|                        }
  166|  3.46k|                    }
  167|    614|                    else
  168|    614|                    {
  169|    614|                        end_array(visitor, ec);
  170|    614|                    }
  171|  4.07k|                    break;
  172|  4.07k|                }
  173|  5.28M|                case parse_mode::strongly_typed_array:
  ------------------
  |  Branch (173:17): [True: 5.28M, False: 8.73M]
  ------------------
  174|  5.28M|                {
  175|  5.28M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (175:25): [True: 5.28M, False: 547]
  ------------------
  176|  5.28M|                    {
  177|  5.28M|                        ++state_stack_.back().index;
  178|  5.28M|                        read_value(visitor, state_stack_.back().type, ec);
  179|  5.28M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.28M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 5.28M]
  |  |  ------------------
  ------------------
  180|      7|                        {
  181|      7|                            return;
  182|      7|                        }
  183|  5.28M|                    }
  184|    547|                    else
  185|    547|                    {
  186|    547|                        end_array(visitor, ec);
  187|    547|                    }
  188|  5.28M|                    break;
  189|  5.28M|                }
  190|  5.48M|                case parse_mode::indefinite_array:
  ------------------
  |  Branch (190:17): [True: 5.48M, False: 8.54M]
  ------------------
  191|  5.48M|                {
  192|  5.48M|                    auto c = source_.peek();
  193|  5.48M|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  5.48M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 5.48M]
  |  |  ------------------
  ------------------
  194|      5|                    {
  195|      5|                        ec = ubjson_errc::unexpected_eof;
  196|      5|                        more_ = false;
  197|      5|                        return;
  198|      5|                    }
  199|  5.48M|                    if (c.value == jsoncons::ubjson::ubjson_type::end_array_marker)
  ------------------
  |  Branch (199:25): [True: 1.21M, False: 4.26M]
  ------------------
  200|  1.21M|                    {
  201|  1.21M|                        source_.ignore(1);
  202|  1.21M|                        end_array(visitor, ec);
  203|  1.21M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.21M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.21M]
  |  |  ------------------
  ------------------
  204|      0|                        {
  205|      0|                            return;
  206|      0|                        }
  207|  1.21M|                    }
  208|  4.26M|                    else
  209|  4.26M|                    {
  210|  4.26M|                        if (++state_stack_.back().index > max_items_)
  ------------------
  |  Branch (210:29): [True: 0, False: 4.26M]
  ------------------
  211|      0|                        {
  212|      0|                            ec = ubjson_errc::max_items_exceeded;
  213|      0|                            more_ = false;
  214|      0|                            return;
  215|      0|                        }
  216|  4.26M|                        read_type_and_value(visitor, ec);
  217|  4.26M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.26M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 10, False: 4.26M]
  |  |  ------------------
  ------------------
  218|     10|                        {
  219|     10|                            return;
  220|     10|                        }
  221|  4.26M|                    }
  222|  5.48M|                    break;
  223|  5.48M|                }
  224|  5.48M|                case parse_mode::map_key:
  ------------------
  |  Branch (224:17): [True: 27, False: 14.0M]
  ------------------
  225|     27|                {
  226|     27|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (226:25): [True: 9, False: 18]
  ------------------
  227|      9|                    {
  228|      9|                        ++state_stack_.back().index;
  229|      9|                        read_key(visitor, ec);
  230|      9|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      9|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9]
  |  |  ------------------
  ------------------
  231|      0|                        {
  232|      0|                            return;
  233|      0|                        }
  234|      9|                        state_stack_.back().mode = parse_mode::map_value;
  235|      9|                    }
  236|     18|                    else
  237|     18|                    {
  238|     18|                        end_object(visitor, ec);
  239|     18|                    }
  240|     27|                    break;
  241|     27|                }
  242|     27|                case parse_mode::map_value:
  ------------------
  |  Branch (242:17): [True: 9, False: 14.0M]
  ------------------
  243|      9|                {
  244|      9|                    state_stack_.back().mode = parse_mode::map_key;
  245|      9|                    read_type_and_value(visitor, ec);
  246|      9|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      9|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9]
  |  |  ------------------
  ------------------
  247|      0|                    {
  248|      0|                        return;
  249|      0|                    }
  250|      9|                    break;
  251|      9|                }
  252|  1.13k|                case parse_mode::strongly_typed_map_key:
  ------------------
  |  Branch (252:17): [True: 1.13k, False: 14.0M]
  ------------------
  253|  1.13k|                {
  254|  1.13k|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (254:25): [True: 11, False: 1.12k]
  ------------------
  255|     11|                    {
  256|     11|                        ++state_stack_.back().index;
  257|     11|                        read_key(visitor, ec);
  258|     11|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     11|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 11]
  |  |  ------------------
  ------------------
  259|      0|                        {
  260|      0|                            return;
  261|      0|                        }
  262|     11|                        state_stack_.back().mode = parse_mode::strongly_typed_map_value;
  263|     11|                    }
  264|  1.12k|                    else
  265|  1.12k|                    {
  266|  1.12k|                        end_object(visitor, ec);
  267|  1.12k|                    }
  268|  1.13k|                    break;
  269|  1.13k|                }
  270|  1.13k|                case parse_mode::strongly_typed_map_value:
  ------------------
  |  Branch (270:17): [True: 11, False: 14.0M]
  ------------------
  271|     11|                {
  272|     11|                    state_stack_.back().mode = parse_mode::strongly_typed_map_key;
  273|     11|                    read_value(visitor, state_stack_.back().type, ec);
  274|     11|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     11|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 11]
  |  |  ------------------
  ------------------
  275|      0|                    {
  276|      0|                        return;
  277|      0|                    }
  278|     11|                    break;
  279|     11|                }
  280|  2.40M|                case parse_mode::indefinite_map_key:
  ------------------
  |  Branch (280:17): [True: 2.40M, False: 11.6M]
  ------------------
  281|  2.40M|                {
  282|  2.40M|                    auto c = source_.peek();
  283|  2.40M|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  2.40M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 2.40M]
  |  |  ------------------
  ------------------
  284|      2|                    {
  285|      2|                        ec = ubjson_errc::unexpected_eof;
  286|      2|                        more_ = false;
  287|      2|                        return;
  288|      2|                    }
  289|  2.40M|                    if (c.value == jsoncons::ubjson::ubjson_type::end_object_marker)
  ------------------
  |  Branch (289:25): [True: 1.55M, False: 846k]
  ------------------
  290|  1.55M|                    {
  291|  1.55M|                        source_.ignore(1);
  292|  1.55M|                        end_object(visitor, ec);
  293|  1.55M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.55M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.55M]
  |  |  ------------------
  ------------------
  294|      0|                        {
  295|      0|                            return;
  296|      0|                        }
  297|  1.55M|                    }
  298|   846k|                    else
  299|   846k|                    {
  300|   846k|                        if (++state_stack_.back().index > max_items_)
  ------------------
  |  Branch (300:29): [True: 0, False: 846k]
  ------------------
  301|      0|                        {
  302|      0|                            ec = ubjson_errc::max_items_exceeded;
  303|      0|                            more_ = false;
  304|      0|                            return;
  305|      0|                        }
  306|   846k|                        read_key(visitor, ec);
  307|   846k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   846k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 846k]
  |  |  ------------------
  ------------------
  308|      6|                        {
  309|      6|                            return;
  310|      6|                        }
  311|   846k|                        state_stack_.back().mode = parse_mode::indefinite_map_value;
  312|   846k|                    }
  313|  2.40M|                    break;
  314|  2.40M|                }
  315|  2.40M|                case parse_mode::indefinite_map_value:
  ------------------
  |  Branch (315:17): [True: 846k, False: 13.1M]
  ------------------
  316|   846k|                {
  317|   846k|                    state_stack_.back().mode = parse_mode::indefinite_map_key;
  318|   846k|                    read_type_and_value(visitor, ec);
  319|   846k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   846k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 846k]
  |  |  ------------------
  ------------------
  320|      2|                    {
  321|      2|                        return;
  322|      2|                    }
  323|   846k|                    break;
  324|   846k|                }
  325|   846k|                case parse_mode::root:
  ------------------
  |  Branch (325:17): [True: 43, False: 14.0M]
  ------------------
  326|     43|                {
  327|     43|                    state_stack_.back().mode = parse_mode::accept;
  328|     43|                    read_type_and_value(visitor, ec);
  329|     43|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     43|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 11, False: 32]
  |  |  ------------------
  ------------------
  330|     11|                    {
  331|     11|                        return;
  332|     11|                    }
  333|     32|                    break;
  334|     43|                }
  335|     32|                case parse_mode::accept:
  ------------------
  |  Branch (335:17): [True: 0, False: 14.0M]
  ------------------
  336|      0|                {
  337|      0|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   67|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 0]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  338|      0|                    state_stack_.clear();
  339|      0|                    more_ = false;
  340|      0|                    done_ = true;
  341|      0|                    visitor.flush();
  342|      0|                    break;
  343|      0|                }
  344|  14.0M|            }
  345|  14.0M|        }
  346|     43|    }
_ZN8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE19read_type_and_valueERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  349|  5.11M|    {
  350|  5.11M|        if (source_.is_error())
  ------------------
  |  Branch (350:13): [True: 0, False: 5.11M]
  ------------------
  351|      0|        {
  352|      0|            ec = ubjson_errc::source_error;
  353|      0|            more_ = false;
  354|      0|            return;
  355|      0|        }   
  356|       |
  357|  5.11M|        uint8_t b;
  358|  5.11M|        if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (358:13): [True: 1, False: 5.11M]
  ------------------
  359|      1|        {
  360|      1|            ec = ubjson_errc::unexpected_eof;
  361|      1|            more_ = false;
  362|      1|            return;
  363|      1|        }
  364|  5.11M|        read_value(visitor, b, ec);
  365|  5.11M|    }
_ZN8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  671|  1.21M|    {
  672|  1.21M|        --nesting_depth_;
  673|       |
  674|  1.21M|        visitor.end_array(*this, ec);
  675|  1.21M|        more_ = !cursor_mode_;
  676|  1.21M|        if (level() == mark_level_)
  ------------------
  |  Branch (676:13): [True: 0, False: 1.21M]
  ------------------
  677|      0|        {
  678|      0|            more_ = false;
  679|      0|        }
  680|  1.21M|        state_stack_.pop_back();
  681|  1.21M|    }
_ZNK8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5levelEv:
  116|  2.77M|    {
  117|  2.77M|        return static_cast<int>(state_stack_.size());
  118|  2.77M|    }
_ZN8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10read_valueERNS_18basic_json_visitorIcEEhRNS3_10error_codeE:
  368|  10.4M|    {
  369|  10.4M|        switch (type)
  370|  10.4M|        {
  371|  3.83M|            case jsoncons::ubjson::ubjson_type::null_type: 
  ------------------
  |  Branch (371:13): [True: 3.83M, False: 6.57M]
  ------------------
  372|  3.83M|            {
  373|  3.83M|                visitor.null_value(semantic_tag::none, *this, ec);
  374|  3.83M|                more_ = !cursor_mode_;
  375|  3.83M|                break;
  376|      0|            }
  377|   424k|            case jsoncons::ubjson::ubjson_type::no_op_type: 
  ------------------
  |  Branch (377:13): [True: 424k, False: 9.98M]
  ------------------
  378|   424k|            {
  379|   424k|                break;
  380|      0|            }
  381|   610k|            case jsoncons::ubjson::ubjson_type::true_type:
  ------------------
  |  Branch (381:13): [True: 610k, False: 9.79M]
  ------------------
  382|   610k|            {
  383|   610k|                visitor.bool_value(true, semantic_tag::none, *this, ec);
  384|   610k|                more_ = !cursor_mode_;
  385|   610k|                break;
  386|      0|            }
  387|  1.75k|            case jsoncons::ubjson::ubjson_type::false_type:
  ------------------
  |  Branch (387:13): [True: 1.75k, False: 10.4M]
  ------------------
  388|  1.75k|            {
  389|  1.75k|                visitor.bool_value(false, semantic_tag::none, *this, ec);
  390|  1.75k|                more_ = !cursor_mode_;
  391|  1.75k|                break;
  392|      0|            }
  393|  2.74M|            case jsoncons::ubjson::ubjson_type::int8_type: 
  ------------------
  |  Branch (393:13): [True: 2.74M, False: 7.66M]
  ------------------
  394|  2.74M|            {
  395|  2.74M|                uint8_t buf[sizeof(int8_t)];
  396|  2.74M|                if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (396:21): [True: 3, False: 2.74M]
  ------------------
  397|      3|                {
  398|      3|                    ec = ubjson_errc::unexpected_eof;
  399|      3|                    more_ = false;
  400|      3|                    return;
  401|      3|                }
  402|  2.74M|                int8_t val = binary::big_to_native<int8_t>(buf, sizeof(buf));
  403|  2.74M|                visitor.int64_value(val, semantic_tag::none, *this, ec);
  404|  2.74M|                more_ = !cursor_mode_;
  405|  2.74M|                break;
  406|  2.74M|            }
  407|    242|            case jsoncons::ubjson::ubjson_type::uint8_type: 
  ------------------
  |  Branch (407:13): [True: 242, False: 10.4M]
  ------------------
  408|    242|            {
  409|    242|                uint8_t b;
  410|    242|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (410:21): [True: 0, False: 242]
  ------------------
  411|      0|                {
  412|      0|                    ec = ubjson_errc::unexpected_eof;
  413|      0|                    more_ = false;
  414|      0|                    return;
  415|      0|                }
  416|    242|                visitor.uint64_value(b, semantic_tag::none, *this, ec);
  417|    242|                more_ = !cursor_mode_;
  418|    242|                break;
  419|    242|            }
  420|    223|            case jsoncons::ubjson::ubjson_type::int16_type: 
  ------------------
  |  Branch (420:13): [True: 223, False: 10.4M]
  ------------------
  421|    223|            {
  422|    223|                uint8_t buf[sizeof(int16_t)];
  423|    223|                if (source_.read(buf, sizeof(int16_t)) != sizeof(int16_t))
  ------------------
  |  Branch (423:21): [True: 0, False: 223]
  ------------------
  424|      0|                {
  425|      0|                    ec = ubjson_errc::unexpected_eof;
  426|      0|                    more_ = false;
  427|      0|                    return;
  428|      0|                }
  429|    223|                int16_t val = binary::big_to_native<int16_t>(buf, sizeof(buf));
  430|    223|                visitor.int64_value(val, semantic_tag::none, *this, ec);
  431|    223|                more_ = !cursor_mode_;
  432|    223|                break;
  433|    223|            }
  434|      6|            case jsoncons::ubjson::ubjson_type::int32_type: 
  ------------------
  |  Branch (434:13): [True: 6, False: 10.4M]
  ------------------
  435|      6|            {
  436|      6|                uint8_t buf[sizeof(int32_t)];
  437|      6|                if (source_.read(buf, sizeof(int32_t)) != sizeof(int32_t))
  ------------------
  |  Branch (437:21): [True: 0, False: 6]
  ------------------
  438|      0|                {
  439|      0|                    ec = ubjson_errc::unexpected_eof;
  440|      0|                    more_ = false;
  441|      0|                    return;
  442|      0|                }
  443|      6|                int32_t val = binary::big_to_native<int32_t>(buf, sizeof(buf));
  444|      6|                visitor.int64_value(val, semantic_tag::none, *this, ec);
  445|      6|                more_ = !cursor_mode_;
  446|      6|                break;
  447|      6|            }
  448|     92|            case jsoncons::ubjson::ubjson_type::int64_type: 
  ------------------
  |  Branch (448:13): [True: 92, False: 10.4M]
  ------------------
  449|     92|            {
  450|     92|                uint8_t buf[sizeof(int64_t)];
  451|     92|                if (source_.read(buf, sizeof(int64_t)) != sizeof(int64_t))
  ------------------
  |  Branch (451:21): [True: 0, False: 92]
  ------------------
  452|      0|                {
  453|      0|                    ec = ubjson_errc::unexpected_eof;
  454|      0|                    more_ = false;
  455|      0|                    return;
  456|      0|                }
  457|     92|                int64_t val = binary::big_to_native<int64_t>(buf, sizeof(buf));
  458|     92|                visitor.int64_value(val, semantic_tag::none, *this, ec);
  459|     92|                more_ = !cursor_mode_;
  460|     92|                break;
  461|     92|            }
  462|      0|            case jsoncons::ubjson::ubjson_type::float32_type: 
  ------------------
  |  Branch (462:13): [True: 0, False: 10.4M]
  ------------------
  463|      0|            {
  464|      0|                uint8_t buf[sizeof(float)];
  465|      0|                if (source_.read(buf, sizeof(float)) != sizeof(float))
  ------------------
  |  Branch (465:21): [True: 0, False: 0]
  ------------------
  466|      0|                {
  467|      0|                    ec = ubjson_errc::unexpected_eof;
  468|      0|                    more_ = false;
  469|      0|                    return;
  470|      0|                }
  471|      0|                float val = binary::big_to_native<float>(buf, sizeof(buf));
  472|      0|                visitor.double_value(val, semantic_tag::none, *this, ec);
  473|      0|                more_ = !cursor_mode_;
  474|      0|                break;
  475|      0|            }
  476|     84|            case jsoncons::ubjson::ubjson_type::float64_type: 
  ------------------
  |  Branch (476:13): [True: 84, False: 10.4M]
  ------------------
  477|     84|            {
  478|     84|                uint8_t buf[sizeof(double)];
  479|     84|                if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (479:21): [True: 0, False: 84]
  ------------------
  480|      0|                {
  481|      0|                    ec = ubjson_errc::unexpected_eof;
  482|      0|                    more_ = false;
  483|      0|                    return;
  484|      0|                }
  485|     84|                double val = binary::big_to_native<double>(buf, sizeof(buf));
  486|     84|                visitor.double_value(val, semantic_tag::none, *this, ec);
  487|     84|                more_ = !cursor_mode_;
  488|     84|                break;
  489|     84|            }
  490|     57|            case jsoncons::ubjson::ubjson_type::char_type: 
  ------------------
  |  Branch (490:13): [True: 57, False: 10.4M]
  ------------------
  491|     57|            {
  492|     57|                uint8_t ch{};
  493|     57|                if (source_.read(&ch, 1) != 1)
  ------------------
  |  Branch (493:21): [True: 0, False: 57]
  ------------------
  494|      0|                {
  495|      0|                    ec = ubjson_errc::unexpected_eof;
  496|      0|                    more_ = false;
  497|      0|                    return;
  498|      0|                }
  499|     57|                auto result = unicode_traits::validate(&ch, 1);
  500|     57|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (500:21): [True: 0, False: 57]
  ------------------
  501|      0|                {
  502|      0|                    ec = ubjson_errc::invalid_utf8;
  503|      0|                    more_ = false;
  504|      0|                    return;
  505|      0|                }
  506|     57|                visitor.string_value(string_view(reinterpret_cast<const char*>(&ch), 1), semantic_tag::none, *this, ec);
  507|     57|                more_ = !cursor_mode_;
  508|     57|                break;
  509|     57|            }
  510|  15.3k|            case jsoncons::ubjson::ubjson_type::string_type: 
  ------------------
  |  Branch (510:13): [True: 15.3k, False: 10.3M]
  ------------------
  511|  15.3k|            {
  512|  15.3k|                std::size_t length = get_length(ec);
  513|  15.3k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  15.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 15.3k]
  |  |  ------------------
  ------------------
  514|      0|                {
  515|      0|                    return;
  516|      0|                }
  517|  15.3k|                auto data = source_.read_span(length, text_buffer_);
  518|  15.3k|                if (data.size() != length)
  ------------------
  |  Branch (518:21): [True: 2, False: 15.3k]
  ------------------
  519|      2|                {
  520|      2|                    ec = ubjson_errc::unexpected_eof;
  521|      2|                    more_ = false;
  522|      2|                    return;
  523|      2|                }
  524|  15.3k|                auto result = unicode_traits::validate(data.data(), data.size());
  525|  15.3k|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (525:21): [True: 3, False: 15.3k]
  ------------------
  526|      3|                {
  527|      3|                    ec = ubjson_errc::invalid_utf8;
  528|      3|                    more_ = false;
  529|      3|                    return;
  530|      3|                }
  531|  15.3k|                visitor.string_value(jsoncons::string_view(reinterpret_cast<const char*>(data.data()),data.size()), 
  532|  15.3k|                    semantic_tag::none, *this, ec);
  533|  15.3k|                more_ = !cursor_mode_;
  534|  15.3k|                break;
  535|  15.3k|            }
  536|    273|            case jsoncons::ubjson::ubjson_type::high_precision_number_type: 
  ------------------
  |  Branch (536:13): [True: 273, False: 10.4M]
  ------------------
  537|    273|            {
  538|    273|                std::size_t length = get_length(ec);
  539|    273|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    273|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 273]
  |  |  ------------------
  ------------------
  540|      0|                {
  541|      0|                    return;
  542|      0|                }
  543|    273|                auto data = source_.read_span(length, text_buffer_);
  544|    273|                if (data.size() != length)
  ------------------
  |  Branch (544:21): [True: 8, False: 265]
  ------------------
  545|      8|                {
  546|      8|                    ec = ubjson_errc::unexpected_eof;
  547|      8|                    more_ = false;
  548|      8|                    return;
  549|      8|                }
  550|    265|                if (jsoncons::is_base10(data.data(), data.size()))
  ------------------
  |  Branch (550:21): [True: 3, False: 262]
  ------------------
  551|      3|                {
  552|      3|                    visitor.string_value(jsoncons::string_view(reinterpret_cast<const char*>(data.data()), data.size()), 
  553|      3|                        semantic_tag::bigint, *this, ec);
  554|      3|                    more_ = !cursor_mode_;
  555|      3|                }
  556|    262|                else
  557|    262|                {
  558|    262|                    visitor.string_value(jsoncons::string_view(reinterpret_cast<const char*>(data.data()), data.size()), 
  559|    262|                        semantic_tag::bigdec, *this, ec);
  560|    262|                    more_ = !cursor_mode_;
  561|    262|                }
  562|    265|                break;
  563|    273|            }
  564|  1.21M|            case jsoncons::ubjson::ubjson_type::start_array_marker: 
  ------------------
  |  Branch (564:13): [True: 1.21M, False: 9.19M]
  ------------------
  565|  1.21M|            {
  566|  1.21M|                begin_array(visitor,ec);
  567|  1.21M|                break;
  568|    273|            }
  569|  1.55M|            case jsoncons::ubjson::ubjson_type::start_object_marker: 
  ------------------
  |  Branch (569:13): [True: 1.55M, False: 8.85M]
  ------------------
  570|  1.55M|            {
  571|  1.55M|                begin_object(visitor, ec);
  572|  1.55M|                break;
  573|    273|            }
  574|      9|            default:
  ------------------
  |  Branch (574:13): [True: 9, False: 10.4M]
  ------------------
  575|      9|            {
  576|      9|                ec = ubjson_errc::unknown_type;
  577|      9|                break;
  578|    273|            }
  579|  10.4M|        }
  580|  10.4M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  10.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 13, False: 10.4M]
  |  |  ------------------
  ------------------
  581|     13|        {
  582|     13|            more_ = false;
  583|     13|        }
  584|  10.4M|    }
_ZN8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10get_lengthERNS3_10error_codeE:
  790|   864k|    {
  791|   864k|        std::size_t length = 0;
  792|   864k|        uint8_t type;
  793|   864k|        if (source_.read(&type, 1) == 0)
  ------------------
  |  Branch (793:13): [True: 0, False: 864k]
  ------------------
  794|      0|        {
  795|      0|            ec = ubjson_errc::unexpected_eof;
  796|      0|            more_ = false;
  797|      0|            return length;
  798|      0|        }
  799|   864k|        switch (type)
  800|   864k|        {
  801|   848k|            case jsoncons::ubjson::ubjson_type::int8_type: 
  ------------------
  |  Branch (801:13): [True: 848k, False: 15.7k]
  ------------------
  802|   848k|            {
  803|   848k|                uint8_t buf[sizeof(int8_t)];
  804|   848k|                if (source_.read(buf, sizeof(int8_t)) != sizeof(int8_t))
  ------------------
  |  Branch (804:21): [True: 0, False: 848k]
  ------------------
  805|      0|                {
  806|      0|                    ec = ubjson_errc::unexpected_eof;
  807|      0|                    more_ = false;
  808|      0|                    return length;
  809|      0|                }
  810|   848k|                int8_t val = binary::big_to_native<int8_t>(buf, sizeof(buf));
  811|   848k|                if (val >= 0)
  ------------------
  |  Branch (811:21): [True: 848k, False: 1]
  ------------------
  812|   848k|                {
  813|   848k|                    length = val;
  814|   848k|                }
  815|      1|                else
  816|      1|                {
  817|      1|                    ec = ubjson_errc::length_is_negative;
  818|      1|                    more_ = false;
  819|      1|                    return length;
  820|      1|                }
  821|   848k|                break;
  822|   848k|            }
  823|   848k|            case jsoncons::ubjson::ubjson_type::uint8_type: 
  ------------------
  |  Branch (823:13): [True: 15.3k, False: 849k]
  ------------------
  824|  15.3k|            {
  825|  15.3k|                uint8_t b;
  826|  15.3k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (826:21): [True: 0, False: 15.3k]
  ------------------
  827|      0|                {
  828|      0|                    ec = ubjson_errc::unexpected_eof;
  829|      0|                    more_ = false;
  830|      0|                    return length;
  831|      0|                }
  832|  15.3k|                length = b;
  833|  15.3k|                break;
  834|  15.3k|            }
  835|    340|            case jsoncons::ubjson::ubjson_type::int16_type: 
  ------------------
  |  Branch (835:13): [True: 340, False: 864k]
  ------------------
  836|    340|            {
  837|    340|                uint8_t buf[sizeof(int16_t)];
  838|    340|                if (source_.read(buf, sizeof(int16_t)) != sizeof(int16_t))
  ------------------
  |  Branch (838:21): [True: 0, False: 340]
  ------------------
  839|      0|                {
  840|      0|                    ec = ubjson_errc::unexpected_eof;
  841|      0|                    more_ = false;
  842|      0|                    return length;
  843|      0|                }
  844|    340|                int16_t val = binary::big_to_native<int16_t>(buf, sizeof(buf));
  845|    340|                if (val >= 0)
  ------------------
  |  Branch (845:21): [True: 340, False: 0]
  ------------------
  846|    340|                {
  847|    340|                    length = val;
  848|    340|                }
  849|      0|                else
  850|      0|                {
  851|      0|                    ec = ubjson_errc::length_is_negative;
  852|      0|                    more_ = false;
  853|      0|                    return length;
  854|      0|                }
  855|    340|                break;
  856|    340|            }
  857|    340|            case jsoncons::ubjson::ubjson_type::int32_type: 
  ------------------
  |  Branch (857:13): [True: 31, False: 864k]
  ------------------
  858|     31|            {
  859|     31|                uint8_t buf[sizeof(int32_t)];
  860|     31|                if (source_.read(buf, sizeof(int32_t)) != sizeof(int32_t))
  ------------------
  |  Branch (860:21): [True: 0, False: 31]
  ------------------
  861|      0|                {
  862|      0|                    ec = ubjson_errc::unexpected_eof;
  863|      0|                    more_ = false;
  864|      0|                    return length;
  865|      0|                }
  866|     31|                int32_t val = binary::big_to_native<int32_t>(buf, sizeof(buf));
  867|     31|                if (val >= 0)
  ------------------
  |  Branch (867:21): [True: 31, False: 0]
  ------------------
  868|     31|                {
  869|     31|                    length = static_cast<std::size_t>(val);
  870|     31|                }
  871|      0|                else
  872|      0|                {
  873|      0|                    ec = ubjson_errc::length_is_negative;
  874|      0|                    more_ = false;
  875|      0|                    return length;
  876|      0|                }
  877|     31|                break;
  878|     31|            }
  879|     31|            case jsoncons::ubjson::ubjson_type::int64_type: 
  ------------------
  |  Branch (879:13): [True: 11, False: 864k]
  ------------------
  880|     11|            {
  881|     11|                uint8_t buf[sizeof(int64_t)];
  882|     11|                if (source_.read(buf, sizeof(int64_t)) != sizeof(int64_t))
  ------------------
  |  Branch (882:21): [True: 0, False: 11]
  ------------------
  883|      0|                {
  884|      0|                    ec = ubjson_errc::unexpected_eof;
  885|      0|                    more_ = false;
  886|      0|                    return length;
  887|      0|                }
  888|     11|                int64_t val = binary::big_to_native<int64_t>(buf, sizeof(buf));
  889|     11|                if (val >= 0)
  ------------------
  |  Branch (889:21): [True: 11, False: 0]
  ------------------
  890|     11|                {
  891|     11|                    length = (std::size_t)val;
  892|     11|                    if (length != (uint64_t)val)
  ------------------
  |  Branch (892:25): [True: 0, False: 11]
  ------------------
  893|      0|                    {
  894|      0|                        ec = ubjson_errc::number_too_large;
  895|      0|                        more_ = false;
  896|      0|                        return length;
  897|      0|                    }
  898|     11|                }
  899|      0|                else
  900|      0|                {
  901|      0|                    ec = ubjson_errc::length_is_negative;
  902|      0|                    more_ = false;
  903|      0|                    return length;
  904|      0|                }
  905|     11|                break;
  906|     11|            }
  907|     11|            default:
  ------------------
  |  Branch (907:13): [True: 0, False: 864k]
  ------------------
  908|      0|            {
  909|      0|                ec = ubjson_errc::length_must_be_integer;
  910|      0|                more_ = false;
  911|      0|                return length;
  912|     11|            }
  913|   864k|        }
  914|   864k|        return length;
  915|   864k|    }
_ZN8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  587|  1.21M|    {
  588|  1.21M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  1.21M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.21M]
  |  |  ------------------
  ------------------
  589|      0|        {
  590|      0|            ec = ubjson_errc::max_nesting_depth_exceeded;
  591|      0|            more_ = false;
  592|      0|            return;
  593|      0|        } 
  594|       |
  595|  1.21M|        auto c = source_.peek();
  596|  1.21M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  1.21M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 1.21M]
  |  |  ------------------
  ------------------
  597|      1|        {
  598|      1|            ec = ubjson_errc::unexpected_eof;
  599|      1|            more_ = false;
  600|      1|            return;
  601|      1|        }
  602|  1.21M|        if (c.value == jsoncons::ubjson::ubjson_type::type_marker)
  ------------------
  |  Branch (602:13): [True: 798, False: 1.21M]
  ------------------
  603|    798|        {
  604|    798|            source_.ignore(1);
  605|    798|            uint8_t b;
  606|    798|            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (606:17): [True: 0, False: 798]
  ------------------
  607|      0|            {
  608|      0|                ec = ubjson_errc::unexpected_eof;
  609|      0|                more_ = false;
  610|      0|                return;
  611|      0|            }
  612|    798|            c = source_.peek();
  613|    798|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|    798|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 798]
  |  |  ------------------
  ------------------
  614|      0|            {
  615|      0|                ec = ubjson_errc::unexpected_eof;
  616|      0|                more_ = false;
  617|      0|                return;
  618|      0|            }
  619|    798|            if (c.value == jsoncons::ubjson::ubjson_type::count_marker)
  ------------------
  |  Branch (619:17): [True: 797, False: 1]
  ------------------
  620|    797|            {
  621|    797|                source_.ignore(1);
  622|    797|                std::size_t length = get_length(ec);
  623|    797|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    797|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 797]
  |  |  ------------------
  ------------------
  624|      0|                {
  625|      0|                    return;
  626|      0|                }
  627|    797|                if (length > max_items_)
  ------------------
  |  Branch (627:21): [True: 0, False: 797]
  ------------------
  628|      0|                {
  629|      0|                    ec = ubjson_errc::max_items_exceeded;
  630|      0|                    more_ = false;
  631|      0|                    return;
  632|      0|                }
  633|    797|                state_stack_.emplace_back(parse_mode::strongly_typed_array,length,b);
  634|    797|                visitor.begin_array(length, semantic_tag::none, *this, ec);
  635|    797|                more_ = !cursor_mode_;
  636|    797|            }
  637|      1|            else
  638|      1|            {
  639|      1|                ec = ubjson_errc::count_required_after_type;
  640|      1|                more_ = false;
  641|      1|                return;
  642|      1|            }
  643|    798|        }
  644|  1.21M|        else if (c.value == jsoncons::ubjson::ubjson_type::count_marker)
  ------------------
  |  Branch (644:18): [True: 818, False: 1.21M]
  ------------------
  645|    818|        {
  646|    818|            source_.ignore(1);
  647|    818|            std::size_t length = get_length(ec);
  648|    818|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    818|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 818]
  |  |  ------------------
  ------------------
  649|      0|            {
  650|      0|                return;
  651|      0|            }
  652|    818|            if (length > max_items_)
  ------------------
  |  Branch (652:17): [True: 0, False: 818]
  ------------------
  653|      0|            {
  654|      0|                ec = ubjson_errc::max_items_exceeded;
  655|      0|                more_ = false;
  656|      0|                return;
  657|      0|            }
  658|    818|            state_stack_.emplace_back(parse_mode::array,length);
  659|    818|            visitor.begin_array(length, semantic_tag::none, *this, ec);
  660|    818|            more_ = !cursor_mode_;
  661|    818|        }
  662|  1.21M|        else
  663|  1.21M|        {
  664|  1.21M|            state_stack_.emplace_back(parse_mode::indefinite_array,0);
  665|  1.21M|            visitor.begin_array(semantic_tag::none, *this, ec);
  666|  1.21M|            more_ = !cursor_mode_;
  667|  1.21M|        }
  668|  1.21M|    }
_ZN8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  684|  1.55M|    {
  685|  1.55M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  1.55M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.55M]
  |  |  ------------------
  ------------------
  686|      0|        {
  687|      0|            ec = ubjson_errc::max_nesting_depth_exceeded;
  688|      0|            more_ = false;
  689|      0|            return;
  690|      0|        } 
  691|       |
  692|  1.55M|        auto c = source_.peek();
  693|  1.55M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  1.55M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 1.55M]
  |  |  ------------------
  ------------------
  694|      2|        {
  695|      2|            ec = ubjson_errc::unexpected_eof;
  696|      2|            more_ = false;
  697|      2|            return;
  698|      2|        }
  699|  1.55M|        if (c.value == jsoncons::ubjson::ubjson_type::type_marker)
  ------------------
  |  Branch (699:13): [True: 1.13k, False: 1.55M]
  ------------------
  700|  1.13k|        {
  701|  1.13k|            source_.ignore(1);
  702|  1.13k|            uint8_t b;
  703|  1.13k|            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (703:17): [True: 0, False: 1.13k]
  ------------------
  704|      0|            {
  705|      0|                ec = ubjson_errc::unexpected_eof;
  706|      0|                more_ = false;
  707|      0|                return;
  708|      0|            }
  709|  1.13k|            c = source_.peek();
  710|  1.13k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  1.13k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.13k]
  |  |  ------------------
  ------------------
  711|      0|            {
  712|      0|                ec = ubjson_errc::unexpected_eof;
  713|      0|                more_ = false;
  714|      0|                return;
  715|      0|            }
  716|  1.13k|            if (c.value == jsoncons::ubjson::ubjson_type::count_marker)
  ------------------
  |  Branch (716:17): [True: 1.13k, False: 0]
  ------------------
  717|  1.13k|            {
  718|  1.13k|                source_.ignore(1);
  719|  1.13k|                std::size_t length = get_length(ec);
  720|  1.13k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.13k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.13k]
  |  |  ------------------
  ------------------
  721|      0|                {
  722|      0|                    return;
  723|      0|                }
  724|  1.13k|                if (length > max_items_)
  ------------------
  |  Branch (724:21): [True: 0, False: 1.13k]
  ------------------
  725|      0|                {
  726|      0|                    ec = ubjson_errc::max_items_exceeded;
  727|      0|                    more_ = false;
  728|      0|                    return;
  729|      0|                }
  730|  1.13k|                state_stack_.emplace_back(parse_mode::strongly_typed_map_key,length,b);
  731|  1.13k|                visitor.begin_object(length, semantic_tag::none, *this, ec);
  732|  1.13k|                more_ = !cursor_mode_;
  733|  1.13k|            }
  734|      0|            else
  735|      0|            {
  736|      0|                ec = ubjson_errc::count_required_after_type;
  737|      0|                more_ = false;
  738|      0|                return;
  739|      0|            }
  740|  1.13k|        }
  741|  1.55M|        else
  742|  1.55M|        {
  743|  1.55M|            c = source_.peek();
  744|  1.55M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  1.55M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.55M]
  |  |  ------------------
  ------------------
  745|      0|            {
  746|      0|                ec = ubjson_errc::unexpected_eof;
  747|      0|                more_ = false;
  748|      0|                return;
  749|      0|            }
  750|  1.55M|            if (c.value == jsoncons::ubjson::ubjson_type::count_marker)
  ------------------
  |  Branch (750:17): [True: 27, False: 1.55M]
  ------------------
  751|     27|            {
  752|     27|                source_.ignore(1);
  753|     27|                std::size_t length = get_length(ec);
  754|     27|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     27|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 27]
  |  |  ------------------
  ------------------
  755|      0|                {
  756|      0|                    return;
  757|      0|                }
  758|     27|                if (length > max_items_)
  ------------------
  |  Branch (758:21): [True: 0, False: 27]
  ------------------
  759|      0|                {
  760|      0|                    ec = ubjson_errc::max_items_exceeded;
  761|      0|                    more_ = false;
  762|      0|                    return;
  763|      0|                }
  764|     27|                state_stack_.emplace_back(parse_mode::map_key,length);
  765|     27|                visitor.begin_object(length, semantic_tag::none, *this, ec);
  766|     27|                more_ = !cursor_mode_;
  767|     27|            }
  768|  1.55M|            else
  769|  1.55M|            {
  770|  1.55M|                state_stack_.emplace_back(parse_mode::indefinite_map_key,0);
  771|  1.55M|                visitor.begin_object(semantic_tag::none, *this, ec);
  772|  1.55M|                more_ = !cursor_mode_;
  773|  1.55M|            }
  774|  1.55M|        }
  775|  1.55M|    }
_ZN8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE8read_keyERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  918|   846k|    {
  919|   846k|        std::size_t length = get_length(ec);
  920|   846k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   846k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 846k]
  |  |  ------------------
  ------------------
  921|      1|        {
  922|      1|            ec = ubjson_errc::key_expected;
  923|      1|            more_ = false;
  924|      1|            return;
  925|      1|        }
  926|   846k|        auto data = source_.read_span(length, text_buffer_);
  927|   846k|        if (data.size() != length)
  ------------------
  |  Branch (927:13): [True: 4, False: 846k]
  ------------------
  928|      4|        {
  929|      4|            ec = ubjson_errc::unexpected_eof;
  930|      4|            more_ = false;
  931|      4|            return;
  932|      4|        }
  933|       |
  934|   846k|        auto result = unicode_traits::validate(data.data(), data.size());
  935|   846k|        if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (935:13): [True: 1, False: 846k]
  ------------------
  936|      1|        {
  937|      1|            ec = ubjson_errc::invalid_utf8;
  938|      1|            more_ = false;
  939|      1|            return;
  940|      1|        }
  941|   846k|        visitor.key(jsoncons::string_view(reinterpret_cast<const char*>(data.data()),data.size()), 
  942|   846k|            *this, ec);
  943|   846k|        more_ = !cursor_mode_;
  944|   846k|    }
_ZN8jsoncons6ubjson19basic_ubjson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  778|  1.55M|    {
  779|  1.55M|        --nesting_depth_;
  780|  1.55M|        visitor.end_object(*this, ec);
  781|  1.55M|        more_ = !cursor_mode_;
  782|  1.55M|        if (level() == mark_level_)
  ------------------
  |  Branch (782:13): [True: 0, False: 1.55M]
  ------------------
  783|      0|        {
  784|      0|            more_ = false;
  785|      0|        }
  786|  1.55M|        state_stack_.pop_back();
  787|  1.55M|    }

_ZN8jsoncons6ubjson19basic_ubjson_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RNS_18basic_json_visitorIcEERKNS0_21ubjson_decode_optionsERKS7_:
   48|     43|       : parser_(std::forward<Sourceable>(source), options, alloc),
   49|     43|         visitor_(visitor)
   50|     43|    {
   51|     43|    }
_ZN8jsoncons6ubjson19basic_ubjson_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4readERNS3_10error_codeE:
   64|     43|    {
   65|     43|        parser_.reset();
   66|     43|        parser_.parse(visitor_, ec);
   67|     43|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     43|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 43, False: 0]
  |  |  ------------------
  ------------------
   68|     43|        {
   69|     43|            return;
   70|     43|        }
   71|     43|    }

