LLVMFuzzerTestOneInput:
  205|  2.63k|{
  206|  2.63k|    static const uint8_t empty_input = 0;
  207|  2.63k|    const uint8_t* base = size == 0 ? &empty_input : data;
  ------------------
  |  Branch (207:27): [True: 0, False: 2.63k]
  ------------------
  208|  2.63k|    byte_span input(base, size);
  209|  2.63k|    const std::size_t p0 = size == 0 ? 0 : base[0] % (size + 1);
  ------------------
  |  Branch (209:28): [True: 0, False: 2.63k]
  ------------------
  210|  2.63k|    const std::size_t mid = size / 2;
  211|       |
  212|  2.63k|    const int fuzz_depth = size <= 2 ? default_max_nesting_depth : static_cast<int>(base[2] & 0x0f);
  ------------------
  |  Branch (212:28): [True: 204, False: 2.43k]
  ------------------
  213|  2.63k|    const int depths[] = {0, 1, fuzz_depth, default_max_nesting_depth};
  214|       |
  215|  2.63k|    for (int depth : depths)
  ------------------
  |  Branch (215:20): [True: 10.5k, False: 2.63k]
  ------------------
  216|  10.5k|    {
  217|  10.5k|        exercise_input(input, depth);
  218|  10.5k|        exercise_input(byte_span(base, mid), depth);
  219|  10.5k|        exercise_input(byte_span(base + mid, size - mid), depth);
  220|  10.5k|        exercise_input(byte_span(base + p0, size - p0), depth);
  221|  10.5k|    }
  222|       |
  223|  2.63k|    return 0;
  224|  2.63k|}
fuzz_cbor_view.cpp:_ZN12_GLOBAL__N_114exercise_inputEN8jsoncons6nonstd4spanIKhLm18446744073709551615EEEi:
  172|  42.1k|    {
  173|  42.1k|        auto scanned = scan(input, depth);
  174|  42.1k|        auto exact = parse_item(input, depth);
  175|       |
  176|  42.1k|        if (scanned.has_value())
  ------------------
  |  Branch (176:13): [True: 15.4k, False: 26.7k]
  ------------------
  177|  15.4k|        {
  178|  15.4k|            const item& first = scanned.value().first;
  179|  15.4k|            const byte_span remainder = scanned.value().remainder;
  180|  15.4k|            require(first.encoded_bytes().data() == input.data());
  181|  15.4k|            require(first.encoded_bytes().size() + remainder.size() == input.size());
  182|  15.4k|            require(remainder.data() == input.data() + first.encoded_bytes().size());
  183|       |
  184|  15.4k|            require(exact.has_value() == remainder.empty());
  185|  15.4k|            if (!exact.has_value())
  ------------------
  |  Branch (185:17): [True: 8.52k, False: 6.87k]
  ------------------
  186|  8.52k|            {
  187|  8.52k|                require(exact.error().code == jsoncons::cbor::cbor_errc::trailing_data);
  188|  8.52k|                require(exact.error().offset == first.encoded_bytes().size());
  189|  8.52k|            }
  190|  15.4k|            exercise_item(first, 24);
  191|  15.4k|        }
  192|  26.7k|        else
  193|  26.7k|        {
  194|  26.7k|            require(!exact.has_value());
  195|  26.7k|            require(exact.error().code == scanned.error().code);
  196|  26.7k|            require(exact.error().offset == scanned.error().offset);
  197|  26.7k|            require(scanned.error().offset <= input.size());
  198|  26.7k|            require(scanned.error().code != jsoncons::cbor::cbor_errc::success);
  199|  26.7k|        }
  200|  42.1k|    }
fuzz_cbor_view.cpp:_ZN12_GLOBAL__N_17requireEb:
   16|   300M|    {
   17|   300M|        if (!condition)
  ------------------
  |  Branch (17:13): [True: 0, False: 300M]
  ------------------
   18|      0|        {
   19|      0|            std::abort();
   20|      0|        }
   21|   300M|    }
fuzz_cbor_view.cpp:_ZN12_GLOBAL__N_113exercise_itemERKN8jsoncons4cbor4view4itemEi:
  104|  12.7M|    {
  105|  12.7M|        const byte_span bytes = scanned.encoded_bytes();
  106|  12.7M|        require(bytes.size() > 0);
  107|       |
  108|       |        // Self-similarity: an item's encoding is exactly one item.
  109|  12.7M|        auto reparsed = parse_item(bytes);
  110|  12.7M|        require(reparsed.has_value());
  111|  12.7M|        require(same(reparsed.value().encoded_bytes(), bytes));
  112|  12.7M|        require(reparsed.value().kind() == scanned.kind());
  113|  12.7M|        require(reparsed.value().argument() == scanned.argument());
  114|  12.7M|        require(reparsed.value().indefinite() == scanned.indefinite());
  115|       |
  116|       |        // Tags are present exactly when the encoding starts with one.
  117|  12.7M|        std::size_t tag_count = 0;
  118|  12.7M|        for (uint64_t tag : scanned.tags())
  ------------------
  |  Branch (118:27): [True: 10.0M, False: 12.7M]
  ------------------
  119|  10.0M|        {
  120|  10.0M|            (void)tag;
  121|  10.0M|            ++tag_count;
  122|  10.0M|        }
  123|  12.7M|        require(scanned.tags().empty() == (tag_count == 0));
  124|  12.7M|        require((bytes[0] >> 5) == 6 ? tag_count > 0 : tag_count == 0);
  ------------------
  |  Branch (124:17): [True: 69.9k, False: 12.6M]
  ------------------
  125|       |
  126|       |        // Typed accessors are total over checked items.
  127|  12.7M|        uint64_t u = 0;
  128|  12.7M|        int64_t i = 0;
  129|  12.7M|        bool b = false;
  130|  12.7M|        double d = 0;
  131|  12.7M|        const bool u_ok = scanned.uint64_value(u);
  132|  12.7M|        const bool i_ok = scanned.int64_value(i);
  133|  12.7M|        if (u_ok && u <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (133:13): [True: 10.3M, False: 2.41M]
  |  Branch (133:21): [True: 10.3M, False: 700]
  ------------------
  134|  10.3M|        {
  135|  10.3M|            require(i_ok && i == static_cast<int64_t>(u));
  ------------------
  |  Branch (135:21): [True: 10.3M, False: 0]
  |  Branch (135:29): [True: 10.3M, False: 0]
  ------------------
  136|  10.3M|        }
  137|  12.7M|        (void)scanned.bool_value(b);
  138|  12.7M|        (void)scanned.double_value(d);
  139|       |
  140|       |        // Copies agree with views, and assemble chunked strings from children.
  141|  12.7M|        jsoncons::string_view text_view;
  142|  12.7M|        std::string text_copy;
  143|  12.7M|        const bool view_ok = scanned.text(text_view);
  144|  12.7M|        const bool copy_ok = scanned.text(text_copy);
  145|  12.7M|        require(copy_ok == (scanned.kind() == item_kind::text_string));
  146|  12.7M|        require(!view_ok || (copy_ok && text_copy == std::string(text_view.data(), text_view.size())));
  ------------------
  |  Branch (146:17): [True: 12.4M, False: 256k]
  |  Branch (146:30): [True: 256k, False: 0]
  |  Branch (146:41): [True: 256k, False: 0]
  ------------------
  147|       |
  148|  12.7M|        jsoncons::span<const uint8_t> bytes_view;
  149|  12.7M|        std::vector<uint8_t> bytes_copy;
  150|  12.7M|        const bool bytes_view_ok = scanned.bytes(bytes_view);
  151|  12.7M|        const bool bytes_copy_ok = scanned.bytes(bytes_copy);
  152|  12.7M|        require(bytes_copy_ok == (scanned.kind() == item_kind::byte_string));
  153|  12.7M|        require(!bytes_view_ok || (bytes_copy_ok && bytes_copy.size() == bytes_view.size() &&
  ------------------
  |  Branch (153:17): [True: 12.6M, False: 95.4k]
  |  Branch (153:36): [True: 95.4k, False: 0]
  |  Branch (153:53): [True: 95.4k, False: 0]
  ------------------
  154|  95.4k|            (bytes_view.empty() || std::memcmp(bytes_copy.data(), bytes_view.data(), bytes_view.size()) == 0)));
  ------------------
  |  Branch (154:14): [True: 10.7k, False: 84.6k]
  |  Branch (154:36): [True: 84.6k, False: 0]
  ------------------
  155|       |
  156|  12.7M|        if (scanned.indefinite() && (copy_ok || bytes_copy_ok))
  ------------------
  |  Branch (156:13): [True: 20.3k, False: 12.7M]
  |  Branch (156:38): [True: 11.8k, False: 8.52k]
  |  Branch (156:49): [True: 6.33k, False: 2.18k]
  ------------------
  157|  18.2k|        {
  158|  18.2k|            std::size_t total = 0;
  159|  18.2k|            for (const item chunk : scanned.children())
  ------------------
  |  Branch (159:35): [True: 58.9k, False: 18.2k]
  ------------------
  160|  58.9k|            {
  161|  58.9k|                total += static_cast<std::size_t>(chunk.argument());
  162|  58.9k|            }
  163|  18.2k|            require(total == (copy_ok ? text_copy.size() : bytes_copy.size()));
  ------------------
  |  Branch (163:31): [True: 11.8k, False: 6.33k]
  ------------------
  164|  18.2k|        }
  165|       |
  166|  12.7M|        require(validate_text(scanned) ? scanned.kind() == item_kind::text_string : true);
  ------------------
  |  Branch (166:17): [True: 166k, False: 12.5M]
  ------------------
  167|       |
  168|  12.7M|        exercise_children(scanned, budget);
  169|  12.7M|    }
fuzz_cbor_view.cpp:_ZN12_GLOBAL__N_14sameEN8jsoncons6nonstd4spanIKhLm18446744073709551615EEES4_:
   24|  25.5M|    {
   25|  25.5M|        return a.data() == b.data() && a.size() == b.size();
  ------------------
  |  Branch (25:16): [True: 25.5M, False: 0]
  |  Branch (25:40): [True: 25.5M, False: 0]
  ------------------
   26|  25.5M|    }
fuzz_cbor_view.cpp:_ZN12_GLOBAL__N_117exercise_childrenERKN8jsoncons4cbor4view4itemEi:
   51|  12.7M|    {
   52|  12.7M|        const byte_span bytes = parent.encoded_bytes();
   53|  12.7M|        const std::size_t offset = content_offset(bytes);
   54|  12.7M|        byte_span rest(bytes.data() + offset, bytes.size() - offset);
   55|       |
   56|  12.7M|        const bool definite_container =
   57|  12.7M|            (parent.kind() == item_kind::array || parent.kind() == item_kind::map) && !parent.indefinite();
  ------------------
  |  Branch (57:14): [True: 705k, False: 12.0M]
  |  Branch (57:51): [True: 198k, False: 11.8M]
  |  Branch (57:87): [True: 901k, False: 2.18k]
  ------------------
   58|  12.7M|        const bool has_children = definite_container || parent.indefinite();
  ------------------
  |  Branch (58:35): [True: 901k, False: 11.8M]
  |  Branch (58:57): [True: 20.3k, False: 11.8M]
  ------------------
   59|       |
   60|  12.7M|        std::size_t count = 0;
   61|  12.7M|        for (const item child : parent.children())
  ------------------
  |  Branch (61:31): [True: 12.8M, False: 12.7M]
  ------------------
   62|  12.8M|        {
   63|  12.8M|            require(has_children);
   64|  12.8M|            if (parent.indefinite())
  ------------------
  |  Branch (64:17): [True: 9.45M, False: 3.36M]
  ------------------
   65|  9.45M|            {
   66|  9.45M|                require(!rest.empty() && rest[0] != 0xff);
  ------------------
  |  Branch (66:25): [True: 9.45M, False: 0]
  |  Branch (66:42): [True: 9.45M, False: 0]
  ------------------
   67|  9.45M|            }
   68|  12.8M|            auto oracle = scan(rest);
   69|  12.8M|            require(oracle.has_value());
   70|  12.8M|            require(same(child.encoded_bytes(), oracle.value().first.encoded_bytes()));
   71|  12.8M|            require(child.kind() == oracle.value().first.kind());
   72|  12.8M|            require(child.argument() == oracle.value().first.argument());
   73|  12.8M|            require(child.indefinite() == oracle.value().first.indefinite());
   74|  12.8M|            if (parent.kind() == item_kind::byte_string || parent.kind() == item_kind::text_string)
  ------------------
  |  Branch (74:17): [True: 9.66k, False: 12.8M]
  |  Branch (74:60): [True: 49.3k, False: 12.7M]
  ------------------
   75|  58.9k|            {
   76|  58.9k|                require(child.kind() == parent.kind() && !child.indefinite() && child.tags().empty());
  ------------------
  |  Branch (76:25): [True: 58.9k, False: 0]
  |  Branch (76:58): [True: 58.9k, False: 0]
  |  Branch (76:81): [True: 58.9k, False: 0]
  ------------------
   77|  58.9k|            }
   78|  12.8M|            rest = oracle.value().remainder;
   79|  12.8M|            ++count;
   80|  12.8M|            if (budget > 0)
  ------------------
  |  Branch (80:17): [True: 12.7M, False: 78.0k]
  ------------------
   81|  12.7M|            {
   82|  12.7M|                exercise_item(child, budget - 1);
   83|  12.7M|            }
   84|  12.8M|        }
   85|       |
   86|  12.7M|        if (!has_children)
  ------------------
  |  Branch (86:13): [True: 11.8M, False: 921k]
  ------------------
   87|  11.8M|        {
   88|  11.8M|            require(count == 0 && parent.children().empty());
  ------------------
  |  Branch (88:21): [True: 11.8M, False: 0]
  |  Branch (88:35): [True: 11.8M, False: 0]
  ------------------
   89|  11.8M|            return;
   90|  11.8M|        }
   91|   921k|        require(parent.children().empty() == (count == 0));
   92|   921k|        if (parent.indefinite())
  ------------------
  |  Branch (92:13): [True: 20.3k, False: 901k]
  ------------------
   93|  20.3k|        {
   94|  20.3k|            require(rest.size() == 1 && rest[0] == 0xff);
  ------------------
  |  Branch (94:21): [True: 20.3k, False: 0]
  |  Branch (94:41): [True: 20.3k, False: 0]
  ------------------
   95|  20.3k|        }
   96|   901k|        else
   97|   901k|        {
   98|   901k|            require(rest.empty());
   99|   901k|            require(count == (parent.kind() == item_kind::map ? 2 : 1) * parent.argument());
  ------------------
  |  Branch (99:31): [True: 197k, False: 703k]
  ------------------
  100|   901k|        }
  101|   921k|    }
fuzz_cbor_view.cpp:_ZN12_GLOBAL__N_114content_offsetEN8jsoncons6nonstd4spanIKhLm18446744073709551615EEE:
   31|  12.7M|    {
   32|  12.7M|        std::size_t pos = 0;
   33|  12.7M|        for (;;)
   34|  22.8M|        {
   35|  22.8M|            require(pos < bytes.size());
   36|  22.8M|            const uint8_t initial = bytes[pos];
   37|  22.8M|            const uint8_t info = initial & 0x1f;
   38|  22.8M|            pos += 1 + (info < 24 || info == 31 ? 0 : (std::size_t(1) << (info - 24)));
  ------------------
  |  Branch (38:25): [True: 17.1M, False: 5.68M]
  |  Branch (38:38): [True: 20.3k, False: 5.66M]
  ------------------
   39|  22.8M|            if ((initial >> 5) != 6)
  ------------------
  |  Branch (39:17): [True: 12.7M, False: 10.0M]
  ------------------
   40|  12.7M|            {
   41|  12.7M|                return pos;
   42|  12.7M|            }
   43|  22.8M|        }
   44|  12.7M|    }

_ZN8jsoncons6binary11decode_halfEt:
  548|  9.61k|    {
  549|       |    #if defined(__F16C__) && !defined(APPLE_MISSING_INTRINSICS)
  550|       |        return _cvtsh_ss(half);
  551|       |    #else
  552|  9.61k|        int64_t exp = (half >> 10) & 0x1f;
  553|  9.61k|        int64_t mant = half & 0x3ff;
  554|  9.61k|        double val;
  555|  9.61k|        if (exp == 0) 
  ------------------
  |  Branch (555:13): [True: 3.18k, False: 6.42k]
  ------------------
  556|  3.18k|        {
  557|  3.18k|            val = ldexp(static_cast<double>(mant), -24);
  558|  3.18k|        }
  559|  6.42k|        else if (exp != 31) 
  ------------------
  |  Branch (559:18): [True: 6.14k, False: 283]
  ------------------
  560|  6.14k|        {
  561|  6.14k|            val = ldexp(static_cast<double>(mant) + 1024.0, static_cast<int>(exp - 25));
  562|  6.14k|        } 
  563|    283|        else
  564|    283|        {
  565|    283|            val = mant == 0 ? std::numeric_limits<double>::infinity() : std::nan("");
  ------------------
  |  Branch (565:19): [True: 0, False: 283]
  ------------------
  566|    283|        }
  567|  9.61k|        return half & 0x8000 ? -val : val;
  ------------------
  |  Branch (567:16): [True: 5.98k, False: 3.63k]
  ------------------
  568|  9.61k|    #endif
  569|  9.61k|    }

_ZN8jsoncons6nonstd8expectedINS_4cbor4view11scan_resultENS3_10scan_errorEEC2IJS5_EEENS0_10unexpect_tEDpOT_:
   66|  53.5k|        : has_value_(false)
   67|  53.5k|    {
   68|  53.5k|        ::new (&error_) E(std::forward<Args>(args)...);
   69|  53.5k|    }
_ZN8jsoncons6nonstd8expectedINS_4cbor4view11scan_resultENS3_10scan_errorEEC2EOS4_:
   52|  25.5M|        : has_value_(true)
   53|  25.5M|    {
   54|  25.5M|        construct(std::move(value));
   55|  25.5M|    }
_ZN8jsoncons6nonstd8expectedINS_4cbor4view11scan_resultENS3_10scan_errorEE9constructEOS4_:
  276|  25.5M|    {
  277|  25.5M|        ::new (&value_) T(std::move(value));
  278|  25.5M|        has_value_ = true;
  279|  25.5M|    }
_ZNK8jsoncons6nonstd8expectedINS_4cbor4view11scan_resultENS3_10scan_errorEEcvbEv:
  148|  12.7M|    {
  149|  12.7M|        return has_value_;
  150|  12.7M|    }
_ZN8jsoncons6nonstd8expectedINS_4cbor4view4itemENS3_10scan_errorEEC2IJRS5_EEENS0_10unexpect_tEDpOT_:
   66|  26.7k|        : has_value_(false)
   67|  26.7k|    {
   68|  26.7k|        ::new (&error_) E(std::forward<Args>(args)...);
   69|  26.7k|    }
_ZN8jsoncons6nonstd8expectedINS_4cbor4view4itemENS3_10scan_errorEEC2IJS5_EEENS0_10unexpect_tEDpOT_:
   66|  8.52k|        : has_value_(false)
   67|  8.52k|    {
   68|  8.52k|        ::new (&error_) E(std::forward<Args>(args)...);
   69|  8.52k|    }
_ZN8jsoncons6nonstd8expectedINS_4cbor4view4itemENS3_10scan_errorEEC2ERKS4_:
   46|  12.7M|        : has_value_(true)
   47|  12.7M|    {
   48|  12.7M|        construct(value);
   49|  12.7M|    }
_ZN8jsoncons6nonstd8expectedINS_4cbor4view4itemENS3_10scan_errorEE9constructERKS4_:
  270|  12.7M|    {
  271|  12.7M|        ::new (&value_) T(value);
  272|  12.7M|        has_value_ = true;
  273|  12.7M|    }
_ZNK8jsoncons6nonstd8expectedINS_4cbor4view11scan_resultENS3_10scan_errorEE9has_valueEv:
  153|  12.8M|    {
  154|  12.8M|        return has_value_;
  155|  12.8M|    }
_ZNR8jsoncons6nonstd8expectedINS_4cbor4view11scan_resultENS3_10scan_errorEE5valueEv:
  158|  89.6M|    {
  159|  89.6M|        if (has_value_)
  ------------------
  |  Branch (159:13): [True: 89.6M, False: 0]
  ------------------
  160|  89.6M|        {
  161|  89.6M|            return this->value_;
  162|  89.6M|        }
  163|      0|        JSONCONS_THROW(std::runtime_error("Bad expected access"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  164|  89.6M|    }
_ZNK8jsoncons6nonstd8expectedINS_4cbor4view4itemENS3_10scan_errorEE9has_valueEv:
  153|  12.8M|    {
  154|  12.8M|        return has_value_;
  155|  12.8M|    }
_ZNR8jsoncons6nonstd8expectedINS_4cbor4view4itemENS3_10scan_errorEE5errorEv:
  194|  70.6k|    {
  195|  70.6k|        assert(!has_value_);
  ------------------
  |  Branch (195:9): [True: 70.6k, False: 0]
  ------------------
  196|  70.6k|        return this->error_;
  197|  70.6k|    }
_ZNR8jsoncons6nonstd8expectedINS_4cbor4view4itemENS3_10scan_errorEE5valueEv:
  158|  50.9M|    {
  159|  50.9M|        if (has_value_)
  ------------------
  |  Branch (159:13): [True: 50.9M, False: 0]
  ------------------
  160|  50.9M|        {
  161|  50.9M|            return this->value_;
  162|  50.9M|        }
  163|      0|        JSONCONS_THROW(std::runtime_error("Bad expected access"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  164|  50.9M|    }
_ZNR8jsoncons6nonstd8expectedINS_4cbor4view11scan_resultENS3_10scan_errorEE5errorEv:
  194|   133k|    {
  195|   133k|        assert(!has_value_);
  ------------------
  |  Branch (195:9): [True: 133k, False: 0]
  ------------------
  196|   133k|        return this->error_;
  197|   133k|    }
_ZN8jsoncons6nonstd8expectedINS_4cbor4view4itemENS3_10scan_errorEED2Ev:
  100|  12.7M|    {
  101|  12.7M|        destroy();
  102|  12.7M|    }
_ZN8jsoncons6nonstd8expectedINS_4cbor4view4itemENS3_10scan_errorEE7destroyEv:
  282|  12.7M|    {
  283|  12.7M|        if (has_value_) 
  ------------------
  |  Branch (283:13): [True: 12.7M, False: 35.3k]
  ------------------
  284|  12.7M|        {
  285|  12.7M|            value_.~T();
  286|  12.7M|            has_value_ = false;
  287|  12.7M|        }
  288|  35.3k|        else
  289|  35.3k|        {
  290|  35.3k|            error_.~E();
  291|  35.3k|        }
  292|  12.7M|    }
_ZN8jsoncons6nonstd8expectedINS_4cbor4view11scan_resultENS3_10scan_errorEED2Ev:
  100|  25.6M|    {
  101|  25.6M|        destroy();
  102|  25.6M|    }
_ZN8jsoncons6nonstd8expectedINS_4cbor4view11scan_resultENS3_10scan_errorEE7destroyEv:
  282|  25.6M|    {
  283|  25.6M|        if (has_value_) 
  ------------------
  |  Branch (283:13): [True: 25.5M, False: 53.5k]
  ------------------
  284|  25.5M|        {
  285|  25.5M|            value_.~T();
  286|  25.5M|            has_value_ = false;
  287|  25.5M|        }
  288|  53.5k|        else
  289|  53.5k|        {
  290|  53.5k|            error_.~E();
  291|  53.5k|        }
  292|  25.6M|    }

_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2EPS2_m:
  102|  77.0M|        : data_(data), size_(size)
  103|  77.0M|    {
  104|  77.0M|    }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4dataEv:
  154|   192M|    {
  155|   192M|        return data_;
  156|   192M|    }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4sizeEv:
  159|   150M|    {
  160|   150M|        return size_;
  161|   150M|    }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE5emptyEv:
  164|  48.8M|    { 
  165|  48.8M|        return size_ == 0; 
  166|  48.8M|    }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EEixEm:
  169|  45.0M|     {
  170|  45.0M|         return data_[index];
  171|  45.0M|     }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2Ev:
   99|  12.7M|    {
  100|  12.7M|    }

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   269k|    {
 1148|   269k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   269k|        const uint8_t* end = it + length;
 1150|       |
 1151|   269k|        unicode_errc  result{};
 1152|   772k|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 604k, False: 168k]
  ------------------
 1153|   604k|        {
 1154|   604k|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 215k, False: 389k]
  ------------------
 1155|   215k|            {
 1156|  1.16M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  342|   430k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (342:32): [True: 201k, False: 13.7k]
  |  |  |  Branch (342:34): [True: 196k, False: 5.39k]
  |  |  |  Branch (342:36): [True: 186k, False: 9.55k]
  |  |  |  Branch (342:38): [True: 161k, False: 25.0k]
  |  |  |  Branch (342:40): [True: 153k, False: 8.47k]
  |  |  |  Branch (342:42): [True: 132k, False: 20.5k]
  |  |  |  Branch (342:44): [True: 128k, False: 4.07k]
  |  |  |  Branch (342:46): [True: 124k, False: 4.29k]
  |  |  ------------------
  ------------------
 1157|   124k|                continue;
 1158|  1.16M|            }
 1159|   480k|    non_ascii:
 1160|   480k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|   480k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 5.38k, False: 474k]
  ------------------
 1162|  5.38k|            {
 1163|  5.38k|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|  5.38k|            }
 1165|   474k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 95.9k, False: 378k]
  ------------------
 1166|  95.9k|            {
 1167|  95.9k|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|  95.9k|            }
 1169|   378k|            it += len;
 1170|   378k|        }
 1171|   168k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   269k|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|   474k|    {
  306|   474k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|   474k|        const uint8_t* end = it+length;
  308|       |
  309|   474k|        uint8_t byte;
  310|   474k|        switch (length) {
  311|  6.92k|        default:
  ------------------
  |  Branch (311:9): [True: 6.92k, False: 467k]
  ------------------
  312|  6.92k|            return unicode_errc::over_long_utf8_sequence;
  313|  34.3k|        case 4:
  ------------------
  |  Branch (313:9): [True: 34.3k, False: 440k]
  ------------------
  314|  34.3k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 15.4k, False: 18.8k]
  ------------------
  315|  15.4k|                return unicode_errc::bad_continuation_byte;
  316|  18.8k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|  18.8k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  24.5k|        case 3:
  ------------------
  |  Branch (317:9): [True: 5.72k, False: 469k]
  ------------------
  318|  24.5k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 2.43k, False: 22.1k]
  ------------------
  319|  2.43k|                return unicode_errc::bad_continuation_byte;
  320|  22.1k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|  22.1k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  43.1k|        case 2:
  ------------------
  |  Branch (321:9): [True: 21.0k, False: 453k]
  ------------------
  322|  43.1k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 25.1k, False: 17.9k]
  ------------------
  323|  25.1k|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  17.9k|            switch (*it) 
  326|  17.9k|            {
  327|       |                // no fall-through in this inner switch
  328|  1.77k|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 1.77k, False: 16.1k]
  |  Branch (328:32): [True: 1.46k, False: 306]
  ------------------
  329|  1.44k|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 1.44k, False: 16.5k]
  |  Branch (329:32): [True: 199, False: 1.24k]
  ------------------
  330|  1.24k|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 580, False: 17.3k]
  |  Branch (330:32): [True: 244, False: 336]
  ------------------
  331|  12.2k|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 12.2k, False: 5.68k]
  |  Branch (331:32): [True: 11.9k, False: 350]
  ------------------
  332|  1.89k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 1.89k, False: 16.0k]
  |  Branch (332:32): [True: 0, False: 1.89k]
  ------------------
  333|  17.9k|            }
  334|       |
  335|  4.12k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|  4.12k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|   410k|        case 1:
  ------------------
  |  Branch (336:9): [True: 406k, False: 67.9k]
  ------------------
  337|   410k|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 35.9k, False: 374k]
  |  Branch (337:32): [True: 31.8k, False: 4.12k]
  ------------------
  338|  31.8k|                return unicode_errc::source_illegal;
  339|   379k|            break;
  340|   474k|        }
  341|   379k|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 218, False: 378k]
  ------------------
  342|    218|            return unicode_errc::source_illegal;
  343|       |
  344|   378k|        return unicode_errc();
  345|   379k|    }

_ZN8jsoncons4cbor4view4scanENS_6nonstd4spanIKhLm18446744073709551615EEEi:
  970|  25.6M|    {
  971|  25.6M|        if (input.empty())
  ------------------
  |  Branch (971:13): [True: 3.11k, False: 25.6M]
  ------------------
  972|  3.11k|        {
  973|  3.11k|            return expected<scan_result, scan_error>(unexpect,
  974|  3.11k|                scan_error{cbor_errc::unexpected_eof, 0});
  975|  3.11k|        }
  976|  25.6M|        const uint8_t* p = input.data();
  977|  25.6M|        const uint8_t* end = p + input.size();
  978|  25.6M|        cbor_errc ec{};
  979|       |
  980|  25.6M|        ondemand_detail::item_head head;
  981|  25.6M|        bool ok = ondemand_detail::read_value_head(p, end, head, ec);
  982|  25.6M|        const uint8_t* content = p;
  983|  25.6M|        if (ok)
  ------------------
  |  Branch (983:13): [True: 25.6M, False: 14.5k]
  ------------------
  984|  25.6M|        {
  985|  25.6M|            if (head.major_type == cbor::cbor_major_type::array ||
  ------------------
  |  Branch (985:17): [True: 1.45M, False: 24.1M]
  ------------------
  986|  24.1M|                head.major_type == cbor::cbor_major_type::map)
  ------------------
  |  Branch (986:17): [True: 406k, False: 23.7M]
  ------------------
  987|  1.86M|            {
  988|  1.86M|                ok = ondemand_detail::skip_container(p, end, head, max_nesting_depth, ec);
  989|  1.86M|            }
  990|  23.7M|            else
  991|  23.7M|            {
  992|  23.7M|                ok = ondemand_detail::skip_scalar_or_string(head, p, end, ec);
  993|  23.7M|            }
  994|  25.6M|        }
  995|  25.6M|        if (!ok)
  ------------------
  |  Branch (995:13): [True: 50.4k, False: 25.5M]
  ------------------
  996|  50.4k|        {
  997|  50.4k|            return expected<scan_result, scan_error>(unexpect,
  998|  50.4k|                scan_error{ec, static_cast<std::size_t>(p - input.data())});
  999|  50.4k|        }
 1000|  25.5M|        return scan_result{
 1001|  25.5M|            ondemand_detail::item_access::make(
 1002|  25.5M|                span<const uint8_t>(input.data(), static_cast<std::size_t>(p - input.data())), head, content),
 1003|  25.5M|            span<const uint8_t>(p, static_cast<std::size_t>(end - p))};
 1004|  25.6M|    }
_ZN8jsoncons4cbor4view15ondemand_detail15read_value_headERPKhS4_RNS2_9item_headERNS0_9cbor_errcE:
  250|   238M|        {
  251|   238M|            do
  252|   296M|            {
  253|   296M|                if (!read_head(p, end, head, ec))
  ------------------
  |  Branch (253:21): [True: 21.1k, False: 296M]
  ------------------
  254|  21.1k|                {
  255|  21.1k|                    return false;
  256|  21.1k|                }
  257|   296M|            }
  258|   296M|            while (head.major_type == cbor::cbor_major_type::semantic_tag);
  ------------------
  |  Branch (258:20): [True: 57.9M, False: 238M]
  ------------------
  259|   238M|            return true;
  260|   238M|        }
_ZN8jsoncons4cbor4view15ondemand_detail9read_headERPKhS4_RNS2_9item_headERNS0_9cbor_errcE:
  206|   307M|        {
  207|   307M|            if (p == end)
  ------------------
  |  Branch (207:17): [True: 4.91k, False: 307M]
  ------------------
  208|  4.91k|            {
  209|  4.91k|                ec = cbor_errc::unexpected_eof;
  210|  4.91k|                return false;
  211|  4.91k|            }
  212|       |
  213|   307M|            const uint8_t initial = *p++;
  214|   307M|            head.major_type = static_cast<cbor::cbor_major_type>(initial >> 5);
  215|   307M|            head.additional_info = initial & 0x1f;
  216|   307M|            head.value = 0;
  217|       |
  218|   307M|            if (head.additional_info == cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (218:17): [True: 902k, False: 306M]
  ------------------
  219|   902k|            {
  220|   902k|                switch (head.major_type)
  221|   902k|                {
  222|   244k|                    case cbor::cbor_major_type::byte_string:
  ------------------
  |  Branch (222:21): [True: 244k, False: 657k]
  ------------------
  223|   828k|                    case cbor::cbor_major_type::text_string:
  ------------------
  |  Branch (223:21): [True: 584k, False: 317k]
  ------------------
  224|   881k|                    case cbor::cbor_major_type::array:
  ------------------
  |  Branch (224:21): [True: 52.9k, False: 849k]
  ------------------
  225|   894k|                    case cbor::cbor_major_type::map:
  ------------------
  |  Branch (225:21): [True: 12.7k, False: 889k]
  ------------------
  226|   894k|                        break;
  227|  7.77k|                    default:
  ------------------
  |  Branch (227:21): [True: 7.77k, False: 894k]
  ------------------
  228|  7.77k|                        ec = cbor_errc::unknown_type;
  229|  7.77k|                        return false;
  230|   902k|                }
  231|   894k|                return true;
  232|   902k|            }
  233|   306M|            if (!read_uint(p, end, head.additional_info, head.value, ec))
  ------------------
  |  Branch (233:17): [True: 10.1k, False: 306M]
  ------------------
  234|  10.1k|            {
  235|  10.1k|                return false;
  236|  10.1k|            }
  237|       |            // RFC 8949 3.3: a two-byte encoding of a simple value below 32
  238|       |            // is not well-formed.
  239|   306M|            if (head.major_type == cbor::cbor_major_type::simple &&
  ------------------
  |  Branch (239:17): [True: 20.8M, False: 285M]
  ------------------
  240|  20.8M|                head.additional_info == 24 && head.value < 32)
  ------------------
  |  Branch (240:17): [True: 1.03M, False: 19.8M]
  |  Branch (240:47): [True: 514, False: 1.03M]
  ------------------
  241|    514|            {
  242|    514|                ec = cbor_errc::unknown_type;
  243|    514|                return false;
  244|    514|            }
  245|   306M|            return true;
  246|   306M|        }
_ZN8jsoncons4cbor4view15ondemand_detail9read_uintERPKhS4_hRmRNS0_9cbor_errcE:
  171|   306M|        {
  172|   306M|            if (info < 24)
  ------------------
  |  Branch (172:17): [True: 258M, False: 48.0M]
  ------------------
  173|   258M|            {
  174|   258M|                value = info;
  175|   258M|                return true;
  176|   258M|            }
  177|       |
  178|  48.0M|            std::size_t length = 0;
  179|  48.0M|            switch (info)
  180|  48.0M|            {
  181|  5.23M|                case 24: length = 1; break;
  ------------------
  |  Branch (181:17): [True: 5.23M, False: 42.7M]
  ------------------
  182|  41.8M|                case 25: length = 2; break;
  ------------------
  |  Branch (182:17): [True: 41.8M, False: 6.21M]
  ------------------
  183|  98.6k|                case 26: length = 4; break;
  ------------------
  |  Branch (183:17): [True: 98.6k, False: 47.9M]
  ------------------
  184|   881k|                case 27: length = 8; break;
  ------------------
  |  Branch (184:17): [True: 881k, False: 47.1M]
  ------------------
  185|  1.87k|                default:
  ------------------
  |  Branch (185:17): [True: 1.87k, False: 48.0M]
  ------------------
  186|  1.87k|                    ec = cbor_errc::reserved_additional_info;
  187|  1.87k|                    return false;
  188|  48.0M|            }
  189|       |
  190|  48.0M|            if (static_cast<std::size_t>(end - p) < length)
  ------------------
  |  Branch (190:17): [True: 8.26k, False: 48.0M]
  ------------------
  191|  8.26k|            {
  192|  8.26k|                ec = cbor_errc::unexpected_eof;
  193|  8.26k|                return false;
  194|  8.26k|            }
  195|       |
  196|  48.0M|            value = 0;
  197|   144M|            for (std::size_t i = 0; i < length; ++i)
  ------------------
  |  Branch (197:37): [True: 96.2M, False: 48.0M]
  ------------------
  198|  96.2M|            {
  199|  96.2M|                value = (value << 8) | static_cast<uint64_t>(p[i]);
  200|  96.2M|            }
  201|  48.0M|            p += length;
  202|  48.0M|            return true;
  203|  48.0M|        }
_ZN8jsoncons4cbor4view15ondemand_detail14skip_containerERPKhS4_NS2_9item_headEiRNS0_9cbor_errcE:
  400|  1.86M|        {
  401|  1.86M|            const std::size_t depth_limit = max_nesting_depth > 0 ? static_cast<std::size_t>(max_nesting_depth) : 0;
  ------------------
  |  Branch (401:45): [True: 1.85M, False: 9.76k]
  ------------------
  402|       |
  403|  1.86M|            pending_stack open;
  404|  1.86M|            uint64_t current = 0;
  405|       |
  406|  1.86M|            for (;;)
  407|  31.5M|            {
  408|       |                // Open the container in `head`.
  409|  31.5M|                if (JSONCONS_UNLIKELY(open.size() >= depth_limit))
  ------------------
  |  |   79|  31.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 15.2k, False: 31.4M]
  |  |  ------------------
  ------------------
  410|  15.2k|                {
  411|  15.2k|                    ec = cbor_errc::max_nesting_depth_exceeded;
  412|  15.2k|                    return false;
  413|  15.2k|                }
  414|  31.4M|                const uint64_t remaining = remaining_items(head, static_cast<std::size_t>(end - p));
  415|  31.4M|                if (remaining != 0)
  ------------------
  |  Branch (415:21): [True: 30.2M, False: 1.23M]
  ------------------
  416|  30.2M|                {
  417|  30.2M|                    open.push(current);
  418|  30.2M|                    current = remaining;
  419|  30.2M|                }
  420|       |
  421|       |                // Walk items in place until the next container head.
  422|  31.4M|                for (;;)
  423|   205M|                {
  424|       |                    // Close finished levels, then count off the next item.
  425|   205M|                    if (current != 0 && current < indefinite_map_value_marker)
  ------------------
  |  Branch (425:25): [True: 173M, False: 31.9M]
  |  Branch (425:41): [True: 119M, False: 54.1M]
  ------------------
  426|   119M|                    {
  427|   119M|                        --current;
  428|   119M|                    }
  429|  86.0M|                    else if (current == 0)
  ------------------
  |  Branch (429:30): [True: 31.9M, False: 54.1M]
  ------------------
  430|  31.9M|                    {
  431|  31.9M|                        if (open.empty())
  ------------------
  |  Branch (431:29): [True: 1.83M, False: 30.1M]
  ------------------
  432|  1.83M|                        {
  433|  1.83M|                            return true;
  434|  1.83M|                        }
  435|  30.1M|                        current = open.pop();
  436|  30.1M|                        continue;
  437|  31.9M|                    }
  438|  54.1M|                    else if (current == indefinite_map_value_marker)
  ------------------
  |  Branch (438:30): [True: 5.34M, False: 48.7M]
  ------------------
  439|  5.34M|                    {
  440|  5.34M|                        current = indefinite_map_key_marker;
  441|  5.34M|                    }
  442|  48.7M|                    else // at an element or entry boundary, where a break may close the level
  443|  48.7M|                    {
  444|  48.7M|                        if (p >= end)
  ------------------
  |  Branch (444:29): [True: 864, False: 48.7M]
  ------------------
  445|    864|                        {
  446|    864|                            ec = cbor_errc::unexpected_eof;
  447|    864|                            return false;
  448|    864|                        }
  449|  48.7M|                        if (*p == 0xff)
  ------------------
  |  Branch (449:29): [True: 42.8k, False: 48.7M]
  ------------------
  450|  42.8k|                        {
  451|  42.8k|                            ++p;
  452|  42.8k|                            current = open.pop();
  453|  42.8k|                            continue;
  454|  42.8k|                        }
  455|  48.7M|                        if (current == indefinite_map_key_marker)
  ------------------
  |  Branch (455:29): [True: 5.35M, False: 43.3M]
  ------------------
  456|  5.35M|                        {
  457|  5.35M|                            current = indefinite_map_value_marker;
  458|  5.35M|                        }
  459|  48.7M|                    }
  460|       |
  461|   173M|                    if (!read_value_head(p, end, head, ec))
  ------------------
  |  Branch (461:25): [True: 6.68k, False: 173M]
  ------------------
  462|  6.68k|                    {
  463|  6.68k|                        return false;
  464|  6.68k|                    }
  465|   173M|                    if (head.major_type == cbor::cbor_major_type::array ||
  ------------------
  |  Branch (465:25): [True: 28.0M, False: 145M]
  ------------------
  466|   145M|                        head.major_type == cbor::cbor_major_type::map)
  ------------------
  |  Branch (466:25): [True: 1.63M, False: 144M]
  ------------------
  467|  29.6M|                    {
  468|  29.6M|                        break;
  469|  29.6M|                    }
  470|   144M|                    if (!skip_scalar_or_string(head, p, end, ec))
  ------------------
  |  Branch (470:25): [True: 4.30k, False: 144M]
  ------------------
  471|  4.30k|                    {
  472|  4.30k|                        return false;
  473|  4.30k|                    }
  474|   144M|                }
  475|  31.4M|            }
  476|  1.86M|        }
_ZNK8jsoncons4cbor4view15ondemand_detail13pending_stack4sizeEv:
  364|  31.5M|            {
  365|  31.5M|                return size_;
  366|  31.5M|            }
_ZN8jsoncons4cbor4view15ondemand_detail15remaining_itemsERKNS2_9item_headEm:
  339|  31.4M|        {
  340|  31.4M|            const bool is_map = head.major_type == cbor::cbor_major_type::map;
  341|  31.4M|            if (head.indefinite())
  ------------------
  |  Branch (341:17): [True: 62.0k, False: 31.4M]
  ------------------
  342|  62.0k|            {
  343|  62.0k|                return is_map ? indefinite_map_key_marker : indefinite_array_marker;
  ------------------
  |  Branch (343:24): [True: 11.5k, False: 50.5k]
  ------------------
  344|  62.0k|            }
  345|  31.4M|            const uint64_t limit = static_cast<uint64_t>(available);
  346|  31.4M|            return is_map ? 2 * (std::min)(head.value, limit / 2 + 1)
  ------------------
  |  Branch (346:20): [True: 2.02M, False: 29.3M]
  ------------------
  347|  31.4M|                          : (std::min)(head.value, limit + 1);
  348|  31.4M|        }
_ZNK8jsoncons4cbor4view15ondemand_detail9item_head10indefiniteEv:
   64|   141M|            {
   65|   141M|                return additional_info == cbor::detail::additional_info::indefinite_length;
   66|   141M|            }
_ZN8jsoncons4cbor4view15ondemand_detail13pending_stack4pushEm:
  369|  30.2M|            {
  370|  30.2M|                if (size_ < local_capacity)
  ------------------
  |  Branch (370:21): [True: 27.7M, False: 2.47M]
  ------------------
  371|  27.7M|                {
  372|  27.7M|                    local_[size_] = value;
  373|  27.7M|                }
  374|  2.47M|                else
  375|  2.47M|                {
  376|  2.47M|                    spill_.push_back(value);
  377|  2.47M|                }
  378|  30.2M|                ++size_;
  379|  30.2M|            }
_ZNK8jsoncons4cbor4view15ondemand_detail13pending_stack5emptyEv:
  359|  31.9M|            {
  360|  31.9M|                return size_ == 0;
  361|  31.9M|            }
_ZN8jsoncons4cbor4view15ondemand_detail13pending_stack3popEv:
  382|  30.1M|            {
  383|  30.1M|                --size_;
  384|  30.1M|                if (size_ >= local_capacity)
  ------------------
  |  Branch (384:21): [True: 2.43M, False: 27.7M]
  ------------------
  385|  2.43M|                {
  386|  2.43M|                    const uint64_t value = spill_.back();
  387|  2.43M|                    spill_.pop_back();
  388|  2.43M|                    return value;
  389|  2.43M|                }
  390|  27.7M|                return local_[size_];
  391|  30.1M|            }
_ZN8jsoncons4cbor4view15ondemand_detail21skip_scalar_or_stringERKNS2_9item_headERPKhS7_RNS0_9cbor_errcE:
  299|   199M|        {
  300|   199M|            switch (head.major_type)
  301|   199M|            {
  302|   169M|                case cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (302:17): [True: 169M, False: 29.9M]
  ------------------
  303|   171M|                case cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (303:17): [True: 2.36M, False: 197M]
  ------------------
  304|   192M|                case cbor::cbor_major_type::simple:
  ------------------
  |  Branch (304:17): [True: 20.7M, False: 178M]
  ------------------
  305|   192M|                    return true;
  306|       |
  307|  3.10M|                case cbor::cbor_major_type::byte_string:
  ------------------
  |  Branch (307:17): [True: 3.10M, False: 196M]
  ------------------
  308|  6.82M|                case cbor::cbor_major_type::text_string:
  ------------------
  |  Branch (308:17): [True: 3.72M, False: 195M]
  ------------------
  309|  6.82M|                    if (head.indefinite())
  ------------------
  |  Branch (309:25): [True: 828k, False: 5.99M]
  ------------------
  310|   828k|                    {
  311|   828k|                        return skip_string_chunks(p, end, head.major_type, ec);
  312|   828k|                    }
  313|  5.99M|                    if (static_cast<uint64_t>(end - p) < head.value)
  ------------------
  |  Branch (313:25): [True: 5.50k, False: 5.99M]
  ------------------
  314|  5.50k|                    {
  315|  5.50k|                        ec = cbor_errc::unexpected_eof;
  316|  5.50k|                        return false;
  317|  5.50k|                    }
  318|  5.99M|                    p += static_cast<std::size_t>(head.value);
  319|  5.99M|                    return true;
  320|       |
  321|      0|                default:
  ------------------
  |  Branch (321:17): [True: 0, False: 199M]
  ------------------
  322|      0|                    ec = cbor_errc::unknown_type;
  323|      0|                    return false;
  324|   199M|            }
  325|   199M|        }
_ZN8jsoncons4cbor4view15ondemand_detail18skip_string_chunksERPKhS4_NS0_15cbor_major_typeERNS0_9cbor_errcE:
  264|   828k|        {
  265|   828k|            for (;;)
  266|  2.19M|            {
  267|  2.19M|                if (p >= end)
  ------------------
  |  Branch (267:21): [True: 1.21k, False: 2.19M]
  ------------------
  268|  1.21k|                {
  269|  1.21k|                    ec = cbor_errc::unexpected_eof;
  270|  1.21k|                    return false;
  271|  1.21k|                }
  272|  2.19M|                if (*p == 0xff)
  ------------------
  |  Branch (272:21): [True: 820k, False: 1.37M]
  ------------------
  273|   820k|                {
  274|   820k|                    ++p;
  275|   820k|                    return true;
  276|   820k|                }
  277|       |
  278|  1.37M|                item_head chunk;
  279|  1.37M|                if (!read_head(p, end, chunk, ec))
  ------------------
  |  Branch (279:21): [True: 2.13k, False: 1.36M]
  ------------------
  280|  2.13k|                {
  281|  2.13k|                    return false;
  282|  2.13k|                }
  283|  1.36M|                if (chunk.major_type != expected_major || chunk.indefinite())
  ------------------
  |  Branch (283:21): [True: 1.01k, False: 1.36M]
  |  Branch (283:59): [True: 160, False: 1.36M]
  ------------------
  284|  1.17k|                {
  285|  1.17k|                    ec = cbor_errc::illegal_chunked_string;
  286|  1.17k|                    return false;
  287|  1.17k|                }
  288|  1.36M|                if (static_cast<uint64_t>(end - p) < chunk.value)
  ------------------
  |  Branch (288:21): [True: 3.07k, False: 1.36M]
  ------------------
  289|  3.07k|                {
  290|  3.07k|                    ec = cbor_errc::unexpected_eof;
  291|  3.07k|                    return false;
  292|  3.07k|                }
  293|  1.36M|                p += static_cast<std::size_t>(chunk.value);
  294|  1.36M|            }
  295|   828k|        }
_ZN8jsoncons4cbor4view15ondemand_detail11item_access4makeENS_6nonstd4spanIKhLm18446744073709551615EEERKNS2_9item_headEPS6_:
  640|  38.5M|            {
  641|  38.5M|                return item(bytes, head, content);
  642|  38.5M|            }
_ZN8jsoncons4cbor4view4itemC2ENS_6nonstd4spanIKhLm18446744073709551615EEERKNS1_15ondemand_detail9item_headEPS5_:
  622|  38.5M|            : bytes_(bytes), head_(head), content_(content)
  623|  38.5M|        {
  624|  38.5M|        }
_ZN8jsoncons4cbor4view10parse_itemENS_6nonstd4spanIKhLm18446744073709551615EEEi:
 1010|  12.7M|    {
 1011|  12.7M|        auto scanned = scan(input, max_nesting_depth);
 1012|  12.7M|        if (!scanned)
  ------------------
  |  Branch (1012:13): [True: 26.7k, False: 12.7M]
  ------------------
 1013|  26.7k|        {
 1014|  26.7k|            return expected<item, scan_error>(unexpect, scanned.error());
 1015|  26.7k|        }
 1016|  12.7M|        if (!scanned.value().remainder.empty())
  ------------------
  |  Branch (1016:13): [True: 8.52k, False: 12.7M]
  ------------------
 1017|  8.52k|        {
 1018|  8.52k|            return expected<item, scan_error>(unexpect,
 1019|  8.52k|                scan_error{cbor_errc::trailing_data, scanned.value().first.encoded_bytes().size()});
 1020|  8.52k|        }
 1021|  12.7M|        return scanned.value().first;
 1022|  12.7M|    }
_ZNK8jsoncons4cbor4view4item13encoded_bytesEv:
  544|  63.9M|        {
  545|  63.9M|            return bytes_;
  546|  63.9M|        }
_ZNK8jsoncons4cbor4view4item4kindEv:
  549|   140M|        {
  550|   140M|            return ondemand_detail::kind(head_);
  551|   140M|        }
_ZN8jsoncons4cbor4view15ondemand_detail4kindERKNS2_9item_headE:
   70|   140M|        {
   71|   140M|            switch (head.major_type)
   72|   140M|            {
   73|  93.1M|                case cbor::cbor_major_type::unsigned_integer: return item_kind::unsigned_integer;
  ------------------
  |  Branch (73:17): [True: 93.1M, False: 47.5M]
  ------------------
   74|  1.33M|                case cbor::cbor_major_type::negative_integer: return item_kind::negative_integer;
  ------------------
  |  Branch (74:17): [True: 1.33M, False: 139M]
  ------------------
   75|   944k|                case cbor::cbor_major_type::byte_string:      return item_kind::byte_string;
  ------------------
  |  Branch (75:17): [True: 944k, False: 139M]
  ------------------
   76|  2.51M|                case cbor::cbor_major_type::text_string:      return item_kind::text_string;
  ------------------
  |  Branch (76:17): [True: 2.51M, False: 138M]
  ------------------
   77|  23.6M|                case cbor::cbor_major_type::array:            return item_kind::array;
  ------------------
  |  Branch (77:17): [True: 23.6M, False: 117M]
  ------------------
   78|  10.1M|                case cbor::cbor_major_type::map:              return item_kind::map;
  ------------------
  |  Branch (78:17): [True: 10.1M, False: 130M]
  ------------------
   79|  8.91M|                default:                                              return item_kind::simple;
  ------------------
  |  Branch (79:17): [True: 8.91M, False: 131M]
  ------------------
   80|   140M|            }
   81|   140M|        }
_ZNK8jsoncons4cbor4view4item8argumentEv:
  557|  52.0M|        {
  558|  52.0M|            return head_.value;
  559|  52.0M|        }
_ZNK8jsoncons4cbor4view4item10indefiniteEv:
  562|  90.4M|        {
  563|  90.4M|            return head_.indefinite();
  564|  90.4M|        }
_ZNK8jsoncons4cbor4view4item4tagsEv:
  738|  25.5M|    {
  739|       |        // Leading tags occupy [start of encoding, start of untagged head).
  740|  25.5M|        return tag_range(bytes_.data(), content_ - ondemand_detail::head_size(head_));
  741|  25.5M|    }
_ZN8jsoncons4cbor4view15ondemand_detail9head_sizeERKNS2_9item_headE:
  527|  25.5M|        {
  528|  25.5M|            return head.additional_info < 24 || head.indefinite()
  ------------------
  |  Branch (528:20): [True: 25.2M, False: 300k]
  |  Branch (528:49): [True: 40.7k, False: 259k]
  ------------------
  529|  25.5M|                ? 1 : 1 + (std::size_t(1) << (head.additional_info - 24));
  530|  25.5M|        }
_ZN8jsoncons4cbor4view4item9tag_rangeC2EPKhS5_:
  731|  25.5M|        tag_range(const uint8_t* first, const uint8_t* stop) noexcept : first_(first), stop_(stop) {}
_ZNK8jsoncons4cbor4view4item9tag_range5beginEv:
  725|  12.7M|        tag_iterator begin() const noexcept { return tag_iterator(first_, stop_); }
_ZN8jsoncons4cbor4view4item12tag_iteratorC2EPKhS5_:
  692|  12.7M|            : pos_(pos), stop_(stop), value_(0)
  693|  12.7M|        {
  694|  12.7M|            advance();
  695|  12.7M|        }
_ZN8jsoncons4cbor4view4item12tag_iterator7advanceEv:
  698|  22.8M|        {
  699|  22.8M|            if (pos_ == nullptr || pos_ >= stop_)
  ------------------
  |  Branch (699:17): [True: 0, False: 22.8M]
  |  Branch (699:36): [True: 12.7M, False: 10.0M]
  ------------------
  700|  12.7M|            {
  701|  12.7M|                pos_ = nullptr;
  702|  12.7M|                return;
  703|  12.7M|            }
  704|  10.0M|            ondemand_detail::item_head head;
  705|  10.0M|            cbor_errc ec{};
  706|  10.0M|            const uint8_t* p = pos_;
  707|  10.0M|            const bool ok = ondemand_detail::read_head(p, stop_, head, ec);
  708|  10.0M|            assert(ok && head.major_type == cbor::cbor_major_type::semantic_tag);
  ------------------
  |  Branch (708:13): [True: 10.0M, False: 0]
  |  Branch (708:13): [True: 10.0M, False: 0]
  |  Branch (708:13): [True: 10.0M, False: 0]
  ------------------
  709|  10.0M|            (void)ok;
  710|  10.0M|            value_ = head.value;
  711|  10.0M|            pos_ = p;
  712|  10.0M|        }
_ZNK8jsoncons4cbor4view4item9tag_range3endEv:
  726|  12.7M|        tag_iterator end() const noexcept { return tag_iterator(); }
_ZN8jsoncons4cbor4view4item12tag_iteratorC2Ev:
  657|  12.7M|        tag_iterator() noexcept : pos_(nullptr), stop_(nullptr), value_(0) {}
_ZN8jsoncons4cbor4viewneERKNS1_4item12tag_iteratorES5_:
  684|  22.8M|        {
  685|  22.8M|            return a.pos_ != b.pos_;
  686|  22.8M|        }
_ZNK8jsoncons4cbor4view4item12tag_iteratordeEv:
  660|  10.0M|        {
  661|  10.0M|            assert(pos_ != nullptr);
  ------------------
  |  Branch (661:13): [True: 10.0M, False: 0]
  ------------------
  662|  10.0M|            return value_;
  663|  10.0M|        }
_ZN8jsoncons4cbor4view4item12tag_iteratorppEv:
  666|  10.0M|        {
  667|  10.0M|            advance();
  668|  10.0M|            return *this;
  669|  10.0M|        }
_ZNK8jsoncons4cbor4view4item9tag_range5emptyEv:
  727|  12.8M|        bool empty() const noexcept { return first_ == stop_; }
_ZNK8jsoncons4cbor4view4item12uint64_valueERm:
  582|  12.7M|        {
  583|  12.7M|            return ondemand_detail::uint64_value(head_, value);
  584|  12.7M|        }
_ZN8jsoncons4cbor4view15ondemand_detail12uint64_valueERKNS2_9item_headERm:
   84|  12.7M|        {
   85|  12.7M|            if (head.major_type != cbor::cbor_major_type::unsigned_integer)
  ------------------
  |  Branch (85:17): [True: 2.41M, False: 10.3M]
  ------------------
   86|  2.41M|            {
   87|  2.41M|                return false;
   88|  2.41M|            }
   89|  10.3M|            value = head.value;
   90|  10.3M|            return true;
   91|  12.7M|        }
_ZNK8jsoncons4cbor4view4item11int64_valueERl:
  587|  12.7M|        {
  588|  12.7M|            return ondemand_detail::int64_value(head_, value);
  589|  12.7M|        }
_ZN8jsoncons4cbor4view15ondemand_detail11int64_valueERKNS2_9item_headERl:
   94|  12.7M|        {
   95|  12.7M|            const uint64_t int64_max = static_cast<uint64_t>((std::numeric_limits<int64_t>::max)());
   96|  12.7M|            if (head.major_type == cbor::cbor_major_type::unsigned_integer && head.value <= int64_max)
  ------------------
  |  Branch (96:17): [True: 10.3M, False: 2.41M]
  |  Branch (96:79): [True: 10.3M, False: 700]
  ------------------
   97|  10.3M|            {
   98|  10.3M|                value = static_cast<int64_t>(head.value);
   99|  10.3M|                return true;
  100|  10.3M|            }
  101|  2.41M|            if (head.major_type == cbor::cbor_major_type::negative_integer && head.value <= int64_max)
  ------------------
  |  Branch (101:17): [True: 148k, False: 2.26M]
  |  Branch (101:79): [True: 147k, False: 872]
  ------------------
  102|   147k|            {
  103|   147k|                value = -1 - static_cast<int64_t>(head.value);
  104|   147k|                return true;
  105|   147k|            }
  106|  2.26M|            return false;
  107|  2.41M|        }
_ZNK8jsoncons4cbor4view4item10bool_valueERb:
  592|  12.7M|        {
  593|  12.7M|            return ondemand_detail::bool_value(head_, value);
  594|  12.7M|        }
_ZN8jsoncons4cbor4view15ondemand_detail10bool_valueERKNS2_9item_headERb:
  110|  12.7M|        {
  111|  12.7M|            if (head.major_type != cbor::cbor_major_type::simple ||
  ------------------
  |  Branch (111:17): [True: 11.7M, False: 990k]
  ------------------
  112|   990k|                (head.additional_info != 20 && head.additional_info != 21))
  ------------------
  |  Branch (112:18): [True: 990k, False: 354]
  |  Branch (112:48): [True: 988k, False: 1.15k]
  ------------------
  113|  12.7M|            {
  114|  12.7M|                return false;
  115|  12.7M|            }
  116|  1.50k|            value = head.additional_info == 21;
  117|  1.50k|            return true;
  118|  12.7M|        }
_ZNK8jsoncons4cbor4view4item12double_valueERd:
  597|  12.7M|        {
  598|  12.7M|            return ondemand_detail::double_value(head_, value);
  599|  12.7M|        }
_ZN8jsoncons4cbor4view15ondemand_detail12double_valueERKNS2_9item_headERd:
  121|  12.7M|        {
  122|  12.7M|            if (head.major_type != cbor::cbor_major_type::simple)
  ------------------
  |  Branch (122:17): [True: 11.7M, False: 990k]
  ------------------
  123|  11.7M|            {
  124|  11.7M|                return false;
  125|  11.7M|            }
  126|   990k|            switch (head.additional_info)
  127|   990k|            {
  128|  9.61k|                case 25:
  ------------------
  |  Branch (128:17): [True: 9.61k, False: 980k]
  ------------------
  129|  9.61k|                    value = binary::decode_half(static_cast<uint16_t>(head.value));
  130|  9.61k|                    return true;
  131|  4.65k|                case 26:
  ------------------
  |  Branch (131:17): [True: 4.65k, False: 985k]
  ------------------
  132|  4.65k|                {
  133|  4.65k|                    const uint32_t bits = static_cast<uint32_t>(head.value);
  134|  4.65k|                    float single;
  135|  4.65k|                    std::memcpy(&single, &bits, sizeof single);
  136|  4.65k|                    value = single;
  137|  4.65k|                    return true;
  138|      0|                }
  139|    286|                case 27:
  ------------------
  |  Branch (139:17): [True: 286, False: 990k]
  ------------------
  140|    286|                {
  141|    286|                    const uint64_t bits = head.value;
  142|    286|                    std::memcpy(&value, &bits, sizeof value);
  143|    286|                    return true;
  144|      0|                }
  145|   975k|                default:
  ------------------
  |  Branch (145:17): [True: 975k, False: 14.5k]
  ------------------
  146|   975k|                    return false;
  147|   990k|            }
  148|   990k|        }
_ZNK8jsoncons4cbor4view4item4textERNSt3__117basic_string_viewIcNS3_11char_traitsIcEEEE:
  604|  25.5M|        {
  605|  25.5M|            return ondemand_detail::text(head_, content_, value);
  606|  25.5M|        }
_ZN8jsoncons4cbor4view15ondemand_detail4textERKNS2_9item_headEPKhRNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEE:
  151|  25.5M|        {
  152|  25.5M|            if (head.major_type != cbor::cbor_major_type::text_string || head.indefinite())
  ------------------
  |  Branch (152:17): [True: 24.9M, False: 549k]
  |  Branch (152:74): [True: 23.7k, False: 525k]
  ------------------
  153|  24.9M|            {
  154|  24.9M|                return false;
  155|  24.9M|            }
  156|   525k|            value = string_view(reinterpret_cast<const char*>(content), static_cast<std::size_t>(head.value));
  157|   525k|            return true;
  158|  25.5M|        }
_ZNK8jsoncons4cbor4view4item4textERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
  930|  12.7M|    {
  931|  12.7M|        if (head_.major_type != cbor::cbor_major_type::text_string)
  ------------------
  |  Branch (931:13): [True: 12.4M, False: 267k]
  ------------------
  932|  12.4M|        {
  933|  12.4M|            return false;
  934|  12.4M|        }
  935|   267k|        std::string content(content_size(), '\0');
  936|   267k|        if (!content.empty())
  ------------------
  |  Branch (936:13): [True: 253k, False: 14.1k]
  ------------------
  937|   253k|        {
  938|   253k|            copy_content(reinterpret_cast<uint8_t*>(&content[0]));
  939|   253k|        }
  940|   267k|        value = std::move(content);
  941|   267k|        return true;
  942|  12.7M|    }
_ZNK8jsoncons4cbor4view4item12content_sizeEv:
  899|   369k|    {
  900|   369k|        if (!head_.indefinite())
  ------------------
  |  Branch (900:13): [True: 351k, False: 18.2k]
  ------------------
  901|   351k|        {
  902|   351k|            return static_cast<std::size_t>(head_.value);
  903|   351k|        }
  904|  18.2k|        std::size_t size = 0;
  905|  18.2k|        for (const item chunk : children())
  ------------------
  |  Branch (905:31): [True: 58.9k, False: 18.2k]
  ------------------
  906|  58.9k|        {
  907|  58.9k|            size += static_cast<std::size_t>(chunk.head_.value);
  908|  58.9k|        }
  909|  18.2k|        return size;
  910|   369k|    }
_ZNK8jsoncons4cbor4view4item12copy_contentEPh:
  913|   390k|    {
  914|   390k|        if (!head_.indefinite())
  ------------------
  |  Branch (914:13): [True: 379k, False: 11.6k]
  ------------------
  915|   379k|        {
  916|   379k|            if (head_.value != 0)
  ------------------
  |  Branch (916:17): [True: 374k, False: 4.49k]
  ------------------
  917|   374k|            {
  918|   374k|                std::memcpy(out, content_, static_cast<std::size_t>(head_.value));
  919|   374k|            }
  920|   379k|            return;
  921|   379k|        }
  922|  11.6k|        for (const item chunk : children())
  ------------------
  |  Branch (922:31): [True: 51.9k, False: 11.6k]
  ------------------
  923|  51.9k|        {
  924|  51.9k|            chunk.copy_content(out);
  925|  51.9k|            out += static_cast<std::size_t>(chunk.head_.value);
  926|  51.9k|        }
  927|  11.6k|    }
_ZNK8jsoncons4cbor4view4item5bytesERNS_6nonstd4spanIKhLm18446744073709551615EEE:
  609|  12.7M|        {
  610|  12.7M|            return ondemand_detail::bytes(head_, content_, value);
  611|  12.7M|        }
_ZN8jsoncons4cbor4view15ondemand_detail5bytesERKNS2_9item_headEPKhRNS_6nonstd4spanIS6_Lm18446744073709551615EEE:
  161|  12.7M|        {
  162|  12.7M|            if (head.major_type != cbor::cbor_major_type::byte_string || head.indefinite())
  ------------------
  |  Branch (162:17): [True: 12.6M, False: 101k]
  |  Branch (162:74): [True: 6.33k, False: 95.4k]
  ------------------
  163|  12.6M|            {
  164|  12.6M|                return false;
  165|  12.6M|            }
  166|  95.4k|            value = span<const uint8_t>(content, static_cast<std::size_t>(head.value));
  167|  95.4k|            return true;
  168|  12.7M|        }
_ZNK8jsoncons4cbor4view4item5bytesERNSt3__16vectorIhNS3_9allocatorIhEEEE:
  945|  12.7M|    {
  946|  12.7M|        if (head_.major_type != cbor::cbor_major_type::byte_string)
  ------------------
  |  Branch (946:13): [True: 12.6M, False: 101k]
  ------------------
  947|  12.6M|        {
  948|  12.6M|            return false;
  949|  12.6M|        }
  950|   101k|        std::vector<uint8_t> content(content_size());
  951|   101k|        if (!content.empty())
  ------------------
  |  Branch (951:13): [True: 85.1k, False: 16.6k]
  ------------------
  952|  85.1k|        {
  953|  85.1k|            copy_content(content.data());
  954|  85.1k|        }
  955|   101k|        value = std::move(content);
  956|   101k|        return true;
  957|  12.7M|    }
_ZNK8jsoncons4cbor4view4item8childrenEv:
  873|  25.5M|    {
  874|  25.5M|        const uint8_t* const end = bytes_.data() + bytes_.size();
  875|  25.5M|        switch (head_.major_type)
  876|  25.5M|        {
  877|  1.41M|            case cbor::cbor_major_type::array:
  ------------------
  |  Branch (877:13): [True: 1.41M, False: 24.1M]
  ------------------
  878|  1.80M|            case cbor::cbor_major_type::map:
  ------------------
  |  Branch (878:13): [True: 396k, False: 25.1M]
  ------------------
  879|  1.80M|                if (!head_.indefinite())
  ------------------
  |  Branch (879:21): [True: 1.80M, False: 4.36k]
  ------------------
  880|  1.80M|                {
  881|  1.80M|                    const bool is_map = head_.major_type == cbor::cbor_major_type::map;
  882|  1.80M|                    return child_range(content_, end, is_map ? 2 * head_.value : head_.value);
  ------------------
  |  Branch (882:55): [True: 395k, False: 1.40M]
  ------------------
  883|  1.80M|                }
  884|  4.36k|                return child_range(content_, end, ondemand_detail::indefinite_array_marker);
  885|   216k|            case cbor::cbor_major_type::byte_string:
  ------------------
  |  Branch (885:13): [True: 216k, False: 25.3M]
  ------------------
  886|   799k|            case cbor::cbor_major_type::text_string:
  ------------------
  |  Branch (886:13): [True: 582k, False: 24.9M]
  ------------------
  887|   799k|                if (head_.indefinite())
  ------------------
  |  Branch (887:21): [True: 96.3k, False: 702k]
  ------------------
  888|  96.3k|                {
  889|  96.3k|                    return child_range(content_, end, ondemand_detail::indefinite_array_marker);
  890|  96.3k|                }
  891|   702k|                break;
  892|  22.9M|            default:
  ------------------
  |  Branch (892:13): [True: 22.9M, False: 2.60M]
  ------------------
  893|  22.9M|                break;
  894|  25.5M|        }
  895|  23.6M|        return child_range(nullptr, nullptr, 0);
  896|  25.5M|    }
_ZN8jsoncons4cbor4view4item11child_rangeC2EPKhS5_m:
  863|  25.5M|            : first_(first), end_(end), remaining_(remaining)
  864|  25.5M|        {
  865|  25.5M|        }
_ZNK8jsoncons4cbor4view4item11child_range5beginEv:
  844|  12.8M|        {
  845|  12.8M|            return first_ == nullptr ? child_iterator() : child_iterator(first_, end_, remaining_);
  ------------------
  |  Branch (845:20): [True: 11.8M, False: 981k]
  ------------------
  846|  12.8M|        }
_ZN8jsoncons4cbor4view4item14child_iteratorC2Ev:
  755|  24.6M|            : pos_(nullptr), next_(nullptr), end_(nullptr), remaining_(0), content_(nullptr)
  756|  24.6M|        {
  757|  24.6M|        }
_ZN8jsoncons4cbor4view4item14child_iteratorC2EPKhS5_m:
  794|   981k|            : pos_(nullptr), next_(first), end_(end), remaining_(remaining), content_(nullptr)
  795|   981k|        {
  796|   981k|            advance();
  797|   981k|        }
_ZN8jsoncons4cbor4view4item14child_iterator7advanceEv:
  800|  13.9M|        {
  801|  13.9M|            pos_ = next_;
  802|  13.9M|            if (remaining_ == ondemand_detail::indefinite_array_marker)
  ------------------
  |  Branch (802:17): [True: 9.70M, False: 4.26M]
  ------------------
  803|  9.70M|            {
  804|  9.70M|                if (*pos_ == 0xff)
  ------------------
  |  Branch (804:21): [True: 69.3k, False: 9.63M]
  ------------------
  805|  69.3k|                {
  806|  69.3k|                    pos_ = nullptr;
  807|  69.3k|                    return;
  808|  69.3k|                }
  809|  9.70M|            }
  810|  4.26M|            else if (remaining_ == 0)
  ------------------
  |  Branch (810:22): [True: 901k, False: 3.36M]
  ------------------
  811|   901k|            {
  812|   901k|                pos_ = nullptr;
  813|   901k|                return;
  814|   901k|            }
  815|  3.36M|            else
  816|  3.36M|            {
  817|  3.36M|                --remaining_;
  818|  3.36M|            }
  819|       |
  820|  12.9M|            const uint8_t* p = pos_;
  821|  12.9M|            cbor_errc ec{};
  822|  12.9M|            const bool ok = ondemand_detail::read_value_head(p, end_, head_, ec);
  823|  12.9M|            assert(ok);
  ------------------
  |  Branch (823:13): [True: 12.9M, False: 0]
  ------------------
  824|  12.9M|            (void)ok;
  825|  12.9M|            content_ = p;
  826|  12.9M|            next_ = remaining_ == 0 ? end_ : ondemand_detail::skip_checked(p, end_, head_);
  ------------------
  |  Branch (826:21): [True: 729k, False: 12.2M]
  ------------------
  827|  12.9M|        }
_ZN8jsoncons4cbor4view15ondemand_detail12skip_checkedEPKhS4_NS2_9item_headE:
  482|  12.2M|        {
  483|  12.2M|            const uint8_t* const content = p;
  484|  12.2M|            const item_head first = head;
  485|  12.2M|            cbor_errc ec{};
  486|  12.2M|            uint64_t left = 0;
  487|  12.2M|            for (;;)
  488|  38.0M|            {
  489|  38.0M|                if (head.major_type == cbor::cbor_major_type::array ||
  ------------------
  |  Branch (489:21): [True: 6.10M, False: 31.9M]
  ------------------
  490|  31.9M|                    head.major_type == cbor::cbor_major_type::map)
  ------------------
  |  Branch (490:21): [True: 566k, False: 31.3M]
  ------------------
  491|  6.66M|                {
  492|  6.66M|                    if (head.indefinite())
  ------------------
  |  Branch (492:25): [True: 1.34k, False: 6.66M]
  ------------------
  493|  1.34k|                    {
  494|  1.34k|                        p = content;
  495|  1.34k|                        const bool ok = skip_container(p, end, first, (std::numeric_limits<int>::max)(), ec);
  496|  1.34k|                        assert(ok);
  ------------------
  |  Branch (496:25): [True: 1.34k, False: 0]
  ------------------
  497|  1.34k|                        (void)ok;
  498|  1.34k|                        return p;
  499|  1.34k|                    }
  500|  6.66M|                    left += head.major_type == cbor::cbor_major_type::map ? 2 * head.value : head.value;
  ------------------
  |  Branch (500:29): [True: 565k, False: 6.09M]
  ------------------
  501|  6.66M|                }
  502|  31.3M|                else
  503|  31.3M|                {
  504|  31.3M|                    const bool ok = skip_scalar_or_string(head, p, end, ec);
  505|  31.3M|                    assert(ok);
  ------------------
  |  Branch (505:21): [True: 31.3M, False: 0]
  ------------------
  506|  31.3M|                    (void)ok;
  507|  31.3M|                }
  508|  38.0M|                if (left == 0)
  ------------------
  |  Branch (508:21): [True: 12.2M, False: 25.7M]
  ------------------
  509|  12.2M|                {
  510|  12.2M|                    return p;
  511|  12.2M|                }
  512|  25.7M|                --left;
  513|  25.7M|                const bool ok = read_value_head(p, end, head, ec);
  514|  25.7M|                assert(ok);
  ------------------
  |  Branch (514:17): [True: 25.7M, False: 0]
  ------------------
  515|  25.7M|                (void)ok;
  516|  25.7M|            }
  517|  12.2M|        }
_ZNK8jsoncons4cbor4view4item11child_range3endEv:
  849|  12.8M|        {
  850|  12.8M|            return child_iterator();
  851|  12.8M|        }
_ZN8jsoncons4cbor4viewneERKNS1_4item14child_iteratorES5_:
  786|  25.7M|        {
  787|  25.7M|            return a.pos_ != b.pos_;
  788|  25.7M|        }
_ZNK8jsoncons4cbor4view4item14child_iteratordeEv:
  760|  12.9M|        {
  761|  12.9M|            assert(pos_ != nullptr);
  ------------------
  |  Branch (761:13): [True: 12.9M, False: 0]
  ------------------
  762|  12.9M|            return ondemand_detail::item_access::make(
  763|  12.9M|                span<const uint8_t>(pos_, static_cast<std::size_t>(next_ - pos_)),
  764|  12.9M|                head_, content_);
  765|  12.9M|        }
_ZN8jsoncons4cbor4view4item14child_iteratorppEv:
  768|  12.9M|        {
  769|  12.9M|            advance();
  770|  12.9M|            return *this;
  771|  12.9M|        }
_ZN8jsoncons4cbor4view13validate_textERKNS1_4itemE:
 1033|  12.7M|    {
 1034|  12.7M|        string_view text;
 1035|  12.7M|        if (text_item.text(text))
  ------------------
  |  Branch (1035:13): [True: 256k, False: 12.4M]
  ------------------
 1036|   256k|        {
 1037|   256k|            return ondemand_detail::validate_utf8(reinterpret_cast<const uint8_t*>(text.data()), text.size());
 1038|   256k|        }
 1039|  12.4M|        if (text_item.kind() != item_kind::text_string)
  ------------------
  |  Branch (1039:13): [True: 12.4M, False: 11.8k]
  ------------------
 1040|  12.4M|        {
 1041|  12.4M|            return false;
 1042|  12.4M|        }
 1043|  11.8k|        for (const item chunk : text_item.children())
  ------------------
  |  Branch (1043:31): [True: 13.7k, False: 889]
  ------------------
 1044|  13.7k|        {
 1045|  13.7k|            if (!chunk.text(text) ||
  ------------------
  |  Branch (1045:17): [True: 0, False: 13.7k]
  ------------------
 1046|  13.7k|                !ondemand_detail::validate_utf8(reinterpret_cast<const uint8_t*>(text.data()), text.size()))
  ------------------
  |  Branch (1046:17): [True: 10.9k, False: 2.75k]
  ------------------
 1047|  10.9k|            {
 1048|  10.9k|                return false;
 1049|  10.9k|            }
 1050|  13.7k|        }
 1051|    889|        return true;
 1052|  11.8k|    }
_ZN8jsoncons4cbor4view15ondemand_detail13validate_utf8EPKhm:
  520|   269k|        {
  521|   269k|            const auto result = unicode_traits::validate(reinterpret_cast<const char*>(p), length);
  522|   269k|            return result.ec == unicode_traits::unicode_errc();
  523|   269k|        }
_ZNK8jsoncons4cbor4view4item11child_range5emptyEv:
  854|  12.7M|        {
  855|  12.7M|            return first_ == nullptr ||
  ------------------
  |  Branch (855:20): [True: 11.8M, False: 921k]
  ------------------
  856|   921k|                (remaining_ == ondemand_detail::indefinite_array_marker
  ------------------
  |  Branch (856:17): [True: 172k, False: 748k]
  |  Branch (856:18): [True: 20.3k, False: 901k]
  ------------------
  857|   921k|                    ? *first_ == 0xff : remaining_ == 0);
  858|  12.7M|        }

