LLVMFuzzerTestOneInput:
   13|  6.41k|{
   14|  6.41k|    std::string s(reinterpret_cast<const char*>(data), size);
   15|       |
   16|       |    // try_decode_cbor via istringstream (error_code returned in result)
   17|  6.41k|    {
   18|  6.41k|        std::istringstream is(s);
   19|  6.41k|        auto result = try_decode_cbor<json>(is);
   20|  6.41k|        (void)result;
   21|  6.41k|    }
   22|       |
   23|       |    // cbor_stream_reader + default_json_visitor with error_code
   24|  6.41k|    {
   25|  6.41k|        std::istringstream is(s);
   26|  6.41k|        default_json_visitor visitor;
   27|  6.41k|        cbor_stream_reader reader(is, visitor);
   28|  6.41k|        std::error_code ec;
   29|  6.41k|        reader.read(ec);
   30|  6.41k|    }
   31|       |
   32|       |    // cbor_bytes_cursor with error_code constructor
   33|  6.41k|    {
   34|  6.41k|        jsoncons::span<const uint8_t> input(data, size);
   35|  6.41k|        std::error_code ec;
   36|  6.41k|        cbor_bytes_cursor cursor(input, ec);
   37|  59.7M|        while (!cursor.done() && !ec)
  ------------------
  |  Branch (37:16): [True: 59.7M, False: 1.17k]
  |  Branch (37:34): [True: 59.7M, False: 5.24k]
  ------------------
   38|  59.7M|        {
   39|  59.7M|            cursor.next(ec);
   40|  59.7M|        }
   41|  6.41k|    }
   42|       |
   43|       |    // read_to(visitor, ec), including failure paths on malformed input
   44|  6.41k|    {
   45|  6.41k|        jsoncons::span<const uint8_t> input(data, size);
   46|  6.41k|        std::error_code ec;
   47|  6.41k|        cbor_bytes_cursor cursor(input, ec);
   48|  6.41k|        default_json_visitor visitor;
   49|  12.7k|        while (!cursor.done() && !ec)
  ------------------
  |  Branch (49:16): [True: 11.5k, False: 1.17k]
  |  Branch (49:34): [True: 6.29k, False: 5.24k]
  ------------------
   50|  6.29k|        {
   51|  6.29k|            cursor.read_to(visitor, ec);
   52|  6.29k|            if (!ec)
  ------------------
  |  Branch (52:17): [True: 1.17k, False: 5.12k]
  ------------------
   53|  1.17k|            {
   54|  1.17k|                cursor.next(ec);
   55|  1.17k|            }
   56|  6.29k|        }
   57|  6.41k|    }
   58|       |
   59|       |    // cbor_stream_cursor with a tiny buffer size
   60|  6.41k|    {
   61|  6.41k|        std::istringstream is(s);
   62|  6.41k|        std::error_code ec;
   63|  6.41k|        cbor_stream_cursor cursor(jsoncons::binary_stream_source(is, 7), ec);
   64|  59.7M|        while (!cursor.done() && !ec)
  ------------------
  |  Branch (64:16): [True: 59.7M, False: 1.17k]
  |  Branch (64:34): [True: 59.7M, False: 5.24k]
  ------------------
   65|  59.7M|        {
   66|  59.7M|            cursor.next(ec);
   67|  59.7M|        }
   68|  6.41k|    }
   69|       |
   70|  6.41k|    return 0;
   71|  6.41k|}

_ZN8jsoncons16allocator_holderINSt3__19allocatorIcEEEC2Ev:
   20|  12.0M|    allocator_holder() = default;
_ZNK8jsoncons16allocator_holderINSt3__19allocatorIcEEE13get_allocatorEv:
   30|  12.1M|    {
   31|  12.1M|        return alloc_;
   32|  12.1M|    }
_ZN8jsoncons16allocator_holderINSt3__19allocatorIcEEEC2ERKS3_:
   25|  19.9k|        : alloc_(alloc)
   26|  19.9k|        {}

_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2Ev:
 2275|  6.41k|        {
 2276|  6.41k|            construct<empty_object_storage>(semantic_tag::none);
 2277|  6.41k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20empty_object_storageEJNS_12semantic_tagEEEEvDpOT0_:
  995|  6.41k|        {
  996|  6.41k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  6.41k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_20empty_object_storageEEERT_v:
 1004|  8.71k|        {
 1005|  8.71k|            return cast(identity<T>());
 1006|  8.71k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_20empty_object_storageEEE:
 1025|  8.71k|        {
 1026|  8.71k|            return empty_object_;
 1027|  8.71k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20empty_object_storageC2ENS_12semantic_tagE:
  462|  6.41k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::empty_object)), short_str_length_(0), tag_(tag)
  463|  6.41k|            {
  464|  6.41k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE7reserveEm:
 3484|  6.98M|        {
 3485|  6.98M|            if (n > 0)
  ------------------
  |  Branch (3485:17): [True: 6.98M, False: 0]
  ------------------
 3486|  6.98M|            {
 3487|  6.98M|                switch (storage_kind())
 3488|  6.98M|                {
 3489|  6.98M|                    case json_storage_kind::array:
  ------------------
  |  Branch (3489:21): [True: 6.98M, False: 0]
  ------------------
 3490|  6.98M|                        cast<array_storage>().value().reserve(n);
 3491|  6.98M|                        break;
 3492|      0|                    case json_storage_kind::empty_object:
  ------------------
  |  Branch (3492:21): [True: 0, False: 6.98M]
  ------------------
 3493|      0|                        create_object_implicitly();
 3494|      0|                        cast<object_storage>().value().reserve(n);
 3495|      0|                        break;
 3496|      0|                    case json_storage_kind::object:
  ------------------
  |  Branch (3496:21): [True: 0, False: 6.98M]
  ------------------
 3497|      0|                        cast<object_storage>().value().reserve(n);
 3498|      0|                        break;
 3499|      0|                    case json_storage_kind::json_ref:
  ------------------
  |  Branch (3499:21): [True: 0, False: 6.98M]
  ------------------
 3500|      0|                        cast<json_ref_storage>().value().reserve(n);
 3501|      0|                        break;
 3502|      0|                    default:
  ------------------
  |  Branch (3502:21): [True: 0, False: 6.98M]
  ------------------
 3503|      0|                        break;
 3504|  6.98M|                }
 3505|  6.98M|            }
 3506|  6.98M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12storage_kindEv:
 1462|   396M|        {
 1463|       |            // It is legal to access 'common_.storage_kind_' even though 
 1464|       |            // common_ is not the active member of the union because 'storage_kind_' 
 1465|       |            // is a part of the common initial sequence of all union members
 1466|       |            // as defined in 11.4-25 of the Standard.
 1467|   396M|            return static_cast<json_storage_kind>(common_.storage_kind_);
 1468|   396M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13array_storageEEERT_v:
 1004|   116M|        {
 1005|   116M|            return cast(identity<T>());
 1006|   116M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13array_storageEEE:
 1125|   116M|        {
 1126|   116M|            return array_;
 1127|   116M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storage5valueEv:
  750|  38.7M|            {
  751|  38.7M|                return *ptr_;
  752|  38.7M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EOS5_:
 2307|  86.4M|        {
 2308|  86.4M|            uninitialized_move(std::move(other));
 2309|  86.4M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18uninitialized_moveEOS5_:
 1302|  86.4M|        {
 1303|  86.4M|            if (is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1303:17): [True: 39.7M, False: 46.6M]
  ------------------
 1304|  39.7M|            {
 1305|  39.7M|                std::memcpy(static_cast<void*>(this), &other, sizeof(basic_json));
 1306|  39.7M|            }
 1307|  46.6M|            else
 1308|  46.6M|            {
 1309|  46.6M|                switch (other.storage_kind())
 1310|  46.6M|                {
 1311|   106k|                    case json_storage_kind::long_str:
  ------------------
  |  Branch (1311:21): [True: 106k, False: 46.5M]
  ------------------
 1312|   106k|                        construct<long_string_storage>(other.cast<long_string_storage>());
 1313|   106k|                        other.construct<null_storage>();
 1314|   106k|                        break;
 1315|  2.08M|                    case json_storage_kind::byte_str:
  ------------------
  |  Branch (1315:21): [True: 2.08M, False: 44.6M]
  ------------------
 1316|  2.08M|                        construct<byte_string_storage>(other.cast<byte_string_storage>());
 1317|  2.08M|                        other.construct<null_storage>();
 1318|  2.08M|                        break;
 1319|  28.0M|                    case json_storage_kind::array:
  ------------------
  |  Branch (1319:21): [True: 28.0M, False: 18.6M]
  ------------------
 1320|  28.0M|                        construct<array_storage>(other.cast<array_storage>());
 1321|  28.0M|                        other.construct<null_storage>();
 1322|  28.0M|                        break;
 1323|  16.4M|                    case json_storage_kind::object:
  ------------------
  |  Branch (1323:21): [True: 16.4M, False: 30.2M]
  ------------------
 1324|  16.4M|                        construct<object_storage>(other.cast<object_storage>());
 1325|  16.4M|                        other.construct<null_storage>();
 1326|  16.4M|                        break;
 1327|      0|                    default:
  ------------------
  |  Branch (1327:21): [True: 0, False: 46.6M]
  ------------------
 1328|      0|                        JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1329|      0|                        break;
 1330|  46.6M|                }
 1331|  46.6M|            }
 1332|  86.4M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19long_string_storageEJRS7_EEEvDpOT0_:
  995|   239k|        {
  996|   239k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|   239k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19long_string_storageC2ERKS6_:
  626|   372k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  627|   372k|            {
  628|   372k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_19long_string_storageEEERT_v:
 1004|   591k|        {
 1005|   591k|            return cast(identity<T>());
 1006|   591k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_19long_string_storageEEE:
 1095|   591k|        {
 1096|   591k|            return long_str_;
 1097|   591k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJEEEvDpOT0_:
  995|  46.6M|        {
  996|  46.6M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  46.6M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12null_storageEEERT_v:
 1004|  53.5M|        {
 1005|  53.5M|            return cast(identity<T>());
 1006|  53.5M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12null_storageEEE:
 1015|  53.5M|        {
 1016|  53.5M|            return null_;
 1017|  53.5M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12null_storageC2ENS_12semantic_tagE:
  450|  46.7M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::null)), short_str_length_(0), tag_(tag)
  451|  46.7M|            {
  452|  46.7M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRS7_EEEvDpOT0_:
  995|  2.60M|        {
  996|  2.60M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  2.60M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19byte_string_storageC2ERKS6_:
  675|  3.13M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  676|  3.13M|            {
  677|  3.13M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_19byte_string_storageEEERT_v:
 1004|  8.65M|        {
 1005|  8.65M|            return cast(identity<T>());
 1006|  8.65M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_19byte_string_storageEEE:
 1105|  8.65M|        {
 1106|  8.65M|            return byte_str_;
 1107|  8.65M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13array_storageEJRS7_EEEvDpOT0_:
  995|  28.1M|        {
  996|  28.1M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  28.1M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storageC2ERKS6_:
  727|  28.3M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  728|  28.3M|            {
  729|  28.3M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14object_storageEJRS7_EEEvDpOT0_:
  995|  19.6M|        {
  996|  19.6M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  19.6M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storageC2ERKS6_:
  777|  22.8M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  778|  22.8M|            {
  779|  22.8M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_17json_object_arg_tENS_12semantic_tagERKS4_:
 2320|  4.93M|        {
 2321|  4.93M|            auto ptr = create_object(alloc);
 2322|  4.93M|            construct<object_storage>(ptr, tag);
 2323|  4.93M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13create_objectIJEEEPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEERKS4_DpOT_:
  976|  4.93M|        {
  977|  4.93M|            using stor_allocator_type = typename object_storage::allocator_type;
  978|  4.93M|            stor_allocator_type stor_alloc(alloc);
  979|  4.93M|            auto ptr = std::allocator_traits<stor_allocator_type>::allocate(stor_alloc, 1);
  980|  4.93M|            JSONCONS_TRY
  ------------------
  |  |   37|  4.93M|    #define JSONCONS_TRY try
  ------------------
  981|  4.93M|            {
  982|  4.93M|                std::allocator_traits<stor_allocator_type>::construct(stor_alloc, nonstd::to_plain_pointer(ptr), 
  983|  4.93M|                    std::forward<Args>(args)...);
  984|  4.93M|            }
  985|  4.93M|            JSONCONS_CATCH(...)
  986|  4.93M|            {
  987|      0|                std::allocator_traits<stor_allocator_type>::deallocate(stor_alloc, ptr,1);
  988|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  989|      0|            }
  990|  4.93M|            return ptr;
  991|  4.93M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14object_storageEJRPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEERNS_12semantic_tagEEEEvDpOT0_:
  995|  4.93M|        {
  996|  4.93M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  4.93M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storageC2EPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEENS_12semantic_tagE:
  772|  4.93M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::object)), short_str_length_(0), tag_(tag), ptr_(ptr)
  773|  4.93M|            {
  774|  4.93M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14object_storageEEERT_v:
 1004|  60.8M|        {
 1005|  60.8M|            return cast(identity<T>());
 1006|  60.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14object_storageEEE:
 1115|  60.8M|        {
 1116|  60.8M|            return object_;
 1117|  60.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storage5valueEv:
  795|  6.76M|            {
  796|  6.76M|                JSONCONS_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   54|  6.76M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 6.76M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  797|  6.76M|                return *ptr_;
  798|  6.76M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9push_backEOS5_:
 4701|  11.1M|        {
 4702|  11.1M|            switch (storage_kind())
 4703|  11.1M|            {
 4704|  11.1M|                case json_storage_kind::array:
  ------------------
  |  Branch (4704:17): [True: 11.1M, False: 0]
  ------------------
 4705|  11.1M|                    cast<array_storage>().value().push_back(std::move(val));
 4706|  11.1M|                    break;
 4707|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4707:17): [True: 0, False: 11.1M]
  ------------------
 4708|      0|                    cast<json_ref_storage>().value().push_back(std::move(val));
 4709|      0|                    break;
 4710|      0|                default:
  ------------------
  |  Branch (4710:17): [True: 0, False: 11.1M]
  ------------------
 4711|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Attempting to insert into a value that is not an array"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4712|  11.1M|            }
 4713|  11.1M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEaSEOS5_:
 1453|  35.2M|        {
 1454|  35.2M|            if (this != &other)
  ------------------
  |  Branch (1454:17): [True: 35.2M, False: 0]
  ------------------
 1455|  35.2M|            {
 1456|  35.2M|                move_assignment(std::move(other));
 1457|  35.2M|            }
 1458|  35.2M|            return *this;
 1459|  35.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE15move_assignmentEOS5_:
 1415|  35.2M|        {
 1416|  35.2M|            if (is_trivial_storage(storage_kind()) && is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1416:17): [True: 35.2M, False: 0]
  |  Branch (1416:55): [True: 31.2M, False: 3.99M]
  ------------------
 1417|  31.2M|            {
 1418|  31.2M|                std::memcpy(static_cast<void*>(this), &other, sizeof(basic_json));
 1419|  31.2M|            }
 1420|  3.99M|            else
 1421|  3.99M|            {
 1422|  3.99M|                swap(other);
 1423|  3.99M|            }
 1424|  35.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4swapERS5_:
 1934|  3.99M|        {
 1935|  3.99M|            if (this == &other)
  ------------------
  |  Branch (1935:17): [True: 0, False: 3.99M]
  ------------------
 1936|      0|            {
 1937|      0|                return;
 1938|      0|            }
 1939|  3.99M|            if (is_trivial_storage(storage_kind()) && is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1939:17): [True: 3.99M, False: 0]
  |  Branch (1939:55): [True: 0, False: 3.99M]
  ------------------
 1940|      0|            {
 1941|      0|                basic_json temp;               
 1942|      0|                std::memcpy(static_cast<void*>(&temp), static_cast<void*>(&other), sizeof(basic_json));
 1943|      0|                std::memcpy(static_cast<void*>(&other), static_cast<void*>(this), sizeof(basic_json));
 1944|      0|                std::memcpy(static_cast<void*>(this), static_cast<void*>(&temp), sizeof(basic_json));
 1945|      0|            }
 1946|  3.99M|            else
 1947|  3.99M|            {
 1948|  3.99M|                switch (storage_kind())
 1949|  3.99M|                {
 1950|  3.41M|                    case json_storage_kind::null: swap_l<null_storage>(other); break;
  ------------------
  |  Branch (1950:21): [True: 3.41M, False: 584k]
  ------------------
 1951|  1.15k|                    case json_storage_kind::empty_object : swap_l<empty_object_storage>(other); break;
  ------------------
  |  Branch (1951:21): [True: 1.15k, False: 3.99M]
  ------------------
 1952|  4.43k|                    case json_storage_kind::boolean: swap_l<bool_storage>(other); break;
  ------------------
  |  Branch (1952:21): [True: 4.43k, False: 3.99M]
  ------------------
 1953|   202k|                    case json_storage_kind::int64: swap_l<int64_storage>(other); break;
  ------------------
  |  Branch (1953:21): [True: 202k, False: 3.79M]
  ------------------
 1954|   354k|                    case json_storage_kind::uint64: swap_l<uint64_storage>(other); break;
  ------------------
  |  Branch (1954:21): [True: 354k, False: 3.63M]
  ------------------
 1955|  5.36k|                    case json_storage_kind::half_float: swap_l<half_storage>(other); break;
  ------------------
  |  Branch (1955:21): [True: 5.36k, False: 3.98M]
  ------------------
 1956|  7.73k|                    case json_storage_kind::float64: swap_l<double_storage>(other); break;
  ------------------
  |  Branch (1956:21): [True: 7.73k, False: 3.98M]
  ------------------
 1957|  8.56k|                    case json_storage_kind::short_str: swap_l<short_string_storage>(other); break;
  ------------------
  |  Branch (1957:21): [True: 8.56k, False: 3.98M]
  ------------------
 1958|      0|                    case json_storage_kind::long_str: swap_l<long_string_storage>(other); break;
  ------------------
  |  Branch (1958:21): [True: 0, False: 3.99M]
  ------------------
 1959|      0|                    case json_storage_kind::byte_str: swap_l<byte_string_storage>(other); break;
  ------------------
  |  Branch (1959:21): [True: 0, False: 3.99M]
  ------------------
 1960|      0|                    case json_storage_kind::array: swap_l<array_storage>(other); break;
  ------------------
  |  Branch (1960:21): [True: 0, False: 3.99M]
  ------------------
 1961|      0|                    case json_storage_kind::object: swap_l<object_storage>(other); break;
  ------------------
  |  Branch (1961:21): [True: 0, False: 3.99M]
  ------------------
 1962|      0|                    case json_storage_kind::const_json_ref: swap_l<const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1962:21): [True: 0, False: 3.99M]
  ------------------
 1963|      0|                    case json_storage_kind::json_ref: swap_l<json_ref_storage>(other); break;
  ------------------
  |  Branch (1963:21): [True: 0, False: 3.99M]
  ------------------
 1964|      0|                    default:
  ------------------
  |  Branch (1964:21): [True: 0, False: 3.99M]
  ------------------
 1965|      0|                        JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1966|      0|                        break;
 1967|  3.99M|                }
 1968|  3.99M|            }
 1969|  3.99M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12null_storageEEEvRS5_:
 1170|  3.41M|        {
 1171|  3.41M|            switch (other.storage_kind())
 1172|  3.41M|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 3.41M]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 3.41M]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 3.41M]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 3.41M]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 3.41M]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 3.41M]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 3.41M]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 3.41M]
  ------------------
 1181|   116k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 116k, False: 3.29M]
  ------------------
 1182|   462k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 462k, False: 2.94M]
  ------------------
 1183|   135k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 135k, False: 3.27M]
  ------------------
 1184|  2.69M|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 2.69M, False: 713k]
  ------------------
 1185|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 0, False: 3.41M]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 3.41M]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 3.41M]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  3.41M|            }
 1191|  3.41M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJRS7_EEEvDpOT0_:
  995|  3.41M|        {
  996|  3.41M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  3.41M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20empty_object_storageEJRS7_EEEvDpOT0_:
  995|  1.15k|        {
  996|  1.15k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  1.15k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12bool_storageEEERT_v:
 1004|  2.03M|        {
 1005|  2.03M|            return cast(identity<T>());
 1006|  2.03M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12bool_storageEEE:
 1035|  2.03M|        {
 1036|  2.03M|            return boolean_;
 1037|  2.03M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12bool_storageEJRS7_EEEvDpOT0_:
  995|  4.43k|        {
  996|  4.43k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  4.43k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13int64_storageEEERT_v:
 1004|  3.09M|        {
 1005|  3.09M|            return cast(identity<T>());
 1006|  3.09M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13int64_storageEEE:
 1045|  3.09M|        {
 1046|  3.09M|            return int64_;
 1047|  3.09M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13int64_storageEJRS7_EEEvDpOT0_:
  995|   202k|        {
  996|   202k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|   202k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14uint64_storageEEERT_v:
 1004|  11.4M|        {
 1005|  11.4M|            return cast(identity<T>());
 1006|  11.4M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14uint64_storageEEE:
 1055|  11.4M|        {
 1056|  11.4M|            return uint64_;
 1057|  11.4M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14uint64_storageEJRS7_EEEvDpOT0_:
  995|   354k|        {
  996|   354k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|   354k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12half_storageEEERT_v:
 1004|  35.4k|        {
 1005|  35.4k|            return cast(identity<T>());
 1006|  35.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12half_storageEEE:
 1065|  35.4k|        {
 1066|  35.4k|            return half_float_;
 1067|  35.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12half_storageEJRS7_EEEvDpOT0_:
  995|  5.36k|        {
  996|  5.36k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  5.36k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14double_storageEEERT_v:
 1004|  96.1k|        {
 1005|  96.1k|            return cast(identity<T>());
 1006|  96.1k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14double_storageEEE:
 1075|  96.1k|        {
 1076|  96.1k|            return float64_;
 1077|  96.1k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14double_storageEJRS7_EEEvDpOT0_:
  995|  7.73k|        {
  996|  7.73k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  7.73k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_20short_string_storageEEERT_v:
 1004|  92.9k|        {
 1005|  92.9k|            return cast(identity<T>());
 1006|  92.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_20short_string_storageEEE:
 1085|  92.9k|        {
 1086|  92.9k|            return short_str_;
 1087|  92.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20short_string_storageC2ERKS6_:
  585|  8.56k|                : storage_kind_(other.storage_kind_), short_str_length_(other.short_str_length_), tag_(other.tag_)
  586|  8.56k|            {
  587|  8.56k|                std::memcpy(data_,other.data_,other.short_str_length_*sizeof(char_type));
  588|  8.56k|                data_[short_str_length_] = 0;
  589|  8.56k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20short_string_storageEJRS7_EEEvDpOT0_:
  995|  8.56k|        {
  996|  8.56k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  8.56k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19long_string_storageEEEvRS5_:
 1156|   116k|        {
 1157|   116k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|   116k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|   116k|        {
 1163|   116k|            TypeR temp{other.cast<TypeR>()};
 1164|   116k|            other.construct<TypeL>(cast<TypeL>());
 1165|   116k|            construct<TypeR>(temp);
 1166|   116k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19byte_string_storageEEEvRS5_:
 1156|   462k|        {
 1157|   462k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|   462k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|   462k|        {
 1163|   462k|            TypeR temp{other.cast<TypeR>()};
 1164|   462k|            other.construct<TypeL>(cast<TypeL>());
 1165|   462k|            construct<TypeR>(temp);
 1166|   462k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_13array_storageEEEvRS5_:
 1156|   135k|        {
 1157|   135k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|   135k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|   135k|        {
 1163|   135k|            TypeR temp{other.cast<TypeR>()};
 1164|   135k|            other.construct<TypeL>(cast<TypeL>());
 1165|   135k|            construct<TypeR>(temp);
 1166|   135k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_14object_storageEEEvRS5_:
 1156|  2.69M|        {
 1157|  2.69M|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  2.69M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  2.69M|        {
 1163|  2.69M|            TypeR temp{other.cast<TypeR>()};
 1164|  2.69M|            other.construct<TypeL>(cast<TypeL>());
 1165|  2.69M|            construct<TypeR>(temp);
 1166|  2.69M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_20empty_object_storageEEEvRS5_:
 1170|  1.15k|        {
 1171|  1.15k|            switch (other.storage_kind())
 1172|  1.15k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 1.15k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 1.15k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 1.15k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 1.15k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 1.15k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 1.15k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 1.15k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 1.15k]
  ------------------
 1181|     26|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 26, False: 1.12k]
  ------------------
 1182|      8|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 8, False: 1.14k]
  ------------------
 1183|    212|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 212, False: 938]
  ------------------
 1184|    904|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 904, False: 246]
  ------------------
 1185|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 0, False: 1.15k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 1.15k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 1.15k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  1.15k|            }
 1191|  1.15k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19long_string_storageEEEvRS5_:
 1156|     26|        {
 1157|     26|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|     26|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|     26|        {
 1163|     26|            TypeR temp{other.cast<TypeR>()};
 1164|     26|            other.construct<TypeL>(cast<TypeL>());
 1165|     26|            construct<TypeR>(temp);
 1166|     26|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19byte_string_storageEEEvRS5_:
 1156|      8|        {
 1157|      8|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|      8|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|      8|        {
 1163|      8|            TypeR temp{other.cast<TypeR>()};
 1164|      8|            other.construct<TypeL>(cast<TypeL>());
 1165|      8|            construct<TypeR>(temp);
 1166|      8|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_13array_storageEEEvRS5_:
 1156|    212|        {
 1157|    212|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    212|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    212|        {
 1163|    212|            TypeR temp{other.cast<TypeR>()};
 1164|    212|            other.construct<TypeL>(cast<TypeL>());
 1165|    212|            construct<TypeR>(temp);
 1166|    212|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_14object_storageEEEvRS5_:
 1156|    904|        {
 1157|    904|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    904|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    904|        {
 1163|    904|            TypeR temp{other.cast<TypeR>()};
 1164|    904|            other.construct<TypeL>(cast<TypeL>());
 1165|    904|            construct<TypeR>(temp);
 1166|    904|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12bool_storageEEEvRS5_:
 1170|  4.43k|        {
 1171|  4.43k|            switch (other.storage_kind())
 1172|  4.43k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 4.43k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 4.43k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 4.43k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 4.43k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 4.43k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 4.43k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 4.43k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 4.43k]
  ------------------
 1181|    210|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 210, False: 4.22k]
  ------------------
 1182|    951|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 951, False: 3.48k]
  ------------------
 1183|    314|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 314, False: 4.12k]
  ------------------
 1184|  2.96k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 2.96k, False: 1.47k]
  ------------------
 1185|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 0, False: 4.43k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 4.43k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 4.43k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  4.43k|            }
 1191|  4.43k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19long_string_storageEEEvRS5_:
 1156|    210|        {
 1157|    210|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    210|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    210|        {
 1163|    210|            TypeR temp{other.cast<TypeR>()};
 1164|    210|            other.construct<TypeL>(cast<TypeL>());
 1165|    210|            construct<TypeR>(temp);
 1166|    210|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19byte_string_storageEEEvRS5_:
 1156|    951|        {
 1157|    951|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    951|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    951|        {
 1163|    951|            TypeR temp{other.cast<TypeR>()};
 1164|    951|            other.construct<TypeL>(cast<TypeL>());
 1165|    951|            construct<TypeR>(temp);
 1166|    951|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_13array_storageEEEvRS5_:
 1156|    314|        {
 1157|    314|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    314|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    314|        {
 1163|    314|            TypeR temp{other.cast<TypeR>()};
 1164|    314|            other.construct<TypeL>(cast<TypeL>());
 1165|    314|            construct<TypeR>(temp);
 1166|    314|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_14object_storageEEEvRS5_:
 1156|  2.96k|        {
 1157|  2.96k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  2.96k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  2.96k|        {
 1163|  2.96k|            TypeR temp{other.cast<TypeR>()};
 1164|  2.96k|            other.construct<TypeL>(cast<TypeL>());
 1165|  2.96k|            construct<TypeR>(temp);
 1166|  2.96k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_13int64_storageEEEvRS5_:
 1170|   202k|        {
 1171|   202k|            switch (other.storage_kind())
 1172|   202k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 202k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 202k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 202k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 202k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 202k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 202k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 202k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 202k]
  ------------------
 1181|  4.51k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 4.51k, False: 197k]
  ------------------
 1182|  14.4k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 14.4k, False: 187k]
  ------------------
 1183|  3.29k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 3.29k, False: 199k]
  ------------------
 1184|   180k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 180k, False: 22.2k]
  ------------------
 1185|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 0, False: 202k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 202k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 202k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|   202k|            }
 1191|   202k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19long_string_storageEEEvRS5_:
 1156|  4.51k|        {
 1157|  4.51k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  4.51k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  4.51k|        {
 1163|  4.51k|            TypeR temp{other.cast<TypeR>()};
 1164|  4.51k|            other.construct<TypeL>(cast<TypeL>());
 1165|  4.51k|            construct<TypeR>(temp);
 1166|  4.51k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19byte_string_storageEEEvRS5_:
 1156|  14.4k|        {
 1157|  14.4k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  14.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  14.4k|        {
 1163|  14.4k|            TypeR temp{other.cast<TypeR>()};
 1164|  14.4k|            other.construct<TypeL>(cast<TypeL>());
 1165|  14.4k|            construct<TypeR>(temp);
 1166|  14.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_13array_storageEEEvRS5_:
 1156|  3.29k|        {
 1157|  3.29k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  3.29k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  3.29k|        {
 1163|  3.29k|            TypeR temp{other.cast<TypeR>()};
 1164|  3.29k|            other.construct<TypeL>(cast<TypeL>());
 1165|  3.29k|            construct<TypeR>(temp);
 1166|  3.29k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_14object_storageEEEvRS5_:
 1156|   180k|        {
 1157|   180k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|   180k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|   180k|        {
 1163|   180k|            TypeR temp{other.cast<TypeR>()};
 1164|   180k|            other.construct<TypeL>(cast<TypeL>());
 1165|   180k|            construct<TypeR>(temp);
 1166|   180k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_14uint64_storageEEEvRS5_:
 1170|   354k|        {
 1171|   354k|            switch (other.storage_kind())
 1172|   354k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 354k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 354k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 354k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 354k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 354k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 354k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 354k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 354k]
  ------------------
 1181|  8.86k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 8.86k, False: 346k]
  ------------------
 1182|  40.2k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 40.2k, False: 314k]
  ------------------
 1183|  22.5k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 22.5k, False: 332k]
  ------------------
 1184|   283k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 283k, False: 71.6k]
  ------------------
 1185|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 0, False: 354k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 354k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 354k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|   354k|            }
 1191|   354k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19long_string_storageEEEvRS5_:
 1156|  8.86k|        {
 1157|  8.86k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  8.86k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  8.86k|        {
 1163|  8.86k|            TypeR temp{other.cast<TypeR>()};
 1164|  8.86k|            other.construct<TypeL>(cast<TypeL>());
 1165|  8.86k|            construct<TypeR>(temp);
 1166|  8.86k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19byte_string_storageEEEvRS5_:
 1156|  40.2k|        {
 1157|  40.2k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  40.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  40.2k|        {
 1163|  40.2k|            TypeR temp{other.cast<TypeR>()};
 1164|  40.2k|            other.construct<TypeL>(cast<TypeL>());
 1165|  40.2k|            construct<TypeR>(temp);
 1166|  40.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_13array_storageEEEvRS5_:
 1156|  22.5k|        {
 1157|  22.5k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  22.5k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  22.5k|        {
 1163|  22.5k|            TypeR temp{other.cast<TypeR>()};
 1164|  22.5k|            other.construct<TypeL>(cast<TypeL>());
 1165|  22.5k|            construct<TypeR>(temp);
 1166|  22.5k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_14object_storageEEEvRS5_:
 1156|   283k|        {
 1157|   283k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|   283k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|   283k|        {
 1163|   283k|            TypeR temp{other.cast<TypeR>()};
 1164|   283k|            other.construct<TypeL>(cast<TypeL>());
 1165|   283k|            construct<TypeR>(temp);
 1166|   283k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12half_storageEEEvRS5_:
 1170|  5.36k|        {
 1171|  5.36k|            switch (other.storage_kind())
 1172|  5.36k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 5.36k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 5.36k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 5.36k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 5.36k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 5.36k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 5.36k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 5.36k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 5.36k]
  ------------------
 1181|    330|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 330, False: 5.03k]
  ------------------
 1182|  4.33k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 4.33k, False: 1.03k]
  ------------------
 1183|    295|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 295, False: 5.07k]
  ------------------
 1184|    410|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 410, False: 4.95k]
  ------------------
 1185|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 0, False: 5.36k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 5.36k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 5.36k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  5.36k|            }
 1191|  5.36k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19long_string_storageEEEvRS5_:
 1156|    330|        {
 1157|    330|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    330|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    330|        {
 1163|    330|            TypeR temp{other.cast<TypeR>()};
 1164|    330|            other.construct<TypeL>(cast<TypeL>());
 1165|    330|            construct<TypeR>(temp);
 1166|    330|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19byte_string_storageEEEvRS5_:
 1156|  4.33k|        {
 1157|  4.33k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  4.33k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  4.33k|        {
 1163|  4.33k|            TypeR temp{other.cast<TypeR>()};
 1164|  4.33k|            other.construct<TypeL>(cast<TypeL>());
 1165|  4.33k|            construct<TypeR>(temp);
 1166|  4.33k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_13array_storageEEEvRS5_:
 1156|    295|        {
 1157|    295|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    295|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    295|        {
 1163|    295|            TypeR temp{other.cast<TypeR>()};
 1164|    295|            other.construct<TypeL>(cast<TypeL>());
 1165|    295|            construct<TypeR>(temp);
 1166|    295|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_14object_storageEEEvRS5_:
 1156|    410|        {
 1157|    410|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    410|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    410|        {
 1163|    410|            TypeR temp{other.cast<TypeR>()};
 1164|    410|            other.construct<TypeL>(cast<TypeL>());
 1165|    410|            construct<TypeR>(temp);
 1166|    410|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_14double_storageEEEvRS5_:
 1170|  7.73k|        {
 1171|  7.73k|            switch (other.storage_kind())
 1172|  7.73k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 7.73k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 7.73k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 7.73k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 7.73k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 7.73k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 7.73k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 7.73k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 7.73k]
  ------------------
 1181|    140|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 140, False: 7.59k]
  ------------------
 1182|    679|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 679, False: 7.05k]
  ------------------
 1183|    565|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 565, False: 7.17k]
  ------------------
 1184|  6.35k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 6.35k, False: 1.38k]
  ------------------
 1185|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 0, False: 7.73k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 7.73k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 7.73k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  7.73k|            }
 1191|  7.73k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19long_string_storageEEEvRS5_:
 1156|    140|        {
 1157|    140|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    140|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    140|        {
 1163|    140|            TypeR temp{other.cast<TypeR>()};
 1164|    140|            other.construct<TypeL>(cast<TypeL>());
 1165|    140|            construct<TypeR>(temp);
 1166|    140|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19byte_string_storageEEEvRS5_:
 1156|    679|        {
 1157|    679|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    679|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    679|        {
 1163|    679|            TypeR temp{other.cast<TypeR>()};
 1164|    679|            other.construct<TypeL>(cast<TypeL>());
 1165|    679|            construct<TypeR>(temp);
 1166|    679|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_13array_storageEEEvRS5_:
 1156|    565|        {
 1157|    565|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    565|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    565|        {
 1163|    565|            TypeR temp{other.cast<TypeR>()};
 1164|    565|            other.construct<TypeL>(cast<TypeL>());
 1165|    565|            construct<TypeR>(temp);
 1166|    565|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_14object_storageEEEvRS5_:
 1156|  6.35k|        {
 1157|  6.35k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  6.35k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  6.35k|        {
 1163|  6.35k|            TypeR temp{other.cast<TypeR>()};
 1164|  6.35k|            other.construct<TypeL>(cast<TypeL>());
 1165|  6.35k|            construct<TypeR>(temp);
 1166|  6.35k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_20short_string_storageEEEvRS5_:
 1170|  8.56k|        {
 1171|  8.56k|            switch (other.storage_kind())
 1172|  8.56k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 8.56k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 8.56k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 8.56k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 8.56k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 8.56k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 8.56k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 8.56k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 8.56k]
  ------------------
 1181|  2.74k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 2.74k, False: 5.82k]
  ------------------
 1182|  1.73k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 1.73k, False: 6.82k]
  ------------------
 1183|  1.79k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 1.79k, False: 6.76k]
  ------------------
 1184|  2.28k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 2.28k, False: 6.27k]
  ------------------
 1185|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 0, False: 8.56k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 8.56k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 8.56k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  8.56k|            }
 1191|  8.56k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19long_string_storageEEEvRS5_:
 1156|  2.74k|        {
 1157|  2.74k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  2.74k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  2.74k|        {
 1163|  2.74k|            TypeR temp{other.cast<TypeR>()};
 1164|  2.74k|            other.construct<TypeL>(cast<TypeL>());
 1165|  2.74k|            construct<TypeR>(temp);
 1166|  2.74k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19byte_string_storageEEEvRS5_:
 1156|  1.73k|        {
 1157|  1.73k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  1.73k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  1.73k|        {
 1163|  1.73k|            TypeR temp{other.cast<TypeR>()};
 1164|  1.73k|            other.construct<TypeL>(cast<TypeL>());
 1165|  1.73k|            construct<TypeR>(temp);
 1166|  1.73k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_13array_storageEEEvRS5_:
 1156|  1.79k|        {
 1157|  1.79k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  1.79k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  1.79k|        {
 1163|  1.79k|            TypeR temp{other.cast<TypeR>()};
 1164|  1.79k|            other.construct<TypeL>(cast<TypeL>());
 1165|  1.79k|            construct<TypeR>(temp);
 1166|  1.79k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_14object_storageEEEvRS5_:
 1156|  2.28k|        {
 1157|  2.28k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  2.28k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  2.28k|        {
 1163|  2.28k|            TypeR temp{other.cast<TypeR>()};
 1164|  2.28k|            other.construct<TypeL>(cast<TypeL>());
 1165|  2.28k|            construct<TypeR>(temp);
 1166|  2.28k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ImEET_NS_12semantic_tagENS2_9enable_ifIXaasr6nonstd19is_unsigned_integerIS7_EE5valuelestS7_Lm8EEiE4typeE:
 2614|  10.7M|        {
 2615|  10.7M|            construct<uint64_storage>(val, tag);
 2616|  10.7M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14uint64_storageEJRmRNS_12semantic_tagEEEEvDpOT0_:
  995|  10.7M|        {
  996|  10.7M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  10.7M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14uint64_storageC2EmNS_12semantic_tagE:
  516|  10.7M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::uint64)), short_str_length_(0), tag_(tag),
  517|  10.7M|                  val_(val)
  518|  10.7M|            {
  519|  10.7M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2IlEET_NS_12semantic_tagENS2_9enable_ifIXaasr6nonstd17is_signed_integerIS7_EE5valuelestS7_Lm8EEiE4typeE:
 2645|  2.69M|        {
 2646|  2.69M|            construct<int64_storage>(val, tag);
 2647|  2.69M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13int64_storageEJRlRNS_12semantic_tagEEEEvDpOT0_:
  995|  2.69M|        {
  996|  2.69M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  2.69M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13int64_storageC2ElNS_12semantic_tagE:
  496|  2.69M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::int64)), short_str_length_(0), tag_(tag),
  497|  2.69M|                  val_(val)
  498|  2.69M|            {
  499|  2.69M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EdNS_12semantic_tagE:
 2602|  80.6k|        {
 2603|  80.6k|            construct<double_storage>(val, tag);
 2604|  80.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14double_storageEJRdRNS_12semantic_tagEEEEvDpOT0_:
  995|  80.6k|        {
  996|  80.6k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  80.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14double_storageC2EdNS_12semantic_tagE:
  555|  80.6k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::float64)), short_str_length_(0), tag_(tag),
  556|  80.6k|                  val_(val)
  557|  80.6k|            {
  558|  80.6k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_16json_array_arg_tENS_12semantic_tagE:
 2401|  7.09M|        {
 2402|  7.09M|            auto ptr = create_array(Allocator());
 2403|  7.09M|            construct<array_storage>(ptr, tag);
 2404|  7.09M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12create_arrayIJEEEPNS_10json_arrayIS5_NS2_6vectorEEERKS4_DpOT_:
  957|  7.09M|        {
  958|  7.09M|            using stor_allocator_type = typename array_storage::allocator_type;
  959|  7.09M|            stor_allocator_type stor_alloc(alloc);
  960|  7.09M|            auto ptr = std::allocator_traits<stor_allocator_type>::allocate(stor_alloc, 1);
  961|  7.09M|            JSONCONS_TRY
  ------------------
  |  |   37|  7.09M|    #define JSONCONS_TRY try
  ------------------
  962|  7.09M|            {
  963|  7.09M|                std::allocator_traits<stor_allocator_type>::construct(stor_alloc, nonstd::to_plain_pointer(ptr), 
  964|  7.09M|                    std::forward<Args>(args)...);
  965|  7.09M|            }
  966|  7.09M|            JSONCONS_CATCH(...)
  967|  7.09M|            {
  968|      0|                std::allocator_traits<stor_allocator_type>::deallocate(stor_alloc, ptr,1);
  969|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  970|      0|            }
  971|  7.09M|            return ptr;
  972|  7.09M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13array_storageEJRPNS_10json_arrayIS5_NS2_6vectorEEERNS_12semantic_tagEEEEvDpOT0_:
  995|  7.09M|        {
  996|  7.09M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  7.09M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storageC2EPNS_10json_arrayIS5_NS2_6vectorEEENS_12semantic_tagE:
  722|  7.09M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::array)), short_str_length_(0), tag_(tag), ptr_(ptr)
  723|  7.09M|            {
  724|  7.09M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_9null_typeENS_12semantic_tagE:
 2691|  56.6k|        {
 2692|  56.6k|            construct<null_storage>(tag);
 2693|  56.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJRNS_12semantic_tagEEEEvDpOT0_:
  995|  56.6k|        {
  996|  56.6k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  56.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EbNS_12semantic_tagE:
 2701|  2.02M|        {
 2702|  2.02M|            construct<bool_storage>(val,tag);
 2703|  2.02M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12bool_storageEJRbRNS_12semantic_tagEEEEvDpOT0_:
  995|  2.02M|        {
  996|  2.02M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  2.02M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12bool_storageC2EbNS_12semantic_tagE:
  475|  2.02M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::boolean)), short_str_length_(0), tag_(tag),
  476|  2.02M|                  val_(val)
  477|  2.02M|            {
  478|  2.02M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ERKNS2_17basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagE:
 2549|   113k|            : basic_json(s.data(), s.size(), tag, allocator_type())
 2550|   113k|        {
 2551|   113k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EPKcmNS_12semantic_tagERKS4_:
 2579|   113k|        {
 2580|   113k|            if (length <= short_string_storage::max_length)
  ------------------
  |  Branch (2580:17): [True: 75.8k, False: 37.2k]
  ------------------
 2581|  75.8k|            {
 2582|  75.8k|                construct<short_string_storage>(s, static_cast<uint8_t>(length), tag);
 2583|  75.8k|            }
 2584|  37.2k|            else
 2585|  37.2k|            {
 2586|  37.2k|                auto ptr = create_long_string(alloc, s, length);
 2587|  37.2k|                construct<long_string_storage>(ptr, tag);
 2588|  37.2k|            }
 2589|   113k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20short_string_storageEJRPKchRNS_12semantic_tagEEEEvDpOT0_:
  995|  75.8k|        {
  996|  75.8k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  75.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20short_string_storageC2EPKchNS_12semantic_tagE:
  577|  75.8k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::short_str)), short_str_length_(length), tag_(tag)
  578|  75.8k|            {
  579|  75.8k|                JSONCONS_ASSERT(length <= max_length);
  ------------------
  |  |   54|  75.8k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 75.8k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  580|  75.8k|                std::memcpy(data_,p,length*sizeof(char_type));
  581|  75.8k|                data_[length] = 0;
  582|  75.8k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18create_long_stringERKS4_PKcm:
  943|  37.2k|        {
  944|  37.2k|            using heap_string_factory_type = jsoncons::heap::heap_string_factory<char_type,null_type,Allocator>;
  945|  37.2k|            return heap_string_factory_type::create(data, length, null_type(), alloc); 
  946|  37.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19long_string_storageEJRPNS_4heap11heap_stringIcNS_9null_typeES4_EERNS_12semantic_tagEEEEvDpOT0_:
  995|  37.2k|        {
  996|  37.2k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  37.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19long_string_storageC2EPNS_4heap11heap_stringIcNS_9null_typeES4_EENS_12semantic_tagE:
  621|  37.2k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(tag), ptr_(ptr)
  622|  37.2k|            {
  623|  37.2k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ERKNS2_17basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKS4_:
 2711|     44|            : basic_json(sv.data(), sv.length(), tag, alloc)
 2712|     44|        {
 2713|     44|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_NS_12semantic_tagENS2_9enable_ifIXsr6nonstd18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2719|  1.11M|        {
 2720|  1.11M|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2721|       |            
 2722|  1.11M|            auto ptr = create_byte_string(Allocator(), bytes.data(), bytes.size(), 0);
 2723|  1.11M|            construct<byte_string_storage>(ptr, tag);
 2724|  1.11M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18create_byte_stringERKS4_PKhmm:
  950|  1.14M|        {
  951|  1.14M|            using heap_string_factory_type = jsoncons::heap::heap_string_factory<uint8_t,uint64_t,Allocator>;
  952|  1.14M|            return heap_string_factory_type::create(data, length, raw_tag, alloc); 
  953|  1.14M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRPNS_4heap11heap_stringIhmS4_EERNS_12semantic_tagEEEEvDpOT0_:
  995|  1.11M|        {
  996|  1.11M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  1.11M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19byte_string_storageC2EPNS_4heap11heap_stringIhmS4_EENS_12semantic_tagE:
  670|  1.14M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::byte_str)), short_str_length_(0), tag_(tag), ptr_(ptr)
  671|  1.14M|            {
  672|  1.14M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_NS_12semantic_tagERKS4_NS2_9enable_ifIXsr6nonstd18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2731|      8|        {
 2732|      8|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2733|       |
 2734|      8|            auto ptr = create_byte_string(alloc, bytes.data(), bytes.size(), 0);
 2735|      8|            construct<byte_string_storage>(ptr, tag);
 2736|      8|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_mNS2_9enable_ifIXsr6nonstd18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2742|  26.0k|        {
 2743|  26.0k|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2744|       |
 2745|  26.0k|            auto ptr = create_byte_string(Allocator(), bytes.data(), bytes.size(), raw_tag);
 2746|  26.0k|            construct<byte_string_storage>(ptr, semantic_tag::ext);
 2747|  26.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRPNS_4heap11heap_stringIhmS4_EENS_12semantic_tagEEEEvDpOT0_:
  995|  26.0k|        {
  996|  26.0k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  26.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_10half_arg_tEtNS_12semantic_tagE:
 2592|  24.6k|        {
 2593|  24.6k|            construct<half_storage>(val, tag);
 2594|  24.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12half_storageEJRtRNS_12semantic_tagEEEEvDpOT0_:
  995|  24.6k|        {
  996|  24.6k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  24.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12half_storageC2EtNS_12semantic_tagE:
  535|  24.6k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::half_float)), short_str_length_(0), tag_(tag),
  536|  24.6k|                  val_(val)
  537|  24.6k|            {
  538|  24.6k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEED2Ev:
 2774|   115M|        {
 2775|   115M|             destroy();
 2776|   115M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE7destroyEv:
  898|   115M|        {
  899|   115M|            switch (storage_kind())
  900|   115M|            {
  901|  37.2k|                case json_storage_kind::long_str:
  ------------------
  |  Branch (901:17): [True: 37.2k, False: 115M]
  ------------------
  902|  37.2k|                {
  903|  37.2k|                    if (cast<long_string_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (903:25): [True: 37.2k, False: 0]
  ------------------
  904|  37.2k|                    {
  905|  37.2k|                        long_string_storage::heap_string_factory_type::destroy(cast<long_string_storage>().ptr_);
  906|  37.2k|                    }
  907|  37.2k|                    break;
  908|      0|                }
  909|  1.14M|                case json_storage_kind::byte_str:
  ------------------
  |  Branch (909:17): [True: 1.14M, False: 114M]
  ------------------
  910|  1.14M|                    if (cast<byte_string_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (910:25): [True: 1.14M, False: 0]
  ------------------
  911|  1.14M|                    {
  912|  1.14M|                        byte_string_storage::heap_string_factory_type::destroy(cast<byte_string_storage>().ptr_);
  913|  1.14M|                    }
  914|  1.14M|                    break;
  915|  7.09M|                case json_storage_kind::array:
  ------------------
  |  Branch (915:17): [True: 7.09M, False: 108M]
  ------------------
  916|  7.09M|                {
  917|  7.09M|                    if (cast<array_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (917:25): [True: 7.09M, False: 0]
  ------------------
  918|  7.09M|                    {
  919|  7.09M|                        auto& stor = cast<array_storage>();
  920|  7.09M|                        typename array_storage::allocator_type alloc{stor.ptr_->get_allocator()};
  921|  7.09M|                        std::allocator_traits<typename array_storage::allocator_type>::destroy(alloc, nonstd::to_plain_pointer(stor.ptr_));
  922|  7.09M|                        std::allocator_traits<typename array_storage::allocator_type>::deallocate(alloc, stor.ptr_,1);
  923|  7.09M|                    }
  924|  7.09M|                    break;
  925|      0|                }
  926|  4.93M|                case json_storage_kind::object:
  ------------------
  |  Branch (926:17): [True: 4.93M, False: 110M]
  ------------------
  927|  4.93M|                {
  928|  4.93M|                    if (cast<object_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (928:25): [True: 4.93M, False: 0]
  ------------------
  929|  4.93M|                    {
  930|  4.93M|                        auto& stor = cast<object_storage>();
  931|  4.93M|                        typename object_storage::allocator_type alloc{stor.ptr_->get_allocator()};
  932|  4.93M|                        std::allocator_traits<typename object_storage::allocator_type>::destroy(alloc, nonstd::to_plain_pointer(stor.ptr_));
  933|  4.93M|                        std::allocator_traits<typename object_storage::allocator_type>::deallocate(alloc, stor.ptr_,1);
  934|  4.93M|                    }
  935|  4.93M|                    break;
  936|      0|                }
  937|   102M|                default:
  ------------------
  |  Branch (937:17): [True: 102M, False: 13.2M]
  ------------------
  938|   102M|                    break;
  939|   115M|            }
  940|   115M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE11array_rangeEv:
 4759|  6.86M|        {
 4760|  6.86M|            switch (storage_kind())
 4761|  6.86M|            {
 4762|  6.86M|                case json_storage_kind::array:
  ------------------
  |  Branch (4762:17): [True: 6.86M, False: 0]
  ------------------
 4763|  6.86M|                    return array_range_type(cast<array_storage>().value().begin(),
 4764|  6.86M|                        cast<array_storage>().value().end());
 4765|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4765:17): [True: 0, False: 6.86M]
  ------------------
 4766|      0|                    return cast<json_ref_storage>().value().array_range();
 4767|      0|                default:
  ------------------
  |  Branch (4767:17): [True: 0, False: 6.86M]
  ------------------
 4768|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an array"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4769|  6.86M|            }
 4770|  6.86M|        }
_ZN8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEEC2ERKS9_SF_:
  348|  6.86M|            : first_(first), last_(last)
  349|  6.86M|        {
  350|  6.86M|        }
_ZNK8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEE5beginEv:
  353|  6.86M|        {
  354|  6.86M|            return first_;
  355|  6.86M|        }
_ZNK8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEE3endEv:
  357|  6.86M|        {
  358|  6.86M|            return last_;
  359|  6.86M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE5emptyEv:
 3425|  6.85M|        {
 3426|  6.85M|            switch (storage_kind())
 3427|  6.85M|            {
 3428|      0|                case json_storage_kind::byte_str:
  ------------------
  |  Branch (3428:17): [True: 0, False: 6.85M]
  ------------------
 3429|      0|                    return cast<byte_string_storage>().length() == 0;
 3430|      0|                    break;
 3431|      0|                case json_storage_kind::short_str:
  ------------------
  |  Branch (3431:17): [True: 0, False: 6.85M]
  ------------------
 3432|      0|                    return cast<short_string_storage>().length() == 0;
 3433|      0|                case json_storage_kind::long_str:
  ------------------
  |  Branch (3433:17): [True: 0, False: 6.85M]
  ------------------
 3434|      0|                    return cast<long_string_storage>().length() == 0;
 3435|  6.75M|                case json_storage_kind::array:
  ------------------
  |  Branch (3435:17): [True: 6.75M, False: 106k]
  ------------------
 3436|  6.75M|                    return cast<array_storage>().value().empty();
 3437|      0|                case json_storage_kind::empty_object:
  ------------------
  |  Branch (3437:17): [True: 0, False: 6.85M]
  ------------------
 3438|      0|                    return true;
 3439|   106k|                case json_storage_kind::object:
  ------------------
  |  Branch (3439:17): [True: 106k, False: 6.75M]
  ------------------
 3440|   106k|                    return cast<object_storage>().value().empty();
 3441|      0|                case json_storage_kind::const_json_ref:
  ------------------
  |  Branch (3441:17): [True: 0, False: 6.85M]
  ------------------
 3442|      0|                    return cast<const_json_ref_storage>().value().empty();
 3443|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (3443:17): [True: 0, False: 6.85M]
  ------------------
 3444|      0|                    return cast<json_ref_storage>().value().empty();
 3445|      0|                default:
  ------------------
  |  Branch (3445:17): [True: 0, False: 6.85M]
  ------------------
 3446|      0|                    return false;
 3447|  6.85M|            }
 3448|  6.85M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13array_storageEEERKT_v:
 1010|  6.75M|        {
 1011|  6.75M|            return cast(identity<T>());
 1012|  6.75M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13array_storageEEE:
 1130|  6.75M|        {
 1131|  6.75M|            return array_;
 1132|  6.75M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storage5valueEv:
  755|  6.75M|            {
  756|  6.75M|                return *ptr_;
  757|  6.75M|            }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14object_storageEEERKT_v:
 1010|   106k|        {
 1011|   106k|            return cast(identity<T>());
 1012|   106k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14object_storageEEE:
 1120|   106k|        {
 1121|   106k|            return object_;
 1122|   106k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storage5valueEv:
  801|   106k|            {
  802|   106k|                JSONCONS_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   54|   106k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 106k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  803|   106k|                return *ptr_;
  804|   106k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE5clearEv:
 4156|  9.10M|        {
 4157|  9.10M|            switch (storage_kind())
 4158|  9.10M|            {
 4159|  6.86M|                case json_storage_kind::array:
  ------------------
  |  Branch (4159:17): [True: 6.86M, False: 2.24M]
  ------------------
 4160|  6.86M|                    cast<array_storage>().value().clear();
 4161|  6.86M|                    break;
 4162|  2.24M|                case json_storage_kind::object:
  ------------------
  |  Branch (4162:17): [True: 2.24M, False: 6.86M]
  ------------------
 4163|  2.24M|                    cast<object_storage>().value().clear();
 4164|  2.24M|                    break;
 4165|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4165:17): [True: 0, False: 9.10M]
  ------------------
 4166|      0|                    cast<json_ref_storage>().value().clear();
 4167|      0|                    break;
 4168|      0|                default:
  ------------------
  |  Branch (4168:17): [True: 0, False: 9.10M]
  ------------------
 4169|      0|                    break;
 4170|  9.10M|            }
 4171|  9.10M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12object_rangeEv:
 4725|  2.24M|        {
 4726|  2.24M|            switch (storage_kind())
 4727|  2.24M|            {
 4728|      0|                case json_storage_kind::empty_object:
  ------------------
  |  Branch (4728:17): [True: 0, False: 2.24M]
  ------------------
 4729|      0|                    return object_range_type(object_iterator(), object_iterator());
 4730|  2.24M|                case json_storage_kind::object:
  ------------------
  |  Branch (4730:17): [True: 2.24M, False: 0]
  ------------------
 4731|  2.24M|                    return object_range_type(object_iterator(cast<object_storage>().value().begin()),
 4732|  2.24M|                                                  object_iterator(cast<object_storage>().value().end()));
 4733|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4733:17): [True: 0, False: 2.24M]
  ------------------
 4734|      0|                    return cast<json_ref_storage>().value().object_range();
 4735|      0|                default:
  ------------------
  |  Branch (4735:17): [True: 0, False: 2.24M]
  ------------------
 4736|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an object"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4737|  2.24M|            }
 4738|  2.24M|        }
_ZN8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEEC2ERKSI_SP_:
  348|  2.24M|            : first_(first), last_(last)
  349|  2.24M|        {
  350|  2.24M|        }
_ZN8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEC2ESG_:
  118|  4.48M|            explicit json_object_iterator_adaptor(Iterator ptr) : current_(ptr), has_value_(true)  
  119|  4.48M|            {
  120|  4.48M|            }
_ZNK8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEE5beginEv:
  353|  2.24M|        {
  354|  2.24M|            return first_;
  355|  2.24M|        }
_ZNK8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEE3endEv:
  357|  2.24M|        {
  358|  2.24M|            return last_;
  359|  2.24M|        }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEneERKSH_:
  218|  2.29M|            {
  219|  2.29M|                return !(*this == rhs);
  220|  2.29M|            }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEeqERKSH_:
  209|  2.29M|            {
  210|  2.29M|                if (JSONCONS_LIKELY(has_value_ && rhs.has_value_))
  ------------------
  |  |   78|  4.58M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 2.29M, False: 0]
  |  |  |  Branch (78:48): [True: 2.29M, False: 0]
  |  |  |  Branch (78:48): [True: 2.29M, False: 0]
  |  |  ------------------
  ------------------
  211|  2.29M|                {
  212|  2.29M|                    return current_ == rhs.current_;
  213|  2.29M|                }
  214|      0|                return !has_value_ && !rhs.has_value_;
  ------------------
  |  Branch (214:24): [True: 0, False: 0]
  |  Branch (214:39): [True: 0, False: 0]
  ------------------
  215|  2.29M|            }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEdeEv:
  140|  49.3k|            {
  141|  49.3k|                return *current_;
  142|  49.3k|            }
_ZN8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEppEv:
  150|  49.3k|            {
  151|  49.3k|                ++current_;
  152|  49.3k|                return *this;
  153|  49.3k|            }

_ZN8jsoncons11countr_zeroImEEiT_:
  294|   134k|{
  295|   134k|    return jsoncons::nonstd::countr_zero(x);
  296|   134k|}
_ZN8jsoncons11countl_zeroImEEiT_:
  289|  3.01k|{
  290|  3.01k|    return jsoncons::nonstd::countl_zero(x);
  291|  3.01k|}
_ZN8jsoncons12launder_castIPNS_4heap19heap_string_factoryIcNS_9null_typeENSt3__19allocatorIcEEE9storage_tEcEET_PT0_:
  248|  37.2k|    {
  249|  37.2k|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  250|  37.2k|        return std::launder(reinterpret_cast<T>(u));
  251|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  252|       |        return __builtin_launder(reinterpret_cast<T>(u));
  253|       |    #else
  254|       |        return reinterpret_cast<T>(u);
  255|       |    #endif
  256|  37.2k|    }
_ZN8jsoncons12launder_castIPNS_4heap19heap_string_factoryIhmNSt3__19allocatorIcEEE9storage_tEcEET_PT0_:
  248|  1.14M|    {
  249|  1.14M|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  250|  1.14M|        return std::launder(reinterpret_cast<T>(u));
  251|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  252|       |        return __builtin_launder(reinterpret_cast<T>(u));
  253|       |    #else
  254|       |        return reinterpret_cast<T>(u);
  255|       |    #endif
  256|  1.14M|    }
_ZN8jsoncons12launder_castIPcNS_4heap11heap_stringIcNS_9null_typeENSt3__19allocatorIcEEEEEET_PT0_:
  248|  37.2k|    {
  249|  37.2k|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  250|  37.2k|        return std::launder(reinterpret_cast<T>(u));
  251|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  252|       |        return __builtin_launder(reinterpret_cast<T>(u));
  253|       |    #else
  254|       |        return reinterpret_cast<T>(u);
  255|       |    #endif
  256|  37.2k|    }
_ZN8jsoncons12launder_castIPcNS_4heap11heap_stringIhmNSt3__19allocatorIcEEEEEET_PT0_:
  248|  1.14M|    {
  249|  1.14M|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  250|  1.14M|        return std::launder(reinterpret_cast<T>(u));
  251|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  252|       |        return __builtin_launder(reinterpret_cast<T>(u));
  253|       |    #else
  254|       |        return reinterpret_cast<T>(u);
  255|       |    #endif
  256|  1.14M|    }

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|  26.3M|        {
 1009|  26.3M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 318k, False: 26.0M]
  ------------------
 1010|   318k|            {
 1011|   318k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 163k, False: 154k]
  |  Branch (1011:86): [True: 110k, False: 53.7k]
  ------------------
 1012|   110k|                {
 1013|   110k|                    key_buffer_.push_back(',');
 1014|   110k|                }
 1015|   318k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|   318k|                key_buffer_.push_back('[');
 1017|   318k|            }
 1018|  26.0M|            else
 1019|  26.0M|            {
 1020|  26.0M|                switch (level_stack_.back().target_kind())
 1021|  26.0M|                {
 1022|  11.3M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 11.3M, False: 14.6M]
  ------------------
 1023|  11.3M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 11.2M, False: 144k]
  |  Branch (1023:65): [True: 1.98M, False: 9.26M]
  ------------------
 1024|  1.98M|                        {
 1025|  1.98M|                            key_buffer_.push_back(',');
 1026|  1.98M|                        }
 1027|  11.3M|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|  11.3M|                        key_buffer_.push_back('[');
 1029|  11.3M|                        break;
 1030|  14.6M|                    default:
  ------------------
  |  Branch (1030:21): [True: 14.6M, False: 11.3M]
  ------------------
 1031|  14.6M|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|  14.6M|                        destination_->begin_array(length, tag, context, ec);
 1033|  14.6M|                        break;
 1034|  26.0M|                }
 1035|  26.0M|            }
 1036|  26.3M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  26.3M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|  26.3M|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|   464M|            {
  816|   464M|                return even_odd_ == 0;
  817|   464M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|   328M|            {
  826|   328M|                return target_kind_;
  827|   328M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  52.5M|            {
  831|  52.5M|                return count_;
  832|  52.5M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|  57.5M|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 30.9M, False: 26.5M]
  ------------------
  799|  57.5M|            {
  800|  57.5M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|   218M|            {
  821|   218M|                return structure_kind_ == json_structure_kind::object;
  822|   218M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|  25.2M|        {
 1041|  25.2M|            switch (level_stack_.back().target_kind())
 1042|  25.2M|            {
 1043|  10.7M|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 10.7M, False: 14.5M]
  ------------------
 1044|  10.7M|                    key_buffer_.push_back(']');
 1045|  10.7M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  10.7M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 10.7M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1046|  10.7M|                    level_stack_.pop_back();
 1047|  10.7M|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 153k, False: 10.6M]
  ------------------
 1048|   153k|                    {
 1049|   153k|                        destination_->key(key_buffer_, context, ec);
 1050|   153k|                        key_buffer_.clear();
 1051|   153k|                    }
 1052|  10.6M|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 133k, False: 10.4M]
  ------------------
 1053|   133k|                    {
 1054|   133k|                        key_buffer_.push_back(':');
 1055|   133k|                    }
 1056|  10.7M|                    level_stack_.back().advance();
 1057|  10.7M|                    break;
 1058|  14.5M|                default:
  ------------------
  |  Branch (1058:17): [True: 14.5M, False: 10.7M]
  ------------------
 1059|  14.5M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  14.5M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 14.5M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1060|  14.5M|                    level_stack_.pop_back();
 1061|  14.5M|                    level_stack_.back().advance();
 1062|  14.5M|                    destination_->end_array(context, ec);
 1063|  14.5M|                    break;
 1064|  25.2M|            }
 1065|  25.2M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  25.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|  25.2M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|   165M|            {
  804|   165M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 130M, False: 34.9M]
  ------------------
  805|   130M|                {
  806|   130M|                    ++count_;
  807|   130M|                }
  808|   165M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 69.7M, False: 95.8M]
  ------------------
  809|  69.7M|                {
  810|  69.7M|                    even_odd_ = !even_odd_;
  811|  69.7M|                }
  812|   165M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  65.4M|        {
 1234|  65.4M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 24.5M, False: 40.8M]
  |  Branch (1234:49): [True: 9.15M, False: 31.6M]
  ------------------
 1235|  33.7M|            {
 1236|  33.7M|                key_.clear();
 1237|  33.7M|                jsoncons::from_integer(value,key_);
 1238|  33.7M|            }
 1239|       |
 1240|  65.4M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 24.5M, False: 40.8M]
  ------------------
 1241|  24.5M|            {
 1242|  24.5M|                switch (level_stack_.back().target_kind())
 1243|  24.5M|                {
 1244|  2.23M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 2.23M, False: 22.3M]
  ------------------
 1245|  2.23M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 2.17M, False: 63.6k]
  ------------------
 1246|  2.17M|                        {
 1247|  2.17M|                            key_buffer_.push_back(',');
 1248|  2.17M|                        }
 1249|  2.23M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  2.23M|                        key_buffer_.push_back(':');
 1251|  2.23M|                        break;
 1252|  22.3M|                    default:
  ------------------
  |  Branch (1252:21): [True: 22.3M, False: 2.23M]
  ------------------
 1253|  22.3M|                        destination_->key(key_, context, ec);
 1254|  22.3M|                        break;
 1255|  24.5M|                }
 1256|  24.5M|            }
 1257|  40.8M|            else
 1258|  40.8M|            {
 1259|  40.8M|                switch (level_stack_.back().target_kind())
 1260|  40.8M|                {
 1261|  9.15M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 9.15M, False: 31.6M]
  ------------------
 1262|  9.15M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 6.90M, False: 2.25M]
  |  Branch (1262:65): [True: 6.58M, False: 316k]
  ------------------
 1263|  6.58M|                        {
 1264|  6.58M|                            key_buffer_.push_back(',');
 1265|  6.58M|                        }
 1266|  9.15M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  9.15M|                        break;
 1268|  31.6M|                    default:
  ------------------
  |  Branch (1268:21): [True: 31.6M, False: 9.15M]
  ------------------
 1269|  31.6M|                        destination_->uint64_value(value, tag, context, ec);
 1270|  31.6M|                        break;
 1271|  40.8M|                }
 1272|  40.8M|            }
 1273|       |
 1274|  65.4M|            level_stack_.back().advance();
 1275|  65.4M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  65.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  65.4M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  16.2M|        {
 1280|  16.2M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 1.91M, False: 14.3M]
  |  Branch (1280:49): [True: 6.29M, False: 8.07M]
  ------------------
 1281|  8.21M|            {
 1282|  8.21M|                key_.clear();
 1283|  8.21M|                jsoncons::from_integer(value,key_);
 1284|  8.21M|            }
 1285|       |
 1286|  16.2M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 1.91M, False: 14.3M]
  ------------------
 1287|  1.91M|            {
 1288|  1.91M|                switch (level_stack_.back().target_kind())
 1289|  1.91M|                {
 1290|   355k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 355k, False: 1.56M]
  ------------------
 1291|   355k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 307k, False: 48.4k]
  ------------------
 1292|   307k|                        {
 1293|   307k|                            key_buffer_.push_back(',');
 1294|   307k|                        }
 1295|   355k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|   355k|                        key_buffer_.push_back(':');
 1297|   355k|                        break;
 1298|  1.56M|                    default:
  ------------------
  |  Branch (1298:21): [True: 1.56M, False: 355k]
  ------------------
 1299|  1.56M|                        destination_->key(key_, context, ec);
 1300|  1.56M|                        break;
 1301|  1.91M|                }
 1302|  1.91M|            }
 1303|  14.3M|            else
 1304|  14.3M|            {
 1305|  14.3M|                switch (level_stack_.back().target_kind())
 1306|  14.3M|                {
 1307|  6.29M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 6.29M, False: 8.07M]
  ------------------
 1308|  6.29M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 5.94M, False: 348k]
  |  Branch (1308:65): [True: 5.60M, False: 347k]
  ------------------
 1309|  5.60M|                        {
 1310|  5.60M|                            key_buffer_.push_back(',');
 1311|  5.60M|                        }
 1312|  6.29M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  6.29M|                        break;
 1314|  8.07M|                    default:
  ------------------
  |  Branch (1314:21): [True: 8.07M, False: 6.29M]
  ------------------
 1315|  8.07M|                        destination_->int64_value(value, tag, context, ec);
 1316|  8.07M|                        break;
 1317|  14.3M|                }
 1318|  14.3M|            }
 1319|       |
 1320|  16.2M|            level_stack_.back().advance();
 1321|  16.2M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  16.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  16.2M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|  6.88M|        {
 1375|  6.88M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 226k, False: 6.65M]
  |  Branch (1375:49): [True: 6.41M, False: 241k]
  ------------------
 1376|  6.64M|            {
 1377|  6.64M|                key_.clear();
 1378|  6.64M|                string_sink<string_type> sink(key_);
 1379|  6.64M|                jsoncons::write_double f{float_chars_format::general,0};
 1380|  6.64M|                f(value, sink);
 1381|  6.64M|            }
 1382|       |
 1383|  6.88M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 226k, False: 6.65M]
  ------------------
 1384|   226k|            {
 1385|   226k|                switch (level_stack_.back().target_kind())
 1386|   226k|                {
 1387|   203k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 203k, False: 22.7k]
  ------------------
 1388|   203k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 198k, False: 5.73k]
  ------------------
 1389|   198k|                        {
 1390|   198k|                            key_buffer_.push_back(',');
 1391|   198k|                        }
 1392|   203k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|   203k|                        key_buffer_.push_back(':');
 1394|   203k|                        break;
 1395|  22.7k|                    default:
  ------------------
  |  Branch (1395:21): [True: 22.7k, False: 203k]
  ------------------
 1396|  22.7k|                        destination_->key(key_, context, ec);
 1397|  22.7k|                        break;
 1398|   226k|                }
 1399|   226k|            }
 1400|  6.65M|            else
 1401|  6.65M|            {
 1402|  6.65M|                switch (level_stack_.back().target_kind())
 1403|  6.65M|                {
 1404|  6.41M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 6.41M, False: 241k]
  ------------------
 1405|  6.41M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 6.21M, False: 201k]
  |  Branch (1405:65): [True: 6.14M, False: 68.7k]
  ------------------
 1406|  6.14M|                        {
 1407|  6.14M|                            key_buffer_.push_back(',');
 1408|  6.14M|                        }
 1409|  6.41M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|  6.41M|                        break;
 1411|   241k|                    default:
  ------------------
  |  Branch (1411:21): [True: 241k, False: 6.41M]
  ------------------
 1412|   241k|                        destination_->double_value(value, tag, context, ec);
 1413|   241k|                        break;
 1414|  6.65M|                }
 1415|  6.65M|            }
 1416|       |
 1417|  6.88M|            level_stack_.back().advance();
 1418|  6.88M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  6.88M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|  6.88M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|  2.33k|        {
  882|  2.33k|            destination_->flush();
  883|  2.33k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  886|   108k|        {
  887|   108k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (887:17): [True: 38.4k, False: 70.4k]
  ------------------
  888|  38.4k|            {
  889|  38.4k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (889:21): [True: 33.7k, False: 4.66k]
  |  Branch (889:86): [True: 5.93k, False: 27.8k]
  ------------------
  890|  5.93k|                {
  891|  5.93k|                    key_buffer_.push_back(',');
  892|  5.93k|                }
  893|  38.4k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  894|  38.4k|                key_buffer_.push_back('{');
  895|  38.4k|            }
  896|  70.4k|            else
  897|  70.4k|            {
  898|  70.4k|                switch (level_stack_.back().target_kind())
  899|  70.4k|                {
  900|  48.7k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (900:21): [True: 48.7k, False: 21.6k]
  ------------------
  901|  48.7k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  902|  48.7k|                        key_buffer_.push_back('{');
  903|  48.7k|                        break;
  904|  21.6k|                    default:
  ------------------
  |  Branch (904:21): [True: 21.6k, False: 48.7k]
  ------------------
  905|  21.6k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  906|  21.6k|                        destination_->begin_object(tag, context, ec);
  907|  21.6k|                        break;
  908|  70.4k|                }
  909|  70.4k|            }
  910|   108k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   108k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  911|   108k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|  30.8M|        {
  915|  30.8M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 4.22M, False: 26.6M]
  ------------------
  916|  4.22M|            {
  917|  4.22M|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 750k, False: 3.47M]
  |  Branch (917:86): [True: 613k, False: 136k]
  ------------------
  918|   613k|                {
  919|   613k|                    key_buffer_.push_back(',');
  920|   613k|                }
  921|  4.22M|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|  4.22M|                key_buffer_.push_back('{');
  923|  4.22M|            }
  924|  26.6M|            else
  925|  26.6M|            {
  926|  26.6M|                switch (level_stack_.back().target_kind())
  927|  26.6M|                {
  928|  11.8M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 11.8M, False: 14.7M]
  ------------------
  929|  11.8M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 11.1M, False: 651k]
  |  Branch (929:65): [True: 9.88M, False: 1.30M]
  ------------------
  930|  9.88M|                        {
  931|  9.88M|                            key_buffer_.push_back(',');
  932|  9.88M|                        }
  933|  11.8M|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|  11.8M|                        key_buffer_.push_back('{');
  935|  11.8M|                        break;
  936|  14.7M|                    default:
  ------------------
  |  Branch (936:21): [True: 14.7M, False: 11.8M]
  ------------------
  937|  14.7M|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  14.7M|                        destination_->begin_object(length, tag, context, ec);
  939|  14.7M|                        break;
  940|  26.6M|                }
  941|  26.6M|            }
  942|  30.8M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  30.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|  30.8M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|  30.6M|        {
  947|  30.6M|            switch (level_stack_.back().target_kind())
  948|  30.6M|            {
  949|  15.8M|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 15.8M, False: 14.7M]
  ------------------
  950|  15.8M|                    key_buffer_.push_back('}');
  951|  15.8M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  15.8M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 15.8M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  952|  15.8M|                    level_stack_.pop_back();
  953|       |                    
  954|  15.8M|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 3.47M, False: 12.3M]
  ------------------
  955|  3.47M|                    {
  956|  3.47M|                        destination_->key(key_buffer_,context, ec);
  957|  3.47M|                        key_buffer_.clear();
  958|  3.47M|                    }
  959|  12.3M|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 627k, False: 11.7M]
  ------------------
  960|   627k|                    {
  961|   627k|                        key_buffer_.push_back(':');
  962|   627k|                    }
  963|  15.8M|                    level_stack_.back().advance();
  964|  15.8M|                    break;
  965|  14.7M|                default:
  ------------------
  |  Branch (965:17): [True: 14.7M, False: 15.8M]
  ------------------
  966|  14.7M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  14.7M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 14.7M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  967|  14.7M|                    level_stack_.pop_back();
  968|  14.7M|                    level_stack_.back().advance();
  969|  14.7M|                    destination_->end_object(context, ec);
  970|  14.7M|                    break;
  971|  30.6M|            }
  972|  30.6M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  30.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|  30.6M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  976|   202k|        {
  977|   202k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (977:17): [True: 17.9k, False: 184k]
  ------------------
  978|  17.9k|            {
  979|  17.9k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (979:21): [True: 15.1k, False: 2.80k]
  |  Branch (979:86): [True: 6.13k, False: 9.02k]
  ------------------
  980|  6.13k|                {
  981|  6.13k|                    key_buffer_.push_back(',');
  982|  6.13k|                }
  983|  17.9k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
  984|  17.9k|                key_buffer_.push_back('[');
  985|  17.9k|            }
  986|   184k|            else
  987|   184k|            {
  988|   184k|                switch (level_stack_.back().target_kind())
  989|   184k|                {
  990|   129k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (990:21): [True: 129k, False: 54.5k]
  ------------------
  991|   129k|                        if (level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (991:29): [True: 4.92k, False: 124k]
  |  Branch (991:64): [True: 3.75k, False: 1.17k]
  ------------------
  992|  3.75k|                        {
  993|  3.75k|                            key_buffer_.push_back(',');
  994|  3.75k|                        }
  995|   129k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
  996|   129k|                        key_buffer_.push_back('[');
  997|   129k|                        break;
  998|  54.5k|                    default:
  ------------------
  |  Branch (998:21): [True: 54.5k, False: 129k]
  ------------------
  999|  54.5k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1000|  54.5k|                        destination_->begin_array(tag, context, ec);
 1001|  54.5k|                        break;
 1002|   184k|                }
 1003|   184k|            }
 1004|   202k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   202k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1005|   202k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|   317k|        {
 1476|   317k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 67.3k, False: 250k]
  |  Branch (1476:49): [True: 80.3k, False: 169k]
  ------------------
 1477|   147k|            {
 1478|   147k|                key_.clear(); 
 1479|   147k|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|   147k|            }
 1481|       |
 1482|   317k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 67.3k, False: 250k]
  ------------------
 1483|  67.3k|            {
 1484|  67.3k|                switch (level_stack_.back().target_kind())
 1485|  67.3k|                {
 1486|  33.8k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 33.8k, False: 33.5k]
  ------------------
 1487|  33.8k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 24.7k, False: 9.07k]
  ------------------
 1488|  24.7k|                        {
 1489|  24.7k|                            key_buffer_.push_back(',');
 1490|  24.7k|                        }
 1491|  33.8k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|  33.8k|                        key_buffer_.push_back(':');
 1493|  33.8k|                        break;
 1494|  33.5k|                    default:
  ------------------
  |  Branch (1494:21): [True: 33.5k, False: 33.8k]
  ------------------
 1495|  33.5k|                        destination_->key(key_, context, ec);
 1496|  33.5k|                        break;
 1497|  67.3k|                }
 1498|  67.3k|            }
 1499|   250k|            else
 1500|   250k|            {
 1501|   250k|                switch (level_stack_.back().target_kind())
 1502|   250k|                {
 1503|  80.3k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 80.3k, False: 169k]
  ------------------
 1504|  80.3k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 50.4k, False: 29.9k]
  |  Branch (1504:65): [True: 46.1k, False: 4.28k]
  ------------------
 1505|  46.1k|                        {
 1506|  46.1k|                            key_buffer_.push_back(',');
 1507|  46.1k|                        }
 1508|  80.3k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|  80.3k|                        break;
 1510|   169k|                    default:
  ------------------
  |  Branch (1510:21): [True: 169k, False: 80.3k]
  ------------------
 1511|   169k|                        destination_->null_value(tag, context, ec);
 1512|   169k|                        break;
 1513|   250k|                }
 1514|   250k|            }
 1515|       |
 1516|   317k|            level_stack_.back().advance();
 1517|   317k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   317k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|   317k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  7.65M|        {
 1423|  7.65M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 314k, False: 7.33M]
  |  Branch (1423:49): [True: 1.25M, False: 6.07M]
  ------------------
 1424|  1.57M|            {
 1425|  1.57M|                key_.clear(); 
 1426|  1.57M|                if (value)
  ------------------
  |  Branch (1426:21): [True: 935k, False: 636k]
  ------------------
 1427|   935k|                {
 1428|   935k|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|   935k|                }
 1430|   636k|                else
 1431|   636k|                {
 1432|   636k|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|   636k|                }
 1434|  1.57M|            }
 1435|       |
 1436|  7.65M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 314k, False: 7.33M]
  ------------------
 1437|   314k|            {
 1438|   314k|                switch (level_stack_.back().target_kind())
 1439|   314k|                {
 1440|   250k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 250k, False: 63.8k]
  ------------------
 1441|   250k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 245k, False: 5.04k]
  ------------------
 1442|   245k|                        {
 1443|   245k|                            key_buffer_.push_back(',');
 1444|   245k|                        }
 1445|   250k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|   250k|                        key_buffer_.push_back(':');
 1447|   250k|                        break;
 1448|  63.8k|                    default:
  ------------------
  |  Branch (1448:21): [True: 63.8k, False: 250k]
  ------------------
 1449|  63.8k|                        destination_->key(key_, context, ec);
 1450|  63.8k|                        break;
 1451|   314k|                }
 1452|   314k|            }
 1453|  7.33M|            else
 1454|  7.33M|            {
 1455|  7.33M|                switch (level_stack_.back().target_kind())
 1456|  7.33M|                {
 1457|  1.25M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 1.25M, False: 6.07M]
  ------------------
 1458|  1.25M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 998k, False: 259k]
  |  Branch (1458:65): [True: 933k, False: 65.4k]
  ------------------
 1459|   933k|                        {
 1460|   933k|                            key_buffer_.push_back(',');
 1461|   933k|                        }
 1462|  1.25M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|  1.25M|                        break;
 1464|  6.07M|                    default:
  ------------------
  |  Branch (1464:21): [True: 6.07M, False: 1.25M]
  ------------------
 1465|  6.07M|                        destination_->bool_value(value, tag, context, ec);
 1466|  6.07M|                        break;
 1467|  7.33M|                }
 1468|  7.33M|            }
 1469|       |
 1470|  7.65M|            level_stack_.back().advance();
 1471|  7.65M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  7.65M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  7.65M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|   956k|        {
 1073|   956k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 296k, False: 660k]
  ------------------
 1074|   296k|            {
 1075|   296k|                switch (level_stack_.back().target_kind())
 1076|   296k|                {
 1077|   129k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 129k, False: 167k]
  ------------------
 1078|   129k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 98.6k, False: 30.4k]
  ------------------
 1079|  98.6k|                        {
 1080|  98.6k|                            key_buffer_.push_back(',');
 1081|  98.6k|                        }
 1082|   129k|                        key_buffer_.push_back('\"');
 1083|   129k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|   129k|                        key_buffer_.push_back('\"');
 1085|   129k|                        key_buffer_.push_back(':');
 1086|   129k|                        break;
 1087|   167k|                    default:
  ------------------
  |  Branch (1087:21): [True: 167k, False: 129k]
  ------------------
 1088|   167k|                        destination_->key(value, context, ec);
 1089|   167k|                        break;
 1090|   296k|                }
 1091|   296k|            }
 1092|   660k|            else
 1093|   660k|            {
 1094|   660k|                switch (level_stack_.back().target_kind())
 1095|   660k|                {
 1096|   321k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 321k, False: 339k]
  ------------------
 1097|   321k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 221k, False: 99.7k]
  |  Branch (1097:65): [True: 169k, False: 51.6k]
  ------------------
 1098|   169k|                        {
 1099|   169k|                            key_buffer_.push_back(',');
 1100|   169k|                        }
 1101|   321k|                        key_buffer_.push_back('\"');
 1102|   321k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|   321k|                        key_buffer_.push_back('\"');
 1104|   321k|                        break;
 1105|   339k|                    default:
  ------------------
  |  Branch (1105:21): [True: 339k, False: 321k]
  ------------------
 1106|   339k|                        destination_->string_value(value, tag, context, ec);
 1107|   339k|                        break;
 1108|   660k|                }
 1109|   660k|            }
 1110|       |
 1111|   956k|            level_stack_.back().advance();
 1112|   956k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   956k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|   956k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  11.7M|        {
 1120|  11.7M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 3.04M, False: 8.67M]
  |  Branch (1120:49): [True: 5.32M, False: 3.35M]
  ------------------
 1121|  8.36M|            {
 1122|  8.36M|                key_.clear();
 1123|  8.36M|                switch (tag)
 1124|  8.36M|                {
 1125|  7.67k|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 7.67k, False: 8.36M]
  ------------------
 1126|  7.67k|                        bytes_to_base64(value.begin(), value.end(), key_);
 1127|  7.67k|                        break;
 1128|  7.73k|                    case semantic_tag::base16:
  ------------------
  |  Branch (1128:21): [True: 7.73k, False: 8.36M]
  ------------------
 1129|  7.73k|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|  7.73k|                        break;
 1131|  8.35M|                    default:
  ------------------
  |  Branch (1131:21): [True: 8.35M, False: 15.4k]
  ------------------
 1132|  8.35M|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  8.35M|                        break;
 1134|  8.36M|                }
 1135|  8.36M|            }
 1136|       |
 1137|  11.7M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 3.04M, False: 8.67M]
  ------------------
 1138|  3.04M|            {
 1139|  3.04M|                switch (level_stack_.back().target_kind())
 1140|  3.04M|                {
 1141|   472k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 472k, False: 2.57M]
  ------------------
 1142|   472k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 418k, False: 54.5k]
  ------------------
 1143|   418k|                        {
 1144|   418k|                            key_buffer_.push_back(',');
 1145|   418k|                        }
 1146|   472k|                        key_buffer_.push_back('\"');
 1147|   472k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|   472k|                        key_buffer_.push_back('\"');
 1149|   472k|                        key_buffer_.push_back(':');
 1150|   472k|                        break;
 1151|  2.57M|                    default:
  ------------------
  |  Branch (1151:21): [True: 2.57M, False: 472k]
  ------------------
 1152|  2.57M|                        destination_->key(key_, context, ec);
 1153|  2.57M|                        break;
 1154|  3.04M|                }
 1155|  3.04M|            }
 1156|  8.67M|            else
 1157|  8.67M|            {
 1158|  8.67M|                switch (level_stack_.back().target_kind())
 1159|  8.67M|                {
 1160|  5.32M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 5.32M, False: 3.35M]
  ------------------
 1161|  5.32M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 4.89M, False: 430k]
  |  Branch (1161:65): [True: 4.81M, False: 78.3k]
  ------------------
 1162|  4.81M|                        {
 1163|  4.81M|                            key_buffer_.push_back(',');
 1164|  4.81M|                        }
 1165|  5.32M|                        key_buffer_.push_back('\"');
 1166|  5.32M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  5.32M|                        key_buffer_.push_back('\"');
 1168|  5.32M|                        break;
 1169|  3.35M|                    default:
  ------------------
  |  Branch (1169:21): [True: 3.35M, False: 5.32M]
  ------------------
 1170|  3.35M|                        destination_->byte_string_value(value, tag, context, ec);
 1171|  3.35M|                        break;
 1172|  8.67M|                }
 1173|  8.67M|            }
 1174|       |
 1175|  11.7M|            level_stack_.back().advance();
 1176|  11.7M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  11.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  11.7M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|   227k|        {
 1184|   227k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 47.0k, False: 180k]
  |  Branch (1184:49): [True: 102k, False: 78.0k]
  ------------------
 1185|   149k|            {
 1186|   149k|                key_.clear();
 1187|   149k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|   149k|            }
 1189|       |
 1190|   227k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 47.0k, False: 180k]
  ------------------
 1191|  47.0k|            {
 1192|  47.0k|                switch (level_stack_.back().target_kind())
 1193|  47.0k|                {
 1194|  22.2k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 22.2k, False: 24.8k]
  ------------------
 1195|  22.2k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 20.5k, False: 1.70k]
  ------------------
 1196|  20.5k|                        {
 1197|  20.5k|                            key_buffer_.push_back(',');
 1198|  20.5k|                        }
 1199|  22.2k|                        key_buffer_.push_back('\"');
 1200|  22.2k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|  22.2k|                        key_buffer_.push_back('\"');
 1202|  22.2k|                        key_buffer_.push_back(':');
 1203|  22.2k|                        break;
 1204|  24.8k|                    default:
  ------------------
  |  Branch (1204:21): [True: 24.8k, False: 22.2k]
  ------------------
 1205|  24.8k|                        destination_->key(key_, context, ec);
 1206|  24.8k|                        break;
 1207|  47.0k|                }
 1208|  47.0k|            }
 1209|   180k|            else
 1210|   180k|            {
 1211|   180k|                switch (level_stack_.back().target_kind())
 1212|   180k|                {
 1213|   102k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 102k, False: 78.0k]
  ------------------
 1214|   102k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 90.8k, False: 11.4k]
  |  Branch (1214:65): [True: 80.9k, False: 9.87k]
  ------------------
 1215|  80.9k|                        {
 1216|  80.9k|                            key_buffer_.push_back(',');
 1217|  80.9k|                        }
 1218|   102k|                        key_buffer_.push_back('\"');
 1219|   102k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|   102k|                        key_buffer_.push_back('\"');
 1221|   102k|                        break;
 1222|  78.0k|                    default:
  ------------------
  |  Branch (1222:21): [True: 78.0k, False: 102k]
  ------------------
 1223|  78.0k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|  78.0k|                        break;
 1225|   180k|                }
 1226|   180k|            }
 1227|       |
 1228|   227k|            level_stack_.back().advance();
 1229|   227k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   227k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|   227k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1325|   218k|        {
 1326|   218k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1326:17): [True: 59.2k, False: 159k]
  |  Branch (1326:49): [True: 85.3k, False: 74.0k]
  ------------------
 1327|   144k|            {
 1328|   144k|                key_.clear();
 1329|   144k|                jsoncons::string_sink<string_type> sink(key_);
 1330|   144k|                jsoncons::write_double f{float_chars_format::general,0};
 1331|   144k|                double x = binary::decode_half(value);
 1332|   144k|                f(x, sink);
 1333|   144k|            }
 1334|       |
 1335|   218k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1335:17): [True: 59.2k, False: 159k]
  ------------------
 1336|  59.2k|            {
 1337|  59.2k|                switch (level_stack_.back().target_kind())
 1338|  59.2k|                {
 1339|  23.1k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1339:21): [True: 23.1k, False: 36.1k]
  ------------------
 1340|  23.1k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1340:29): [True: 16.8k, False: 6.21k]
  ------------------
 1341|  16.8k|                        {
 1342|  16.8k|                            key_buffer_.push_back(',');
 1343|  16.8k|                        }
 1344|  23.1k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1345|  23.1k|                        key_buffer_.push_back(':');
 1346|  23.1k|                        break;
 1347|  36.1k|                    default:
  ------------------
  |  Branch (1347:21): [True: 36.1k, False: 23.1k]
  ------------------
 1348|  36.1k|                        destination_->key(key_, context, ec);
 1349|  36.1k|                        break;
 1350|  59.2k|                }
 1351|  59.2k|            }
 1352|   159k|            else
 1353|   159k|            {
 1354|   159k|                switch (level_stack_.back().target_kind())
 1355|   159k|                {
 1356|  85.3k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1356:21): [True: 85.3k, False: 74.0k]
  ------------------
 1357|  85.3k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1357:29): [True: 66.1k, False: 19.1k]
  |  Branch (1357:65): [True: 53.5k, False: 12.6k]
  ------------------
 1358|  53.5k|                        {
 1359|  53.5k|                            key_buffer_.push_back(',');
 1360|  53.5k|                        }
 1361|  85.3k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1362|  85.3k|                        break;
 1363|  74.0k|                    default:
  ------------------
  |  Branch (1363:21): [True: 74.0k, False: 85.3k]
  ------------------
 1364|  74.0k|                        destination_->half_value(value, tag, context, ec);
 1365|  74.0k|                        break;
 1366|   159k|                }
 1367|   159k|            }
 1368|       |
 1369|   218k|            level_stack_.back().advance();
 1370|   218k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   218k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1371|   218k|        }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|  27.2M|    {
  295|  27.2M|        visit_begin_array(length, tag, context, ec);
  296|  27.2M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  27.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|  27.2M|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|   108M|    {
  364|   108M|        visit_uint64(value, tag, context, ec);
  365|   108M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   108M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|   108M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|  26.0M|    {
  301|  26.0M|        visit_end_array(context, ec);
  302|  26.0M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  26.0M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|  26.0M|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  27.3M|    {
  373|  27.3M|        visit_int64(value, tag, context, ec);
  374|  27.3M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  27.3M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  27.3M|    }
_ZN8jsoncons21basic_generic_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  381|   382k|    {
  382|   382k|        visit_half(value, tag, context, ec);
  383|   382k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   382k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  384|   382k|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|  11.5M|    {
  391|  11.5M|        visit_double(value, tag, context, ec);
  392|  11.5M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  11.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|  11.5M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  22.1M|    {
  344|  22.1M|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  22.1M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  22.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  22.1M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|   453k|    {
  355|   453k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|   453k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   453k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|   453k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  12.7M|    {
  324|  12.7M|        visit_bool(value, tag, context, ec);
  325|  12.7M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  12.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  12.7M|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|   545k|    {
  315|   545k|        visit_null(tag, context, ec);
  316|   545k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   545k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|   545k|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|  1.73M|    {
  333|  1.73M|        visit_string(value, tag, context, ec);
  334|  1.73M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.73M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|  1.73M|    }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  288|   341k|    {
  289|   341k|        visit_begin_array(tag, context, ec);
  290|   341k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   341k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  291|   341k|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  267|   185k|    {
  268|   185k|        visit_begin_object(tag, context, ec);
  269|   185k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   185k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  270|   185k|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|  51.6M|    {
  277|  51.6M|        visit_begin_object(length, tag, context, ec);
  278|  51.6M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  51.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|  51.6M|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|  51.2M|    {
  283|  51.2M|        visit_end_object(context, ec);
  284|  51.2M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  51.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|  51.2M|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|  5.86k|    {
   58|  5.86k|        visit_flush();
   59|  5.86k|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextE:
  123|  1.94k|    {
  124|  1.94k|        std::error_code ec;
  125|  1.94k|        visit_end_array(context, ec);
  126|  1.94k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.94k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.94k]
  |  |  ------------------
  ------------------
  127|      0|        {
  128|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  129|      0|        }
  130|  1.94k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.94k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  131|  1.94k|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  19.1k|            : destination_(std::addressof(visitor)), 
  856|  19.1k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  19.1k|        {
  858|  19.1k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  19.1k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|  38.3k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextE:
   99|  1.94k|    {
  100|  1.94k|        std::error_code ec;
  101|  1.94k|        visit_begin_array(tag, context, ec);
  102|  1.94k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.94k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.94k]
  |  |  ------------------
  ------------------
  103|      0|        {
  104|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  105|      0|        }
  106|  1.94k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.94k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  107|  1.94k|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextE:
  172|     44|    {
  173|     44|        std::error_code ec;
  174|     44|        visit_string(value, tag, context, ec);
  175|     44|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     44|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 44]
  |  |  ------------------
  ------------------
  176|      0|        {
  177|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  178|      0|        }
  179|     44|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|     44|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  180|     44|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextENSt3__19enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  187|      8|    {
  188|      8|        std::error_code ec;
  189|      8|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  190|      8|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      8|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8]
  |  |  ------------------
  ------------------
  191|      0|        {
  192|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  193|      0|        }
  194|      8|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      8|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  195|      8|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextE:
  228|      1|    {
  229|      1|        std::error_code ec;
  230|      1|        visit_int64(value, tag, context, ec);
  231|      1|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  232|      0|        {
  233|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  234|      0|        }
  235|      1|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  236|      1|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextE:
  215|      5|    {
  216|      5|        std::error_code ec;
  217|      5|        visit_uint64(value, tag, context, ec);
  218|      5|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      5|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  219|      0|        {
  220|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  221|      0|        }
  222|      5|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      5|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  223|      5|    }
_ZN8jsoncons21basic_generic_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextE:
  241|      1|    {
  242|      1|        std::error_code ec;
  243|      1|        visit_half(value, tag, context, ec);
  244|      1|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      1|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1]
  |  |  ------------------
  ------------------
  245|      0|        {
  246|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  247|      0|        }
  248|      1|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  249|      1|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextE:
   87|  4.29k|    {
   88|  4.29k|        std::error_code ec;
   89|  4.29k|        visit_end_object(context, ec);
   90|  4.29k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.29k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.29k]
  |  |  ------------------
  ------------------
   91|      0|        {
   92|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
   93|      0|        }
   94|  4.29k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.29k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
   95|  4.29k|    }

_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE7reserveEm:
  153|  6.98M|        void reserve(std::size_t n) {data_.reserve(n);}
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE9push_backIS6_S5_EENS3_9enable_ifIXsr3std16allocator_traitsIT0_E15is_always_equalE5valueEvE4typeEOT_:
  178|  11.1M|        {
  179|  11.1M|            data_.emplace_back(std::forward<T>(value));
  180|  11.1M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEEC2Ev:
   46|  7.09M|        json_array() = default;
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEED2Ev:
  105|  7.11M|        {
  106|  7.11M|            flatten_and_destroy();
  107|  7.11M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE19flatten_and_destroyEv:
  248|  7.11M|        {
  249|  17.8M|            while (!data_.empty())
  ------------------
  |  Branch (249:20): [True: 10.7M, False: 7.11M]
  ------------------
  250|  10.7M|            {
  251|  10.7M|                value_type current = std::move(data_.back());
  252|  10.7M|                data_.pop_back();
  253|  10.7M|                switch (current.storage_kind())
  254|  10.7M|                {
  255|  6.86M|                    case json_storage_kind::array:
  ------------------
  |  Branch (255:21): [True: 6.86M, False: 3.88M]
  ------------------
  256|  6.86M|                    {
  257|  6.86M|                        for (auto&& item : current.array_range())
  ------------------
  |  Branch (257:42): [True: 7.18M, False: 6.86M]
  ------------------
  258|  7.18M|                        {
  259|  7.18M|                            if ((item.storage_kind() == json_storage_kind::array || item.storage_kind() == json_storage_kind::object)
  ------------------
  |  Branch (259:34): [True: 6.74M, False: 444k]
  |  Branch (259:85): [True: 88.9k, False: 355k]
  ------------------
  260|  6.83M|                                && !item.empty()) // non-empty object or array
  ------------------
  |  Branch (260:36): [True: 6.74M, False: 87.0k]
  ------------------
  261|  6.74M|                            {
  262|  6.74M|                                data_.push_back(std::move(item));
  263|  6.74M|                            }
  264|  7.18M|                        }
  265|  6.86M|                        current.clear();                           
  266|  6.86M|                        break;
  267|      0|                    }
  268|  2.24M|                    case json_storage_kind::object:
  ------------------
  |  Branch (268:21): [True: 2.24M, False: 8.50M]
  ------------------
  269|  2.24M|                    {
  270|  2.24M|                        for (auto&& kv : current.object_range())
  ------------------
  |  Branch (270:40): [True: 49.3k, False: 2.24M]
  ------------------
  271|  49.3k|                        {
  272|  49.3k|                            if ((kv.value().storage_kind() == json_storage_kind::array || kv.value().storage_kind() == json_storage_kind::object)
  ------------------
  |  Branch (272:34): [True: 4.04k, False: 45.3k]
  |  Branch (272:91): [True: 11.8k, False: 33.5k]
  ------------------
  273|  15.8k|                                && !kv.value().empty()) // non-empty object or array
  ------------------
  |  Branch (273:36): [True: 12.9k, False: 2.91k]
  ------------------
  274|  12.9k|                            {
  275|  12.9k|                                data_.push_back(std::move(kv.value()));
  276|  12.9k|                            }
  277|  49.3k|                        }
  278|  2.24M|                        current.clear();                           
  279|  2.24M|                        break;
  280|      0|                    }
  281|  1.64M|                    default:
  ------------------
  |  Branch (281:21): [True: 1.64M, False: 9.10M]
  ------------------
  282|  1.64M|                        break;
  283|  10.7M|                }
  284|  10.7M|            }
  285|  7.11M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5beginEv:
  222|  6.86M|        iterator begin() {return data_.begin();}
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE3endEv:
  224|  6.86M|        iterator end() {return data_.end();}
_ZNK8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5emptyEv:
  125|  6.75M|        {
  126|  6.75M|            return data_.empty();
  127|  6.75M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5clearEv:
  142|  6.86M|        void clear() {data_.clear();}
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEEC2ERKS5_:
   49|  19.9k|            : allocator_holder<allocator_type>(alloc), 
   50|  19.9k|              data_(value_allocator_type(alloc))
   51|  19.9k|        {
   52|  19.9k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE12emplace_backIJS6_EEERS6_DpOT_:
  217|  5.61k|        {
  218|  5.61k|            data_.emplace_back(std::forward<Args>(args)...);
  219|  5.61k|            return data_.back();
  220|  5.61k|        }

_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_EC2ERKS5_S9_:
   74|  6.41k|        : alloc_(alloc),
   75|  6.41k|          result_(),
   76|  6.41k|          name_(alloc),
   77|  6.41k|          item_stack_(alloc),
   78|  6.41k|          structure_stack_(temp_alloc)
   79|  6.41k|    {
   80|       |        //item_stack_.reserve(1000);
   81|       |        //structure_stack_.reserve(100);
   82|  6.41k|        structure_stack_.emplace_back(json_structure_kind::root_kind, 0);
   83|  6.41k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E14json_structureC2ENS7_19json_structure_kindEm:
   51|  12.0M|            : structure_kind(type), structure_index(offset)
   52|  12.0M|        {
   53|  12.0M|        }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E15visit_end_arrayERKNS_11ser_contextERNS3_10error_codeE:
  186|  7.03M|    {
  187|  7.03M|        JSONCONS_ASSERT(structure_stack_.size() > 1);
  ------------------
  |  |   54|  7.03M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 7.03M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  188|  7.03M|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::array_kind);
  ------------------
  |  |   54|  7.03M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 7.03M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  189|  7.03M|        const size_t structure_index = structure_stack_.back().structure_index;
  190|  7.03M|        JSONCONS_ASSERT(item_stack_.size() > structure_index);
  ------------------
  |  |   54|  7.03M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 7.03M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  191|       |
  192|  7.03M|        auto& structure = structure_stack_[structure_stack_.size()-2];
  193|  7.03M|        auto& arr = item_stack_[structure_index].value;
  194|  7.03M|        const size_t size = item_stack_.size() - (structure_index + 1);
  195|       |
  196|  7.03M|        if (size > 0)
  ------------------
  |  Branch (196:13): [True: 6.98M, False: 51.8k]
  ------------------
  197|  6.98M|        {
  198|  6.98M|            arr.reserve(size);
  199|  6.98M|            auto first = item_stack_.begin() + (structure_index+1);
  200|  6.98M|            auto last = first + size;
  201|  18.1M|            for (auto it = first; it != last; ++it)
  ------------------
  |  Branch (201:35): [True: 11.1M, False: 6.98M]
  ------------------
  202|  11.1M|            {
  203|  11.1M|                arr.push_back(std::move((*it).value));
  204|  11.1M|            }
  205|  6.98M|            item_stack_.erase(first, item_stack_.end());
  206|  6.98M|        }
  207|       |
  208|  7.03M|        if (structure.structure_kind == json_structure_kind::root_kind)
  ------------------
  |  Branch (208:13): [True: 212, False: 7.03M]
  ------------------
  209|    212|        {
  210|    212|            result_ = std::move(item_stack_.front().value);
  211|    212|            item_stack_.pop_back();
  212|    212|            is_valid_ = true;
  213|    212|        }
  214|       |
  215|  7.03M|        structure_stack_.pop_back();
  216|  7.03M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  7.03M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  217|  7.03M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  311|  10.7M|    {
  312|  10.7M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (312:17): [True: 10.7M, False: 0]
  ------------------
  313|  10.7M|        {
  314|  7.42M|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (314:13): [True: 7.42M, False: 3.33M]
  ------------------
  315|  7.42M|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  316|  7.42M|                break;
  317|  3.33M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (317:13): [True: 3.33M, False: 7.42M]
  ------------------
  318|  3.33M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  319|  3.33M|                break;
  320|      5|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (320:13): [True: 5, False: 10.7M]
  ------------------
  321|      5|                result_ = Json(value,tag);
  322|      5|                is_valid_ = true;
  323|      5|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      5|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  324|  10.7M|        }
  325|  10.7M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  10.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  10.7M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  290|  2.69M|    {
  291|  2.69M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (291:17): [True: 2.69M, False: 0]
  ------------------
  292|  2.69M|        {
  293|   516k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (293:13): [True: 516k, False: 2.17M]
  ------------------
  294|   516k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  295|   516k|                break;
  296|  2.17M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (296:13): [True: 2.17M, False: 516k]
  ------------------
  297|  2.17M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  298|  2.17M|                break;
  299|      1|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (299:13): [True: 1, False: 2.69M]
  ------------------
  300|      1|                result_ = Json(value,tag);
  301|      1|                is_valid_ = true;
  302|      1|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|  2.69M|        }
  304|  2.69M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.69M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  305|  2.69M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  353|  80.6k|    {
  354|  80.6k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (354:17): [True: 80.6k, False: 0]
  ------------------
  355|  80.6k|        {
  356|  6.26k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (356:13): [True: 6.26k, False: 74.3k]
  ------------------
  357|  6.26k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  358|  6.26k|                break;
  359|  74.3k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (359:13): [True: 74.3k, False: 6.26k]
  ------------------
  360|  74.3k|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  361|  74.3k|                break;
  362|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (362:13): [True: 0, False: 80.6k]
  ------------------
  363|      0|                result_ = Json(value, tag);
  364|      0|                is_valid_ = true;
  365|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  80.6k|        }
  367|  80.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  80.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  80.6k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E11visit_flushEv:
  122|  1.16k|    {
  123|  1.16k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  126|  4.93M|    {
  127|  4.93M|        if (structure_stack_.back().structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (127:13): [True: 1.18M, False: 3.75M]
  ------------------
  128|  1.18M|        {
  129|  1.18M|            structure_stack_.emplace_back(json_structure_kind::object_kind, item_stack_.size());
  130|  1.18M|            item_stack_.emplace_back(std::move(name_), index_++, json_object_arg, tag);
  131|  1.18M|        }
  132|  3.75M|        else
  133|  3.75M|        {
  134|  3.75M|            structure_stack_.emplace_back(json_structure_kind::object_kind, item_stack_.size());
  135|  3.75M|            item_stack_.emplace_back(key_type(alloc_), 0, json_object_arg, tag);
  136|  3.75M|        }
  137|  4.93M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.93M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  138|  4.93M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E16visit_end_objectERKNS_11ser_contextERNS3_10error_codeE:
  141|  4.92M|    {
  142|  4.92M|        JSONCONS_ASSERT(structure_stack_.size() > 0);
  ------------------
  |  |   54|  4.92M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 4.92M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  143|  4.92M|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::object_kind);
  ------------------
  |  |   54|  4.92M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 4.92M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  144|  4.92M|        const size_t structure_index = structure_stack_.back().structure_index;
  145|  4.92M|        JSONCONS_ASSERT(item_stack_.size() > structure_index);
  ------------------
  |  |   54|  4.92M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 4.92M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  146|       |
  147|  4.92M|        const size_t size = item_stack_.size() - (structure_index + 1);
  148|  4.92M|        auto first = item_stack_.begin() + (structure_index+1);
  149|  4.92M|        auto& structure = structure_stack_[structure_stack_.size()-2];
  150|  4.92M|        auto& obj = item_stack_[structure_index].value;
  151|       |
  152|  4.92M|        if (size > 0)
  ------------------
  |  Branch (152:13): [True: 38.3k, False: 4.88M]
  ------------------
  153|  38.3k|        {
  154|  38.3k|            obj.template cast<typename Json::object_storage>().value().uninitialized_init(
  155|  38.3k|                &item_stack_[structure_index+1], size);
  156|  38.3k|            item_stack_.erase(first, item_stack_.end());
  157|  38.3k|        }
  158|       |
  159|  4.92M|        if (structure.structure_kind == json_structure_kind::root_kind)
  ------------------
  |  Branch (159:13): [True: 904, False: 4.91M]
  ------------------
  160|    904|        {
  161|    904|            result_ = std::move(item_stack_.front().value);
  162|    904|            item_stack_.pop_back();
  163|    904|            is_valid_ = true;
  164|    904|        }
  165|       |
  166|  4.92M|        structure_stack_.pop_back();
  167|  4.92M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.92M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  168|  4.92M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  171|  7.09M|    {
  172|  7.09M|        if (structure_stack_.back().structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (172:13): [True: 54.2k, False: 7.04M]
  ------------------
  173|  54.2k|        {
  174|  54.2k|            structure_stack_.emplace_back(json_structure_kind::array_kind, item_stack_.size());
  175|  54.2k|            item_stack_.emplace_back(std::move(name_), index_++, json_array_arg, tag);
  176|  54.2k|        }
  177|  7.04M|        else
  178|  7.04M|        {
  179|  7.04M|            structure_stack_.emplace_back(json_structure_kind::array_kind, item_stack_.size());
  180|  7.04M|            item_stack_.emplace_back(key_type(alloc_), 0, json_array_arg, tag);
  181|  7.04M|        }
  182|  7.09M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  7.09M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  183|  7.09M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E9visit_keyERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  220|  10.1M|    {
  221|  10.1M|        name_ = key_type(name.data(),name.length(),alloc_);
  222|  10.1M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  10.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  223|  10.1M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  389|  56.6k|    {
  390|  56.6k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (390:17): [True: 56.6k, False: 0]
  ------------------
  391|  56.6k|        {
  392|  9.99k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (392:13): [True: 9.99k, False: 46.6k]
  ------------------
  393|  9.99k|                item_stack_.emplace_back(std::move(name_), index_++, null_type(), tag);
  394|  9.99k|                break;
  395|  46.6k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (395:13): [True: 46.6k, False: 9.99k]
  ------------------
  396|  46.6k|                item_stack_.emplace_back(key_type(alloc_), 0, null_type(), tag);
  397|  46.6k|                break;
  398|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (398:13): [True: 0, False: 56.6k]
  ------------------
  399|      0|                result_ = Json(null_type(), tag);
  400|      0|                is_valid_ = true;
  401|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  402|  56.6k|        }
  403|  56.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  56.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  404|  56.6k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  371|  2.02M|    {
  372|  2.02M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (372:17): [True: 2.02M, False: 0]
  ------------------
  373|  2.02M|        {
  374|  20.8k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (374:13): [True: 20.8k, False: 2.00M]
  ------------------
  375|  20.8k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  376|  20.8k|                break;
  377|  2.00M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (377:13): [True: 2.00M, False: 20.8k]
  ------------------
  378|  2.00M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  379|  2.00M|                break;
  380|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (380:13): [True: 0, False: 2.02M]
  ------------------
  381|      0|                result_ = Json(value, tag);
  382|      0|                is_valid_ = true;
  383|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  384|  2.02M|        }
  385|  2.02M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.02M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  2.02M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  226|   113k|    {
  227|   113k|        auto& structure = structure_stack_.back();
  228|   113k|        switch (structure.structure_kind)
  ------------------
  |  Branch (228:17): [True: 113k, False: 0]
  ------------------
  229|   113k|        {
  230|  59.5k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (230:13): [True: 59.5k, False: 53.5k]
  ------------------
  231|  59.5k|                item_stack_.emplace_back(std::move(name_), index_++, sv, tag);
  232|  59.5k|                break;
  233|  53.4k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (233:13): [True: 53.4k, False: 59.5k]
  ------------------
  234|  53.4k|                item_stack_.emplace_back(key_type(alloc_), 0, sv, tag);
  235|  53.4k|                break;
  236|     44|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (236:13): [True: 44, False: 113k]
  ------------------
  237|     44|                result_ = Json(sv, tag, alloc_);
  238|     44|                is_valid_ = true;
  239|     44|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|     44|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  240|   113k|        }
  241|   113k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   113k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  242|   113k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  248|  1.11M|    {
  249|  1.11M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (249:17): [True: 1.11M, False: 0]
  ------------------
  250|  1.11M|        {
  251|   852k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (251:13): [True: 852k, False: 267k]
  ------------------
  252|   852k|                item_stack_.emplace_back(std::move(name_), index_++, byte_string_arg, b, tag);
  253|   852k|                break;
  254|   267k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (254:13): [True: 267k, False: 852k]
  ------------------
  255|   267k|                item_stack_.emplace_back(key_type(alloc_), 0, byte_string_arg, b, tag);
  256|   267k|                break;
  257|      8|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (257:13): [True: 8, False: 1.11M]
  ------------------
  258|      8|                result_ = Json(byte_string_arg, b, tag, alloc_);
  259|      8|                is_valid_ = true;
  260|      8|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      8|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  261|  1.11M|        }
  262|  1.11M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.11M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  263|  1.11M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS3_10error_codeE:
  269|  26.0k|    {
  270|  26.0k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (270:17): [True: 26.0k, False: 0]
  ------------------
  271|  26.0k|        {
  272|  6.78k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (272:13): [True: 6.78k, False: 19.2k]
  ------------------
  273|  6.78k|                item_stack_.emplace_back(std::move(name_), index_++, byte_string_arg, b, raw_tag);
  274|  6.78k|                break;
  275|  19.2k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (275:13): [True: 19.2k, False: 6.78k]
  ------------------
  276|  19.2k|                item_stack_.emplace_back(key_type(alloc_), 0, byte_string_arg, b, raw_tag);
  277|  19.2k|                break;
  278|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (278:13): [True: 0, False: 26.0k]
  ------------------
  279|      0|                result_ = Json(byte_string_arg, b, raw_tag, alloc_);
  280|      0|                is_valid_ = true;
  281|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  282|  26.0k|        }
  283|  26.0k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  26.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  284|  26.0k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  332|  24.6k|    {
  333|  24.6k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (333:17): [True: 24.6k, False: 0]
  ------------------
  334|  24.6k|        {
  335|  11.4k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (335:13): [True: 11.4k, False: 13.2k]
  ------------------
  336|  11.4k|                item_stack_.emplace_back(std::move(name_), index_++, half_arg, value, tag);
  337|  11.4k|                break;
  338|  13.2k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (338:13): [True: 13.2k, False: 11.4k]
  ------------------
  339|  13.2k|                item_stack_.emplace_back(key_type(alloc_), 0, half_arg, value, tag);
  340|  13.2k|                break;
  341|      1|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (341:13): [True: 1, False: 24.6k]
  ------------------
  342|      1|                result_ = Json(half_arg, value, tag);
  343|      1|                is_valid_ = true;
  344|      1|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      1|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  345|  24.6k|        }
  346|  24.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  24.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  347|  24.6k|    }
_ZNK8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E8is_validEv:
  108|  1.16k|    {
  109|  1.16k|        return is_valid_;
  110|  1.16k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10get_resultEv:
  113|  1.16k|    {
  114|  1.16k|        JSONCONS_ASSERT(is_valid_);
  ------------------
  |  |   54|  1.16k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 1.16k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  115|  1.16k|        is_valid_ = false;
  116|  1.16k|        return std::move(result_);
  117|  1.16k|    }

_ZN8jsoncons25make_json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEEENS_20json_visitor_adaptorIT_T0_vEERSD_:
 1064|  6.41k|{
 1065|  6.41k|    return json_visitor_adaptor<From, To>(to);
 1066|  6.41k|}
_ZN8jsoncons20json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEvEC2ERSA_:
  983|  6.41k|        : supertype(visitor)
  984|  6.41k|    {
  985|  6.41k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEEC2ERSA_:
  721|  6.41k|        : destination1_(std::addressof(visitor))
  722|  6.41k|    {
  723|  6.41k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  777|  7.08M|    {
  778|  7.08M|        destination1_->begin_array(length, tag, context, ec);
  779|  7.08M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  7.08M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  780|  7.08M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE15visit_end_arrayERKNS_11ser_contextERNS6_10error_codeE:
  783|  7.03M|    {
  784|  7.03M|        destination1_->end_array(context, ec);
  785|  7.03M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  7.03M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  786|  7.03M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  825|  10.7M|    {
  826|  10.7M|        destination1_->uint64_value(value, tag, context, ec);
  827|  10.7M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  10.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  828|  10.7M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  819|  2.69M|    {
  820|  2.69M|        destination1_->int64_value(value, tag, context, ec);
  821|  2.69M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.69M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  822|  2.69M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  813|  80.6k|    {
  814|  80.6k|        destination1_->double_value(value, tag, context, ec);
  815|  80.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  80.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  816|  80.6k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11visit_flushEv:
  738|  1.16k|    {
  739|  1.16k|        destination1_->flush();
  740|  1.16k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  745|  6.51k|    {
  746|  6.51k|        destination1_->begin_object(tag, context, ec);
  747|  6.51k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  6.51k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  748|  6.51k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  754|  4.92M|    {
  755|  4.92M|        destination1_->begin_object(length, tag, context, ec);
  756|  4.92M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.92M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  757|  4.92M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE16visit_end_objectERKNS_11ser_contextERNS6_10error_codeE:
  760|  4.92M|    {
  761|  4.92M|        destination1_->end_object(context, ec);
  762|  4.92M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.92M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  763|  4.92M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  768|  17.6k|    {
  769|  17.6k|        destination1_->begin_array(tag, context, ec);
  770|  17.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  17.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  771|  17.6k|    }
_ZN8jsoncons20json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEvE9visit_keyERKNS6_17basic_string_viewIcNS6_11char_traitsIcEEEERKNS_11ser_contextERNS6_10error_codeE:
  995|  10.1M|    {
  996|  10.1M|        return destination().key(string_view_type(reinterpret_cast<const to_char_type*>(key.data()),key.size()), context, ec);
  997|  10.1M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11destinationEv:
  732|  10.2M|    {
  733|  10.2M|        return *destination1_;
  734|  10.2M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  837|  56.6k|    {
  838|  56.6k|        destination1_->null_value(tag, context, ec);
  839|  56.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  56.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|  56.6k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  831|  2.02M|    {
  832|  2.02M|        destination1_->bool_value(value, tag, context, ec);
  833|  2.02M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.02M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  834|  2.02M|    }
_ZN8jsoncons20json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEvE12visit_stringERKNS6_17basic_string_viewIcNS6_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
 1003|   113k|    {
 1004|   113k|        return destination().string_value(string_view_type(reinterpret_cast<const to_char_type*>(value.data()),value.size()), tag, context, ec);
 1005|   113k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  792|  1.11M|    {
  793|  1.11M|        destination1_->byte_string_value(b, tag, context, ec);
  794|  1.11M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.11M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  795|  1.11M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS6_10error_codeE:
  801|  26.0k|    {
  802|  26.0k|        destination1_->byte_string_value(b, raw_tag, context, ec);
  803|  26.0k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  26.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  804|  26.0k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  807|  24.6k|    {
  808|  24.6k|        destination1_->half_value(value, tag, context, ec);
  809|  24.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  24.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  810|  24.6k|    }

_ZN8jsoncons18is_trivial_storageENS_17json_storage_kindE:
  222|   164M|    {
  223|   164M|        static constexpr uint8_t mask{ uint8_t(json_storage_kind::long_str) & uint8_t(json_storage_kind::byte_str) 
  224|   164M|            & uint8_t(json_storage_kind::array) & uint8_t(json_storage_kind::object) };
  225|   164M|        return (uint8_t(storage_kind) & mask) != mask;
  226|   164M|    }

_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  31.9k|        basic_default_json_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  44.8k|        basic_json_visitor() = default;
_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  83.1k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  560|  14.6M|        {
  561|  14.6M|            visit_begin_array(tag, context, ec);
  562|  14.6M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  14.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  563|  14.6M|        }
_ZN8jsoncons26basic_default_json_visitorIcE15visit_end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  833|  7.48M|        {
  834|  7.48M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  7.48M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  835|  7.48M|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  858|  20.9M|        {
  859|  20.9M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  20.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  860|  20.9M|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  863|  5.38M|        {
  864|  5.38M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  5.38M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  865|  5.38M|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  873|   161k|        {
  874|   161k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   161k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  875|   161k|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_flushEv:
  814|  1.16k|        {
  815|  1.16k|        }
_ZN8jsoncons26basic_default_json_visitorIcE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  818|  9.86M|        {
  819|  9.86M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.86M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  820|  9.86M|        }
_ZN8jsoncons18basic_json_visitorIcE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  544|  14.7M|        {
  545|  14.7M|            visit_begin_object(tag, context, ec);
  546|  14.7M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  14.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  547|  14.7M|        }
_ZN8jsoncons26basic_default_json_visitorIcE16visit_end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  823|  9.84M|        {
  824|  9.84M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.84M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  825|  9.84M|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  828|  7.59M|        {
  829|  7.59M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  7.59M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  830|  7.59M|        }
_ZN8jsoncons26basic_default_json_visitorIcE9visit_keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  838|  20.2M|        {
  839|  20.2M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  20.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|  20.2M|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  843|   113k|        {
  844|   113k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   113k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  845|   113k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  878|  4.05M|        {
  879|  4.05M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.05M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  880|  4.05M|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_stringERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  848|   226k|        {
  849|   226k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   226k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  850|   226k|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  853|  2.29M|        {
  854|  2.29M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.29M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  855|  2.29M|        }
_ZN8jsoncons18basic_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNSt3__110error_codeE:
  595|  52.0k|        {
  596|  52.0k|            visit_byte_string(value, semantic_tag::none, context, ec);
  597|  52.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  52.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  598|  52.0k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  868|  49.3k|        {
  869|  49.3k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  49.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  870|  49.3k|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|  21.7M|        {
  346|  21.7M|            visit_begin_array(length, tag, context, ec);
  347|  21.7M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  21.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|  21.7M|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|  42.4M|        {
  415|  42.4M|            visit_uint64(value, tag, context, ec);
  416|  42.4M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  42.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|  42.4M|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|  21.5M|        {
  352|  21.5M|            visit_end_array(context, ec);
  353|  21.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  21.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|  21.5M|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|  10.7M|        {
  424|  10.7M|            visit_int64(value, tag, context, ec);
  425|  10.7M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  10.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|  10.7M|        }
_ZN8jsoncons18basic_json_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  432|  98.7k|        {
  433|  98.7k|            visit_half(value, tag, context, ec);
  434|  98.7k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  98.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  435|  98.7k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|   322k|        {
  442|   322k|            visit_double(value, tag, context, ec);
  443|   322k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   322k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|   322k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|  40.5M|        {
  358|  40.5M|            visit_key(name, context, ec);
  359|  40.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  40.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|  40.5M|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  3.50k|        {
  109|  3.50k|            visit_flush();
  110|  3.50k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|  28.2k|        {
  319|  28.2k|            visit_begin_object(tag, context, ec);
  320|  28.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  28.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|  28.2k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  19.7M|        {
  328|  19.7M|            visit_begin_object(length, tag, context, ec);
  329|  19.7M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  19.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  19.7M|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  19.6M|        {
  334|  19.6M|            visit_end_object(context, ec);
  335|  19.6M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  19.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  19.6M|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|  72.1k|        {
  340|  72.1k|            visit_begin_array(tag, context, ec);
  341|  72.1k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  72.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|  72.1k|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|   226k|        {
  366|   226k|            visit_null(tag, context, ec);
  367|   226k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   226k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|   226k|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|  8.10M|        {
  375|  8.10M|            visit_bool(value, tag, context, ec);
  376|  8.10M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  8.10M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|  8.10M|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|   452k|        {
  384|   452k|            visit_string(value, tag, context, ec);
  385|   452k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   452k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|   452k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|  4.47M|        {
  395|  4.47M|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|  4.47M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.47M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|  4.47M|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|   104k|        {
  406|   104k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|   104k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   104k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|   104k|        }

_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEaSEOS7_:
   60|  35.2M|    index_key_value& operator=(index_key_value&&) = default;
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRmRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  10.7M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  10.7M|    {
   45|  10.7M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2EOS7_:
   49|  54.6M|    index_key_value(index_key_value&&) = default;
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRlRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  2.69M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  2.69M|    {
   45|  2.69M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRdRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  80.6k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  80.6k|    {
   45|  80.6k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17json_object_arg_tERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  4.93M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  4.93M|    {
   45|  4.93M|    }
_ZN8jsoncons9key_valueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EEEC2IJSA_EEEOS7_DpOT_:
   86|   118k|        : key_(std::move(name)), value_(std::forward<Args>(args)...)
   87|   118k|    {
   88|   118k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_16json_array_arg_tERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  7.09M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  7.09M|    {
   45|  7.09M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJNS_9null_typeERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  56.6k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  56.6k|    {
   45|  56.6k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRbRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  2.02M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  2.02M|    {
   45|  2.02M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS_12semantic_tagEEEEONS3_12basic_stringIcSB_S5_EElDpOT_:
   43|   113k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|   113k|    {
   45|   113k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17byte_string_arg_tERKNS_16byte_string_viewERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  1.11M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  1.11M|    {
   45|  1.11M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17byte_string_arg_tERKNS_16byte_string_viewERmEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  26.0k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  26.0k|    {
   45|  26.0k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_10half_arg_tERtRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  24.6k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  24.6k|    {
   45|  24.6k|    }
_ZN8jsoncons9key_valueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EEE5valueEv:
  120|   207k|    {
  121|   207k|        return value_;
  122|   207k|    }

_ZN8jsoncons6nonstd11countr_zeroImEEiT_:
   75|   134k|int countr_zero(T value) {
   76|   134k|    static_assert(std::is_integral<T>::value && std::is_unsigned<T>::value, "Type must be unsigned integer");
   77|       |    
   78|   134k|    if (value == 0) {
  ------------------
  |  Branch (78:9): [True: 0, False: 134k]
  ------------------
   79|      0|        return sizeof(T) * 8; // Or std::numeric_limits<T>::digits
   80|      0|    }
   81|       |    
   82|   134k|    #if defined(__GNUC__) || defined(__clang__)
   83|   134k|        if (sizeof(T) <= sizeof(unsigned int)) {
  ------------------
  |  Branch (83:13): [Folded, False: 134k]
  ------------------
   84|      0|            return __builtin_ctz(static_cast<unsigned int>(value));
   85|   134k|        } else if (sizeof(T) <= sizeof(unsigned long)) {
  ------------------
  |  Branch (85:20): [True: 134k, Folded]
  ------------------
   86|   134k|            return __builtin_ctzl(static_cast<unsigned long>(value));
   87|   134k|        } else {
   88|      0|            return __builtin_ctzll(static_cast<unsigned long long>(value));
   89|      0|        }
   90|       |    #elif defined(_MSC_VER)
   91|       |        unsigned long index;
   92|       |        #if defined(_M_X64) || defined(_M_ARM64)
   93|       |            JSONCONS_IF_CONSTEXPR (sizeof(T) == 8) 
   94|       |            {
   95|       |                _BitScanForward64(&index, static_cast<unsigned __int64>(value));
   96|       |                return static_cast<int>(index);
   97|       |            }
   98|       |            else
   99|       |            {
  100|       |                _BitScanForward(&index, static_cast<unsigned long>(value));
  101|       |                return static_cast<int>(index);
  102|       |            }
  103|       |        #else
  104|       |            _BitScanForward(&index, static_cast<unsigned long>(value));
  105|       |            return static_cast<int>(index);
  106|       |        #endif
  107|       |    #else
  108|       |        int count = 0;
  109|       |        while ((value & 1) == 0) {
  110|       |            count++;
  111|       |            value >>= 1;
  112|       |        }
  113|       |        return count;
  114|       |    #endif
  115|   134k|}
_ZN8jsoncons6nonstd11countl_zeroImEEiT_:
   20|  3.01k|{
   21|  3.01k|    static_assert(std::is_integral<T>::value && std::is_unsigned<T>::value, "Type must be unsigned integer");
   22|       |
   23|  3.01k|    if (x == 0) return std::numeric_limits<T>::digits;
  ------------------
  |  Branch (23:9): [True: 0, False: 3.01k]
  ------------------
   24|  3.01k|#if defined(__GNUC__) || defined(__clang__)
   25|  3.01k|    JSONCONS_IF_CONSTEXPR (sizeof(T) <= sizeof(unsigned int)) {
  ------------------
  |  |  195|  3.01k|    #define JSONCONS_IF_CONSTEXPR if constexpr
  ------------------
   26|  3.01k|        return __builtin_clz(x) - (sizeof(unsigned int) - sizeof(T)) * 8;
   27|  3.01k|    }
   28|  3.01k|    else JSONCONS_IF_CONSTEXPR (sizeof(T) <= sizeof(unsigned long long)) {
  ------------------
  |  |  195|  3.01k|    #define JSONCONS_IF_CONSTEXPR if constexpr
  ------------------
   29|  3.01k|        return __builtin_clzll(x) - (sizeof(unsigned long long) - sizeof(T)) * 8;
   30|  3.01k|    }
   31|      0|#endif
   32|       |
   33|       |    // windows
   34|       |    // _BitScanReverse64
   35|  3.01k|        if (x == 0)
  ------------------
  |  Branch (35:13): [True: 0, False: 3.01k]
  ------------------
   36|      0|        return 64;
   37|       |
   38|       |/* 
   39|       |#include <intrin.h>
   40|       |#include <cstdint> 
   41|       | 
   42|       |#ifdef _MSC_VER
   43|       |    unsigned long index;
   44|       |
   45|       |#if defined(_M_X64) || defined(_M_ARM64)
   46|       |    _BitScanReverse64(&index, x);
   47|       |#else
   48|       |    // Support 32-bit MSVC.
   49|       |    if (x >> 32) {
   50|       |        _BitScanReverse(&index, uint32_t(x >> 32));
   51|       |        return 31 - index;
   52|       |    }
   53|       |
   54|       |    _BitScanReverse(&index, uint32_t(x));
   55|       |    return 63 - index;
   56|       |#endif
   57|       |
   58|       |    return 63 - index;
   59|       |#else
   60|       |    return __builtin_clzll(x);
   61|       |#endif
   62|       |*/
   63|       |
   64|  3.01k|    int bits = std::numeric_limits<T>::digits;
   65|  3.01k|    T mask = static_cast<T>(1) << (bits - 1);
   66|  3.01k|    int leading_zeros = 0;
   67|  3.01k|    while ((x & mask) == 0 && leading_zeros < bits) {
  ------------------
  |  Branch (67:12): [True: 0, False: 3.01k]
  |  Branch (67:31): [True: 0, False: 0]
  ------------------
   68|      0|        leading_zeros++;
   69|      0|        x <<= 1;
   70|      0|    }
   71|  3.01k|    return leading_zeros;
   72|  3.01k|}

_ZN8jsoncons6binary11decode_halfEt:
  537|  3.36M|    {
  538|       |    #if defined(__F16C__) && !defined(APPLE_MISSING_INTRINSICS)
  539|       |        return _cvtsh_ss(half);
  540|       |    #else
  541|  3.36M|        int64_t exp = (half >> 10) & 0x1f;
  542|  3.36M|        int64_t mant = half & 0x3ff;
  543|  3.36M|        double val;
  544|  3.36M|        if (exp == 0) 
  ------------------
  |  Branch (544:13): [True: 859k, False: 2.50M]
  ------------------
  545|   859k|        {
  546|   859k|            val = ldexp(static_cast<double>(mant), -24);
  547|   859k|        }
  548|  2.50M|        else if (exp != 31) 
  ------------------
  |  Branch (548:18): [True: 2.41M, False: 94.9k]
  ------------------
  549|  2.41M|        {
  550|  2.41M|            val = ldexp(static_cast<double>(mant) + 1024.0, static_cast<int>(exp - 25));
  551|  2.41M|        } 
  552|  94.9k|        else
  553|  94.9k|        {
  554|  94.9k|            val = mant == 0 ? std::numeric_limits<double>::infinity() : std::nan("");
  ------------------
  |  Branch (554:19): [True: 14.2k, False: 80.7k]
  ------------------
  555|  94.9k|        }
  556|  3.36M|        return half & 0x8000 ? -val : val;
  ------------------
  |  Branch (556:16): [True: 1.31M, False: 2.04M]
  ------------------
  557|  3.36M|    #endif
  558|  3.36M|    }

_ZN8jsoncons6nonstd8expectedImNSt3__14errcEEC2ImEENS2_9enable_ifIXsr3std24is_default_constructibleIT_EE5valueEiE4typeE:
   41|     19|        : expected(T{})
   42|     19|    {
   43|     19|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEEC2EOm:
   52|   174k|        : has_value_(true)
   53|   174k|    {
   54|   174k|        construct(std::move(value));
   55|   174k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEE9constructEOm:
  274|   174k|    {
  275|   174k|        ::new (&value_) T(std::move(value));
  276|   174k|        has_value_ = true;
  277|   174k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEEC2IJS3_EEENS0_10unexpect_tEDpOT_:
   66|    119|        : has_value_(false)
   67|    119|    {
   68|    119|        ::new (&error_) E(std::forward<Args>(args)...);
   69|    119|    }
_ZNK8jsoncons6nonstd8expectedImNSt3__14errcEEcvbEv:
  146|   174k|    {
  147|   174k|        return has_value_;
  148|   174k|    }
_ZNR8jsoncons6nonstd8expectedImNSt3__14errcEEdeEv:
  231|   348k|    {
  232|   348k|        return this->value_;
  233|   348k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEED2Ev:
  100|   174k|    {
  101|   174k|        destroy();
  102|   174k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEE7destroyEv:
  280|   174k|    {
  281|   174k|        if (has_value_) 
  ------------------
  |  Branch (281:13): [True: 174k, False: 119]
  ------------------
  282|   174k|        {
  283|   174k|            value_.~T();
  284|   174k|            has_value_ = false;
  285|   174k|        }
  286|    119|        else
  287|    119|        {
  288|    119|            error_.~E();
  289|    119|        }
  290|   174k|    }
_ZN8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEEC2IJRNS4_10error_codeEmmEEENS0_10unexpect_tEDpOT_:
   66|  5.24k|        : has_value_(false)
   67|  5.24k|    {
   68|  5.24k|        ::new (&error_) E(std::forward<Args>(args)...);
   69|  5.24k|    }
_ZN8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEEC2EOS7_:
   52|  1.16k|        : has_value_(true)
   53|  1.16k|    {
   54|  1.16k|        construct(std::move(value));
   55|  1.16k|    }
_ZN8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEE9constructEOS7_:
  274|  1.16k|    {
  275|  1.16k|        ::new (&value_) T(std::move(value));
  276|  1.16k|        has_value_ = true;
  277|  1.16k|    }
_ZN8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEED2Ev:
  100|  6.41k|    {
  101|  6.41k|        destroy();
  102|  6.41k|    }
_ZN8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEE7destroyEv:
  280|  6.41k|    {
  281|  6.41k|        if (has_value_) 
  ------------------
  |  Branch (281:13): [True: 1.16k, False: 5.24k]
  ------------------
  282|  1.16k|        {
  283|  1.16k|            value_.~T();
  284|  1.16k|            has_value_ = false;
  285|  1.16k|        }
  286|  5.24k|        else
  287|  5.24k|        {
  288|  5.24k|            error_.~E();
  289|  5.24k|        }
  290|  6.41k|    }

_ZN8jsoncons6nonstd16to_plain_pointerImEEPT_S3_:
  265|  1.47M|    {       
  266|  1.47M|        return (ptr);
  267|  1.47M|    }  
_ZN8jsoncons6nonstd16to_plain_pointerINS_18sorted_json_objectINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES8_EENS3_6vectorEEEEEPT_SG_:
  265|  9.86M|    {       
  266|  9.86M|        return (ptr);
  267|  9.86M|    }  
_ZN8jsoncons6nonstd16to_plain_pointerINS_10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS5_6vectorEEEEEPT_SC_:
  265|  14.1M|    {       
  266|  14.1M|        return (ptr);
  267|  14.1M|    }  
_ZN8jsoncons6nonstd16to_plain_pointerIcEEPT_S3_:
  265|  1.18M|    {       
  266|  1.18M|        return (ptr);
  267|  1.18M|    }  
_ZN8jsoncons6nonstd16to_plain_pointerINS_4heap11heap_stringIcNS_9null_typeENSt3__19allocatorIcEEEEEEPT_SA_:
  265|  37.2k|    {       
  266|  37.2k|        return (ptr);
  267|  37.2k|    }  
_ZN8jsoncons6nonstd16to_plain_pointerINS_4heap11heap_stringIhmNSt3__19allocatorIcEEEEEEPT_S9_:
  265|  1.14M|    {       
  266|  1.14M|        return (ptr);
  267|  1.14M|    }  

_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4sizeEv:
  116|  48.7M|        {
  117|  48.7M|            return size_;
  118|  48.7M|        }
_ZNK8jsoncons6nonstd4spanIKtLm18446744073709551615EE4sizeEv:
  116|  3.70M|        {
  117|  3.70M|            return size_;
  118|  3.70M|        }
_ZNK8jsoncons6nonstd4spanIKjLm18446744073709551615EE4sizeEv:
  116|   107k|        {
  117|   107k|            return size_;
  118|   107k|        }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EE4sizeEv:
  116|  39.5M|        {
  117|  39.5M|            return size_;
  118|  39.5M|        }
_ZNK8jsoncons6nonstd4spanIKaLm18446744073709551615EE4sizeEv:
  116|   743k|        {
  117|   743k|            return size_;
  118|   743k|        }
_ZNK8jsoncons6nonstd4spanIKsLm18446744073709551615EE4sizeEv:
  116|   158k|        {
  117|   158k|            return size_;
  118|   158k|        }
_ZNK8jsoncons6nonstd4spanIKiLm18446744073709551615EE4sizeEv:
  116|   471k|        {
  117|   471k|            return size_;
  118|   471k|        }
_ZNK8jsoncons6nonstd4spanIKlLm18446744073709551615EE4sizeEv:
  116|  84.0k|        {
  117|  84.0k|            return size_;
  118|  84.0k|        }
_ZNK8jsoncons6nonstd4spanIKfLm18446744073709551615EE4sizeEv:
  116|  6.50M|        {
  117|  6.50M|            return size_;
  118|  6.50M|        }
_ZNK8jsoncons6nonstd4spanIKdLm18446744073709551615EE4sizeEv:
  116|  1.25M|        {
  117|  1.25M|            return size_;
  118|  1.25M|        }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|  21.7M|            : data_(data), size_(size)
   62|  21.7M|        {
   63|  21.7M|        }
_ZNK8jsoncons6nonstd4spanIhLm18446744073709551615EE4dataEv:
  111|  1.04M|        {
  112|  1.04M|            return data_;
  113|  1.04M|        }
_ZNK8jsoncons6nonstd4spanIhLm18446744073709551615EE4sizeEv:
  116|  1.04M|        {
  117|  1.04M|            return size_;
  118|  1.04M|        }
_ZN8jsoncons6nonstd4spanIhLm18446744073709551615EEC2INSt3__16vectorIhNS4_9allocatorIhEEEEEERT_PNS4_9enable_ifIXaaaaaantsr7is_spanIS9_EE5valuentsr6nonstd12is_std_arrayIS9_EE5valuesr6nonstd21is_compatible_elementIS9_hEE5valuesr6nonstd17has_data_and_sizeIS9_EE5valueEvE4typeE:
   68|  1.04M|            : data_(c.data()), size_(c.size())
   69|  1.04M|        {
   70|  1.04M|        }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2IhLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  42.2k|            : data_(s.data()), size_(s.size())
  103|  42.2k|        {
  104|  42.2k|        }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EEixEm:
  126|   250k|         {
  127|   250k|             return data_[index];
  128|   250k|         }
_ZN8jsoncons6nonstd4spanItLm18446744073709551615EEC2EPtm:
   61|   201k|            : data_(data), size_(size)
   62|   201k|        {
   63|   201k|        }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EE4sizeEv:
  116|  2.77M|        {
  117|  2.77M|            return size_;
  118|  2.77M|        }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EEixEm:
  126|  5.02M|         {
  127|  5.02M|             return data_[index];
  128|  5.02M|         }
_ZN8jsoncons6nonstd4spanIKtLm18446744073709551615EEC2ItLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|   100k|            : data_(s.data()), size_(s.size())
  103|   100k|        {
  104|   100k|        }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EE4dataEv:
  111|   100k|        {
  112|   100k|            return data_;
  113|   100k|        }
_ZNK8jsoncons6nonstd4spanIKtLm18446744073709551615EEixEm:
  126|  3.48M|         {
  127|  3.48M|             return data_[index];
  128|  3.48M|         }
_ZN8jsoncons6nonstd4spanIjLm18446744073709551615EEC2EPjm:
   61|  53.8k|            : data_(data), size_(size)
   62|  53.8k|        {
   63|  53.8k|        }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EE4sizeEv:
  116|   116k|        {
  117|   116k|            return size_;
  118|   116k|        }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EEixEm:
  126|  72.8k|         {
  127|  72.8k|             return data_[index];
  128|  72.8k|         }
_ZN8jsoncons6nonstd4spanIKjLm18446744073709551615EEC2IjLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  26.8k|            : data_(s.data()), size_(s.size())
  103|  26.8k|        {
  104|  26.8k|        }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EE4dataEv:
  111|  26.8k|        {
  112|  26.8k|            return data_;
  113|  26.8k|        }
_ZNK8jsoncons6nonstd4spanIKjLm18446744073709551615EEixEm:
  126|  49.1k|         {
  127|  49.1k|             return data_[index];
  128|  49.1k|         }
_ZN8jsoncons6nonstd4spanImLm18446744073709551615EEC2EPmm:
   61|   165k|            : data_(data), size_(size)
   62|   165k|        {
   63|   165k|        }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EE4sizeEv:
  116|   226k|        {
  117|   226k|            return size_;
  118|   226k|        }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EEixEm:
  126|  79.7k|         {
  127|  79.7k|             return data_[index];
  128|  79.7k|         }
_ZN8jsoncons6nonstd4spanIKmLm18446744073709551615EEC2ImLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  82.8k|            : data_(s.data()), size_(s.size())
  103|  82.8k|        {
  104|  82.8k|        }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EE4dataEv:
  111|  82.8k|        {
  112|  82.8k|            return data_;
  113|  82.8k|        }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EEixEm:
  126|   117M|         {
  127|   117M|             return data_[index];
  128|   117M|         }
_ZN8jsoncons6nonstd4spanIaLm18446744073709551615EEC2EPam:
   61|  33.1k|            : data_(data), size_(size)
   62|  33.1k|        {
   63|  33.1k|        }
_ZNK8jsoncons6nonstd4spanIaLm18446744073709551615EE4sizeEv:
  116|  36.7k|        {
  117|  36.7k|            return size_;
  118|  36.7k|        }
_ZN8jsoncons6nonstd4spanIKaLm18446744073709551615EEC2IaLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  16.5k|            : data_(s.data()), size_(s.size())
  103|  16.5k|        {
  104|  16.5k|        }
_ZNK8jsoncons6nonstd4spanIaLm18446744073709551615EE4dataEv:
  111|  16.5k|        {
  112|  16.5k|            return data_;
  113|  16.5k|        }
_ZNK8jsoncons6nonstd4spanIKaLm18446744073709551615EEixEm:
  126|   728k|         {
  127|   728k|             return data_[index];
  128|   728k|         }
_ZN8jsoncons6nonstd4spanIsLm18446744073709551615EEC2EPsm:
   61|  56.5k|            : data_(data), size_(size)
   62|  56.5k|        {
   63|  56.5k|        }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EE4sizeEv:
  116|   152k|        {
  117|   152k|            return size_;
  118|   152k|        }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EEixEm:
  126|   131k|         {
  127|   131k|             return data_[index];
  128|   131k|         }
_ZN8jsoncons6nonstd4spanIKsLm18446744073709551615EEC2IsLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  28.2k|            : data_(s.data()), size_(s.size())
  103|  28.2k|        {
  104|  28.2k|        }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EE4dataEv:
  111|  28.2k|        {
  112|  28.2k|            return data_;
  113|  28.2k|        }
_ZNK8jsoncons6nonstd4spanIKsLm18446744073709551615EEixEm:
  126|   112k|         {
  127|   112k|             return data_[index];
  128|   112k|         }
_ZN8jsoncons6nonstd4spanIiLm18446744073709551615EEC2EPim:
   61|   219k|            : data_(data), size_(size)
   62|   219k|        {
   63|   219k|        }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EE4sizeEv:
  116|   386k|        {
  117|   386k|            return size_;
  118|   386k|        }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EEixEm:
  126|   272k|         {
  127|   272k|             return data_[index];
  128|   272k|         }
_ZN8jsoncons6nonstd4spanIKiLm18446744073709551615EEC2IiLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|   109k|            : data_(s.data()), size_(s.size())
  103|   109k|        {
  104|   109k|        }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EE4dataEv:
  111|   109k|        {
  112|   109k|            return data_;
  113|   109k|        }
_ZNK8jsoncons6nonstd4spanIKiLm18446744073709551615EEixEm:
  126|   154k|         {
  127|   154k|             return data_[index];
  128|   154k|         }
_ZN8jsoncons6nonstd4spanIlLm18446744073709551615EEC2EPlm:
   61|  48.0k|            : data_(data), size_(size)
   62|  48.0k|        {
   63|  48.0k|        }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EE4sizeEv:
  116|   106k|        {
  117|   106k|            return size_;
  118|   106k|        }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EEixEm:
  126|  64.5k|         {
  127|  64.5k|             return data_[index];
  128|  64.5k|         }
_ZN8jsoncons6nonstd4spanIKlLm18446744073709551615EEC2IlLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  24.0k|            : data_(s.data()), size_(s.size())
  103|  24.0k|        {
  104|  24.0k|        }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EE4dataEv:
  111|  24.0k|        {
  112|  24.0k|            return data_;
  113|  24.0k|        }
_ZNK8jsoncons6nonstd4spanIKlLm18446744073709551615EEixEm:
  126|  35.0k|         {
  127|  35.0k|             return data_[index];
  128|  35.0k|         }
_ZN8jsoncons6nonstd4spanIfLm18446744073709551615EEC2EPfm:
   61|   114k|            : data_(data), size_(size)
   62|   114k|        {
   63|   114k|        }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EE4sizeEv:
  116|  6.47M|        {
  117|  6.47M|            return size_;
  118|  6.47M|        }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EEixEm:
  126|  12.6M|         {
  127|  12.6M|             return data_[index];
  128|  12.6M|         }
_ZN8jsoncons6nonstd4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  57.3k|            : data_(s.data()), size_(s.size())
  103|  57.3k|        {
  104|  57.3k|        }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EE4dataEv:
  111|  57.3k|        {
  112|  57.3k|            return data_;
  113|  57.3k|        }
_ZNK8jsoncons6nonstd4spanIKfLm18446744073709551615EEixEm:
  126|  6.36M|         {
  127|  6.36M|             return data_[index];
  128|  6.36M|         }
_ZN8jsoncons6nonstd4spanIdLm18446744073709551615EEC2EPdm:
   61|  66.1k|            : data_(data), size_(size)
   62|  66.1k|        {
   63|  66.1k|        }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EE4sizeEv:
  116|   435k|        {
  117|   435k|            return size_;
  118|   435k|        }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EEixEm:
  126|   701k|         {
  127|   701k|             return data_[index];
  128|   701k|         }
_ZN8jsoncons6nonstd4spanIKdLm18446744073709551615EEC2IdLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  32.9k|            : data_(s.data()), size_(s.size())
  103|  32.9k|        {
  104|  32.9k|        }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EE4dataEv:
  111|  32.9k|        {
  112|  32.9k|            return data_;
  113|  32.9k|        }
_ZNK8jsoncons6nonstd4spanIKdLm18446744073709551615EEixEm:
  126|  1.17M|         {
  127|  1.17M|             return data_[index];
  128|  1.17M|         }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2Ev:
   58|  3.07M|        {
   59|  3.07M|        }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4dataEv:
  111|  24.7M|        {
  112|  24.7M|            return data_;
  113|  24.7M|        }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EE5emptyEv:
  121|   174k|        { 
  122|   174k|            return size_ == 0; 
  123|   174k|        }
_ZN8jsoncons6nonstd4spanIKmLm18446744073709551615EEC2INSt3__16vectorImNS5_9allocatorImEEEEEERT_PNS5_9enable_ifIXaaaaaantsr7is_spanISA_EE5valuentsr6nonstd12is_std_arrayISA_EE5valuesr6nonstd21is_compatible_elementISA_S2_EE5valuesr6nonstd17has_data_and_sizeISA_EE5valueEvE4typeE:
   68|   174k|            : data_(c.data()), size_(c.size())
   69|   174k|        {
   70|   174k|        }

_ZN8jsoncons6nonstd4u128C2Em:
   29|  1.73G|    constexpr u128(uint64_t lo) : hi(0), lo(lo) {}
_ZNK8jsoncons6nonstd4u128mlERKS1_:
  111|   863M|    u128 operator*(const u128& rhs) const {
  112|       |        // Split components into 32-bit chunks to avoid 64-bit overflow during multiplication
  113|   863M|        uint64_t a3 = hi >> 32;
  114|   863M|        uint64_t a2 = hi & 0xFFFFFFFFFFFFFFULL; // lower 32 bits of hi
  115|   863M|        uint64_t a1 = lo >> 32;
  116|   863M|        uint64_t a0 = lo & 0xFFFFFFFFULL;
  117|       |
  118|   863M|        uint64_t b3 = rhs.hi >> 32;
  119|   863M|        uint64_t b2 = rhs.hi & 0xFFFFFFFFFFFFFFULL;
  120|   863M|        uint64_t b1 = rhs.lo >> 32;
  121|   863M|        uint64_t b0 = rhs.lo & 0xFFFFFFFFULL;
  122|       |
  123|       |        // Long multiplication matrix
  124|       |        // We only care about terms that fit in the final 128 bits.
  125|       |        // Chunks exceeding indices that add up to 3 (e.g., a2*b2, a3*b1) drop out of range.
  126|       |
  127|   863M|        uint64_t c0 = a0 * b0;
  128|   863M|        uint64_t c1 = a0 * b1 + a1 * b0;
  129|   863M|        uint64_t c2 = a0 * b2 + a1 * b1 + a2 * b0;
  130|   863M|        uint64_t c3 = a0 * b3 + a1 * b2 + a2 * b1 + a3 * b0;
  131|       |
  132|       |        // Carry propagation
  133|   863M|        c1 += (c0 >> 32);
  134|   863M|        c2 += (c1 >> 32);
  135|   863M|        c3 += (c2 >> 32);
  136|       |
  137|       |        // Reconstruct hi and lo 64-bit values
  138|   863M|        uint64_t new_low = (c0 & 0xFFFFFFFFULL) | (c1 << 32);
  139|   863M|        uint64_t new_high = (c2 & 0xFFFFFFFFULL) | (c3 << 32);
  140|       |
  141|   863M|        return {new_high, new_low};
  142|   863M|    }
_ZN8jsoncons6nonstd4u128C2Emm:
   30|  2.59G|    constexpr u128(uint64_t hi, uint64_t lo) : hi(hi), lo(lo) {}
_ZNK8jsoncons6nonstd4u128plERKS1_:
   41|   863M|    u128 operator+(const u128& rhs) const {
   42|   863M|        uint64_t new_low = lo + rhs.lo;
   43|       |        // Carry occurs if the result wrapped around and is less than one of the inputs
   44|   863M|        uint64_t carry = (new_low < lo) ? 1 : 0;
  ------------------
  |  Branch (44:26): [True: 48, False: 863M]
  ------------------
   45|   863M|        uint64_t new_high = hi + rhs.hi + carry;
   46|   863M|        return {new_high, new_low};
   47|   863M|    }
_ZNK8jsoncons6nonstd4u128cvmEv:
  154|   863M|    explicit operator uint64_t() const {
  155|   863M|        return lo;
  156|   863M|    }
_ZNK8jsoncons6nonstd4u128rsEj:
   95|   863M|    u128 operator>>(unsigned int shift) const {
   96|   863M|        if (shift == 0) return *this;
  ------------------
  |  Branch (96:13): [True: 0, False: 863M]
  ------------------
   97|   863M|        if (shift >= 128) return {0, 0};
  ------------------
  |  Branch (97:13): [True: 0, False: 863M]
  ------------------
   98|       |
   99|   863M|        if (shift >= 64) {
  ------------------
  |  Branch (99:13): [True: 863M, False: 0]
  ------------------
  100|   863M|            return {0, hi >> (shift - 64)};
  101|   863M|        }
  102|      0|        else {
  103|      0|            return {
  104|      0|                hi >> shift,
  105|      0|                (lo >> shift) | (hi << (64 - shift))
  106|      0|            };
  107|      0|        }
  108|   863M|    }
_ZNK8jsoncons6nonstd4u128cvbEv:
   32|  4.10M|    explicit operator bool() const {
   33|  4.10M|        return hi != 0 || lo != 0;
  ------------------
  |  Branch (33:16): [True: 0, False: 4.10M]
  |  Branch (33:27): [True: 372k, False: 3.73M]
  ------------------
   34|  4.10M|    }
_ZNK8jsoncons6nonstd4u128geERKS1_:
   71|   137k|    {
   72|   137k|        if (hi != rhs.hi)
  ------------------
  |  Branch (72:13): [True: 0, False: 137k]
  ------------------
   73|      0|            return hi > rhs.hi;
   74|       |
   75|   137k|        return lo >= rhs.lo;
   76|   137k|    }

_ZN8jsoncons11ser_contextD2Ev:
   21|  51.3k|    virtual ~ser_context() = default;
_ZN8jsoncons10read_errorC2ENSt3__110error_codeEmm:
   68|  5.24k|        : ec_{ec}, line_{line}, column_{column}
   69|  5.24k|    {
   70|  5.24k|    }

_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2ERS7_:
  256|  6.78M|            : buf_ptr(std::addressof(buf))
  257|  6.78M|        {
  258|  6.78M|        }
_ZN8jsoncons11string_sinkINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE9push_backEc:
  287|   116M|        {
  288|   116M|            buf_ptr->push_back(ch);
  289|   116M|        }

_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEEC2Ev:
   61|  4.93M|        sorted_json_object() = default;
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE18uninitialized_initEPNS_15index_key_valueISA_EEm:
  277|  38.3k|        {
  278|  38.3k|            if (count > 0)
  ------------------
  |  Branch (278:17): [True: 38.3k, False: 0]
  ------------------
  279|  38.3k|            {
  280|  38.3k|                data_.reserve(count);
  281|       |
  282|  38.3k|                std::sort(items, items+count, compare);
  283|  38.3k|                data_.emplace_back(key_type(items[0].name.data(), items[0].name.size(), get_allocator()), std::move(items[0].value));
  284|       |                
  285|  6.63M|                for (std::size_t i = 1; i < count; ++i)
  ------------------
  |  Branch (285:41): [True: 6.59M, False: 38.3k]
  ------------------
  286|  6.59M|                {
  287|  6.59M|                    auto& item = items[i];
  288|  6.59M|                    if (item.name != items[i-1].name)
  ------------------
  |  Branch (288:25): [True: 79.9k, False: 6.51M]
  ------------------
  289|  79.9k|                    {
  290|  79.9k|                        data_.emplace_back(key_type(item.name.data(), item.name.size(), get_allocator()), std::move(item.value));
  291|  79.9k|                    }
  292|  6.59M|                }
  293|  38.3k|            }
  294|  38.3k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE7compareERKNS_15index_key_valueISA_EESG_:
  268|   148M|        {
  269|   148M|            int comp = item1.name.compare(item2.name); 
  270|   148M|            if (comp < 0) return true;
  ------------------
  |  Branch (270:17): [True: 1.60M, False: 147M]
  ------------------
  271|   147M|            if (comp == 0) return item1.index < item2.index;
  ------------------
  |  Branch (271:17): [True: 146M, False: 1.03M]
  ------------------
  272|       |
  273|  1.03M|            return false;
  274|   147M|        }
_ZNK8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5emptyEv:
  158|   106k|        {
  159|   106k|            return data_.empty();
  160|   106k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5clearEv:
  195|  2.24M|        void clear() {data_.clear();}
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5beginEv:
  168|  2.24M|        {
  169|  2.24M|            return data_.begin();
  170|  2.24M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE3endEv:
  173|  2.24M|        {
  174|  2.24M|            return data_.end();
  175|  2.24M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEED2Ev:
  153|  4.93M|        {
  154|  4.93M|            flatten_and_destroy();
  155|  4.93M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE19flatten_and_destroyEv:
  724|  4.93M|        {
  725|  4.93M|            if (!data_.empty())
  ------------------
  |  Branch (725:17): [True: 19.9k, False: 4.91M]
  ------------------
  726|  19.9k|            {
  727|  19.9k|                json_array<Json> temp(get_allocator());
  728|       |
  729|  19.9k|                for (auto& kv : data_)
  ------------------
  |  Branch (729:31): [True: 68.9k, False: 19.9k]
  ------------------
  730|  68.9k|                {
  731|  68.9k|                    switch (kv.value().storage_kind())
  732|  68.9k|                    {
  733|  3.29k|                        case json_storage_kind::array:
  ------------------
  |  Branch (733:25): [True: 3.29k, False: 65.6k]
  ------------------
  734|  9.38k|                        case json_storage_kind::object:
  ------------------
  |  Branch (734:25): [True: 6.09k, False: 62.8k]
  ------------------
  735|  9.38k|                            if (!kv.value().empty())
  ------------------
  |  Branch (735:33): [True: 5.61k, False: 3.77k]
  ------------------
  736|  5.61k|                            {
  737|  5.61k|                                temp.emplace_back(std::move(kv.value()));
  738|  5.61k|                            }
  739|  9.38k|                            break;
  740|  59.5k|                        default:
  ------------------
  |  Branch (740:25): [True: 59.5k, False: 9.38k]
  ------------------
  741|  59.5k|                            break;
  742|  68.9k|                    }
  743|  68.9k|                }
  744|  19.9k|            }
  745|  4.93M|        }

_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8positionEv:
  281|  5.24k|    {
  282|  5.24k|        return position_;
  283|  5.24k|    }
_ZN8jsoncons12chars_sourceIhE4readEPhm:
  588|  2.51M|    {
  589|  2.51M|        std::size_t len;
  590|  2.51M|        if (std::size_t(end_ - current_) < length)
  ------------------
  |  Branch (590:13): [True: 687, False: 2.51M]
  ------------------
  591|    687|        {
  592|    687|            len = end_ - current_;
  593|    687|        }
  594|  2.51M|        else
  595|  2.51M|        {
  596|  2.51M|            len = length;
  597|  2.51M|        }
  598|  2.51M|        std::memcpy(p, current_, len*sizeof(value_type));
  599|  2.51M|        current_  += len;
  600|  2.51M|        return len;
  601|  2.51M|    }
_ZN8jsoncons13source_readerINS_12chars_sourceIhEEE4readINSt3__16vectorIhNS5_9allocatorIhEEEEEENS5_9enable_ifIXaaL_ZNS5_17integral_constantIbLb1EE5valueEEsr6nonstd7is_byteINT_10value_typeEEE5valueEmE4typeERS2_RSD_m:
  746|   284k|    {
  747|   284k|        std::size_t unread = length;
  748|       |
  749|   527k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 243k, False: 284k]
  |  Branch (749:30): [True: 242k, False: 317]
  ------------------
  750|   242k|        {
  751|   242k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 0, False: 242k]
  |  Branch (751:44): [True: 0, False: 0]
  ------------------
  752|      0|            {
  753|      0|                std::size_t n = source.chunk_size();
  754|      0|                std::size_t offset = buffer.size();
  755|      0|                buffer.resize(offset+n);
  756|      0|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|      0|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  758|      0|                {
  759|      0|                    buffer.resize(offset+actual);
  760|      0|                }
  761|      0|                unread -= actual;
  762|      0|            }
  763|   242k|            else
  764|   242k|            {
  765|   242k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|   242k|                std::size_t offset = buffer.size();
  767|   242k|                buffer.resize(offset+n);
  768|   242k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|   242k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|   242k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 242k]
  |  |  ------------------
  ------------------
  770|      0|                {
  771|      0|                    buffer.resize(offset + actual);
  772|      0|                }
  773|   242k|                unread -= actual;
  774|   242k|            }
  775|   242k|        }
  776|   284k|        return length - unread;
  777|   284k|    }
_ZNK8jsoncons12chars_sourceIhE3eofEv:
  507|   245k|    {
  508|   245k|        return current_ == end_;  
  509|   245k|    }
_ZNK8jsoncons12chars_sourceIhE9remainingEv:
  568|   245k|    {
  569|   245k|        return std::size_t(end_ - current_);
  570|   245k|    }
_ZNK8jsoncons12chars_sourceIhE10chunk_sizeEv:
  541|   245k|    {
  542|   245k|        return end_ - current_;
  543|   245k|    }
_ZN8jsoncons12chars_sourceIhE9read_spanIRNSt3__16vectorIhNS3_9allocatorIhEEEEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  574|  9.31M|    {
  575|  9.31M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  9.31M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.09M, False: 8.21M]
  |  |  ------------------
  ------------------
  576|  1.09M|        {
  577|  1.09M|            return span<const value_type>{};
  578|  1.09M|        }
  579|  8.21M|        std::size_t remaining = std::size_t(end_ - current_);
  580|  8.21M|        std::size_t len = remaining < length ? remaining : length;
  ------------------
  |  Branch (580:27): [True: 879, False: 8.21M]
  ------------------
  581|       |
  582|  8.21M|        const value_type* data = current_;
  583|  8.21M|        current_ += len;
  584|  8.21M|        return span<const value_type>(data, len);
  585|  9.31M|    }
_ZN8jsoncons13source_readerINS_12chars_sourceIhEEE4readINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEENS5_9enable_ifIXaaL_ZNS5_17integral_constantIbLb1EE5valueEEsr6nonstd7is_byteINT_10value_typeEEE5valueEmE4typeERS2_RSF_m:
  746|  5.60k|    {
  747|  5.60k|        std::size_t unread = length;
  748|       |
  749|  7.83k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 2.27k, False: 5.55k]
  |  Branch (749:30): [True: 2.23k, False: 45]
  ------------------
  750|  2.23k|        {
  751|  2.23k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 0, False: 2.23k]
  |  Branch (751:44): [True: 0, False: 0]
  ------------------
  752|      0|            {
  753|      0|                std::size_t n = source.chunk_size();
  754|      0|                std::size_t offset = buffer.size();
  755|      0|                buffer.resize(offset+n);
  756|      0|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|      0|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  758|      0|                {
  759|      0|                    buffer.resize(offset+actual);
  760|      0|                }
  761|      0|                unread -= actual;
  762|      0|            }
  763|  2.23k|            else
  764|  2.23k|            {
  765|  2.23k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  2.23k|                std::size_t offset = buffer.size();
  767|  2.23k|                buffer.resize(offset+n);
  768|  2.23k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  2.23k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|  2.23k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.23k]
  |  |  ------------------
  ------------------
  770|      0|                {
  771|      0|                    buffer.resize(offset + actual);
  772|      0|                }
  773|  2.23k|                unread -= actual;
  774|  2.23k|            }
  775|  2.23k|        }
  776|  5.60k|        return length - unread;
  777|  5.60k|    }
_ZN8jsoncons12chars_sourceIhE9read_spanIRNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  574|   405k|    {
  575|   405k|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|   405k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 186k, False: 219k]
  |  |  ------------------
  ------------------
  576|   186k|        {
  577|   186k|            return span<const value_type>{};
  578|   186k|        }
  579|   219k|        std::size_t remaining = std::size_t(end_ - current_);
  580|   219k|        std::size_t len = remaining < length ? remaining : length;
  ------------------
  |  Branch (580:27): [True: 417, False: 218k]
  ------------------
  581|       |
  582|   219k|        const value_type* data = current_;
  583|   219k|        current_ += len;
  584|   219k|        return span<const value_type>(data, len);
  585|   405k|    }
_ZN8jsoncons12chars_sourceIhE4peekEv:
  536|   261M|    {
  537|   261M|        return current_ < end_ ? char_result<value_type>{*current_, false} : char_result<value_type>{0, true};
  ------------------
  |  Branch (537:16): [True: 261M, False: 3.75k]
  ------------------
  538|   261M|    }
_ZN8jsoncons12chars_sourceIhE6ignoreEm:
  522|   111M|    {
  523|   111M|        std::size_t len;
  524|   111M|        if (std::size_t(end_ - current_) < count)
  ------------------
  |  Branch (524:13): [True: 0, False: 111M]
  ------------------
  525|      0|        {
  526|      0|            len = end_ - current_;
  527|      0|        }
  528|   111M|        else
  529|   111M|        {
  530|   111M|            len = count;
  531|   111M|        }
  532|   111M|        current_ += len;
  533|   111M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  13.4M|    {
  378|  13.4M|        std::size_t len = 0;
  379|  13.4M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 12.6M, False: 793k]
  ------------------
  380|  12.6M|        {
  381|  12.6M|            len = (std::min)(remaining_, length);
  382|  12.6M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  12.6M|            data_end_ += len;
  384|  12.6M|            remaining_ -= len;
  385|  12.6M|            position_ += len;
  386|  12.6M|        }
  387|  13.4M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 5.27M, False: 8.20M]
  ------------------
  388|  5.27M|        {
  389|  5.27M|            return len;
  390|  5.27M|        }
  391|  8.20M|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 8.19M, False: 12.6k]
  ------------------
  392|  8.19M|        {
  393|  8.19M|            data_end_ = chunk_;
  394|  8.19M|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|  8.19M|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 8.19M, False: 2.46k]
  ------------------
  396|  8.19M|            {
  397|  8.19M|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|  8.19M|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|  8.19M|                data_end_ += len2;
  400|  8.19M|                remaining_ -= len2;
  401|  8.19M|                position_ += len2;
  402|  8.19M|                len += len2;
  403|  8.19M|            }
  404|  8.19M|            return len;
  405|  8.19M|        }
  406|  12.6k|        else
  407|  12.6k|        {
  408|  12.6k|            if (stream_ptr_->eof())
  ------------------
  |  Branch (408:17): [True: 24, False: 12.5k]
  ------------------
  409|     24|            {
  410|     24|                remaining_ = 0;
  411|     24|                return 0;
  412|     24|            }
  413|  12.5k|            JSONCONS_TRY
  ------------------
  |  |   37|  12.5k|    #define JSONCONS_TRY try
  ------------------
  414|  12.5k|            {
  415|  12.5k|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  416|  12.5k|                std::size_t len2 = static_cast<std::size_t>(count);
  417|  12.5k|                if (len2 < length-len)
  ------------------
  |  Branch (417:21): [True: 38, False: 12.5k]
  ------------------
  418|     38|                {
  419|     38|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  420|     38|                }
  421|  12.5k|                len += len2;
  422|  12.5k|                position_ += len2;
  423|  12.5k|                return len;
  424|  12.5k|            }
  425|  12.5k|            JSONCONS_CATCH(const std::exception&)     
  426|  12.5k|            {
  427|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  428|      0|                return 0;
  429|      0|            }
  430|  12.5k|        }
  431|  13.4M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  17.9M|    {
  443|  17.9M|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 7.89k, False: 17.9M]
  ------------------
  444|  7.89k|        {
  445|  7.89k|            return 0;
  446|  7.89k|        }
  447|       |
  448|  17.9M|        JSONCONS_TRY
  ------------------
  |  |   37|  17.9M|    #define JSONCONS_TRY try
  ------------------
  449|  17.9M|        {
  450|  17.9M|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  17.9M|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  17.9M|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 16.0k, False: 17.9M]
  ------------------
  454|  16.0k|            {
  455|  16.0k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  16.0k|            }
  457|  17.9M|            return length;
  458|  17.9M|        }
  459|  17.9M|        JSONCONS_CATCH(const std::exception&)     
  460|  17.9M|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  17.9M|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr6nonstd7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  746|  4.86M|    {
  747|  4.86M|        std::size_t unread = length;
  748|       |
  749|  15.9M|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 11.0M, False: 4.86M]
  |  Branch (749:30): [True: 11.0M, False: 1.74k]
  ------------------
  750|  11.0M|        {
  751|  11.0M|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 2.10M, False: 8.95M]
  |  Branch (751:44): [True: 1.46M, False: 638k]
  ------------------
  752|  1.46M|            {
  753|  1.46M|                std::size_t n = source.chunk_size();
  754|  1.46M|                std::size_t offset = buffer.size();
  755|  1.46M|                buffer.resize(offset+n);
  756|  1.46M|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|  1.46M|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|  1.46M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 136, False: 1.46M]
  |  |  ------------------
  ------------------
  758|    136|                {
  759|    136|                    buffer.resize(offset+actual);
  760|    136|                }
  761|  1.46M|                unread -= actual;
  762|  1.46M|            }
  763|  9.59M|            else
  764|  9.59M|            {
  765|  9.59M|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  9.59M|                std::size_t offset = buffer.size();
  767|  9.59M|                buffer.resize(offset+n);
  768|  9.59M|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  9.59M|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|  9.59M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.28k, False: 9.59M]
  |  |  ------------------
  ------------------
  770|  1.28k|                {
  771|  1.28k|                    buffer.resize(offset + actual);
  772|  1.28k|                }
  773|  9.59M|                unread -= actual;
  774|  9.59M|            }
  775|  11.0M|        }
  776|  4.86M|        return length - unread;
  777|  4.86M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  11.6M|    {
  272|  11.6M|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 2.15M, False: 9.47M]
  |  Branch (272:35): [True: 2.42k, False: 2.15M]
  ------------------
  273|  11.6M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|  11.6M|    {
  347|  11.6M|        return remaining_;
  348|  11.6M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|  13.7M|    {
  262|  13.7M|        return chunk_size_;
  263|  13.7M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|  1.51M|    {
  436|  1.51M|        auto len = fill_buffer(chunk, chunk_size);
  437|  1.51M|        position_ += len;
  438|  1.51M|        return len;
  439|  1.51M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|  13.3M|    {
  353|  13.3M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  13.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.52M, False: 11.7M]
  |  |  ------------------
  ------------------
  354|  1.52M|        {
  355|  1.52M|            return span<const value_type>{};
  356|  1.52M|        }
  357|  11.7M|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 662k, False: 11.1M]
  |  Branch (357:32): [True: 37.7k, False: 624k]
  ------------------
  358|  37.7k|        {
  359|  37.7k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|  37.7k|            data_end_ = chunk_;
  361|  37.7k|        }
  362|  11.7M|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 4.45M, False: 7.33M]
  ------------------
  363|  4.45M|        {
  364|  4.45M|            buffer.clear();
  365|  4.45M|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|  4.45M|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|  4.45M|        }
  368|       |
  369|  7.33M|        const value_type* data = data_end_;
  370|  7.33M|        data_end_ += length;
  371|  7.33M|        remaining_ -= length;
  372|  7.33M|        position_ += length;
  373|  7.33M|        return span<const value_type>(data, length);
  374|  11.7M|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr6nonstd7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSG_m:
  746|  57.3k|    {
  747|  57.3k|        std::size_t unread = length;
  748|       |
  749|   617k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 561k, False: 56.7k]
  |  Branch (749:30): [True: 560k, False: 679]
  ------------------
  750|   560k|        {
  751|   560k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 48.3k, False: 512k]
  |  Branch (751:44): [True: 43.6k, False: 4.72k]
  ------------------
  752|  43.6k|            {
  753|  43.6k|                std::size_t n = source.chunk_size();
  754|  43.6k|                std::size_t offset = buffer.size();
  755|  43.6k|                buffer.resize(offset+n);
  756|  43.6k|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|  43.6k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|  43.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 49, False: 43.5k]
  |  |  ------------------
  ------------------
  758|     49|                {
  759|     49|                    buffer.resize(offset+actual);
  760|     49|                }
  761|  43.6k|                unread -= actual;
  762|  43.6k|            }
  763|   516k|            else
  764|   516k|            {
  765|   516k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|   516k|                std::size_t offset = buffer.size();
  767|   516k|                buffer.resize(offset+n);
  768|   516k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|   516k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|   516k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 511, False: 516k]
  |  |  ------------------
  ------------------
  770|    511|                {
  771|    511|                    buffer.resize(offset + actual);
  772|    511|                }
  773|   516k|                unread -= actual;
  774|   516k|            }
  775|   560k|        }
  776|  57.3k|        return length - unread;
  777|  57.3k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_12basic_stringIcNS1_11char_traitsIcEENS2_IcEEEEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|   595k|    {
  353|   595k|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|   595k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 276k, False: 318k]
  |  |  ------------------
  ------------------
  354|   276k|        {
  355|   276k|            return span<const value_type>{};
  356|   276k|        }
  357|   318k|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 17.6k, False: 301k]
  |  Branch (357:32): [True: 13.0k, False: 4.63k]
  ------------------
  358|  13.0k|        {
  359|  13.0k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|  13.0k|            data_end_ = chunk_;
  361|  13.0k|        }
  362|   318k|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 49.0k, False: 269k]
  ------------------
  363|  49.0k|        {
  364|  49.0k|            buffer.clear();
  365|  49.0k|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|  49.0k|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|  49.0k|        }
  368|       |
  369|   269k|        const value_type* data = data_end_;
  370|   269k|        data_end_ += length;
  371|   269k|        remaining_ -= length;
  372|   269k|        position_ += length;
  373|   269k|        return span<const value_type>(data, length);
  374|   318k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4peekEv:
  312|   388M|    {
  313|   388M|        if (remaining_ == 0)
  ------------------
  |  Branch (313:13): [True: 8.18M, False: 379M]
  ------------------
  314|  8.18M|        {
  315|  8.18M|            data_end_ = chunk_;
  316|  8.18M|            remaining_ = fill_buffer(chunk_, chunk_size_);
  317|  8.18M|        }
  318|   388M|        if (remaining_ > 0)
  ------------------
  |  Branch (318:13): [True: 388M, False: 5.55k]
  ------------------
  319|   388M|        {
  320|   388M|            value_type c = *data_end_;
  321|   388M|            return char_result<value_type>{c, false};
  322|   388M|        }
  323|  5.55k|        else
  324|  5.55k|        {
  325|  5.55k|            return char_result<value_type>{0, true};
  326|  5.55k|        }
  327|   388M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE6ignoreEm:
  286|   166M|    {
  287|   166M|        std::size_t len = 0;
  288|   166M|        if (remaining_ > 0)
  ------------------
  |  Branch (288:13): [True: 166M, False: 0]
  ------------------
  289|   166M|        {
  290|   166M|            len = (std::min)(remaining_, length);
  291|   166M|            position_ += len;
  292|   166M|            data_end_ += len;
  293|   166M|            remaining_ -= len;
  294|   166M|        }
  295|   166M|        while (len < length)
  ------------------
  |  Branch (295:16): [True: 0, False: 166M]
  ------------------
  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|   166M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  12.8k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  12.8k|          chunk_size_(default_max_chunk_size)
  178|  12.8k|    {
  179|  12.8k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  12.8k|        data_end_ = chunk_;
  181|  12.8k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  25.6k|      : std::basic_istream<CharT>(&nb_)
   58|  25.6k|    {
   59|  25.6k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  25.6k|        null_buffer() = default;
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  25.6k|    {
  194|  25.6k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 19.2k, False: 6.41k]
  ------------------
  195|  19.2k|        {
  196|  19.2k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  19.2k|        }
  198|  25.6k|    }
_ZN8jsoncons12chars_sourceIhEC2INS_6nonstd4spanIKhLm18446744073709551615EEEhEERKT_PNSt3__19enable_ifIXaasr6nonstd7is_byteIT0_EE5valuesr6nonstd7is_byteINS7_10value_typeEEE5valueEvE4typeE:
  492|  12.8k|        : data_end_(reinterpret_cast<const value_type*>(s.data())), current_(data_end_), end_(data_end_+s.size())
  493|  12.8k|    {
  494|  12.8k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEEmRKS3_:
  185|  6.41k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  186|  6.41k|          chunk_size_(chunk_size)
  187|  6.41k|    {
  188|  6.41k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  189|  6.41k|        data_end_ = chunk_;
  190|  6.41k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2EOS4_:
  119|  6.41k|        : alloc_(other.alloc_), stream_ptr_(&null_is_), sbuf_(null_is_.rdbuf())
  120|  6.41k|    {
  121|  6.41k|        chunk_ = other.chunk_;
  122|  6.41k|        data_end_ = other.data_end_;
  123|  6.41k|        chunk_size_ = other.chunk_size_;
  124|  6.41k|        remaining_ = other.remaining_;
  125|  6.41k|        other.chunk_ = nullptr;
  126|  6.41k|        other.data_end_ = nullptr;
  127|  6.41k|        other.chunk_size_ = 0;
  128|  6.41k|        other.remaining_ = 0;
  129|       |
  130|  6.41k|        if (other.stream_ptr_ != &other.null_is_)
  ------------------
  |  Branch (130:13): [True: 6.41k, False: 0]
  ------------------
  131|  6.41k|        {
  132|  6.41k|            stream_ptr_ = other.stream_ptr_;
  133|  6.41k|            sbuf_ = other.sbuf_;
  134|  6.41k|            position_ = other.position_;
  135|  6.41k|            other.stream_ptr_ = &other.null_is_;
  136|  6.41k|            other.sbuf_ = other.null_is_.rdbuf();
  137|  6.41k|            other.position_ = 0;
  138|  6.41k|        }
  139|  6.41k|    }

_ZN8jsoncons17basic_staj_cursorIcED2Ev:
  558|  19.2k|    virtual ~basic_staj_cursor() = default;
_ZNK8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE5eventEv:
   73|  18.8k|    {
   74|  18.8k|        return event_;
   75|  18.8k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE4dumpERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS1_10error_codeE:
   83|  6.29k|    {
   84|  6.29k|        event().send_event(visitor, context, ec);
   85|  6.29k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEEC2ERKS3_:
   67|  19.2k|        : event_(staj_events::null_value), structure_stack_(temp_alloc)
   68|  19.2k|    {
   69|  19.2k|        structure_stack_.emplace_back(json_structure_kind::root_kind);
   70|  19.2k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE14json_structureC2ENS4_19json_structure_kindE:
   53|  21.9M|            : structure_kind(type)
   54|  21.9M|        {
   55|  21.9M|        }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  174|   927k|    {
  175|   927k|        auto& structure = structure_stack_.back();
  176|   927k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (176:13): [True: 490k, False: 437k]
  ------------------
  177|   490k|        {
  178|   490k|            structure.is_key = !structure_stack_.back().is_key;
  179|   490k|        }
  180|   927k|        if (structure.is_key)
  ------------------
  |  Branch (180:13): [True: 233k, False: 694k]
  ------------------
  181|   233k|        {
  182|   233k|            event_ = staj_event_type(staj_events::begin_array, length, tag, staj_events::key_flag);
  183|   233k|        }
  184|   694k|        else
  185|   694k|        {
  186|   694k|            event_ = staj_event_type(staj_events::begin_array, length, tag);
  187|   694k|        }
  188|   927k|        structure_stack_.emplace_back(json_structure_kind::array_kind);
  189|   927k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   927k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  190|   927k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
  193|   762k|    {
  194|   762k|        JSONCONS_ASSERT(structure_stack_.size() > 1);
  ------------------
  |  |   54|   762k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 762k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  195|   762k|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::array_kind);
  ------------------
  |  |   54|   762k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 762k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  196|   762k|        structure_stack_.pop_back();
  197|       |
  198|   762k|        if (structure_stack_.back().is_key)
  ------------------
  |  Branch (198:13): [True: 210k, False: 551k]
  ------------------
  199|   210k|        {
  200|   210k|            event_ = staj_event_type(staj_events::end_array, semantic_tag::none, staj_events::key_flag);
  201|   210k|        }
  202|   551k|        else
  203|   551k|        {
  204|   551k|            event_ = staj_event_type(staj_events::end_array);
  205|   551k|        }
  206|       |
  207|   762k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   762k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  208|   762k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  295|  43.5M|    {
  296|  43.5M|        auto& structure = structure_stack_.back();
  297|  43.5M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (297:13): [True: 33.2M, False: 10.2M]
  ------------------
  298|  33.2M|        {
  299|  33.2M|            structure.is_key = !structure.is_key;
  300|  33.2M|        }
  301|  43.5M|        if (structure.is_key)
  ------------------
  |  Branch (301:13): [True: 16.6M, False: 26.9M]
  ------------------
  302|  16.6M|        {
  303|  16.6M|            event_ = staj_event_type(value, tag, staj_events::key_flag);
  304|  16.6M|        }
  305|  26.9M|        else
  306|  26.9M|        {
  307|  26.9M|            event_ = staj_event_type(value, tag);
  308|  26.9M|        }
  309|  43.5M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  43.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  310|  43.5M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  274|  11.0M|    {
  275|  11.0M|        auto& structure = structure_stack_.back();
  276|  11.0M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (276:13): [True: 2.62M, False: 8.44M]
  ------------------
  277|  2.62M|        {
  278|  2.62M|            structure.is_key = !structure.is_key;
  279|  2.62M|        }
  280|  11.0M|        if (structure.is_key)
  ------------------
  |  Branch (280:13): [True: 1.32M, False: 9.74M]
  ------------------
  281|  1.32M|        {
  282|  1.32M|            event_ = staj_event_type(value, tag, staj_events::key_flag);
  283|  1.32M|        }
  284|  9.74M|        else
  285|  9.74M|        {
  286|  9.74M|            event_ = staj_event_type(value, tag);
  287|  9.74M|        }
  288|  11.0M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  11.0M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  289|  11.0M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  337|  4.69M|    {
  338|  4.69M|        auto& structure = structure_stack_.back();
  339|  4.69M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (339:13): [True: 300k, False: 4.38M]
  ------------------
  340|   300k|        {
  341|   300k|            structure.is_key = !structure.is_key;
  342|   300k|        }
  343|  4.69M|        if (structure.is_key)
  ------------------
  |  Branch (343:13): [True: 152k, False: 4.53M]
  ------------------
  344|   152k|        {
  345|   152k|            event_ = staj_event_type(value, tag, staj_events::key_flag);
  346|   152k|        }
  347|  4.53M|        else
  348|  4.53M|        {
  349|  4.53M|            event_ = staj_event_type(value, tag);
  350|  4.53M|        }
  351|  4.69M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.69M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  352|  4.69M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE11visit_flushEv:
   94|  3.52k|    {
   95|  3.52k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  117|  76.5k|    {
  118|  76.5k|        auto& structure = structure_stack_.back();
  119|  76.5k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (119:13): [True: 50.5k, False: 25.9k]
  ------------------
  120|  50.5k|        {
  121|  50.5k|            structure_stack_.back().is_key = !structure_stack_.back().is_key;
  122|  50.5k|        }
  123|  76.5k|        if (structure.is_key)
  ------------------
  |  Branch (123:13): [True: 26.6k, False: 49.8k]
  ------------------
  124|  26.6k|        {
  125|  26.6k|            event_ = staj_event_type(staj_events::begin_object, tag, staj_events::key_flag);
  126|  26.6k|        }
  127|  49.8k|        else 
  128|  49.8k|        {
  129|  49.8k|            event_ = staj_event_type(staj_events::begin_object, tag);
  130|  49.8k|        }
  131|  76.5k|        structure_stack_.emplace_back(json_structure_kind::object_kind);
  132|  76.5k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  76.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  133|  76.5k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
   98|  20.8M|    {
   99|  20.8M|        auto& structure = structure_stack_.back();
  100|  20.8M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (100:13): [True: 5.74M, False: 15.0M]
  ------------------
  101|  5.74M|        {
  102|  5.74M|            structure_stack_.back().is_key = !structure_stack_.back().is_key;
  103|  5.74M|        }
  104|  20.8M|        if (structure.is_key)
  ------------------
  |  Branch (104:13): [True: 2.88M, False: 17.9M]
  ------------------
  105|  2.88M|        {
  106|  2.88M|            event_ = staj_event_type(staj_events::begin_object, length, tag, staj_events::key_flag);
  107|  2.88M|        }
  108|  17.9M|        else 
  109|  17.9M|        {
  110|  17.9M|            event_ = staj_event_type(staj_events::begin_object, length, tag);
  111|  17.9M|        }
  112|  20.8M|        structure_stack_.emplace_back(json_structure_kind::object_kind);
  113|  20.8M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  20.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  114|  20.8M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  136|  20.6M|    {
  137|  20.6M|        JSONCONS_ASSERT(structure_stack_.size() > 0);
  ------------------
  |  |   54|  20.6M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 20.6M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  138|  20.6M|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::object_kind);
  ------------------
  |  |   54|  20.6M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 20.6M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  139|       |
  140|  20.6M|        structure_stack_.pop_back();
  141|  20.6M|        if (structure_stack_.back().is_key)
  ------------------
  |  Branch (141:13): [True: 2.79M, False: 17.8M]
  ------------------
  142|  2.79M|        {
  143|  2.79M|            event_ = staj_event_type(staj_events::end_object, semantic_tag::none, staj_events::key_flag);
  144|  2.79M|        }
  145|  17.8M|        else 
  146|  17.8M|        {
  147|  17.8M|            event_ = staj_event_type(staj_events::end_object);
  148|  17.8M|        }
  149|       |
  150|  20.6M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  20.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  151|  20.6M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  154|   141k|    {
  155|   141k|        auto& structure = structure_stack_.back();
  156|   141k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (156:13): [True: 20.5k, False: 120k]
  ------------------
  157|  20.5k|        {
  158|  20.5k|            structure.is_key = !structure_stack_.back().is_key;
  159|  20.5k|        }
  160|   141k|        if (structure.is_key)
  ------------------
  |  Branch (160:13): [True: 13.3k, False: 127k]
  ------------------
  161|  13.3k|        {
  162|  13.3k|            event_ = staj_event_type(staj_events::begin_array, tag, staj_events::key_flag);
  163|  13.3k|        }
  164|   127k|        else
  165|   127k|        {
  166|   127k|            event_ = staj_event_type(staj_events::begin_array, tag);
  167|   127k|        }
  168|   141k|        structure_stack_.emplace_back(json_structure_kind::array_kind);
  169|   141k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   141k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  170|   141k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  373|   227k|    {
  374|   227k|        auto& structure = structure_stack_.back();
  375|   227k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (375:13): [True: 99.6k, False: 128k]
  ------------------
  376|  99.6k|        {
  377|  99.6k|            structure.is_key = !structure.is_key;
  378|  99.6k|        }
  379|   227k|        if (structure.is_key)
  ------------------
  |  Branch (379:13): [True: 58.0k, False: 169k]
  ------------------
  380|  58.0k|        {
  381|  58.0k|            event_ = staj_event_type(staj_events::null_value, tag, staj_events::key_flag);
  382|  58.0k|        }
  383|   169k|        else
  384|   169k|        {
  385|   169k|            event_ = staj_event_type(staj_events::null_value, tag);
  386|   169k|        }
  387|   227k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   227k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  388|   227k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  355|  5.11M|    {
  356|  5.11M|        auto& structure = structure_stack_.back();
  357|  5.11M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (357:13): [True: 432k, False: 4.67M]
  ------------------
  358|   432k|        {
  359|   432k|            structure.is_key = !structure.is_key;
  360|   432k|        }
  361|  5.11M|        if (structure.is_key)
  ------------------
  |  Branch (361:13): [True: 213k, False: 4.89M]
  ------------------
  362|   213k|        {
  363|   213k|            event_ = staj_event_type(value, tag, staj_events::key_flag);
  364|   213k|        }
  365|  4.89M|        else
  366|  4.89M|        {
  367|  4.89M|            event_ = staj_event_type(value, tag);
  368|  4.89M|        }
  369|  5.11M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  5.11M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  370|  5.11M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  211|   779k|    {
  212|   779k|        auto& structure = structure_stack_.back();
  213|   779k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (213:13): [True: 483k, False: 296k]
  ------------------
  214|   483k|        {
  215|   483k|            structure.is_key = !structure.is_key;
  216|   483k|        }
  217|   779k|        if (structure.is_key)
  ------------------
  |  Branch (217:13): [True: 247k, False: 531k]
  ------------------
  218|   247k|        {
  219|   247k|            event_ = staj_event_type(sv, staj_events::string_value, tag, staj_events::key_flag);
  220|   247k|        }
  221|   531k|        else
  222|   531k|        {
  223|   531k|            event_ = staj_event_type(sv, staj_events::string_value, tag);
  224|   531k|        }
  225|   779k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   779k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  226|   779k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  232|  10.3M|    {
  233|  10.3M|        auto& structure = structure_stack_.back();
  234|  10.3M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (234:13): [True: 4.74M, False: 5.62M]
  ------------------
  235|  4.74M|        {
  236|  4.74M|            structure.is_key = !structure.is_key;
  237|  4.74M|        }
  238|  10.3M|        if (structure.is_key)
  ------------------
  |  Branch (238:13): [True: 2.40M, False: 7.97M]
  ------------------
  239|  2.40M|        {
  240|  2.40M|            event_ = staj_event_type(value, staj_events::byte_string_value, tag, staj_events::key_flag);
  241|  2.40M|        }
  242|  7.97M|        else
  243|  7.97M|        {
  244|  7.97M|            event_ = staj_event_type(value, staj_events::byte_string_value, tag);
  245|  7.97M|        }
  246|  10.3M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  10.3M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  247|  10.3M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
  253|   225k|    {
  254|   225k|        auto& structure = structure_stack_.back();
  255|   225k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (255:13): [True: 68.8k, False: 156k]
  ------------------
  256|  68.8k|        {
  257|  68.8k|            structure.is_key = !structure.is_key;
  258|  68.8k|        }
  259|   225k|        if (structure.is_key)
  ------------------
  |  Branch (259:13): [True: 40.6k, False: 185k]
  ------------------
  260|  40.6k|        {
  261|  40.6k|            event_ = staj_event_type(value, staj_events::byte_string_value, raw_tag, staj_events::key_flag);
  262|  40.6k|        }
  263|   185k|        else
  264|   185k|        {
  265|   185k|            event_ = staj_event_type(value, staj_events::byte_string_value, raw_tag);
  266|   185k|        }
  267|   225k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   225k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  268|   225k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  316|   163k|    {
  317|   163k|        auto& structure = structure_stack_.back();
  318|   163k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (318:13): [True: 77.1k, False: 86.5k]
  ------------------
  319|  77.1k|        {
  320|  77.1k|            structure.is_key = !structure.is_key;
  321|  77.1k|        }
  322|   163k|        if (structure.is_key)
  ------------------
  |  Branch (322:13): [True: 40.4k, False: 123k]
  ------------------
  323|  40.4k|        {
  324|  40.4k|            event_ = staj_event_type(half_arg, value, tag, staj_events::key_flag);
  325|  40.4k|        }
  326|   123k|        else
  327|   123k|        {
  328|   123k|            event_ = staj_event_type(half_arg, value, tag);
  329|   123k|        }
  330|   163k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   163k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  331|   163k|    }

_ZNK8jsoncons16basic_staj_eventIcE10event_typeEv:
  495|  12.5k|    staj_events event_type() const noexcept { return event_flags_; }
_ZN8jsoncons18is_begin_containerENS_11staj_eventsE:
   92|  6.29k|{
   93|  6.29k|    static constexpr staj_events mask{ staj_events::begin_object | staj_events::begin_array };
   94|  6.29k|    return (types & mask) != staj_events{};
   95|  6.29k|}
_ZN8jsonconsanENS_11staj_eventsES0_:
   67|  12.5k|{ return (staj_events)((uint64_t)lhs & (uint64_t)rhs); }
_ZNK8jsoncons16basic_staj_eventIcE10send_eventERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNSt3__110error_codeE:
  614|  6.29k|    {
  615|  6.29k|        switch (storage_tag())
  616|  6.29k|        {
  617|  1.94k|            case staj_events::begin_array:
  ------------------
  |  Branch (617:13): [True: 1.94k, False: 4.35k]
  ------------------
  618|  1.94k|                visitor.begin_array(tag(), context);
  619|  1.94k|                break;
  620|      0|            case staj_events::end_array:
  ------------------
  |  Branch (620:13): [True: 0, False: 6.29k]
  ------------------
  621|      0|                visitor.end_array(context);
  622|      0|                break;
  623|  4.29k|            case staj_events::begin_object:
  ------------------
  |  Branch (623:13): [True: 4.29k, False: 2.00k]
  ------------------
  624|  4.29k|                visitor.begin_object(tag(), context, ec);
  625|  4.29k|                break;
  626|      0|            case staj_events::end_object:
  ------------------
  |  Branch (626:13): [True: 0, False: 6.29k]
  ------------------
  627|      0|                visitor.end_object(context, ec);
  628|      0|                break;
  629|     44|            case staj_events::string_value:
  ------------------
  |  Branch (629:13): [True: 44, False: 6.25k]
  ------------------
  630|     44|                visitor.string_value(string_view_type(value_.string_data_,length_), tag(), context);
  631|     44|                break;
  632|      8|            case staj_events::byte_string_value:
  ------------------
  |  Branch (632:13): [True: 8, False: 6.28k]
  ------------------
  633|      8|                visitor.byte_string_value(byte_string_view(value_.byte_string_data_,length_), tag(), context);
  634|      8|                break;
  635|      0|            case staj_events::null_value:
  ------------------
  |  Branch (635:13): [True: 0, False: 6.29k]
  ------------------
  636|      0|                visitor.null_value(tag(), context);
  637|      0|                break;
  638|      0|            case staj_events::bool_value:
  ------------------
  |  Branch (638:13): [True: 0, False: 6.29k]
  ------------------
  639|      0|                visitor.bool_value(value_.bool_value_, tag(), context);
  640|      0|                break;
  641|      1|            case staj_events::int64_value:
  ------------------
  |  Branch (641:13): [True: 1, False: 6.29k]
  ------------------
  642|      1|                visitor.int64_value(value_.int64_value_, tag(), context);
  643|      1|                break;
  644|      5|            case staj_events::uint64_value:
  ------------------
  |  Branch (644:13): [True: 5, False: 6.29k]
  ------------------
  645|      5|                visitor.uint64_value(value_.uint64_value_, tag(), context);
  646|      5|                break;
  647|      1|            case staj_events::half_value:
  ------------------
  |  Branch (647:13): [True: 1, False: 6.29k]
  ------------------
  648|      1|                visitor.half_value(value_.half_value_, tag(), context);
  649|      1|                break;
  650|      0|            case staj_events::double_value:
  ------------------
  |  Branch (650:13): [True: 0, False: 6.29k]
  ------------------
  651|      0|                visitor.double_value(value_.double_value_, tag(), context);
  652|      0|                break;
  653|      0|            default:
  ------------------
  |  Branch (653:13): [True: 0, False: 6.29k]
  ------------------
  654|      0|                break;
  655|  6.29k|        }
  656|  6.29k|    }
_ZNK8jsoncons16basic_staj_eventIcE11storage_tagEv:
  213|  6.29k|    {
  214|  6.29k|        static constexpr staj_events mask = ~staj_events::key_flag;
  215|  6.29k|        return event_flags_ & mask;
  216|  6.29k|    }
_ZNK8jsoncons16basic_staj_eventIcE3tagEv:
  497|  6.29k|    semantic_tag tag() const noexcept { return tag_; }
_ZN8jsoncons16basic_staj_eventIcEC2ENS_11staj_eventsENS_12semantic_tagES2_:
  223|  21.8M|        : event_flags_(event_type | key_flag), tag_(tag), value_()
  224|  21.8M|    {
  225|  21.8M|    }
_ZN8jsonconsorENS_11staj_eventsES0_:
   62|   119M|{ return (staj_events)((uint64_t)lhs | (uint64_t)rhs); }
_ZN8jsoncons16basic_staj_eventIcEC2ENS_11staj_eventsEmNS_12semantic_tagES2_:
  230|  21.7M|        : event_flags_(event_type | key_flag), tag_(tag), value_(), length_(length)
  231|  21.7M|    {
  232|  21.7M|    }
_ZN8jsoncons16basic_staj_eventIcEC2EmNS_12semantic_tagENS_11staj_eventsE:
  250|  43.5M|        : event_flags_(staj_events::uint64_value | key_flag), tag_(tag)
  251|  43.5M|    {
  252|  43.5M|        value_.uint64_value_ = value;
  253|  43.5M|    }
_ZN8jsoncons16basic_staj_eventIcEC2ElNS_12semantic_tagENS_11staj_eventsE:
  243|  11.0M|        : event_flags_(staj_events::int64_value | key_flag), tag_(tag)
  244|  11.0M|    {
  245|  11.0M|        value_.int64_value_ = value;
  246|  11.0M|    }
_ZN8jsoncons16basic_staj_eventIcEC2EdNS_12semantic_tagENS_11staj_eventsE:
  264|  4.69M|        : event_flags_(staj_events::double_value | key_flag), tag_(tag)
  265|  4.69M|    {
  266|  4.69M|        value_.double_value_ = value;
  267|  4.69M|    }
_ZN8jsoncons16basic_staj_eventIcEC2EbNS_12semantic_tagENS_11staj_eventsE:
  236|  5.11M|        : event_flags_(staj_events::bool_value | key_flag), tag_(tag)
  237|  5.11M|    {
  238|  5.11M|        value_.bool_value_ = value;
  239|  5.11M|    }
_ZN8jsoncons16basic_staj_eventIcEC2ERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_11staj_eventsENS_12semantic_tagES9_:
  273|   779k|        : event_flags_(event_type | key_flag), tag_(tag), length_(s.length())
  274|   779k|    {
  275|   779k|        value_.string_data_ = s.data();
  276|   779k|    }
_ZN8jsoncons16basic_staj_eventIcEC2ERKNS_16byte_string_viewENS_11staj_eventsENS_12semantic_tagES5_:
  282|  10.3M|        : event_flags_(event_type | key_flag), tag_(tag), length_(s.size())
  283|  10.3M|    {
  284|  10.3M|        value_.byte_string_data_ = s.data();
  285|  10.3M|    }
_ZN8jsoncons16basic_staj_eventIcEC2ERKNS_16byte_string_viewENS_11staj_eventsEmS5_:
  291|   225k|        : event_flags_(event_type | key_flag), tag_(semantic_tag::ext), raw_tag_(raw_tag), length_(s.size())
  292|   225k|    {
  293|   225k|        value_.byte_string_data_ = s.data();
  294|   225k|    }
_ZN8jsoncons16basic_staj_eventIcEC2ENS_10half_arg_tEtNS_12semantic_tagENS_11staj_eventsE:
  257|   163k|        : event_flags_(staj_events::half_value | key_flag), tag_(tag)
  258|   163k|    {
  259|   163k|        value_.half_value_ = value;
  260|   163k|    }

_ZN8jsoncons16typed_array_castIKhEENS_6nonstd4spanIT_Lm18446744073709551615EEENS3_IhLm18446744073709551615EEE:
  141|  42.3k|{
  142|  42.3k|    return jsoncons::span<const uint8_t>{reinterpret_cast<const uint8_t*>(bytes.data()), bytes.size()};
  143|  42.3k|}
_ZN8jsoncons16typed_array_castIhEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   81|  42.2k|{
   82|  42.2k|    return bytes;
   83|  42.2k|}
_ZN8jsoncons16typed_array_castItEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   87|   201k|{
   88|   201k|    return jsoncons::span<uint16_t>{reinterpret_cast<uint16_t*>(bytes.data()), bytes.size()/sizeof(uint16_t)};
   89|   201k|}
_ZN8jsoncons16typed_array_castIjEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   93|  53.8k|{
   94|  53.8k|    return jsoncons::span<uint32_t>{reinterpret_cast<uint32_t*>(bytes.data()), bytes.size()/sizeof(uint32_t)};
   95|  53.8k|}
_ZN8jsoncons16typed_array_castImEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   99|   165k|{
  100|   165k|    return jsoncons::span<uint64_t>{reinterpret_cast<uint64_t*>(bytes.data()), bytes.size()/sizeof(uint64_t)};
  101|   165k|}
_ZN8jsoncons16typed_array_castIaEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  105|  33.1k|{
  106|  33.1k|    return jsoncons::span<int8_t>{reinterpret_cast<int8_t*>(bytes.data()), bytes.size()};
  107|  33.1k|}
_ZN8jsoncons16typed_array_castIsEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  111|  56.5k|{
  112|  56.5k|    return jsoncons::span<int16_t>{reinterpret_cast<int16_t*>(bytes.data()), bytes.size()/sizeof(int16_t)};
  113|  56.5k|}
_ZN8jsoncons16typed_array_castIiEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  117|   219k|{
  118|   219k|    return jsoncons::span<int32_t>{reinterpret_cast<int32_t*>(bytes.data()), bytes.size()/sizeof(int32_t)};
  119|   219k|}
_ZN8jsoncons16typed_array_castIlEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  123|  48.0k|{
  124|  48.0k|    return jsoncons::span<int64_t>{reinterpret_cast<int64_t*>(bytes.data()), bytes.size()/sizeof(int64_t)};
  125|  48.0k|}
_ZN8jsoncons16typed_array_castIfEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  129|   114k|{
  130|   114k|    return jsoncons::span<float>{reinterpret_cast<float*>(bytes.data()), bytes.size()/sizeof(float)};
  131|   114k|}
_ZN8jsoncons16typed_array_castIdEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  135|  66.1k|{
  136|  66.1k|    return jsoncons::span<double>{reinterpret_cast<double*>(bytes.data()), bytes.size()/sizeof(double)};
  137|  66.1k|}
_ZN8jsoncons22calculate_mdarray_sizeENS_6nonstd4spanIKmLm18446744073709551615EEE:
  247|   174k|{
  248|   174k|    using result_type = jsoncons::expected<std::size_t,std::errc>;
  249|       |
  250|   174k|    if (extents.empty())
  ------------------
  |  Branch (250:9): [True: 19, False: 174k]
  ------------------
  251|     19|    {
  252|     19|        return result_type(0);
  253|     19|    }
  254|   174k|    std::size_t n = extents[0];
  255|  39.1M|    for (std::size_t i = 1; i < extents.size(); ++i)
  ------------------
  |  Branch (255:29): [True: 39.0M, False: 174k]
  ------------------
  256|  39.0M|    {
  257|  39.0M|        if (extents[i] == 0 || JSONCONS_UNLIKELY(n > (std::numeric_limits<std::size_t>::max)()/extents[i]))
  ------------------
  |  |   79|  39.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 49, False: 39.0M]
  |  |  ------------------
  ------------------
  |  Branch (257:13): [True: 70, False: 39.0M]
  ------------------
  258|    119|        {
  259|    119|            return result_type(jsoncons::unexpect, std::errc::value_too_large);
  260|    119|        }
  261|  39.0M|        n *= extents[i];
  262|  39.0M|    }
  263|   174k|    return n;
  264|   174k|}

_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEC2EONS_12basic_bigintIS3_EEl:
   42|   569k|        : unscaled_{significand}, scale_{scale}
   43|   569k|    {
   44|   569k|    }
_ZN8jsoncons16append_to_bufferINSt3__19allocatorImEEcNS2_IcEEEEvRKNS_12basic_bigdecIT_EERNS1_12basic_stringIT0_NS1_11char_traitsISB_EET1_EE:
  408|   569k|{
  409|   569k|    if (value.scale() == 0)
  ------------------
  |  Branch (409:9): [True: 261k, False: 307k]
  ------------------
  410|   261k|    {
  411|   261k|        append_to_buffer(value.unscaled(), buf);
  412|   261k|        return;
  413|   261k|    }
  414|   307k|    if (value.unscaled().is_negative())
  ------------------
  |  Branch (414:9): [True: 190k, False: 116k]
  ------------------
  415|   190k|    {
  416|   190k|        buf.push_back('-');
  417|   190k|    }
  418|   307k|    std::basic_string<CharT> coeff;
  419|   307k|    append_to_buffer(value.unscaled().is_negative() ? -value.unscaled() : value.unscaled(), coeff);
  ------------------
  |  Branch (419:22): [True: 190k, False: 116k]
  ------------------
  420|   307k|    std::size_t coeffLen = coeff.size();
  421|   307k|    if ((value.scale() >= 0) && (value.scale() <= static_cast<int64_t>(coeffLen) + 5)) 
  ------------------
  |  Branch (421:9): [True: 284k, False: 22.5k]
  |  Branch (421:33): [True: 210k, False: 74.1k]
  ------------------
  422|   210k|    { 
  423|   210k|        int64_t pad = value.scale() - coeffLen;         // padding zeros
  424|   210k|        if (pad >= 0) {                                 // 0.xxx form
  ------------------
  |  Branch (424:13): [True: 139k, False: 70.5k]
  ------------------
  425|   139k|            buf.push_back('0');
  426|   139k|            buf.push_back('.');
  427|   574k|            for (; pad>0; pad--) {
  ------------------
  |  Branch (427:20): [True: 434k, False: 139k]
  ------------------
  428|   434k|                buf.push_back('0');
  429|   434k|            }
  430|   139k|            buf.append(coeff.data(), coeffLen);
  431|   139k|        } 
  432|  70.5k|        else 
  433|  70.5k|        {
  434|  70.5k|            buf.append(coeff.data(), -pad);
  435|  70.5k|            buf.push_back('.');
  436|  70.5k|            buf.append(coeff.data() -pad, value.scale());
  437|  70.5k|        }
  438|   210k|    }
  439|  96.7k|    else
  440|  96.7k|    {
  441|  96.7k|        buf.push_back(coeff[0]);   // first character
  442|  96.7k|        if (coeffLen > 1) 
  ------------------
  |  Branch (442:13): [True: 33.0k, False: 63.6k]
  ------------------
  443|  33.0k|        {
  444|  33.0k|            buf.push_back('.');
  445|  33.0k|            buf.append(coeff.data() + 1, coeffLen - 1);
  446|  33.0k|        }
  447|  96.7k|        int64_t digits = static_cast<int64_t>(coeffLen) - 1;
  448|  96.7k|        if (value.scale() != digits) 
  ------------------
  |  Branch (448:13): [True: 96.7k, False: 0]
  ------------------
  449|  96.7k|        {             
  450|  96.7k|            buf.push_back('e');
  451|  96.7k|            if (value.scale() < digits)
  ------------------
  |  Branch (451:17): [True: 22.5k, False: 74.1k]
  ------------------
  452|  22.5k|            {
  453|  22.5k|                from_integer(static_cast<uint64_t>(digits) - static_cast<uint64_t>(value.scale()), buf);
  454|  22.5k|            }
  455|  74.1k|            else
  456|  74.1k|            {
  457|  74.1k|                from_integer(digits - value.scale(), buf);
  458|  74.1k|            }
  459|  96.7k|        }
  460|  96.7k|    }
  461|   307k|}
_ZNK8jsoncons12basic_bigdecINSt3__19allocatorImEEE5scaleEv:
   78|  1.73M|    {
   79|  1.73M|        return scale_;
   80|  1.73M|    }
_ZNK8jsoncons12basic_bigdecINSt3__19allocatorImEEE8unscaledEv:
   73|  1.18M|    {
   74|  1.18M|        return unscaled_;
   75|  1.18M|    }
_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEC2Ev:
   35|   340k|    basic_bigdec() = default;
_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEaSEOS4_:
   70|   340k|    basic_bigdec& operator=(basic_bigdec&&) = default;

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE13from_bytes_beEiPKhm:
  824|   395k|    {
  825|   395k|        static const double radix_log2 = std::log2(next_power_of_two(256));
  826|       |        // Estimate how big the result will be, so we can pre-allocate it.
  827|   395k|        double bits = radix_log2 * n;
  828|   395k|        double big_digits = std::ceil(bits / 64.0);
  829|       |        //std::cout << "ESTIMATED: " << big_digits << "\n";
  830|       |
  831|   395k|        basic_bigint<Allocator> v = 0;
  832|   395k|        v.reserve(static_cast<size_type>(big_digits));
  833|       |
  834|  4.92M|        for (size_type i = 0; i < n; i++)
  ------------------
  |  Branch (834:31): [True: 4.52M, False: 395k]
  ------------------
  835|  4.52M|        {
  836|  4.52M|            v *= 256;
  837|  4.52M|            v += (word_type)(bytes[i]);
  838|  4.52M|        }
  839|       |        //std::cout << "ACTUAL: " << v.size() << "\n";
  840|       |
  841|   395k|        if (signum < 0)
  ------------------
  |  Branch (841:13): [True: 0, False: 395k]
  ------------------
  842|      0|        {
  843|      0|            v.set_negative(true);
  844|      0|        }
  845|       |
  846|   395k|        return v;
  847|   395k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE17next_power_of_twoEm:
 2062|      1|    static word_type next_power_of_two(word_type n) {
 2063|      1|        n = n - 1;
 2064|      1|        n |= n >> 1u;
 2065|      1|        n |= n >> 2u;
 2066|      1|        n |= n >> 4u;
 2067|      1|        n |= n >> 8u;
 2068|      1|        n |= n >> 16u;
 2069|      1|        n |= n >> 32u;
 2070|      1|        return n + 1;
 2071|      1|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  855|   395k|    {
  856|   395k|        storage_.reserve(n);
  857|   395k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  455|  9.67M|    {
  456|  9.67M|       if (capacity() < n)
  ------------------
  |  Branch (456:12): [True: 410k, False: 9.26M]
  ------------------
  457|   410k|       {
  458|   410k|           if (!is_allocated())
  ------------------
  |  Branch (458:16): [True: 410k, False: 0]
  ------------------
  459|   410k|           {
  460|   410k|               size_type size = inlined_.size_;
  461|   410k|               size_type is_neg = inlined_.is_negative_;
  462|   410k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  463|       |
  464|   410k|               ::new (&allocated_) allocated_storage();
  465|   410k|               allocated_.reserve(n, get_allocator());
  466|   410k|               allocated_.size_ = size;
  467|   410k|               allocated_.is_negative_ = is_neg;
  468|   410k|               if (n >= 1)
  ------------------
  |  Branch (468:20): [True: 410k, False: 0]
  ------------------
  469|   410k|               {
  470|   410k|                   allocated_.data_[0] = values[0];
  471|   410k|               }
  472|   410k|               if (n >= 2)
  ------------------
  |  Branch (472:20): [True: 410k, False: 0]
  ------------------
  473|   410k|               {
  474|   410k|                   allocated_.data_[1] = values[1];
  475|   410k|               }
  476|   410k|           }
  477|      0|           else
  478|      0|           {
  479|      0|               allocated_.reserve(n, get_allocator());
  480|      0|           }
  481|   410k|       }
  482|  9.67M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  508|  9.67M|    {
  509|  9.67M|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (509:16): [True: 4.80M, False: 4.86M]
  ------------------
  510|  9.67M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  503|  35.6M|    {
  504|  35.6M|        return common_.is_allocated_;
  505|  35.6M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  206|   410k|            : is_allocated_(true),
  207|   410k|            is_negative_(false)
  208|   410k|        {
  209|   410k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  258|   410k|        {
  259|   410k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   54|   410k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 410k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  260|   410k|            size_type capacity_new = round_up(n);
  261|       |
  262|   410k|            real_allocator_type alloc(a);
  263|   410k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  264|   410k|            if (size_ > 0)
  ------------------
  |  Branch (264:17): [True: 0, False: 410k]
  ------------------
  265|      0|            {
  266|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  267|      0|            }
  268|   410k|            if (data_ != nullptr)
  ------------------
  |  Branch (268:17): [True: 0, False: 410k]
  ------------------
  269|      0|            {
  270|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  271|      0|            }
  272|   410k|            capacity_ = capacity_new;
  273|   410k|            data_ = data_new;
  274|   410k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  278|   410k|        {
  279|   410k|            size_type remainder = i % mem_unit;
  280|   410k|            size_type off = mem_unit - remainder;
  281|   410k|            bool testoff = i < max_size - off;
  282|   410k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   54|   410k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 410k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  283|       |
  284|   410k|            return i + off;
  285|   410k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  485|  11.3M|    {
  486|  11.3M|        return static_cast<const word_allocator_type&>(*this);
  487|  11.3M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIiEENS1_9enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueERS4_E4typeES7_:
 1020|  4.52M|    {
 1021|  4.52M|        *this *= word_type(y < 0 ? -y : y);
  ------------------
  |  Branch (1021:28): [True: 0, False: 4.52M]
  ------------------
 1022|  4.52M|        if ( y < 0 )
  ------------------
  |  Branch (1022:14): [True: 0, False: 4.52M]
  ------------------
 1023|      0|            set_negative(!is_negative());
 1024|  4.52M|        return *this;
 1025|  4.52M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
 1030|  4.57M|    {
 1031|  4.57M|        auto words = get_words();
 1032|  4.57M|        size_type len = words.size();
 1033|  4.57M|        if (len == 0 || m == 0)
  ------------------
  |  Branch (1033:13): [True: 465k, False: 4.10M]
  |  Branch (1033:25): [True: 0, False: 4.10M]
  ------------------
 1034|   465k|        {
 1035|   465k|            resize(0);
 1036|   465k|            return *this;
 1037|   465k|        }
 1038|       |
 1039|  4.10M|        dword_type carry = 0;
 1040|  4.10M|        size_t i = 0;
 1041|   867M|        for (; i < len; ++i) {
  ------------------
  |  Branch (1041:16): [True: 863M, False: 4.10M]
  ------------------
 1042|   863M|            dword_type x = dword_type(words[i]) * m + carry;
 1043|   863M|            words[i] = static_cast<word_type>(x);
 1044|   863M|            carry = x >> 64;
 1045|   863M|        }
 1046|       |
 1047|  4.10M|        if (carry)
  ------------------
  |  Branch (1047:13): [True: 372k, False: 3.73M]
  ------------------
 1048|   372k|        {
 1049|   372k|            resize(len+1);
 1050|   372k|            words = get_words();
 1051|   372k|            words[i] = static_cast<word_type>(carry);
 1052|   372k|        }
 1053|       |
 1054|       |        /*
 1055|       |        word_type dig = words[0];
 1056|       |        word_type carry = 0;
 1057|       |
 1058|       |        resize(words.size() + 1);
 1059|       |        words = get_words();
 1060|       |
 1061|       |        size_type i = 0;
 1062|       |        for (; i < len; i++ )
 1063|       |        {
 1064|       |            word_type hi;
 1065|       |            word_type lo;
 1066|       |            DDproduct( dig, y, hi, lo );
 1067|       |            words[i] = lo + carry;
 1068|       |            dig = words[i+1];
 1069|       |            carry = hi + (words[i] < lo);
 1070|       |        }
 1071|       |        words[i] = carry;
 1072|       |        reduce(); 
 1073|       |        */ 
 1074|  4.10M|        return *this;
 1075|  4.57M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE9get_wordsEv:
  697|  25.5M|    {
  698|  25.5M|        return storage_.get_words();
  699|  25.5M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  523|  35.5M|    {
  524|  35.5M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (524:16): [True: 18.9M, False: 16.6M]
  ------------------
  525|  18.9M|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  526|  35.5M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  527|  35.5M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   67|  35.5M|            : data_(data), size_(size)
   68|  35.5M|        {
   69|  35.5M|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   87|  39.1M|        {
   88|  39.1M|            return size_;
   89|  39.1M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  850|  6.36M|    {
  851|  6.36M|        storage_.resize(new_length);
  852|  6.36M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  537|  9.28M|    {
  538|  9.28M|        size_type old_length = common_.size_;
  539|  9.28M|        reserve(new_length);
  540|  9.28M|        common_.size_ = new_length;
  541|       |
  542|  9.28M|        if (old_length < new_length)
  ------------------
  |  Branch (542:13): [True: 6.80M, False: 2.48M]
  ------------------
  543|  6.80M|        {
  544|  6.80M|            if (is_allocated())
  ------------------
  |  Branch (544:17): [True: 4.19M, False: 2.60M]
  ------------------
  545|  4.19M|            {
  546|  4.19M|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  547|  4.19M|            }
  548|  2.60M|            else
  549|  2.60M|            {
  550|  2.60M|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   54|  2.60M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 2.60M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  551|  6.44M|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (551:48): [True: 3.83M, False: 2.60M]
  ------------------
  552|  3.83M|                {
  553|  3.83M|                    inlined_.values_[i] = 0;
  554|  3.83M|                }
  555|  2.60M|            }
  556|  6.80M|        }
  557|  9.28M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   72|  2.18G|        {
   73|  2.18G|            return data_[i];
   74|  2.18G|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  707|  16.0M|    {
  708|  16.0M|        return storage_.is_negative();
  709|  16.0M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  513|  16.0M|    {
  514|  16.0M|        return common_.is_negative_;
  515|  16.0M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr6nonstd19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  921|  4.52M|    {
  922|  4.52M|        if ( is_negative())
  ------------------
  |  Branch (922:14): [True: 0, False: 4.52M]
  ------------------
  923|      0|            return *this -= -basic_bigint<Allocator>(y);
  924|       |
  925|  4.52M|        word_type d;
  926|  4.52M|        word_type carry = 0;
  927|       |
  928|  4.52M|        auto words = get_words();
  929|  4.52M|        resize(words.size() + 1);
  930|       |
  931|  4.52M|        words = get_words();
  932|  4.52M|        const size_type this_size = words.size();
  933|  4.52M|        size_type y_size = 1;
  934|       |
  935|  4.52M|        d = words[0] + carry;
  936|  4.52M|        carry = d < carry;
  937|  4.52M|        words[0] = d + y;
  938|  4.52M|        if (words[0] < d)
  ------------------
  |  Branch (938:13): [True: 0, False: 4.52M]
  ------------------
  939|      0|            carry = 1;
  940|       |
  941|  4.52M|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (941:36): [True: 4.06M, False: 465k]
  |  Branch (941:53): [True: 0, False: 4.06M]
  ------------------
  942|      0|        {
  943|      0|            d = words[i] + carry;
  944|      0|            carry = d < carry;
  945|      0|            words[i] = d;
  946|      0|        }
  947|  4.52M|        reduce();
  948|  4.52M|        return *this;
  949|  4.52M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|  1.18M|        : storage_(n, alloc)
  673|  1.18M|    {
  674|  1.18M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|  1.18M|        : word_allocator_type(alloc)
  364|  1.18M|    {
  365|  1.18M|        ::new (&inlined_) inlined_storage(n);
  366|  1.18M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  141|  1.18M|            : is_allocated_(false),
  142|  1.18M|            is_negative_(false),
  143|  1.18M|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (143:19): [True: 552k, False: 628k]
  ------------------
  144|  1.18M|        {
  145|  1.18M|            values_[0] = n;
  146|  1.18M|            values_[1] = 0;
  147|  1.18M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  867|   766k|    {
  868|   766k|        basic_bigint<Allocator> v(*this);
  869|   766k|        v.set_negative(!v.is_negative());
  870|   766k|        return v;
  871|   766k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  650|  4.03M|        : storage_(other.storage_)
  651|  4.03M|    {
  652|  4.03M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  302|  4.03M|        : word_allocator_type(other.get_allocator())
  303|  4.03M|    {
  304|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  305|       |# pragma GCC diagnostic push
  306|       |# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  307|       |#endif
  308|  4.03M|        if (!other.is_allocated())
  ------------------
  |  Branch (308:13): [True: 3.40M, False: 631k]
  ------------------
  309|  3.40M|        {
  310|  3.40M|            ::new (&inlined_) inlined_storage(other.inlined_);
  311|  3.40M|        }
  312|   631k|        else
  313|   631k|        {
  314|   631k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  315|   631k|        }
  316|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  317|       |# pragma GCC diagnostic pop
  318|       |#endif
  319|  4.03M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  181|  5.95M|            : is_allocated_(false),
  182|  5.95M|            is_negative_(stor.is_negative_),
  183|  5.95M|            size_(stor.size_)
  184|  5.95M|        {
  185|  5.95M|            values_[0] = stor.values_[0];
  186|  5.95M|            values_[1] = stor.values_[1];
  187|  5.95M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  212|  1.47M|            : is_allocated_(true),
  213|  1.47M|              is_negative_(stor.is_negative_),
  214|  1.47M|              size_(stor.size_),
  215|  1.47M|              capacity_(stor.capacity_)
  216|  1.47M|        {
  217|  1.47M|            real_allocator_type alloc(a);
  218|       |
  219|  1.47M|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  220|  1.47M|            JSONCONS_TRY
  ------------------
  |  |   37|  1.47M|    #define JSONCONS_TRY try
  ------------------
  221|  1.47M|            {
  222|  1.47M|                std::allocator_traits<real_allocator_type>::construct(alloc, nonstd::to_plain_pointer(data_));
  223|  1.47M|            }
  224|  1.47M|            JSONCONS_CATCH(...)
  225|  1.47M|            {
  226|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  227|      0|                data_ = nullptr;
  228|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  229|      0|            }
  230|  1.47M|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   54|  1.47M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 1.47M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  231|  1.47M|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  232|  1.47M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  986|   328k|    {
  987|   328k|        auto y_words = y.get_words();
  988|       |
  989|   328k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (989:14): [True: 328k, False: 0]
  ------------------
  990|   328k|            return *this += -y;
  991|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (991:15): [True: 0, False: 0]
  |  Branch (991:33): [True: 0, False: 0]
  |  Branch (991:48): [True: 0, False: 0]
  |  Branch (991:65): [True: 0, False: 0]
  ------------------
  992|      0|            return *this = -(y - *this);
  993|      0|        word_type borrow = 0;
  994|      0|        word_type d;
  995|      0|        auto words = get_words();
  996|      0|        const size_type this_size = words.size();
  997|      0|        const size_type y_size = y_words.size();
  998|       |
  999|      0|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (999:31): [True: 0, False: 0]
  ------------------
 1000|      0|        {
 1001|      0|            d = words[i] - borrow;
 1002|      0|            borrow = d > words[i];
 1003|      0|            words[i] = d - y_words[i];
 1004|      0|            if ( words[i] > d )
  ------------------
  |  Branch (1004:18): [True: 0, False: 0]
  ------------------
 1005|      0|                borrow = 1;
 1006|      0|        }
 1007|      0|        for (size_type i = y_size; i < this_size && borrow != 0; i++ )
  ------------------
  |  Branch (1007:36): [True: 0, False: 0]
  |  Branch (1007:53): [True: 0, False: 0]
  ------------------
 1008|      0|        {
 1009|      0|            d = words[i] - borrow;
 1010|      0|            borrow = d > words[i];
 1011|      0|            words[i] = d;
 1012|      0|        }
 1013|      0|        reduce();
 1014|      0|        return *this;
 1015|      0|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9get_wordsEv:
  702|  4.72M|    {
  703|  4.72M|        return storage_.get_words();
  704|  4.72M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  530|  7.64M|    {
  531|  7.64M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (531:16): [True: 1.94M, False: 5.69M]
  ------------------
  532|  1.94M|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  533|  7.64M|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  534|  7.64M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   67|  7.64M|            : data_(data), size_(size)
   68|  7.64M|        {
   69|  7.64M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  952|   328k|    {
  953|   328k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (953:14): [True: 0, False: 328k]
  ------------------
  954|      0|            return *this -= -y;
  955|       |
  956|   328k|        auto y_words = y.get_words();
  957|       |        
  958|   328k|        word_type d;
  959|   328k|        word_type carry = 0;
  960|       |
  961|   328k|        auto words = get_words();
  962|   328k|        resize( (std::max)(y_words.size(), words.size()) + 1 );
  963|   328k|        words = get_words();
  964|       |
  965|   328k|        const size_t this_size = words.size();
  966|   328k|        const size_t y_size = y_words.size();
  967|   863k|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (967:31): [True: 535k, False: 328k]
  ------------------
  968|   535k|        {
  969|   535k|            d = words[i] + carry;
  970|   535k|            carry = d < carry;
  971|   535k|            words[i] = d + y_words[i];
  972|   535k|            if (words[i] < d)
  ------------------
  |  Branch (972:17): [True: 620, False: 534k]
  ------------------
  973|    620|                carry = 1;
  974|   535k|        }
  975|   328k|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (975:36): [True: 328k, False: 235]
  |  Branch (975:53): [True: 235, False: 328k]
  ------------------
  976|    235|        {
  977|    235|            d = words[i] + carry;
  978|    235|            carry = d < carry;
  979|    235|            words[i] = d;
  980|    235|        }
  981|   328k|        reduce();
  982|   328k|        return *this;
  983|   328k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1702|  1.16M|    {
 1703|  1.16M|        auto words = get_words();
 1704|  1.16M|        auto y_words = y.get_words();
 1705|       |
 1706|  1.16M|        const size_type y_size = y_words.size();
 1707|  1.16M|        if ( words.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1707:14): [True: 0, False: 1.16M]
  |  Branch (1707:35): [True: 0, False: 0]
  ------------------
 1708|      0|            return 0;
 1709|  1.16M|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1709:14): [True: 124k, False: 1.04M]
  ------------------
 1710|   124k|            return y.is_negative() - is_negative();
 1711|  1.04M|        int code = 0;
 1712|  1.04M|        if ( words.size() < y_size)
  ------------------
  |  Branch (1712:14): [True: 0, False: 1.04M]
  ------------------
 1713|      0|            code = -1;
 1714|  1.04M|        else if ( words.size() > y_size)
  ------------------
  |  Branch (1714:19): [True: 523k, False: 517k]
  ------------------
 1715|   523k|            code = +1;
 1716|   517k|        else
 1717|   517k|        {
 1718|   517k|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1718:46): [True: 517k, False: 195]
  ------------------
 1719|   517k|            {
 1720|   517k|                if (words[i] > y_words[i])
  ------------------
  |  Branch (1720:21): [True: 35.1k, False: 482k]
  ------------------
 1721|  35.1k|                {
 1722|  35.1k|                    code = 1;
 1723|  35.1k|                    break;
 1724|  35.1k|                }
 1725|   482k|                else if (words[i] < y_words[i])
  ------------------
  |  Branch (1725:26): [True: 482k, False: 195]
  ------------------
 1726|   482k|                {
 1727|   482k|                    code = -1;
 1728|   482k|                    break;
 1729|   482k|                }
 1730|   517k|            }
 1731|   517k|        }
 1732|  1.04M|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1732:16): [True: 0, False: 1.04M]
  ------------------
 1733|  1.16M|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1537|  1.16M|    {
 1538|  1.16M|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1538:15): [True: 607k, False: 558k]
  ------------------
 1539|  1.16M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   87|  14.8M|        {
   88|  14.8M|            return size_;
   89|  14.8M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   72|  2.67M|        {
   73|  2.67M|            return data_[i];
   74|  2.67M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 2058|  7.14M|    {
 2059|  7.14M|        storage_.reduce();
 2060|  7.14M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  432|  7.14M|    {
  433|  7.14M|        if (common_.size_ > 0)
  ------------------
  |  Branch (433:13): [True: 7.14M, False: 0]
  ------------------
  434|  7.14M|        {
  435|  7.14M|            auto words = get_words();
  436|  7.14M|            word_type* p = words.end() - 1;
  437|  7.14M|            word_type* first = words.begin();
  438|   121M|            while ( p >= first )
  ------------------
  |  Branch (438:21): [True: 120M, False: 202k]
  ------------------
  439|   120M|            {
  440|   120M|                if ( *p )
  ------------------
  |  Branch (440:22): [True: 6.94M, False: 113M]
  ------------------
  441|  6.94M|                {
  442|  6.94M|                    break;
  443|  6.94M|                }
  444|   113M|                --common_.size_;
  445|   113M|                --p;
  446|   113M|            }
  447|  7.14M|        }
  448|  7.14M|        if (common_.size_ == 0)
  ------------------
  |  Branch (448:13): [True: 202k, False: 6.94M]
  ------------------
  449|   202k|        {
  450|   202k|            common_.is_negative_ = false;
  451|   202k|        }
  452|  7.14M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   96|  7.14M|        {
   97|  7.14M|            return data_ + size_;
   98|  7.14M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   91|  7.14M|        {
   92|  7.14M|            return data_;
   93|  7.14M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  728|  5.72M|    {
  729|  5.72M|        storage_.set_negative(value);
  730|  5.72M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  518|  5.72M|    {
  519|  5.72M|        common_.is_negative_ = value;
  520|  5.72M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16append_to_bufferIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1414|   142k|    {
 1415|   142k|        if (is_zero())
  ------------------
  |  Branch (1415:13): [True: 33.4k, False: 109k]
  ------------------
 1416|  33.4k|        {
 1417|  33.4k|            buf.push_back('0');
 1418|  33.4k|            return;
 1419|  33.4k|        }
 1420|   109k|        if (is_negative())
  ------------------
  |  Branch (1420:13): [True: 84.0k, False: 25.0k]
  ------------------
 1421|  84.0k|        {
 1422|  84.0k|            buf.push_back('-');
 1423|  84.0k|        }
 1424|   109k|        std::size_t pos = buf.size();
 1425|   109k|        basic_bigint<Allocator> v(*this);
 1426|   109k|        auto v_words = v.get_words();
 1427|       |
 1428|   109k|        size_type len = (v_words.size() * word_bits / 3) + 2;
 1429|   109k|        buf.reserve(len);
 1430|       |
 1431|   109k|        if ( v_words.size() == 0 )
  ------------------
  |  Branch (1431:14): [True: 0, False: 109k]
  ------------------
 1432|      0|        {
 1433|      0|            buf.push_back('0');
 1434|      0|        }
 1435|   109k|        else
 1436|   109k|        {
 1437|   109k|            word_type r;
 1438|   109k|            basic_bigint<Allocator> R(get_allocator());
 1439|   109k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1440|       |
 1441|   109k|            do
 1442|   281k|            {
 1443|   281k|                v.divide( LP10, v, R, true );
 1444|   281k|                v_words = v.get_words();
 1445|       |
 1446|   281k|                auto R_words = R.get_words();
 1447|   281k|                r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (1447:22): [True: 279k, False: 1.28k]
  ------------------
 1448|  3.99M|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1448:38): [True: 3.82M, False: 171k]
  ------------------
 1449|  3.82M|                {
 1450|  3.82M|                    buf.push_back(char(r % 10u + '0'));
 1451|  3.82M|                    r /= 10u;
 1452|  3.82M|                    if ( r + v_words.size() == 0 )
  ------------------
  |  Branch (1452:26): [True: 109k, False: 3.71M]
  ------------------
 1453|   109k|                        break;
 1454|  3.82M|                }
 1455|   281k|            } 
 1456|   281k|            while ( v_words.size() > 0);
  ------------------
  |  Branch (1456:21): [True: 171k, False: 109k]
  ------------------
 1457|       |
 1458|   109k|            std::reverse(buf.begin()+pos,buf.end());
 1459|   109k|        }
 1460|   109k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7is_zeroEv:
 2179|  1.05M|    bool is_zero() const {
 2180|  1.05M|        return get_words().size() == 0;
 2181|  1.05M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  692|  4.05M|    {
  693|  4.05M|        return storage_.get_allocator();
  694|  4.05M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  623|   482k|        : storage_(alloc)
  624|   482k|    {
  625|   482k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  296|  1.39M|        : word_allocator_type(alloc)
  297|  1.39M|    {
  298|  1.39M|        ::new (&inlined_) inlined_storage();
  299|  1.39M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  116|  1.39M|            : is_allocated_(false),
  117|  1.39M|            is_negative_(false),
  118|  1.39M|            size_(0),
  119|  1.39M|            values_{0, 0}
  120|  1.39M|        {
  121|  1.39M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1815|  1.03M|    {
 1816|  1.03M|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1817|  1.03M|        auto denom_words = denom.get_words();
 1818|       |
 1819|  1.03M|        if (denom_words.size() == 0)
  ------------------
  |  Branch (1819:13): [True: 0, False: 1.03M]
  ------------------
 1820|      0|        {
 1821|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1822|      0|        }
 1823|  1.03M|        bool quot_neg = is_negative() ^ denom.is_negative();
 1824|  1.03M|        bool rem_neg = is_negative();
 1825|  1.03M|        basic_bigint<Allocator> num(*this, get_allocator());
 1826|  1.03M|        num.set_negative(false);
 1827|  1.03M|        denom.set_negative(false);
 1828|  1.03M|        if ( num < denom )
  ------------------
  |  Branch (1828:14): [True: 482k, False: 548k]
  ------------------
 1829|   482k|        {
 1830|   482k|            quot = word_type(0);
 1831|   482k|            quot.set_negative(quot_neg);
 1832|   482k|            rem = num;
 1833|   482k|            rem.set_negative(rem_neg);
 1834|   482k|            return;
 1835|   482k|        }
 1836|       |
 1837|   548k|        auto num_words = num.get_words();
 1838|   548k|        auto quot_words = quot.get_words();
 1839|   548k|        auto words = get_words();
 1840|       |
 1841|   548k|        if ( denom_words.size() == 1 && num_words.size() == 1 )
  ------------------
  |  Branch (1841:14): [True: 548k, False: 0]
  |  Branch (1841:41): [True: 35.3k, False: 513k]
  ------------------
 1842|  35.3k|        {
 1843|  35.3k|            quot = word_type( num_words[0]/denom_words[0] );
 1844|  35.3k|            rem = word_type( num_words[0]%denom_words[0] );
 1845|  35.3k|            quot.set_negative(quot_neg);
 1846|  35.3k|            rem.set_negative(rem_neg);
 1847|  35.3k|            return;
 1848|  35.3k|        }
 1849|   513k|        if (denom_words.size() == 1 && (denom_words[0] & l_mask) == 0 )
  ------------------
  |  Branch (1849:13): [True: 513k, False: 0]
  |  Branch (1849:40): [True: 0, False: 513k]
  ------------------
 1850|      0|        {
 1851|       |            // Denominator fits into a half word
 1852|      0|            word_type divisor = denom_words[0], dHi = 0, q1, r, q2, dividend;
 1853|      0|            quot.resize(words.size());
 1854|      0|            quot_words = quot.get_words();
 1855|      0|            for (size_type i=words.size(); i-- > 0; )
  ------------------
  |  Branch (1855:44): [True: 0, False: 0]
  ------------------
 1856|      0|            {
 1857|      0|                dividend = (dHi << word_half_bits) | (words[i] >> word_half_bits);
 1858|      0|                q1 = dividend/divisor;
 1859|      0|                r = dividend % divisor;
 1860|      0|                dividend = (r << word_half_bits) | (words[i] & r_mask);
 1861|      0|                q2 = dividend/divisor;
 1862|      0|                dHi = dividend % divisor;
 1863|      0|                quot_words[i] = (q1 << word_half_bits) | q2;
 1864|      0|            }
 1865|      0|            quot.reduce();
 1866|      0|            rem = dHi;
 1867|      0|            quot.set_negative(quot_neg);
 1868|      0|            rem.set_negative(rem_neg);
 1869|      0|            return;
 1870|      0|        }
 1871|   513k|        basic_bigint<Allocator> num0(num, get_allocator());
 1872|   513k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1873|   513k|        int x = 0;
 1874|   513k|        bool second_done = normalize(denom, num, x);
 1875|   513k|        denom_words = denom.get_words();
 1876|   513k|        num_words = num.get_words();
 1877|       |
 1878|   513k|        size_type l = denom_words.size() - 1;
 1879|   513k|        size_type n = num_words.size() - 1;
 1880|   513k|        quot.resize(n - l);
 1881|   513k|        quot_words = quot.get_words();
 1882|   109M|        for (size_type i = quot_words.size(); i-- > 0; )
  ------------------
  |  Branch (1882:47): [True: 109M, False: 513k]
  ------------------
 1883|   109M|        {
 1884|   109M|            quot_words[i] = 0;
 1885|   109M|        }
 1886|   513k|        rem = num;
 1887|   513k|        auto rem_words = rem.get_words();
 1888|   513k|        if ( rem_words[n] >= denom_words[l] )
  ------------------
  |  Branch (1888:14): [True: 17.0k, False: 496k]
  ------------------
 1889|  17.0k|        {
 1890|  17.0k|            rem.resize(rem_words.size() + 1);
 1891|  17.0k|            rem_words = rem.get_words();
 1892|  17.0k|            n++;
 1893|  17.0k|            quot.resize(quot_words.size() + 1);
 1894|  17.0k|            quot_words = quot.get_words();
 1895|  17.0k|        }
 1896|   513k|        word_type d = denom_words[l];
 1897|       |
 1898|   109M|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1898:32): [True: 109M, False: 513k]
  ------------------
 1899|   109M|        {
 1900|   109M|            word_type q = DDquotient(rem_words[k], rem_words[k-1], d);
 1901|   109M|            subtractmul( rem_words.data() + (k - l - 1), denom_words.data(), l + 1, q );
 1902|   109M|            quot_words[k - l - 1] = q;
 1903|   109M|        }
 1904|   513k|        quot.reduce();
 1905|   513k|        quot.set_negative(quot_neg);
 1906|   513k|        if (remDesired)
  ------------------
  |  Branch (1906:13): [True: 513k, False: 0]
  ------------------
 1907|   513k|        {
 1908|   513k|            unnormalize(rem, x, second_done);
 1909|   513k|            rem.set_negative(rem_neg);
 1910|   513k|        }
 1911|   513k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  655|  3.08M|        : storage_(other.storage_, alloc)
  656|  3.08M|    {
  657|  3.08M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  322|  3.08M|        : word_allocator_type(alloc)
  323|  3.08M|    {
  324|  3.08M|        if (!other.is_allocated())
  ------------------
  |  Branch (324:13): [True: 2.24M, False: 847k]
  ------------------
  325|  2.24M|        {
  326|  2.24M|            ::new (&inlined_) inlined_storage(other.inlined_);
  327|  2.24M|        }
  328|   847k|        else
  329|   847k|        {
  330|   847k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  331|   847k|        }
  332|  3.08M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 2013|   513k|    {
 2014|   513k|        auto denom_words = denom.get_words();
 2015|   513k|        if (denom_words.size() == 0)
  ------------------
  |  Branch (2015:13): [True: 0, False: 513k]
  ------------------
 2016|      0|        {
 2017|      0|            return false;
 2018|      0|        }
 2019|   513k|        size_type r = denom_words.size() - 1;
 2020|   513k|        word_type y = denom_words[r];
 2021|       |
 2022|   513k|        x = 0;
 2023|   513k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (2023:17): [True: 0, False: 513k]
  ------------------
 2024|      0|        {
 2025|      0|            y <<= 1;
 2026|      0|            x++;
 2027|      0|        }
 2028|   513k|        denom <<= x;
 2029|   513k|        num <<= x;
 2030|       |
 2031|   513k|        denom_words = denom.get_words();
 2032|   513k|        if ( r > 0 && denom_words[r] < denom_words[r-1] )
  ------------------
  |  Branch (2032:14): [True: 0, False: 513k]
  |  Branch (2032:23): [True: 0, False: 0]
  ------------------
 2033|      0|        {
 2034|      0|            denom *= max_word;
 2035|      0|            num *= max_word;
 2036|      0|            return true;
 2037|      0|        }
 2038|   513k|        return false;
 2039|   513k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1172|  1.15M|    {
 1173|  1.15M|        auto words = get_words();
 1174|  1.15M|        size_type q = k / word_bits;
 1175|  1.15M|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1175:14): [True: 0, False: 1.15M]
  ------------------
 1176|      0|        {
 1177|      0|            resize(words.size() + q);
 1178|      0|            words = get_words();
 1179|      0|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1179:46): [True: 0, False: 0]
  ------------------
 1180|      0|                words[i] = ( i < q ? 0 : words[i - q]);
  ------------------
  |  Branch (1180:30): [True: 0, False: 0]
  ------------------
 1181|      0|            k %= word_bits;
 1182|      0|        }
 1183|  1.15M|        if ( k )  // 0 < k < word_bits:
  ------------------
  |  Branch (1183:14): [True: 126k, False: 1.02M]
  ------------------
 1184|   126k|        {
 1185|   126k|            size_type k1 = word_bits - k;
 1186|   126k|            word_type mask = (word_type(1) << k) - word_type(1);
 1187|   126k|            resize( words.size() + 1 );
 1188|   126k|            words = get_words();
 1189|   379k|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1189:46): [True: 253k, False: 126k]
  ------------------
 1190|   253k|            {
 1191|   253k|                words[i] <<= k;
 1192|   253k|                if ( i > 0 )
  ------------------
  |  Branch (1192:22): [True: 126k, False: 126k]
  ------------------
 1193|   126k|                    words[i] |= (words[i-1] >> k1) & mask;
 1194|   253k|            }
 1195|   126k|        }
 1196|  1.15M|        reduce();
 1197|  1.15M|        return *this;
 1198|  1.15M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1940|   109M|    {
 1941|   109M|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1942|   109M|                   dHi = d >> word_half_bits, dLo = d & r_mask;
 1943|   109M|        qHi = A/(dHi + 1);
 1944|       |        // This initial guess of qHi may be too small.
 1945|   109M|        middle = qHi * dLo;
 1946|   109M|        left = qHi * dHi;
 1947|   109M|        x = B - (middle << word_half_bits);
 1948|   109M|        A -= (middle >> word_half_bits) + left + (x > B);
 1949|   109M|        B = x;
 1950|   109M|        dLo1 = dLo << word_half_bits;
 1951|       |        // Increase qHi if necessary:
 1952|   155M|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1952:17): [True: 46.2M, False: 109M]
  |  Branch (1952:29): [True: 40, False: 109M]
  |  Branch (1952:41): [True: 10, False: 30]
  ------------------
 1953|  46.2M|        {
 1954|  46.2M|            x = B - dLo1;
 1955|  46.2M|            A -= dHi + (x > B);
 1956|  46.2M|            B = x;
 1957|  46.2M|            qHi++;
 1958|  46.2M|        }
 1959|   109M|        qLo = ((A << word_half_bits) | (B >> word_half_bits))/(dHi + 1);
 1960|       |        // This initial guess of qLo may be too small.
 1961|   109M|        right = qLo * dLo;
 1962|   109M|        middle = qLo * dHi;
 1963|   109M|        x = B - right;
 1964|   109M|        A -= (x > B);
 1965|   109M|        B = x;
 1966|   109M|        x = B - (middle << word_half_bits);
 1967|   109M|            A -= (middle >> word_half_bits) + (x > B);
 1968|   109M|        B = x;
 1969|       |        // Increase qLo if necessary:
 1970|   155M|        while ( A || B >= d )
  ------------------
  |  Branch (1970:17): [True: 2.47k, False: 155M]
  |  Branch (1970:22): [True: 46.4M, False: 109M]
  ------------------
 1971|  46.4M|        {
 1972|  46.4M|            x = B - d;
 1973|  46.4M|            A -= (x > B);
 1974|  46.4M|            B = x;
 1975|  46.4M|            qLo++;
 1976|  46.4M|        }
 1977|   109M|        return (qHi << word_half_bits) + qLo;
 1978|   109M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1982|   109M|    {
 1983|   109M|        word_type hi, lo, d, carry = 0;
 1984|   109M|        size_type i;
 1985|   218M|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1985:22): [True: 109M, False: 109M]
  ------------------
 1986|   109M|        {
 1987|   109M|            DDproduct( b[i], q, hi, lo );
 1988|   109M|            d = a[i];
 1989|   109M|            a[i] -= lo;
 1990|   109M|            if ( a[i] > d )
  ------------------
  |  Branch (1990:18): [True: 29.6M, False: 79.6M]
  ------------------
 1991|  29.6M|                carry++;
 1992|   109M|            d = a[i + 1];
 1993|   109M|            a[i + 1] -= hi + carry;
 1994|   109M|            carry = a[i + 1] > d;
 1995|   109M|        }
 1996|   109M|        if ( carry ) // q was too large
  ------------------
  |  Branch (1996:14): [True: 0, False: 109M]
  ------------------
 1997|      0|        {
 1998|      0|            q--;
 1999|      0|            carry = 0;
 2000|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (2000:26): [True: 0, False: 0]
  ------------------
 2001|      0|            {
 2002|      0|                d = a[i] + carry;
 2003|      0|                carry = d < carry;
 2004|      0|                a[i] = d + b[i];
 2005|      0|                if ( a[i] < d )
  ------------------
  |  Branch (2005:22): [True: 0, False: 0]
  ------------------
 2006|      0|                    carry = 1;
 2007|      0|            }
 2008|      0|            a[n] = 0;
 2009|      0|        }
 2010|   109M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1922|   109M|    {
 1923|   109M|        word_type hiA = A >> word_half_bits, loA = A & r_mask,
 1924|   109M|                   hiB = B >> word_half_bits, loB = B & r_mask;
 1925|       |
 1926|   109M|        lo = loA * loB;
 1927|   109M|        hi = hiA * hiB;
 1928|   109M|        word_type mid1 = loA * hiB;
 1929|   109M|        word_type mid2 = hiA * loB;
 1930|   109M|        word_type old = lo;
 1931|   109M|        lo += mid1 << word_half_bits;
 1932|   109M|            hi += (lo < old) + (mid1 >> word_half_bits);
 1933|   109M|        old = lo;
 1934|   109M|        lo += mid2 << word_half_bits;
 1935|   109M|            hi += (lo < old) + (mid2 >> word_half_bits);
 1936|   109M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   82|   220M|        {
   83|   220M|            return data_;
   84|   220M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 2042|   513k|    {
 2043|   513k|        if (secondDone)
  ------------------
  |  Branch (2043:13): [True: 0, False: 513k]
  ------------------
 2044|      0|        {
 2045|      0|            rem /= max_word;
 2046|      0|        }
 2047|   513k|        if ( x > 0 )
  ------------------
  |  Branch (2047:14): [True: 0, False: 513k]
  ------------------
 2048|      0|        {
 2049|      0|            rem >>= x;
 2050|      0|        }
 2051|   513k|        else
 2052|   513k|        {
 2053|   513k|            rem.reduce();
 2054|   513k|        }
 2055|   513k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  620|   909k|    basic_bigint() = default;
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErSEm:
 1201|  70.0k|    {
 1202|  70.0k|        auto words = get_words();
 1203|  70.0k|        size_type q = k / word_bits;
 1204|  70.0k|        if ( q >= words.size())
  ------------------
  |  Branch (1204:14): [True: 0, False: 70.0k]
  ------------------
 1205|      0|        {
 1206|      0|            resize( 0 );
 1207|      0|            return *this;
 1208|      0|        }
 1209|  70.0k|        if (q > 0)
  ------------------
  |  Branch (1209:13): [True: 2, False: 69.9k]
  ------------------
 1210|      2|        {
 1211|      2|            memmove( words.data(), words.data()+q, size_type((words.size() - q)*sizeof(word_type)) );
 1212|      2|            resize( size_type(words.size() - q) );
 1213|      2|            k %= word_bits;
 1214|      2|            if ( k == 0 )
  ------------------
  |  Branch (1214:18): [True: 0, False: 2]
  ------------------
 1215|      0|            {
 1216|      0|                reduce();
 1217|      0|                return *this;
 1218|      0|            }
 1219|      2|        }
 1220|       |
 1221|  70.0k|        words = get_words();
 1222|  70.0k|        size_type n = size_type(words.size() - 1);
 1223|  70.0k|        ssize_type k1 = word_bits - k;
 1224|  70.0k|        word_type mask = (word_type(1) << k) - 1;
 1225|   199k|        for (size_type i = 0; i <= n; i++)
  ------------------
  |  Branch (1225:31): [True: 129k, False: 70.0k]
  ------------------
 1226|   129k|        {
 1227|   129k|            words[i] >>= k;
 1228|   129k|            if ( i < n )
  ------------------
  |  Branch (1228:18): [True: 59.0k, False: 70.0k]
  ------------------
 1229|  59.0k|                words[i] |= ((words[i+1] & mask) << k1);
 1230|   129k|        }
 1231|  70.0k|        reduce();
 1232|  70.0k|        return *this;
 1233|  70.0k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  687|  11.3M|    {
  688|  11.3M|        storage_.destroy();
  689|  11.3M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  490|  11.3M|    {
  491|  11.3M|        if (is_allocated())
  ------------------
  |  Branch (491:13): [True: 1.88M, False: 9.43M]
  ------------------
  492|  1.88M|        {
  493|  1.88M|            allocated_.destroy(get_allocator());
  494|  1.88M|            allocated_.~allocated_storage();
  495|  1.88M|        }
  496|  9.43M|        else
  497|  9.43M|        {
  498|  9.43M|            inlined_.~inlined_storage();
  499|  9.43M|        }
  500|  11.3M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  249|  1.88M|        {
  250|  1.88M|            if (data_ != nullptr)
  ------------------
  |  Branch (250:17): [True: 1.88M, False: 0]
  ------------------
  251|  1.88M|            {
  252|  1.88M|                real_allocator_type alloc(a);
  253|  1.88M|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  254|  1.88M|            }
  255|  1.88M|        }
_ZN8jsonconsmiENS_12basic_bigintINSt3__19allocatorImEEEERKS4_:
 1587|   328k|    {
 1588|   328k|        return x -= y;
 1589|   328k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|  1.20M|        : storage_(n, alloc)
  673|  1.20M|    {
  674|  1.20M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|  1.20M|        : word_allocator_type(alloc)
  364|  1.20M|    {
  365|  1.20M|        ::new (&inlined_) inlined_storage(n);
  366|  1.20M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  128|  1.20M|            : is_allocated_(false),
  129|  1.20M|            is_negative_(n < 0),
  130|  1.20M|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (130:19): [True: 612k, False: 589k]
  ------------------
  131|  1.20M|        {
  132|  1.20M|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (132:26): [True: 328k, False: 873k]
  ------------------
  133|  1.20M|            values_[1] = 0;
  134|  1.20M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  874|  2.91M|    {
  875|  2.91M|        storage_ = y.storage_;
  876|  2.91M|        return *this;
  877|  2.91M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  369|  2.91M|    {
  370|  2.91M|        if (this != &other)
  ------------------
  |  Branch (370:13): [True: 2.91M, False: 0]
  ------------------
  371|  2.91M|        {
  372|  2.91M|            auto other_words = other.get_words();
  373|  2.91M|            resize(other_words.size());
  374|  2.91M|            auto words = get_words();
  375|  2.91M|            if (other_words.size() > 0)
  ------------------
  |  Branch (375:17): [True: 2.19M, False: 714k]
  ------------------
  376|  2.19M|            {
  377|  2.19M|                common_.is_negative_ = other.common_.is_negative_;
  378|  2.19M|                std::memcpy(words.data(), other_words.data(), size_type(other_words.size()*sizeof(word_type)));
  379|  2.19M|            }
  380|  2.91M|        }
  381|  2.91M|        return *this;
  382|  2.91M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   82|  2.19M|        {
   83|  2.19M|            return data_;
   84|  2.19M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|  87.2k|        : storage_(n, alloc)
  673|  87.2k|    {
  674|  87.2k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|  87.2k|        : word_allocator_type(alloc)
  364|  87.2k|    {
  365|  87.2k|        ::new (&inlined_) inlined_storage(n);
  366|  87.2k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  128|  87.2k|            : is_allocated_(false),
  129|  87.2k|            is_negative_(n < 0),
  130|  87.2k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (130:19): [True: 0, False: 87.2k]
  ------------------
  131|  87.2k|        {
  132|  87.2k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (132:26): [True: 87.2k, False: 0]
  ------------------
  133|  87.2k|            values_[1] = 0;
  134|  87.2k|        }
_ZN8jsoncons16append_to_bufferIcNSt3__19allocatorIcEEEEvRKNS_12basic_bigintINS2_ImEEEERNS1_12basic_stringIT_NS1_11char_traitsISA_EET0_EE:
 2137|   569k|    {
 2138|   569k|        if (value.is_zero())
  ------------------
  |  Branch (2138:13): [True: 195k, False: 373k]
  ------------------
 2139|   195k|        {
 2140|   195k|            buf.push_back('0');
 2141|   195k|            return;
 2142|   195k|        }
 2143|   373k|        if (value.is_negative())
  ------------------
  |  Branch (2143:13): [True: 137k, False: 235k]
  ------------------
 2144|   137k|        {
 2145|   137k|            buf.push_back('-');
 2146|   137k|        }
 2147|       |
 2148|   373k|        size_type start = buf.size();
 2149|   373k|        basic_bigint v(value);
 2150|   373k|        auto v_words = v.get_words();
 2151|       |
 2152|   373k|        size_type len = (v_words.size() * word_bits / 3) + 2;
 2153|   373k|        buf.reserve(start+len);
 2154|       |
 2155|   373k|        word_type r;
 2156|   373k|        basic_bigint R(value.get_allocator());
 2157|   373k|        basic_bigint LP10(max_unsigned_power_10, value.get_allocator());
 2158|       |
 2159|   373k|        do
 2160|   749k|        {
 2161|   749k|            v.divide(LP10, v, R, true);
 2162|   749k|            v_words = v.get_words();
 2163|       |
 2164|   749k|            auto R_words = R.get_words();
 2165|   749k|            r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (2165:18): [True: 749k, False: 190]
  ------------------
 2166|  9.73M|            for (size_type j = 0; j < imax_unsigned_power_10; j++)
  ------------------
  |  Branch (2166:35): [True: 9.35M, False: 376k]
  ------------------
 2167|  9.35M|            {
 2168|  9.35M|                buf.push_back(CharT(r % 10u + '0'));
 2169|  9.35M|                r /= 10u;
 2170|  9.35M|                if (r + v_words.size() == 0)
  ------------------
  |  Branch (2170:21): [True: 373k, False: 8.98M]
  ------------------
 2171|   373k|                    break;
 2172|  9.35M|            }
 2173|   749k|        } while (v_words.size() > 0);
  ------------------
  |  Branch (2173:18): [True: 376k, False: 373k]
  ------------------
 2174|       |
 2175|   373k|        std::reverse(buf.begin()+start, buf.end());
 2176|       |        
 2177|   373k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE18trailing_zero_bitsEv:
 1736|   134k|    {
 1737|       |        // Assumes words contains the absolute magnitude,
 1738|       |        // even when BigInt is negative.
 1739|       |
 1740|   134k|        auto words = get_words();
 1741|   134k|        for (size_t i = 0; i < words.size(); ++i) {
  ------------------
  |  Branch (1741:28): [True: 134k, False: 0]
  ------------------
 1742|   134k|            const uint64_t w = words[i];
 1743|       |
 1744|   134k|            if (w != 0) {
  ------------------
  |  Branch (1744:17): [True: 134k, False: 220]
  ------------------
 1745|   134k|                return static_cast<u128>(i) * 64
 1746|   134k|                     + jsoncons::countr_zero(w);
 1747|   134k|            }
 1748|   134k|        }
 1749|       |
 1750|       |        // Zero has no finite number of trailing zero bits.
 1751|      0|        return (jsoncons::nonstd::integer_limits<u128>::max)();
 1752|   134k|    }
_ZN8jsoncons4powbINSt3__19allocatorImEEEENS_12basic_bigintIT_EES6_m:
 2261|   130k|{
 2262|   130k|    basic_bigint<Allocator> result{1};
 2263|       |
 2264|   712k|    while ( n )
  ------------------
  |  Branch (2264:13): [True: 582k, False: 130k]
  ------------------
 2265|   582k|    {
 2266|   582k|        if ( n & 1 )
  ------------------
  |  Branch (2266:14): [True: 256k, False: 326k]
  ------------------
 2267|   256k|        {
 2268|   256k|            result *= base;
 2269|   256k|        }
 2270|   582k|        n >>= 1;
 2271|       |
 2272|   582k|        if (n)
  ------------------
  |  Branch (2272:13): [True: 451k, False: 130k]
  ------------------
 2273|   451k|        {
 2274|   451k|            base *= base;
 2275|   451k|        }
 2276|   582k|    }
 2277|       |
 2278|   130k|    return result;
 2279|   130k|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLES4_:
 1078|   838k|    {
 1079|   838k|        auto words = get_words();
 1080|   838k|        auto y_words = y.get_words();
 1081|       |
 1082|   838k|        if (words.size() == 0 || y_words.size() == 0)
  ------------------
  |  Branch (1082:13): [True: 0, False: 838k]
  |  Branch (1082:34): [True: 0, False: 838k]
  ------------------
 1083|      0|        {
 1084|      0|            return *this = 0;
 1085|      0|        }
 1086|       |
 1087|   838k|        bool difSigns = is_negative() != y.is_negative();
 1088|   838k|        const size_type y_size = y_words.size();
 1089|   838k|        if ( words.size() + y_size == 2 ) // size() = y.size() = 1
  ------------------
  |  Branch (1089:14): [True: 795k, False: 42.8k]
  ------------------
 1090|   795k|        {
 1091|   795k|            word_type a = words[0], b = y_words[0];
 1092|   795k|            words[0] = a * b;
 1093|   795k|            if ( words[0] / a != b )
  ------------------
  |  Branch (1093:18): [True: 715, False: 794k]
  ------------------
 1094|    715|            {
 1095|    715|                resize(2);
 1096|    715|                words = get_words();
 1097|    715|                DDproduct( a, b, words[1], words[0] );
 1098|    715|            }
 1099|   795k|            set_negative(difSigns);
 1100|   795k|            return *this;
 1101|   795k|        }
 1102|       |
 1103|  42.8k|        if ( words.size() == 1 )  //  && y.size() > 1
  ------------------
  |  Branch (1103:14): [True: 76, False: 42.7k]
  ------------------
 1104|     76|        {
 1105|     76|            word_type digit = words[0];
 1106|     76|            *this = y;
 1107|     76|            *this *= digit;
 1108|     76|        }
 1109|  42.7k|        else
 1110|  42.7k|        {
 1111|  42.7k|            if (y_words.size() == 1)
  ------------------
  |  Branch (1111:17): [True: 42.7k, False: 0]
  ------------------
 1112|  42.7k|            {
 1113|  42.7k|                *this *= y_words[0];
 1114|  42.7k|            }
 1115|      0|            else
 1116|      0|            {
 1117|      0|                size_type lenProd = words.size() + y_words.size();
 1118|      0|                word_type sumHi = 0, sumLo, hi, lo,
 1119|      0|                sumLo_old, sumHi_old, carry=0;
 1120|      0|                basic_bigint<Allocator> x = *this;
 1121|      0|                auto x_words = x.get_words();
 1122|      0|                resize( lenProd ); // Give *this length lenProd
 1123|      0|                words = get_words();
 1124|       |
 1125|      0|                for (size_type i = 0; i < lenProd; i++ )
  ------------------
  |  Branch (1125:39): [True: 0, False: 0]
  ------------------
 1126|      0|                {
 1127|      0|                    sumLo = sumHi;
 1128|      0|                    sumHi = carry;
 1129|      0|                    carry = 0;
 1130|      0|                    for (size_type jA=0; jA < x_words.size(); jA++)
  ------------------
  |  Branch (1130:42): [True: 0, False: 0]
  ------------------
 1131|      0|                    {
 1132|      0|                        if (JSONCONS_LIKELY(i >= jA))
  ------------------
  |  |   78|      0|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1133|      0|                        {
 1134|      0|                            size_type jB = i - jA;
 1135|      0|                            if (jB < y_words.size())
  ------------------
  |  Branch (1135:33): [True: 0, False: 0]
  ------------------
 1136|      0|                            {
 1137|      0|                                DDproduct( x_words[jA], y_words[jB], hi, lo );
 1138|      0|                                sumLo_old = sumLo;
 1139|      0|                                sumHi_old = sumHi;
 1140|      0|                                sumLo += lo;
 1141|      0|                                if ( sumLo < sumLo_old )
  ------------------
  |  Branch (1141:38): [True: 0, False: 0]
  ------------------
 1142|      0|                                    sumHi++;
 1143|      0|                                sumHi += hi;
 1144|      0|                                carry += (sumHi < sumHi_old);
 1145|      0|                            }
 1146|      0|                        }
 1147|      0|                    }
 1148|      0|                    words[i] = sumLo;
 1149|      0|                }
 1150|      0|            }
 1151|  42.7k|        }
 1152|  42.8k|       reduce();
 1153|  42.8k|       set_negative(difSigns);
 1154|  42.8k|       return *this;
 1155|   838k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10bit_lengthEv:
 2230|  3.01k|    {
 2231|       |        // Assumes words stores the absolute magnitude,
 2232|       |        // even when BigInt is negative.
 2233|       |
 2234|  3.01k|        auto words = get_words();
 2235|       |
 2236|  3.01k|        for (size_t i = words.size(); i-- > 0;) {
  ------------------
  |  Branch (2236:39): [True: 3.01k, False: 0]
  ------------------
 2237|  3.01k|            const uint64_t w = words[i];
 2238|       |
 2239|  3.01k|            if (w != 0) {
  ------------------
  |  Branch (2239:17): [True: 3.01k, False: 0]
  ------------------
 2240|  3.01k|                return static_cast<uint64_t>(i) * 64
 2241|  3.01k|                     + 64 - jsoncons::countl_zero(w);
 2242|  3.01k|            }
 2243|  3.01k|        }
 2244|       |
 2245|      0|        return 0;
 2246|  3.01k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE8test_bitEm:
 2184|     76|    {
 2185|     76|        auto words = get_words();
 2186|       |
 2187|     76|        const uint64_t wordIndex = bitIndex / 64;
 2188|     76|        const unsigned bit = static_cast<unsigned>(bitIndex % 64);
 2189|       |
 2190|     76|        if (wordIndex >= words.size())
  ------------------
  |  Branch (2190:13): [True: 2, False: 74]
  ------------------
 2191|      2|            return false;
 2192|       |
 2193|     74|        return ((words[static_cast<size_t>(wordIndex)] >> bit) & 1ULL) != 0;
 2194|     76|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12any_low_bitsEm:
 2197|     38|    {
 2198|     38|        auto words = get_words();
 2199|       |
 2200|       |        // Check whether any of bits [0, count) are set.
 2201|     38|        if (words.size() == 0)
  ------------------
  |  Branch (2201:13): [True: 0, False: 38]
  ------------------
 2202|      0|            return false;
 2203|       |
 2204|     38|        const uint64_t wholeWords = count / 64;
 2205|     38|        const unsigned remainingBits = static_cast<unsigned>(count % 64);
 2206|       |
 2207|       |        // Check complete 64-bit limbs.
 2208|     38|        const size_t limit =
 2209|     38|            wholeWords >= words.size()
  ------------------
  |  Branch (2209:13): [True: 0, False: 38]
  ------------------
 2210|     38|                ? words.size()
 2211|     38|                : static_cast<size_t>(wholeWords);
 2212|       |
 2213|     38|        for (size_t i = 0; i < limit; ++i) {
  ------------------
  |  Branch (2213:28): [True: 2, False: 36]
  ------------------
 2214|      2|            if (words[i] != 0)
  ------------------
  |  Branch (2214:17): [True: 2, False: 0]
  ------------------
 2215|      2|                return true;
 2216|      2|        }
 2217|       |
 2218|       |        // Check remaining low bits of the next limb.
 2219|     36|        if (remainingBits != 0 && wholeWords < words.size()) {
  ------------------
  |  Branch (2219:13): [True: 36, False: 0]
  |  Branch (2219:35): [True: 36, False: 0]
  ------------------
 2220|     36|            const uint64_t mask = (1ULL << remainingBits) - 1;
 2221|       |
 2222|     36|            if ((words[static_cast<size_t>(wholeWords)] & mask) != 0)
  ------------------
  |  Branch (2222:17): [True: 36, False: 0]
  ------------------
 2223|     36|                return true;
 2224|     36|        }
 2225|       |
 2226|      0|        return false;
 2227|     36|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2EOS4_:
  660|   340k|        : storage_(std::move(other.storage_))
  661|   340k|    {
  662|   340k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2EOS5_:
  335|   340k|        : word_allocator_type(other.get_allocator())
  336|   340k|    {
  337|   340k|        if (!other.is_allocated())
  ------------------
  |  Branch (337:13): [True: 312k, False: 27.6k]
  ------------------
  338|   312k|        {
  339|   312k|            ::new (&inlined_) inlined_storage(other.inlined_);
  340|   312k|        }
  341|  27.6k|        else
  342|  27.6k|        {
  343|  27.6k|            ::new (&allocated_) allocated_storage(std::move(other.allocated_));
  344|  27.6k|        }
  345|   340k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2EOS6_:
  235|  27.6k|            : is_allocated_(stor.is_allocated_),
  236|  27.6k|            is_negative_(stor.is_negative_),
  237|  27.6k|            size_(stor.size_),
  238|  27.6k|            capacity_(stor.capacity_),
  239|  27.6k|            data_(stor.data_)
  240|  27.6k|        {
  241|  27.6k|            stor.is_allocated_ = false;
  242|  27.6k|            stor.is_negative_ = false;
  243|  27.6k|            stor.size_ = 0;
  244|  27.6k|            stor.capacity_ = 0;
  245|  27.6k|            stor.data_ = nullptr;
  246|  27.6k|        }

_ZN8jsoncons6binary13big_to_nativeItNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  1.19M|    {
  183|  1.19M|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 1.19M]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  1.19M|        T val;
  188|  1.19M|        std::memcpy(&val,first,sizeof(T));
  189|  1.19M|        return byte_swap(val);
  190|  1.19M|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  3.70M|    {
   29|  3.70M|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  3.70M|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  467|  3.70M|#      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|  3.70M|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  46.2k|    {
  183|  46.2k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 46.2k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  46.2k|        T val;
  188|  46.2k|        std::memcpy(&val,first,sizeof(T));
  189|  46.2k|        return byte_swap(val);
  190|  46.2k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  7.11M|    {
   40|  7.11M|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  7.11M|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  463|  7.11M|#  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|  7.11M|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  86.8k|    {
  183|  86.8k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 86.8k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  86.8k|        T val;
  188|  86.8k|        std::memcpy(&val,first,sizeof(T));
  189|  86.8k|        return byte_swap(val);
  190|  86.8k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   591k|    {
   52|   591k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   591k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  462|   591k|#  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|   591k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  65.6k|    {
   29|  65.6k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  65.6k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  467|  65.6k|#      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|  65.6k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   136k|    {
   40|   136k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   136k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  463|   136k|#  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|   136k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  32.2k|    {
   52|  32.2k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  32.2k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  462|  32.2k|#  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|  32.2k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|  7.02M|    {
   65|  7.02M|        uint32_t x;
   66|  7.02M|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|  7.02M|        uint32_t y = byte_swap(x);
   68|  7.02M|        T val2;
   69|  7.02M|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|  7.02M|        return val2;
   71|  7.02M|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|   465k|    {
   77|   465k|        uint64_t x;
   78|   465k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|   465k|        uint64_t y = byte_swap(x);
   80|   465k|        T val2;
   81|   465k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|   465k|        return val2;
   83|   465k|    }
_ZN8jsoncons6binary13big_to_nativeIfNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   702k|    {
  183|   702k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 702k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   702k|        T val;
  188|   702k|        std::memcpy(&val,first,sizeof(T));
  189|   702k|        return byte_swap(val);
  190|   702k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   114k|    {
  183|   114k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 114k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   114k|        T val;
  188|   114k|        std::memcpy(&val,first,sizeof(T));
  189|   114k|        return byte_swap(val);
  190|   114k|    }

_ZN8jsoncons15bytes_to_base64IPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  188|  7.67k|    {
  189|  7.67k|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  190|  7.67k|                                                   "abcdefghijklmnopqrstuvwxyz"
  191|  7.67k|                                                   "0123456789+/"
  192|  7.67k|                                                   "=";
  193|  7.67k|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  194|  7.67k|    }
_ZN8jsoncons6detail23bytes_to_base64_genericIPKhNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS4_9enable_ifIXsr3std7is_sameINS4_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESD_SD_PKcRT0_:
   44|  8.50M|    {
   45|  8.50M|        std::size_t count = 0;
   46|  8.50M|        unsigned char a3[3];
   47|  8.50M|        unsigned char a4[4];
   48|  8.50M|        unsigned char fill = alphabet[64];
   49|  8.50M|        int i = 0;
   50|  8.50M|        int j = 0;
   51|       |
   52|  94.5M|        while (first != last)
  ------------------
  |  Branch (52:16): [True: 86.0M, False: 8.50M]
  ------------------
   53|  86.0M|        {
   54|  86.0M|            a3[i++] = *first++;
   55|  86.0M|            if (i == 3)
  ------------------
  |  Branch (55:17): [True: 23.7M, False: 62.2M]
  ------------------
   56|  23.7M|            {
   57|  23.7M|                a4[0] = (a3[0] & 0xfc) >> 2;
   58|  23.7M|                a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   59|  23.7M|                a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   60|  23.7M|                a4[3] = a3[2] & 0x3f;
   61|       |
   62|   118M|                for (i = 0; i < 4; i++) 
  ------------------
  |  Branch (62:29): [True: 94.9M, False: 23.7M]
  ------------------
   63|  94.9M|                {
   64|  94.9M|                    result.push_back(alphabet[a4[i]]);
   65|  94.9M|                    ++count;
   66|  94.9M|                }
   67|  23.7M|                i = 0;
   68|  23.7M|            }
   69|  86.0M|        }
   70|       |
   71|  8.50M|        if (i > 0)
  ------------------
  |  Branch (71:13): [True: 7.58M, False: 925k]
  ------------------
   72|  7.58M|        {
   73|  15.5M|            for (j = i; j < 3; ++j) 
  ------------------
  |  Branch (73:25): [True: 7.96M, False: 7.58M]
  ------------------
   74|  7.96M|            {
   75|  7.96M|                a3[j] = 0;
   76|  7.96M|            }
   77|       |
   78|  7.58M|            a4[0] = (a3[0] & 0xfc) >> 2;
   79|  7.58M|            a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   80|  7.58M|            a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   81|       |
   82|  29.9M|            for (j = 0; j < i + 1; ++j) 
  ------------------
  |  Branch (82:25): [True: 22.3M, False: 7.58M]
  ------------------
   83|  22.3M|            {
   84|  22.3M|                result.push_back(alphabet[a4[j]]);
   85|  22.3M|                ++count;
   86|  22.3M|            }
   87|       |
   88|  7.58M|            if (fill != 0)
  ------------------
  |  Branch (88:17): [True: 7.61k, False: 7.57M]
  ------------------
   89|  7.61k|            {
   90|  22.5k|                while (i++ < 3) 
  ------------------
  |  Branch (90:24): [True: 14.8k, False: 7.61k]
  ------------------
   91|  14.8k|                {
   92|  14.8k|                    result.push_back(fill);
   93|  14.8k|                    ++count;
   94|  14.8k|                }
   95|  7.61k|            }
   96|  7.58M|        }
   97|       |
   98|  8.50M|        return count;
   99|  8.50M|    }
_ZNK8jsoncons16byte_string_view5beginEv:
  409|  27.1M|        {
  410|  27.1M|            return data_;
  411|  27.1M|        }
_ZNK8jsoncons16byte_string_view3endEv:
  413|  27.1M|        {
  414|  27.1M|            return data_ + size_;
  415|  27.1M|        }
_ZN8jsoncons15bytes_to_base16IPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  162|  7.73k|    {
  163|  7.73k|        static constexpr char characters[] = "0123456789ABCDEF";
  164|       |
  165|  22.6k|        for (auto it = first; it != last; ++it)
  ------------------
  |  Branch (165:31): [True: 14.9k, False: 7.73k]
  ------------------
  166|  14.9k|        {
  167|  14.9k|            uint8_t c = *it;
  168|  14.9k|            result.push_back(characters[c >> 4]);
  169|  14.9k|            result.push_back(characters[c & 0xf]);
  170|  14.9k|        }
  171|  7.73k|        return (last-first)*2;
  172|  7.73k|    }
_ZN8jsoncons18bytes_to_base64urlIPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  177|  8.50M|    {
  178|  8.50M|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  179|  8.50M|                                                      "abcdefghijklmnopqrstuvwxyz"
  180|  8.50M|                                                      "0123456789-_"
  181|  8.50M|                                                      "\0";
  182|  8.50M|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  183|  8.50M|    }
_ZNK8jsoncons16byte_string_view4dataEv:
  399|  39.0M|        {
  400|  39.0M|            return data_;
  401|  39.0M|        }
_ZNK8jsoncons16byte_string_view4sizeEv:
  403|  58.4M|        {
  404|  58.4M|            return size_;
  405|  58.4M|        }
_ZN8jsoncons16byte_string_viewC2EPKhm:
  362|  49.7M|            : data_(data), size_(length)
  363|  49.7M|        {
  364|  49.7M|        }
_ZN8jsoncons16byte_string_viewC2INSt3__16vectorIhNS2_9allocatorIhEEEEEERKT_NS2_9enable_ifIXsr6nonstd18is_bytes_view_likeIS7_EE5valueEiE4typeE:
  369|   213k|            : data_(reinterpret_cast<const uint8_t*>(cont.data())), size_(cont.size())
  370|   213k|        {
  371|   213k|        }
_ZN8jsoncons16byte_string_viewC2Ev:
  358|  2.62k|        {
  359|  2.62k|        }

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

_ZNK8jsoncons8identityclIRKhEEOT_S5_:
   19|   250k|    {
   20|   250k|        return std::forward<T>(val);
   21|   250k|    }
_ZNK8jsoncons8identityclIRKtEEOT_S5_:
   19|   263k|    {
   20|   263k|        return std::forward<T>(val);
   21|   263k|    }
_ZNK8jsoncons8identityclIRKjEEOT_S5_:
   19|  49.1k|    {
   20|  49.1k|        return std::forward<T>(val);
   21|  49.1k|    }
_ZNK8jsoncons8identityclIRKmEEOT_S5_:
   19|  96.8k|    {
   20|  96.8k|        return std::forward<T>(val);
   21|  96.8k|    }
_ZNK8jsoncons8identityclIRKaEEOT_S5_:
   19|   728k|    {
   20|   728k|        return std::forward<T>(val);
   21|   728k|    }
_ZNK8jsoncons8identityclIRKsEEOT_S5_:
   19|   112k|    {
   20|   112k|        return std::forward<T>(val);
   21|   112k|    }
_ZNK8jsoncons8identityclIRKiEEOT_S5_:
   19|   154k|    {
   20|   154k|        return std::forward<T>(val);
   21|   154k|    }
_ZNK8jsoncons8identityclIRKlEEOT_S5_:
   19|  35.0k|    {
   20|  35.0k|        return std::forward<T>(val);
   21|  35.0k|    }
_ZNK8jsoncons11decode_halfclEt:
   36|  3.22M|    {
   37|  3.22M|        return binary::decode_half(val);
   38|  3.22M|    }
_ZNK8jsoncons8identityclIRKfEEOT_S5_:
   19|  6.36M|    {
   20|  6.36M|        return std::forward<T>(val);
   21|  6.36M|    }
_ZNK8jsoncons8identityclIRKdEEOT_S5_:
   19|  1.17M|    {
   20|  1.17M|        return std::forward<T>(val);
   21|  1.17M|    }

_ZN8jsoncons4heap19heap_string_factoryIcNS_9null_typeENSt3__19allocatorIcEEE6createEPKcmS2_RKS5_:
  126|  37.2k|    {
  127|  37.2k|        std::size_t len = aligned_size(length*sizeof(char_type));
  128|       |
  129|  37.2k|        std::size_t align = alignof(storage_type);
  130|  37.2k|        char* q = nullptr;
  131|  37.2k|        char* storage = nullptr;
  132|  37.2k|        byte_allocator_type byte_alloc(alloc);
  133|  37.2k|        uint8_t align_pad = 0;
  134|       |
  135|  37.2k|        if (align <= 8) {
  ------------------
  |  Branch (135:13): [True: 37.2k, False: 0]
  ------------------
  136|  37.2k|            byte_pointer ptr = byte_alloc.allocate(len);
  137|  37.2k|            q = nonstd::to_plain_pointer(ptr);
  138|       |
  139|  37.2k|            if (reinterpret_cast<uintptr_t>(q) % align == 0) {
  ------------------
  |  Branch (139:17): [True: 37.2k, False: 0]
  ------------------
  140|  37.2k|                storage = q;
  141|  37.2k|            } else {
  142|      0|                byte_alloc.deallocate(ptr, len);
  143|      0|            }
  144|  37.2k|        }
  145|       |
  146|  37.2k|        if (storage == nullptr) {
  ------------------
  |  Branch (146:13): [True: 0, False: 37.2k]
  ------------------
  147|      0|            align_pad = uint8_t(align-1);
  148|      0|            byte_pointer ptr = byte_alloc.allocate(align_pad+len);
  149|      0|            q = nonstd::to_plain_pointer(ptr);
  150|      0|            storage = align_up(q, align);
  151|      0|            JSONCONS_ASSERT(storage >= q);
  ------------------
  |  |   54|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  152|      0|        }
  153|       |
  154|  37.2k|        heap_string_type* ps = new(storage)heap_string_type(extra, byte_alloc);
  155|       |
  156|  37.2k|        auto psa = launder_cast<storage_t*>(storage);
  157|       |
  158|  37.2k|        CharT* p = new(&psa->c)char_type[length + 1];
  159|  37.2k|        std::memcpy(p, s, length*sizeof(char_type));
  160|  37.2k|        p[length] = 0;
  161|  37.2k|        ps->p_ = std::pointer_traits<typename heap_string_type::pointer>::pointer_to(*p);
  162|  37.2k|        ps->length_ = length;
  163|  37.2k|        ps->offset_ = (uint8_t)(storage - q);
  164|  37.2k|        ps->align_pad_ = align_pad;
  165|  37.2k|        return std::pointer_traits<pointer>::pointer_to(*ps);
  166|  37.2k|    }
_ZN8jsoncons4heap19heap_string_factoryIcNS_9null_typeENSt3__19allocatorIcEEE12aligned_sizeEm:
  119|  74.4k|    {
  120|  74.4k|        return sizeof(storage_type) + n;
  121|  74.4k|    }
_ZN8jsoncons4heap11heap_stringIcNS_9null_typeENSt3__19allocatorIcEEEC2ES2_RKS5_:
   69|  37.2k|        : heap_string_base<Extra,Allocator>(extra, alloc)
   70|  37.2k|    {
   71|  37.2k|    }
_ZN8jsoncons4heap16heap_string_baseINS_9null_typeENSt3__19allocatorIcEEEC2ERKS2_RKS5_:
   45|  37.2k|        : extra_(extra), alloc_(alloc)
   46|  37.2k|    {
   47|  37.2k|    }
_ZN8jsoncons4heap19heap_string_factoryIhmNSt3__19allocatorIcEEE6createEPKhmmRKS4_:
  126|  1.14M|    {
  127|  1.14M|        std::size_t len = aligned_size(length*sizeof(char_type));
  128|       |
  129|  1.14M|        std::size_t align = alignof(storage_type);
  130|  1.14M|        char* q = nullptr;
  131|  1.14M|        char* storage = nullptr;
  132|  1.14M|        byte_allocator_type byte_alloc(alloc);
  133|  1.14M|        uint8_t align_pad = 0;
  134|       |
  135|  1.14M|        if (align <= 8) {
  ------------------
  |  Branch (135:13): [True: 1.14M, False: 0]
  ------------------
  136|  1.14M|            byte_pointer ptr = byte_alloc.allocate(len);
  137|  1.14M|            q = nonstd::to_plain_pointer(ptr);
  138|       |
  139|  1.14M|            if (reinterpret_cast<uintptr_t>(q) % align == 0) {
  ------------------
  |  Branch (139:17): [True: 1.14M, False: 0]
  ------------------
  140|  1.14M|                storage = q;
  141|  1.14M|            } else {
  142|      0|                byte_alloc.deallocate(ptr, len);
  143|      0|            }
  144|  1.14M|        }
  145|       |
  146|  1.14M|        if (storage == nullptr) {
  ------------------
  |  Branch (146:13): [True: 0, False: 1.14M]
  ------------------
  147|      0|            align_pad = uint8_t(align-1);
  148|      0|            byte_pointer ptr = byte_alloc.allocate(align_pad+len);
  149|      0|            q = nonstd::to_plain_pointer(ptr);
  150|      0|            storage = align_up(q, align);
  151|      0|            JSONCONS_ASSERT(storage >= q);
  ------------------
  |  |   54|      0|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 0]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  152|      0|        }
  153|       |
  154|  1.14M|        heap_string_type* ps = new(storage)heap_string_type(extra, byte_alloc);
  155|       |
  156|  1.14M|        auto psa = launder_cast<storage_t*>(storage);
  157|       |
  158|  1.14M|        CharT* p = new(&psa->c)char_type[length + 1];
  159|  1.14M|        std::memcpy(p, s, length*sizeof(char_type));
  160|  1.14M|        p[length] = 0;
  161|  1.14M|        ps->p_ = std::pointer_traits<typename heap_string_type::pointer>::pointer_to(*p);
  162|  1.14M|        ps->length_ = length;
  163|  1.14M|        ps->offset_ = (uint8_t)(storage - q);
  164|  1.14M|        ps->align_pad_ = align_pad;
  165|  1.14M|        return std::pointer_traits<pointer>::pointer_to(*ps);
  166|  1.14M|    }
_ZN8jsoncons4heap19heap_string_factoryIhmNSt3__19allocatorIcEEE12aligned_sizeEm:
  119|  2.29M|    {
  120|  2.29M|        return sizeof(storage_type) + n;
  121|  2.29M|    }
_ZN8jsoncons4heap11heap_stringIhmNSt3__19allocatorIcEEEC2EmRKS4_:
   69|  1.14M|        : heap_string_base<Extra,Allocator>(extra, alloc)
   70|  1.14M|    {
   71|  1.14M|    }
_ZN8jsoncons4heap16heap_string_baseImNSt3__19allocatorIcEEEC2ERKmRKS4_:
   45|  1.14M|        : extra_(extra), alloc_(alloc)
   46|  1.14M|    {
   47|  1.14M|    }
_ZN8jsoncons4heap19heap_string_factoryIcNS_9null_typeENSt3__19allocatorIcEEE7destroyEPNS0_11heap_stringIcS2_S5_EE:
  169|  37.2k|    {
  170|  37.2k|        if (ptr != nullptr)
  ------------------
  |  Branch (170:13): [True: 37.2k, False: 0]
  ------------------
  171|  37.2k|        {
  172|  37.2k|            heap_string_type* rawp = nonstd::to_plain_pointer(ptr);
  173|       |
  174|  37.2k|            char* q = launder_cast<char*>(rawp);
  175|       |
  176|  37.2k|            char* p = q - ptr->offset_;
  177|       |
  178|  37.2k|            std::size_t mem_size = ptr->align_pad_ + aligned_size(ptr->length_*sizeof(char_type));
  179|  37.2k|            byte_allocator_type byte_alloc(ptr->get_allocator());
  180|  37.2k|            byte_alloc.deallocate(p,mem_size);
  181|  37.2k|        }
  182|  37.2k|    }
_ZN8jsoncons4heap16heap_string_baseINS_9null_typeENSt3__19allocatorIcEEE13get_allocatorEv:
   35|  37.2k|    {
   36|  37.2k|        return alloc_;
   37|  37.2k|    }
_ZN8jsoncons4heap19heap_string_factoryIhmNSt3__19allocatorIcEEE7destroyEPNS0_11heap_stringIhmS4_EE:
  169|  1.14M|    {
  170|  1.14M|        if (ptr != nullptr)
  ------------------
  |  Branch (170:13): [True: 1.14M, False: 0]
  ------------------
  171|  1.14M|        {
  172|  1.14M|            heap_string_type* rawp = nonstd::to_plain_pointer(ptr);
  173|       |
  174|  1.14M|            char* q = launder_cast<char*>(rawp);
  175|       |
  176|  1.14M|            char* p = q - ptr->offset_;
  177|       |
  178|  1.14M|            std::size_t mem_size = ptr->align_pad_ + aligned_size(ptr->length_*sizeof(char_type));
  179|  1.14M|            byte_allocator_type byte_alloc(ptr->get_allocator());
  180|  1.14M|            byte_alloc.deallocate(p,mem_size);
  181|  1.14M|        }
  182|  1.14M|    }
_ZN8jsoncons4heap16heap_string_baseImNSt3__19allocatorIcEEE13get_allocatorEv:
   35|  1.14M|    {
   36|  1.14M|        return alloc_;
   37|  1.14M|    }

_ZN8jsoncons16decstr_to_doubleEPKcmRd:
  889|  84.2k|{
  890|  84.2k|    const char* cur = s+length;
  891|  84.2k|    char *end = nullptr;
  892|  84.2k|    val = strtod(s, &end);
  893|  84.2k|    const char* str_end = end;
  894|  84.2k|    if (JSONCONS_UNLIKELY(end < cur))
  ------------------
  |  |   79|  84.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 84.2k]
  |  |  ------------------
  ------------------
  895|      0|    {
  896|      0|        if (*end == '.')
  ------------------
  |  Branch (896:13): [True: 0, False: 0]
  ------------------
  897|      0|        {
  898|      0|            std::string buf{s, length};
  899|      0|            char* dot_ptr = &buf[0] + (cur - end - 1);
  900|      0|            *dot_ptr = ',';
  901|      0|            end = nullptr;
  902|      0|            val = strtod(buf.c_str(), &end);
  903|      0|            str_end = s + (end - &buf[0]);
  904|      0|        }
  905|      0|        if (JSONCONS_UNLIKELY(str_end != cur))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  906|      0|        {
  907|      0|            return to_number_result<char>{str_end,std::errc::invalid_argument};
  908|      0|        }
  909|      0|    }
  910|  84.2k|    if (JSONCONS_UNLIKELY(val <= -HUGE_VAL || val >= HUGE_VAL))
  ------------------
  |  |   79|   168k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 84.2k]
  |  |  |  Branch (79:50): [True: 0, False: 84.2k]
  |  |  |  Branch (79:50): [True: 0, False: 84.2k]
  |  |  ------------------
  ------------------
  911|      0|    {
  912|      0|        return to_number_result<char>{str_end, std::errc::result_out_of_range};
  913|      0|    }
  914|  84.2k|    return to_number_result<char>{str_end};
  915|  84.2k|}
_ZN8jsoncons16to_number_resultIcEC2EPKc:
  160|  84.2k|        : ptr(ptr_), ec(std::errc{})
  161|  84.2k|    {
  162|  84.2k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr6nonstd10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  33.7M|{
   43|  33.7M|    using char_type = typename Result::value_type;
   44|       |
   45|  33.7M|    char_type buf[255];
   46|  33.7M|    char_type *p = buf;
   47|  33.7M|    const char_type* last = buf+255;
   48|       |
   49|  33.7M|    bool is_negative = value < 0;
   50|       |
   51|  33.7M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 33.7M]
  ------------------
   52|      0|    {
   53|      0|        do
   54|      0|        {
   55|      0|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|      0|        }
   57|      0|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 0, False: 0]
  |  Branch (57:33): [True: 0, False: 0]
  ------------------
   58|      0|    }
   59|  33.7M|    else
   60|  33.7M|    {
   61|       |
   62|  33.7M|        do
   63|  35.9M|        {
   64|  35.9M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  35.9M|        }
   66|  35.9M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 2.19M, False: 33.7M]
  |  Branch (66:33): [True: 2.19M, False: 0]
  ------------------
   67|  33.7M|    }
   68|  33.7M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   54|  33.7M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 33.7M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  33.7M|    std::size_t count = (p - buf);
   71|  33.7M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 33.7M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  69.6M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 35.9M, False: 33.7M]
  ------------------
   77|  35.9M|    {
   78|  35.9M|        result.push_back(*p);
   79|  35.9M|    }
   80|       |
   81|  33.7M|    return count;
   82|  33.7M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr6nonstd10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  8.28M|{
   43|  8.28M|    using char_type = typename Result::value_type;
   44|       |
   45|  8.28M|    char_type buf[255];
   46|  8.28M|    char_type *p = buf;
   47|  8.28M|    const char_type* last = buf+255;
   48|       |
   49|  8.28M|    bool is_negative = value < 0;
   50|       |
   51|  8.28M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 7.89M, False: 396k]
  ------------------
   52|  7.89M|    {
   53|  7.89M|        do
   54|  16.3M|        {
   55|  16.3M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  16.3M|        }
   57|  16.3M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 8.42M, False: 7.89M]
  |  Branch (57:33): [True: 8.42M, False: 0]
  ------------------
   58|  7.89M|    }
   59|   396k|    else
   60|   396k|    {
   61|       |
   62|   396k|        do
   63|  1.10M|        {
   64|  1.10M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  1.10M|        }
   66|  1.10M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 708k, False: 396k]
  |  Branch (66:33): [True: 708k, False: 0]
  ------------------
   67|   396k|    }
   68|  8.28M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   54|  8.28M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 8.28M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  8.28M|    std::size_t count = (p - buf);
   71|  8.28M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 7.89M, False: 396k]
  ------------------
   72|  7.89M|    {
   73|  7.89M|        result.push_back('-');
   74|  7.89M|        ++count;
   75|  7.89M|    }
   76|  25.7M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 17.4M, False: 8.28M]
  ------------------
   77|  17.4M|    {
   78|  17.4M|        result.push_back(*p);
   79|  17.4M|    }
   80|       |
   81|  8.28M|    return count;
   82|  8.28M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  6.78M|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  6.78M|    {
  489|  6.78M|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  6.78M|        struct lconv *lc = localeconv();
  491|  6.78M|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 6.78M, False: 0]
  |  Branch (491:30): [True: 6.78M, False: 0]
  ------------------
  492|  6.78M|        {
  493|  6.78M|            decimal_point_ = lc->decimal_point[0];
  494|  6.78M|        }
  495|  6.78M|#endif
  496|  6.78M|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  6.78M|    {
  504|  6.78M|        std::size_t count = 0;
  505|       |
  506|  6.78M|        char number_buffer[200];
  507|  6.78M|        int length = 0;
  508|       |
  509|  6.78M|        switch (float_format_)
  510|  6.78M|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 6.78M]
  ------------------
  512|      0|            {
  513|      0|                if (precision_ > 0)
  ------------------
  |  Branch (513:21): [True: 0, False: 0]
  ------------------
  514|      0|                {
  515|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*f", precision_, val);
  516|      0|                    if (length < 0)
  ------------------
  |  Branch (516:25): [True: 0, False: 0]
  ------------------
  517|      0|                    {
  518|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  519|      0|                    }
  520|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  521|      0|                }
  522|      0|                else
  523|      0|                {
  524|      0|                    if (!dtoa_fixed(val, decimal_point_, result))
  ------------------
  |  Branch (524:25): [True: 0, False: 0]
  ------------------
  525|      0|                    {
  526|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  527|      0|                    }
  528|      0|                }
  529|      0|            }
  530|      0|            break;
  531|      0|        case float_chars_format::scientific:
  ------------------
  |  Branch (531:9): [True: 0, False: 6.78M]
  ------------------
  532|      0|            {
  533|      0|                if (precision_ > 0)
  ------------------
  |  Branch (533:21): [True: 0, False: 0]
  ------------------
  534|      0|                {
  535|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*e", precision_, val);
  536|      0|                    if (length < 0)
  ------------------
  |  Branch (536:25): [True: 0, False: 0]
  ------------------
  537|      0|                    {
  538|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  539|      0|                    }
  540|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  541|      0|                }
  542|      0|                else
  543|      0|                {
  544|      0|                    if (!dtoa_scientific(val, decimal_point_, result))
  ------------------
  |  Branch (544:25): [True: 0, False: 0]
  ------------------
  545|      0|                    {
  546|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  547|      0|                    }
  548|      0|                }
  549|      0|            }
  550|      0|            break;
  551|  6.78M|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 6.78M, False: 0]
  ------------------
  552|  6.78M|            {
  553|  6.78M|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 6.78M]
  ------------------
  554|      0|                {
  555|      0|                    length = snprintf(number_buffer, sizeof(number_buffer), "%1.*g", precision_, val);
  556|      0|                    if (length < 0)
  ------------------
  |  Branch (556:25): [True: 0, False: 0]
  ------------------
  557|      0|                    {
  558|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  559|      0|                    }
  560|      0|                    dump_buffer(number_buffer, length, decimal_point_, result);
  561|      0|                }
  562|  6.78M|                else
  563|  6.78M|                {
  564|  6.78M|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 6.78M]
  ------------------
  565|      0|                    {
  566|      0|                        JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  567|      0|                    }
  568|  6.78M|                }             
  569|  6.78M|                break;
  570|  6.78M|            }
  571|  6.78M|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 6.78M]
  ------------------
  572|      0|                JSONCONS_THROW(json_runtime_error<std::invalid_argument>("write_double failed."));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  573|      0|                break;
  574|  6.78M|        }
  575|  6.78M|        return count;
  576|  6.78M|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  84.2k|{
  244|  84.2k|    const char *sbeg = buffer;
  245|  84.2k|    const char *send = sbeg + length;
  246|       |
  247|  84.2k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 84.2k, False: 0]
  ------------------
  248|  84.2k|    {
  249|  84.2k|        bool needs_dot = true;
  250|  1.76M|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 1.67M, False: 84.2k]
  ------------------
  251|  1.67M|        {
  252|  1.67M|            switch (*q)
  253|  1.67M|            {
  254|  79.0k|            case '-':
  ------------------
  |  Branch (254:13): [True: 79.0k, False: 1.59M]
  ------------------
  255|   466k|            case '0':
  ------------------
  |  Branch (255:13): [True: 387k, False: 1.29M]
  ------------------
  256|   597k|            case '1':
  ------------------
  |  Branch (256:13): [True: 131k, False: 1.54M]
  ------------------
  257|   848k|            case '2':
  ------------------
  |  Branch (257:13): [True: 250k, False: 1.42M]
  ------------------
  258|   913k|            case '3':
  ------------------
  |  Branch (258:13): [True: 65.3k, False: 1.61M]
  ------------------
  259|   968k|            case '4':
  ------------------
  |  Branch (259:13): [True: 54.8k, False: 1.62M]
  ------------------
  260|  1.07M|            case '5':
  ------------------
  |  Branch (260:13): [True: 111k, False: 1.56M]
  ------------------
  261|  1.19M|            case '6':
  ------------------
  |  Branch (261:13): [True: 116k, False: 1.56M]
  ------------------
  262|  1.30M|            case '7':
  ------------------
  |  Branch (262:13): [True: 107k, False: 1.57M]
  ------------------
  263|  1.42M|            case '8':
  ------------------
  |  Branch (263:13): [True: 122k, False: 1.55M]
  ------------------
  264|  1.57M|            case '9':
  ------------------
  |  Branch (264:13): [True: 144k, False: 1.53M]
  ------------------
  265|  1.57M|            case '+':
  ------------------
  |  Branch (265:13): [True: 4.70k, False: 1.67M]
  ------------------
  266|  1.57M|                result.push_back(*q);
  267|  1.57M|                break;
  268|  19.9k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 19.9k, False: 1.65M]
  ------------------
  269|  19.9k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 1.67M]
  ------------------
  270|  19.9k|                result.push_back('e');
  271|  19.9k|                needs_dot = false;
  272|  19.9k|                break;
  273|  83.8k|            default:
  ------------------
  |  Branch (273:13): [True: 83.8k, False: 1.59M]
  ------------------
  274|  83.8k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 79.5k, False: 4.32k]
  ------------------
  275|  79.5k|                {
  276|  79.5k|                    needs_dot = false;
  277|  79.5k|                    result.push_back('.');
  278|  79.5k|                }
  279|  83.8k|                break;
  280|  1.67M|            }
  281|  1.67M|        }
  282|  84.2k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 4.71k, False: 79.5k]
  ------------------
  283|  4.71k|        {
  284|  4.71k|            result.push_back('.');
  285|  4.71k|            result.push_back('0');
  286|  4.71k|        }
  287|  84.2k|    }
  288|  84.2k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKciiiiRT_:
  171|  6.26M|{
  172|  6.26M|    int nb_digits = length;
  173|  6.26M|    int offset;
  174|       |    /* v = buffer * 10^k
  175|       |       kk is such that 10^(kk-1) <= v < 10^kk
  176|       |       this way kk gives the position of the decimal point.
  177|       |    */
  178|  6.26M|    int kk = nb_digits + k;
  179|       |
  180|  6.26M|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 1.71M, False: 4.54M]
  |  Branch (180:28): [True: 1.03M, False: 685k]
  ------------------
  181|  1.03M|    {
  182|       |        /* the first digits are already in. Add some 0s and call it a day. */
  183|       |        /* the max_exp is a personal choice. Only 16 digits could possibly be relevant.
  184|       |         * Basically we want to print 12340000000 rather than 1234.0e7 or 1.234e10 */
  185|  10.8M|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 9.85M, False: 1.03M]
  ------------------
  186|  9.85M|        {
  187|  9.85M|            result.push_back(buffer[i]);
  188|  9.85M|        }
  189|  1.09M|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 56.0k, False: 1.03M]
  ------------------
  190|  56.0k|        {
  191|  56.0k|            result.push_back('0');
  192|  56.0k|        }
  193|  1.03M|        result.push_back('.');
  194|  1.03M|        result.push_back('0');
  195|  1.03M|    } 
  196|  5.22M|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 1.89M, False: 3.32M]
  |  Branch (196:24): [True: 1.21M, False: 685k]
  ------------------
  197|  1.21M|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  3.90M|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 2.68M, False: 1.21M]
  ------------------
  200|  2.68M|        {
  201|  2.68M|            result.push_back(buffer[i]);
  202|  2.68M|        }
  203|  1.21M|        result.push_back('.');
  204|  12.5M|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 11.3M, False: 1.21M]
  ------------------
  205|  11.3M|        {
  206|  11.3M|            result.push_back(buffer[i]);
  207|  11.3M|        }
  208|  1.21M|    } 
  209|  4.01M|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 1.38M, False: 2.62M]
  |  Branch (209:30): [True: 701k, False: 685k]
  ------------------
  210|   701k|    {
  211|   701k|        offset = 2 - kk;
  212|       |
  213|   701k|        result.push_back('0');
  214|   701k|        result.push_back('.');
  215|  1.75M|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 1.05M, False: 701k]
  ------------------
  216|  1.05M|            result.push_back('0');
  217|  10.9M|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 10.2M, False: 701k]
  ------------------
  218|  10.2M|        {
  219|  10.2M|            result.push_back(buffer[i]);
  220|  10.2M|        }
  221|   701k|    } 
  222|  3.31M|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 4.63k, False: 3.30M]
  ------------------
  223|  4.63k|    {
  224|  4.63k|        result.push_back(buffer[0]);
  225|  4.63k|        result.push_back('e');
  226|  4.63k|        fill_exponent(kk - 1, result);
  227|  4.63k|    } 
  228|  3.30M|    else
  229|  3.30M|    {
  230|  3.30M|        result.push_back(buffer[0]);
  231|  3.30M|        result.push_back('.');
  232|  53.4M|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 50.1M, False: 3.30M]
  ------------------
  233|  50.1M|        {
  234|  50.1M|            result.push_back(buffer[i]);
  235|  50.1M|        }
  236|  3.30M|        result.push_back('e');
  237|  3.30M|        fill_exponent(kk - 1, result);
  238|  3.30M|    }
  239|  6.26M|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  3.31M|{
  137|  3.31M|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 2.62M, False: 685k]
  ------------------
  138|  2.62M|    {
  139|  2.62M|        result.push_back('-');
  140|  2.62M|        K = -K;
  141|  2.62M|    }
  142|   685k|    else
  143|   685k|    {
  144|   685k|        result.push_back('+'); // compatibility with sprintf
  145|   685k|    }
  146|       |
  147|  3.31M|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 275k, False: 3.03M]
  ------------------
  148|   275k|    {
  149|   275k|        result.push_back('0'); // compatibility with sprintf
  150|   275k|        result.push_back((char)('0' + K));
  151|   275k|    }
  152|  3.03M|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 2.58M, False: 450k]
  ------------------
  153|  2.58M|    {
  154|  2.58M|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  2.58M|        result.push_back((char)('0' + K));
  156|  2.58M|    }
  157|   450k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 450k, False: 0]
  ------------------
  158|   450k|    {
  159|   450k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|   450k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|   450k|        result.push_back((char)('0' + K));
  162|   450k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  3.31M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  6.78M|{
  476|  6.78M|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  6.78M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  6.78M|{
  367|  6.78M|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 441k, False: 6.34M]
  ------------------
  368|   441k|    {
  369|   441k|        result.push_back('0');
  370|   441k|        result.push_back('.');
  371|   441k|        result.push_back('0');
  372|   441k|        return true;
  373|   441k|    }
  374|       |
  375|  6.34M|    int length = 0;
  376|  6.34M|    int k;
  377|       |
  378|  6.34M|    char buffer[100];
  379|       |
  380|  6.34M|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 2.85M, False: 3.48M]
  ------------------
  381|  6.34M|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 6.26M, False: 84.2k]
  ------------------
  382|  6.26M|    {
  383|  6.26M|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 2.79M, False: 3.46M]
  ------------------
  384|  2.79M|        {
  385|  2.79M|            result.push_back('-');
  386|  2.79M|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  6.26M|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  6.26M|        return true;
  391|  6.26M|    }
  392|  84.2k|    else
  393|  84.2k|    {
  394|  84.2k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  84.2k|    }
  396|  6.34M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  84.2k|{
  330|  84.2k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 84.2k]
  ------------------
  331|      0|    {
  332|      0|        result.push_back('0');
  333|      0|        result.push_back('.');
  334|      0|        result.push_back('0');
  335|      0|        return true;
  336|      0|    }
  337|       |
  338|  84.2k|    char buffer[100];
  339|  84.2k|    int precision = std::numeric_limits<double>::digits10;
  340|  84.2k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  84.2k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 84.2k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  84.2k|    double x{0};
  346|  84.2k|    auto res = decstr_to_double(buffer, length, x);
  347|  84.2k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 84.2k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  84.2k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 82.8k, False: 1.41k]
  ------------------
  352|  82.8k|    {
  353|  82.8k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  82.8k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  82.8k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 82.8k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  82.8k|    }
  360|  84.2k|    dump_buffer(buffer, length, decimal_point, result);
  361|  84.2k|    return true;
  362|  84.2k|}

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr6nonstd8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|  1.02M|    {
 1148|  1.02M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|  1.02M|        const uint8_t* end = it + length;
 1150|       |
 1151|  1.02M|        unicode_errc  result{};
 1152|  2.86M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 1.84M, False: 1.02M]
  ------------------
 1153|  1.84M|        {
 1154|  1.84M|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 378k, False: 1.46M]
  ------------------
 1155|   378k|            {
 1156|  2.57M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  326|   756k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (326:32): [True: 375k, False: 2.92k]
  |  |  |  Branch (326:34): [True: 374k, False: 874]
  |  |  |  Branch (326:36): [True: 369k, False: 4.51k]
  |  |  |  Branch (326:38): [True: 368k, False: 1.61k]
  |  |  |  Branch (326:40): [True: 362k, False: 5.54k]
  |  |  |  Branch (326:42): [True: 362k, False: 608]
  |  |  |  Branch (326:44): [True: 358k, False: 3.54k]
  |  |  |  Branch (326:46): [True: 355k, False: 2.86k]
  |  |  ------------------
  ------------------
 1157|   355k|                continue;
 1158|  2.57M|            }
 1159|  1.48M|    non_ascii:
 1160|  1.48M|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  1.48M|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 174, False: 1.48M]
  ------------------
 1162|    174|            {
 1163|    174|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|    174|            }
 1165|  1.48M|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 1.22k, False: 1.48M]
  ------------------
 1166|  1.22k|            {
 1167|  1.22k|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|  1.22k|            }
 1169|  1.48M|            it += len;
 1170|  1.48M|        }
 1171|  1.02M|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|  1.02M|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  1.48M|    {
  306|  1.48M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  1.48M|        const uint8_t* end = it+length;
  308|       |
  309|  1.48M|        uint8_t byte;
  310|  1.48M|        switch (length) {
  311|    111|        default:
  ------------------
  |  Branch (311:9): [True: 111, False: 1.48M]
  ------------------
  312|    111|            return unicode_errc::over_long_utf8_sequence;
  313|  13.8k|        case 4:
  ------------------
  |  Branch (313:9): [True: 13.8k, False: 1.47M]
  ------------------
  314|  13.8k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 76, False: 13.7k]
  ------------------
  315|     76|                return unicode_errc::bad_continuation_byte;
  316|  13.7k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|  13.7k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  14.2k|        case 3:
  ------------------
  |  Branch (317:9): [True: 426, False: 1.48M]
  ------------------
  318|  14.2k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 51, False: 14.1k]
  ------------------
  319|     51|                return unicode_errc::bad_continuation_byte;
  320|  14.1k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|  14.1k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  24.6k|        case 2:
  ------------------
  |  Branch (321:9): [True: 10.4k, False: 1.47M]
  ------------------
  322|  24.6k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 342, False: 24.3k]
  ------------------
  323|    342|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  24.3k|            switch (*it) 
  326|  24.3k|            {
  327|       |                // no fall-through in this inner switch
  328|    185|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 185, False: 24.1k]
  |  Branch (328:32): [True: 5, False: 180]
  ------------------
  329|    180|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 165, False: 24.1k]
  |  Branch (329:32): [True: 0, False: 165]
  ------------------
  330|    715|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 715, False: 23.5k]
  |  Branch (330:32): [True: 5, False: 710]
  ------------------
  331|  12.9k|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 12.9k, False: 11.3k]
  |  Branch (331:32): [True: 0, False: 12.9k]
  ------------------
  332|  12.9k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 10.2k, False: 14.0k]
  |  Branch (332:32): [True: 0, False: 10.2k]
  ------------------
  333|  24.3k|            }
  334|       |
  335|  24.2k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|  24.2k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  1.48M|        case 1:
  ------------------
  |  Branch (336:9): [True: 1.46M, False: 24.8k]
  ------------------
  337|  1.48M|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 24.9k, False: 1.46M]
  |  Branch (337:32): [True: 638, False: 24.2k]
  ------------------
  338|    638|                return unicode_errc::source_illegal;
  339|  1.48M|            break;
  340|  1.48M|        }
  341|  1.48M|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 0, False: 1.48M]
  ------------------
  342|      0|            return unicode_errc::source_illegal;
  343|       |
  344|  1.48M|        return unicode_errc();
  345|  1.48M|    }

_ZN8jsoncons4cbor17basic_cbor_cursorINS_12chars_sourceIhEENSt3__19allocatorIcEEED2Ev:
  101|  12.8k|    ~basic_cbor_cursor() = default;
_ZNK8jsoncons4cbor17basic_cbor_cursorINS_12chars_sourceIhEENSt3__19allocatorIcEEE7currentEv:
  199|  12.5k|    {
  200|  12.5k|        return cursor_visitor_.event();
  201|  12.5k|    }
_ZN8jsoncons4cbor17basic_cbor_cursorINS_12chars_sourceIhEENSt3__19allocatorIcEEE9read_nextERNS4_10error_codeE:
  305|  59.7M|    {
  306|  59.7M|        parser_.restart();
  307|   119M|        while (!parser_.stopped())
  ------------------
  |  Branch (307:16): [True: 59.7M, False: 59.7M]
  ------------------
  308|  59.7M|        {
  309|  59.7M|            parser_.parse(cursor_visitor_, ec);
  310|  59.7M|            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   79|  59.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5.36k, False: 59.7M]
  |  |  ------------------
  ------------------
  311|  59.7M|        }
  312|  59.7M|    }
_ZN8jsoncons4cbor17basic_cbor_cursorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEED2Ev:
  101|  6.41k|    ~basic_cbor_cursor() = default;
_ZN8jsoncons4cbor17basic_cbor_cursorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_nextERNS3_10error_codeE:
  305|  59.7M|    {
  306|  59.7M|        parser_.restart();
  307|   119M|        while (!parser_.stopped())
  ------------------
  |  Branch (307:16): [True: 59.7M, False: 59.7M]
  ------------------
  308|  59.7M|        {
  309|  59.7M|            parser_.parse(cursor_visitor_, ec);
  310|  59.7M|            if (JSONCONS_UNLIKELY(ec)) {return;}
  ------------------
  |  |   79|  59.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5.24k, False: 59.7M]
  |  |  ------------------
  ------------------
  311|  59.7M|        }
  312|  59.7M|    }
_ZN8jsoncons4cbor17basic_cbor_cursorINS_12chars_sourceIhEENSt3__19allocatorIcEEEC1IRNS_6nonstd4spanIKhLm18446744073709551615EEEEEOT_RNS4_10error_codeE:
   67|  12.8k|        : basic_cbor_cursor(std::allocator_arg, Allocator(),
   68|  12.8k|              std::forward<Sourceable>(source), 
   69|  12.8k|              cbor_decode_options(), 
   70|  12.8k|              ec)
   71|  12.8k|    {
   72|  12.8k|    }
_ZN8jsoncons4cbor17basic_cbor_cursorINS_12chars_sourceIhEENSt3__19allocatorIcEEEC1IRNS_6nonstd4spanIKhLm18446744073709551615EEEEENS4_15allocator_arg_tERKS6_OT_RKNS0_19cbor_decode_optionsERNS4_10error_codeE:
   90|  12.8k|       : parser_(std::forward<Sourceable>(source), options, alloc), 
   91|  12.8k|         cursor_visitor_(alloc),
   92|  12.8k|         eof_(false)
   93|  12.8k|    {
   94|  12.8k|        parser_.cursor_mode(true);
   95|  12.8k|        if (!read_done())
  ------------------
  |  Branch (95:13): [True: 12.8k, False: 0]
  ------------------
   96|  12.8k|        {
   97|  12.8k|            read_next(ec);
   98|  12.8k|        }
   99|  12.8k|    }
_ZNK8jsoncons4cbor17basic_cbor_cursorINS_12chars_sourceIhEENSt3__19allocatorIcEEE9read_doneEv:
  290|  12.8k|    {
  291|  12.8k|        return parser_.done();
  292|  12.8k|    }
_ZNK8jsoncons4cbor17basic_cbor_cursorINS_12chars_sourceIhEENSt3__19allocatorIcEEE4doneEv:
  153|  59.7M|    {
  154|  59.7M|        return parser_.done();
  155|  59.7M|    }
_ZN8jsoncons4cbor17basic_cbor_cursorINS_12chars_sourceIhEENSt3__19allocatorIcEEE4nextERNS4_10error_codeE:
  256|  59.7M|    {
  257|  59.7M|        read_next(ec);
  258|  59.7M|    }
_ZN8jsoncons4cbor17basic_cbor_cursorINS_12chars_sourceIhEENSt3__19allocatorIcEEE7read_toERNS_18basic_json_visitorIcEERNS4_10error_codeE:
  215|  6.29k|    {
  216|  6.29k|        basic_generic_to_json_visitor<char_type> adaptor(visitor);
  217|  6.29k|        read_to(adaptor, ec);
  218|  6.29k|    }
_ZN8jsoncons4cbor17basic_cbor_cursorINS_12chars_sourceIhEENSt3__19allocatorIcEEE7read_toERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
  222|  6.29k|    {
  223|  6.29k|        if (is_begin_container(current().event_type()))
  ------------------
  |  Branch (223:13): [True: 6.23k, False: 59]
  ------------------
  224|  6.23k|        {
  225|  6.23k|            parser_.cursor_mode(false);
  226|  6.23k|            parser_.mark_level(parser_.level());
  227|  6.23k|            cursor_visitor_.dump(visitor, *this, ec);
  228|  6.23k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.23k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.23k]
  |  |  ------------------
  ------------------
  229|      0|            {
  230|      0|                return;
  231|      0|            }
  232|  6.23k|            read_next(visitor, ec);
  233|  6.23k|            parser_.cursor_mode(true);
  234|  6.23k|            parser_.mark_level(0);
  235|  6.23k|            if (current().event_type() == staj_events::begin_object)
  ------------------
  |  Branch (235:17): [True: 4.29k, False: 1.94k]
  ------------------
  236|  4.29k|            {
  237|  4.29k|                cursor_visitor_.end_object(*this);
  238|  4.29k|            }
  239|  1.94k|            else
  240|  1.94k|            {
  241|  1.94k|                cursor_visitor_.end_array(*this);
  242|  1.94k|            }
  243|  6.23k|        }
  244|     59|        else
  245|     59|        {
  246|     59|            cursor_visitor_.dump(visitor, *this, ec);
  247|     59|        }
  248|  6.29k|    }
_ZN8jsoncons4cbor17basic_cbor_cursorINS_12chars_sourceIhEENSt3__19allocatorIcEEE9read_nextERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
  348|  6.23k|    {
  349|  6.23k|        parser_.restart();
  350|  7.35k|        while (!parser_.stopped())
  ------------------
  |  Branch (350:16): [True: 6.23k, False: 1.11k]
  ------------------
  351|  6.23k|        {
  352|  6.23k|            parser_.parse(visitor, ec);
  353|  6.23k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.23k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5.12k, False: 1.11k]
  |  |  ------------------
  ------------------
  354|  5.12k|            {
  355|  5.12k|                return;
  356|  5.12k|            }
  357|  6.23k|        }
  358|  6.23k|    }
_ZN8jsoncons4cbor17basic_cbor_cursorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC1IS6_EEOT_RNS3_10error_codeE:
   67|  6.41k|        : basic_cbor_cursor(std::allocator_arg, Allocator(),
   68|  6.41k|              std::forward<Sourceable>(source), 
   69|  6.41k|              cbor_decode_options(), 
   70|  6.41k|              ec)
   71|  6.41k|    {
   72|  6.41k|    }
_ZN8jsoncons4cbor17basic_cbor_cursorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC1IS6_EENS3_15allocator_arg_tERKS7_OT_RKNS0_19cbor_decode_optionsERNS3_10error_codeE:
   90|  6.41k|       : parser_(std::forward<Sourceable>(source), options, alloc), 
   91|  6.41k|         cursor_visitor_(alloc),
   92|  6.41k|         eof_(false)
   93|  6.41k|    {
   94|  6.41k|        parser_.cursor_mode(true);
   95|  6.41k|        if (!read_done())
  ------------------
  |  Branch (95:13): [True: 6.41k, False: 0]
  ------------------
   96|  6.41k|        {
   97|  6.41k|            read_next(ec);
   98|  6.41k|        }
   99|  6.41k|    }
_ZNK8jsoncons4cbor17basic_cbor_cursorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_doneEv:
  290|  6.41k|    {
  291|  6.41k|        return parser_.done();
  292|  6.41k|    }
_ZNK8jsoncons4cbor17basic_cbor_cursorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  153|  59.7M|    {
  154|  59.7M|        return parser_.done();
  155|  59.7M|    }
_ZN8jsoncons4cbor17basic_cbor_cursorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS3_10error_codeE:
  256|  59.7M|    {
  257|  59.7M|        read_next(ec);
  258|  59.7M|    }

_ZN8jsoncons4cbor6detail24min_length_for_stringrefEm:
   58|  19.7M|{
   59|  19.7M|    std::size_t n;
   60|  19.7M|    if (index <= 23)
  ------------------
  |  Branch (60:9): [True: 424k, False: 19.2M]
  ------------------
   61|   424k|    {
   62|   424k|        n = 3;
   63|   424k|    }
   64|  19.2M|    else if (index <= 255)
  ------------------
  |  Branch (64:14): [True: 505k, False: 18.7M]
  ------------------
   65|   505k|    {
   66|   505k|        n = 4;
   67|   505k|    }
   68|  18.7M|    else if (index <= 65535)
  ------------------
  |  Branch (68:14): [True: 18.4M, False: 370k]
  ------------------
   69|  18.4M|    {
   70|  18.4M|        n = 5;
   71|  18.4M|    }
   72|   370k|    else if (index <= 4294967295)
  ------------------
  |  Branch (72:14): [True: 370k, False: 0]
  ------------------
   73|   370k|    {
   74|   370k|        n = 7;
   75|   370k|    }
   76|      0|    else 
   77|      0|    {
   78|      0|        n = 11;
   79|      0|    }
   80|  19.7M|    return n;
   81|  19.7M|}

_ZN8jsoncons4cbor15make_error_codeENS0_9cbor_errcE:
  111|  26.2k|{
  112|  26.2k|    return std::error_code(static_cast<int>(e),cbor_error_category());
  113|  26.2k|}
_ZN8jsoncons4cbor19cbor_error_categoryEv:
  104|  26.2k|{
  105|  26.2k|  static cbor_error_category_impl instance;
  106|  26.2k|  return instance;
  107|  26.2k|}

_ZN8jsoncons4cbor19cbor_decode_optionsC1Ev:
   43|  32.0k|    cbor_decode_options() = default;
_ZN8jsoncons4cbor19cbor_options_commonC2Ev:
   25|  32.0k|    cbor_options_common() = default;
_ZN8jsoncons4cbor19cbor_options_commonD2Ev:
   27|  32.0k|    virtual ~cbor_options_common() = default;
_ZNK8jsoncons4cbor19cbor_options_common17max_nesting_depthEv:
   33|  32.0k|    {
   34|  32.0k|        return max_nesting_depth_;
   35|  32.0k|    }
_ZNK8jsoncons4cbor19cbor_decode_options18bigfloat_precisionEv:
   49|  32.0k|    {
   50|  32.0k|        return bigfloat_precision_;
   51|  32.0k|    }

_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEED2Ev:
  354|  19.2k|    ~basic_cbor_parser() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringD2Ev:
  251|  39.5M|        ~mapped_string() = default;
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4lineEv:
  445|  5.24k|    {
  446|  5.24k|        return 0;
  447|  5.24k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE6columnEv:
  450|  5.24k|    {
  451|  5.24k|        return source_.position();
  452|  5.24k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEED2Ev:
  354|  12.8k|    ~basic_cbor_parser() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13mapped_stringD2Ev:
  251|  27.7M|        ~mapped_string() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE7restartEv:
  357|  59.7M|    {
  358|  59.7M|        more_ = !done_;
  359|  59.7M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE7stoppedEv:
  440|   119M|    {
  441|   119M|        return !more_;
  442|   119M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE5parseERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
  465|  59.7M|    {
  466|   217M|        while (!done_ && more_)
  ------------------
  |  Branch (466:16): [True: 217M, False: 2.34k]
  |  Branch (466:26): [True: 157M, False: 59.7M]
  ------------------
  467|   157M|        {
  468|   157M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (468:21): [True: 157M, False: 0]
  ------------------
  469|   157M|            {
  470|  50.6k|                case parse_mode::multi_dim:
  ------------------
  |  Branch (470:17): [True: 50.6k, False: 157M]
  ------------------
  471|  50.6k|                {
  472|  50.6k|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  50.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 50.6k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  473|  50.6k|                    typed_array_stack_.pop_back();
  474|  50.6k|                    state_stack_.pop_back();
  475|  50.6k|                    break;
  476|  50.6k|                }
  477|  9.70M|                case parse_mode::typed_array:
  ------------------
  |  Branch (477:17): [True: 9.70M, False: 148M]
  ------------------
  478|  9.70M|                {
  479|  9.70M|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  9.70M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 9.70M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  480|  9.70M|                    read_typed_array_item(visitor, ec);
  481|  9.70M|                    auto iter = typed_array_stack_.back();
  482|  9.70M|                    if (iter->done())
  ------------------
  |  Branch (482:25): [True: 209k, False: 9.49M]
  ------------------
  483|   209k|                    {
  484|   209k|                        if (level() == mark_level_)
  ------------------
  |  Branch (484:29): [True: 108, False: 209k]
  ------------------
  485|    108|                        {
  486|    108|                            more_ = false;
  487|    108|                        }
  488|   209k|                        if (!is_multi_dim())
  ------------------
  |  Branch (488:29): [True: 168k, False: 41.1k]
  ------------------
  489|   168k|                        {
  490|   168k|                            typed_array_stack_.pop_back();
  491|   168k|                        }
  492|   209k|                        state_stack_.pop_back();
  493|   209k|                    }
  494|  9.70M|                    break;
  495|  9.70M|                }
  496|  36.3M|                case parse_mode::array:
  ------------------
  |  Branch (496:17): [True: 36.3M, False: 121M]
  ------------------
  497|  36.3M|                {
  498|  36.3M|                    if (is_multi_dim())
  ------------------
  |  Branch (498:25): [True: 23.5M, False: 12.8M]
  ------------------
  499|  23.5M|                    {
  500|  23.5M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  23.5M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 23.5M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  501|  23.5M|                        auto iter = typed_array_stack_.back();
  502|  23.5M|                        if (!iter->done())
  ------------------
  |  Branch (502:29): [True: 23.5M, False: 2.57k]
  ------------------
  503|  23.5M|                        {
  504|  23.5M|                            iter->next(visitor, *this, ec);
  505|  23.5M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  23.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 232, False: 23.5M]
  |  |  ------------------
  ------------------
  506|    232|                            {
  507|    232|                                return;
  508|    232|                            }
  509|  23.5M|                        }
  510|  2.57k|                        else
  511|  2.57k|                        {
  512|  2.57k|                            if (iter->count() != state_stack_.back().length)
  ------------------
  |  Branch (512:33): [True: 39, False: 2.53k]
  ------------------
  513|     39|                            {
  514|       |                                //std::cout << state_stack_.back().index << "!=" << state_stack_.back().length << "\n";
  515|     39|                                ec = cbor_errc::bad_mdarray;
  516|     39|                                return;
  517|     39|                            }
  518|  2.53k|                            end_classical_array_storage(ec);
  519|  2.53k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.53k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.53k]
  |  |  ------------------
  ------------------
  520|      0|                            {
  521|      0|                                return;
  522|      0|                            }
  523|  2.53k|                        }
  524|  23.5M|                    }
  525|  12.8M|                    else
  526|  12.8M|                    {
  527|  12.8M|                        if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (527:29): [True: 12.3M, False: 450k]
  ------------------
  528|  12.3M|                        {
  529|  12.3M|                            ++state_stack_.back().index;
  530|  12.3M|                            read_item(visitor, ec);
  531|  12.3M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.10k, False: 12.3M]
  |  |  ------------------
  ------------------
  532|  3.10k|                            {
  533|  3.10k|                                return;
  534|  3.10k|                            }
  535|  12.3M|                        }
  536|   450k|                        else
  537|   450k|                        {
  538|   450k|                            end_array(visitor, ec);
  539|   450k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   450k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 450k]
  |  |  ------------------
  ------------------
  540|      0|                            {
  541|      0|                                return;
  542|      0|                            }
  543|   450k|                        }
  544|  12.8M|                    }
  545|  36.3M|                    break;
  546|  36.3M|                }
  547|  43.6M|                case parse_mode::indefinite_array:
  ------------------
  |  Branch (547:17): [True: 43.6M, False: 114M]
  ------------------
  548|  43.6M|                {
  549|  43.6M|                    if (is_multi_dim()) 
  ------------------
  |  Branch (549:25): [True: 16.6M, False: 26.9M]
  ------------------
  550|  16.6M|                    {
  551|  16.6M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  16.6M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 16.6M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  552|  16.6M|                        auto iter = typed_array_stack_.back();
  553|  16.6M|                        if (!iter->done())
  ------------------
  |  Branch (553:29): [True: 16.6M, False: 6.95k]
  ------------------
  554|  16.6M|                        {
  555|  16.6M|                            iter->next(visitor, *this, ec);
  556|  16.6M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  16.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 155, False: 16.6M]
  |  |  ------------------
  ------------------
  557|    155|                            {
  558|    155|                                return;
  559|    155|                            }
  560|  16.6M|                        }
  561|  6.95k|                        else
  562|  6.95k|                        {
  563|  6.95k|                            auto c = source_.peek();
  564|  6.95k|                            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  6.95k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 9, False: 6.94k]
  |  |  ------------------
  ------------------
  565|      9|                            {
  566|      9|                                ec = cbor_errc::unexpected_eof;
  567|      9|                                more_ = false;
  568|      9|                                return;
  569|      9|                            }
  570|  6.94k|                            if (c.value == 0xff)
  ------------------
  |  Branch (570:33): [True: 6.92k, False: 24]
  ------------------
  571|  6.92k|                            {
  572|  6.92k|                                source_.ignore(1);
  573|  6.92k|                            }
  574|     24|                            else
  575|     24|                            {
  576|     24|                                ec = cbor_errc::bad_mdarray;
  577|     24|                                return;
  578|     24|                            }
  579|  6.92k|                            end_classical_array_storage(ec);
  580|  6.92k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.92k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.92k]
  |  |  ------------------
  ------------------
  581|      0|                            {
  582|      0|                                return;
  583|      0|                            }
  584|  6.92k|                        }
  585|  16.6M|                    }
  586|  26.9M|                    else
  587|  26.9M|                    {
  588|  26.9M|                        auto c = source_.peek();
  589|  26.9M|                        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  26.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 497, False: 26.9M]
  |  |  ------------------
  ------------------
  590|    497|                        {
  591|    497|                            ec = cbor_errc::unexpected_eof;
  592|    497|                            more_ = false;
  593|    497|                            return;
  594|    497|                        }
  595|  26.9M|                        if (c.value == 0xff)
  ------------------
  |  Branch (595:29): [True: 40.8k, False: 26.9M]
  ------------------
  596|  40.8k|                        {
  597|  40.8k|                            source_.ignore(1);
  598|  40.8k|                            end_array(visitor, ec);
  599|  40.8k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  40.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 40.8k]
  |  |  ------------------
  ------------------
  600|      0|                            {
  601|      0|                                return;
  602|      0|                            }
  603|  40.8k|                        }
  604|  26.9M|                        else
  605|  26.9M|                        {
  606|  26.9M|                            read_item(visitor, ec);
  607|  26.9M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  26.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 973, False: 26.9M]
  |  |  ------------------
  ------------------
  608|    973|                            {
  609|    973|                                return;
  610|    973|                            }
  611|  26.9M|                        }
  612|  26.9M|                    }
  613|  43.6M|                    break;
  614|  43.6M|                }
  615|  43.6M|                case parse_mode::map_key:
  ------------------
  |  Branch (615:17): [True: 22.9M, False: 134M]
  ------------------
  616|  22.9M|                {
  617|  22.9M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (617:25): [True: 2.38M, False: 20.5M]
  ------------------
  618|  2.38M|                    {
  619|  2.38M|                        ++state_stack_.back().index;
  620|  2.38M|                        state_stack_.back().mode = parse_mode::map_value;
  621|  2.38M|                        read_item(visitor, ec);
  622|  2.38M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.38M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.67k, False: 2.38M]
  |  |  ------------------
  ------------------
  623|  1.67k|                        {
  624|  1.67k|                            return;
  625|  1.67k|                        }
  626|  2.38M|                    }
  627|  20.5M|                    else
  628|  20.5M|                    {
  629|  20.5M|                        end_object(visitor, ec);
  630|  20.5M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 20.5M]
  |  |  ------------------
  ------------------
  631|      0|                        {
  632|      0|                            return;
  633|      0|                        }
  634|  20.5M|                    }
  635|  22.8M|                    break;
  636|  22.9M|                }
  637|  22.8M|                case parse_mode::map_value:
  ------------------
  |  Branch (637:17): [True: 2.26M, False: 155M]
  ------------------
  638|  2.26M|                {
  639|  2.26M|                    state_stack_.back().mode = parse_mode::map_key;
  640|  2.26M|                    read_item(visitor, ec);
  641|  2.26M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.26M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.39k, False: 2.26M]
  |  |  ------------------
  ------------------
  642|  1.39k|                    {
  643|  1.39k|                        return;
  644|  1.39k|                    }
  645|  2.26M|                    break;
  646|  2.26M|                }
  647|  21.4M|                case parse_mode::indefinite_map_key:
  ------------------
  |  Branch (647:17): [True: 21.4M, False: 136M]
  ------------------
  648|  21.4M|                {
  649|  21.4M|                    auto c = source_.peek();
  650|  21.4M|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  21.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 392, False: 21.4M]
  |  |  ------------------
  ------------------
  651|    392|                    {
  652|    392|                        ec = cbor_errc::unexpected_eof;
  653|    392|                        more_ = false;
  654|    392|                        return;
  655|    392|                    }
  656|  21.4M|                    if (c.value == 0xff)
  ------------------
  |  Branch (656:25): [True: 12.4k, False: 21.4M]
  ------------------
  657|  12.4k|                    {
  658|  12.4k|                        source_.ignore(1);
  659|  12.4k|                        end_object(visitor, ec);
  660|  12.4k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 12.4k]
  |  |  ------------------
  ------------------
  661|      0|                        {
  662|      0|                            return;
  663|      0|                        }
  664|  12.4k|                    }
  665|  21.4M|                    else
  666|  21.4M|                    {
  667|  21.4M|                        state_stack_.back().mode = parse_mode::indefinite_map_value;
  668|  21.4M|                        read_item(visitor, ec);
  669|  21.4M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  21.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 570, False: 21.4M]
  |  |  ------------------
  ------------------
  670|    570|                        {
  671|    570|                            return;
  672|    570|                        }
  673|  21.4M|                    }
  674|  21.4M|                    break;
  675|  21.4M|                }
  676|  21.4M|                case parse_mode::indefinite_map_value:
  ------------------
  |  Branch (676:17): [True: 21.4M, False: 136M]
  ------------------
  677|  21.4M|                {
  678|  21.4M|                    state_stack_.back().mode = parse_mode::indefinite_map_key;
  679|  21.4M|                    read_item(visitor, ec);
  680|  21.4M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  21.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.18k, False: 21.4M]
  |  |  ------------------
  ------------------
  681|  1.18k|                    {
  682|  1.18k|                        return;
  683|  1.18k|                    }
  684|  21.4M|                    break;
  685|  21.4M|                }
  686|  21.4M|                case parse_mode::root:
  ------------------
  |  Branch (686:17): [True: 12.8k, False: 157M]
  ------------------
  687|  12.8k|                {
  688|  12.8k|                    state_stack_.back().mode = parse_mode::accept;
  689|  12.8k|                    read_item(visitor, ec);
  690|  12.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 242, False: 12.5k]
  |  |  ------------------
  ------------------
  691|    242|                    {
  692|    242|                        return;
  693|    242|                    }
  694|  12.5k|                    break;
  695|  12.8k|                }
  696|  12.5k|                case parse_mode::accept:
  ------------------
  |  Branch (696:17): [True: 2.34k, False: 157M]
  ------------------
  697|  2.34k|                {
  698|  2.34k|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   54|  2.34k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 2.34k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  699|  2.34k|                    state_stack_.clear();
  700|  2.34k|                    more_ = false;
  701|  2.34k|                    done_ = true;
  702|  2.34k|                    visitor.flush();
  703|  2.34k|                    break;
  704|  2.34k|                }
  705|   157M|            }
  706|   157M|        }
  707|  59.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE21read_typed_array_itemERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
  710|  9.70M|    {
  711|  9.70M|        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  9.70M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 9.70M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  712|  9.70M|        auto iter = typed_array_stack_.back();
  713|  9.70M|        if (!iter->done())
  ------------------
  |  Branch (713:13): [True: 9.70M, False: 0]
  ------------------
  714|  9.70M|        {
  715|  9.70M|            iter->next(visitor, *this, ec);
  716|  9.70M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.70M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9.70M]
  |  |  ------------------
  ------------------
  717|      0|            {
  718|      0|                return;
  719|      0|            }
  720|  9.70M|            more_ = !cursor_mode_;
  721|  9.70M|        }
  722|  9.70M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE5levelEv:
  420|  21.2M|    {
  421|  21.2M|        return static_cast<int>(state_stack_.size());
  422|  21.2M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE12is_multi_dimEv:
  380|  80.2M|    {
  381|  80.2M|        return state_stack_.size() >=2 && state_stack_[state_stack_.size()-2].mode == parse_mode::multi_dim;
  ------------------
  |  Branch (381:16): [True: 80.2M, False: 0]
  |  Branch (381:43): [True: 40.2M, False: 39.9M]
  ------------------
  382|  80.2M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE27end_classical_array_storageERNS4_10error_codeE:
 1149|  9.46k|    {
 1150|  9.46k|        --nesting_depth_;
 1151|       |
 1152|  9.46k|        more_ = !cursor_mode_;
 1153|  9.46k|        if (level() == mark_level_)
  ------------------
  |  Branch (1153:13): [True: 1, False: 9.46k]
  ------------------
 1154|      1|        {
 1155|      1|            more_ = false;
 1156|      1|        }
 1157|  9.46k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1157:13): [True: 1.83k, False: 7.62k]
  ------------------
 1158|  1.83k|        {
 1159|  1.83k|            stringref_map_stack_.pop_back();
 1160|  1.83k|        }
 1161|  9.46k|        state_stack_.pop_back();
 1162|  9.46k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE9read_itemERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
  725|  91.0M|    {
  726|  91.0M|        read_tags(ec);
  727|  91.0M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  91.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.21k, False: 91.0M]
  |  |  ------------------
  ------------------
  728|  3.21k|        {
  729|  3.21k|            return;
  730|  3.21k|        }
  731|  91.0M|        auto c = source_.peek();
  732|  91.0M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  91.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 91.0M]
  |  |  ------------------
  ------------------
  733|      0|        {
  734|      0|            ec = cbor_errc::unexpected_eof;
  735|      0|            more_ = false;
  736|      0|            return;
  737|      0|        }
  738|  91.0M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
  739|  91.0M|        uint8_t info = get_additional_information(c.value);
  740|  91.0M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  91.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 35, False: 91.0M]
  |  |  |  Branch (79:50): [True: 269k, False: 90.7M]
  |  |  |  Branch (79:50): [True: 35, False: 269k]
  |  |  ------------------
  ------------------
  741|     35|        {
  742|     35|            ec = cbor_errc::reserved_additional_info;
  743|     35|            more_ = false;
  744|     35|            return;
  745|     35|        }
  746|       |
  747|  91.0M|        switch (major_type)
  748|  91.0M|        {
  749|  42.9M|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (749:13): [True: 42.9M, False: 48.0M]
  ------------------
  750|  42.9M|            {
  751|  42.9M|                source_.ignore(1);
  752|  42.9M|                uint64_t val = read_unsigned_integer(info, ec);
  753|  42.9M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  42.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 65, False: 42.9M]
  |  |  ------------------
  ------------------
  754|     65|                {
  755|     65|                    return;
  756|     65|                }
  757|  42.9M|                if (!stringref_map_stack_.empty() && other_tags_[stringref_tag])
  ------------------
  |  Branch (757:21): [True: 2.79M, False: 40.1M]
  |  Branch (757:21): [True: 89.9k, False: 42.8M]
  |  Branch (757:54): [True: 89.9k, False: 2.70M]
  ------------------
  758|  89.9k|                {
  759|  89.9k|                    other_tags_[stringref_tag] = false;
  760|  89.9k|                    if (val >= stringref_map_stack_.back().size())
  ------------------
  |  Branch (760:25): [True: 88, False: 89.8k]
  ------------------
  761|     88|                    {
  762|     88|                        ec = cbor_errc::stringref_too_large;
  763|     88|                        more_ = false;
  764|     88|                        return;
  765|     88|                    }
  766|  89.8k|                    auto index = static_cast<typename stringref_map::size_type>(val);
  767|  89.8k|                    if (index != val)
  ------------------
  |  Branch (767:25): [True: 0, False: 89.8k]
  ------------------
  768|      0|                    {
  769|      0|                        ec = cbor_errc::number_too_large;
  770|      0|                        more_ = false;
  771|      0|                        return;
  772|      0|                    }
  773|  89.8k|                    auto& str = stringref_map_stack_.back().at(index);
  774|  89.8k|                    switch (str.type)
  775|  89.8k|                    {
  776|  4.12k|                        case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (776:25): [True: 4.12k, False: 85.7k]
  ------------------
  777|  4.12k|                        {
  778|  4.12k|                            handle_string(visitor, jsoncons::string_view(str.str.data(),str.str.length()),ec);
  779|  4.12k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.12k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.12k]
  |  |  ------------------
  ------------------
  780|      0|                            {
  781|      0|                                return;
  782|      0|                            }
  783|  4.12k|                            break;
  784|  4.12k|                        }
  785|  85.7k|                        case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (785:25): [True: 85.7k, False: 4.12k]
  ------------------
  786|  85.7k|                        {
  787|  85.7k|                            read_byte_string_from_buffer read(byte_string_view(str.bytes));
  788|  85.7k|                            read_byte_string(read, visitor, ec);
  789|  85.7k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  85.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 85.7k]
  |  |  ------------------
  ------------------
  790|      0|                            {
  791|      0|                                return;
  792|      0|                            }
  793|  85.7k|                            break;
  794|  85.7k|                        }
  795|  85.7k|                        default:
  ------------------
  |  Branch (795:25): [True: 0, False: 89.8k]
  ------------------
  796|      0|                        {
  797|      0|                            ec = cbor_errc::invalid_major_type;
  798|      0|                            more_ = false;
  799|      0|                            return;
  800|  85.7k|                        }
  801|  89.8k|                    }
  802|  89.8k|                }
  803|  42.8M|                else
  804|  42.8M|                {
  805|  42.8M|                    semantic_tag tag = semantic_tag::none;
  806|  42.8M|                    if (other_tags_[item_tag])
  ------------------
  |  Branch (806:25): [True: 73.8k, False: 42.8M]
  ------------------
  807|  73.8k|                    {
  808|  73.8k|                        if (raw_tag_ == 1)
  ------------------
  |  Branch (808:29): [True: 3.04k, False: 70.8k]
  ------------------
  809|  3.04k|                        {
  810|  3.04k|                            tag = semantic_tag::epoch_second;
  811|  3.04k|                        }
  812|  73.8k|                        other_tags_[item_tag] = false;
  813|  73.8k|                    }
  814|  42.8M|                    visitor.uint64_value(val, tag, *this, ec);
  815|  42.8M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  42.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 42.8M]
  |  |  ------------------
  ------------------
  816|      0|                    {
  817|      0|                        return;
  818|      0|                    }
  819|  42.8M|                    more_ = !cursor_mode_;
  820|  42.8M|                }
  821|  42.9M|                break;
  822|  42.9M|            }
  823|  42.9M|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (823:13): [True: 10.5M, False: 80.4M]
  ------------------
  824|  10.5M|            {
  825|  10.5M|                source_.ignore(1);
  826|  10.5M|                read_negative_integer (info, visitor, ec);
  827|  10.5M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  10.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 125, False: 10.5M]
  |  |  ------------------
  ------------------
  828|    125|                {
  829|    125|                    return;
  830|    125|                }
  831|  10.5M|                break;
  832|  10.5M|            }
  833|  10.5M|            case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (833:13): [True: 9.41M, False: 81.6M]
  ------------------
  834|  9.41M|            {
  835|  9.41M|                read_byte_string_from_source read(this);
  836|  9.41M|                read_byte_string(read, visitor, ec);
  837|  9.41M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.41M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.18k, False: 9.41M]
  |  |  ------------------
  ------------------
  838|  1.18k|                {
  839|  1.18k|                    return;
  840|  1.18k|                }
  841|  9.41M|                break;
  842|  9.41M|            }
  843|  9.41M|            case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (843:13): [True: 409k, False: 90.6M]
  ------------------
  844|   409k|            {
  845|   409k|                source_.ignore(1);
  846|   409k|                auto sv = read_text_string_view(info, ec);
  847|   409k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   409k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 629, False: 408k]
  |  |  ------------------
  ------------------
  848|    629|                {
  849|    629|                    return;
  850|    629|                }
  851|   408k|                auto result = unicode_traits::validate(sv.data(),sv.size());
  852|   408k|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (852:21): [True: 535, False: 408k]
  ------------------
  853|    535|                {
  854|    535|                    ec = cbor_errc::invalid_utf8_text_string;
  855|    535|                    more_ = false;
  856|    535|                    return;
  857|    535|                }
  858|   408k|                handle_string(visitor, sv, ec);
  859|   408k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   408k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 408k]
  |  |  ------------------
  ------------------
  860|      0|                {
  861|      0|                    return;
  862|      0|                }
  863|   408k|                break;
  864|   408k|            }
  865|   408k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (865:13): [True: 0, False: 91.0M]
  ------------------
  866|      0|            {
  867|      0|                JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
  868|      0|                break;
  869|   408k|            }
  870|  5.80M|            case jsoncons::cbor::detail::cbor_major_type::simple:
  ------------------
  |  Branch (870:13): [True: 5.80M, False: 85.2M]
  ------------------
  871|  5.80M|            {
  872|  5.80M|                switch (info)
  873|  5.80M|                {
  874|   496k|                    case 0x14:
  ------------------
  |  Branch (874:21): [True: 496k, False: 5.31M]
  ------------------
  875|   496k|                        source_.ignore(1);
  876|   496k|                        visitor.bool_value(false, semantic_tag::none, *this, ec);
  877|   496k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   496k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 496k]
  |  |  ------------------
  ------------------
  878|      0|                        {
  879|      0|                            return;
  880|      0|                        }
  881|   496k|                        more_ = !cursor_mode_;
  882|   496k|                        break;
  883|  4.60M|                    case 0x15:
  ------------------
  |  Branch (883:21): [True: 4.60M, False: 1.19M]
  ------------------
  884|  4.60M|                        source_.ignore(1);
  885|  4.60M|                        visitor.bool_value(true, semantic_tag::none, *this, ec);
  886|  4.60M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.60M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.60M]
  |  |  ------------------
  ------------------
  887|      0|                        {
  888|      0|                            return;
  889|      0|                        }
  890|  4.60M|                        more_ = !cursor_mode_;
  891|  4.60M|                        break;
  892|   113k|                    case 0x16:
  ------------------
  |  Branch (892:21): [True: 113k, False: 5.69M]
  ------------------
  893|   113k|                        source_.ignore(1);
  894|   113k|                        visitor.null_value(semantic_tag::none, *this, ec);
  895|   113k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   113k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 113k]
  |  |  ------------------
  ------------------
  896|      0|                        {
  897|      0|                            return;
  898|      0|                        }
  899|   113k|                        more_ = !cursor_mode_;
  900|   113k|                        break;
  901|   106k|                    case 0x17:
  ------------------
  |  Branch (901:21): [True: 106k, False: 5.70M]
  ------------------
  902|   106k|                        source_.ignore(1);
  903|   106k|                        visitor.null_value(semantic_tag::undefined, *this, ec);
  904|   106k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   106k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 106k]
  |  |  ------------------
  ------------------
  905|      0|                        {
  906|      0|                            return;
  907|      0|                        }
  908|   106k|                        more_ = !cursor_mode_;
  909|   106k|                        break;
  910|   154k|                    case 0x19: // Half-Precision Float (two-byte IEEE 754)
  ------------------
  |  Branch (910:21): [True: 154k, False: 5.65M]
  ------------------
  911|   154k|                    {
  912|   154k|                        source_.ignore(1);
  913|   154k|                        uint64_t val = read_unsigned_integer(info, ec);
  914|   154k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   154k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 78, False: 154k]
  |  |  ------------------
  ------------------
  915|     78|                        {
  916|     78|                            return;
  917|     78|                        }
  918|   154k|                        visitor.half_value(static_cast<uint16_t>(val), semantic_tag::none, *this, ec);
  919|   154k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   154k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 154k]
  |  |  ------------------
  ------------------
  920|      0|                        {
  921|      0|                            return;
  922|      0|                        }
  923|   154k|                        more_ = !cursor_mode_;
  924|   154k|                        break;
  925|   154k|                    }
  926|   281k|                    case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (926:21): [True: 281k, False: 5.52M]
  ------------------
  927|   327k|                    case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (927:21): [True: 46.2k, False: 5.76M]
  ------------------
  928|   327k|                    {
  929|   327k|                        source_.ignore(1);
  930|   327k|                        double val = read_double(info, ec);
  931|   327k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   327k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 134, False: 327k]
  |  |  ------------------
  ------------------
  932|    134|                        {
  933|    134|                            return;
  934|    134|                        }
  935|   327k|                        semantic_tag tag = semantic_tag::none;
  936|   327k|                        if (other_tags_[item_tag])
  ------------------
  |  Branch (936:29): [True: 5.71k, False: 321k]
  ------------------
  937|  5.71k|                        {
  938|  5.71k|                            if (raw_tag_ == 1)
  ------------------
  |  Branch (938:33): [True: 1.31k, False: 4.39k]
  ------------------
  939|  1.31k|                            {
  940|  1.31k|                                tag = semantic_tag::epoch_second;
  941|  1.31k|                            }
  942|  5.71k|                            other_tags_[item_tag] = false;
  943|  5.71k|                        }
  944|   327k|                        visitor.double_value(val, tag, *this, ec);
  945|   327k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   327k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 327k]
  |  |  ------------------
  ------------------
  946|      0|                        {
  947|      0|                            return;
  948|      0|                        }
  949|   327k|                        more_ = !cursor_mode_;
  950|   327k|                        break;
  951|   327k|                    }
  952|  1.65k|                    default:
  ------------------
  |  Branch (952:21): [True: 1.65k, False: 5.80M]
  ------------------
  953|  1.65k|                    {
  954|  1.65k|                        ec = cbor_errc::unknown_type;
  955|  1.65k|                        more_ = false;
  956|  1.65k|                        return;
  957|   327k|                    }
  958|  5.80M|                }
  959|  5.80M|                break;
  960|  5.80M|            }
  961|  5.80M|            case jsoncons::cbor::detail::cbor_major_type::array:
  ------------------
  |  Branch (961:13): [True: 1.07M, False: 89.9M]
  ------------------
  962|  1.07M|            {
  963|  1.07M|                if (other_tags_[item_tag])
  ------------------
  |  Branch (963:21): [True: 361k, False: 716k]
  ------------------
  964|   361k|                {
  965|   361k|                    switch (raw_tag_)
  966|   361k|                    {
  967|  94.3k|                        case 0x04:
  ------------------
  |  Branch (967:25): [True: 94.3k, False: 267k]
  ------------------
  968|  94.3k|                            source_.ignore(1);
  969|  94.3k|                            text_buffer_.clear();
  970|  94.3k|                            read_bigdecimal(info, text_buffer_, ec);
  971|  94.3k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  94.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 265, False: 94.1k]
  |  |  ------------------
  ------------------
  972|    265|                            {
  973|    265|                                return;
  974|    265|                            }
  975|  94.1k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
  976|  94.1k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  94.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 94.1k]
  |  |  ------------------
  ------------------
  977|      0|                            {
  978|      0|                                return;
  979|      0|                            }
  980|  94.1k|                            more_ = !cursor_mode_;
  981|  94.1k|                            break;
  982|   144k|                        case 0x05:
  ------------------
  |  Branch (982:25): [True: 144k, False: 217k]
  ------------------
  983|   144k|                            source_.ignore(1);
  984|   144k|                            text_buffer_.clear();
  985|   144k|                            read_bigfloat(info, text_buffer_, ec);
  986|   144k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   144k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 213, False: 143k]
  |  |  ------------------
  ------------------
  987|    213|                            {
  988|    213|                                return;
  989|    213|                            }
  990|   143k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
  991|   143k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   143k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 143k]
  |  |  ------------------
  ------------------
  992|      0|                            {
  993|      0|                                return;
  994|      0|                            }
  995|   143k|                            more_ = !cursor_mode_;
  996|   143k|                            break;
  997|  55.7k|                        case 40: // row-major storage
  ------------------
  |  Branch (997:25): [True: 55.7k, False: 306k]
  ------------------
  998|  55.7k|                            order_ = mdarray_order::row_major;
  999|  55.7k|                            read_mdarray_header(visitor, ec);
 1000|  55.7k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  55.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.09k, False: 54.6k]
  |  |  ------------------
  ------------------
 1001|  1.09k|                            {
 1002|  1.09k|                                return;
 1003|  1.09k|                            }
 1004|  54.6k|                            break;
 1005|  54.6k|                        case 1040: // column-major storage
  ------------------
  |  Branch (1005:25): [True: 14.6k, False: 347k]
  ------------------
 1006|  14.6k|                            order_ = mdarray_order::column_major;
 1007|  14.6k|                            read_mdarray_header(visitor, ec);
 1008|  14.6k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  14.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 85, False: 14.5k]
  |  |  ------------------
  ------------------
 1009|     85|                            {
 1010|     85|                                return;
 1011|     85|                            }
 1012|  14.5k|                            break;
 1013|  53.1k|                        default:
  ------------------
  |  Branch (1013:25): [True: 53.1k, False: 308k]
  ------------------
 1014|  53.1k|                            source_.ignore(1);
 1015|  53.1k|                            begin_array(info, visitor, ec);
 1016|  53.1k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  53.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 53.1k]
  |  |  ------------------
  ------------------
 1017|      0|                            {
 1018|      0|                                return;
 1019|      0|                            }
 1020|  53.1k|                            break;
 1021|   361k|                    }
 1022|   360k|                    other_tags_[item_tag] = false;
 1023|   360k|                }
 1024|   716k|                else
 1025|   716k|                {
 1026|   716k|                    source_.ignore(1);
 1027|   716k|                    begin_array(info, visitor, ec);
 1028|   716k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   716k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 77, False: 716k]
  |  |  ------------------
  ------------------
 1029|     77|                    {
 1030|     77|                        return;
 1031|     77|                    }
 1032|   716k|                }
 1033|  1.07M|                break;
 1034|  1.07M|            }
 1035|  20.7M|            case jsoncons::cbor::detail::cbor_major_type::map:
  ------------------
  |  Branch (1035:13): [True: 20.7M, False: 70.2M]
  ------------------
 1036|  20.7M|            {
 1037|  20.7M|                source_.ignore(1);
 1038|  20.7M|                begin_object(info, visitor, ec);
 1039|  20.7M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 41, False: 20.7M]
  |  |  ------------------
  ------------------
 1040|     41|                {
 1041|     41|                    return;
 1042|     41|                }
 1043|  20.7M|                break;
 1044|  20.7M|            }
 1045|  20.7M|            default:
  ------------------
  |  Branch (1045:13): [True: 0, False: 91.0M]
  ------------------
 1046|      0|                ec = cbor_errc::invalid_major_type;
 1047|      0|                more_ = false;
 1048|      0|                return;
 1049|  91.0M|        }
 1050|  91.0M|        other_tags_[item_tag] = false;
 1051|  91.0M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE9read_tagsERNS4_10error_codeE:
 2212|  91.0M|    {
 2213|  91.0M|        auto c = source_.peek();
 2214|  91.0M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  91.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.34k, False: 91.0M]
  |  |  ------------------
  ------------------
 2215|  2.34k|        {
 2216|  2.34k|            ec = cbor_errc::unexpected_eof;
 2217|  2.34k|            more_ = false;
 2218|  2.34k|            return;
 2219|  2.34k|        }
 2220|  91.0M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 2221|  91.0M|        uint8_t info = get_additional_information(c.value);
 2222|  91.0M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  91.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 337, False: 91.0M]
  |  |  |  Branch (79:50): [True: 204k, False: 90.8M]
  |  |  |  Branch (79:50): [True: 337, False: 204k]
  |  |  ------------------
  ------------------
 2223|    337|        {
 2224|    337|            ec = cbor_errc::reserved_additional_info;
 2225|    337|            more_ = false;
 2226|    337|            return;
 2227|    337|        }
 2228|       |
 2229|  92.7M|        while (major_type == jsoncons::cbor::detail::cbor_major_type::semantic_tag)
  ------------------
  |  Branch (2229:16): [True: 1.68M, False: 91.0M]
  ------------------
 2230|  1.68M|        {
 2231|  1.68M|            source_.ignore(1);
 2232|  1.68M|            uint64_t val = read_unsigned_integer(info, ec);
 2233|  1.68M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.68M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 231, False: 1.68M]
  |  |  ------------------
  ------------------
 2234|    231|            {
 2235|    231|                return;
 2236|    231|            }
 2237|  1.68M|            switch(val)
 2238|  1.68M|            {
 2239|  95.3k|                case 25: // stringref
  ------------------
  |  Branch (2239:17): [True: 95.3k, False: 1.58M]
  ------------------
 2240|  95.3k|                    other_tags_[stringref_tag] = true;
 2241|  95.3k|                    break;
 2242|  25.4k|                case 256: // stringref-namespace
  ------------------
  |  Branch (2242:17): [True: 25.4k, False: 1.65M]
  ------------------
 2243|  25.4k|                    other_tags_[stringref_namespace_tag] = true;
 2244|  25.4k|                    break;
 2245|  1.55M|                default:
  ------------------
  |  Branch (2245:17): [True: 1.55M, False: 120k]
  ------------------
 2246|  1.55M|                    other_tags_[item_tag] = true;
 2247|  1.55M|                    raw_tag_ = val;
 2248|  1.55M|                    break;
 2249|  1.68M|            }
 2250|  1.68M|            c = source_.peek();
 2251|  1.68M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  1.68M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 327, False: 1.67M]
  |  |  ------------------
  ------------------
 2252|    327|            {
 2253|    327|                ec = cbor_errc::unexpected_eof;
 2254|    327|                more_ = false;
 2255|    327|                return;
 2256|    327|            }
 2257|  1.67M|            major_type = get_major_type(c.value);
 2258|  1.67M|        }
 2259|  91.0M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE14get_major_typeEh:
 2198|   194M|    {
 2199|   194M|        static constexpr uint8_t major_type_shift = 0x05;
 2200|   194M|        uint8_t value = type >> major_type_shift;
 2201|   194M|        return static_cast<jsoncons::cbor::detail::cbor_major_type>(value);
 2202|   194M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE26get_additional_informationEh:
 2205|   211M|    {
 2206|   211M|        static constexpr uint8_t additional_information_mask = (1U << 5) - 1;
 2207|   211M|        uint8_t value = type & additional_information_mask;
 2208|   211M|        return value;
 2209|   211M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE21read_unsigned_integerEhRNS4_10error_codeE:
 1728|  95.0M|    {
 1729|  95.0M|        switch (info)
 1730|  95.0M|        {
 1731|  93.9M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  93.9M|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 17.0M, False: 77.9M]
  |  |  |  Branch (18:20): [True: 646k, False: 94.3M]
  |  |  |  Branch (18:30): [True: 246k, False: 94.7M]
  |  |  |  Branch (18:40): [True: 400k, False: 94.6M]
  |  |  |  Branch (18:50): [True: 5.15M, False: 89.8M]
  |  |  |  Branch (18:60): [True: 142k, False: 94.8M]
  |  |  |  Branch (18:70): [True: 206k, False: 94.8M]
  |  |  |  Branch (18:80): [True: 152k, False: 94.8M]
  |  |  |  Branch (18:90): [True: 32.1k, False: 94.9M]
  |  |  |  Branch (18:100): [True: 481k, False: 94.5M]
  |  |  |  Branch (18:110): [True: 9.87M, False: 85.1M]
  |  |  |  Branch (18:120): [True: 33.3k, False: 94.9M]
  |  |  |  Branch (18:130): [True: 99.3k, False: 94.9M]
  |  |  |  Branch (18:140): [True: 81.2k, False: 94.9M]
  |  |  |  Branch (18:150): [True: 151k, False: 94.8M]
  |  |  |  Branch (18:160): [True: 178k, False: 94.8M]
  |  |  |  Branch (18:170): [True: 380k, False: 94.6M]
  |  |  |  Branch (18:180): [True: 149k, False: 94.8M]
  |  |  |  Branch (18:190): [True: 34.2k, False: 94.9M]
  |  |  |  Branch (18:200): [True: 68.6k, False: 94.9M]
  |  |  |  Branch (18:210): [True: 61.3k, False: 94.9M]
  |  |  |  Branch (18:220): [True: 51.1k, False: 94.9M]
  |  |  ------------------
  ------------------
  |  Branch (1731:13): [True: 58.2M, False: 36.8M]
  ------------------
 1732|  93.9M|            {
 1733|  93.9M|                return info;
 1734|  1.91G|            }
 1735|   737k|            case 0x18: // Unsigned integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1735:13): [True: 737k, False: 94.2M]
  ------------------
 1736|   737k|            {
 1737|   737k|                uint8_t b;
 1738|   737k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1738:21): [True: 158, False: 737k]
  ------------------
 1739|    158|                {
 1740|    158|                    ec = cbor_errc::unexpected_eof;
 1741|    158|                    return uint64_t{};
 1742|    158|                }
 1743|   737k|                return b;
 1744|   737k|            }
 1745|   290k|            case 0x19: // Unsigned integer (two-byte uint16_t follows)
  ------------------
  |  Branch (1745:13): [True: 290k, False: 94.7M]
  ------------------
 1746|   290k|            {
 1747|   290k|                uint8_t buf[sizeof(uint16_t)];
 1748|   290k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1748:21): [True: 132, False: 290k]
  ------------------
 1749|    132|                {
 1750|    132|                    ec = cbor_errc::unexpected_eof;
 1751|    132|                    return uint64_t{};
 1752|    132|                }
 1753|   290k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1754|   290k|                return u;
 1755|   290k|            }
 1756|  14.5k|            case 0x1a: // Unsigned integer (four-byte uint32_t follows)
  ------------------
  |  Branch (1756:13): [True: 14.5k, False: 94.9M]
  ------------------
 1757|  14.5k|            {
 1758|  14.5k|                uint8_t buf[sizeof(uint32_t)];
 1759|  14.5k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1759:21): [True: 27, False: 14.4k]
  ------------------
 1760|     27|                {
 1761|     27|                    ec = cbor_errc::unexpected_eof;
 1762|     27|                    return uint64_t{};
 1763|     27|                }
 1764|  14.4k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1765|  14.4k|                return u;
 1766|  14.5k|            }
 1767|  17.8k|            case 0x1b: // Unsigned integer (eight-byte uint64_t follows)
  ------------------
  |  Branch (1767:13): [True: 17.8k, False: 94.9M]
  ------------------
 1768|  17.8k|            {
 1769|  17.8k|                uint8_t buf[sizeof(uint64_t)];
 1770|  17.8k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1770:21): [True: 108, False: 17.7k]
  ------------------
 1771|    108|                {
 1772|    108|                    ec = cbor_errc::unexpected_eof;
 1773|    108|                    return uint64_t{};
 1774|    108|                }
 1775|  17.7k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1776|  17.7k|                return u;
 1777|  17.8k|            }
 1778|    200|            default:
  ------------------
  |  Branch (1778:13): [True: 200, False: 95.0M]
  ------------------
 1779|    200|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (1779:22): [True: 165, False: 35]
  ------------------
 1780|    200|                return uint64_t{};
 1781|  95.0M|        }
 1782|  95.0M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13handle_stringERNS_21basic_generic_visitorIcEERKNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERNS4_10error_codeE:
 2262|   412k|    {
 2263|   412k|        semantic_tag tag = semantic_tag::none;
 2264|   412k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2264:13): [True: 6.55k, False: 405k]
  ------------------
 2265|  6.55k|        {
 2266|  6.55k|            switch (raw_tag_)
 2267|  6.55k|            {
 2268|    435|                case 0:
  ------------------
  |  Branch (2268:17): [True: 435, False: 6.12k]
  ------------------
 2269|    435|                    tag = semantic_tag::datetime;
 2270|    435|                    break;
 2271|    290|                case 32:
  ------------------
  |  Branch (2271:17): [True: 290, False: 6.26k]
  ------------------
 2272|    290|                    tag = semantic_tag::uri;
 2273|    290|                    break;
 2274|    274|                case 33:
  ------------------
  |  Branch (2274:17): [True: 274, False: 6.28k]
  ------------------
 2275|    274|                    tag = semantic_tag::base64url;
 2276|    274|                    break;
 2277|  1.00k|                case 34:
  ------------------
  |  Branch (2277:17): [True: 1.00k, False: 5.54k]
  ------------------
 2278|  1.00k|                    tag = semantic_tag::base64;
 2279|  1.00k|                    break;
 2280|  4.55k|                default:
  ------------------
  |  Branch (2280:17): [True: 4.55k, False: 2.00k]
  ------------------
 2281|  4.55k|                    break;
 2282|  6.55k|            }
 2283|  6.55k|            other_tags_[item_tag] = false;
 2284|  6.55k|        }
 2285|   412k|        visitor.string_value(v, tag, *this, ec);
 2286|   412k|        more_ = !cursor_mode_;
 2287|   412k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_bufferC2ERKNS_16byte_string_viewE:
  291|  85.7k|            : bytes(b)
  292|  85.7k|        {
  293|  85.7k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE16read_byte_stringINS7_28read_byte_string_from_bufferEEEvT_RNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 2304|  85.7k|    {
 2305|  85.7k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2305:13): [True: 72.0k, False: 13.7k]
  ------------------
 2306|  72.0k|        {
 2307|  72.0k|            switch (raw_tag_)
 2308|  72.0k|            {
 2309|  5.46k|                case 0x2:
  ------------------
  |  Branch (2309:17): [True: 5.46k, False: 66.5k]
  ------------------
 2310|  5.46k|                {
 2311|  5.46k|                    auto bytes = read.view(ec);
 2312|  5.46k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.46k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.46k]
  |  |  ------------------
  ------------------
 2313|      0|                    {
 2314|      0|                        more_ = false;
 2315|      0|                        return;
 2316|      0|                    }
 2317|  5.46k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2318|  5.46k|                    text_buffer_.clear();
 2319|  5.46k|                    b.append_to_buffer(text_buffer_);
 2320|  5.46k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2321|  5.46k|                    more_ = !cursor_mode_;
 2322|  5.46k|                    break;
 2323|  5.46k|                }
 2324|  1.00k|                case 0x3:
  ------------------
  |  Branch (2324:17): [True: 1.00k, False: 71.0k]
  ------------------
 2325|  1.00k|                {
 2326|  1.00k|                    auto bytes = read.view(ec);
 2327|  1.00k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.00k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.00k]
  |  |  ------------------
  ------------------
 2328|      0|                    {
 2329|      0|                        more_ = false;
 2330|      0|                        return;
 2331|      0|                    }
 2332|  1.00k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2333|  1.00k|                    b = -1 - b;
 2334|  1.00k|                    text_buffer_.clear();
 2335|  1.00k|                    b.append_to_buffer(text_buffer_);
 2336|  1.00k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2337|  1.00k|                    more_ = !cursor_mode_;
 2338|  1.00k|                    break;
 2339|  1.00k|                }
 2340|    331|                case 0x15:
  ------------------
  |  Branch (2340:17): [True: 331, False: 71.6k]
  ------------------
 2341|    652|                case 0x16:
  ------------------
  |  Branch (2341:17): [True: 321, False: 71.6k]
  ------------------
 2342|    969|                case 0x17:
  ------------------
  |  Branch (2342:17): [True: 317, False: 71.6k]
  ------------------
 2343|    969|                {
 2344|    969|                    auto bytes = read.view(ec);
 2345|    969|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    969|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 969]
  |  |  ------------------
  ------------------
 2346|      0|                    {
 2347|      0|                        more_ = false;
 2348|      0|                        return;
 2349|      0|                    }
 2350|    969|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2350:46): [True: 331, False: 638]
  ------------------
 2351|    969|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2351:27): [True: 321, False: 317]
  ------------------
 2352|    638|                        : semantic_tag::base16;
 2353|    969|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2354|    969|                    more_ = !cursor_mode_;
 2355|    969|                    break;
 2356|    969|                }
 2357|  2.13k|                case 0x40:
  ------------------
  |  Branch (2357:17): [True: 2.13k, False: 69.8k]
  ------------------
 2358|  2.13k|                {
 2359|  2.13k|                    array_tag_ = typed_array_tags::uint8;
 2360|  2.13k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2361|  2.13k|                    read(array_buffer, ec);
 2362|  2.13k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.13k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.13k]
  |  |  ------------------
  ------------------
 2363|      0|                    {
 2364|      0|                        more_ = false;
 2365|      0|                        return;
 2366|      0|                    }
 2367|  2.13k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2368|  2.13k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2368:25): [True: 1.06k, False: 1.06k]
  |  Branch (2368:42): [True: 0, False: 1.06k]
  ------------------
 2369|      0|                    {
 2370|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2370:29): [True: 0, False: 0]
  ------------------
 2371|      0|                        {
 2372|      0|                            ec = cbor_errc::bad_extents;
 2373|      0|                            more_ = false;
 2374|      0|                            return;
 2375|      0|                        }
 2376|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2377|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2378|      0|                        typed_array_stack_.push_back(iter);
 2379|      0|                        iter->next(visitor, *this, ec);
 2380|      0|                    }
 2381|  2.13k|                    else
 2382|  2.13k|                    {
 2383|  2.13k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2384|  2.13k|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2385|  2.13k|                        typed_array_stack_.push_back(iter);
 2386|  2.13k|                        iter->next(visitor, *this, ec);
 2387|  2.13k|                    }
 2388|  2.13k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2389|  2.13k|                    more_ = !cursor_mode_;
 2390|  2.13k|                    break;
 2391|  2.13k|                }
 2392|    910|                case 0x44:
  ------------------
  |  Branch (2392:17): [True: 910, False: 71.0k]
  ------------------
 2393|    910|                {
 2394|    910|                    array_tag_ = typed_array_tags::uint8;
 2395|    910|                    typed_array_tag_ = semantic_tag::clamped;
 2396|    910|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2397|    910|                    read(array_buffer, ec);
 2398|    910|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    910|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 910]
  |  |  ------------------
  ------------------
 2399|      0|                    {
 2400|      0|                        more_ = false;
 2401|      0|                        return;
 2402|      0|                    }
 2403|    910|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2404|    910|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2404:25): [True: 441, False: 469]
  |  Branch (2404:42): [True: 0, False: 441]
  ------------------
 2405|      0|                    {
 2406|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2406:29): [True: 0, False: 0]
  ------------------
 2407|      0|                        {
 2408|      0|                            ec = cbor_errc::bad_extents;
 2409|      0|                            more_ = false;
 2410|      0|                            return;
 2411|      0|                        }
 2412|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2413|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2414|      0|                        typed_array_stack_.push_back(iter);
 2415|      0|                        iter->next(visitor, *this, ec);
 2416|      0|                    }
 2417|    910|                    else
 2418|    910|                    {
 2419|    910|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2420|    910|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2421|    910|                        typed_array_stack_.push_back(iter);
 2422|    910|                        iter->next(visitor, *this, ec);
 2423|    910|                    }
 2424|    910|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2425|    910|                    more_ = !cursor_mode_;
 2426|    910|                    break;
 2427|    910|                }
 2428|  2.00k|                case 0x41:
  ------------------
  |  Branch (2428:17): [True: 2.00k, False: 70.0k]
  ------------------
 2429|  3.41k|                case 0x45:
  ------------------
  |  Branch (2429:17): [True: 1.41k, False: 70.5k]
  ------------------
 2430|  3.41k|                {
 2431|  3.41k|                    array_tag_ = typed_array_tags::uint16;
 2432|  3.41k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2433|  3.41k|                    read(array_buffer, ec);
 2434|  3.41k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.41k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.41k]
  |  |  ------------------
  ------------------
 2435|      0|                    {
 2436|      0|                        more_ = false;
 2437|      0|                        return;
 2438|      0|                    }
 2439|  3.41k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2440|  3.41k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2441|  3.41k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2442|  3.41k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2442:25): [True: 2.00k, False: 1.41k]
  ------------------
 2443|  2.00k|                    {
 2444|  37.3k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2444:49): [True: 35.3k, False: 2.00k]
  ------------------
 2445|  35.3k|                        {
 2446|  35.3k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2447|  35.3k|                        }
 2448|  2.00k|                    }
 2449|  3.41k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2449:25): [True: 1.66k, False: 1.74k]
  |  Branch (2449:42): [True: 0, False: 1.66k]
  ------------------
 2450|      0|                    {
 2451|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2451:29): [True: 0, False: 0]
  ------------------
 2452|      0|                        {
 2453|      0|                            ec = cbor_errc::bad_extents;
 2454|      0|                            more_ = false;
 2455|      0|                            return;
 2456|      0|                        }
 2457|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2458|      0|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2459|      0|                        typed_array_stack_.push_back(iter);
 2460|      0|                        iter->next(visitor, *this, ec);
 2461|      0|                    }
 2462|  3.41k|                    else
 2463|  3.41k|                    {
 2464|  3.41k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2465|  3.41k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2466|  3.41k|                        typed_array_stack_.push_back(iter);
 2467|  3.41k|                        iter->next(visitor, *this, ec);
 2468|  3.41k|                    }
 2469|  3.41k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2470|  3.41k|                    more_ = !cursor_mode_;
 2471|  3.41k|                    break;
 2472|  3.41k|                }
 2473|  1.13k|                case 0x42:
  ------------------
  |  Branch (2473:17): [True: 1.13k, False: 70.8k]
  ------------------
 2474|  1.95k|                case 0x46:
  ------------------
  |  Branch (2474:17): [True: 816, False: 71.1k]
  ------------------
 2475|  1.95k|                {
 2476|  1.95k|                    array_tag_ = typed_array_tags::uint32;
 2477|  1.95k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2478|  1.95k|                    read(array_buffer, ec);
 2479|  1.95k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.95k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.95k]
  |  |  ------------------
  ------------------
 2480|      0|                    {
 2481|      0|                        more_ = false;
 2482|      0|                        return;
 2483|      0|                    }
 2484|  1.95k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2485|  1.95k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2486|  1.95k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2487|  1.95k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2487:25): [True: 1.13k, False: 816]
  ------------------
 2488|  1.13k|                    {
 2489|  8.46k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2489:49): [True: 7.33k, False: 1.13k]
  ------------------
 2490|  7.33k|                        {
 2491|  7.33k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2492|  7.33k|                        }
 2493|  1.13k|                    }
 2494|  1.95k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2494:25): [True: 962, False: 989]
  |  Branch (2494:42): [True: 0, False: 962]
  ------------------
 2495|      0|                    {
 2496|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2496:29): [True: 0, False: 0]
  ------------------
 2497|      0|                        {
 2498|      0|                            ec = cbor_errc::bad_extents;
 2499|      0|                            more_ = false;
 2500|      0|                            return;
 2501|      0|                        }
 2502|      0|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2503|      0|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2504|      0|                        typed_array_stack_.push_back(iter);
 2505|      0|                        iter->next(visitor, *this, ec);
 2506|      0|                    }
 2507|  1.95k|                    else
 2508|  1.95k|                    {
 2509|  1.95k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2510|  1.95k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2511|  1.95k|                        typed_array_stack_.push_back(iter);
 2512|  1.95k|                        iter->next(visitor, *this, ec);
 2513|  1.95k|                    }
 2514|  1.95k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2515|  1.95k|                    more_ = !cursor_mode_;
 2516|  1.95k|                    break;
 2517|  1.95k|                }
 2518|  2.98k|                case 0x43:
  ------------------
  |  Branch (2518:17): [True: 2.98k, False: 69.0k]
  ------------------
 2519|  25.2k|                case 0x47:
  ------------------
  |  Branch (2519:17): [True: 22.2k, False: 49.7k]
  ------------------
 2520|  25.2k|                {
 2521|  25.2k|                    array_tag_ = typed_array_tags::uint64;
 2522|  25.2k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2523|  25.2k|                    read(array_buffer, ec);
 2524|  25.2k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  25.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 25.2k]
  |  |  ------------------
  ------------------
 2525|      0|                    {
 2526|      0|                        more_ = false;
 2527|      0|                        return;
 2528|      0|                    }
 2529|  25.2k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2530|  25.2k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2531|  25.2k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2532|  25.2k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2532:25): [True: 2.98k, False: 22.2k]
  ------------------
 2533|  2.98k|                    {
 2534|  14.4k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2534:49): [True: 11.4k, False: 2.98k]
  ------------------
 2535|  11.4k|                        {
 2536|  11.4k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2537|  11.4k|                        }
 2538|  2.98k|                    }
 2539|  25.2k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2539:25): [True: 12.6k, False: 12.6k]
  |  Branch (2539:42): [True: 0, False: 12.6k]
  ------------------
 2540|      0|                    {
 2541|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2541:29): [True: 0, False: 0]
  ------------------
 2542|      0|                        {
 2543|      0|                            ec = cbor_errc::bad_extents;
 2544|      0|                            more_ = false;
 2545|      0|                            return;
 2546|      0|                        }
 2547|      0|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2548|      0|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2549|      0|                        typed_array_stack_.push_back(iter);
 2550|      0|                        iter->next(visitor, *this, ec);
 2551|      0|                    }
 2552|  25.2k|                    else
 2553|  25.2k|                    {
 2554|  25.2k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2555|  25.2k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2556|  25.2k|                        typed_array_stack_.push_back(iter);
 2557|  25.2k|                        iter->next(visitor, *this, ec);
 2558|  25.2k|                    }
 2559|  25.2k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2560|  25.2k|                    more_ = !cursor_mode_;
 2561|  25.2k|                    break;
 2562|  25.2k|                }
 2563|  1.79k|                case 0x48:
  ------------------
  |  Branch (2563:17): [True: 1.79k, False: 70.2k]
  ------------------
 2564|  1.79k|                {
 2565|  1.79k|                    array_tag_ = typed_array_tags::int8;
 2566|  1.79k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2567|  1.79k|                    read(array_buffer, ec);
 2568|  1.79k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.79k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.79k]
  |  |  ------------------
  ------------------
 2569|      0|                    {
 2570|      0|                        more_ = false;
 2571|      0|                        return;
 2572|      0|                    }
 2573|  1.79k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2574|  1.79k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2574:25): [True: 891, False: 900]
  |  Branch (2574:42): [True: 0, False: 891]
  ------------------
 2575|      0|                    {
 2576|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2576:29): [True: 0, False: 0]
  ------------------
 2577|      0|                        {
 2578|      0|                            ec = cbor_errc::bad_extents;
 2579|      0|                            more_ = false;
 2580|      0|                            return;
 2581|      0|                        }
 2582|      0|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2583|      0|                            typed_array_tags::int8, extents_, order_, alloc_);
 2584|      0|                        typed_array_stack_.push_back(iter);
 2585|      0|                        iter->next(visitor, *this, ec);
 2586|      0|                    }
 2587|  1.79k|                    else
 2588|  1.79k|                    {
 2589|  1.79k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2590|  1.79k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2591|  1.79k|                        typed_array_stack_.push_back(iter);
 2592|  1.79k|                        iter->next(visitor, *this, ec);
 2593|  1.79k|                    }
 2594|  1.79k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2595|  1.79k|                    more_ = !cursor_mode_;
 2596|  1.79k|                    break;
 2597|  1.79k|                }
 2598|    564|                case 0x49:
  ------------------
  |  Branch (2598:17): [True: 564, False: 71.4k]
  ------------------
 2599|  1.57k|                case 0x4d:
  ------------------
  |  Branch (2599:17): [True: 1.00k, False: 71.0k]
  ------------------
 2600|  1.57k|                {
 2601|  1.57k|                    array_tag_ = typed_array_tags::int16;
 2602|  1.57k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2603|  1.57k|                    read(array_buffer, ec);
 2604|  1.57k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.57k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.57k]
  |  |  ------------------
  ------------------
 2605|      0|                    {
 2606|      0|                        more_ = false;
 2607|      0|                        return;
 2608|      0|                    }
 2609|  1.57k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2610|  1.57k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2611|  1.57k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2612|  1.57k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2612:25): [True: 564, False: 1.00k]
  ------------------
 2613|    564|                    {
 2614|  3.72k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2614:49): [True: 3.15k, False: 564]
  ------------------
 2615|  3.15k|                        {
 2616|  3.15k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2617|  3.15k|                        }
 2618|    564|                    }
 2619|  1.57k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2619:25): [True: 779, False: 793]
  |  Branch (2619:42): [True: 0, False: 779]
  ------------------
 2620|      0|                    {
 2621|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2621:29): [True: 0, False: 0]
  ------------------
 2622|      0|                        {
 2623|      0|                            ec = cbor_errc::bad_extents;
 2624|      0|                            more_ = false;
 2625|      0|                            return;
 2626|      0|                        }
 2627|      0|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2628|      0|                            typed_array_tags::int16, extents_, order_, alloc_);
 2629|      0|                        typed_array_stack_.push_back(iter);
 2630|      0|                        iter->next(visitor, *this, ec);
 2631|      0|                    }
 2632|  1.57k|                    else
 2633|  1.57k|                    {
 2634|  1.57k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2635|  1.57k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2636|  1.57k|                        typed_array_stack_.push_back(iter);
 2637|  1.57k|                        iter->next(visitor, *this, ec);
 2638|  1.57k|                    }
 2639|  1.57k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2640|  1.57k|                    more_ = !cursor_mode_;
 2641|  1.57k|                    break;
 2642|  1.57k|                }
 2643|  3.92k|                case 0x4a:
  ------------------
  |  Branch (2643:17): [True: 3.92k, False: 68.0k]
  ------------------
 2644|  4.53k|                case 0x4e:
  ------------------
  |  Branch (2644:17): [True: 611, False: 71.3k]
  ------------------
 2645|  4.53k|                {
 2646|  4.53k|                    array_tag_ = typed_array_tags::int32;
 2647|  4.53k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2648|  4.53k|                    read(array_buffer, ec);
 2649|  4.53k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.53k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.53k]
  |  |  ------------------
  ------------------
 2650|      0|                    {
 2651|      0|                        more_ = false;
 2652|      0|                        return;
 2653|      0|                    }
 2654|  4.53k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2655|  4.53k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2656|  4.53k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2657|  4.53k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2657:25): [True: 3.92k, False: 611]
  ------------------
 2658|  3.92k|                    {
 2659|  54.2k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2659:49): [True: 50.3k, False: 3.92k]
  ------------------
 2660|  50.3k|                        {
 2661|  50.3k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2662|  50.3k|                        }
 2663|  3.92k|                    }
 2664|  4.53k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2664:25): [True: 2.25k, False: 2.28k]
  |  Branch (2664:42): [True: 0, False: 2.25k]
  ------------------
 2665|      0|                    {
 2666|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2666:29): [True: 0, False: 0]
  ------------------
 2667|      0|                        {
 2668|      0|                            ec = cbor_errc::bad_extents;
 2669|      0|                            more_ = false;
 2670|      0|                            return;
 2671|      0|                        }
 2672|      0|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2673|      0|                            typed_array_tags::int32, extents_, order_, alloc_);
 2674|      0|                        typed_array_stack_.push_back(iter);
 2675|      0|                        iter->next(visitor, *this, ec);
 2676|      0|                    }
 2677|  4.53k|                    else
 2678|  4.53k|                    {
 2679|  4.53k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2680|  4.53k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2681|  4.53k|                        typed_array_stack_.push_back(iter);
 2682|  4.53k|                        iter->next(visitor, *this, ec);
 2683|  4.53k|                    }
 2684|  4.53k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2685|  4.53k|                    more_ = !cursor_mode_;
 2686|  4.53k|                    break;
 2687|  4.53k|                }
 2688|  1.65k|                case 0x4b:
  ------------------
  |  Branch (2688:17): [True: 1.65k, False: 70.3k]
  ------------------
 2689|  2.25k|                case 0x4f:
  ------------------
  |  Branch (2689:17): [True: 604, False: 71.4k]
  ------------------
 2690|  2.25k|                {
 2691|  2.25k|                    array_tag_ = typed_array_tags::int64;
 2692|  2.25k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2693|  2.25k|                    read(array_buffer, ec);
 2694|  2.25k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.25k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.25k]
  |  |  ------------------
  ------------------
 2695|      0|                    {
 2696|      0|                        more_ = false;
 2697|      0|                        return;
 2698|      0|                    }
 2699|  2.25k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2700|  2.25k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2701|  2.25k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2702|  2.25k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2702:25): [True: 1.65k, False: 604]
  ------------------
 2703|  1.65k|                    {
 2704|  7.46k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2704:49): [True: 5.81k, False: 1.65k]
  ------------------
 2705|  5.81k|                        {
 2706|  5.81k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2707|  5.81k|                        }
 2708|  1.65k|                    }
 2709|  2.25k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2709:25): [True: 1.08k, False: 1.17k]
  |  Branch (2709:42): [True: 0, False: 1.08k]
  ------------------
 2710|      0|                    {
 2711|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2711:29): [True: 0, False: 0]
  ------------------
 2712|      0|                        {
 2713|      0|                            ec = cbor_errc::bad_extents;
 2714|      0|                            more_ = false;
 2715|      0|                            return;
 2716|      0|                        }
 2717|      0|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2718|      0|                            typed_array_tags::int64, extents_, order_, alloc_);
 2719|      0|                        typed_array_stack_.push_back(iter);
 2720|      0|                        iter->next(visitor, *this, ec);
 2721|      0|                    }
 2722|  2.25k|                    else
 2723|  2.25k|                    {
 2724|  2.25k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2725|  2.25k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2726|  2.25k|                        typed_array_stack_.push_back(iter);
 2727|  2.25k|                        iter->next(visitor, *this, ec);
 2728|  2.25k|                    }
 2729|  2.25k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2730|  2.25k|                    more_ = !cursor_mode_;
 2731|  2.25k|                    break;
 2732|  2.25k|                }
 2733|  3.92k|                case 0x50:
  ------------------
  |  Branch (2733:17): [True: 3.92k, False: 68.0k]
  ------------------
 2734|  6.07k|                case 0x54:
  ------------------
  |  Branch (2734:17): [True: 2.14k, False: 69.8k]
  ------------------
 2735|  6.07k|                {
 2736|  6.07k|                    array_tag_ = typed_array_tags::half_float;
 2737|  6.07k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2738|  6.07k|                    read(array_buffer, ec);
 2739|  6.07k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.07k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.07k]
  |  |  ------------------
  ------------------
 2740|      0|                    {
 2741|      0|                        more_ = false;
 2742|      0|                        return;
 2743|      0|                    }
 2744|  6.07k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2745|  6.07k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2746|  6.07k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2747|  6.07k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2747:25): [True: 3.92k, False: 2.14k]
  ------------------
 2748|  3.92k|                    {
 2749|   794k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2749:49): [True: 790k, False: 3.92k]
  ------------------
 2750|   790k|                        {
 2751|   790k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2752|   790k|                        }
 2753|  3.92k|                    }
 2754|  6.07k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2754:25): [True: 3.01k, False: 3.05k]
  |  Branch (2754:42): [True: 0, False: 3.01k]
  ------------------
 2755|      0|                    {
 2756|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2756:29): [True: 0, False: 0]
  ------------------
 2757|      0|                        {
 2758|      0|                            ec = cbor_errc::bad_extents;
 2759|      0|                            more_ = false;
 2760|      0|                            return;
 2761|      0|                        }
 2762|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2763|      0|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2764|      0|                        typed_array_stack_.push_back(iter);
 2765|      0|                        iter->next(visitor, *this, ec);
 2766|      0|                    }
 2767|  6.07k|                    else
 2768|  6.07k|                    {
 2769|  6.07k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2770|  6.07k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2771|  6.07k|                        typed_array_stack_.push_back(iter);
 2772|  6.07k|                        iter->next(visitor, *this, ec);
 2773|  6.07k|                    }
 2774|  6.07k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2775|  6.07k|                    more_ = !cursor_mode_;
 2776|  6.07k|                    break;
 2777|  6.07k|                }
 2778|  7.95k|                case 0x51:
  ------------------
  |  Branch (2778:17): [True: 7.95k, False: 64.0k]
  ------------------
 2779|  8.31k|                case 0x55:
  ------------------
  |  Branch (2779:17): [True: 359, False: 71.6k]
  ------------------
 2780|  8.31k|                {
 2781|  8.31k|                    array_tag_ = typed_array_tags::float32;
 2782|  8.31k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2783|  8.31k|                    read(array_buffer, ec);
 2784|  8.31k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.31k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.31k]
  |  |  ------------------
  ------------------
 2785|      0|                    {
 2786|      0|                        more_ = false;
 2787|      0|                        return;
 2788|      0|                    }
 2789|  8.31k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2790|  8.31k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2791|  8.31k|                    auto ta = typed_array_cast<float>(array_buffer);
 2792|  8.31k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2792:25): [True: 7.95k, False: 359]
  ------------------
 2793|  7.95k|                    {
 2794|  2.53M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2794:49): [True: 2.52M, False: 7.95k]
  ------------------
 2795|  2.52M|                        {
 2796|  2.52M|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2797|  2.52M|                        }
 2798|  7.95k|                    }
 2799|  8.31k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2799:25): [True: 4.13k, False: 4.18k]
  |  Branch (2799:42): [True: 0, False: 4.13k]
  ------------------
 2800|      0|                    {
 2801|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2801:29): [True: 0, False: 0]
  ------------------
 2802|      0|                        {
 2803|      0|                            ec = cbor_errc::bad_extents;
 2804|      0|                            more_ = false;
 2805|      0|                            return;
 2806|      0|                        }
 2807|      0|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2808|      0|                            typed_array_tags::float32, extents_, order_, alloc_);
 2809|      0|                        typed_array_stack_.push_back(iter);
 2810|      0|                        iter->next(visitor, *this, ec);
 2811|      0|                    }
 2812|  8.31k|                    else
 2813|  8.31k|                    {
 2814|  8.31k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2815|  8.31k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2816|  8.31k|                        typed_array_stack_.push_back(iter);
 2817|  8.31k|                        iter->next(visitor, *this, ec);
 2818|  8.31k|                    }
 2819|  8.31k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2820|  8.31k|                    more_ = !cursor_mode_;
 2821|  8.31k|                    break;
 2822|  8.31k|                }
 2823|  2.51k|                case 0x52:
  ------------------
  |  Branch (2823:17): [True: 2.51k, False: 69.4k]
  ------------------
 2824|  4.52k|                case 0x56:
  ------------------
  |  Branch (2824:17): [True: 2.01k, False: 69.9k]
  ------------------
 2825|  4.52k|                {
 2826|  4.52k|                    array_tag_ = typed_array_tags::float64;
 2827|  4.52k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2828|  4.52k|                    read(array_buffer, ec);
 2829|  4.52k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.52k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.52k]
  |  |  ------------------
  ------------------
 2830|      0|                    {
 2831|      0|                        more_ = false;
 2832|      0|                        return;
 2833|      0|                    }
 2834|  4.52k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2835|  4.52k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2836|  4.52k|                    auto ta = typed_array_cast<double>(array_buffer);
 2837|  4.52k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2837:25): [True: 2.51k, False: 2.01k]
  ------------------
 2838|  2.51k|                    {
 2839|  14.5k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2839:49): [True: 12.0k, False: 2.51k]
  ------------------
 2840|  12.0k|                        {
 2841|  12.0k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2842|  12.0k|                        }
 2843|  2.51k|                    }
 2844|  4.52k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2844:25): [True: 2.22k, False: 2.30k]
  |  Branch (2844:42): [True: 0, False: 2.22k]
  ------------------
 2845|      0|                    {
 2846|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2846:29): [True: 0, False: 0]
  ------------------
 2847|      0|                        {
 2848|      0|                            ec = cbor_errc::bad_extents;
 2849|      0|                            more_ = false;
 2850|      0|                            return;
 2851|      0|                        }
 2852|      0|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2853|      0|                            typed_array_tags::float64, extents_, order_, alloc_);
 2854|      0|                        typed_array_stack_.push_back(iter);
 2855|      0|                        iter->next(visitor, *this, ec);
 2856|      0|                    }
 2857|  4.52k|                    else
 2858|  4.52k|                    {
 2859|  4.52k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2860|  4.52k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2861|  4.52k|                        typed_array_stack_.push_back(iter);
 2862|  4.52k|                        iter->next(visitor, *this, ec);
 2863|  4.52k|                    }
 2864|  4.52k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2865|  4.52k|                    more_ = !cursor_mode_;
 2866|  4.52k|                    break;
 2867|  4.52k|                }
 2868|  1.84k|                default:
  ------------------
  |  Branch (2868:17): [True: 1.84k, False: 70.1k]
  ------------------
 2869|  1.84k|                {
 2870|  1.84k|                    auto bytes = read.view(ec);
 2871|  1.84k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.84k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.84k]
  |  |  ------------------
  ------------------
 2872|      0|                    {
 2873|      0|                        more_ = false;
 2874|      0|                        return;
 2875|      0|                    }
 2876|  1.84k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2877|  1.84k|                    more_ = !cursor_mode_;
 2878|  1.84k|                    break;
 2879|  1.84k|                }
 2880|  72.0k|            }
 2881|  72.0k|            other_tags_[item_tag] = false;
 2882|  72.0k|        }
 2883|  13.7k|        else
 2884|  13.7k|        {
 2885|  13.7k|            auto bytes = read.view(ec);
 2886|  13.7k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 13.7k]
  |  |  ------------------
  ------------------
 2887|      0|            {
 2888|      0|                return;
 2889|      0|            }
 2890|  13.7k|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2891|  13.7k|            more_ = !cursor_mode_;
 2892|  13.7k|        }
 2893|  85.7k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_buffer4viewERNS4_10error_codeE:
  306|  23.0k|        {
  307|  23.0k|            return bytes;
  308|  23.0k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_bufferclINS4_6vectorIhNS5_IhEEEEEEvRT_RNS4_10error_codeE:
  296|  62.7k|        {
  297|  62.7k|            c.clear();
  298|  62.7k|            c.reserve(bytes.size());
  299|  62.7k|            for (auto b : bytes)
  ------------------
  |  Branch (299:25): [True: 16.1M, False: 62.7k]
  ------------------
  300|  16.1M|            {
  301|  16.1M|                c.push_back(b);
  302|  16.1M|            }
  303|  62.7k|        }
_ZN8jsoncons4cbor11parse_stateC2ENS0_10parse_modeEmb:
  167|  54.5M|        : mode(mode), length(length), pop_stringref_map_stack(pop_stringref_map_stack)
  168|  54.5M|    {
  169|  54.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE26get_typed_array_endiannessEh:
 2290|   186k|    {
 2291|   186k|        return ((tag & detail::cbor_array_tags_e_mask) >> detail::cbor_array_tags_e_shift) == 0 ? jsoncons::endian::big : jsoncons::endian::little; 
  ------------------
  |  Branch (2291:16): [True: 81.1k, False: 105k]
  ------------------
 2292|   186k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE21read_negative_integerEhRNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 1623|  10.5M|    {
 1624|  10.5M|        semantic_tag tag = semantic_tag::none;
 1625|  10.5M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (1625:13): [True: 32.4k, False: 10.5M]
  ------------------
 1626|  32.4k|        {
 1627|  32.4k|            if (raw_tag_ == 1)
  ------------------
  |  Branch (1627:17): [True: 669, False: 31.8k]
  ------------------
 1628|    669|            {
 1629|    669|                tag = semantic_tag::epoch_second;
 1630|    669|            }
 1631|  32.4k|            other_tags_[item_tag] = false;
 1632|  32.4k|        }
 1633|       |
 1634|  10.5M|        switch (info)
 1635|  10.5M|        {
 1636|  10.1M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  10.1M|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 32.2k, False: 10.5M]
  |  |  |  Branch (18:20): [True: 68.6k, False: 10.4M]
  |  |  |  Branch (18:30): [True: 19.7k, False: 10.5M]
  |  |  |  Branch (18:40): [True: 33.4k, False: 10.5M]
  |  |  |  Branch (18:50): [True: 110k, False: 10.4M]
  |  |  |  Branch (18:60): [True: 10.6k, False: 10.5M]
  |  |  |  Branch (18:70): [True: 40.1k, False: 10.5M]
  |  |  |  Branch (18:80): [True: 151k, False: 10.4M]
  |  |  |  Branch (18:90): [True: 13.0k, False: 10.5M]
  |  |  |  Branch (18:100): [True: 24.8k, False: 10.5M]
  |  |  |  Branch (18:110): [True: 13.3k, False: 10.5M]
  |  |  |  Branch (18:120): [True: 10.8k, False: 10.5M]
  |  |  |  Branch (18:130): [True: 293k, False: 10.2M]
  |  |  |  Branch (18:140): [True: 169k, False: 10.3M]
  |  |  |  Branch (18:150): [True: 698k, False: 9.86M]
  |  |  |  Branch (18:160): [True: 6.93M, False: 3.62M]
  |  |  |  Branch (18:170): [True: 42.1k, False: 10.5M]
  |  |  |  Branch (18:180): [True: 219k, False: 10.3M]
  |  |  |  Branch (18:190): [True: 316k, False: 10.2M]
  |  |  |  Branch (18:200): [True: 195k, False: 10.3M]
  |  |  |  Branch (18:210): [True: 188k, False: 10.3M]
  |  |  |  Branch (18:220): [True: 144k, False: 10.4M]
  |  |  ------------------
  ------------------
  |  Branch (1636:13): [True: 50.3k, False: 10.5M]
  ------------------
 1637|  10.1M|            {
 1638|  10.1M|                int64_t val = static_cast<int8_t>(- 1 - info);
 1639|  10.1M|                visitor.int64_value(val, tag, *this, ec);
 1640|  10.1M|                more_ = !cursor_mode_;
 1641|  10.1M|                break;
 1642|  72.4M|            }
 1643|   194k|            case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1643:13): [True: 194k, False: 10.3M]
  ------------------
 1644|   194k|            {
 1645|   194k|                uint8_t b;
 1646|   194k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1646:21): [True: 10, False: 194k]
  ------------------
 1647|     10|                {
 1648|     10|                    ec = cbor_errc::unexpected_eof;
 1649|     10|                    more_ = false;
 1650|     10|                    return;
 1651|     10|                }
 1652|   194k|                int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1653|   194k|                visitor.int64_value(val, tag, *this, ec);
 1654|   194k|                more_ = !cursor_mode_;
 1655|   194k|                break;
 1656|   194k|            }
 1657|   188k|            case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1657:13): [True: 188k, False: 10.3M]
  ------------------
 1658|   188k|            {
 1659|   188k|                uint8_t buf[sizeof(uint16_t)];
 1660|   188k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1660:21): [True: 14, False: 188k]
  ------------------
 1661|     14|                {
 1662|     14|                    ec = cbor_errc::unexpected_eof;
 1663|     14|                    more_ = false;
 1664|     14|                    return;
 1665|     14|                }
 1666|   188k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1667|   188k|                int64_t val = static_cast<int64_t>(-1)- u;
 1668|   188k|                visitor.int64_value(val, tag, *this, ec);
 1669|   188k|                more_ = !cursor_mode_;
 1670|   188k|                break;
 1671|   188k|            }
 1672|  2.71k|            case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1672:13): [True: 2.71k, False: 10.5M]
  ------------------
 1673|  2.71k|            {
 1674|  2.71k|                uint8_t buf[sizeof(uint32_t)];
 1675|  2.71k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1675:21): [True: 20, False: 2.69k]
  ------------------
 1676|     20|                {
 1677|     20|                    ec = cbor_errc::unexpected_eof;
 1678|     20|                    more_ = false;
 1679|     20|                    return;
 1680|     20|                }
 1681|  2.69k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1682|  2.69k|                int64_t val = static_cast<int64_t>(-1)- u;
 1683|  2.69k|                visitor.int64_value(val, tag, *this, ec);
 1684|  2.69k|                more_ = !cursor_mode_;
 1685|  2.69k|                break;
 1686|  2.71k|            }
 1687|  15.8k|            case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1687:13): [True: 15.8k, False: 10.5M]
  ------------------
 1688|  15.8k|            {
 1689|  15.8k|                uint8_t buf[sizeof(uint64_t)];
 1690|  15.8k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1690:21): [True: 50, False: 15.8k]
  ------------------
 1691|     50|                {
 1692|     50|                    ec = cbor_errc::unexpected_eof;
 1693|     50|                    more_ = false;
 1694|     50|                    return;
 1695|     50|                }
 1696|  15.8k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1697|  15.8k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1697:21): [True: 8.89k, False: 6.94k]
  ------------------
 1698|  8.89k|                {
 1699|       |                    //ec = cbor_errc::invalid_negative_integer;
 1700|       |                    //more_ = false;
 1701|       |                    //return;
 1702|  8.89k|                    bigint b(u);
 1703|  8.89k|                    bigint b2 = -1 - b;
 1704|  8.89k|                    text_buffer_.clear();
 1705|  8.89k|                    b2.append_to_buffer(text_buffer_);
 1706|  8.89k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 1707|  8.89k|                }
 1708|  6.94k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  6.94k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 453, False: 6.49k]
  |  |  ------------------
  ------------------
 1709|    453|                {
 1710|    453|                    visitor.int64_value((std::numeric_limits<int64_t>::min)(), tag, *this, ec);
 1711|    453|                }
 1712|  6.49k|                else
 1713|  6.49k|                {
 1714|  6.49k|                    int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(u);
 1715|  6.49k|                    visitor.int64_value(val, tag, *this, ec);
 1716|  6.49k|                }
 1717|  15.8k|                more_ = !cursor_mode_;
 1718|  15.8k|                break;
 1719|  15.8k|            }
 1720|     31|            default:
  ------------------
  |  Branch (1720:13): [True: 31, False: 10.5M]
  ------------------
 1721|     31|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (1721:22): [True: 31, False: 0]
  ------------------
 1722|     31|                more_ = false;
 1723|     31|                return;
 1724|  10.5M|        }
 1725|  10.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_sourceC2EPS7_:
  316|  9.46M|            : source(source)
  317|  9.46M|        {
  318|  9.46M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE16read_byte_stringINS7_28read_byte_string_from_sourceEEEvT_RNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 2304|  9.46M|    {
 2305|  9.46M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2305:13): [True: 415k, False: 9.04M]
  ------------------
 2306|   415k|        {
 2307|   415k|            switch (raw_tag_)
 2308|   415k|            {
 2309|  18.1k|                case 0x2:
  ------------------
  |  Branch (2309:17): [True: 18.1k, False: 397k]
  ------------------
 2310|  18.1k|                {
 2311|  18.1k|                    auto bytes = read.view(ec);
 2312|  18.1k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 18.1k]
  |  |  ------------------
  ------------------
 2313|     12|                    {
 2314|     12|                        more_ = false;
 2315|     12|                        return;
 2316|     12|                    }
 2317|  18.1k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2318|  18.1k|                    text_buffer_.clear();
 2319|  18.1k|                    b.append_to_buffer(text_buffer_);
 2320|  18.1k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2321|  18.1k|                    more_ = !cursor_mode_;
 2322|  18.1k|                    break;
 2323|  18.1k|                }
 2324|  24.9k|                case 0x3:
  ------------------
  |  Branch (2324:17): [True: 24.9k, False: 390k]
  ------------------
 2325|  24.9k|                {
 2326|  24.9k|                    auto bytes = read.view(ec);
 2327|  24.9k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  24.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 36, False: 24.8k]
  |  |  ------------------
  ------------------
 2328|     36|                    {
 2329|     36|                        more_ = false;
 2330|     36|                        return;
 2331|     36|                    }
 2332|  24.8k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2333|  24.8k|                    b = -1 - b;
 2334|  24.8k|                    text_buffer_.clear();
 2335|  24.8k|                    b.append_to_buffer(text_buffer_);
 2336|  24.8k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2337|  24.8k|                    more_ = !cursor_mode_;
 2338|  24.8k|                    break;
 2339|  24.9k|                }
 2340|  27.6k|                case 0x15:
  ------------------
  |  Branch (2340:17): [True: 27.6k, False: 387k]
  ------------------
 2341|  32.7k|                case 0x16:
  ------------------
  |  Branch (2341:17): [True: 5.10k, False: 410k]
  ------------------
 2342|  37.8k|                case 0x17:
  ------------------
  |  Branch (2342:17): [True: 5.08k, False: 410k]
  ------------------
 2343|  37.8k|                {
 2344|  37.8k|                    auto bytes = read.view(ec);
 2345|  37.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  37.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 21, False: 37.8k]
  |  |  ------------------
  ------------------
 2346|     21|                    {
 2347|     21|                        more_ = false;
 2348|     21|                        return;
 2349|     21|                    }
 2350|  37.8k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2350:46): [True: 27.6k, False: 10.1k]
  ------------------
 2351|  37.8k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2351:27): [True: 5.09k, False: 5.07k]
  ------------------
 2352|  10.1k|                        : semantic_tag::base16;
 2353|  37.8k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2354|  37.8k|                    more_ = !cursor_mode_;
 2355|  37.8k|                    break;
 2356|  37.8k|                }
 2357|  5.75k|                case 0x40:
  ------------------
  |  Branch (2357:17): [True: 5.75k, False: 409k]
  ------------------
 2358|  5.75k|                {
 2359|  5.75k|                    array_tag_ = typed_array_tags::uint8;
 2360|  5.75k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2361|  5.75k|                    read(array_buffer, ec);
 2362|  5.75k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.75k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 5.74k]
  |  |  ------------------
  ------------------
 2363|      6|                    {
 2364|      6|                        more_ = false;
 2365|      6|                        return;
 2366|      6|                    }
 2367|  5.74k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2368|  5.74k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2368:25): [True: 2.85k, False: 2.89k]
  |  Branch (2368:42): [True: 484, False: 2.37k]
  ------------------
 2369|    484|                    {
 2370|    484|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2370:29): [True: 18, False: 466]
  ------------------
 2371|     18|                        {
 2372|     18|                            ec = cbor_errc::bad_extents;
 2373|     18|                            more_ = false;
 2374|     18|                            return;
 2375|     18|                        }
 2376|    466|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2377|    466|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2378|    466|                        typed_array_stack_.push_back(iter);
 2379|    466|                        iter->next(visitor, *this, ec);
 2380|    466|                    }
 2381|  5.26k|                    else
 2382|  5.26k|                    {
 2383|  5.26k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2384|  5.26k|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2385|  5.26k|                        typed_array_stack_.push_back(iter);
 2386|  5.26k|                        iter->next(visitor, *this, ec);
 2387|  5.26k|                    }
 2388|  5.72k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2389|  5.72k|                    more_ = !cursor_mode_;
 2390|  5.72k|                    break;
 2391|  5.74k|                }
 2392|  8.21k|                case 0x44:
  ------------------
  |  Branch (2392:17): [True: 8.21k, False: 407k]
  ------------------
 2393|  8.21k|                {
 2394|  8.21k|                    array_tag_ = typed_array_tags::uint8;
 2395|  8.21k|                    typed_array_tag_ = semantic_tag::clamped;
 2396|  8.21k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2397|  8.21k|                    read(array_buffer, ec);
 2398|  8.21k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.21k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 8.21k]
  |  |  ------------------
  ------------------
 2399|      6|                    {
 2400|      6|                        more_ = false;
 2401|      6|                        return;
 2402|      6|                    }
 2403|  8.21k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2404|  8.21k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2404:25): [True: 4.02k, False: 4.18k]
  |  Branch (2404:42): [True: 2.57k, False: 1.45k]
  ------------------
 2405|  2.57k|                    {
 2406|  2.57k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2406:29): [True: 28, False: 2.54k]
  ------------------
 2407|     28|                        {
 2408|     28|                            ec = cbor_errc::bad_extents;
 2409|     28|                            more_ = false;
 2410|     28|                            return;
 2411|     28|                        }
 2412|  2.54k|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2413|  2.54k|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2414|  2.54k|                        typed_array_stack_.push_back(iter);
 2415|  2.54k|                        iter->next(visitor, *this, ec);
 2416|  2.54k|                    }
 2417|  5.64k|                    else
 2418|  5.64k|                    {
 2419|  5.64k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2420|  5.64k|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2421|  5.64k|                        typed_array_stack_.push_back(iter);
 2422|  5.64k|                        iter->next(visitor, *this, ec);
 2423|  5.64k|                    }
 2424|  8.18k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2425|  8.18k|                    more_ = !cursor_mode_;
 2426|  8.18k|                    break;
 2427|  8.21k|                }
 2428|  11.9k|                case 0x41:
  ------------------
  |  Branch (2428:17): [True: 11.9k, False: 403k]
  ------------------
 2429|  12.5k|                case 0x45:
  ------------------
  |  Branch (2429:17): [True: 665, False: 414k]
  ------------------
 2430|  12.5k|                {
 2431|  12.5k|                    array_tag_ = typed_array_tags::uint16;
 2432|  12.5k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2433|  12.5k|                    read(array_buffer, ec);
 2434|  12.5k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 20, False: 12.5k]
  |  |  ------------------
  ------------------
 2435|     20|                    {
 2436|     20|                        more_ = false;
 2437|     20|                        return;
 2438|     20|                    }
 2439|  12.5k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2440|  12.5k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2441|  12.5k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2442|  12.5k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2442:25): [True: 11.9k, False: 665]
  ------------------
 2443|  11.9k|                    {
 2444|  61.2k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2444:49): [True: 49.3k, False: 11.9k]
  ------------------
 2445|  49.3k|                        {
 2446|  49.3k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2447|  49.3k|                        }
 2448|  11.9k|                    }
 2449|  12.5k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2449:25): [True: 6.20k, False: 6.36k]
  |  Branch (2449:42): [True: 955, False: 5.24k]
  ------------------
 2450|    955|                    {
 2451|    955|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2451:29): [True: 30, False: 925]
  ------------------
 2452|     30|                        {
 2453|     30|                            ec = cbor_errc::bad_extents;
 2454|     30|                            more_ = false;
 2455|     30|                            return;
 2456|     30|                        }
 2457|    925|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2458|    925|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2459|    925|                        typed_array_stack_.push_back(iter);
 2460|    925|                        iter->next(visitor, *this, ec);
 2461|    925|                    }
 2462|  11.6k|                    else
 2463|  11.6k|                    {
 2464|  11.6k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2465|  11.6k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2466|  11.6k|                        typed_array_stack_.push_back(iter);
 2467|  11.6k|                        iter->next(visitor, *this, ec);
 2468|  11.6k|                    }
 2469|  12.5k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2470|  12.5k|                    more_ = !cursor_mode_;
 2471|  12.5k|                    break;
 2472|  12.5k|                }
 2473|  7.28k|                case 0x42:
  ------------------
  |  Branch (2473:17): [True: 7.28k, False: 408k]
  ------------------
 2474|  8.88k|                case 0x46:
  ------------------
  |  Branch (2474:17): [True: 1.60k, False: 413k]
  ------------------
 2475|  8.88k|                {
 2476|  8.88k|                    array_tag_ = typed_array_tags::uint32;
 2477|  8.88k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2478|  8.88k|                    read(array_buffer, ec);
 2479|  8.88k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.88k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 8.87k]
  |  |  ------------------
  ------------------
 2480|     12|                    {
 2481|     12|                        more_ = false;
 2482|     12|                        return;
 2483|     12|                    }
 2484|  8.87k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2485|  8.87k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2486|  8.87k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2487|  8.87k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2487:25): [True: 7.27k, False: 1.60k]
  ------------------
 2488|  7.27k|                    {
 2489|  14.5k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2489:49): [True: 7.28k, False: 7.27k]
  ------------------
 2490|  7.28k|                        {
 2491|  7.28k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2492|  7.28k|                        }
 2493|  7.27k|                    }
 2494|  8.87k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2494:25): [True: 4.34k, False: 4.53k]
  |  Branch (2494:42): [True: 1.72k, False: 2.61k]
  ------------------
 2495|  1.72k|                    {
 2496|  1.72k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2496:29): [True: 23, False: 1.70k]
  ------------------
 2497|     23|                        {
 2498|     23|                            ec = cbor_errc::bad_extents;
 2499|     23|                            more_ = false;
 2500|     23|                            return;
 2501|     23|                        }
 2502|  1.70k|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2503|  1.70k|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2504|  1.70k|                        typed_array_stack_.push_back(iter);
 2505|  1.70k|                        iter->next(visitor, *this, ec);
 2506|  1.70k|                    }
 2507|  7.14k|                    else
 2508|  7.14k|                    {
 2509|  7.14k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2510|  7.14k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2511|  7.14k|                        typed_array_stack_.push_back(iter);
 2512|  7.14k|                        iter->next(visitor, *this, ec);
 2513|  7.14k|                    }
 2514|  8.85k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2515|  8.85k|                    more_ = !cursor_mode_;
 2516|  8.85k|                    break;
 2517|  8.87k|                }
 2518|  3.84k|                case 0x43:
  ------------------
  |  Branch (2518:17): [True: 3.84k, False: 411k]
  ------------------
 2519|  8.01k|                case 0x47:
  ------------------
  |  Branch (2519:17): [True: 4.17k, False: 411k]
  ------------------
 2520|  8.01k|                {
 2521|  8.01k|                    array_tag_ = typed_array_tags::uint64;
 2522|  8.01k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2523|  8.01k|                    read(array_buffer, ec);
 2524|  8.01k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.01k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.01k]
  |  |  ------------------
  ------------------
 2525|      0|                    {
 2526|      0|                        more_ = false;
 2527|      0|                        return;
 2528|      0|                    }
 2529|  8.01k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2530|  8.01k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2531|  8.01k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2532|  8.01k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2532:25): [True: 3.84k, False: 4.17k]
  ------------------
 2533|  3.84k|                    {
 2534|  8.40k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2534:49): [True: 4.55k, False: 3.84k]
  ------------------
 2535|  4.55k|                        {
 2536|  4.55k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2537|  4.55k|                        }
 2538|  3.84k|                    }
 2539|  8.01k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2539:25): [True: 3.78k, False: 4.23k]
  |  Branch (2539:42): [True: 1.46k, False: 2.31k]
  ------------------
 2540|  1.46k|                    {
 2541|  1.46k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2541:29): [True: 35, False: 1.43k]
  ------------------
 2542|     35|                        {
 2543|     35|                            ec = cbor_errc::bad_extents;
 2544|     35|                            more_ = false;
 2545|     35|                            return;
 2546|     35|                        }
 2547|  1.43k|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2548|  1.43k|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2549|  1.43k|                        typed_array_stack_.push_back(iter);
 2550|  1.43k|                        iter->next(visitor, *this, ec);
 2551|  1.43k|                    }
 2552|  6.54k|                    else
 2553|  6.54k|                    {
 2554|  6.54k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2555|  6.54k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2556|  6.54k|                        typed_array_stack_.push_back(iter);
 2557|  6.54k|                        iter->next(visitor, *this, ec);
 2558|  6.54k|                    }
 2559|  7.98k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2560|  7.98k|                    more_ = !cursor_mode_;
 2561|  7.98k|                    break;
 2562|  8.01k|                }
 2563|  4.92k|                case 0x48:
  ------------------
  |  Branch (2563:17): [True: 4.92k, False: 410k]
  ------------------
 2564|  4.92k|                {
 2565|  4.92k|                    array_tag_ = typed_array_tags::int8;
 2566|  4.92k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2567|  4.92k|                    read(array_buffer, ec);
 2568|  4.92k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.92k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 16, False: 4.90k]
  |  |  ------------------
  ------------------
 2569|     16|                    {
 2570|     16|                        more_ = false;
 2571|     16|                        return;
 2572|     16|                    }
 2573|  4.90k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2574|  4.90k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2574:25): [True: 2.31k, False: 2.59k]
  |  Branch (2574:42): [True: 1.20k, False: 1.10k]
  ------------------
 2575|  1.20k|                    {
 2576|  1.20k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2576:29): [True: 23, False: 1.18k]
  ------------------
 2577|     23|                        {
 2578|     23|                            ec = cbor_errc::bad_extents;
 2579|     23|                            more_ = false;
 2580|     23|                            return;
 2581|     23|                        }
 2582|  1.18k|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2583|  1.18k|                            typed_array_tags::int8, extents_, order_, alloc_);
 2584|  1.18k|                        typed_array_stack_.push_back(iter);
 2585|  1.18k|                        iter->next(visitor, *this, ec);
 2586|  1.18k|                    }
 2587|  3.69k|                    else
 2588|  3.69k|                    {
 2589|  3.69k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2590|  3.69k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2591|  3.69k|                        typed_array_stack_.push_back(iter);
 2592|  3.69k|                        iter->next(visitor, *this, ec);
 2593|  3.69k|                    }
 2594|  4.88k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2595|  4.88k|                    more_ = !cursor_mode_;
 2596|  4.88k|                    break;
 2597|  4.90k|                }
 2598|  9.25k|                case 0x49:
  ------------------
  |  Branch (2598:17): [True: 9.25k, False: 406k]
  ------------------
 2599|  9.82k|                case 0x4d:
  ------------------
  |  Branch (2599:17): [True: 574, False: 414k]
  ------------------
 2600|  9.82k|                {
 2601|  9.82k|                    array_tag_ = typed_array_tags::int16;
 2602|  9.82k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2603|  9.82k|                    read(array_buffer, ec);
 2604|  9.82k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.82k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 9.82k]
  |  |  ------------------
  ------------------
 2605|      4|                    {
 2606|      4|                        more_ = false;
 2607|      4|                        return;
 2608|      4|                    }
 2609|  9.82k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2610|  9.82k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2611|  9.82k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2612|  9.82k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2612:25): [True: 9.24k, False: 574]
  ------------------
 2613|  9.24k|                    {
 2614|  32.4k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2614:49): [True: 23.2k, False: 9.24k]
  ------------------
 2615|  23.2k|                        {
 2616|  23.2k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2617|  23.2k|                        }
 2618|  9.24k|                    }
 2619|  9.82k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2619:25): [True: 4.75k, False: 5.06k]
  |  Branch (2619:42): [True: 1.89k, False: 2.86k]
  ------------------
 2620|  1.89k|                    {
 2621|  1.89k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2621:29): [True: 32, False: 1.86k]
  ------------------
 2622|     32|                        {
 2623|     32|                            ec = cbor_errc::bad_extents;
 2624|     32|                            more_ = false;
 2625|     32|                            return;
 2626|     32|                        }
 2627|  1.86k|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2628|  1.86k|                            typed_array_tags::int16, extents_, order_, alloc_);
 2629|  1.86k|                        typed_array_stack_.push_back(iter);
 2630|  1.86k|                        iter->next(visitor, *this, ec);
 2631|  1.86k|                    }
 2632|  7.92k|                    else
 2633|  7.92k|                    {
 2634|  7.92k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2635|  7.92k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2636|  7.92k|                        typed_array_stack_.push_back(iter);
 2637|  7.92k|                        iter->next(visitor, *this, ec);
 2638|  7.92k|                    }
 2639|  9.78k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2640|  9.78k|                    more_ = !cursor_mode_;
 2641|  9.78k|                    break;
 2642|  9.82k|                }
 2643|  7.12k|                case 0x4a:
  ------------------
  |  Branch (2643:17): [True: 7.12k, False: 408k]
  ------------------
 2644|  39.4k|                case 0x4e:
  ------------------
  |  Branch (2644:17): [True: 32.3k, False: 382k]
  ------------------
 2645|  39.4k|                {
 2646|  39.4k|                    array_tag_ = typed_array_tags::int32;
 2647|  39.4k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2648|  39.4k|                    read(array_buffer, ec);
 2649|  39.4k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  39.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 39.4k]
  |  |  ------------------
  ------------------
 2650|      6|                    {
 2651|      6|                        more_ = false;
 2652|      6|                        return;
 2653|      6|                    }
 2654|  39.4k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2655|  39.4k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2656|  39.4k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2657|  39.4k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2657:25): [True: 7.11k, False: 32.3k]
  ------------------
 2658|  7.11k|                    {
 2659|  11.2k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2659:49): [True: 4.14k, False: 7.11k]
  ------------------
 2660|  4.14k|                        {
 2661|  4.14k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2662|  4.14k|                        }
 2663|  7.11k|                    }
 2664|  39.4k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2664:25): [True: 19.5k, False: 19.8k]
  |  Branch (2664:42): [True: 1.00k, False: 18.5k]
  ------------------
 2665|  1.00k|                    {
 2666|  1.00k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2666:29): [True: 42, False: 967]
  ------------------
 2667|     42|                        {
 2668|     42|                            ec = cbor_errc::bad_extents;
 2669|     42|                            more_ = false;
 2670|     42|                            return;
 2671|     42|                        }
 2672|    967|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2673|    967|                            typed_array_tags::int32, extents_, order_, alloc_);
 2674|    967|                        typed_array_stack_.push_back(iter);
 2675|    967|                        iter->next(visitor, *this, ec);
 2676|    967|                    }
 2677|  38.4k|                    else
 2678|  38.4k|                    {
 2679|  38.4k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2680|  38.4k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2681|  38.4k|                        typed_array_stack_.push_back(iter);
 2682|  38.4k|                        iter->next(visitor, *this, ec);
 2683|  38.4k|                    }
 2684|  39.4k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2685|  39.4k|                    more_ = !cursor_mode_;
 2686|  39.4k|                    break;
 2687|  39.4k|                }
 2688|  6.85k|                case 0x4b:
  ------------------
  |  Branch (2688:17): [True: 6.85k, False: 408k]
  ------------------
 2689|  7.47k|                case 0x4f:
  ------------------
  |  Branch (2689:17): [True: 618, False: 414k]
  ------------------
 2690|  7.47k|                {
 2691|  7.47k|                    array_tag_ = typed_array_tags::int64;
 2692|  7.47k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2693|  7.47k|                    read(array_buffer, ec);
 2694|  7.47k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.47k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 10, False: 7.46k]
  |  |  ------------------
  ------------------
 2695|     10|                    {
 2696|     10|                        more_ = false;
 2697|     10|                        return;
 2698|     10|                    }
 2699|  7.46k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2700|  7.46k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2701|  7.46k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2702|  7.46k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2702:25): [True: 6.84k, False: 618]
  ------------------
 2703|  6.84k|                    {
 2704|  14.0k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2704:49): [True: 7.19k, False: 6.84k]
  ------------------
 2705|  7.19k|                        {
 2706|  7.19k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2707|  7.19k|                        }
 2708|  6.84k|                    }
 2709|  7.46k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2709:25): [True: 3.54k, False: 3.92k]
  |  Branch (2709:42): [True: 1.69k, False: 1.85k]
  ------------------
 2710|  1.69k|                    {
 2711|  1.69k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2711:29): [True: 22, False: 1.67k]
  ------------------
 2712|     22|                        {
 2713|     22|                            ec = cbor_errc::bad_extents;
 2714|     22|                            more_ = false;
 2715|     22|                            return;
 2716|     22|                        }
 2717|  1.67k|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2718|  1.67k|                            typed_array_tags::int64, extents_, order_, alloc_);
 2719|  1.67k|                        typed_array_stack_.push_back(iter);
 2720|  1.67k|                        iter->next(visitor, *this, ec);
 2721|  1.67k|                    }
 2722|  5.77k|                    else
 2723|  5.77k|                    {
 2724|  5.77k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2725|  5.77k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2726|  5.77k|                        typed_array_stack_.push_back(iter);
 2727|  5.77k|                        iter->next(visitor, *this, ec);
 2728|  5.77k|                    }
 2729|  7.44k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2730|  7.44k|                    more_ = !cursor_mode_;
 2731|  7.44k|                    break;
 2732|  7.46k|                }
 2733|  3.02k|                case 0x50:
  ------------------
  |  Branch (2733:17): [True: 3.02k, False: 412k]
  ------------------
 2734|  18.7k|                case 0x54:
  ------------------
  |  Branch (2734:17): [True: 15.7k, False: 399k]
  ------------------
 2735|  18.7k|                {
 2736|  18.7k|                    array_tag_ = typed_array_tags::half_float;
 2737|  18.7k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2738|  18.7k|                    read(array_buffer, ec);
 2739|  18.7k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 47, False: 18.7k]
  |  |  ------------------
  ------------------
 2740|     47|                    {
 2741|     47|                        more_ = false;
 2742|     47|                        return;
 2743|     47|                    }
 2744|  18.7k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2745|  18.7k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2746|  18.7k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2747|  18.7k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2747:25): [True: 3.01k, False: 15.6k]
  ------------------
 2748|  3.01k|                    {
 2749|   139k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2749:49): [True: 136k, False: 3.01k]
  ------------------
 2750|   136k|                        {
 2751|   136k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2752|   136k|                        }
 2753|  3.01k|                    }
 2754|  18.7k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2754:25): [True: 9.10k, False: 9.60k]
  |  Branch (2754:42): [True: 3.67k, False: 5.42k]
  ------------------
 2755|  3.67k|                    {
 2756|  3.67k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2756:29): [True: 352, False: 3.32k]
  ------------------
 2757|    352|                        {
 2758|    352|                            ec = cbor_errc::bad_extents;
 2759|    352|                            more_ = false;
 2760|    352|                            return;
 2761|    352|                        }
 2762|  3.32k|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2763|  3.32k|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2764|  3.32k|                        typed_array_stack_.push_back(iter);
 2765|  3.32k|                        iter->next(visitor, *this, ec);
 2766|  3.32k|                    }
 2767|  15.0k|                    else
 2768|  15.0k|                    {
 2769|  15.0k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2770|  15.0k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2771|  15.0k|                        typed_array_stack_.push_back(iter);
 2772|  15.0k|                        iter->next(visitor, *this, ec);
 2773|  15.0k|                    }
 2774|  18.3k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2775|  18.3k|                    more_ = !cursor_mode_;
 2776|  18.3k|                    break;
 2777|  18.7k|                }
 2778|  1.78k|                case 0x51:
  ------------------
  |  Branch (2778:17): [True: 1.78k, False: 413k]
  ------------------
 2779|  14.7k|                case 0x55:
  ------------------
  |  Branch (2779:17): [True: 12.9k, False: 402k]
  ------------------
 2780|  14.7k|                {
 2781|  14.7k|                    array_tag_ = typed_array_tags::float32;
 2782|  14.7k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2783|  14.7k|                    read(array_buffer, ec);
 2784|  14.7k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  14.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 19, False: 14.7k]
  |  |  ------------------
  ------------------
 2785|     19|                    {
 2786|     19|                        more_ = false;
 2787|     19|                        return;
 2788|     19|                    }
 2789|  14.7k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2790|  14.7k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2791|  14.7k|                    auto ta = typed_array_cast<float>(array_buffer);
 2792|  14.7k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2792:25): [True: 1.77k, False: 12.9k]
  ------------------
 2793|  1.77k|                    {
 2794|  4.45k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2794:49): [True: 2.68k, False: 1.77k]
  ------------------
 2795|  2.68k|                        {
 2796|  2.68k|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2797|  2.68k|                        }
 2798|  1.77k|                    }
 2799|  14.7k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2799:25): [True: 7.27k, False: 7.42k]
  |  Branch (2799:42): [True: 2.31k, False: 4.96k]
  ------------------
 2800|  2.31k|                    {
 2801|  2.31k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2801:29): [True: 31, False: 2.28k]
  ------------------
 2802|     31|                        {
 2803|     31|                            ec = cbor_errc::bad_extents;
 2804|     31|                            more_ = false;
 2805|     31|                            return;
 2806|     31|                        }
 2807|  2.28k|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2808|  2.28k|                            typed_array_tags::float32, extents_, order_, alloc_);
 2809|  2.28k|                        typed_array_stack_.push_back(iter);
 2810|  2.28k|                        iter->next(visitor, *this, ec);
 2811|  2.28k|                    }
 2812|  12.3k|                    else
 2813|  12.3k|                    {
 2814|  12.3k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2815|  12.3k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2816|  12.3k|                        typed_array_stack_.push_back(iter);
 2817|  12.3k|                        iter->next(visitor, *this, ec);
 2818|  12.3k|                    }
 2819|  14.6k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2820|  14.6k|                    more_ = !cursor_mode_;
 2821|  14.6k|                    break;
 2822|  14.7k|                }
 2823|  3.52k|                case 0x52:
  ------------------
  |  Branch (2823:17): [True: 3.52k, False: 411k]
  ------------------
 2824|  8.82k|                case 0x56:
  ------------------
  |  Branch (2824:17): [True: 5.30k, False: 410k]
  ------------------
 2825|  8.82k|                {
 2826|  8.82k|                    array_tag_ = typed_array_tags::float64;
 2827|  8.82k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2828|  8.82k|                    read(array_buffer, ec);
 2829|  8.82k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.82k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 25, False: 8.79k]
  |  |  ------------------
  ------------------
 2830|     25|                    {
 2831|     25|                        more_ = false;
 2832|     25|                        return;
 2833|     25|                    }
 2834|  8.79k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2835|  8.79k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2836|  8.79k|                    auto ta = typed_array_cast<double>(array_buffer);
 2837|  8.79k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2837:25): [True: 3.50k, False: 5.29k]
  ------------------
 2838|  3.50k|                    {
 2839|   133k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2839:49): [True: 130k, False: 3.50k]
  ------------------
 2840|   130k|                        {
 2841|   130k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2842|   130k|                        }
 2843|  3.50k|                    }
 2844|  8.79k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2844:25): [True: 4.27k, False: 4.52k]
  |  Branch (2844:42): [True: 1.32k, False: 2.95k]
  ------------------
 2845|  1.32k|                    {
 2846|  1.32k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2846:29): [True: 56, False: 1.26k]
  ------------------
 2847|     56|                        {
 2848|     56|                            ec = cbor_errc::bad_extents;
 2849|     56|                            more_ = false;
 2850|     56|                            return;
 2851|     56|                        }
 2852|  1.26k|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2853|  1.26k|                            typed_array_tags::float64, extents_, order_, alloc_);
 2854|  1.26k|                        typed_array_stack_.push_back(iter);
 2855|  1.26k|                        iter->next(visitor, *this, ec);
 2856|  1.26k|                    }
 2857|  7.47k|                    else
 2858|  7.47k|                    {
 2859|  7.47k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2860|  7.47k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2861|  7.47k|                        typed_array_stack_.push_back(iter);
 2862|  7.47k|                        iter->next(visitor, *this, ec);
 2863|  7.47k|                    }
 2864|  8.74k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2865|  8.74k|                    more_ = !cursor_mode_;
 2866|  8.74k|                    break;
 2867|  8.79k|                }
 2868|   186k|                default:
  ------------------
  |  Branch (2868:17): [True: 186k, False: 228k]
  ------------------
 2869|   186k|                {
 2870|   186k|                    auto bytes = read.view(ec);
 2871|   186k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   186k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 98, False: 186k]
  |  |  ------------------
  ------------------
 2872|     98|                    {
 2873|     98|                        more_ = false;
 2874|     98|                        return;
 2875|     98|                    }
 2876|   186k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2877|   186k|                    more_ = !cursor_mode_;
 2878|   186k|                    break;
 2879|   186k|                }
 2880|   415k|            }
 2881|   414k|            other_tags_[item_tag] = false;
 2882|   414k|        }
 2883|  9.04M|        else
 2884|  9.04M|        {
 2885|  9.04M|            auto bytes = read.view(ec);
 2886|  9.04M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.04M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 897, False: 9.04M]
  |  |  ------------------
  ------------------
 2887|    897|            {
 2888|    897|                return;
 2889|    897|            }
 2890|  9.04M|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2891|  9.04M|            more_ = !cursor_mode_;
 2892|  9.04M|        }
 2893|  9.46M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_source4viewERNS4_10error_codeE:
  326|  9.31M|        {
  327|  9.31M|            return source->read_byte_string_view(ec);
  328|  9.31M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE21read_byte_string_viewERNS4_10error_codeE:
 1260|  9.31M|    {
 1261|  9.31M|        auto c = source_.peek();
 1262|  9.31M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  9.31M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9.31M]
  |  |  ------------------
  ------------------
 1263|      0|        {
 1264|      0|            ec = cbor_errc::unexpected_eof;
 1265|      0|            more_ = false;
 1266|      0|            return byte_string_view();
 1267|      0|        }
 1268|  9.31M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1269|  9.31M|        uint8_t info = get_additional_information(c.value);
 1270|  9.31M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  9.31M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9.31M]
  |  |  |  Branch (79:50): [True: 2.60k, False: 9.31M]
  |  |  |  Branch (79:50): [True: 0, False: 2.60k]
  |  |  ------------------
  ------------------
 1271|      0|        {
 1272|      0|            ec = cbor_errc::reserved_additional_info;
 1273|      0|            more_ = false;
 1274|      0|            return byte_string_view();
 1275|      0|        }
 1276|       |
 1277|  9.31M|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   54|  9.31M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 9.31M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1278|       |
 1279|  9.31M|        source_.ignore(1);
 1280|  9.31M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1280:13): [True: 2.60k, False: 9.31M]
  ------------------
 1281|  2.60k|        {
 1282|  2.60k|            bytes_buffer_.clear();
 1283|  2.60k|            iterate_byte_string_chunks(bytes_buffer_, ec);
 1284|  2.60k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.60k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 161, False: 2.44k]
  |  |  ------------------
  ------------------
 1285|    161|            {
 1286|    161|                return byte_string_view();
 1287|    161|            }
 1288|  2.44k|            return byte_string_view(bytes_buffer_.data(), bytes_buffer_.size());
 1289|  2.60k|        }
 1290|       |
 1291|  9.31M|        std::size_t length = read_size(info, ec);
 1292|  9.31M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.31M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 24, False: 9.31M]
  |  |  ------------------
  ------------------
 1293|     24|        {
 1294|     24|            return byte_string_view();
 1295|     24|        }
 1296|  9.31M|        auto data = source_.read_span(length, bytes_buffer_);
 1297|  9.31M|        if (data.size() != length)
  ------------------
  |  Branch (1297:13): [True: 879, False: 9.31M]
  ------------------
 1298|    879|        {
 1299|    879|            ec = cbor_errc::unexpected_eof;
 1300|    879|            more_ = false;
 1301|    879|            return byte_string_view();
 1302|    879|        }
 1303|       |        
 1304|  9.31M|        byte_string_view bytes(data.data(), data.size());
 1305|  9.31M|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1305:13): [True: 7.93M, False: 1.37M]
  ------------------
 1306|  7.93M|            bytes.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1306:13): [True: 7.58M, False: 343k]
  ------------------
 1307|  7.58M|        {
 1308|  7.58M|            stringref_map_stack_.back().emplace_back(mapped_string(bytes, alloc_));
 1309|  7.58M|        }
 1310|  9.31M|        return bytes;
 1311|  9.31M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE26iterate_byte_string_chunksINS4_6vectorIhNS5_IhEEEEEEvRT_RNS4_10error_codeE:
 1444|  4.98k|    {
 1445|  4.98k|        bool done = false;
 1446|  33.3k|        while (!done)
  ------------------
  |  Branch (1446:16): [True: 28.5k, False: 4.80k]
  ------------------
 1447|  28.5k|        {
 1448|  28.5k|            auto c = source_.peek();
 1449|  28.5k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  28.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 48, False: 28.5k]
  |  |  ------------------
  ------------------
 1450|     48|            {
 1451|     48|                ec = cbor_errc::unexpected_eof;
 1452|     48|                more_ = false;
 1453|     48|                return;
 1454|     48|            }
 1455|  28.5k|            if (c.value == 0xff)
  ------------------
  |  Branch (1455:17): [True: 4.80k, False: 23.7k]
  ------------------
 1456|  4.80k|            {
 1457|  4.80k|                source_.ignore(1);
 1458|  4.80k|                done = true;
 1459|  4.80k|                continue;
 1460|  4.80k|            }
 1461|       |
 1462|  23.7k|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1463|  23.7k|            if (major_type != jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1463:17): [True: 51, False: 23.6k]
  ------------------
 1464|     51|            {
 1465|     51|                ec = cbor_errc::illegal_chunked_string;
 1466|     51|                more_ = false;
 1467|     51|                return;
 1468|     51|            }
 1469|  23.6k|            uint8_t info = get_additional_information(c.value);
 1470|  23.6k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1470:17): [True: 8, False: 23.6k]
  ------------------
 1471|      8|            {
 1472|      8|                ec = cbor_errc::illegal_chunked_string;
 1473|      8|                more_ = false;
 1474|      8|                return;
 1475|      8|            }
 1476|       |
 1477|  23.6k|            source_.ignore(1);
 1478|  23.6k|            std::size_t length = read_size(info, ec);
 1479|  23.6k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  23.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 23.6k]
  |  |  ------------------
  ------------------
 1480|      0|            {
 1481|      0|                return;
 1482|      0|            }
 1483|  23.6k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1483:17): [True: 68, False: 23.5k]
  ------------------
 1484|     68|            {
 1485|     68|                ec = cbor_errc::unexpected_eof;
 1486|     68|            }
 1487|  23.6k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  23.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 68, False: 23.5k]
  |  |  ------------------
  ------------------
 1488|     68|            {
 1489|     68|                return;
 1490|     68|            }
 1491|  23.6k|        }
 1492|  4.98k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE9read_sizeEhRNS4_10error_codeE:
 1314|  49.7M|    {
 1315|  49.7M|        uint64_t u = read_unsigned_integer(info, ec);
 1316|  49.7M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  49.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 214, False: 49.7M]
  |  |  ------------------
  ------------------
 1317|    214|        {
 1318|    214|            return 0;
 1319|    214|        }
 1320|  49.7M|        std::size_t len = static_cast<std::size_t>(u);
 1321|  49.7M|        if (len != u)
  ------------------
  |  Branch (1321:13): [True: 0, False: 49.7M]
  ------------------
 1322|      0|        {
 1323|      0|            ec = cbor_errc::number_too_large;
 1324|      0|            more_ = false;
 1325|      0|        }
 1326|  49.7M|        return len;
 1327|  49.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13mapped_stringC2EOS8_:
  236|  20.0M|        mapped_string(mapped_string&&) = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13mapped_stringC2ERKNS_16byte_string_viewERKS6_:
  225|  7.58M|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes.begin(),bytes.end(),alloc)
  226|  7.58M|        {
  227|  7.58M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_sourceclINS4_6vectorIhNS5_IhEEEEEEvRT_RNS4_10error_codeE:
  321|   147k|        {
  322|   147k|            source->read_byte_string(cont,ec);
  323|   147k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE16read_byte_stringERNS4_6vectorIhNS5_IhEEEERNS4_10error_codeE:
 1330|   263k|    {
 1331|   263k|        v.clear();
 1332|   263k|        auto c = source_.peek();
 1333|   263k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   263k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 263k]
  |  |  ------------------
  ------------------
 1334|      0|        {
 1335|      0|            ec = cbor_errc::unexpected_eof;
 1336|      0|            return;
 1337|      0|        }
 1338|   263k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1339|   263k|        uint8_t info = get_additional_information(c.value);
 1340|   263k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   265k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 263k]
  |  |  |  Branch (79:50): [True: 2.37k, False: 261k]
  |  |  |  Branch (79:50): [True: 0, False: 2.37k]
  |  |  ------------------
  ------------------
 1341|      0|        {
 1342|      0|            ec = cbor_errc::reserved_additional_info;
 1343|      0|            more_ = false;
 1344|      0|            return;
 1345|      0|        }
 1346|       |
 1347|   263k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   54|   263k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 263k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1348|       |
 1349|   263k|        source_.ignore(1);
 1350|   263k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1350:13): [True: 2.37k, False: 261k]
  ------------------
 1351|  2.37k|        {
 1352|  2.37k|            iterate_byte_string_chunks(v, ec);
 1353|  2.37k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.37k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 14, False: 2.36k]
  |  |  ------------------
  ------------------
 1354|     14|            {
 1355|     14|                return;
 1356|     14|            }
 1357|  2.37k|        }
 1358|   261k|        else 
 1359|   261k|        {
 1360|   261k|            std::size_t length = read_size(info, ec);
 1361|   261k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   261k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 261k]
  |  |  ------------------
  ------------------
 1362|      0|            {
 1363|      0|                return;
 1364|      0|            }
 1365|   261k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1365:17): [True: 249, False: 260k]
  ------------------
 1366|    249|            {
 1367|    249|                ec = cbor_errc::unexpected_eof;
 1368|    249|                return;
 1369|    249|            }
 1370|   260k|            if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1370:17): [True: 95.9k, False: 165k]
  ------------------
 1371|  95.9k|                v.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1371:17): [True: 50.9k, False: 44.9k]
  ------------------
 1372|  50.9k|            {
 1373|  50.9k|                stringref_map_stack_.back().emplace_back(mapped_string(v, alloc_));
 1374|  50.9k|            }
 1375|   260k|        }
 1376|   263k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13mapped_stringC2ERKNS4_6vectorIhNS5_IhEEEERKS6_:
  219|  50.9k|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes,alloc)
  220|  50.9k|        {
  221|  50.9k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE21read_text_string_viewEhRNS4_10error_codeE:
 1226|   409k|    {
 1227|   409k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1227:13): [True: 3.90k, False: 405k]
  ------------------
 1228|  3.90k|        {
 1229|  3.90k|            text_buffer_.clear();
 1230|  3.90k|            iterate_text_string_chunks(text_buffer_, ec);
 1231|  3.90k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.90k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 194, False: 3.71k]
  |  |  ------------------
  ------------------
 1232|    194|            {
 1233|    194|                return string_view_type();
 1234|    194|            }
 1235|  3.71k|            return string_view_type(text_buffer_.data(), text_buffer_.size());
 1236|  3.90k|        }
 1237|       |
 1238|   405k|        std::size_t length = read_size(info, ec);
 1239|   405k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   405k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 18, False: 405k]
  |  |  ------------------
  ------------------
 1240|     18|        {
 1241|     18|            return string_view_type();
 1242|     18|        }
 1243|   405k|        auto data = source_.read_span(length, text_buffer_);
 1244|   405k|        if (data.size() != length)
  ------------------
  |  Branch (1244:13): [True: 417, False: 405k]
  ------------------
 1245|    417|        {
 1246|    417|            ec = cbor_errc::unexpected_eof;
 1247|    417|            more_ = false;
 1248|    417|            return string_view_type();
 1249|    417|        }
 1250|   405k|        string_view_type sv(reinterpret_cast<const char_type*>(data.data()), data.size());
 1251|   405k|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1251:13): [True: 100k, False: 304k]
  ------------------
 1252|   100k|            sv.length() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1252:13): [True: 39.7k, False: 60.4k]
  ------------------
 1253|  39.7k|        {
 1254|  39.7k|            stringref_map_stack_.back().emplace_back(mapped_string(sv,alloc_));
 1255|  39.7k|        }
 1256|   405k|        return sv;
 1257|   405k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE26iterate_text_string_chunksINS4_12basic_stringIcNS4_11char_traitsIcEES6_EEEEvRT_RNS4_10error_codeE:
 1380|  3.90k|    {
 1381|  3.90k|        bool done = false;
 1382|  13.1k|        while (!done)
  ------------------
  |  Branch (1382:16): [True: 9.42k, False: 3.71k]
  ------------------
 1383|  9.42k|        {
 1384|  9.42k|            auto c = source_.peek();
 1385|  9.42k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  9.42k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 20, False: 9.40k]
  |  |  ------------------
  ------------------
 1386|     20|            {
 1387|     20|                ec = cbor_errc::unexpected_eof;
 1388|     20|                more_ = false;
 1389|     20|                return;
 1390|     20|            }
 1391|  9.40k|            if (c.value == 0xff)
  ------------------
  |  Branch (1391:17): [True: 3.71k, False: 5.68k]
  ------------------
 1392|  3.71k|            {
 1393|  3.71k|                source_.ignore(1);
 1394|  3.71k|                done = true;
 1395|  3.71k|                continue;
 1396|  3.71k|            }
 1397|       |
 1398|  5.68k|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1399|  5.68k|            if (major_type != jsoncons::cbor::detail::cbor_major_type::text_string)
  ------------------
  |  Branch (1399:17): [True: 66, False: 5.62k]
  ------------------
 1400|     66|            {
 1401|     66|                ec = cbor_errc::illegal_chunked_string;
 1402|     66|                more_ = false;
 1403|     66|                return;
 1404|     66|            }
 1405|  5.62k|            uint8_t info = get_additional_information(c.value);
 1406|  5.62k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1406:17): [True: 15, False: 5.60k]
  ------------------
 1407|     15|            {
 1408|     15|                ec = cbor_errc::illegal_chunked_string;
 1409|     15|                more_ = false;
 1410|     15|                return;
 1411|     15|            }
 1412|       |
 1413|  5.60k|            source_.ignore(1);
 1414|  5.60k|            std::size_t length = read_size(info, ec);
 1415|  5.60k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.60k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 5.60k]
  |  |  ------------------
  ------------------
 1416|      4|            {
 1417|      4|                return;
 1418|      4|            }
 1419|  5.60k|            const std::size_t offset = v.size();
 1420|  5.60k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1420:17): [True: 45, False: 5.55k]
  ------------------
 1421|     45|            {
 1422|     45|                ec = cbor_errc::unexpected_eof;
 1423|     45|            }
 1424|  5.60k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.60k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 45, False: 5.55k]
  |  |  ------------------
  ------------------
 1425|     45|            {
 1426|     45|                return;
 1427|     45|            }
 1428|       |            // RFC 8949 3.2.3: each chunk of an indefinite-length text
 1429|       |            // string must itself be well-formed UTF-8, so a code point
 1430|       |            // may not be split across chunks.
 1431|  5.55k|            auto result = unicode_traits::validate(
 1432|  5.55k|                reinterpret_cast<const char*>(v.data()) + offset, length);
 1433|  5.55k|            if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (1433:17): [True: 44, False: 5.51k]
  ------------------
 1434|     44|            {
 1435|     44|                ec = cbor_errc::invalid_utf8_text_string;
 1436|     44|                more_ = false;
 1437|     44|                return;
 1438|     44|            }
 1439|  5.55k|        }
 1440|  3.90k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13mapped_stringC2ERKNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERKS6_:
  208|  39.7k|            : type(jsoncons::cbor::detail::cbor_major_type::text_string), str(sv.data(), sv.size(), alloc), bytes(alloc)
  209|  39.7k|        {
  210|  39.7k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE11read_doubleEhRNS4_10error_codeE:
 1785|   327k|    {
 1786|   327k|        double val = 0;
 1787|       |
 1788|   327k|        switch (info)
 1789|   327k|        {
 1790|   281k|            case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (1790:13): [True: 281k, False: 46.2k]
  ------------------
 1791|   281k|            {
 1792|   281k|                uint8_t buf[sizeof(float)];
 1793|   281k|                if (source_.read(buf, sizeof(float)) !=sizeof(float)) 
  ------------------
  |  Branch (1793:21): [True: 71, False: 281k]
  ------------------
 1794|     71|                {
 1795|     71|                    ec = cbor_errc::unexpected_eof;
 1796|     71|                    more_ = false;
 1797|     71|                    return 0;
 1798|     71|                }
 1799|   281k|                val = binary::big_to_native<float>(buf, sizeof(buf));
 1800|   281k|                break;
 1801|   281k|            }
 1802|       |
 1803|  46.2k|            case 0x1b: //  Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (1803:13): [True: 46.2k, False: 281k]
  ------------------
 1804|  46.2k|            {
 1805|  46.2k|                uint8_t buf[sizeof(double)];
 1806|  46.2k|                if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (1806:21): [True: 63, False: 46.1k]
  ------------------
 1807|     63|                {
 1808|     63|                    ec = cbor_errc::unexpected_eof;
 1809|     63|                    more_ = false;
 1810|     63|                    return 0;
 1811|     63|                }
 1812|  46.1k|                val = binary::big_to_native<double>(buf, sizeof(buf));
 1813|  46.1k|                break;
 1814|  46.2k|            }
 1815|      0|            default:
  ------------------
  |  Branch (1815:13): [True: 0, False: 327k]
  ------------------
 1816|      0|            {
 1817|      0|                ec = cbor_errc::unknown_type;
 1818|      0|                more_ = false;
 1819|      0|                return 0;
 1820|  46.2k|            }
 1821|   327k|        }
 1822|       |        
 1823|   327k|        return val;
 1824|   327k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE15read_bigdecimalEhRNS4_12basic_stringIcNS4_11char_traitsIcEES6_EERNS4_10error_codeE:
 1827|  94.3k|    {
 1828|  94.3k|        std::size_t size = read_unsigned_integer(container_info, ec);
 1829|  94.3k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  94.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 94.3k]
  |  |  ------------------
  ------------------
 1830|      5|        {
 1831|      5|            return;
 1832|      5|        }
 1833|  94.3k|        if (size != 2)
  ------------------
  |  Branch (1833:13): [True: 13, False: 94.3k]
  ------------------
 1834|     13|        {
 1835|     13|            ec = cbor_errc::invalid_bigdecimal;
 1836|     13|            more_ = false;
 1837|     13|            return;
 1838|     13|        }
 1839|       |
 1840|  94.3k|        auto c = source_.peek();
 1841|  94.3k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  94.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 16, False: 94.3k]
  |  |  ------------------
  ------------------
 1842|     16|        {
 1843|     16|            ec = cbor_errc::unexpected_eof;
 1844|     16|            more_ = false;
 1845|     16|            return;
 1846|     16|        }
 1847|  94.3k|        int64_t exponent = 0;
 1848|  94.3k|        auto major_type = get_major_type(c.value);
 1849|  94.3k|        auto info = get_additional_information(c.value);
 1850|  94.3k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  95.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 94.3k]
  |  |  |  Branch (79:50): [True: 727, False: 93.6k]
  |  |  |  Branch (79:50): [True: 2, False: 725]
  |  |  ------------------
  ------------------
 1851|      2|        {
 1852|      2|            ec = cbor_errc::reserved_additional_info;
 1853|      2|            more_ = false;
 1854|      2|            return;
 1855|      2|        }
 1856|       |
 1857|  94.3k|        switch (major_type)
 1858|  94.3k|        {
 1859|  30.9k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1859:13): [True: 30.9k, False: 63.4k]
  ------------------
 1860|  30.9k|            {
 1861|  30.9k|                source_.ignore(1);
 1862|  30.9k|                auto u = read_unsigned_integer(info, ec);
 1863|  30.9k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  30.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 30.9k]
  |  |  ------------------
  ------------------
 1864|      3|                {
 1865|      3|                    return;
 1866|      3|                }
 1867|  30.9k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1867:21): [True: 8, False: 30.9k]
  ------------------
 1868|      8|                {
 1869|      8|                    ec = cbor_errc::bigdec_scale_overflow;
 1870|      8|                    more_ = false;
 1871|      8|                    return;
 1872|      8|                }
 1873|  30.9k|                exponent = static_cast<int64_t>(u);
 1874|  30.9k|                break;
 1875|  30.9k|            }
 1876|  63.3k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1876:13): [True: 63.3k, False: 31.0k]
  ------------------
 1877|  63.3k|            {
 1878|  63.3k|                exponent = read_int64(ec);
 1879|  63.3k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  63.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 63.3k]
  |  |  ------------------
  ------------------
 1880|      2|                {
 1881|      2|                    return;
 1882|      2|                }
 1883|  63.3k|                break;
 1884|  63.3k|            }
 1885|  63.3k|            default:
  ------------------
  |  Branch (1885:13): [True: 101, False: 94.2k]
  ------------------
 1886|    101|            {
 1887|    101|                ec = cbor_errc::invalid_bigdecimal;
 1888|    101|                more_ = false;
 1889|    101|                return;
 1890|  63.3k|            }
 1891|  94.3k|        }
 1892|       |
 1893|  94.2k|        c = source_.peek();
 1894|  94.2k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  94.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 14, False: 94.2k]
  |  |  ------------------
  ------------------
 1895|     14|        {
 1896|     14|            ec = cbor_errc::unexpected_eof;
 1897|     14|            more_ = false;
 1898|     14|            return;
 1899|     14|        }
 1900|       |
 1901|  94.2k|        major_type = get_major_type(c.value);
 1902|  94.2k|        info = get_additional_information(c.value);
 1903|  94.2k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  94.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 94.2k]
  |  |  |  Branch (79:50): [True: 332, False: 93.8k]
  |  |  |  Branch (79:50): [True: 4, False: 328]
  |  |  ------------------
  ------------------
 1904|      4|        {
 1905|      4|            ec = cbor_errc::reserved_additional_info;
 1906|      4|            more_ = false;
 1907|      4|            return;
 1908|      4|        }
 1909|       |
 1910|  94.2k|        bigint unscaled;
 1911|  94.2k|        switch (major_type)
 1912|  94.2k|        {
 1913|  38.6k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1913:13): [True: 38.6k, False: 55.5k]
  ------------------
 1914|  38.6k|            {
 1915|  38.6k|                source_.ignore(1);
 1916|  38.6k|                uint64_t u = read_unsigned_integer(info, ec);
 1917|  38.6k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  38.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 38.6k]
  |  |  ------------------
  ------------------
 1918|      0|                {
 1919|      0|                    return;
 1920|      0|                }
 1921|  38.6k|                unscaled = bigint(u);
 1922|  38.6k|                break;
 1923|  38.6k|            }
 1924|  19.1k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1924:13): [True: 19.1k, False: 75.0k]
  ------------------
 1925|  19.1k|            {
 1926|  19.1k|                source_.ignore(1);
 1927|  19.1k|                auto u = read_unsigned_integer(info, ec);
 1928|  19.1k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  19.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 19.1k]
  |  |  ------------------
  ------------------
 1929|      3|                {
 1930|      3|                    return;
 1931|      3|                }
 1932|  19.1k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1932:21): [True: 5.76k, False: 13.3k]
  ------------------
 1933|  5.76k|                {
 1934|  5.76k|                    unscaled = -1 - bigint(u);
 1935|  5.76k|                }
 1936|  13.3k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  13.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 433, False: 12.9k]
  |  |  ------------------
  ------------------
 1937|    433|                {
 1938|    433|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 1939|    433|                }
 1940|  12.9k|                else
 1941|  12.9k|                {
 1942|  12.9k|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 1943|  12.9k|                }
 1944|  19.1k|                break;
 1945|  19.1k|            }
 1946|  36.3k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1946:13): [True: 36.3k, False: 57.8k]
  ------------------
 1947|  36.3k|            {
 1948|  36.3k|                uint8_t b;
 1949|  36.3k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1949:21): [True: 0, False: 36.3k]
  ------------------
 1950|      0|                {
 1951|      0|                    ec = cbor_errc::unexpected_eof;
 1952|      0|                    more_ = false;
 1953|      0|                    return;
 1954|      0|                }
 1955|  36.3k|                info = get_additional_information(b);
 1956|  36.3k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  36.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 36.3k]
  |  |  |  Branch (79:50): [True: 308, False: 36.0k]
  |  |  |  Branch (79:50): [True: 0, False: 308]
  |  |  ------------------
  ------------------
 1957|      0|                {
 1958|      0|                    ec = cbor_errc::reserved_additional_info;
 1959|      0|                    more_ = false;
 1960|      0|                    return;
 1961|      0|                }
 1962|  36.3k|                c = source_.peek();
 1963|  36.3k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  36.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 36.3k]
  |  |  ------------------
  ------------------
 1964|     12|                {
 1965|     12|                    ec = cbor_errc::unexpected_eof;
 1966|     12|                    more_ = false;
 1967|     12|                    return;
 1968|     12|                }
 1969|       |
 1970|  36.3k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1970:21): [True: 19.6k, False: 16.7k]
  ------------------
 1971|  19.6k|                {
 1972|  19.6k|                    bytes_buffer_.clear();
 1973|  19.6k|                    read_byte_string(bytes_buffer_, ec);
 1974|  19.6k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  19.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 37, False: 19.5k]
  |  |  ------------------
  ------------------
 1975|     37|                    {
 1976|     37|                        more_ = false;
 1977|     37|                        return;
 1978|     37|                    }
 1979|  19.5k|                    if (info == 2)
  ------------------
  |  Branch (1979:25): [True: 3.84k, False: 15.7k]
  ------------------
 1980|  3.84k|                    {
 1981|  3.84k|                        unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1982|  3.84k|                    }
 1983|  15.7k|                    else if (info == 3)
  ------------------
  |  Branch (1983:30): [True: 14.1k, False: 1.56k]
  ------------------
 1984|  14.1k|                    {
 1985|  14.1k|                        unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1986|  14.1k|                        unscaled = -1 - unscaled;
 1987|  14.1k|                    }
 1988|  19.5k|                }
 1989|  36.3k|                break;
 1990|  36.3k|            }
 1991|  36.3k|            default:
  ------------------
  |  Branch (1991:13): [True: 45, False: 94.1k]
  ------------------
 1992|     45|            {
 1993|     45|                ec = cbor_errc::invalid_bigdecimal;
 1994|     45|                more_ = false;
 1995|     45|                return;
 1996|  36.3k|            }
 1997|  94.2k|        }
 1998|       |
 1999|  94.1k|        bigdec dec(std::move(unscaled), -exponent);
 2000|  94.1k|        append_to_buffer(dec, result);
 2001|  94.1k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE10read_int64ERNS4_10error_codeE:
 1495|   152k|    {
 1496|   152k|        int64_t val = 0;
 1497|       |
 1498|   152k|        auto ch = source_.peek();
 1499|   152k|        if (ch.eof)
  ------------------
  |  Branch (1499:13): [True: 0, False: 152k]
  ------------------
 1500|      0|        {
 1501|      0|            ec = cbor_errc::unexpected_eof;
 1502|      0|            more_ = false;
 1503|      0|            return val;
 1504|      0|        }
 1505|       |
 1506|   152k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(ch.value);
 1507|   152k|        uint8_t info = get_additional_information(ch.value);
 1508|   152k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   153k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 152k]
  |  |  |  Branch (79:50): [True: 1.00k, False: 151k]
  |  |  |  Branch (79:50): [True: 0, False: 1.00k]
  |  |  ------------------
  ------------------
 1509|      0|        {
 1510|      0|            ec = cbor_errc::reserved_additional_info;
 1511|      0|            more_ = false;
 1512|      0|            return val;
 1513|      0|        }
 1514|   152k|        switch (major_type)
 1515|   152k|        {
 1516|   152k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1516:13): [True: 152k, False: 0]
  ------------------
 1517|   152k|                source_.ignore(1);
 1518|   152k|                switch (info)
  ------------------
  |  Branch (1518:25): [True: 151k, False: 1.00k]
  ------------------
 1519|   152k|                {
 1520|   130k|                    case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|   130k|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 2.08k, False: 150k]
  |  |  |  Branch (18:20): [True: 259, False: 152k]
  |  |  |  Branch (18:30): [True: 386, False: 152k]
  |  |  |  Branch (18:40): [True: 16.4k, False: 136k]
  |  |  |  Branch (18:50): [True: 521, False: 152k]
  |  |  |  Branch (18:60): [True: 100, False: 152k]
  |  |  |  Branch (18:70): [True: 741, False: 151k]
  |  |  |  Branch (18:80): [True: 656, False: 152k]
  |  |  |  Branch (18:90): [True: 1.24k, False: 151k]
  |  |  |  Branch (18:100): [True: 13.7k, False: 138k]
  |  |  |  Branch (18:110): [True: 14.1k, False: 138k]
  |  |  |  Branch (18:120): [True: 2.23k, False: 150k]
  |  |  |  Branch (18:130): [True: 1.44k, False: 151k]
  |  |  |  Branch (18:140): [True: 4.75k, False: 147k]
  |  |  |  Branch (18:150): [True: 58.8k, False: 93.8k]
  |  |  |  Branch (18:160): [True: 246, False: 152k]
  |  |  |  Branch (18:170): [True: 2.31k, False: 150k]
  |  |  |  Branch (18:180): [True: 761, False: 151k]
  |  |  |  Branch (18:190): [True: 740, False: 151k]
  |  |  |  Branch (18:200): [True: 471, False: 152k]
  |  |  |  Branch (18:210): [True: 128, False: 152k]
  |  |  |  Branch (18:220): [True: 1.82k, False: 150k]
  |  |  ------------------
  ------------------
  |  Branch (1520:21): [True: 4.08k, False: 148k]
  ------------------
 1521|   130k|                    {
 1522|   130k|                        val = static_cast<int8_t>(- 1 - info);
 1523|   130k|                        break;
 1524|  1.44M|                    }
 1525|  18.4k|                    case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1525:21): [True: 18.4k, False: 134k]
  ------------------
 1526|  18.4k|                        {
 1527|  18.4k|                            uint8_t b;
 1528|  18.4k|                            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1528:33): [True: 0, False: 18.4k]
  ------------------
 1529|      0|                            {
 1530|      0|                                ec = cbor_errc::unexpected_eof;
 1531|      0|                                more_ = false;
 1532|      0|                                return val;
 1533|      0|                            }
 1534|  18.4k|                            val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1535|  18.4k|                            break;
 1536|  18.4k|                        }
 1537|       |
 1538|    232|                    case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1538:21): [True: 232, False: 152k]
  ------------------
 1539|    232|                        {
 1540|    232|                            uint8_t buf[sizeof(uint16_t)];
 1541|    232|                            if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1541:33): [True: 0, False: 232]
  ------------------
 1542|      0|                            {
 1543|      0|                                ec = cbor_errc::unexpected_eof;
 1544|      0|                                more_ = false;
 1545|      0|                                return val;
 1546|      0|                            }
 1547|    232|                            auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1548|    232|                            val = static_cast<int64_t>(-1)- u;
 1549|    232|                            break;
 1550|    232|                        }
 1551|       |
 1552|  1.42k|                    case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1552:21): [True: 1.42k, False: 151k]
  ------------------
 1553|  1.42k|                        {
 1554|  1.42k|                            uint8_t buf[sizeof(uint32_t)];
 1555|  1.42k|                            if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1555:33): [True: 0, False: 1.42k]
  ------------------
 1556|      0|                            {
 1557|      0|                                ec = cbor_errc::unexpected_eof;
 1558|      0|                                more_ = false;
 1559|      0|                                return val;
 1560|      0|                            }
 1561|  1.42k|                            auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1562|  1.42k|                            val = static_cast<int64_t>(-1)- u;
 1563|  1.42k|                            break;
 1564|  1.42k|                        }
 1565|       |
 1566|  1.34k|                    case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1566:21): [True: 1.34k, False: 151k]
  ------------------
 1567|  1.34k|                        {
 1568|  1.34k|                            uint8_t buf[sizeof(uint64_t)];
 1569|  1.34k|                            if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1569:33): [True: 2, False: 1.34k]
  ------------------
 1570|      2|                            {
 1571|      2|                                ec = cbor_errc::unexpected_eof;
 1572|      2|                                more_ = false;
 1573|      2|                                return val;
 1574|      2|                            }
 1575|  1.34k|                            auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1576|  1.34k|                            if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1576:33): [True: 6, False: 1.33k]
  ------------------
 1577|      6|                            {
 1578|      6|                                ec = cbor_errc::invalid_bigdecimal;
 1579|      6|                                more_ = false;
 1580|      6|                                return val;
 1581|      6|                            }
 1582|  1.33k|                            if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  1.33k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 391, False: 948]
  |  |  ------------------
  ------------------
 1583|    391|                            {
 1584|    391|                                val = (std::numeric_limits<int64_t>::min)();
 1585|    391|                            }
 1586|    948|                            else
 1587|    948|                            {
 1588|    948|                                val = static_cast<int64_t>(-1)- static_cast<int64_t>(u);
 1589|    948|                            }
 1590|  1.33k|                            break;
 1591|  1.34k|                        }
 1592|   152k|                }
 1593|   152k|                break;
 1594|       |
 1595|   152k|                case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1595:17): [True: 0, False: 152k]
  ------------------
 1596|      0|                {
 1597|      0|                    source_.ignore(1);
 1598|      0|                    uint64_t u = read_unsigned_integer(info, ec);
 1599|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1600|      0|                    {
 1601|      0|                        return 0;
 1602|      0|                    }
 1603|      0|                    if (u <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1603:25): [True: 0, False: 0]
  ------------------
 1604|      0|                    {
 1605|      0|                        val = u;
 1606|      0|                    }
 1607|      0|                    else
 1608|      0|                    {
 1609|       |                        // error;
 1610|      0|                    }
 1611|       |                    
 1612|      0|                    break;
 1613|      0|                }
 1614|      0|                break;
 1615|      0|            default:
  ------------------
  |  Branch (1615:13): [True: 0, False: 152k]
  ------------------
 1616|      0|                break;
 1617|   152k|        }
 1618|       |
 1619|   152k|        return val;
 1620|   152k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13read_bigfloatEhRNS4_12basic_stringIcNS4_11char_traitsIcEES6_EERNS4_10error_codeE:
 2004|   144k|    {
 2005|   144k|        std::size_t size = read_unsigned_integer(container_info, ec);
 2006|   144k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   144k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 144k]
  |  |  ------------------
  ------------------
 2007|      1|        {
 2008|      1|            return;
 2009|      1|        }
 2010|   144k|        if (size != 2)
  ------------------
  |  Branch (2010:13): [True: 10, False: 144k]
  ------------------
 2011|     10|        {
 2012|     10|            ec = cbor_errc::invalid_bigfloat;
 2013|     10|            more_ = false;
 2014|     10|            return;
 2015|     10|        }
 2016|       |
 2017|   144k|        auto c = source_.peek();
 2018|   144k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   144k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 8, False: 144k]
  |  |  ------------------
  ------------------
 2019|      8|        {
 2020|      8|            ec = cbor_errc::unexpected_eof;
 2021|      8|            more_ = false;
 2022|      8|            return;
 2023|      8|        }
 2024|   144k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 2025|   144k|        uint8_t info = get_additional_information(c.value);
 2026|   144k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   144k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 144k]
  |  |  |  Branch (79:50): [True: 288, False: 143k]
  |  |  |  Branch (79:50): [True: 0, False: 288]
  |  |  ------------------
  ------------------
 2027|      0|        {
 2028|      0|            ec = cbor_errc::reserved_additional_info;
 2029|      0|            more_ = false;
 2030|      0|            return;
 2031|      0|        }
 2032|       |
 2033|   144k|        int64_t exponent = 0;
 2034|   144k|        switch (major_type)
 2035|   144k|        {
 2036|  54.6k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2036:13): [True: 54.6k, False: 89.4k]
  ------------------
 2037|  54.6k|            {
 2038|  54.6k|                source_.ignore(1);
 2039|  54.6k|                auto u = read_unsigned_integer(info, ec);
 2040|  54.6k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  54.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 54.6k]
  |  |  ------------------
  ------------------
 2041|      0|                {
 2042|      0|                    return;
 2043|      0|                }
 2044|  54.6k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2044:21): [True: 4, False: 54.5k]
  ------------------
 2045|      4|                {
 2046|      4|                    ec = cbor_errc::invalid_bigdecimal;
 2047|      4|                    more_ = false;
 2048|      4|                    return;
 2049|      4|                }
 2050|  54.5k|                exponent = static_cast<int64_t>(u);
 2051|  54.5k|                if (exponent == 0)
  ------------------
  |  Branch (2051:21): [True: 2.23k, False: 52.3k]
  ------------------
 2052|  2.23k|                {
 2053|  2.23k|                    str.append("0.0");
 2054|  2.23k|                    return;
 2055|  2.23k|                }
 2056|  52.3k|                break;
 2057|  54.5k|            }
 2058|  89.3k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2058:13): [True: 89.3k, False: 54.6k]
  ------------------
 2059|  89.3k|            {
 2060|  89.3k|                exponent = read_int64(ec);
 2061|  89.3k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  89.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 89.3k]
  |  |  ------------------
  ------------------
 2062|      6|                {
 2063|      6|                    return;
 2064|      6|                }
 2065|  89.3k|                if (exponent == 0)
  ------------------
  |  Branch (2065:21): [True: 284, False: 89.0k]
  ------------------
 2066|    284|                {
 2067|    284|                    str.append("0.0");
 2068|    284|                    return;
 2069|    284|                }
 2070|  89.0k|                break;
 2071|  89.3k|            }
 2072|  89.0k|            default:
  ------------------
  |  Branch (2072:13): [True: 39, False: 143k]
  ------------------
 2073|     39|            {
 2074|     39|                ec = cbor_errc::invalid_bigfloat;
 2075|     39|                more_ = false;
 2076|     39|                return;
 2077|  89.3k|            }
 2078|   144k|        }
 2079|       |
 2080|   141k|        c = source_.peek();
 2081|   141k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   141k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 18, False: 141k]
  |  |  ------------------
  ------------------
 2082|     18|        {
 2083|     18|            ec = cbor_errc::unexpected_eof;
 2084|     18|            more_ = false;
 2085|     18|            return;
 2086|     18|        }
 2087|   141k|        major_type = get_major_type(c.value);
 2088|   141k|        info = get_additional_information(c.value);
 2089|   141k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   141k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 141k]
  |  |  |  Branch (79:50): [True: 48, False: 141k]
  |  |  |  Branch (79:50): [True: 6, False: 42]
  |  |  ------------------
  ------------------
 2090|      6|        {
 2091|      6|            ec = cbor_errc::reserved_additional_info;
 2092|      6|            more_ = false;
 2093|      6|            return;
 2094|      6|        }
 2095|       |
 2096|   141k|        bigint unscaled;
 2097|   141k|        switch (major_type)
 2098|   141k|        {
 2099|  5.79k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2099:13): [True: 5.79k, False: 135k]
  ------------------
 2100|  5.79k|            {
 2101|  5.79k|                source_.ignore(1);
 2102|  5.79k|                uint64_t u = read_unsigned_integer(info, ec);
 2103|  5.79k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.79k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.79k]
  |  |  ------------------
  ------------------
 2104|      0|                {
 2105|      0|                    return;
 2106|      0|                }
 2107|  5.79k|                unscaled = bigint(u);
 2108|       |                //bigdec dec(std::move(unscaled), -exponent);
 2109|       |                //append_to_buffer(dec, str);
 2110|  5.79k|                break;
 2111|  5.79k|            }
 2112|  21.7k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2112:13): [True: 21.7k, False: 119k]
  ------------------
 2113|  21.7k|            {
 2114|  21.7k|                source_.ignore(1);
 2115|  21.7k|                auto u = read_unsigned_integer(info, ec);
 2116|  21.7k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  21.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 25, False: 21.7k]
  |  |  ------------------
  ------------------
 2117|     25|                {
 2118|     25|                    return;
 2119|     25|                }
 2120|  21.7k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2120:21): [True: 4, False: 21.7k]
  ------------------
 2121|      4|                {
 2122|      4|                    unscaled = -1 - bigint(u);
 2123|      4|                }
 2124|  21.7k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  21.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 28, False: 21.7k]
  |  |  ------------------
  ------------------
 2125|     28|                {
 2126|     28|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 2127|     28|                }
 2128|  21.7k|                else
 2129|  21.7k|                {
 2130|  21.7k|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 2131|  21.7k|                }
 2132|       |                //bigdec dec(std::move(unscaled), -exponent);
 2133|       |                //append_to_buffer(dec, str);
 2134|  21.7k|                break;
 2135|  21.7k|            }
 2136|   113k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (2136:13): [True: 113k, False: 27.5k]
  ------------------
 2137|   113k|            {
 2138|   113k|                uint8_t x;
 2139|   113k|                if (source_.read(&x, 1) == 0)
  ------------------
  |  Branch (2139:21): [True: 0, False: 113k]
  ------------------
 2140|      0|                {
 2141|      0|                    ec = cbor_errc::unexpected_eof;
 2142|      0|                    more_ = false;
 2143|      0|                    return;
 2144|      0|                }
 2145|   113k|                uint8_t tag = get_additional_information(x);
 2146|   113k|                if (JSONCONS_UNLIKELY(tag >= 0x1C && tag <= 0x1E))
  ------------------
  |  |   79|   113k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 113k]
  |  |  |  Branch (79:50): [True: 5, False: 113k]
  |  |  |  Branch (79:50): [True: 0, False: 5]
  |  |  ------------------
  ------------------
 2147|      0|                {
 2148|      0|                    ec = cbor_errc::reserved_additional_info;
 2149|      0|                    more_ = false;
 2150|      0|                    return;
 2151|      0|                }
 2152|       |
 2153|   113k|                c = source_.peek();
 2154|   113k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   113k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 113k]
  |  |  ------------------
  ------------------
 2155|      1|                {
 2156|      1|                    ec = cbor_errc::unexpected_eof;
 2157|      1|                    more_ = false;
 2158|      1|                    return;
 2159|      1|                }
 2160|       |
 2161|   113k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2161:21): [True: 96.4k, False: 17.3k]
  ------------------
 2162|  96.4k|                {
 2163|  96.4k|                    bytes_buffer_.clear();
 2164|  96.4k|                    read_byte_string(bytes_buffer_, ec);
 2165|  96.4k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  96.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 55, False: 96.4k]
  |  |  ------------------
  ------------------
 2166|     55|                    {
 2167|     55|                        more_ = false;
 2168|     55|                        return;
 2169|     55|                    }
 2170|  96.4k|                    unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 2171|  96.4k|                    if (tag == 3)
  ------------------
  |  Branch (2171:25): [True: 82.1k, False: 14.3k]
  ------------------
 2172|  82.1k|                    {
 2173|  82.1k|                        unscaled = -1 - unscaled;
 2174|  82.1k|                    }
 2175|  96.4k|                }
 2176|   113k|                break;
 2177|   113k|            }
 2178|   113k|            default:
  ------------------
  |  Branch (2178:13): [True: 40, False: 141k]
  ------------------
 2179|     40|            {
 2180|     40|                ec = cbor_errc::invalid_bigfloat;
 2181|     40|                more_ = false;
 2182|     40|                return;
 2183|   113k|            }
 2184|   141k|        }
 2185|       |
 2186|   141k|        bigdec dec;
 2187|   141k|        auto result = from_cbor_bigfloat(std::move(unscaled), exponent, dec, bigfloat_precision_);
 2188|   141k|        if (result != cbor_errc{})
  ------------------
  |  Branch (2188:13): [True: 0, False: 141k]
  ------------------
 2189|      0|        {
 2190|      0|            ec = result;
 2191|      0|            more_ = false;
 2192|      0|            return;
 2193|      0|        }
 2194|   141k|        append_to_buffer(dec, str);
 2195|   141k|    }
_ZN8jsoncons4cbor18from_cbor_bigfloatINSt3__19allocatorImEEEENS0_9cbor_errcENS_12basic_bigintIT_EElRNS_12basic_bigdecIS7_EEm:
   46|   340k|{
   47|   340k|    constexpr uint64_t max_scale =
   48|   340k|        static_cast<uint64_t>(
   49|   340k|            (std::numeric_limits<int64_t>::max)()
   50|   340k|        );
   51|       |
   52|   340k|    if (max_decimal_places > max_scale)
  ------------------
  |  Branch (52:9): [True: 0, False: 340k]
  ------------------
   53|      0|    {
   54|      0|        return cbor_errc::bigdec_scale_overflow;
   55|      0|    }
   56|       |
   57|   340k|    if (unscaled.is_zero())
  ------------------
  |  Branch (57:9): [True: 79.2k, False: 260k]
  ------------------
   58|  79.2k|    {
   59|  79.2k|        value = basic_bigdec<Allocator>{ basic_bigint<Allocator>(0), 0 };
   60|  79.2k|        return cbor_errc{};
   61|  79.2k|    }
   62|       |
   63|       |    // Positive exponent: exact integer.
   64|   260k|    if (exponent >= 0) {
  ------------------
  |  Branch (64:9): [True: 126k, False: 134k]
  ------------------
   65|   126k|        unscaled <<= (static_cast<uint64_t>(exponent));
   66|   126k|        value = basic_bigdec<Allocator>{ std::move(unscaled), 0 };
   67|   126k|        return cbor_errc{};
   68|   126k|    }
   69|       |
   70|   134k|    const bool negative = unscaled < basic_bigint<Allocator>(0);
   71|       |
   72|   134k|    if (negative)
  ------------------
  |  Branch (72:9): [True: 124k, False: 9.78k]
  ------------------
   73|   124k|        unscaled = -unscaled;
   74|       |
   75|       |    // Absolute exponent, safe for INT64_MIN.
   76|   134k|    uint64_t k =
   77|   134k|        static_cast<uint64_t>(-(exponent + 1)) + 1;
   78|       |
   79|       |    // Cancel powers of 2.
   80|   134k|    const u128 trailing = unscaled.trailing_zero_bits();
   81|       |
   82|   134k|    const uint64_t cancel =
   83|   134k|        trailing >= static_cast<u128>(k)
  ------------------
  |  Branch (83:9): [True: 994, False: 133k]
  ------------------
   84|   134k|            ? k
   85|   134k|            : static_cast<uint64_t>(trailing);
   86|       |
   87|   134k|    if (cancel != 0)
  ------------------
  |  Branch (87:9): [True: 69.9k, False: 64.7k]
  ------------------
   88|  69.9k|        unscaled >>= (cancel);
   89|       |
   90|   134k|    k -= cancel;
   91|       |
   92|       |    // Exact conversion when the scale fits.
   93|   134k|    if (k <= max_decimal_places) {
  ------------------
  |  Branch (93:9): [True: 131k, False: 3.01k]
  ------------------
   94|   131k|        if (k != 0)
  ------------------
  |  Branch (94:13): [True: 130k, False: 994]
  ------------------
   95|   130k|            unscaled *= jsoncons::powb(basic_bigint<Allocator>(5), k);
   96|       |
   97|   131k|        if (negative)
  ------------------
  |  Branch (97:13): [True: 122k, False: 9.71k]
  ------------------
   98|   122k|            unscaled = -unscaled;
   99|       |
  100|   131k|        value = basic_bigdec<Allocator>{
  101|   131k|            std::move(unscaled),
  102|   131k|            static_cast<int64_t>(k)
  103|   131k|        };
  104|   131k|        return cbor_errc{};
  105|   131k|    }
  106|       |
  107|       |    // Round to max_decimal_places.
  108|       |    //
  109|       |    // m / 2^k * 10^scale
  110|       |    // = m * 5^scale / 2^(k-scale)
  111|       |
  112|  3.01k|    const uint64_t scale = max_decimal_places;
  113|  3.01k|    const uint64_t shift = k - scale;
  114|       |
  115|       |    // Conservative early-zero bound:
  116|       |    // 5^scale < 2^(3*scale).
  117|       |    //
  118|       |    // If shift >= bit_length(m) + 3*scale,
  119|       |    // the rounded result must be zero.
  120|  3.01k|    const u128 bits = unscaled.bit_length();
  121|  3.01k|    const u128 bound =
  122|  3.01k|        bits + static_cast<u128>(3) * scale;
  123|       |
  124|  3.01k|    if (static_cast<u128>(shift) >= bound) {
  ------------------
  |  Branch (124:9): [True: 2.97k, False: 38]
  ------------------
  125|  2.97k|        value = basic_bigdec<Allocator>{
  126|  2.97k|            basic_bigint<Allocator>(0),
  127|  2.97k|            static_cast<int64_t>(scale)
  128|  2.97k|        };
  129|  2.97k|        return cbor_errc{};
  130|  2.97k|    }
  131|       |
  132|       |    // Compute scaled positive magnitude.
  133|     38|    unscaled *= jsoncons::powb(basic_bigint<Allocator>(5), scale);
  134|       |
  135|       |    // Round unscaled / 2^shift using HALF_EVEN.
  136|     38|    basic_bigint<Allocator> quotient = unscaled;
  137|     38|    quotient >>= (shift);
  138|       |
  139|     38|    const bool halfBit = unscaled.test_bit(shift - 1);
  140|     38|    const bool lowerBits = unscaled.any_low_bits(shift - 1);
  141|     38|    const bool odd = quotient.test_bit(0);
  142|       |
  143|     38|    if (halfBit && (lowerBits || odd))
  ------------------
  |  Branch (143:9): [True: 17, False: 21]
  |  Branch (143:21): [True: 17, False: 0]
  |  Branch (143:34): [True: 0, False: 0]
  ------------------
  144|     17|        quotient += basic_bigint<Allocator>(1);
  145|       |
  146|     38|    if (negative && !quotient.is_zero())
  ------------------
  |  Branch (146:9): [True: 11, False: 27]
  |  Branch (146:21): [True: 9, False: 2]
  ------------------
  147|      9|        quotient = -quotient;
  148|       |
  149|     38|    value = basic_bigdec<Allocator> {
  150|     38|        std::move(quotient),
  151|     38|        static_cast<int64_t>(scale)
  152|     38|    };
  153|     38|    return cbor_errc{};
  154|  3.01k|}
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE19read_mdarray_headerERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 2896|  70.3k|    {
 2897|  70.3k|        uint8_t b;
 2898|  70.3k|        if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2898:13): [True: 0, False: 70.3k]
  ------------------
 2899|      0|        {
 2900|      0|            ec = cbor_errc::unexpected_eof;
 2901|      0|            more_ = false;
 2902|      0|            return;
 2903|      0|        }
 2904|  70.3k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(b);
 2905|  70.3k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::array);
  ------------------
  |  |   54|  70.3k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 70.3k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 2906|  70.3k|        uint8_t info = get_additional_information(b);
 2907|  70.3k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   121k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 70.3k]
  |  |  |  Branch (79:50): [True: 51.1k, False: 19.2k]
  |  |  |  Branch (79:50): [True: 0, False: 51.1k]
  |  |  ------------------
  ------------------
 2908|      0|        {
 2909|      0|            ec = cbor_errc::reserved_additional_info;
 2910|      0|            more_ = false;
 2911|      0|            return;
 2912|      0|        }
 2913|       |       
 2914|  70.3k|        read_extents(ec);   
 2915|  70.3k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  70.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 324, False: 70.0k]
  |  |  ------------------
  ------------------
 2916|    324|        {
 2917|    324|            return;
 2918|    324|        }
 2919|       |
 2920|  70.0k|        read_tags(ec);
 2921|  70.0k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  70.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 18, False: 70.0k]
  |  |  ------------------
  ------------------
 2922|     18|        {
 2923|     18|            return;
 2924|     18|        }
 2925|  70.0k|        auto c = source_.peek();
 2926|  70.0k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  70.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 70.0k]
  |  |  ------------------
  ------------------
 2927|      0|        {
 2928|      0|            ec = cbor_errc::unexpected_eof;
 2929|      0|            more_ = false;
 2930|      0|            return;
 2931|      0|        }
 2932|  70.0k|        major_type = get_major_type(c.value);
 2933|  70.0k|        info = get_additional_information(c.value);
 2934|  70.0k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  83.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 70.0k]
  |  |  |  Branch (79:50): [True: 13.4k, False: 56.6k]
  |  |  |  Branch (79:50): [True: 2, False: 13.4k]
  |  |  ------------------
  ------------------
 2935|      2|        {
 2936|      2|            ec = cbor_errc::reserved_additional_info;
 2937|      2|            more_ = false;
 2938|      2|            return;
 2939|      2|        }
 2940|  70.0k|        state_stack_.emplace_back(parse_mode::multi_dim, 0);
 2941|  70.0k|        ++state_stack_.back().index;
 2942|       |
 2943|  70.0k|        if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::row_major) 
  ------------------
  |  Branch (2943:13): [True: 28.0k, False: 41.9k]
  |  Branch (2943:77): [True: 21.9k, False: 6.11k]
  ------------------
 2944|  21.9k|        {
 2945|  21.9k|            source_.ignore(1);
 2946|  21.9k|            begin_classical_array_storage(info, ec);
 2947|  21.9k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  21.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 21.9k]
  |  |  ------------------
  ------------------
 2948|      5|            {
 2949|      5|                return;
 2950|      5|            }
 2951|  21.9k|            auto iter = std::make_shared<cbor_mdarray_row_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2952|  21.9k|            typed_array_stack_.push_back(iter);
 2953|  21.9k|            if (!iter->done())
  ------------------
  |  Branch (2953:17): [True: 21.9k, False: 0]
  ------------------
 2954|  21.9k|            {
 2955|  21.9k|                iter->next(visitor, *this, ec);
 2956|  21.9k|            }
 2957|  21.9k|        }
 2958|  48.0k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::column_major) 
  ------------------
  |  Branch (2958:18): [True: 6.11k, False: 41.9k]
  |  Branch (2958:82): [True: 6.11k, False: 0]
  ------------------
 2959|  6.11k|        {
 2960|  6.11k|            source_.ignore(1);
 2961|  6.11k|            begin_classical_array_storage(info, ec);
 2962|  6.11k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.11k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 6.10k]
  |  |  ------------------
  ------------------
 2963|      2|            {
 2964|      2|                return;
 2965|      2|            }
 2966|  6.10k|            auto iter = std::make_shared<cbor_mdarray_column_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2967|  6.10k|            typed_array_stack_.push_back(iter);
 2968|  6.10k|            if (!iter->done())
  ------------------
  |  Branch (2968:17): [True: 6.10k, False: 0]
  ------------------
 2969|  6.10k|            {
 2970|  6.10k|                iter->next(visitor, *this, ec);
 2971|  6.10k|            }
 2972|  6.10k|        }
 2973|  41.9k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2973:18): [True: 41.9k, False: 71]
  ------------------
 2974|  41.9k|        {
 2975|  41.9k|            std::size_t typed_array_count = typed_array_stack_.size();
 2976|  41.9k|            read_byte_string_from_source read(this);
 2977|  41.9k|            read_byte_string(read, visitor, ec);
 2978|  41.9k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  41.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 739, False: 41.1k]
  |  |  ------------------
  ------------------
 2979|    739|            {
 2980|    739|                return;
 2981|    739|            }
 2982|  41.1k|            if (typed_array_stack_.size() == typed_array_count)
  ------------------
  |  Branch (2982:17): [True: 21, False: 41.1k]
  ------------------
 2983|     21|            {
 2984|       |                // Byte string storage must be a typed array
 2985|     21|                ec = cbor_errc::bad_mdarray;
 2986|     21|                return;
 2987|     21|            }
 2988|  41.1k|        }
 2989|     71|        else
 2990|     71|        {
 2991|     71|            ec = cbor_errc::bad_mdarray;
 2992|     71|            return;
 2993|     71|        }
 2994|       |        // cursor case
 2995|  70.0k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE12read_extentsERNS4_10error_codeE:
 2998|  70.3k|    {
 2999|  70.3k|        extents_.clear();
 3000|       |
 3001|  70.3k|        auto b = source_.peek();
 3002|  70.3k|        if (JSONCONS_UNLIKELY(b.eof))
  ------------------
  |  |   79|  70.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 70.3k]
  |  |  ------------------
  ------------------
 3003|      2|        {
 3004|      2|            ec = cbor_errc::unexpected_eof;
 3005|      2|            more_ = false;
 3006|      2|            return;
 3007|      2|        }
 3008|  70.3k|        if (get_major_type(b.value) != jsoncons::cbor::detail::cbor_major_type::array)
  ------------------
  |  Branch (3008:13): [True: 45, False: 70.3k]
  ------------------
 3009|     45|        {
 3010|     45|            ec = cbor_errc::bad_extents;
 3011|     45|            more_ = false;
 3012|     45|            return;
 3013|     45|        }
 3014|  70.3k|        uint8_t info = get_additional_information(b.value);
 3015|  70.3k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   127k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 70.3k]
  |  |  |  Branch (79:50): [True: 57.6k, False: 12.7k]
  |  |  |  Branch (79:50): [True: 0, False: 57.6k]
  |  |  ------------------
  ------------------
 3016|      0|        {
 3017|      0|            ec = cbor_errc::reserved_additional_info;
 3018|      0|            more_ = false;
 3019|      0|            return;
 3020|      0|        }
 3021|       |
 3022|  70.3k|        source_.ignore(1);
 3023|  70.3k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (3023:13): [True: 57.6k, False: 12.7k]
  ------------------
 3024|  57.6k|        {
 3025|  57.6k|             bool done = false;
 3026|  18.3M|             while (!done)
  ------------------
  |  Branch (3026:21): [True: 18.2M, False: 57.4k]
  ------------------
 3027|  18.2M|             {
 3028|  18.2M|                 auto c = source_.peek();
 3029|  18.2M|                 if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  18.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 51, False: 18.2M]
  |  |  ------------------
  ------------------
 3030|     51|                 {
 3031|     51|                     ec = cbor_errc::unexpected_eof;
 3032|     51|                     more_ = false;
 3033|     51|                     return;
 3034|     51|                 }
 3035|  18.2M|                 if (c.value == 0xff)
  ------------------
  |  Branch (3035:22): [True: 57.4k, False: 18.1M]
  ------------------
 3036|  57.4k|                 {
 3037|  57.4k|                     source_.ignore(1);
 3038|  57.4k|                     done = true;
 3039|  57.4k|                 }
 3040|  18.1M|                 else
 3041|  18.1M|                 {
 3042|  18.1M|                     source_.ignore(1);
 3043|  18.1M|                     std::size_t extent = read_size(get_additional_information(c.value), ec);
 3044|  18.1M|                     if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 99, False: 18.1M]
  |  |  ------------------
  ------------------
 3045|     99|                     {
 3046|     99|                         more_ = false;
 3047|     99|                         return;
 3048|     99|                     }
 3049|  18.1M|                     extents_.push_back(extent);
 3050|  18.1M|                 }
 3051|  18.2M|             }
 3052|  57.6k|        }
 3053|  12.7k|        else 
 3054|  12.7k|        {
 3055|  12.7k|            std::size_t size = read_size(info, ec);
 3056|  12.7k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 12.7k]
  |  |  ------------------
  ------------------
 3057|      0|            {
 3058|      0|                more_ = false;
 3059|      0|                return;
 3060|      0|            }
 3061|   248k|            for (std::size_t i = 0; more_ && i < size; ++i)
  ------------------
  |  Branch (3061:37): [True: 248k, False: 0]
  |  Branch (3061:46): [True: 236k, False: 12.6k]
  ------------------
 3062|   236k|            {
 3063|   236k|                uint8_t initial_byte;
 3064|   236k|                if (source_.read(&initial_byte, 1) == 0)
  ------------------
  |  Branch (3064:21): [True: 32, False: 236k]
  ------------------
 3065|     32|                {
 3066|     32|                    ec = cbor_errc::unexpected_eof;
 3067|     32|                    more_ = false;
 3068|     32|                    return;
 3069|     32|                }
 3070|   236k|                if (JSONCONS_UNLIKELY(get_major_type(initial_byte) != jsoncons::cbor::detail::cbor_major_type::unsigned_integer))
  ------------------
  |  |   79|   236k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 29, False: 236k]
  |  |  ------------------
  ------------------
 3071|     29|                {
 3072|     29|                    ec = cbor_errc::unknown_type;
 3073|     29|                    more_ = false;
 3074|     29|                    return;
 3075|     29|                }
 3076|   236k|                info = get_additional_information(initial_byte);
 3077|   236k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   236k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 236k]
  |  |  |  Branch (79:50): [True: 6, False: 236k]
  |  |  |  Branch (79:50): [True: 6, False: 0]
  |  |  ------------------
  ------------------
 3078|      6|                {
 3079|      6|                    ec = cbor_errc::reserved_additional_info;
 3080|      6|                    more_ = false;
 3081|      6|                    return;
 3082|      6|                }
 3083|   236k|                std::size_t extent = read_size(info, ec);
 3084|   236k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   236k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 236k]
  |  |  ------------------
  ------------------
 3085|      0|                {
 3086|      0|                    more_ = false;
 3087|      0|                    return;
 3088|      0|                }
 3089|   236k|                extents_.push_back(extent);
 3090|   236k|            }
 3091|  12.7k|        }
 3092|  70.1k|        auto r = calculate_mdarray_size(extents_);
 3093|  70.1k|        if (!r || *r == 0)
  ------------------
  |  Branch (3093:13): [True: 48, False: 70.0k]
  |  Branch (3093:19): [True: 12, False: 70.0k]
  ------------------
 3094|     60|        {
 3095|     60|            ec = cbor_errc::bad_extents;
 3096|     60|            more_ = false;
 3097|     60|            return;
 3098|     60|        }
 3099|  70.0k|        mdarray_size_ = *r;
 3100|  70.0k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE29begin_classical_array_storageEhRNS4_10error_codeE:
 1118|  28.0k|    {
 1119|  28.0k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  28.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 28.0k]
  |  |  ------------------
  ------------------
 1120|      5|        {
 1121|      5|            ec = cbor_errc::max_nesting_depth_exceeded;
 1122|      5|            more_ = false;
 1123|      5|            return;
 1124|      5|        }
 1125|  28.0k|        bool pop_stringref_map_stack = false;
 1126|  28.0k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1126:13): [True: 3.62k, False: 24.4k]
  ------------------
 1127|  3.62k|        {
 1128|  3.62k|            stringref_map_stack_.emplace_back();
 1129|  3.62k|            other_tags_[stringref_namespace_tag] = false;
 1130|  3.62k|            pop_stringref_map_stack = true;
 1131|  3.62k|        }
 1132|  28.0k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1132:13): [True: 13.4k, False: 14.6k]
  ------------------
 1133|  13.4k|        {
 1134|  13.4k|            state_stack_.emplace_back(parse_mode::indefinite_array, 0, pop_stringref_map_stack);
 1135|  13.4k|        }
 1136|  14.6k|        else // definite length
 1137|  14.6k|        {
 1138|  14.6k|            std::size_t len = read_size(info, ec);
 1139|  14.6k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  14.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 14.6k]
  |  |  ------------------
  ------------------
 1140|      2|            {
 1141|      2|                return;
 1142|      2|            }
 1143|  14.6k|            state_stack_.emplace_back(parse_mode::array, len, pop_stringref_map_stack);
 1144|  14.6k|        }
 1145|  28.0k|        more_ = !cursor_mode_;
 1146|  28.0k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE11begin_arrayEhRNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 1055|   770k|    {
 1056|   770k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|   770k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 29, False: 770k]
  |  |  ------------------
  ------------------
 1057|     29|        {
 1058|     29|            ec = cbor_errc::max_nesting_depth_exceeded;
 1059|     29|            more_ = false;
 1060|     29|            return;
 1061|     29|        } 
 1062|   770k|        semantic_tag tag = semantic_tag::none;
 1063|   770k|        bool pop_stringref_map_stack = false;
 1064|   770k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1064:13): [True: 8.08k, False: 762k]
  ------------------
 1065|  8.08k|        {
 1066|  8.08k|            stringref_map_stack_.emplace_back();
 1067|  8.08k|            other_tags_[stringref_namespace_tag] = false;
 1068|  8.08k|            pop_stringref_map_stack = true;
 1069|  8.08k|        }
 1070|   770k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1070:13): [True: 137k, False: 632k]
  ------------------
 1071|   137k|        {
 1072|   137k|            state_stack_.emplace_back(parse_mode::indefinite_array,0,pop_stringref_map_stack);
 1073|   137k|            visitor.begin_array(tag, *this, ec);
 1074|   137k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   137k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 137k]
  |  |  ------------------
  ------------------
 1075|      0|            {
 1076|      0|                return;
 1077|      0|            }
 1078|   137k|        }
 1079|   632k|        else // definite length
 1080|   632k|        {
 1081|   632k|            std::size_t len = read_size(info, ec);
 1082|   632k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   632k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 48, False: 632k]
  |  |  ------------------
  ------------------
 1083|     48|            {
 1084|     48|                return;
 1085|     48|            }
 1086|   632k|            state_stack_.emplace_back(parse_mode::array,len,pop_stringref_map_stack);
 1087|   632k|            visitor.begin_array(len, tag, *this, ec);
 1088|   632k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   632k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 632k]
  |  |  ------------------
  ------------------
 1089|      0|            {
 1090|      0|                return;
 1091|      0|            }
 1092|   632k|        }
 1093|   770k|        more_ = !cursor_mode_;
 1094|   770k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE12begin_objectEhRNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 1165|  20.7M|    {
 1166|  20.7M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  20.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 22, False: 20.7M]
  |  |  ------------------
  ------------------
 1167|     22|        {
 1168|     22|            ec = cbor_errc::max_nesting_depth_exceeded;
 1169|     22|            more_ = false;
 1170|     22|            return;
 1171|     22|        } 
 1172|  20.7M|        bool pop_stringref_map_stack = false;
 1173|  20.7M|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1173:13): [True: 12.7k, False: 20.7M]
  ------------------
 1174|  12.7k|        {
 1175|  12.7k|            stringref_map_stack_.emplace_back();
 1176|  12.7k|            other_tags_[stringref_namespace_tag] = false;
 1177|  12.7k|            pop_stringref_map_stack = true;
 1178|  12.7k|        }
 1179|  20.7M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1179:13): [True: 72.7k, False: 20.6M]
  ------------------
 1180|  72.7k|        {
 1181|  72.7k|            state_stack_.emplace_back(parse_mode::indefinite_map_key,0,pop_stringref_map_stack);
 1182|  72.7k|            visitor.begin_object(semantic_tag::none, *this, ec);
 1183|  72.7k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  72.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 72.7k]
  |  |  ------------------
  ------------------
 1184|      0|            {
 1185|      0|                return;
 1186|      0|            }
 1187|  72.7k|        }
 1188|  20.6M|        else // definite_length
 1189|  20.6M|        {
 1190|  20.6M|            std::size_t len = read_size(info, ec);
 1191|  20.6M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 19, False: 20.6M]
  |  |  ------------------
  ------------------
 1192|     19|            {
 1193|     19|                return;
 1194|     19|            }
 1195|  20.6M|            state_stack_.emplace_back(parse_mode::map_key,len,pop_stringref_map_stack);
 1196|  20.6M|            visitor.begin_object(len, semantic_tag::none, *this, ec);
 1197|  20.6M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 20.6M]
  |  |  ------------------
  ------------------
 1198|      0|            {
 1199|      0|                return;
 1200|      0|            }
 1201|  20.6M|        }
 1202|  20.7M|        more_ = !cursor_mode_;
 1203|  20.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE9end_arrayERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 1097|   491k|    {
 1098|   491k|        --nesting_depth_;
 1099|       |
 1100|   491k|        visitor.end_array(*this, ec);
 1101|   491k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   491k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 491k]
  |  |  ------------------
  ------------------
 1102|      0|        {
 1103|      0|            return;
 1104|      0|        }
 1105|   491k|        more_ = !cursor_mode_;
 1106|   491k|        if (level() == mark_level_)
  ------------------
  |  Branch (1106:13): [True: 100, False: 491k]
  ------------------
 1107|    100|        {
 1108|    100|            more_ = false;
 1109|    100|        }
 1110|   491k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1110:13): [True: 1.85k, False: 489k]
  ------------------
 1111|  1.85k|        {
 1112|  1.85k|            stringref_map_stack_.pop_back();
 1113|  1.85k|        }
 1114|   491k|        state_stack_.pop_back();
 1115|   491k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE10end_objectERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 1206|  20.5M|    {
 1207|  20.5M|        --nesting_depth_;
 1208|  20.5M|        visitor.end_object(*this, ec);
 1209|  20.5M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 20.5M]
  |  |  ------------------
  ------------------
 1210|      0|        {
 1211|      0|            return;
 1212|      0|        }
 1213|  20.5M|        more_ = !cursor_mode_;
 1214|  20.5M|        if (level() == mark_level_)
  ------------------
  |  Branch (1214:13): [True: 904, False: 20.5M]
  ------------------
 1215|    904|        {
 1216|    904|            more_ = false;
 1217|    904|        }
 1218|  20.5M|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1218:13): [True: 4.68k, False: 20.5M]
  ------------------
 1219|  4.68k|        {
 1220|  4.68k|            stringref_map_stack_.pop_back();
 1221|  4.68k|        }
 1222|  20.5M|        state_stack_.pop_back();
 1223|  20.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11cursor_modeEb:
  415|  6.41k|    {
  416|  6.41k|        cursor_mode_ = value;
  417|  6.41k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5levelEv:
  420|  31.7M|    {
  421|  31.7M|        return static_cast<int>(state_stack_.size());
  422|  31.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE7restartEv:
  357|  59.7M|    {
  358|  59.7M|        more_ = !done_;
  359|  59.7M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE7stoppedEv:
  440|   119M|    {
  441|   119M|        return !more_;
  442|   119M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  465|  59.7M|    {
  466|   323M|        while (!done_ && more_)
  ------------------
  |  Branch (466:16): [True: 323M, False: 3.51k]
  |  Branch (466:26): [True: 263M, False: 59.7M]
  ------------------
  467|   263M|        {
  468|   263M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (468:21): [True: 263M, False: 0]
  ------------------
  469|   263M|            {
  470|  75.0k|                case parse_mode::multi_dim:
  ------------------
  |  Branch (470:17): [True: 75.0k, False: 263M]
  ------------------
  471|  75.0k|                {
  472|  75.0k|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  75.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 75.0k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  473|  75.0k|                    typed_array_stack_.pop_back();
  474|  75.0k|                    state_stack_.pop_back();
  475|  75.0k|                    break;
  476|  75.0k|                }
  477|  42.7M|                case parse_mode::typed_array:
  ------------------
  |  Branch (477:17): [True: 42.7M, False: 220M]
  ------------------
  478|  42.7M|                {
  479|  42.7M|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  42.7M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 42.7M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  480|  42.7M|                    read_typed_array_item(visitor, ec);
  481|  42.7M|                    auto iter = typed_array_stack_.back();
  482|  42.7M|                    if (iter->done())
  ------------------
  |  Branch (482:25): [True: 311k, False: 42.4M]
  ------------------
  483|   311k|                    {
  484|   311k|                        if (level() == mark_level_)
  ------------------
  |  Branch (484:29): [True: 0, False: 311k]
  ------------------
  485|      0|                        {
  486|      0|                            more_ = false;
  487|      0|                        }
  488|   311k|                        if (!is_multi_dim())
  ------------------
  |  Branch (488:29): [True: 251k, False: 60.8k]
  ------------------
  489|   251k|                        {
  490|   251k|                            typed_array_stack_.pop_back();
  491|   251k|                        }
  492|   311k|                        state_stack_.pop_back();
  493|   311k|                    }
  494|  42.7M|                    break;
  495|  42.7M|                }
  496|  54.1M|                case parse_mode::array:
  ------------------
  |  Branch (496:17): [True: 54.1M, False: 209M]
  ------------------
  497|  54.1M|                {
  498|  54.1M|                    if (is_multi_dim())
  ------------------
  |  Branch (498:25): [True: 35.0M, False: 19.0M]
  ------------------
  499|  35.0M|                    {
  500|  35.0M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  35.0M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 35.0M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  501|  35.0M|                        auto iter = typed_array_stack_.back();
  502|  35.0M|                        if (!iter->done())
  ------------------
  |  Branch (502:29): [True: 35.0M, False: 3.84k]
  ------------------
  503|  35.0M|                        {
  504|  35.0M|                            iter->next(visitor, *this, ec);
  505|  35.0M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  35.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 344, False: 35.0M]
  |  |  ------------------
  ------------------
  506|    344|                            {
  507|    344|                                return;
  508|    344|                            }
  509|  35.0M|                        }
  510|  3.84k|                        else
  511|  3.84k|                        {
  512|  3.84k|                            if (iter->count() != state_stack_.back().length)
  ------------------
  |  Branch (512:33): [True: 56, False: 3.79k]
  ------------------
  513|     56|                            {
  514|       |                                //std::cout << state_stack_.back().index << "!=" << state_stack_.back().length << "\n";
  515|     56|                                ec = cbor_errc::bad_mdarray;
  516|     56|                                return;
  517|     56|                            }
  518|  3.79k|                            end_classical_array_storage(ec);
  519|  3.79k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.79k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.79k]
  |  |  ------------------
  ------------------
  520|      0|                            {
  521|      0|                                return;
  522|      0|                            }
  523|  3.79k|                        }
  524|  35.0M|                    }
  525|  19.0M|                    else
  526|  19.0M|                    {
  527|  19.0M|                        if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (527:29): [True: 18.3M, False: 653k]
  ------------------
  528|  18.3M|                        {
  529|  18.3M|                            ++state_stack_.back().index;
  530|  18.3M|                            read_item(visitor, ec);
  531|  18.3M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4.73k, False: 18.3M]
  |  |  ------------------
  ------------------
  532|  4.73k|                            {
  533|  4.73k|                                return;
  534|  4.73k|                            }
  535|  18.3M|                        }
  536|   653k|                        else
  537|   653k|                        {
  538|   653k|                            end_array(visitor, ec);
  539|   653k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   653k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 653k]
  |  |  ------------------
  ------------------
  540|      0|                            {
  541|      0|                                return;
  542|      0|                            }
  543|   653k|                        }
  544|  19.0M|                    }
  545|  54.1M|                    break;
  546|  54.1M|                }
  547|  64.9M|                case parse_mode::indefinite_array:
  ------------------
  |  Branch (547:17): [True: 64.9M, False: 198M]
  ------------------
  548|  64.9M|                {
  549|  64.9M|                    if (is_multi_dim()) 
  ------------------
  |  Branch (549:25): [True: 24.9M, False: 40.0M]
  ------------------
  550|  24.9M|                    {
  551|  24.9M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  24.9M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 24.9M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  552|  24.9M|                        auto iter = typed_array_stack_.back();
  553|  24.9M|                        if (!iter->done())
  ------------------
  |  Branch (553:29): [True: 24.9M, False: 10.4k]
  ------------------
  554|  24.9M|                        {
  555|  24.9M|                            iter->next(visitor, *this, ec);
  556|  24.9M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  24.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 230, False: 24.9M]
  |  |  ------------------
  ------------------
  557|    230|                            {
  558|    230|                                return;
  559|    230|                            }
  560|  24.9M|                        }
  561|  10.4k|                        else
  562|  10.4k|                        {
  563|  10.4k|                            auto c = source_.peek();
  564|  10.4k|                            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  10.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 13, False: 10.4k]
  |  |  ------------------
  ------------------
  565|     13|                            {
  566|     13|                                ec = cbor_errc::unexpected_eof;
  567|     13|                                more_ = false;
  568|     13|                                return;
  569|     13|                            }
  570|  10.4k|                            if (c.value == 0xff)
  ------------------
  |  Branch (570:33): [True: 10.3k, False: 31]
  ------------------
  571|  10.3k|                            {
  572|  10.3k|                                source_.ignore(1);
  573|  10.3k|                            }
  574|     31|                            else
  575|     31|                            {
  576|     31|                                ec = cbor_errc::bad_mdarray;
  577|     31|                                return;
  578|     31|                            }
  579|  10.3k|                            end_classical_array_storage(ec);
  580|  10.3k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  10.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 10.3k]
  |  |  ------------------
  ------------------
  581|      0|                            {
  582|      0|                                return;
  583|      0|                            }
  584|  10.3k|                        }
  585|  24.9M|                    }
  586|  40.0M|                    else
  587|  40.0M|                    {
  588|  40.0M|                        auto c = source_.peek();
  589|  40.0M|                        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  40.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 738, False: 40.0M]
  |  |  ------------------
  ------------------
  590|    738|                        {
  591|    738|                            ec = cbor_errc::unexpected_eof;
  592|    738|                            more_ = false;
  593|    738|                            return;
  594|    738|                        }
  595|  40.0M|                        if (c.value == 0xff)
  ------------------
  |  Branch (595:29): [True: 61.0k, False: 39.9M]
  ------------------
  596|  61.0k|                        {
  597|  61.0k|                            source_.ignore(1);
  598|  61.0k|                            end_array(visitor, ec);
  599|  61.0k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  61.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 61.0k]
  |  |  ------------------
  ------------------
  600|      0|                            {
  601|      0|                                return;
  602|      0|                            }
  603|  61.0k|                        }
  604|  39.9M|                        else
  605|  39.9M|                        {
  606|  39.9M|                            read_item(visitor, ec);
  607|  39.9M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  39.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.46k, False: 39.9M]
  |  |  ------------------
  ------------------
  608|  1.46k|                            {
  609|  1.46k|                                return;
  610|  1.46k|                            }
  611|  39.9M|                        }
  612|  40.0M|                    }
  613|  64.9M|                    break;
  614|  64.9M|                }
  615|  64.9M|                case parse_mode::map_key:
  ------------------
  |  Branch (615:17): [True: 34.2M, False: 229M]
  ------------------
  616|  34.2M|                {
  617|  34.2M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (617:25): [True: 3.49M, False: 30.7M]
  ------------------
  618|  3.49M|                    {
  619|  3.49M|                        ++state_stack_.back().index;
  620|  3.49M|                        state_stack_.back().mode = parse_mode::map_value;
  621|  3.49M|                        read_item(visitor, ec);
  622|  3.49M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.49M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.50k, False: 3.49M]
  |  |  ------------------
  ------------------
  623|  2.50k|                        {
  624|  2.50k|                            return;
  625|  2.50k|                        }
  626|  3.49M|                    }
  627|  30.7M|                    else
  628|  30.7M|                    {
  629|  30.7M|                        end_object(visitor, ec);
  630|  30.7M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  30.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 30.7M]
  |  |  ------------------
  ------------------
  631|      0|                        {
  632|      0|                            return;
  633|      0|                        }
  634|  30.7M|                    }
  635|  34.2M|                    break;
  636|  34.2M|                }
  637|  34.2M|                case parse_mode::map_value:
  ------------------
  |  Branch (637:17): [True: 3.32M, False: 260M]
  ------------------
  638|  3.32M|                {
  639|  3.32M|                    state_stack_.back().mode = parse_mode::map_key;
  640|  3.32M|                    read_item(visitor, ec);
  641|  3.32M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.32M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.07k, False: 3.32M]
  |  |  ------------------
  ------------------
  642|  2.07k|                    {
  643|  2.07k|                        return;
  644|  2.07k|                    }
  645|  3.32M|                    break;
  646|  3.32M|                }
  647|  32.0M|                case parse_mode::indefinite_map_key:
  ------------------
  |  Branch (647:17): [True: 32.0M, False: 231M]
  ------------------
  648|  32.0M|                {
  649|  32.0M|                    auto c = source_.peek();
  650|  32.0M|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  32.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 583, False: 32.0M]
  |  |  ------------------
  ------------------
  651|    583|                    {
  652|    583|                        ec = cbor_errc::unexpected_eof;
  653|    583|                        more_ = false;
  654|    583|                        return;
  655|    583|                    }
  656|  32.0M|                    if (c.value == 0xff)
  ------------------
  |  Branch (656:25): [True: 18.6k, False: 32.0M]
  ------------------
  657|  18.6k|                    {
  658|  18.6k|                        source_.ignore(1);
  659|  18.6k|                        end_object(visitor, ec);
  660|  18.6k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 18.6k]
  |  |  ------------------
  ------------------
  661|      0|                        {
  662|      0|                            return;
  663|      0|                        }
  664|  18.6k|                    }
  665|  32.0M|                    else
  666|  32.0M|                    {
  667|  32.0M|                        state_stack_.back().mode = parse_mode::indefinite_map_value;
  668|  32.0M|                        read_item(visitor, ec);
  669|  32.0M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  32.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 850, False: 32.0M]
  |  |  ------------------
  ------------------
  670|    850|                        {
  671|    850|                            return;
  672|    850|                        }
  673|  32.0M|                    }
  674|  32.0M|                    break;
  675|  32.0M|                }
  676|  32.0M|                case parse_mode::indefinite_map_value:
  ------------------
  |  Branch (676:17): [True: 32.0M, False: 231M]
  ------------------
  677|  32.0M|                {
  678|  32.0M|                    state_stack_.back().mode = parse_mode::indefinite_map_key;
  679|  32.0M|                    read_item(visitor, ec);
  680|  32.0M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  32.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.76k, False: 32.0M]
  |  |  ------------------
  ------------------
  681|  1.76k|                    {
  682|  1.76k|                        return;
  683|  1.76k|                    }
  684|  32.0M|                    break;
  685|  32.0M|                }
  686|  32.0M|                case parse_mode::root:
  ------------------
  |  Branch (686:17): [True: 19.2k, False: 263M]
  ------------------
  687|  19.2k|                {
  688|  19.2k|                    state_stack_.back().mode = parse_mode::accept;
  689|  19.2k|                    read_item(visitor, ec);
  690|  19.2k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  19.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 369, False: 18.8k]
  |  |  ------------------
  ------------------
  691|    369|                    {
  692|    369|                        return;
  693|    369|                    }
  694|  18.8k|                    break;
  695|  19.2k|                }
  696|  18.8k|                case parse_mode::accept:
  ------------------
  |  Branch (696:17): [True: 3.51k, False: 263M]
  ------------------
  697|  3.51k|                {
  698|  3.51k|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   54|  3.51k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 3.51k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  699|  3.51k|                    state_stack_.clear();
  700|  3.51k|                    more_ = false;
  701|  3.51k|                    done_ = true;
  702|  3.51k|                    visitor.flush();
  703|  3.51k|                    break;
  704|  3.51k|                }
  705|   263M|            }
  706|   263M|        }
  707|  59.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_typed_array_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  710|  42.7M|    {
  711|  42.7M|        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  42.7M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 42.7M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  712|  42.7M|        auto iter = typed_array_stack_.back();
  713|  42.7M|        if (!iter->done())
  ------------------
  |  Branch (713:13): [True: 42.7M, False: 0]
  ------------------
  714|  42.7M|        {
  715|  42.7M|            iter->next(visitor, *this, ec);
  716|  42.7M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  42.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 42.7M]
  |  |  ------------------
  ------------------
  717|      0|            {
  718|      0|                return;
  719|      0|            }
  720|  42.7M|            more_ = !cursor_mode_;
  721|  42.7M|        }
  722|  42.7M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12is_multi_dimEv:
  380|   119M|    {
  381|   119M|        return state_stack_.size() >=2 && state_stack_[state_stack_.size()-2].mode == parse_mode::multi_dim;
  ------------------
  |  Branch (381:16): [True: 119M, False: 0]
  |  Branch (381:43): [True: 60.0M, False: 59.2M]
  ------------------
  382|   119M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE27end_classical_array_storageERNS3_10error_codeE:
 1149|  14.1k|    {
 1150|  14.1k|        --nesting_depth_;
 1151|       |
 1152|  14.1k|        more_ = !cursor_mode_;
 1153|  14.1k|        if (level() == mark_level_)
  ------------------
  |  Branch (1153:13): [True: 0, False: 14.1k]
  ------------------
 1154|      0|        {
 1155|      0|            more_ = false;
 1156|      0|        }
 1157|  14.1k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1157:13): [True: 2.75k, False: 11.4k]
  ------------------
 1158|  2.75k|        {
 1159|  2.75k|            stringref_map_stack_.pop_back();
 1160|  2.75k|        }
 1161|  14.1k|        state_stack_.pop_back();
 1162|  14.1k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  725|   135M|    {
  726|   135M|        read_tags(ec);
  727|   135M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   135M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4.74k, False: 135M]
  |  |  ------------------
  ------------------
  728|  4.74k|        {
  729|  4.74k|            return;
  730|  4.74k|        }
  731|   135M|        auto c = source_.peek();
  732|   135M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   135M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 135M]
  |  |  ------------------
  ------------------
  733|      0|        {
  734|      0|            ec = cbor_errc::unexpected_eof;
  735|      0|            more_ = false;
  736|      0|            return;
  737|      0|        }
  738|   135M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
  739|   135M|        uint8_t info = get_additional_information(c.value);
  740|   135M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   135M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 48, False: 135M]
  |  |  |  Branch (79:50): [True: 400k, False: 135M]
  |  |  |  Branch (79:50): [True: 48, False: 400k]
  |  |  ------------------
  ------------------
  741|     48|        {
  742|     48|            ec = cbor_errc::reserved_additional_info;
  743|     48|            more_ = false;
  744|     48|            return;
  745|     48|        }
  746|       |
  747|   135M|        switch (major_type)
  748|   135M|        {
  749|  64.2M|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (749:13): [True: 64.2M, False: 71.2M]
  ------------------
  750|  64.2M|            {
  751|  64.2M|                source_.ignore(1);
  752|  64.2M|                uint64_t val = read_unsigned_integer(info, ec);
  753|  64.2M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  64.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 94, False: 64.2M]
  |  |  ------------------
  ------------------
  754|     94|                {
  755|     94|                    return;
  756|     94|                }
  757|  64.2M|                if (!stringref_map_stack_.empty() && other_tags_[stringref_tag])
  ------------------
  |  Branch (757:21): [True: 4.12M, False: 60.1M]
  |  Branch (757:21): [True: 134k, False: 64.1M]
  |  Branch (757:54): [True: 134k, False: 3.99M]
  ------------------
  758|   134k|                {
  759|   134k|                    other_tags_[stringref_tag] = false;
  760|   134k|                    if (val >= stringref_map_stack_.back().size())
  ------------------
  |  Branch (760:25): [True: 130, False: 134k]
  ------------------
  761|    130|                    {
  762|    130|                        ec = cbor_errc::stringref_too_large;
  763|    130|                        more_ = false;
  764|    130|                        return;
  765|    130|                    }
  766|   134k|                    auto index = static_cast<typename stringref_map::size_type>(val);
  767|   134k|                    if (index != val)
  ------------------
  |  Branch (767:25): [True: 0, False: 134k]
  ------------------
  768|      0|                    {
  769|      0|                        ec = cbor_errc::number_too_large;
  770|      0|                        more_ = false;
  771|      0|                        return;
  772|      0|                    }
  773|   134k|                    auto& str = stringref_map_stack_.back().at(index);
  774|   134k|                    switch (str.type)
  775|   134k|                    {
  776|  6.18k|                        case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (776:25): [True: 6.18k, False: 128k]
  ------------------
  777|  6.18k|                        {
  778|  6.18k|                            handle_string(visitor, jsoncons::string_view(str.str.data(),str.str.length()),ec);
  779|  6.18k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.18k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.18k]
  |  |  ------------------
  ------------------
  780|      0|                            {
  781|      0|                                return;
  782|      0|                            }
  783|  6.18k|                            break;
  784|  6.18k|                        }
  785|   128k|                        case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (785:25): [True: 128k, False: 6.18k]
  ------------------
  786|   128k|                        {
  787|   128k|                            read_byte_string_from_buffer read(byte_string_view(str.bytes));
  788|   128k|                            read_byte_string(read, visitor, ec);
  789|   128k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   128k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 128k]
  |  |  ------------------
  ------------------
  790|      0|                            {
  791|      0|                                return;
  792|      0|                            }
  793|   128k|                            break;
  794|   128k|                        }
  795|   128k|                        default:
  ------------------
  |  Branch (795:25): [True: 0, False: 134k]
  ------------------
  796|      0|                        {
  797|      0|                            ec = cbor_errc::invalid_major_type;
  798|      0|                            more_ = false;
  799|      0|                            return;
  800|   128k|                        }
  801|   134k|                    }
  802|   134k|                }
  803|  64.1M|                else
  804|  64.1M|                {
  805|  64.1M|                    semantic_tag tag = semantic_tag::none;
  806|  64.1M|                    if (other_tags_[item_tag])
  ------------------
  |  Branch (806:25): [True: 107k, False: 64.0M]
  ------------------
  807|   107k|                    {
  808|   107k|                        if (raw_tag_ == 1)
  ------------------
  |  Branch (808:29): [True: 4.53k, False: 102k]
  ------------------
  809|  4.53k|                        {
  810|  4.53k|                            tag = semantic_tag::epoch_second;
  811|  4.53k|                        }
  812|   107k|                        other_tags_[item_tag] = false;
  813|   107k|                    }
  814|  64.1M|                    visitor.uint64_value(val, tag, *this, ec);
  815|  64.1M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  64.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 64.1M]
  |  |  ------------------
  ------------------
  816|      0|                    {
  817|      0|                        return;
  818|      0|                    }
  819|  64.1M|                    more_ = !cursor_mode_;
  820|  64.1M|                }
  821|  64.2M|                break;
  822|  64.2M|            }
  823|  64.2M|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (823:13): [True: 15.7M, False: 119M]
  ------------------
  824|  15.7M|            {
  825|  15.7M|                source_.ignore(1);
  826|  15.7M|                read_negative_integer (info, visitor, ec);
  827|  15.7M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  15.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 187, False: 15.7M]
  |  |  ------------------
  ------------------
  828|    187|                {
  829|    187|                    return;
  830|    187|                }
  831|  15.7M|                break;
  832|  15.7M|            }
  833|  15.7M|            case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (833:13): [True: 13.4M, False: 122M]
  ------------------
  834|  13.4M|            {
  835|  13.4M|                read_byte_string_from_source read(this);
  836|  13.4M|                read_byte_string(read, visitor, ec);
  837|  13.4M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.74k, False: 13.4M]
  |  |  ------------------
  ------------------
  838|  1.74k|                {
  839|  1.74k|                    return;
  840|  1.74k|                }
  841|  13.4M|                break;
  842|  13.4M|            }
  843|  13.4M|            case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (843:13): [True: 601k, False: 134M]
  ------------------
  844|   601k|            {
  845|   601k|                source_.ignore(1);
  846|   601k|                auto sv = read_text_string_view(info, ec);
  847|   601k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   601k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 924, False: 600k]
  |  |  ------------------
  ------------------
  848|    924|                {
  849|    924|                    return;
  850|    924|                }
  851|   600k|                auto result = unicode_traits::validate(sv.data(),sv.size());
  852|   600k|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (852:21): [True: 758, False: 599k]
  ------------------
  853|    758|                {
  854|    758|                    ec = cbor_errc::invalid_utf8_text_string;
  855|    758|                    more_ = false;
  856|    758|                    return;
  857|    758|                }
  858|   599k|                handle_string(visitor, sv, ec);
  859|   599k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   599k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 599k]
  |  |  ------------------
  ------------------
  860|      0|                {
  861|      0|                    return;
  862|      0|                }
  863|   599k|                break;
  864|   599k|            }
  865|   599k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (865:13): [True: 0, False: 135M]
  ------------------
  866|      0|            {
  867|      0|                JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
  868|      0|                break;
  869|   599k|            }
  870|  8.70M|            case jsoncons::cbor::detail::cbor_major_type::simple:
  ------------------
  |  Branch (870:13): [True: 8.70M, False: 126M]
  ------------------
  871|  8.70M|            {
  872|  8.70M|                switch (info)
  873|  8.70M|                {
  874|   741k|                    case 0x14:
  ------------------
  |  Branch (874:21): [True: 741k, False: 7.96M]
  ------------------
  875|   741k|                        source_.ignore(1);
  876|   741k|                        visitor.bool_value(false, semantic_tag::none, *this, ec);
  877|   741k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   741k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 741k]
  |  |  ------------------
  ------------------
  878|      0|                        {
  879|      0|                            return;
  880|      0|                        }
  881|   741k|                        more_ = !cursor_mode_;
  882|   741k|                        break;
  883|  6.91M|                    case 0x15:
  ------------------
  |  Branch (883:21): [True: 6.91M, False: 1.78M]
  ------------------
  884|  6.91M|                        source_.ignore(1);
  885|  6.91M|                        visitor.bool_value(true, semantic_tag::none, *this, ec);
  886|  6.91M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.91M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.91M]
  |  |  ------------------
  ------------------
  887|      0|                        {
  888|      0|                            return;
  889|      0|                        }
  890|  6.91M|                        more_ = !cursor_mode_;
  891|  6.91M|                        break;
  892|   169k|                    case 0x16:
  ------------------
  |  Branch (892:21): [True: 169k, False: 8.53M]
  ------------------
  893|   169k|                        source_.ignore(1);
  894|   169k|                        visitor.null_value(semantic_tag::none, *this, ec);
  895|   169k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   169k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 169k]
  |  |  ------------------
  ------------------
  896|      0|                        {
  897|      0|                            return;
  898|      0|                        }
  899|   169k|                        more_ = !cursor_mode_;
  900|   169k|                        break;
  901|   156k|                    case 0x17:
  ------------------
  |  Branch (901:21): [True: 156k, False: 8.54M]
  ------------------
  902|   156k|                        source_.ignore(1);
  903|   156k|                        visitor.null_value(semantic_tag::undefined, *this, ec);
  904|   156k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   156k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 156k]
  |  |  ------------------
  ------------------
  905|      0|                        {
  906|      0|                            return;
  907|      0|                        }
  908|   156k|                        more_ = !cursor_mode_;
  909|   156k|                        break;
  910|   227k|                    case 0x19: // Half-Precision Float (two-byte IEEE 754)
  ------------------
  |  Branch (910:21): [True: 227k, False: 8.47M]
  ------------------
  911|   227k|                    {
  912|   227k|                        source_.ignore(1);
  913|   227k|                        uint64_t val = read_unsigned_integer(info, ec);
  914|   227k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   227k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 114, False: 227k]
  |  |  ------------------
  ------------------
  915|    114|                        {
  916|    114|                            return;
  917|    114|                        }
  918|   227k|                        visitor.half_value(static_cast<uint16_t>(val), semantic_tag::none, *this, ec);
  919|   227k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   227k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 227k]
  |  |  ------------------
  ------------------
  920|      0|                        {
  921|      0|                            return;
  922|      0|                        }
  923|   227k|                        more_ = !cursor_mode_;
  924|   227k|                        break;
  925|   227k|                    }
  926|   421k|                    case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (926:21): [True: 421k, False: 8.27M]
  ------------------
  927|   489k|                    case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (927:21): [True: 68.1k, False: 8.63M]
  ------------------
  928|   489k|                    {
  929|   489k|                        source_.ignore(1);
  930|   489k|                        double val = read_double(info, ec);
  931|   489k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   489k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 195, False: 489k]
  |  |  ------------------
  ------------------
  932|    195|                        {
  933|    195|                            return;
  934|    195|                        }
  935|   489k|                        semantic_tag tag = semantic_tag::none;
  936|   489k|                        if (other_tags_[item_tag])
  ------------------
  |  Branch (936:29): [True: 8.56k, False: 481k]
  ------------------
  937|  8.56k|                        {
  938|  8.56k|                            if (raw_tag_ == 1)
  ------------------
  |  Branch (938:33): [True: 1.97k, False: 6.58k]
  ------------------
  939|  1.97k|                            {
  940|  1.97k|                                tag = semantic_tag::epoch_second;
  941|  1.97k|                            }
  942|  8.56k|                            other_tags_[item_tag] = false;
  943|  8.56k|                        }
  944|   489k|                        visitor.double_value(val, tag, *this, ec);
  945|   489k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   489k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 489k]
  |  |  ------------------
  ------------------
  946|      0|                        {
  947|      0|                            return;
  948|      0|                        }
  949|   489k|                        more_ = !cursor_mode_;
  950|   489k|                        break;
  951|   489k|                    }
  952|  2.41k|                    default:
  ------------------
  |  Branch (952:21): [True: 2.41k, False: 8.69M]
  ------------------
  953|  2.41k|                    {
  954|  2.41k|                        ec = cbor_errc::unknown_type;
  955|  2.41k|                        more_ = false;
  956|  2.41k|                        return;
  957|   489k|                    }
  958|  8.70M|                }
  959|  8.69M|                break;
  960|  8.70M|            }
  961|  8.69M|            case jsoncons::cbor::detail::cbor_major_type::array:
  ------------------
  |  Branch (961:13): [True: 1.57M, False: 133M]
  ------------------
  962|  1.57M|            {
  963|  1.57M|                if (other_tags_[item_tag])
  ------------------
  |  Branch (963:21): [True: 519k, False: 1.05M]
  ------------------
  964|   519k|                {
  965|   519k|                    switch (raw_tag_)
  966|   519k|                    {
  967|   135k|                        case 0x04:
  ------------------
  |  Branch (967:25): [True: 135k, False: 383k]
  ------------------
  968|   135k|                            source_.ignore(1);
  969|   135k|                            text_buffer_.clear();
  970|   135k|                            read_bigdecimal(info, text_buffer_, ec);
  971|   135k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   135k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 378, False: 134k]
  |  |  ------------------
  ------------------
  972|    378|                            {
  973|    378|                                return;
  974|    378|                            }
  975|   134k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
  976|   134k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   134k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 134k]
  |  |  ------------------
  ------------------
  977|      0|                            {
  978|      0|                                return;
  979|      0|                            }
  980|   134k|                            more_ = !cursor_mode_;
  981|   134k|                            break;
  982|   202k|                        case 0x05:
  ------------------
  |  Branch (982:25): [True: 202k, False: 316k]
  ------------------
  983|   202k|                            source_.ignore(1);
  984|   202k|                            text_buffer_.clear();
  985|   202k|                            read_bigfloat(info, text_buffer_, ec);
  986|   202k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   202k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 311, False: 202k]
  |  |  ------------------
  ------------------
  987|    311|                            {
  988|    311|                                return;
  989|    311|                            }
  990|   202k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
  991|   202k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   202k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 202k]
  |  |  ------------------
  ------------------
  992|      0|                            {
  993|      0|                                return;
  994|      0|                            }
  995|   202k|                            more_ = !cursor_mode_;
  996|   202k|                            break;
  997|  82.9k|                        case 40: // row-major storage
  ------------------
  |  Branch (997:25): [True: 82.9k, False: 436k]
  ------------------
  998|  82.9k|                            order_ = mdarray_order::row_major;
  999|  82.9k|                            read_mdarray_header(visitor, ec);
 1000|  82.9k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  82.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.96k, False: 80.9k]
  |  |  ------------------
  ------------------
 1001|  1.96k|                            {
 1002|  1.96k|                                return;
 1003|  1.96k|                            }
 1004|  80.9k|                            break;
 1005|  80.9k|                        case 1040: // column-major storage
  ------------------
  |  Branch (1005:25): [True: 21.8k, False: 497k]
  ------------------
 1006|  21.8k|                            order_ = mdarray_order::column_major;
 1007|  21.8k|                            read_mdarray_header(visitor, ec);
 1008|  21.8k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  21.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 141, False: 21.6k]
  |  |  ------------------
  ------------------
 1009|    141|                            {
 1010|    141|                                return;
 1011|    141|                            }
 1012|  21.6k|                            break;
 1013|  76.3k|                        default:
  ------------------
  |  Branch (1013:25): [True: 76.3k, False: 442k]
  ------------------
 1014|  76.3k|                            source_.ignore(1);
 1015|  76.3k|                            begin_array(info, visitor, ec);
 1016|  76.3k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  76.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 76.3k]
  |  |  ------------------
  ------------------
 1017|      0|                            {
 1018|      0|                                return;
 1019|      0|                            }
 1020|  76.3k|                            break;
 1021|   519k|                    }
 1022|   516k|                    other_tags_[item_tag] = false;
 1023|   516k|                }
 1024|  1.05M|                else
 1025|  1.05M|                {
 1026|  1.05M|                    source_.ignore(1);
 1027|  1.05M|                    begin_array(info, visitor, ec);
 1028|  1.05M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.05M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 112, False: 1.05M]
  |  |  ------------------
  ------------------
 1029|    112|                    {
 1030|    112|                        return;
 1031|    112|                    }
 1032|  1.05M|                }
 1033|  1.56M|                break;
 1034|  1.57M|            }
 1035|  31.0M|            case jsoncons::cbor::detail::cbor_major_type::map:
  ------------------
  |  Branch (1035:13): [True: 31.0M, False: 104M]
  ------------------
 1036|  31.0M|            {
 1037|  31.0M|                source_.ignore(1);
 1038|  31.0M|                begin_object(info, visitor, ec);
 1039|  31.0M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  31.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 59, False: 31.0M]
  |  |  ------------------
  ------------------
 1040|     59|                {
 1041|     59|                    return;
 1042|     59|                }
 1043|  31.0M|                break;
 1044|  31.0M|            }
 1045|  31.0M|            default:
  ------------------
  |  Branch (1045:13): [True: 0, False: 135M]
  ------------------
 1046|      0|                ec = cbor_errc::invalid_major_type;
 1047|      0|                more_ = false;
 1048|      0|                return;
 1049|   135M|        }
 1050|   135M|        other_tags_[item_tag] = false;
 1051|   135M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_tagsERNS3_10error_codeE:
 2212|   135M|    {
 2213|   135M|        auto c = source_.peek();
 2214|   135M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   135M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.45k, False: 135M]
  |  |  ------------------
  ------------------
 2215|  3.45k|        {
 2216|  3.45k|            ec = cbor_errc::unexpected_eof;
 2217|  3.45k|            more_ = false;
 2218|  3.45k|            return;
 2219|  3.45k|        }
 2220|   135M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 2221|   135M|        uint8_t info = get_additional_information(c.value);
 2222|   135M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   135M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 496, False: 135M]
  |  |  |  Branch (79:50): [True: 304k, False: 135M]
  |  |  |  Branch (79:50): [True: 496, False: 303k]
  |  |  ------------------
  ------------------
 2223|    496|        {
 2224|    496|            ec = cbor_errc::reserved_additional_info;
 2225|    496|            more_ = false;
 2226|    496|            return;
 2227|    496|        }
 2228|       |
 2229|   138M|        while (major_type == jsoncons::cbor::detail::cbor_major_type::semantic_tag)
  ------------------
  |  Branch (2229:16): [True: 2.44M, False: 135M]
  ------------------
 2230|  2.44M|        {
 2231|  2.44M|            source_.ignore(1);
 2232|  2.44M|            uint64_t val = read_unsigned_integer(info, ec);
 2233|  2.44M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.44M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 340, False: 2.44M]
  |  |  ------------------
  ------------------
 2234|    340|            {
 2235|    340|                return;
 2236|    340|            }
 2237|  2.44M|            switch(val)
 2238|  2.44M|            {
 2239|   142k|                case 25: // stringref
  ------------------
  |  Branch (2239:17): [True: 142k, False: 2.30M]
  ------------------
 2240|   142k|                    other_tags_[stringref_tag] = true;
 2241|   142k|                    break;
 2242|  37.8k|                case 256: // stringref-namespace
  ------------------
  |  Branch (2242:17): [True: 37.8k, False: 2.41M]
  ------------------
 2243|  37.8k|                    other_tags_[stringref_namespace_tag] = true;
 2244|  37.8k|                    break;
 2245|  2.26M|                default:
  ------------------
  |  Branch (2245:17): [True: 2.26M, False: 180k]
  ------------------
 2246|  2.26M|                    other_tags_[item_tag] = true;
 2247|  2.26M|                    raw_tag_ = val;
 2248|  2.26M|                    break;
 2249|  2.44M|            }
 2250|  2.44M|            c = source_.peek();
 2251|  2.44M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  2.44M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 480, False: 2.44M]
  |  |  ------------------
  ------------------
 2252|    480|            {
 2253|    480|                ec = cbor_errc::unexpected_eof;
 2254|    480|                more_ = false;
 2255|    480|                return;
 2256|    480|            }
 2257|  2.44M|            major_type = get_major_type(c.value);
 2258|  2.44M|        }
 2259|   135M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE14get_major_typeEh:
 2198|   289M|    {
 2199|   289M|        static constexpr uint8_t major_type_shift = 0x05;
 2200|   289M|        uint8_t value = type >> major_type_shift;
 2201|   289M|        return static_cast<jsoncons::cbor::detail::cbor_major_type>(value);
 2202|   289M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26get_additional_informationEh:
 2205|   313M|    {
 2206|   313M|        static constexpr uint8_t additional_information_mask = (1U << 5) - 1;
 2207|   313M|        uint8_t value = type & additional_information_mask;
 2208|   313M|        return value;
 2209|   313M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_unsigned_integerEhRNS3_10error_codeE:
 1728|   141M|    {
 1729|   141M|        switch (info)
 1730|   141M|        {
 1731|   139M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|   139M|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 25.5M, False: 115M]
  |  |  |  Branch (18:20): [True: 924k, False: 140M]
  |  |  |  Branch (18:30): [True: 360k, False: 141M]
  |  |  |  Branch (18:40): [True: 590k, False: 140M]
  |  |  |  Branch (18:50): [True: 7.69M, False: 133M]
  |  |  |  Branch (18:60): [True: 206k, False: 141M]
  |  |  |  Branch (18:70): [True: 308k, False: 141M]
  |  |  |  Branch (18:80): [True: 225k, False: 141M]
  |  |  |  Branch (18:90): [True: 47.6k, False: 141M]
  |  |  |  Branch (18:100): [True: 706k, False: 140M]
  |  |  |  Branch (18:110): [True: 14.2M, False: 127M]
  |  |  |  Branch (18:120): [True: 48.4k, False: 141M]
  |  |  |  Branch (18:130): [True: 145k, False: 141M]
  |  |  |  Branch (18:140): [True: 121k, False: 141M]
  |  |  |  Branch (18:150): [True: 223k, False: 141M]
  |  |  |  Branch (18:160): [True: 260k, False: 141M]
  |  |  |  Branch (18:170): [True: 562k, False: 140M]
  |  |  |  Branch (18:180): [True: 221k, False: 141M]
  |  |  |  Branch (18:190): [True: 48.6k, False: 141M]
  |  |  |  Branch (18:200): [True: 102k, False: 141M]
  |  |  |  Branch (18:210): [True: 90.8k, False: 141M]
  |  |  |  Branch (18:220): [True: 71.2k, False: 141M]
  |  |  ------------------
  ------------------
  |  Branch (1731:13): [True: 86.9M, False: 54.4M]
  ------------------
 1732|   139M|            {
 1733|   139M|                return info;
 1734|  2.85G|            }
 1735|  1.10M|            case 0x18: // Unsigned integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1735:13): [True: 1.10M, False: 140M]
  ------------------
 1736|  1.10M|            {
 1737|  1.10M|                uint8_t b;
 1738|  1.10M|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1738:21): [True: 232, False: 1.10M]
  ------------------
 1739|    232|                {
 1740|    232|                    ec = cbor_errc::unexpected_eof;
 1741|    232|                    return uint64_t{};
 1742|    232|                }
 1743|  1.10M|                return b;
 1744|  1.10M|            }
 1745|   429k|            case 0x19: // Unsigned integer (two-byte uint16_t follows)
  ------------------
  |  Branch (1745:13): [True: 429k, False: 141M]
  ------------------
 1746|   429k|            {
 1747|   429k|                uint8_t buf[sizeof(uint16_t)];
 1748|   429k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1748:21): [True: 192, False: 429k]
  ------------------
 1749|    192|                {
 1750|    192|                    ec = cbor_errc::unexpected_eof;
 1751|    192|                    return uint64_t{};
 1752|    192|                }
 1753|   429k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1754|   429k|                return u;
 1755|   429k|            }
 1756|  21.4k|            case 0x1a: // Unsigned integer (four-byte uint32_t follows)
  ------------------
  |  Branch (1756:13): [True: 21.4k, False: 141M]
  ------------------
 1757|  21.4k|            {
 1758|  21.4k|                uint8_t buf[sizeof(uint32_t)];
 1759|  21.4k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1759:21): [True: 38, False: 21.4k]
  ------------------
 1760|     38|                {
 1761|     38|                    ec = cbor_errc::unexpected_eof;
 1762|     38|                    return uint64_t{};
 1763|     38|                }
 1764|  21.4k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1765|  21.4k|                return u;
 1766|  21.4k|            }
 1767|  26.4k|            case 0x1b: // Unsigned integer (eight-byte uint64_t follows)
  ------------------
  |  Branch (1767:13): [True: 26.4k, False: 141M]
  ------------------
 1768|  26.4k|            {
 1769|  26.4k|                uint8_t buf[sizeof(uint64_t)];
 1770|  26.4k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1770:21): [True: 159, False: 26.3k]
  ------------------
 1771|    159|                {
 1772|    159|                    ec = cbor_errc::unexpected_eof;
 1773|    159|                    return uint64_t{};
 1774|    159|                }
 1775|  26.3k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1776|  26.3k|                return u;
 1777|  26.4k|            }
 1778|    289|            default:
  ------------------
  |  Branch (1778:13): [True: 289, False: 141M]
  ------------------
 1779|    289|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (1779:22): [True: 238, False: 51]
  ------------------
 1780|    289|                return uint64_t{};
 1781|   141M|        }
 1782|   141M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13handle_stringERNS_21basic_generic_visitorIcEERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS3_10error_codeE:
 2262|   605k|    {
 2263|   605k|        semantic_tag tag = semantic_tag::none;
 2264|   605k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2264:13): [True: 9.68k, False: 596k]
  ------------------
 2265|  9.68k|        {
 2266|  9.68k|            switch (raw_tag_)
 2267|  9.68k|            {
 2268|    652|                case 0:
  ------------------
  |  Branch (2268:17): [True: 652, False: 9.03k]
  ------------------
 2269|    652|                    tag = semantic_tag::datetime;
 2270|    652|                    break;
 2271|    435|                case 32:
  ------------------
  |  Branch (2271:17): [True: 435, False: 9.24k]
  ------------------
 2272|    435|                    tag = semantic_tag::uri;
 2273|    435|                    break;
 2274|    411|                case 33:
  ------------------
  |  Branch (2274:17): [True: 411, False: 9.27k]
  ------------------
 2275|    411|                    tag = semantic_tag::base64url;
 2276|    411|                    break;
 2277|  1.50k|                case 34:
  ------------------
  |  Branch (2277:17): [True: 1.50k, False: 8.18k]
  ------------------
 2278|  1.50k|                    tag = semantic_tag::base64;
 2279|  1.50k|                    break;
 2280|  6.68k|                default:
  ------------------
  |  Branch (2280:17): [True: 6.68k, False: 2.99k]
  ------------------
 2281|  6.68k|                    break;
 2282|  9.68k|            }
 2283|  9.68k|            other_tags_[item_tag] = false;
 2284|  9.68k|        }
 2285|   605k|        visitor.string_value(v, tag, *this, ec);
 2286|   605k|        more_ = !cursor_mode_;
 2287|   605k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferC2ERKNS_16byte_string_viewE:
  291|   128k|            : bytes(b)
  292|   128k|        {
  293|   128k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_bufferEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2304|   128k|    {
 2305|   128k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2305:13): [True: 107k, False: 20.5k]
  ------------------
 2306|   107k|        {
 2307|   107k|            switch (raw_tag_)
 2308|   107k|            {
 2309|  8.04k|                case 0x2:
  ------------------
  |  Branch (2309:17): [True: 8.04k, False: 99.5k]
  ------------------
 2310|  8.04k|                {
 2311|  8.04k|                    auto bytes = read.view(ec);
 2312|  8.04k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.04k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.04k]
  |  |  ------------------
  ------------------
 2313|      0|                    {
 2314|      0|                        more_ = false;
 2315|      0|                        return;
 2316|      0|                    }
 2317|  8.04k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2318|  8.04k|                    text_buffer_.clear();
 2319|  8.04k|                    b.append_to_buffer(text_buffer_);
 2320|  8.04k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2321|  8.04k|                    more_ = !cursor_mode_;
 2322|  8.04k|                    break;
 2323|  8.04k|                }
 2324|  1.48k|                case 0x3:
  ------------------
  |  Branch (2324:17): [True: 1.48k, False: 106k]
  ------------------
 2325|  1.48k|                {
 2326|  1.48k|                    auto bytes = read.view(ec);
 2327|  1.48k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.48k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.48k]
  |  |  ------------------
  ------------------
 2328|      0|                    {
 2329|      0|                        more_ = false;
 2330|      0|                        return;
 2331|      0|                    }
 2332|  1.48k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2333|  1.48k|                    b = -1 - b;
 2334|  1.48k|                    text_buffer_.clear();
 2335|  1.48k|                    b.append_to_buffer(text_buffer_);
 2336|  1.48k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2337|  1.48k|                    more_ = !cursor_mode_;
 2338|  1.48k|                    break;
 2339|  1.48k|                }
 2340|    494|                case 0x15:
  ------------------
  |  Branch (2340:17): [True: 494, False: 107k]
  ------------------
 2341|    943|                case 0x16:
  ------------------
  |  Branch (2341:17): [True: 449, False: 107k]
  ------------------
 2342|  1.41k|                case 0x17:
  ------------------
  |  Branch (2342:17): [True: 475, False: 107k]
  ------------------
 2343|  1.41k|                {
 2344|  1.41k|                    auto bytes = read.view(ec);
 2345|  1.41k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.41k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.41k]
  |  |  ------------------
  ------------------
 2346|      0|                    {
 2347|      0|                        more_ = false;
 2348|      0|                        return;
 2349|      0|                    }
 2350|  1.41k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2350:46): [True: 494, False: 924]
  ------------------
 2351|  1.41k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2351:27): [True: 449, False: 475]
  ------------------
 2352|    924|                        : semantic_tag::base16;
 2353|  1.41k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2354|  1.41k|                    more_ = !cursor_mode_;
 2355|  1.41k|                    break;
 2356|  1.41k|                }
 2357|  3.19k|                case 0x40:
  ------------------
  |  Branch (2357:17): [True: 3.19k, False: 104k]
  ------------------
 2358|  3.19k|                {
 2359|  3.19k|                    array_tag_ = typed_array_tags::uint8;
 2360|  3.19k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2361|  3.19k|                    read(array_buffer, ec);
 2362|  3.19k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.19k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.19k]
  |  |  ------------------
  ------------------
 2363|      0|                    {
 2364|      0|                        more_ = false;
 2365|      0|                        return;
 2366|      0|                    }
 2367|  3.19k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2368|  3.19k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2368:25): [True: 2.12k, False: 1.06k]
  |  Branch (2368:42): [True: 0, False: 2.12k]
  ------------------
 2369|      0|                    {
 2370|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2370:29): [True: 0, False: 0]
  ------------------
 2371|      0|                        {
 2372|      0|                            ec = cbor_errc::bad_extents;
 2373|      0|                            more_ = false;
 2374|      0|                            return;
 2375|      0|                        }
 2376|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2377|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2378|      0|                        typed_array_stack_.push_back(iter);
 2379|      0|                        iter->next(visitor, *this, ec);
 2380|      0|                    }
 2381|  3.19k|                    else
 2382|  3.19k|                    {
 2383|  3.19k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2384|  3.19k|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2385|  3.19k|                        typed_array_stack_.push_back(iter);
 2386|  3.19k|                        iter->next(visitor, *this, ec);
 2387|  3.19k|                    }
 2388|  3.19k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2389|  3.19k|                    more_ = !cursor_mode_;
 2390|  3.19k|                    break;
 2391|  3.19k|                }
 2392|  1.35k|                case 0x44:
  ------------------
  |  Branch (2392:17): [True: 1.35k, False: 106k]
  ------------------
 2393|  1.35k|                {
 2394|  1.35k|                    array_tag_ = typed_array_tags::uint8;
 2395|  1.35k|                    typed_array_tag_ = semantic_tag::clamped;
 2396|  1.35k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2397|  1.35k|                    read(array_buffer, ec);
 2398|  1.35k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.35k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.35k]
  |  |  ------------------
  ------------------
 2399|      0|                    {
 2400|      0|                        more_ = false;
 2401|      0|                        return;
 2402|      0|                    }
 2403|  1.35k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2404|  1.35k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2404:25): [True: 882, False: 469]
  |  Branch (2404:42): [True: 0, False: 882]
  ------------------
 2405|      0|                    {
 2406|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2406:29): [True: 0, False: 0]
  ------------------
 2407|      0|                        {
 2408|      0|                            ec = cbor_errc::bad_extents;
 2409|      0|                            more_ = false;
 2410|      0|                            return;
 2411|      0|                        }
 2412|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2413|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2414|      0|                        typed_array_stack_.push_back(iter);
 2415|      0|                        iter->next(visitor, *this, ec);
 2416|      0|                    }
 2417|  1.35k|                    else
 2418|  1.35k|                    {
 2419|  1.35k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2420|  1.35k|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2421|  1.35k|                        typed_array_stack_.push_back(iter);
 2422|  1.35k|                        iter->next(visitor, *this, ec);
 2423|  1.35k|                    }
 2424|  1.35k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2425|  1.35k|                    more_ = !cursor_mode_;
 2426|  1.35k|                    break;
 2427|  1.35k|                }
 2428|  2.99k|                case 0x41:
  ------------------
  |  Branch (2428:17): [True: 2.99k, False: 104k]
  ------------------
 2429|  5.08k|                case 0x45:
  ------------------
  |  Branch (2429:17): [True: 2.08k, False: 105k]
  ------------------
 2430|  5.08k|                {
 2431|  5.08k|                    array_tag_ = typed_array_tags::uint16;
 2432|  5.08k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2433|  5.08k|                    read(array_buffer, ec);
 2434|  5.08k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.08k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.08k]
  |  |  ------------------
  ------------------
 2435|      0|                    {
 2436|      0|                        more_ = false;
 2437|      0|                        return;
 2438|      0|                    }
 2439|  5.08k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2440|  5.08k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2441|  5.08k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2442|  5.08k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2442:25): [True: 2.99k, False: 2.08k]
  ------------------
 2443|  2.99k|                    {
 2444|  55.9k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2444:49): [True: 52.9k, False: 2.99k]
  ------------------
 2445|  52.9k|                        {
 2446|  52.9k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2447|  52.9k|                        }
 2448|  2.99k|                    }
 2449|  5.08k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2449:25): [True: 3.33k, False: 1.74k]
  |  Branch (2449:42): [True: 0, False: 3.33k]
  ------------------
 2450|      0|                    {
 2451|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2451:29): [True: 0, False: 0]
  ------------------
 2452|      0|                        {
 2453|      0|                            ec = cbor_errc::bad_extents;
 2454|      0|                            more_ = false;
 2455|      0|                            return;
 2456|      0|                        }
 2457|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2458|      0|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2459|      0|                        typed_array_stack_.push_back(iter);
 2460|      0|                        iter->next(visitor, *this, ec);
 2461|      0|                    }
 2462|  5.08k|                    else
 2463|  5.08k|                    {
 2464|  5.08k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2465|  5.08k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2466|  5.08k|                        typed_array_stack_.push_back(iter);
 2467|  5.08k|                        iter->next(visitor, *this, ec);
 2468|  5.08k|                    }
 2469|  5.08k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2470|  5.08k|                    more_ = !cursor_mode_;
 2471|  5.08k|                    break;
 2472|  5.08k|                }
 2473|  1.69k|                case 0x42:
  ------------------
  |  Branch (2473:17): [True: 1.69k, False: 105k]
  ------------------
 2474|  2.91k|                case 0x46:
  ------------------
  |  Branch (2474:17): [True: 1.21k, False: 106k]
  ------------------
 2475|  2.91k|                {
 2476|  2.91k|                    array_tag_ = typed_array_tags::uint32;
 2477|  2.91k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2478|  2.91k|                    read(array_buffer, ec);
 2479|  2.91k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.91k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.91k]
  |  |  ------------------
  ------------------
 2480|      0|                    {
 2481|      0|                        more_ = false;
 2482|      0|                        return;
 2483|      0|                    }
 2484|  2.91k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2485|  2.91k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2486|  2.91k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2487|  2.91k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2487:25): [True: 1.69k, False: 1.21k]
  ------------------
 2488|  1.69k|                    {
 2489|  12.6k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2489:49): [True: 10.9k, False: 1.69k]
  ------------------
 2490|  10.9k|                        {
 2491|  10.9k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2492|  10.9k|                        }
 2493|  1.69k|                    }
 2494|  2.91k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2494:25): [True: 1.92k, False: 989]
  |  Branch (2494:42): [True: 0, False: 1.92k]
  ------------------
 2495|      0|                    {
 2496|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2496:29): [True: 0, False: 0]
  ------------------
 2497|      0|                        {
 2498|      0|                            ec = cbor_errc::bad_extents;
 2499|      0|                            more_ = false;
 2500|      0|                            return;
 2501|      0|                        }
 2502|      0|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2503|      0|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2504|      0|                        typed_array_stack_.push_back(iter);
 2505|      0|                        iter->next(visitor, *this, ec);
 2506|      0|                    }
 2507|  2.91k|                    else
 2508|  2.91k|                    {
 2509|  2.91k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2510|  2.91k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2511|  2.91k|                        typed_array_stack_.push_back(iter);
 2512|  2.91k|                        iter->next(visitor, *this, ec);
 2513|  2.91k|                    }
 2514|  2.91k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2515|  2.91k|                    more_ = !cursor_mode_;
 2516|  2.91k|                    break;
 2517|  2.91k|                }
 2518|  4.45k|                case 0x43:
  ------------------
  |  Branch (2518:17): [True: 4.45k, False: 103k]
  ------------------
 2519|  37.8k|                case 0x47:
  ------------------
  |  Branch (2519:17): [True: 33.4k, False: 74.1k]
  ------------------
 2520|  37.8k|                {
 2521|  37.8k|                    array_tag_ = typed_array_tags::uint64;
 2522|  37.8k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2523|  37.8k|                    read(array_buffer, ec);
 2524|  37.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  37.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 37.8k]
  |  |  ------------------
  ------------------
 2525|      0|                    {
 2526|      0|                        more_ = false;
 2527|      0|                        return;
 2528|      0|                    }
 2529|  37.8k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2530|  37.8k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2531|  37.8k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2532|  37.8k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2532:25): [True: 4.45k, False: 33.4k]
  ------------------
 2533|  4.45k|                    {
 2534|  21.5k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2534:49): [True: 17.0k, False: 4.45k]
  ------------------
 2535|  17.0k|                        {
 2536|  17.0k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2537|  17.0k|                        }
 2538|  4.45k|                    }
 2539|  37.8k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2539:25): [True: 25.2k, False: 12.6k]
  |  Branch (2539:42): [True: 0, False: 25.2k]
  ------------------
 2540|      0|                    {
 2541|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2541:29): [True: 0, False: 0]
  ------------------
 2542|      0|                        {
 2543|      0|                            ec = cbor_errc::bad_extents;
 2544|      0|                            more_ = false;
 2545|      0|                            return;
 2546|      0|                        }
 2547|      0|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2548|      0|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2549|      0|                        typed_array_stack_.push_back(iter);
 2550|      0|                        iter->next(visitor, *this, ec);
 2551|      0|                    }
 2552|  37.8k|                    else
 2553|  37.8k|                    {
 2554|  37.8k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2555|  37.8k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2556|  37.8k|                        typed_array_stack_.push_back(iter);
 2557|  37.8k|                        iter->next(visitor, *this, ec);
 2558|  37.8k|                    }
 2559|  37.8k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2560|  37.8k|                    more_ = !cursor_mode_;
 2561|  37.8k|                    break;
 2562|  37.8k|                }
 2563|  2.68k|                case 0x48:
  ------------------
  |  Branch (2563:17): [True: 2.68k, False: 104k]
  ------------------
 2564|  2.68k|                {
 2565|  2.68k|                    array_tag_ = typed_array_tags::int8;
 2566|  2.68k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2567|  2.68k|                    read(array_buffer, ec);
 2568|  2.68k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.68k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.68k]
  |  |  ------------------
  ------------------
 2569|      0|                    {
 2570|      0|                        more_ = false;
 2571|      0|                        return;
 2572|      0|                    }
 2573|  2.68k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2574|  2.68k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2574:25): [True: 1.78k, False: 900]
  |  Branch (2574:42): [True: 0, False: 1.78k]
  ------------------
 2575|      0|                    {
 2576|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2576:29): [True: 0, False: 0]
  ------------------
 2577|      0|                        {
 2578|      0|                            ec = cbor_errc::bad_extents;
 2579|      0|                            more_ = false;
 2580|      0|                            return;
 2581|      0|                        }
 2582|      0|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2583|      0|                            typed_array_tags::int8, extents_, order_, alloc_);
 2584|      0|                        typed_array_stack_.push_back(iter);
 2585|      0|                        iter->next(visitor, *this, ec);
 2586|      0|                    }
 2587|  2.68k|                    else
 2588|  2.68k|                    {
 2589|  2.68k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2590|  2.68k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2591|  2.68k|                        typed_array_stack_.push_back(iter);
 2592|  2.68k|                        iter->next(visitor, *this, ec);
 2593|  2.68k|                    }
 2594|  2.68k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2595|  2.68k|                    more_ = !cursor_mode_;
 2596|  2.68k|                    break;
 2597|  2.68k|                }
 2598|    841|                case 0x49:
  ------------------
  |  Branch (2598:17): [True: 841, False: 106k]
  ------------------
 2599|  2.35k|                case 0x4d:
  ------------------
  |  Branch (2599:17): [True: 1.51k, False: 106k]
  ------------------
 2600|  2.35k|                {
 2601|  2.35k|                    array_tag_ = typed_array_tags::int16;
 2602|  2.35k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2603|  2.35k|                    read(array_buffer, ec);
 2604|  2.35k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.35k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.35k]
  |  |  ------------------
  ------------------
 2605|      0|                    {
 2606|      0|                        more_ = false;
 2607|      0|                        return;
 2608|      0|                    }
 2609|  2.35k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2610|  2.35k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2611|  2.35k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2612|  2.35k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2612:25): [True: 841, False: 1.51k]
  ------------------
 2613|    841|                    {
 2614|  5.55k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2614:49): [True: 4.71k, False: 841]
  ------------------
 2615|  4.71k|                        {
 2616|  4.71k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2617|  4.71k|                        }
 2618|    841|                    }
 2619|  2.35k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2619:25): [True: 1.55k, False: 793]
  |  Branch (2619:42): [True: 0, False: 1.55k]
  ------------------
 2620|      0|                    {
 2621|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2621:29): [True: 0, False: 0]
  ------------------
 2622|      0|                        {
 2623|      0|                            ec = cbor_errc::bad_extents;
 2624|      0|                            more_ = false;
 2625|      0|                            return;
 2626|      0|                        }
 2627|      0|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2628|      0|                            typed_array_tags::int16, extents_, order_, alloc_);
 2629|      0|                        typed_array_stack_.push_back(iter);
 2630|      0|                        iter->next(visitor, *this, ec);
 2631|      0|                    }
 2632|  2.35k|                    else
 2633|  2.35k|                    {
 2634|  2.35k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2635|  2.35k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2636|  2.35k|                        typed_array_stack_.push_back(iter);
 2637|  2.35k|                        iter->next(visitor, *this, ec);
 2638|  2.35k|                    }
 2639|  2.35k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2640|  2.35k|                    more_ = !cursor_mode_;
 2641|  2.35k|                    break;
 2642|  2.35k|                }
 2643|  5.87k|                case 0x4a:
  ------------------
  |  Branch (2643:17): [True: 5.87k, False: 101k]
  ------------------
 2644|  6.78k|                case 0x4e:
  ------------------
  |  Branch (2644:17): [True: 906, False: 106k]
  ------------------
 2645|  6.78k|                {
 2646|  6.78k|                    array_tag_ = typed_array_tags::int32;
 2647|  6.78k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2648|  6.78k|                    read(array_buffer, ec);
 2649|  6.78k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.78k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.78k]
  |  |  ------------------
  ------------------
 2650|      0|                    {
 2651|      0|                        more_ = false;
 2652|      0|                        return;
 2653|      0|                    }
 2654|  6.78k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2655|  6.78k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2656|  6.78k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2657|  6.78k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2657:25): [True: 5.87k, False: 906]
  ------------------
 2658|  5.87k|                    {
 2659|  81.3k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2659:49): [True: 75.4k, False: 5.87k]
  ------------------
 2660|  75.4k|                        {
 2661|  75.4k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2662|  75.4k|                        }
 2663|  5.87k|                    }
 2664|  6.78k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2664:25): [True: 4.50k, False: 2.28k]
  |  Branch (2664:42): [True: 0, False: 4.50k]
  ------------------
 2665|      0|                    {
 2666|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2666:29): [True: 0, False: 0]
  ------------------
 2667|      0|                        {
 2668|      0|                            ec = cbor_errc::bad_extents;
 2669|      0|                            more_ = false;
 2670|      0|                            return;
 2671|      0|                        }
 2672|      0|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2673|      0|                            typed_array_tags::int32, extents_, order_, alloc_);
 2674|      0|                        typed_array_stack_.push_back(iter);
 2675|      0|                        iter->next(visitor, *this, ec);
 2676|      0|                    }
 2677|  6.78k|                    else
 2678|  6.78k|                    {
 2679|  6.78k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2680|  6.78k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2681|  6.78k|                        typed_array_stack_.push_back(iter);
 2682|  6.78k|                        iter->next(visitor, *this, ec);
 2683|  6.78k|                    }
 2684|  6.78k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2685|  6.78k|                    more_ = !cursor_mode_;
 2686|  6.78k|                    break;
 2687|  6.78k|                }
 2688|  2.44k|                case 0x4b:
  ------------------
  |  Branch (2688:17): [True: 2.44k, False: 105k]
  ------------------
 2689|  3.33k|                case 0x4f:
  ------------------
  |  Branch (2689:17): [True: 896, False: 106k]
  ------------------
 2690|  3.33k|                {
 2691|  3.33k|                    array_tag_ = typed_array_tags::int64;
 2692|  3.33k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2693|  3.33k|                    read(array_buffer, ec);
 2694|  3.33k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.33k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.33k]
  |  |  ------------------
  ------------------
 2695|      0|                    {
 2696|      0|                        more_ = false;
 2697|      0|                        return;
 2698|      0|                    }
 2699|  3.33k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2700|  3.33k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2701|  3.33k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2702|  3.33k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2702:25): [True: 2.44k, False: 896]
  ------------------
 2703|  2.44k|                    {
 2704|  11.1k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2704:49): [True: 8.71k, False: 2.44k]
  ------------------
 2705|  8.71k|                        {
 2706|  8.71k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2707|  8.71k|                        }
 2708|  2.44k|                    }
 2709|  3.33k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2709:25): [True: 2.16k, False: 1.17k]
  |  Branch (2709:42): [True: 0, False: 2.16k]
  ------------------
 2710|      0|                    {
 2711|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2711:29): [True: 0, False: 0]
  ------------------
 2712|      0|                        {
 2713|      0|                            ec = cbor_errc::bad_extents;
 2714|      0|                            more_ = false;
 2715|      0|                            return;
 2716|      0|                        }
 2717|      0|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2718|      0|                            typed_array_tags::int64, extents_, order_, alloc_);
 2719|      0|                        typed_array_stack_.push_back(iter);
 2720|      0|                        iter->next(visitor, *this, ec);
 2721|      0|                    }
 2722|  3.33k|                    else
 2723|  3.33k|                    {
 2724|  3.33k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2725|  3.33k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2726|  3.33k|                        typed_array_stack_.push_back(iter);
 2727|  3.33k|                        iter->next(visitor, *this, ec);
 2728|  3.33k|                    }
 2729|  3.33k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2730|  3.33k|                    more_ = !cursor_mode_;
 2731|  3.33k|                    break;
 2732|  3.33k|                }
 2733|  5.87k|                case 0x50:
  ------------------
  |  Branch (2733:17): [True: 5.87k, False: 101k]
  ------------------
 2734|  9.08k|                case 0x54:
  ------------------
  |  Branch (2734:17): [True: 3.20k, False: 104k]
  ------------------
 2735|  9.08k|                {
 2736|  9.08k|                    array_tag_ = typed_array_tags::half_float;
 2737|  9.08k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2738|  9.08k|                    read(array_buffer, ec);
 2739|  9.08k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.08k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9.08k]
  |  |  ------------------
  ------------------
 2740|      0|                    {
 2741|      0|                        more_ = false;
 2742|      0|                        return;
 2743|      0|                    }
 2744|  9.08k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2745|  9.08k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2746|  9.08k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2747|  9.08k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2747:25): [True: 5.87k, False: 3.20k]
  ------------------
 2748|  5.87k|                    {
 2749|  1.19M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2749:49): [True: 1.18M, False: 5.87k]
  ------------------
 2750|  1.18M|                        {
 2751|  1.18M|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2752|  1.18M|                        }
 2753|  5.87k|                    }
 2754|  9.08k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2754:25): [True: 6.03k, False: 3.05k]
  |  Branch (2754:42): [True: 0, False: 6.03k]
  ------------------
 2755|      0|                    {
 2756|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2756:29): [True: 0, False: 0]
  ------------------
 2757|      0|                        {
 2758|      0|                            ec = cbor_errc::bad_extents;
 2759|      0|                            more_ = false;
 2760|      0|                            return;
 2761|      0|                        }
 2762|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2763|      0|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2764|      0|                        typed_array_stack_.push_back(iter);
 2765|      0|                        iter->next(visitor, *this, ec);
 2766|      0|                    }
 2767|  9.08k|                    else
 2768|  9.08k|                    {
 2769|  9.08k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2770|  9.08k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2771|  9.08k|                        typed_array_stack_.push_back(iter);
 2772|  9.08k|                        iter->next(visitor, *this, ec);
 2773|  9.08k|                    }
 2774|  9.08k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2775|  9.08k|                    more_ = !cursor_mode_;
 2776|  9.08k|                    break;
 2777|  9.08k|                }
 2778|  11.9k|                case 0x51:
  ------------------
  |  Branch (2778:17): [True: 11.9k, False: 95.6k]
  ------------------
 2779|  12.4k|                case 0x55:
  ------------------
  |  Branch (2779:17): [True: 537, False: 107k]
  ------------------
 2780|  12.4k|                {
 2781|  12.4k|                    array_tag_ = typed_array_tags::float32;
 2782|  12.4k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2783|  12.4k|                    read(array_buffer, ec);
 2784|  12.4k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 12.4k]
  |  |  ------------------
  ------------------
 2785|      0|                    {
 2786|      0|                        more_ = false;
 2787|      0|                        return;
 2788|      0|                    }
 2789|  12.4k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2790|  12.4k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2791|  12.4k|                    auto ta = typed_array_cast<float>(array_buffer);
 2792|  12.4k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2792:25): [True: 11.9k, False: 537]
  ------------------
 2793|  11.9k|                    {
 2794|  3.80M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2794:49): [True: 3.79M, False: 11.9k]
  ------------------
 2795|  3.79M|                        {
 2796|  3.79M|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2797|  3.79M|                        }
 2798|  11.9k|                    }
 2799|  12.4k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2799:25): [True: 8.26k, False: 4.18k]
  |  Branch (2799:42): [True: 0, False: 8.26k]
  ------------------
 2800|      0|                    {
 2801|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2801:29): [True: 0, False: 0]
  ------------------
 2802|      0|                        {
 2803|      0|                            ec = cbor_errc::bad_extents;
 2804|      0|                            more_ = false;
 2805|      0|                            return;
 2806|      0|                        }
 2807|      0|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2808|      0|                            typed_array_tags::float32, extents_, order_, alloc_);
 2809|      0|                        typed_array_stack_.push_back(iter);
 2810|      0|                        iter->next(visitor, *this, ec);
 2811|      0|                    }
 2812|  12.4k|                    else
 2813|  12.4k|                    {
 2814|  12.4k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2815|  12.4k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2816|  12.4k|                        typed_array_stack_.push_back(iter);
 2817|  12.4k|                        iter->next(visitor, *this, ec);
 2818|  12.4k|                    }
 2819|  12.4k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2820|  12.4k|                    more_ = !cursor_mode_;
 2821|  12.4k|                    break;
 2822|  12.4k|                }
 2823|  3.73k|                case 0x52:
  ------------------
  |  Branch (2823:17): [True: 3.73k, False: 103k]
  ------------------
 2824|  6.75k|                case 0x56:
  ------------------
  |  Branch (2824:17): [True: 3.01k, False: 104k]
  ------------------
 2825|  6.75k|                {
 2826|  6.75k|                    array_tag_ = typed_array_tags::float64;
 2827|  6.75k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2828|  6.75k|                    read(array_buffer, ec);
 2829|  6.75k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.75k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.75k]
  |  |  ------------------
  ------------------
 2830|      0|                    {
 2831|      0|                        more_ = false;
 2832|      0|                        return;
 2833|      0|                    }
 2834|  6.75k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2835|  6.75k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2836|  6.75k|                    auto ta = typed_array_cast<double>(array_buffer);
 2837|  6.75k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2837:25): [True: 3.73k, False: 3.01k]
  ------------------
 2838|  3.73k|                    {
 2839|  21.7k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2839:49): [True: 17.9k, False: 3.73k]
  ------------------
 2840|  17.9k|                        {
 2841|  17.9k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2842|  17.9k|                        }
 2843|  3.73k|                    }
 2844|  6.75k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2844:25): [True: 4.45k, False: 2.30k]
  |  Branch (2844:42): [True: 0, False: 4.45k]
  ------------------
 2845|      0|                    {
 2846|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2846:29): [True: 0, False: 0]
  ------------------
 2847|      0|                        {
 2848|      0|                            ec = cbor_errc::bad_extents;
 2849|      0|                            more_ = false;
 2850|      0|                            return;
 2851|      0|                        }
 2852|      0|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2853|      0|                            typed_array_tags::float64, extents_, order_, alloc_);
 2854|      0|                        typed_array_stack_.push_back(iter);
 2855|      0|                        iter->next(visitor, *this, ec);
 2856|      0|                    }
 2857|  6.75k|                    else
 2858|  6.75k|                    {
 2859|  6.75k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2860|  6.75k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2861|  6.75k|                        typed_array_stack_.push_back(iter);
 2862|  6.75k|                        iter->next(visitor, *this, ec);
 2863|  6.75k|                    }
 2864|  6.75k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2865|  6.75k|                    more_ = !cursor_mode_;
 2866|  6.75k|                    break;
 2867|  6.75k|                }
 2868|  2.75k|                default:
  ------------------
  |  Branch (2868:17): [True: 2.75k, False: 104k]
  ------------------
 2869|  2.75k|                {
 2870|  2.75k|                    auto bytes = read.view(ec);
 2871|  2.75k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.75k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.75k]
  |  |  ------------------
  ------------------
 2872|      0|                    {
 2873|      0|                        more_ = false;
 2874|      0|                        return;
 2875|      0|                    }
 2876|  2.75k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2877|  2.75k|                    more_ = !cursor_mode_;
 2878|  2.75k|                    break;
 2879|  2.75k|                }
 2880|   107k|            }
 2881|   107k|            other_tags_[item_tag] = false;
 2882|   107k|        }
 2883|  20.5k|        else
 2884|  20.5k|        {
 2885|  20.5k|            auto bytes = read.view(ec);
 2886|  20.5k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 20.5k]
  |  |  ------------------
  ------------------
 2887|      0|            {
 2888|      0|                return;
 2889|      0|            }
 2890|  20.5k|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2891|  20.5k|            more_ = !cursor_mode_;
 2892|  20.5k|        }
 2893|   128k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_buffer4viewERNS3_10error_codeE:
  306|  34.2k|        {
  307|  34.2k|            return bytes;
  308|  34.2k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  296|  93.8k|        {
  297|  93.8k|            c.clear();
  298|  93.8k|            c.reserve(bytes.size());
  299|  93.8k|            for (auto b : bytes)
  ------------------
  |  Branch (299:25): [True: 24.2M, False: 93.8k]
  ------------------
  300|  24.2M|            {
  301|  24.2M|                c.push_back(b);
  302|  24.2M|            }
  303|  93.8k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26get_typed_array_endiannessEh:
 2290|   277k|    {
 2291|   277k|        return ((tag & detail::cbor_array_tags_e_mask) >> detail::cbor_array_tags_e_shift) == 0 ? jsoncons::endian::big : jsoncons::endian::little; 
  ------------------
  |  Branch (2291:16): [True: 120k, False: 157k]
  ------------------
 2292|   277k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_negative_integerEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1623|  15.7M|    {
 1624|  15.7M|        semantic_tag tag = semantic_tag::none;
 1625|  15.7M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (1625:13): [True: 48.2k, False: 15.7M]
  ------------------
 1626|  48.2k|        {
 1627|  48.2k|            if (raw_tag_ == 1)
  ------------------
  |  Branch (1627:17): [True: 999, False: 47.2k]
  ------------------
 1628|    999|            {
 1629|    999|                tag = semantic_tag::epoch_second;
 1630|    999|            }
 1631|  48.2k|            other_tags_[item_tag] = false;
 1632|  48.2k|        }
 1633|       |
 1634|  15.7M|        switch (info)
 1635|  15.7M|        {
 1636|  15.1M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  15.1M|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 48.3k, False: 15.7M]
  |  |  |  Branch (18:20): [True: 102k, False: 15.6M]
  |  |  |  Branch (18:30): [True: 29.5k, False: 15.7M]
  |  |  |  Branch (18:40): [True: 47.9k, False: 15.7M]
  |  |  |  Branch (18:50): [True: 151k, False: 15.6M]
  |  |  |  Branch (18:60): [True: 15.8k, False: 15.7M]
  |  |  |  Branch (18:70): [True: 59.9k, False: 15.7M]
  |  |  |  Branch (18:80): [True: 223k, False: 15.5M]
  |  |  |  Branch (18:90): [True: 19.2k, False: 15.7M]
  |  |  |  Branch (18:100): [True: 33.9k, False: 15.7M]
  |  |  |  Branch (18:110): [True: 19.5k, False: 15.7M]
  |  |  |  Branch (18:120): [True: 15.5k, False: 15.7M]
  |  |  |  Branch (18:130): [True: 439k, False: 15.3M]
  |  |  |  Branch (18:140): [True: 254k, False: 15.5M]
  |  |  |  Branch (18:150): [True: 1.03M, False: 14.7M]
  |  |  |  Branch (18:160): [True: 10.3M, False: 5.39M]
  |  |  |  Branch (18:170): [True: 62.7k, False: 15.7M]
  |  |  |  Branch (18:180): [True: 328k, False: 15.4M]
  |  |  |  Branch (18:190): [True: 474k, False: 15.3M]
  |  |  |  Branch (18:200): [True: 292k, False: 15.5M]
  |  |  |  Branch (18:210): [True: 281k, False: 15.5M]
  |  |  |  Branch (18:220): [True: 216k, False: 15.5M]
  |  |  ------------------
  ------------------
  |  Branch (1636:13): [True: 74.0k, False: 15.7M]
  ------------------
 1637|  15.1M|            {
 1638|  15.1M|                int64_t val = static_cast<int8_t>(- 1 - info);
 1639|  15.1M|                visitor.int64_value(val, tag, *this, ec);
 1640|  15.1M|                more_ = !cursor_mode_;
 1641|  15.1M|                break;
 1642|   108M|            }
 1643|   290k|            case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1643:13): [True: 290k, False: 15.5M]
  ------------------
 1644|   290k|            {
 1645|   290k|                uint8_t b;
 1646|   290k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1646:21): [True: 15, False: 290k]
  ------------------
 1647|     15|                {
 1648|     15|                    ec = cbor_errc::unexpected_eof;
 1649|     15|                    more_ = false;
 1650|     15|                    return;
 1651|     15|                }
 1652|   290k|                int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1653|   290k|                visitor.int64_value(val, tag, *this, ec);
 1654|   290k|                more_ = !cursor_mode_;
 1655|   290k|                break;
 1656|   290k|            }
 1657|   281k|            case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1657:13): [True: 281k, False: 15.5M]
  ------------------
 1658|   281k|            {
 1659|   281k|                uint8_t buf[sizeof(uint16_t)];
 1660|   281k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1660:21): [True: 21, False: 281k]
  ------------------
 1661|     21|                {
 1662|     21|                    ec = cbor_errc::unexpected_eof;
 1663|     21|                    more_ = false;
 1664|     21|                    return;
 1665|     21|                }
 1666|   281k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1667|   281k|                int64_t val = static_cast<int64_t>(-1)- u;
 1668|   281k|                visitor.int64_value(val, tag, *this, ec);
 1669|   281k|                more_ = !cursor_mode_;
 1670|   281k|                break;
 1671|   281k|            }
 1672|  4.04k|            case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1672:13): [True: 4.04k, False: 15.7M]
  ------------------
 1673|  4.04k|            {
 1674|  4.04k|                uint8_t buf[sizeof(uint32_t)];
 1675|  4.04k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1675:21): [True: 30, False: 4.01k]
  ------------------
 1676|     30|                {
 1677|     30|                    ec = cbor_errc::unexpected_eof;
 1678|     30|                    more_ = false;
 1679|     30|                    return;
 1680|     30|                }
 1681|  4.01k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1682|  4.01k|                int64_t val = static_cast<int64_t>(-1)- u;
 1683|  4.01k|                visitor.int64_value(val, tag, *this, ec);
 1684|  4.01k|                more_ = !cursor_mode_;
 1685|  4.01k|                break;
 1686|  4.04k|            }
 1687|  23.7k|            case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1687:13): [True: 23.7k, False: 15.7M]
  ------------------
 1688|  23.7k|            {
 1689|  23.7k|                uint8_t buf[sizeof(uint64_t)];
 1690|  23.7k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1690:21): [True: 75, False: 23.6k]
  ------------------
 1691|     75|                {
 1692|     75|                    ec = cbor_errc::unexpected_eof;
 1693|     75|                    more_ = false;
 1694|     75|                    return;
 1695|     75|                }
 1696|  23.6k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1697|  23.6k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1697:21): [True: 13.2k, False: 10.3k]
  ------------------
 1698|  13.2k|                {
 1699|       |                    //ec = cbor_errc::invalid_negative_integer;
 1700|       |                    //more_ = false;
 1701|       |                    //return;
 1702|  13.2k|                    bigint b(u);
 1703|  13.2k|                    bigint b2 = -1 - b;
 1704|  13.2k|                    text_buffer_.clear();
 1705|  13.2k|                    b2.append_to_buffer(text_buffer_);
 1706|  13.2k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 1707|  13.2k|                }
 1708|  10.3k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  10.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 678, False: 9.68k]
  |  |  ------------------
  ------------------
 1709|    678|                {
 1710|    678|                    visitor.int64_value((std::numeric_limits<int64_t>::min)(), tag, *this, ec);
 1711|    678|                }
 1712|  9.68k|                else
 1713|  9.68k|                {
 1714|  9.68k|                    int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(u);
 1715|  9.68k|                    visitor.int64_value(val, tag, *this, ec);
 1716|  9.68k|                }
 1717|  23.6k|                more_ = !cursor_mode_;
 1718|  23.6k|                break;
 1719|  23.7k|            }
 1720|     46|            default:
  ------------------
  |  Branch (1720:13): [True: 46, False: 15.7M]
  ------------------
 1721|     46|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (1721:22): [True: 46, False: 0]
  ------------------
 1722|     46|                more_ = false;
 1723|     46|                return;
 1724|  15.7M|        }
 1725|  15.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceC2EPS8_:
  316|  13.5M|            : source(source)
  317|  13.5M|        {
  318|  13.5M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_sourceEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2304|  13.5M|    {
 2305|  13.5M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2305:13): [True: 599k, False: 12.9M]
  ------------------
 2306|   599k|        {
 2307|   599k|            switch (raw_tag_)
 2308|   599k|            {
 2309|  26.9k|                case 0x2:
  ------------------
  |  Branch (2309:17): [True: 26.9k, False: 572k]
  ------------------
 2310|  26.9k|                {
 2311|  26.9k|                    auto bytes = read.view(ec);
 2312|  26.9k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  26.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 17, False: 26.8k]
  |  |  ------------------
  ------------------
 2313|     17|                    {
 2314|     17|                        more_ = false;
 2315|     17|                        return;
 2316|     17|                    }
 2317|  26.8k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2318|  26.8k|                    text_buffer_.clear();
 2319|  26.8k|                    b.append_to_buffer(text_buffer_);
 2320|  26.8k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2321|  26.8k|                    more_ = !cursor_mode_;
 2322|  26.8k|                    break;
 2323|  26.9k|                }
 2324|  34.5k|                case 0x3:
  ------------------
  |  Branch (2324:17): [True: 34.5k, False: 565k]
  ------------------
 2325|  34.5k|                {
 2326|  34.5k|                    auto bytes = read.view(ec);
 2327|  34.5k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  34.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 52, False: 34.5k]
  |  |  ------------------
  ------------------
 2328|     52|                    {
 2329|     52|                        more_ = false;
 2330|     52|                        return;
 2331|     52|                    }
 2332|  34.5k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2333|  34.5k|                    b = -1 - b;
 2334|  34.5k|                    text_buffer_.clear();
 2335|  34.5k|                    b.append_to_buffer(text_buffer_);
 2336|  34.5k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2337|  34.5k|                    more_ = !cursor_mode_;
 2338|  34.5k|                    break;
 2339|  34.5k|                }
 2340|  41.4k|                case 0x15:
  ------------------
  |  Branch (2340:17): [True: 41.4k, False: 558k]
  ------------------
 2341|  49.0k|                case 0x16:
  ------------------
  |  Branch (2341:17): [True: 7.64k, False: 592k]
  ------------------
 2342|  56.6k|                case 0x17:
  ------------------
  |  Branch (2342:17): [True: 7.54k, False: 592k]
  ------------------
 2343|  56.6k|                {
 2344|  56.6k|                    auto bytes = read.view(ec);
 2345|  56.6k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  56.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 31, False: 56.6k]
  |  |  ------------------
  ------------------
 2346|     31|                    {
 2347|     31|                        more_ = false;
 2348|     31|                        return;
 2349|     31|                    }
 2350|  56.6k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2350:46): [True: 41.4k, False: 15.1k]
  ------------------
 2351|  56.6k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2351:27): [True: 7.62k, False: 7.53k]
  ------------------
 2352|  15.1k|                        : semantic_tag::base16;
 2353|  56.6k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2354|  56.6k|                    more_ = !cursor_mode_;
 2355|  56.6k|                    break;
 2356|  56.6k|                }
 2357|  8.61k|                case 0x40:
  ------------------
  |  Branch (2357:17): [True: 8.61k, False: 591k]
  ------------------
 2358|  8.61k|                {
 2359|  8.61k|                    array_tag_ = typed_array_tags::uint8;
 2360|  8.61k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2361|  8.61k|                    read(array_buffer, ec);
 2362|  8.61k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.61k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 9, False: 8.60k]
  |  |  ------------------
  ------------------
 2363|      9|                    {
 2364|      9|                        more_ = false;
 2365|      9|                        return;
 2366|      9|                    }
 2367|  8.60k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2368|  8.60k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2368:25): [True: 5.71k, False: 2.88k]
  |  Branch (2368:42): [True: 972, False: 4.74k]
  ------------------
 2369|    972|                    {
 2370|    972|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2370:29): [True: 36, False: 936]
  ------------------
 2371|     36|                        {
 2372|     36|                            ec = cbor_errc::bad_extents;
 2373|     36|                            more_ = false;
 2374|     36|                            return;
 2375|     36|                        }
 2376|    936|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2377|    936|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2378|    936|                        typed_array_stack_.push_back(iter);
 2379|    936|                        iter->next(visitor, *this, ec);
 2380|    936|                    }
 2381|  7.63k|                    else
 2382|  7.63k|                    {
 2383|  7.63k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2384|  7.63k|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2385|  7.63k|                        typed_array_stack_.push_back(iter);
 2386|  7.63k|                        iter->next(visitor, *this, ec);
 2387|  7.63k|                    }
 2388|  8.56k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2389|  8.56k|                    more_ = !cursor_mode_;
 2390|  8.56k|                    break;
 2391|  8.60k|                }
 2392|  12.2k|                case 0x44:
  ------------------
  |  Branch (2392:17): [True: 12.2k, False: 587k]
  ------------------
 2393|  12.2k|                {
 2394|  12.2k|                    array_tag_ = typed_array_tags::uint8;
 2395|  12.2k|                    typed_array_tag_ = semantic_tag::clamped;
 2396|  12.2k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2397|  12.2k|                    read(array_buffer, ec);
 2398|  12.2k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 9, False: 12.2k]
  |  |  ------------------
  ------------------
 2399|      9|                    {
 2400|      9|                        more_ = false;
 2401|      9|                        return;
 2402|      9|                    }
 2403|  12.2k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2404|  12.2k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2404:25): [True: 8.07k, False: 4.17k]
  |  Branch (2404:42): [True: 5.15k, False: 2.91k]
  ------------------
 2405|  5.15k|                    {
 2406|  5.15k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2406:29): [True: 56, False: 5.09k]
  ------------------
 2407|     56|                        {
 2408|     56|                            ec = cbor_errc::bad_extents;
 2409|     56|                            more_ = false;
 2410|     56|                            return;
 2411|     56|                        }
 2412|  5.09k|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2413|  5.09k|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2414|  5.09k|                        typed_array_stack_.push_back(iter);
 2415|  5.09k|                        iter->next(visitor, *this, ec);
 2416|  5.09k|                    }
 2417|  7.09k|                    else
 2418|  7.09k|                    {
 2419|  7.09k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2420|  7.09k|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2421|  7.09k|                        typed_array_stack_.push_back(iter);
 2422|  7.09k|                        iter->next(visitor, *this, ec);
 2423|  7.09k|                    }
 2424|  12.1k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2425|  12.1k|                    more_ = !cursor_mode_;
 2426|  12.1k|                    break;
 2427|  12.2k|                }
 2428|  17.8k|                case 0x41:
  ------------------
  |  Branch (2428:17): [True: 17.8k, False: 581k]
  ------------------
 2429|  18.8k|                case 0x45:
  ------------------
  |  Branch (2429:17): [True: 993, False: 598k]
  ------------------
 2430|  18.8k|                {
 2431|  18.8k|                    array_tag_ = typed_array_tags::uint16;
 2432|  18.8k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2433|  18.8k|                    read(array_buffer, ec);
 2434|  18.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 30, False: 18.7k]
  |  |  ------------------
  ------------------
 2435|     30|                    {
 2436|     30|                        more_ = false;
 2437|     30|                        return;
 2438|     30|                    }
 2439|  18.7k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2440|  18.7k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2441|  18.7k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2442|  18.7k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2442:25): [True: 17.7k, False: 993]
  ------------------
 2443|  17.7k|                    {
 2444|  91.6k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2444:49): [True: 73.8k, False: 17.7k]
  ------------------
 2445|  73.8k|                        {
 2446|  73.8k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2447|  73.8k|                        }
 2448|  17.7k|                    }
 2449|  18.7k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2449:25): [True: 12.4k, False: 6.35k]
  |  Branch (2449:42): [True: 1.92k, False: 10.4k]
  ------------------
 2450|  1.92k|                    {
 2451|  1.92k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2451:29): [True: 60, False: 1.86k]
  ------------------
 2452|     60|                        {
 2453|     60|                            ec = cbor_errc::bad_extents;
 2454|     60|                            more_ = false;
 2455|     60|                            return;
 2456|     60|                        }
 2457|  1.86k|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2458|  1.86k|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2459|  1.86k|                        typed_array_stack_.push_back(iter);
 2460|  1.86k|                        iter->next(visitor, *this, ec);
 2461|  1.86k|                    }
 2462|  16.8k|                    else
 2463|  16.8k|                    {
 2464|  16.8k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2465|  16.8k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2466|  16.8k|                        typed_array_stack_.push_back(iter);
 2467|  16.8k|                        iter->next(visitor, *this, ec);
 2468|  16.8k|                    }
 2469|  18.7k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2470|  18.7k|                    more_ = !cursor_mode_;
 2471|  18.7k|                    break;
 2472|  18.7k|                }
 2473|  10.8k|                case 0x42:
  ------------------
  |  Branch (2473:17): [True: 10.8k, False: 588k]
  ------------------
 2474|  13.2k|                case 0x46:
  ------------------
  |  Branch (2474:17): [True: 2.40k, False: 597k]
  ------------------
 2475|  13.2k|                {
 2476|  13.2k|                    array_tag_ = typed_array_tags::uint32;
 2477|  13.2k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2478|  13.2k|                    read(array_buffer, ec);
 2479|  13.2k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 18, False: 13.2k]
  |  |  ------------------
  ------------------
 2480|     18|                    {
 2481|     18|                        more_ = false;
 2482|     18|                        return;
 2483|     18|                    }
 2484|  13.2k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2485|  13.2k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2486|  13.2k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2487|  13.2k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2487:25): [True: 10.8k, False: 2.40k]
  ------------------
 2488|  10.8k|                    {
 2489|  21.6k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2489:49): [True: 10.8k, False: 10.8k]
  ------------------
 2490|  10.8k|                        {
 2491|  10.8k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2492|  10.8k|                        }
 2493|  10.8k|                    }
 2494|  13.2k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2494:25): [True: 8.71k, False: 4.51k]
  |  Branch (2494:42): [True: 3.48k, False: 5.22k]
  ------------------
 2495|  3.48k|                    {
 2496|  3.48k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2496:29): [True: 48, False: 3.43k]
  ------------------
 2497|     48|                        {
 2498|     48|                            ec = cbor_errc::bad_extents;
 2499|     48|                            more_ = false;
 2500|     48|                            return;
 2501|     48|                        }
 2502|  3.43k|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2503|  3.43k|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2504|  3.43k|                        typed_array_stack_.push_back(iter);
 2505|  3.43k|                        iter->next(visitor, *this, ec);
 2506|  3.43k|                    }
 2507|  9.74k|                    else
 2508|  9.74k|                    {
 2509|  9.74k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2510|  9.74k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2511|  9.74k|                        typed_array_stack_.push_back(iter);
 2512|  9.74k|                        iter->next(visitor, *this, ec);
 2513|  9.74k|                    }
 2514|  13.1k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2515|  13.1k|                    more_ = !cursor_mode_;
 2516|  13.1k|                    break;
 2517|  13.2k|                }
 2518|  5.72k|                case 0x43:
  ------------------
  |  Branch (2518:17): [True: 5.72k, False: 593k]
  ------------------
 2519|  11.8k|                case 0x47:
  ------------------
  |  Branch (2519:17): [True: 6.09k, False: 593k]
  ------------------
 2520|  11.8k|                {
 2521|  11.8k|                    array_tag_ = typed_array_tags::uint64;
 2522|  11.8k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2523|  11.8k|                    read(array_buffer, ec);
 2524|  11.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  11.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 11.8k]
  |  |  ------------------
  ------------------
 2525|      0|                    {
 2526|      0|                        more_ = false;
 2527|      0|                        return;
 2528|      0|                    }
 2529|  11.8k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2530|  11.8k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2531|  11.8k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2532|  11.8k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2532:25): [True: 5.72k, False: 6.09k]
  ------------------
 2533|  5.72k|                    {
 2534|  12.5k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2534:49): [True: 6.81k, False: 5.72k]
  ------------------
 2535|  6.81k|                        {
 2536|  6.81k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2537|  6.81k|                        }
 2538|  5.72k|                    }
 2539|  11.8k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2539:25): [True: 7.59k, False: 4.22k]
  |  Branch (2539:42): [True: 2.95k, False: 4.63k]
  ------------------
 2540|  2.95k|                    {
 2541|  2.95k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2541:29): [True: 72, False: 2.88k]
  ------------------
 2542|     72|                        {
 2543|     72|                            ec = cbor_errc::bad_extents;
 2544|     72|                            more_ = false;
 2545|     72|                            return;
 2546|     72|                        }
 2547|  2.88k|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2548|  2.88k|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2549|  2.88k|                        typed_array_stack_.push_back(iter);
 2550|  2.88k|                        iter->next(visitor, *this, ec);
 2551|  2.88k|                    }
 2552|  8.85k|                    else
 2553|  8.85k|                    {
 2554|  8.85k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2555|  8.85k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2556|  8.85k|                        typed_array_stack_.push_back(iter);
 2557|  8.85k|                        iter->next(visitor, *this, ec);
 2558|  8.85k|                    }
 2559|  11.7k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2560|  11.7k|                    more_ = !cursor_mode_;
 2561|  11.7k|                    break;
 2562|  11.8k|                }
 2563|  7.26k|                case 0x48:
  ------------------
  |  Branch (2563:17): [True: 7.26k, False: 592k]
  ------------------
 2564|  7.26k|                {
 2565|  7.26k|                    array_tag_ = typed_array_tags::int8;
 2566|  7.26k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2567|  7.26k|                    read(array_buffer, ec);
 2568|  7.26k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.26k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 23, False: 7.23k]
  |  |  ------------------
  ------------------
 2569|     23|                    {
 2570|     23|                        more_ = false;
 2571|     23|                        return;
 2572|     23|                    }
 2573|  7.23k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2574|  7.23k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2574:25): [True: 4.66k, False: 2.57k]
  |  Branch (2574:42): [True: 2.44k, False: 2.21k]
  ------------------
 2575|  2.44k|                    {
 2576|  2.44k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2576:29): [True: 46, False: 2.40k]
  ------------------
 2577|     46|                        {
 2578|     46|                            ec = cbor_errc::bad_extents;
 2579|     46|                            more_ = false;
 2580|     46|                            return;
 2581|     46|                        }
 2582|  2.40k|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2583|  2.40k|                            typed_array_tags::int8, extents_, order_, alloc_);
 2584|  2.40k|                        typed_array_stack_.push_back(iter);
 2585|  2.40k|                        iter->next(visitor, *this, ec);
 2586|  2.40k|                    }
 2587|  4.79k|                    else
 2588|  4.79k|                    {
 2589|  4.79k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2590|  4.79k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2591|  4.79k|                        typed_array_stack_.push_back(iter);
 2592|  4.79k|                        iter->next(visitor, *this, ec);
 2593|  4.79k|                    }
 2594|  7.19k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2595|  7.19k|                    more_ = !cursor_mode_;
 2596|  7.19k|                    break;
 2597|  7.23k|                }
 2598|  13.7k|                case 0x49:
  ------------------
  |  Branch (2598:17): [True: 13.7k, False: 585k]
  ------------------
 2599|  14.5k|                case 0x4d:
  ------------------
  |  Branch (2599:17): [True: 858, False: 598k]
  ------------------
 2600|  14.5k|                {
 2601|  14.5k|                    array_tag_ = typed_array_tags::int16;
 2602|  14.5k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2603|  14.5k|                    read(array_buffer, ec);
 2604|  14.5k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  14.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 14.5k]
  |  |  ------------------
  ------------------
 2605|      5|                    {
 2606|      5|                        more_ = false;
 2607|      5|                        return;
 2608|      5|                    }
 2609|  14.5k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2610|  14.5k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2611|  14.5k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2612|  14.5k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2612:25): [True: 13.7k, False: 858]
  ------------------
 2613|  13.7k|                    {
 2614|  48.3k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2614:49): [True: 34.5k, False: 13.7k]
  ------------------
 2615|  34.5k|                        {
 2616|  34.5k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2617|  34.5k|                        }
 2618|  13.7k|                    }
 2619|  14.5k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2619:25): [True: 9.52k, False: 5.06k]
  |  Branch (2619:42): [True: 3.79k, False: 5.72k]
  ------------------
 2620|  3.79k|                    {
 2621|  3.79k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2621:29): [True: 64, False: 3.73k]
  ------------------
 2622|     64|                        {
 2623|     64|                            ec = cbor_errc::bad_extents;
 2624|     64|                            more_ = false;
 2625|     64|                            return;
 2626|     64|                        }
 2627|  3.73k|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2628|  3.73k|                            typed_array_tags::int16, extents_, order_, alloc_);
 2629|  3.73k|                        typed_array_stack_.push_back(iter);
 2630|  3.73k|                        iter->next(visitor, *this, ec);
 2631|  3.73k|                    }
 2632|  10.7k|                    else
 2633|  10.7k|                    {
 2634|  10.7k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2635|  10.7k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2636|  10.7k|                        typed_array_stack_.push_back(iter);
 2637|  10.7k|                        iter->next(visitor, *this, ec);
 2638|  10.7k|                    }
 2639|  14.5k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2640|  14.5k|                    more_ = !cursor_mode_;
 2641|  14.5k|                    break;
 2642|  14.5k|                }
 2643|  10.6k|                case 0x4a:
  ------------------
  |  Branch (2643:17): [True: 10.6k, False: 589k]
  ------------------
 2644|  59.0k|                case 0x4e:
  ------------------
  |  Branch (2644:17): [True: 48.4k, False: 551k]
  ------------------
 2645|  59.0k|                {
 2646|  59.0k|                    array_tag_ = typed_array_tags::int32;
 2647|  59.0k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2648|  59.0k|                    read(array_buffer, ec);
 2649|  59.0k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  59.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 9, False: 59.0k]
  |  |  ------------------
  ------------------
 2650|      9|                    {
 2651|      9|                        more_ = false;
 2652|      9|                        return;
 2653|      9|                    }
 2654|  59.0k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2655|  59.0k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2656|  59.0k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2657|  59.0k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2657:25): [True: 10.6k, False: 48.4k]
  ------------------
 2658|  10.6k|                    {
 2659|  16.8k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2659:49): [True: 6.19k, False: 10.6k]
  ------------------
 2660|  6.19k|                        {
 2661|  6.19k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2662|  6.19k|                        }
 2663|  10.6k|                    }
 2664|  59.0k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2664:25): [True: 39.1k, False: 19.8k]
  |  Branch (2664:42): [True: 2.02k, False: 37.1k]
  ------------------
 2665|  2.02k|                    {
 2666|  2.02k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2666:29): [True: 86, False: 1.94k]
  ------------------
 2667|     86|                        {
 2668|     86|                            ec = cbor_errc::bad_extents;
 2669|     86|                            more_ = false;
 2670|     86|                            return;
 2671|     86|                        }
 2672|  1.94k|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2673|  1.94k|                            typed_array_tags::int32, extents_, order_, alloc_);
 2674|  1.94k|                        typed_array_stack_.push_back(iter);
 2675|  1.94k|                        iter->next(visitor, *this, ec);
 2676|  1.94k|                    }
 2677|  57.0k|                    else
 2678|  57.0k|                    {
 2679|  57.0k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2680|  57.0k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2681|  57.0k|                        typed_array_stack_.push_back(iter);
 2682|  57.0k|                        iter->next(visitor, *this, ec);
 2683|  57.0k|                    }
 2684|  58.9k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2685|  58.9k|                    more_ = !cursor_mode_;
 2686|  58.9k|                    break;
 2687|  59.0k|                }
 2688|  10.1k|                case 0x4b:
  ------------------
  |  Branch (2688:17): [True: 10.1k, False: 589k]
  ------------------
 2689|  11.0k|                case 0x4f:
  ------------------
  |  Branch (2689:17): [True: 924, False: 598k]
  ------------------
 2690|  11.0k|                {
 2691|  11.0k|                    array_tag_ = typed_array_tags::int64;
 2692|  11.0k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2693|  11.0k|                    read(array_buffer, ec);
 2694|  11.0k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  11.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 14, False: 11.0k]
  |  |  ------------------
  ------------------
 2695|     14|                    {
 2696|     14|                        more_ = false;
 2697|     14|                        return;
 2698|     14|                    }
 2699|  11.0k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2700|  11.0k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2701|  11.0k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2702|  11.0k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2702:25): [True: 10.0k, False: 924]
  ------------------
 2703|  10.0k|                    {
 2704|  20.6k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2704:49): [True: 10.5k, False: 10.0k]
  ------------------
 2705|  10.5k|                        {
 2706|  10.5k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2707|  10.5k|                        }
 2708|  10.0k|                    }
 2709|  11.0k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2709:25): [True: 7.11k, False: 3.90k]
  |  Branch (2709:42): [True: 3.41k, False: 3.70k]
  ------------------
 2710|  3.41k|                    {
 2711|  3.41k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2711:29): [True: 44, False: 3.36k]
  ------------------
 2712|     44|                        {
 2713|     44|                            ec = cbor_errc::bad_extents;
 2714|     44|                            more_ = false;
 2715|     44|                            return;
 2716|     44|                        }
 2717|  3.36k|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2718|  3.36k|                            typed_array_tags::int64, extents_, order_, alloc_);
 2719|  3.36k|                        typed_array_stack_.push_back(iter);
 2720|  3.36k|                        iter->next(visitor, *this, ec);
 2721|  3.36k|                    }
 2722|  7.61k|                    else
 2723|  7.61k|                    {
 2724|  7.61k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2725|  7.61k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2726|  7.61k|                        typed_array_stack_.push_back(iter);
 2727|  7.61k|                        iter->next(visitor, *this, ec);
 2728|  7.61k|                    }
 2729|  10.9k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2730|  10.9k|                    more_ = !cursor_mode_;
 2731|  10.9k|                    break;
 2732|  11.0k|                }
 2733|  4.51k|                case 0x50:
  ------------------
  |  Branch (2733:17): [True: 4.51k, False: 595k]
  ------------------
 2734|  27.8k|                case 0x54:
  ------------------
  |  Branch (2734:17): [True: 23.3k, False: 576k]
  ------------------
 2735|  27.8k|                {
 2736|  27.8k|                    array_tag_ = typed_array_tags::half_float;
 2737|  27.8k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2738|  27.8k|                    read(array_buffer, ec);
 2739|  27.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 70, False: 27.8k]
  |  |  ------------------
  ------------------
 2740|     70|                    {
 2741|     70|                        more_ = false;
 2742|     70|                        return;
 2743|     70|                    }
 2744|  27.8k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2745|  27.8k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2746|  27.8k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2747|  27.8k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2747:25): [True: 4.49k, False: 23.3k]
  ------------------
 2748|  4.49k|                    {
 2749|   192k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2749:49): [True: 187k, False: 4.49k]
  ------------------
 2750|   187k|                        {
 2751|   187k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2752|   187k|                        }
 2753|  4.49k|                    }
 2754|  27.8k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2754:25): [True: 18.2k, False: 9.60k]
  |  Branch (2754:42): [True: 7.36k, False: 10.8k]
  ------------------
 2755|  7.36k|                    {
 2756|  7.36k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2756:29): [True: 704, False: 6.66k]
  ------------------
 2757|    704|                        {
 2758|    704|                            ec = cbor_errc::bad_extents;
 2759|    704|                            more_ = false;
 2760|    704|                            return;
 2761|    704|                        }
 2762|  6.66k|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2763|  6.66k|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2764|  6.66k|                        typed_array_stack_.push_back(iter);
 2765|  6.66k|                        iter->next(visitor, *this, ec);
 2766|  6.66k|                    }
 2767|  20.4k|                    else
 2768|  20.4k|                    {
 2769|  20.4k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2770|  20.4k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2771|  20.4k|                        typed_array_stack_.push_back(iter);
 2772|  20.4k|                        iter->next(visitor, *this, ec);
 2773|  20.4k|                    }
 2774|  27.1k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2775|  27.1k|                    more_ = !cursor_mode_;
 2776|  27.1k|                    break;
 2777|  27.8k|                }
 2778|  2.66k|                case 0x51:
  ------------------
  |  Branch (2778:17): [True: 2.66k, False: 597k]
  ------------------
 2779|  22.0k|                case 0x55:
  ------------------
  |  Branch (2779:17): [True: 19.3k, False: 580k]
  ------------------
 2780|  22.0k|                {
 2781|  22.0k|                    array_tag_ = typed_array_tags::float32;
 2782|  22.0k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2783|  22.0k|                    read(array_buffer, ec);
 2784|  22.0k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  22.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 28, False: 21.9k]
  |  |  ------------------
  ------------------
 2785|     28|                    {
 2786|     28|                        more_ = false;
 2787|     28|                        return;
 2788|     28|                    }
 2789|  21.9k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2790|  21.9k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2791|  21.9k|                    auto ta = typed_array_cast<float>(array_buffer);
 2792|  21.9k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2792:25): [True: 2.65k, False: 19.3k]
  ------------------
 2793|  2.65k|                    {
 2794|  6.66k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2794:49): [True: 4.01k, False: 2.65k]
  ------------------
 2795|  4.01k|                        {
 2796|  4.01k|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2797|  4.01k|                        }
 2798|  2.65k|                    }
 2799|  21.9k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2799:25): [True: 14.5k, False: 7.41k]
  |  Branch (2799:42): [True: 4.64k, False: 9.93k]
  ------------------
 2800|  4.64k|                    {
 2801|  4.64k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2801:29): [True: 62, False: 4.58k]
  ------------------
 2802|     62|                        {
 2803|     62|                            ec = cbor_errc::bad_extents;
 2804|     62|                            more_ = false;
 2805|     62|                            return;
 2806|     62|                        }
 2807|  4.58k|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2808|  4.58k|                            typed_array_tags::float32, extents_, order_, alloc_);
 2809|  4.58k|                        typed_array_stack_.push_back(iter);
 2810|  4.58k|                        iter->next(visitor, *this, ec);
 2811|  4.58k|                    }
 2812|  17.3k|                    else
 2813|  17.3k|                    {
 2814|  17.3k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2815|  17.3k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2816|  17.3k|                        typed_array_stack_.push_back(iter);
 2817|  17.3k|                        iter->next(visitor, *this, ec);
 2818|  17.3k|                    }
 2819|  21.9k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2820|  21.9k|                    more_ = !cursor_mode_;
 2821|  21.9k|                    break;
 2822|  21.9k|                }
 2823|  5.23k|                case 0x52:
  ------------------
  |  Branch (2823:17): [True: 5.23k, False: 594k]
  ------------------
 2824|  13.1k|                case 0x56:
  ------------------
  |  Branch (2824:17): [True: 7.89k, False: 591k]
  ------------------
 2825|  13.1k|                {
 2826|  13.1k|                    array_tag_ = typed_array_tags::float64;
 2827|  13.1k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2828|  13.1k|                    read(array_buffer, ec);
 2829|  13.1k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 37, False: 13.0k]
  |  |  ------------------
  ------------------
 2830|     37|                    {
 2831|     37|                        more_ = false;
 2832|     37|                        return;
 2833|     37|                    }
 2834|  13.0k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2835|  13.0k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2836|  13.0k|                    auto ta = typed_array_cast<double>(array_buffer);
 2837|  13.0k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2837:25): [True: 5.20k, False: 7.88k]
  ------------------
 2838|  5.20k|                    {
 2839|   196k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2839:49): [True: 190k, False: 5.20k]
  ------------------
 2840|   190k|                        {
 2841|   190k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2842|   190k|                        }
 2843|  5.20k|                    }
 2844|  13.0k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2844:25): [True: 8.57k, False: 4.51k]
  |  Branch (2844:42): [True: 2.67k, False: 5.90k]
  ------------------
 2845|  2.67k|                    {
 2846|  2.67k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2846:29): [True: 112, False: 2.55k]
  ------------------
 2847|    112|                        {
 2848|    112|                            ec = cbor_errc::bad_extents;
 2849|    112|                            more_ = false;
 2850|    112|                            return;
 2851|    112|                        }
 2852|  2.55k|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2853|  2.55k|                            typed_array_tags::float64, extents_, order_, alloc_);
 2854|  2.55k|                        typed_array_stack_.push_back(iter);
 2855|  2.55k|                        iter->next(visitor, *this, ec);
 2856|  2.55k|                    }
 2857|  10.4k|                    else
 2858|  10.4k|                    {
 2859|  10.4k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2860|  10.4k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2861|  10.4k|                        typed_array_stack_.push_back(iter);
 2862|  10.4k|                        iter->next(visitor, *this, ec);
 2863|  10.4k|                    }
 2864|  12.9k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2865|  12.9k|                    more_ = !cursor_mode_;
 2866|  12.9k|                    break;
 2867|  13.0k|                }
 2868|   261k|                default:
  ------------------
  |  Branch (2868:17): [True: 261k, False: 337k]
  ------------------
 2869|   261k|                {
 2870|   261k|                    auto bytes = read.view(ec);
 2871|   261k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   261k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 143, False: 261k]
  |  |  ------------------
  ------------------
 2872|    143|                    {
 2873|    143|                        more_ = false;
 2874|    143|                        return;
 2875|    143|                    }
 2876|   261k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2877|   261k|                    more_ = !cursor_mode_;
 2878|   261k|                    break;
 2879|   261k|                }
 2880|   599k|            }
 2881|   597k|            other_tags_[item_tag] = false;
 2882|   597k|        }
 2883|  12.9M|        else
 2884|  12.9M|        {
 2885|  12.9M|            auto bytes = read.view(ec);
 2886|  12.9M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.31k, False: 12.9M]
  |  |  ------------------
  ------------------
 2887|  1.31k|            {
 2888|  1.31k|                return;
 2889|  1.31k|            }
 2890|  12.9M|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2891|  12.9M|            more_ = !cursor_mode_;
 2892|  12.9M|        }
 2893|  13.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_source4viewERNS3_10error_codeE:
  326|  13.3M|        {
  327|  13.3M|            return source->read_byte_string_view(ec);
  328|  13.3M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_byte_string_viewERNS3_10error_codeE:
 1260|  13.3M|    {
 1261|  13.3M|        auto c = source_.peek();
 1262|  13.3M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  13.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 13.3M]
  |  |  ------------------
  ------------------
 1263|      0|        {
 1264|      0|            ec = cbor_errc::unexpected_eof;
 1265|      0|            more_ = false;
 1266|      0|            return byte_string_view();
 1267|      0|        }
 1268|  13.3M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1269|  13.3M|        uint8_t info = get_additional_information(c.value);
 1270|  13.3M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  13.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 13.3M]
  |  |  |  Branch (79:50): [True: 3.87k, False: 13.3M]
  |  |  |  Branch (79:50): [True: 0, False: 3.87k]
  |  |  ------------------
  ------------------
 1271|      0|        {
 1272|      0|            ec = cbor_errc::reserved_additional_info;
 1273|      0|            more_ = false;
 1274|      0|            return byte_string_view();
 1275|      0|        }
 1276|       |
 1277|  13.3M|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   54|  13.3M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 13.3M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1278|       |
 1279|  13.3M|        source_.ignore(1);
 1280|  13.3M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1280:13): [True: 3.87k, False: 13.3M]
  ------------------
 1281|  3.87k|        {
 1282|  3.87k|            bytes_buffer_.clear();
 1283|  3.87k|            iterate_byte_string_chunks(bytes_buffer_, ec);
 1284|  3.87k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.87k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 240, False: 3.63k]
  |  |  ------------------
  ------------------
 1285|    240|            {
 1286|    240|                return byte_string_view();
 1287|    240|            }
 1288|  3.63k|            return byte_string_view(bytes_buffer_.data(), bytes_buffer_.size());
 1289|  3.87k|        }
 1290|       |
 1291|  13.3M|        std::size_t length = read_size(info, ec);
 1292|  13.3M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 35, False: 13.3M]
  |  |  ------------------
  ------------------
 1293|     35|        {
 1294|     35|            return byte_string_view();
 1295|     35|        }
 1296|  13.3M|        auto data = source_.read_span(length, bytes_buffer_);
 1297|  13.3M|        if (data.size() != length)
  ------------------
  |  Branch (1297:13): [True: 1.28k, False: 13.3M]
  ------------------
 1298|  1.28k|        {
 1299|  1.28k|            ec = cbor_errc::unexpected_eof;
 1300|  1.28k|            more_ = false;
 1301|  1.28k|            return byte_string_view();
 1302|  1.28k|        }
 1303|       |        
 1304|  13.3M|        byte_string_view bytes(data.data(), data.size());
 1305|  13.3M|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1305:13): [True: 11.3M, False: 1.99M]
  ------------------
 1306|  11.3M|            bytes.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1306:13): [True: 10.8M, False: 454k]
  ------------------
 1307|  10.8M|        {
 1308|  10.8M|            stringref_map_stack_.back().emplace_back(mapped_string(bytes, alloc_));
 1309|  10.8M|        }
 1310|  13.3M|        return bytes;
 1311|  13.3M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26iterate_byte_string_chunksINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
 1444|  7.40k|    {
 1445|  7.40k|        bool done = false;
 1446|  49.9k|        while (!done)
  ------------------
  |  Branch (1446:16): [True: 42.7k, False: 7.14k]
  ------------------
 1447|  42.7k|        {
 1448|  42.7k|            auto c = source_.peek();
 1449|  42.7k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  42.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 72, False: 42.7k]
  |  |  ------------------
  ------------------
 1450|     72|            {
 1451|     72|                ec = cbor_errc::unexpected_eof;
 1452|     72|                more_ = false;
 1453|     72|                return;
 1454|     72|            }
 1455|  42.7k|            if (c.value == 0xff)
  ------------------
  |  Branch (1455:17): [True: 7.14k, False: 35.5k]
  ------------------
 1456|  7.14k|            {
 1457|  7.14k|                source_.ignore(1);
 1458|  7.14k|                done = true;
 1459|  7.14k|                continue;
 1460|  7.14k|            }
 1461|       |
 1462|  35.5k|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1463|  35.5k|            if (major_type != jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1463:17): [True: 75, False: 35.4k]
  ------------------
 1464|     75|            {
 1465|     75|                ec = cbor_errc::illegal_chunked_string;
 1466|     75|                more_ = false;
 1467|     75|                return;
 1468|     75|            }
 1469|  35.4k|            uint8_t info = get_additional_information(c.value);
 1470|  35.4k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1470:17): [True: 12, False: 35.4k]
  ------------------
 1471|     12|            {
 1472|     12|                ec = cbor_errc::illegal_chunked_string;
 1473|     12|                more_ = false;
 1474|     12|                return;
 1475|     12|            }
 1476|       |
 1477|  35.4k|            source_.ignore(1);
 1478|  35.4k|            std::size_t length = read_size(info, ec);
 1479|  35.4k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  35.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 35.4k]
  |  |  ------------------
  ------------------
 1480|      0|            {
 1481|      0|                return;
 1482|      0|            }
 1483|  35.4k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1483:17): [True: 102, False: 35.3k]
  ------------------
 1484|    102|            {
 1485|    102|                ec = cbor_errc::unexpected_eof;
 1486|    102|            }
 1487|  35.4k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  35.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 102, False: 35.3k]
  |  |  ------------------
  ------------------
 1488|    102|            {
 1489|    102|                return;
 1490|    102|            }
 1491|  35.4k|        }
 1492|  7.40k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_sizeEhRNS3_10error_codeE:
 1314|  73.9M|    {
 1315|  73.9M|        uint64_t u = read_unsigned_integer(info, ec);
 1316|  73.9M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  73.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 309, False: 73.9M]
  |  |  ------------------
  ------------------
 1317|    309|        {
 1318|    309|            return 0;
 1319|    309|        }
 1320|  73.9M|        std::size_t len = static_cast<std::size_t>(u);
 1321|  73.9M|        if (len != u)
  ------------------
  |  Branch (1321:13): [True: 0, False: 73.9M]
  ------------------
 1322|      0|        {
 1323|      0|            ec = cbor_errc::number_too_large;
 1324|      0|            more_ = false;
 1325|      0|        }
 1326|  73.9M|        return len;
 1327|  73.9M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2EOS9_:
  236|  28.5M|        mapped_string(mapped_string&&) = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS_16byte_string_viewERKS7_:
  225|  10.8M|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes.begin(),bytes.end(),alloc)
  226|  10.8M|        {
  227|  10.8M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  321|   219k|        {
  322|   219k|            source->read_byte_string(cont,ec);
  323|   219k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringERNS3_6vectorIhS5_EERNS3_10error_codeE:
 1330|   382k|    {
 1331|   382k|        v.clear();
 1332|   382k|        auto c = source_.peek();
 1333|   382k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   382k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 382k]
  |  |  ------------------
  ------------------
 1334|      0|        {
 1335|      0|            ec = cbor_errc::unexpected_eof;
 1336|      0|            return;
 1337|      0|        }
 1338|   382k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1339|   382k|        uint8_t info = get_additional_information(c.value);
 1340|   382k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   385k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 382k]
  |  |  |  Branch (79:50): [True: 3.53k, False: 378k]
  |  |  |  Branch (79:50): [True: 0, False: 3.53k]
  |  |  ------------------
  ------------------
 1341|      0|        {
 1342|      0|            ec = cbor_errc::reserved_additional_info;
 1343|      0|            more_ = false;
 1344|      0|            return;
 1345|      0|        }
 1346|       |
 1347|   382k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   54|   382k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 382k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1348|       |
 1349|   382k|        source_.ignore(1);
 1350|   382k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1350:13): [True: 3.53k, False: 378k]
  ------------------
 1351|  3.53k|        {
 1352|  3.53k|            iterate_byte_string_chunks(v, ec);
 1353|  3.53k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.53k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 21, False: 3.50k]
  |  |  ------------------
  ------------------
 1354|     21|            {
 1355|     21|                return;
 1356|     21|            }
 1357|  3.53k|        }
 1358|   378k|        else 
 1359|   378k|        {
 1360|   378k|            std::size_t length = read_size(info, ec);
 1361|   378k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   378k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 378k]
  |  |  ------------------
  ------------------
 1362|      0|            {
 1363|      0|                return;
 1364|      0|            }
 1365|   378k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1365:17): [True: 362, False: 378k]
  ------------------
 1366|    362|            {
 1367|    362|                ec = cbor_errc::unexpected_eof;
 1368|    362|                return;
 1369|    362|            }
 1370|   378k|            if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1370:17): [True: 135k, False: 242k]
  ------------------
 1371|   135k|                v.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1371:17): [True: 71.4k, False: 64.1k]
  ------------------
 1372|  71.4k|            {
 1373|  71.4k|                stringref_map_stack_.back().emplace_back(mapped_string(v, alloc_));
 1374|  71.4k|            }
 1375|   378k|        }
 1376|   382k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_6vectorIhS5_EERKS7_:
  219|  71.4k|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes,alloc)
  220|  71.4k|        {
  221|  71.4k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_text_string_viewEhRNS3_10error_codeE:
 1226|   601k|    {
 1227|   601k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1227:13): [True: 5.81k, False: 595k]
  ------------------
 1228|  5.81k|        {
 1229|  5.81k|            text_buffer_.clear();
 1230|  5.81k|            iterate_text_string_chunks(text_buffer_, ec);
 1231|  5.81k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.81k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 285, False: 5.53k]
  |  |  ------------------
  ------------------
 1232|    285|            {
 1233|    285|                return string_view_type();
 1234|    285|            }
 1235|  5.53k|            return string_view_type(text_buffer_.data(), text_buffer_.size());
 1236|  5.81k|        }
 1237|       |
 1238|   595k|        std::size_t length = read_size(info, ec);
 1239|   595k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   595k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 26, False: 595k]
  |  |  ------------------
  ------------------
 1240|     26|        {
 1241|     26|            return string_view_type();
 1242|     26|        }
 1243|   595k|        auto data = source_.read_span(length, text_buffer_);
 1244|   595k|        if (data.size() != length)
  ------------------
  |  Branch (1244:13): [True: 613, False: 595k]
  ------------------
 1245|    613|        {
 1246|    613|            ec = cbor_errc::unexpected_eof;
 1247|    613|            more_ = false;
 1248|    613|            return string_view_type();
 1249|    613|        }
 1250|   595k|        string_view_type sv(reinterpret_cast<const char_type*>(data.data()), data.size());
 1251|   595k|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1251:13): [True: 143k, False: 451k]
  ------------------
 1252|   143k|            sv.length() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1252:13): [True: 54.8k, False: 88.4k]
  ------------------
 1253|  54.8k|        {
 1254|  54.8k|            stringref_map_stack_.back().emplace_back(mapped_string(sv,alloc_));
 1255|  54.8k|        }
 1256|   595k|        return sv;
 1257|   595k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26iterate_text_string_chunksINS3_12basic_stringIcNS3_11char_traitsIcEES7_EEEEvRT_RNS3_10error_codeE:
 1380|  5.81k|    {
 1381|  5.81k|        bool done = false;
 1382|  19.6k|        while (!done)
  ------------------
  |  Branch (1382:16): [True: 14.0k, False: 5.53k]
  ------------------
 1383|  14.0k|        {
 1384|  14.0k|            auto c = source_.peek();
 1385|  14.0k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  14.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 30, False: 14.0k]
  |  |  ------------------
  ------------------
 1386|     30|            {
 1387|     30|                ec = cbor_errc::unexpected_eof;
 1388|     30|                more_ = false;
 1389|     30|                return;
 1390|     30|            }
 1391|  14.0k|            if (c.value == 0xff)
  ------------------
  |  Branch (1391:17): [True: 5.53k, False: 8.50k]
  ------------------
 1392|  5.53k|            {
 1393|  5.53k|                source_.ignore(1);
 1394|  5.53k|                done = true;
 1395|  5.53k|                continue;
 1396|  5.53k|            }
 1397|       |
 1398|  8.50k|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1399|  8.50k|            if (major_type != jsoncons::cbor::detail::cbor_major_type::text_string)
  ------------------
  |  Branch (1399:17): [True: 96, False: 8.40k]
  ------------------
 1400|     96|            {
 1401|     96|                ec = cbor_errc::illegal_chunked_string;
 1402|     96|                more_ = false;
 1403|     96|                return;
 1404|     96|            }
 1405|  8.40k|            uint8_t info = get_additional_information(c.value);
 1406|  8.40k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1406:17): [True: 22, False: 8.38k]
  ------------------
 1407|     22|            {
 1408|     22|                ec = cbor_errc::illegal_chunked_string;
 1409|     22|                more_ = false;
 1410|     22|                return;
 1411|     22|            }
 1412|       |
 1413|  8.38k|            source_.ignore(1);
 1414|  8.38k|            std::size_t length = read_size(info, ec);
 1415|  8.38k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.38k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 8.37k]
  |  |  ------------------
  ------------------
 1416|      6|            {
 1417|      6|                return;
 1418|      6|            }
 1419|  8.37k|            const std::size_t offset = v.size();
 1420|  8.37k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1420:17): [True: 66, False: 8.31k]
  ------------------
 1421|     66|            {
 1422|     66|                ec = cbor_errc::unexpected_eof;
 1423|     66|            }
 1424|  8.37k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.37k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 66, False: 8.31k]
  |  |  ------------------
  ------------------
 1425|     66|            {
 1426|     66|                return;
 1427|     66|            }
 1428|       |            // RFC 8949 3.2.3: each chunk of an indefinite-length text
 1429|       |            // string must itself be well-formed UTF-8, so a code point
 1430|       |            // may not be split across chunks.
 1431|  8.31k|            auto result = unicode_traits::validate(
 1432|  8.31k|                reinterpret_cast<const char*>(v.data()) + offset, length);
 1433|  8.31k|            if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (1433:17): [True: 65, False: 8.24k]
  ------------------
 1434|     65|            {
 1435|     65|                ec = cbor_errc::invalid_utf8_text_string;
 1436|     65|                more_ = false;
 1437|     65|                return;
 1438|     65|            }
 1439|  8.31k|        }
 1440|  5.81k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKS7_:
  208|  54.8k|            : type(jsoncons::cbor::detail::cbor_major_type::text_string), str(sv.data(), sv.size(), alloc), bytes(alloc)
  209|  54.8k|        {
  210|  54.8k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11read_doubleEhRNS3_10error_codeE:
 1785|   489k|    {
 1786|   489k|        double val = 0;
 1787|       |
 1788|   489k|        switch (info)
 1789|   489k|        {
 1790|   421k|            case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (1790:13): [True: 421k, False: 68.1k]
  ------------------
 1791|   421k|            {
 1792|   421k|                uint8_t buf[sizeof(float)];
 1793|   421k|                if (source_.read(buf, sizeof(float)) !=sizeof(float)) 
  ------------------
  |  Branch (1793:21): [True: 104, False: 421k]
  ------------------
 1794|    104|                {
 1795|    104|                    ec = cbor_errc::unexpected_eof;
 1796|    104|                    more_ = false;
 1797|    104|                    return 0;
 1798|    104|                }
 1799|   421k|                val = binary::big_to_native<float>(buf, sizeof(buf));
 1800|   421k|                break;
 1801|   421k|            }
 1802|       |
 1803|  68.1k|            case 0x1b: //  Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (1803:13): [True: 68.1k, False: 421k]
  ------------------
 1804|  68.1k|            {
 1805|  68.1k|                uint8_t buf[sizeof(double)];
 1806|  68.1k|                if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (1806:21): [True: 91, False: 68.0k]
  ------------------
 1807|     91|                {
 1808|     91|                    ec = cbor_errc::unexpected_eof;
 1809|     91|                    more_ = false;
 1810|     91|                    return 0;
 1811|     91|                }
 1812|  68.0k|                val = binary::big_to_native<double>(buf, sizeof(buf));
 1813|  68.0k|                break;
 1814|  68.1k|            }
 1815|      0|            default:
  ------------------
  |  Branch (1815:13): [True: 0, False: 489k]
  ------------------
 1816|      0|            {
 1817|      0|                ec = cbor_errc::unknown_type;
 1818|      0|                more_ = false;
 1819|      0|                return 0;
 1820|  68.1k|            }
 1821|   489k|        }
 1822|       |        
 1823|   489k|        return val;
 1824|   489k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE15read_bigdecimalEhRNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 1827|   135k|    {
 1828|   135k|        std::size_t size = read_unsigned_integer(container_info, ec);
 1829|   135k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   135k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 135k]
  |  |  ------------------
  ------------------
 1830|      7|        {
 1831|      7|            return;
 1832|      7|        }
 1833|   135k|        if (size != 2)
  ------------------
  |  Branch (1833:13): [True: 18, False: 135k]
  ------------------
 1834|     18|        {
 1835|     18|            ec = cbor_errc::invalid_bigdecimal;
 1836|     18|            more_ = false;
 1837|     18|            return;
 1838|     18|        }
 1839|       |
 1840|   135k|        auto c = source_.peek();
 1841|   135k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   135k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 23, False: 135k]
  |  |  ------------------
  ------------------
 1842|     23|        {
 1843|     23|            ec = cbor_errc::unexpected_eof;
 1844|     23|            more_ = false;
 1845|     23|            return;
 1846|     23|        }
 1847|   135k|        int64_t exponent = 0;
 1848|   135k|        auto major_type = get_major_type(c.value);
 1849|   135k|        auto info = get_additional_information(c.value);
 1850|   135k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   136k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 135k]
  |  |  |  Branch (79:50): [True: 1.09k, False: 134k]
  |  |  |  Branch (79:50): [True: 3, False: 1.08k]
  |  |  ------------------
  ------------------
 1851|      3|        {
 1852|      3|            ec = cbor_errc::reserved_additional_info;
 1853|      3|            more_ = false;
 1854|      3|            return;
 1855|      3|        }
 1856|       |
 1857|   135k|        switch (major_type)
 1858|   135k|        {
 1859|  45.4k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1859:13): [True: 45.4k, False: 89.6k]
  ------------------
 1860|  45.4k|            {
 1861|  45.4k|                source_.ignore(1);
 1862|  45.4k|                auto u = read_unsigned_integer(info, ec);
 1863|  45.4k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  45.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 45.4k]
  |  |  ------------------
  ------------------
 1864|      4|                {
 1865|      4|                    return;
 1866|      4|                }
 1867|  45.4k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1867:21): [True: 12, False: 45.4k]
  ------------------
 1868|     12|                {
 1869|     12|                    ec = cbor_errc::bigdec_scale_overflow;
 1870|     12|                    more_ = false;
 1871|     12|                    return;
 1872|     12|                }
 1873|  45.4k|                exponent = static_cast<int64_t>(u);
 1874|  45.4k|                break;
 1875|  45.4k|            }
 1876|  89.5k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1876:13): [True: 89.5k, False: 45.5k]
  ------------------
 1877|  89.5k|            {
 1878|  89.5k|                exponent = read_int64(ec);
 1879|  89.5k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  89.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 89.5k]
  |  |  ------------------
  ------------------
 1880|      3|                {
 1881|      3|                    return;
 1882|      3|                }
 1883|  89.5k|                break;
 1884|  89.5k|            }
 1885|  89.5k|            default:
  ------------------
  |  Branch (1885:13): [True: 146, False: 134k]
  ------------------
 1886|    146|            {
 1887|    146|                ec = cbor_errc::invalid_bigdecimal;
 1888|    146|                more_ = false;
 1889|    146|                return;
 1890|  89.5k|            }
 1891|   135k|        }
 1892|       |
 1893|   134k|        c = source_.peek();
 1894|   134k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   134k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 20, False: 134k]
  |  |  ------------------
  ------------------
 1895|     20|        {
 1896|     20|            ec = cbor_errc::unexpected_eof;
 1897|     20|            more_ = false;
 1898|     20|            return;
 1899|     20|        }
 1900|       |
 1901|   134k|        major_type = get_major_type(c.value);
 1902|   134k|        info = get_additional_information(c.value);
 1903|   134k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   135k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 134k]
  |  |  |  Branch (79:50): [True: 487, False: 134k]
  |  |  |  Branch (79:50): [True: 5, False: 482]
  |  |  ------------------
  ------------------
 1904|      5|        {
 1905|      5|            ec = cbor_errc::reserved_additional_info;
 1906|      5|            more_ = false;
 1907|      5|            return;
 1908|      5|        }
 1909|       |
 1910|   134k|        bigint unscaled;
 1911|   134k|        switch (major_type)
 1912|   134k|        {
 1913|  56.3k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1913:13): [True: 56.3k, False: 78.5k]
  ------------------
 1914|  56.3k|            {
 1915|  56.3k|                source_.ignore(1);
 1916|  56.3k|                uint64_t u = read_unsigned_integer(info, ec);
 1917|  56.3k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  56.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 56.3k]
  |  |  ------------------
  ------------------
 1918|      0|                {
 1919|      0|                    return;
 1920|      0|                }
 1921|  56.3k|                unscaled = bigint(u);
 1922|  56.3k|                break;
 1923|  56.3k|            }
 1924|  28.3k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1924:13): [True: 28.3k, False: 106k]
  ------------------
 1925|  28.3k|            {
 1926|  28.3k|                source_.ignore(1);
 1927|  28.3k|                auto u = read_unsigned_integer(info, ec);
 1928|  28.3k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  28.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 28.3k]
  |  |  ------------------
  ------------------
 1929|      4|                {
 1930|      4|                    return;
 1931|      4|                }
 1932|  28.3k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1932:21): [True: 8.63k, False: 19.7k]
  ------------------
 1933|  8.63k|                {
 1934|  8.63k|                    unscaled = -1 - bigint(u);
 1935|  8.63k|                }
 1936|  19.7k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  19.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 648, False: 19.0k]
  |  |  ------------------
  ------------------
 1937|    648|                {
 1938|    648|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 1939|    648|                }
 1940|  19.0k|                else
 1941|  19.0k|                {
 1942|  19.0k|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 1943|  19.0k|                }
 1944|  28.3k|                break;
 1945|  28.3k|            }
 1946|  50.1k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1946:13): [True: 50.1k, False: 84.8k]
  ------------------
 1947|  50.1k|            {
 1948|  50.1k|                uint8_t b;
 1949|  50.1k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1949:21): [True: 0, False: 50.1k]
  ------------------
 1950|      0|                {
 1951|      0|                    ec = cbor_errc::unexpected_eof;
 1952|      0|                    more_ = false;
 1953|      0|                    return;
 1954|      0|                }
 1955|  50.1k|                info = get_additional_information(b);
 1956|  50.1k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  50.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 50.1k]
  |  |  |  Branch (79:50): [True: 453, False: 49.6k]
  |  |  |  Branch (79:50): [True: 0, False: 453]
  |  |  ------------------
  ------------------
 1957|      0|                {
 1958|      0|                    ec = cbor_errc::reserved_additional_info;
 1959|      0|                    more_ = false;
 1960|      0|                    return;
 1961|      0|                }
 1962|  50.1k|                c = source_.peek();
 1963|  50.1k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  50.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 18, False: 50.1k]
  |  |  ------------------
  ------------------
 1964|     18|                {
 1965|     18|                    ec = cbor_errc::unexpected_eof;
 1966|     18|                    more_ = false;
 1967|     18|                    return;
 1968|     18|                }
 1969|       |
 1970|  50.1k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1970:21): [True: 27.8k, False: 22.2k]
  ------------------
 1971|  27.8k|                {
 1972|  27.8k|                    bytes_buffer_.clear();
 1973|  27.8k|                    read_byte_string(bytes_buffer_, ec);
 1974|  27.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 52, False: 27.7k]
  |  |  ------------------
  ------------------
 1975|     52|                    {
 1976|     52|                        more_ = false;
 1977|     52|                        return;
 1978|     52|                    }
 1979|  27.7k|                    if (info == 2)
  ------------------
  |  Branch (1979:25): [True: 5.54k, False: 22.2k]
  ------------------
 1980|  5.54k|                    {
 1981|  5.54k|                        unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1982|  5.54k|                    }
 1983|  22.2k|                    else if (info == 3)
  ------------------
  |  Branch (1983:30): [True: 19.9k, False: 2.31k]
  ------------------
 1984|  19.9k|                    {
 1985|  19.9k|                        unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1986|  19.9k|                        unscaled = -1 - unscaled;
 1987|  19.9k|                    }
 1988|  27.7k|                }
 1989|  50.0k|                break;
 1990|  50.1k|            }
 1991|  50.0k|            default:
  ------------------
  |  Branch (1991:13): [True: 63, False: 134k]
  ------------------
 1992|     63|            {
 1993|     63|                ec = cbor_errc::invalid_bigdecimal;
 1994|     63|                more_ = false;
 1995|     63|                return;
 1996|  50.1k|            }
 1997|   134k|        }
 1998|       |
 1999|   134k|        bigdec dec(std::move(unscaled), -exponent);
 2000|   134k|        append_to_buffer(dec, result);
 2001|   134k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10read_int64ERNS3_10error_codeE:
 1495|   210k|    {
 1496|   210k|        int64_t val = 0;
 1497|       |
 1498|   210k|        auto ch = source_.peek();
 1499|   210k|        if (ch.eof)
  ------------------
  |  Branch (1499:13): [True: 0, False: 210k]
  ------------------
 1500|      0|        {
 1501|      0|            ec = cbor_errc::unexpected_eof;
 1502|      0|            more_ = false;
 1503|      0|            return val;
 1504|      0|        }
 1505|       |
 1506|   210k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(ch.value);
 1507|   210k|        uint8_t info = get_additional_information(ch.value);
 1508|   210k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   212k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 210k]
  |  |  |  Branch (79:50): [True: 1.50k, False: 209k]
  |  |  |  Branch (79:50): [True: 0, False: 1.50k]
  |  |  ------------------
  ------------------
 1509|      0|        {
 1510|      0|            ec = cbor_errc::reserved_additional_info;
 1511|      0|            more_ = false;
 1512|      0|            return val;
 1513|      0|        }
 1514|   210k|        switch (major_type)
 1515|   210k|        {
 1516|   210k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1516:13): [True: 210k, False: 0]
  ------------------
 1517|   210k|                source_.ignore(1);
 1518|   210k|                switch (info)
  ------------------
  |  Branch (1518:25): [True: 209k, False: 1.50k]
  ------------------
 1519|   210k|                {
 1520|   177k|                    case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|   177k|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 3.08k, False: 207k]
  |  |  |  Branch (18:20): [True: 388, False: 210k]
  |  |  |  Branch (18:30): [True: 533, False: 210k]
  |  |  |  Branch (18:40): [True: 23.9k, False: 186k]
  |  |  |  Branch (18:50): [True: 706, False: 210k]
  |  |  |  Branch (18:60): [True: 150, False: 210k]
  |  |  |  Branch (18:70): [True: 1.10k, False: 209k]
  |  |  |  Branch (18:80): [True: 975, False: 209k]
  |  |  |  Branch (18:90): [True: 1.85k, False: 209k]
  |  |  |  Branch (18:100): [True: 20.6k, False: 190k]
  |  |  |  Branch (18:110): [True: 17.2k, False: 193k]
  |  |  |  Branch (18:120): [True: 3.24k, False: 207k]
  |  |  |  Branch (18:130): [True: 2.16k, False: 208k]
  |  |  |  Branch (18:140): [True: 7.11k, False: 203k]
  |  |  |  Branch (18:150): [True: 75.8k, False: 135k]
  |  |  |  Branch (18:160): [True: 369, False: 210k]
  |  |  |  Branch (18:170): [True: 3.46k, False: 207k]
  |  |  |  Branch (18:180): [True: 1.12k, False: 209k]
  |  |  |  Branch (18:190): [True: 1.10k, False: 209k]
  |  |  |  Branch (18:200): [True: 704, False: 210k]
  |  |  |  Branch (18:210): [True: 191, False: 210k]
  |  |  |  Branch (18:220): [True: 2.71k, False: 208k]
  |  |  ------------------
  ------------------
  |  Branch (1520:21): [True: 6.08k, False: 204k]
  ------------------
 1521|   177k|                    {
 1522|   177k|                        val = static_cast<int8_t>(- 1 - info);
 1523|   177k|                        break;
 1524|  1.99M|                    }
 1525|  27.2k|                    case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1525:21): [True: 27.2k, False: 183k]
  ------------------
 1526|  27.2k|                        {
 1527|  27.2k|                            uint8_t b;
 1528|  27.2k|                            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1528:33): [True: 0, False: 27.2k]
  ------------------
 1529|      0|                            {
 1530|      0|                                ec = cbor_errc::unexpected_eof;
 1531|      0|                                more_ = false;
 1532|      0|                                return val;
 1533|      0|                            }
 1534|  27.2k|                            val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1535|  27.2k|                            break;
 1536|  27.2k|                        }
 1537|       |
 1538|    337|                    case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1538:21): [True: 337, False: 210k]
  ------------------
 1539|    337|                        {
 1540|    337|                            uint8_t buf[sizeof(uint16_t)];
 1541|    337|                            if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1541:33): [True: 0, False: 337]
  ------------------
 1542|      0|                            {
 1543|      0|                                ec = cbor_errc::unexpected_eof;
 1544|      0|                                more_ = false;
 1545|      0|                                return val;
 1546|      0|                            }
 1547|    337|                            auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1548|    337|                            val = static_cast<int64_t>(-1)- u;
 1549|    337|                            break;
 1550|    337|                        }
 1551|       |
 1552|  2.13k|                    case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1552:21): [True: 2.13k, False: 208k]
  ------------------
 1553|  2.13k|                        {
 1554|  2.13k|                            uint8_t buf[sizeof(uint32_t)];
 1555|  2.13k|                            if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1555:33): [True: 0, False: 2.13k]
  ------------------
 1556|      0|                            {
 1557|      0|                                ec = cbor_errc::unexpected_eof;
 1558|      0|                                more_ = false;
 1559|      0|                                return val;
 1560|      0|                            }
 1561|  2.13k|                            auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1562|  2.13k|                            val = static_cast<int64_t>(-1)- u;
 1563|  2.13k|                            break;
 1564|  2.13k|                        }
 1565|       |
 1566|  2.00k|                    case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1566:21): [True: 2.00k, False: 208k]
  ------------------
 1567|  2.00k|                        {
 1568|  2.00k|                            uint8_t buf[sizeof(uint64_t)];
 1569|  2.00k|                            if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1569:33): [True: 3, False: 2.00k]
  ------------------
 1570|      3|                            {
 1571|      3|                                ec = cbor_errc::unexpected_eof;
 1572|      3|                                more_ = false;
 1573|      3|                                return val;
 1574|      3|                            }
 1575|  2.00k|                            auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1576|  2.00k|                            if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1576:33): [True: 9, False: 1.99k]
  ------------------
 1577|      9|                            {
 1578|      9|                                ec = cbor_errc::invalid_bigdecimal;
 1579|      9|                                more_ = false;
 1580|      9|                                return val;
 1581|      9|                            }
 1582|  1.99k|                            if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  1.99k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 584, False: 1.41k]
  |  |  ------------------
  ------------------
 1583|    584|                            {
 1584|    584|                                val = (std::numeric_limits<int64_t>::min)();
 1585|    584|                            }
 1586|  1.41k|                            else
 1587|  1.41k|                            {
 1588|  1.41k|                                val = static_cast<int64_t>(-1)- static_cast<int64_t>(u);
 1589|  1.41k|                            }
 1590|  1.99k|                            break;
 1591|  2.00k|                        }
 1592|   210k|                }
 1593|   210k|                break;
 1594|       |
 1595|   210k|                case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1595:17): [True: 0, False: 210k]
  ------------------
 1596|      0|                {
 1597|      0|                    source_.ignore(1);
 1598|      0|                    uint64_t u = read_unsigned_integer(info, ec);
 1599|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1600|      0|                    {
 1601|      0|                        return 0;
 1602|      0|                    }
 1603|      0|                    if (u <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1603:25): [True: 0, False: 0]
  ------------------
 1604|      0|                    {
 1605|      0|                        val = u;
 1606|      0|                    }
 1607|      0|                    else
 1608|      0|                    {
 1609|       |                        // error;
 1610|      0|                    }
 1611|       |                    
 1612|      0|                    break;
 1613|      0|                }
 1614|      0|                break;
 1615|      0|            default:
  ------------------
  |  Branch (1615:13): [True: 0, False: 210k]
  ------------------
 1616|      0|                break;
 1617|   210k|        }
 1618|       |
 1619|   210k|        return val;
 1620|   210k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13read_bigfloatEhRNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 2004|   202k|    {
 2005|   202k|        std::size_t size = read_unsigned_integer(container_info, ec);
 2006|   202k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   202k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 202k]
  |  |  ------------------
  ------------------
 2007|      1|        {
 2008|      1|            return;
 2009|      1|        }
 2010|   202k|        if (size != 2)
  ------------------
  |  Branch (2010:13): [True: 15, False: 202k]
  ------------------
 2011|     15|        {
 2012|     15|            ec = cbor_errc::invalid_bigfloat;
 2013|     15|            more_ = false;
 2014|     15|            return;
 2015|     15|        }
 2016|       |
 2017|   202k|        auto c = source_.peek();
 2018|   202k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   202k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 202k]
  |  |  ------------------
  ------------------
 2019|     12|        {
 2020|     12|            ec = cbor_errc::unexpected_eof;
 2021|     12|            more_ = false;
 2022|     12|            return;
 2023|     12|        }
 2024|   202k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 2025|   202k|        uint8_t info = get_additional_information(c.value);
 2026|   202k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   203k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 202k]
  |  |  |  Branch (79:50): [True: 432, False: 202k]
  |  |  |  Branch (79:50): [True: 0, False: 432]
  |  |  ------------------
  ------------------
 2027|      0|        {
 2028|      0|            ec = cbor_errc::reserved_additional_info;
 2029|      0|            more_ = false;
 2030|      0|            return;
 2031|      0|        }
 2032|       |
 2033|   202k|        int64_t exponent = 0;
 2034|   202k|        switch (major_type)
 2035|   202k|        {
 2036|  81.3k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2036:13): [True: 81.3k, False: 121k]
  ------------------
 2037|  81.3k|            {
 2038|  81.3k|                source_.ignore(1);
 2039|  81.3k|                auto u = read_unsigned_integer(info, ec);
 2040|  81.3k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  81.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 81.3k]
  |  |  ------------------
  ------------------
 2041|      0|                {
 2042|      0|                    return;
 2043|      0|                }
 2044|  81.3k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2044:21): [True: 6, False: 81.3k]
  ------------------
 2045|      6|                {
 2046|      6|                    ec = cbor_errc::invalid_bigdecimal;
 2047|      6|                    more_ = false;
 2048|      6|                    return;
 2049|      6|                }
 2050|  81.3k|                exponent = static_cast<int64_t>(u);
 2051|  81.3k|                if (exponent == 0)
  ------------------
  |  Branch (2051:21): [True: 3.23k, False: 78.1k]
  ------------------
 2052|  3.23k|                {
 2053|  3.23k|                    str.append("0.0");
 2054|  3.23k|                    return;
 2055|  3.23k|                }
 2056|  78.1k|                break;
 2057|  81.3k|            }
 2058|   121k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2058:13): [True: 121k, False: 81.4k]
  ------------------
 2059|   121k|            {
 2060|   121k|                exponent = read_int64(ec);
 2061|   121k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   121k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 9, False: 121k]
  |  |  ------------------
  ------------------
 2062|      9|                {
 2063|      9|                    return;
 2064|      9|                }
 2065|   121k|                if (exponent == 0)
  ------------------
  |  Branch (2065:21): [True: 426, False: 120k]
  ------------------
 2066|    426|                {
 2067|    426|                    str.append("0.0");
 2068|    426|                    return;
 2069|    426|                }
 2070|   120k|                break;
 2071|   121k|            }
 2072|   120k|            default:
  ------------------
  |  Branch (2072:13): [True: 56, False: 202k]
  ------------------
 2073|     56|            {
 2074|     56|                ec = cbor_errc::invalid_bigfloat;
 2075|     56|                more_ = false;
 2076|     56|                return;
 2077|   121k|            }
 2078|   202k|        }
 2079|       |
 2080|   199k|        c = source_.peek();
 2081|   199k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   199k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 27, False: 199k]
  |  |  ------------------
  ------------------
 2082|     27|        {
 2083|     27|            ec = cbor_errc::unexpected_eof;
 2084|     27|            more_ = false;
 2085|     27|            return;
 2086|     27|        }
 2087|   199k|        major_type = get_major_type(c.value);
 2088|   199k|        info = get_additional_information(c.value);
 2089|   199k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   199k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 9, False: 199k]
  |  |  |  Branch (79:50): [True: 70, False: 198k]
  |  |  |  Branch (79:50): [True: 9, False: 61]
  |  |  ------------------
  ------------------
 2090|      9|        {
 2091|      9|            ec = cbor_errc::reserved_additional_info;
 2092|      9|            more_ = false;
 2093|      9|            return;
 2094|      9|        }
 2095|       |
 2096|   199k|        bigint unscaled;
 2097|   199k|        switch (major_type)
 2098|   199k|        {
 2099|  8.60k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2099:13): [True: 8.60k, False: 190k]
  ------------------
 2100|  8.60k|            {
 2101|  8.60k|                source_.ignore(1);
 2102|  8.60k|                uint64_t u = read_unsigned_integer(info, ec);
 2103|  8.60k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.60k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.60k]
  |  |  ------------------
  ------------------
 2104|      0|                {
 2105|      0|                    return;
 2106|      0|                }
 2107|  8.60k|                unscaled = bigint(u);
 2108|       |                //bigdec dec(std::move(unscaled), -exponent);
 2109|       |                //append_to_buffer(dec, str);
 2110|  8.60k|                break;
 2111|  8.60k|            }
 2112|  32.4k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2112:13): [True: 32.4k, False: 166k]
  ------------------
 2113|  32.4k|            {
 2114|  32.4k|                source_.ignore(1);
 2115|  32.4k|                auto u = read_unsigned_integer(info, ec);
 2116|  32.4k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  32.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 37, False: 32.4k]
  |  |  ------------------
  ------------------
 2117|     37|                {
 2118|     37|                    return;
 2119|     37|                }
 2120|  32.4k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2120:21): [True: 6, False: 32.4k]
  ------------------
 2121|      6|                {
 2122|      6|                    unscaled = -1 - bigint(u);
 2123|      6|                }
 2124|  32.4k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  32.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 42, False: 32.3k]
  |  |  ------------------
  ------------------
 2125|     42|                {
 2126|     42|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 2127|     42|                }
 2128|  32.3k|                else
 2129|  32.3k|                {
 2130|  32.3k|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 2131|  32.3k|                }
 2132|       |                //bigdec dec(std::move(unscaled), -exponent);
 2133|       |                //append_to_buffer(dec, str);
 2134|  32.4k|                break;
 2135|  32.4k|            }
 2136|   157k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (2136:13): [True: 157k, False: 41.1k]
  ------------------
 2137|   157k|            {
 2138|   157k|                uint8_t x;
 2139|   157k|                if (source_.read(&x, 1) == 0)
  ------------------
  |  Branch (2139:21): [True: 0, False: 157k]
  ------------------
 2140|      0|                {
 2141|      0|                    ec = cbor_errc::unexpected_eof;
 2142|      0|                    more_ = false;
 2143|      0|                    return;
 2144|      0|                }
 2145|   157k|                uint8_t tag = get_additional_information(x);
 2146|   157k|                if (JSONCONS_UNLIKELY(tag >= 0x1C && tag <= 0x1E))
  ------------------
  |  |   79|   157k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 157k]
  |  |  |  Branch (79:50): [True: 6, False: 157k]
  |  |  |  Branch (79:50): [True: 0, False: 6]
  |  |  ------------------
  ------------------
 2147|      0|                {
 2148|      0|                    ec = cbor_errc::reserved_additional_info;
 2149|      0|                    more_ = false;
 2150|      0|                    return;
 2151|      0|                }
 2152|       |
 2153|   157k|                c = source_.peek();
 2154|   157k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   157k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 157k]
  |  |  ------------------
  ------------------
 2155|      1|                {
 2156|      1|                    ec = cbor_errc::unexpected_eof;
 2157|      1|                    more_ = false;
 2158|      1|                    return;
 2159|      1|                }
 2160|       |
 2161|   157k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2161:21): [True: 134k, False: 23.0k]
  ------------------
 2162|   134k|                {
 2163|   134k|                    bytes_buffer_.clear();
 2164|   134k|                    read_byte_string(bytes_buffer_, ec);
 2165|   134k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   134k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 79, False: 134k]
  |  |  ------------------
  ------------------
 2166|     79|                    {
 2167|     79|                        more_ = false;
 2168|     79|                        return;
 2169|     79|                    }
 2170|   134k|                    unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 2171|   134k|                    if (tag == 3)
  ------------------
  |  Branch (2171:25): [True: 113k, False: 21.0k]
  ------------------
 2172|   113k|                    {
 2173|   113k|                        unscaled = -1 - unscaled;
 2174|   113k|                    }
 2175|   134k|                }
 2176|   157k|                break;
 2177|   157k|            }
 2178|   157k|            default:
  ------------------
  |  Branch (2178:13): [True: 59, False: 198k]
  ------------------
 2179|     59|            {
 2180|     59|                ec = cbor_errc::invalid_bigfloat;
 2181|     59|                more_ = false;
 2182|     59|                return;
 2183|   157k|            }
 2184|   199k|        }
 2185|       |
 2186|   198k|        bigdec dec;
 2187|   198k|        auto result = from_cbor_bigfloat(std::move(unscaled), exponent, dec, bigfloat_precision_);
 2188|   198k|        if (result != cbor_errc{})
  ------------------
  |  Branch (2188:13): [True: 0, False: 198k]
  ------------------
 2189|      0|        {
 2190|      0|            ec = result;
 2191|      0|            more_ = false;
 2192|      0|            return;
 2193|      0|        }
 2194|   198k|        append_to_buffer(dec, str);
 2195|   198k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE19read_mdarray_headerERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2896|   104k|    {
 2897|   104k|        uint8_t b;
 2898|   104k|        if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2898:13): [True: 0, False: 104k]
  ------------------
 2899|      0|        {
 2900|      0|            ec = cbor_errc::unexpected_eof;
 2901|      0|            more_ = false;
 2902|      0|            return;
 2903|      0|        }
 2904|   104k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(b);
 2905|   104k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::array);
  ------------------
  |  |   54|   104k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 104k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 2906|   104k|        uint8_t info = get_additional_information(b);
 2907|   104k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   181k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 104k]
  |  |  |  Branch (79:50): [True: 76.2k, False: 28.4k]
  |  |  |  Branch (79:50): [True: 0, False: 76.2k]
  |  |  ------------------
  ------------------
 2908|      0|        {
 2909|      0|            ec = cbor_errc::reserved_additional_info;
 2910|      0|            more_ = false;
 2911|      0|            return;
 2912|      0|        }
 2913|       |       
 2914|   104k|        read_extents(ec);   
 2915|   104k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   104k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 474, False: 104k]
  |  |  ------------------
  ------------------
 2916|    474|        {
 2917|    474|            return;
 2918|    474|        }
 2919|       |
 2920|   104k|        read_tags(ec);
 2921|   104k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   104k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 27, False: 104k]
  |  |  ------------------
  ------------------
 2922|     27|        {
 2923|     27|            return;
 2924|     27|        }
 2925|   104k|        auto c = source_.peek();
 2926|   104k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   104k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 104k]
  |  |  ------------------
  ------------------
 2927|      0|        {
 2928|      0|            ec = cbor_errc::unexpected_eof;
 2929|      0|            more_ = false;
 2930|      0|            return;
 2931|      0|        }
 2932|   104k|        major_type = get_major_type(c.value);
 2933|   104k|        info = get_additional_information(c.value);
 2934|   104k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   124k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 104k]
  |  |  |  Branch (79:50): [True: 20.0k, False: 84.1k]
  |  |  |  Branch (79:50): [True: 3, False: 20.0k]
  |  |  ------------------
  ------------------
 2935|      3|        {
 2936|      3|            ec = cbor_errc::reserved_additional_info;
 2937|      3|            more_ = false;
 2938|      3|            return;
 2939|      3|        }
 2940|   104k|        state_stack_.emplace_back(parse_mode::multi_dim, 0);
 2941|   104k|        ++state_stack_.back().index;
 2942|       |
 2943|   104k|        if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::row_major) 
  ------------------
  |  Branch (2943:13): [True: 41.7k, False: 62.4k]
  |  Branch (2943:77): [True: 32.6k, False: 9.14k]
  ------------------
 2944|  32.6k|        {
 2945|  32.6k|            source_.ignore(1);
 2946|  32.6k|            begin_classical_array_storage(info, ec);
 2947|  32.6k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  32.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 32.6k]
  |  |  ------------------
  ------------------
 2948|      7|            {
 2949|      7|                return;
 2950|      7|            }
 2951|  32.6k|            auto iter = std::make_shared<cbor_mdarray_row_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2952|  32.6k|            typed_array_stack_.push_back(iter);
 2953|  32.6k|            if (!iter->done())
  ------------------
  |  Branch (2953:17): [True: 32.6k, False: 0]
  ------------------
 2954|  32.6k|            {
 2955|  32.6k|                iter->next(visitor, *this, ec);
 2956|  32.6k|            }
 2957|  32.6k|        }
 2958|  71.6k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::column_major) 
  ------------------
  |  Branch (2958:18): [True: 9.14k, False: 62.4k]
  |  Branch (2958:82): [True: 9.14k, False: 0]
  ------------------
 2959|  9.14k|        {
 2960|  9.14k|            source_.ignore(1);
 2961|  9.14k|            begin_classical_array_storage(info, ec);
 2962|  9.14k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.14k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 9.13k]
  |  |  ------------------
  ------------------
 2963|      3|            {
 2964|      3|                return;
 2965|      3|            }
 2966|  9.13k|            auto iter = std::make_shared<cbor_mdarray_column_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2967|  9.13k|            typed_array_stack_.push_back(iter);
 2968|  9.13k|            if (!iter->done())
  ------------------
  |  Branch (2968:17): [True: 9.13k, False: 0]
  ------------------
 2969|  9.13k|            {
 2970|  9.13k|                iter->next(visitor, *this, ec);
 2971|  9.13k|            }
 2972|  9.13k|        }
 2973|  62.4k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2973:18): [True: 62.3k, False: 104]
  ------------------
 2974|  62.3k|        {
 2975|  62.3k|            std::size_t typed_array_count = typed_array_stack_.size();
 2976|  62.3k|            read_byte_string_from_source read(this);
 2977|  62.3k|            read_byte_string(read, visitor, ec);
 2978|  62.3k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  62.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.45k, False: 60.9k]
  |  |  ------------------
  ------------------
 2979|  1.45k|            {
 2980|  1.45k|                return;
 2981|  1.45k|            }
 2982|  60.9k|            if (typed_array_stack_.size() == typed_array_count)
  ------------------
  |  Branch (2982:17): [True: 30, False: 60.8k]
  ------------------
 2983|     30|            {
 2984|       |                // Byte string storage must be a typed array
 2985|     30|                ec = cbor_errc::bad_mdarray;
 2986|     30|                return;
 2987|     30|            }
 2988|  60.9k|        }
 2989|    104|        else
 2990|    104|        {
 2991|    104|            ec = cbor_errc::bad_mdarray;
 2992|    104|            return;
 2993|    104|        }
 2994|       |        // cursor case
 2995|   104k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12read_extentsERNS3_10error_codeE:
 2998|   104k|    {
 2999|   104k|        extents_.clear();
 3000|       |
 3001|   104k|        auto b = source_.peek();
 3002|   104k|        if (JSONCONS_UNLIKELY(b.eof))
  ------------------
  |  |   79|   104k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 104k]
  |  |  ------------------
  ------------------
 3003|      3|        {
 3004|      3|            ec = cbor_errc::unexpected_eof;
 3005|      3|            more_ = false;
 3006|      3|            return;
 3007|      3|        }
 3008|   104k|        if (get_major_type(b.value) != jsoncons::cbor::detail::cbor_major_type::array)
  ------------------
  |  Branch (3008:13): [True: 67, False: 104k]
  ------------------
 3009|     67|        {
 3010|     67|            ec = cbor_errc::bad_extents;
 3011|     67|            more_ = false;
 3012|     67|            return;
 3013|     67|        }
 3014|   104k|        uint8_t info = get_additional_information(b.value);
 3015|   104k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   190k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 104k]
  |  |  |  Branch (79:50): [True: 85.7k, False: 18.9k]
  |  |  |  Branch (79:50): [True: 0, False: 85.7k]
  |  |  ------------------
  ------------------
 3016|      0|        {
 3017|      0|            ec = cbor_errc::reserved_additional_info;
 3018|      0|            more_ = false;
 3019|      0|            return;
 3020|      0|        }
 3021|       |
 3022|   104k|        source_.ignore(1);
 3023|   104k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (3023:13): [True: 85.7k, False: 18.9k]
  ------------------
 3024|  85.7k|        {
 3025|  85.7k|             bool done = false;
 3026|  27.4M|             while (!done)
  ------------------
  |  Branch (3026:21): [True: 27.3M, False: 85.5k]
  ------------------
 3027|  27.3M|             {
 3028|  27.3M|                 auto c = source_.peek();
 3029|  27.3M|                 if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  27.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 75, False: 27.3M]
  |  |  ------------------
  ------------------
 3030|     75|                 {
 3031|     75|                     ec = cbor_errc::unexpected_eof;
 3032|     75|                     more_ = false;
 3033|     75|                     return;
 3034|     75|                 }
 3035|  27.3M|                 if (c.value == 0xff)
  ------------------
  |  Branch (3035:22): [True: 85.5k, False: 27.2M]
  ------------------
 3036|  85.5k|                 {
 3037|  85.5k|                     source_.ignore(1);
 3038|  85.5k|                     done = true;
 3039|  85.5k|                 }
 3040|  27.2M|                 else
 3041|  27.2M|                 {
 3042|  27.2M|                     source_.ignore(1);
 3043|  27.2M|                     std::size_t extent = read_size(get_additional_information(c.value), ec);
 3044|  27.2M|                     if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 142, False: 27.2M]
  |  |  ------------------
  ------------------
 3045|    142|                     {
 3046|    142|                         more_ = false;
 3047|    142|                         return;
 3048|    142|                     }
 3049|  27.2M|                     extents_.push_back(extent);
 3050|  27.2M|                 }
 3051|  27.3M|             }
 3052|  85.7k|        }
 3053|  18.9k|        else 
 3054|  18.9k|        {
 3055|  18.9k|            std::size_t size = read_size(info, ec);
 3056|  18.9k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 18.9k]
  |  |  ------------------
  ------------------
 3057|      0|            {
 3058|      0|                more_ = false;
 3059|      0|                return;
 3060|      0|            }
 3061|   372k|            for (std::size_t i = 0; more_ && i < size; ++i)
  ------------------
  |  Branch (3061:37): [True: 372k, False: 0]
  |  Branch (3061:46): [True: 353k, False: 18.8k]
  ------------------
 3062|   353k|            {
 3063|   353k|                uint8_t initial_byte;
 3064|   353k|                if (source_.read(&initial_byte, 1) == 0)
  ------------------
  |  Branch (3064:21): [True: 48, False: 353k]
  ------------------
 3065|     48|                {
 3066|     48|                    ec = cbor_errc::unexpected_eof;
 3067|     48|                    more_ = false;
 3068|     48|                    return;
 3069|     48|                }
 3070|   353k|                if (JSONCONS_UNLIKELY(get_major_type(initial_byte) != jsoncons::cbor::detail::cbor_major_type::unsigned_integer))
  ------------------
  |  |   79|   353k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 42, False: 353k]
  |  |  ------------------
  ------------------
 3071|     42|                {
 3072|     42|                    ec = cbor_errc::unknown_type;
 3073|     42|                    more_ = false;
 3074|     42|                    return;
 3075|     42|                }
 3076|   353k|                info = get_additional_information(initial_byte);
 3077|   353k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   353k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 9, False: 353k]
  |  |  |  Branch (79:50): [True: 9, False: 353k]
  |  |  |  Branch (79:50): [True: 9, False: 0]
  |  |  ------------------
  ------------------
 3078|      9|                {
 3079|      9|                    ec = cbor_errc::reserved_additional_info;
 3080|      9|                    more_ = false;
 3081|      9|                    return;
 3082|      9|                }
 3083|   353k|                std::size_t extent = read_size(info, ec);
 3084|   353k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   353k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 353k]
  |  |  ------------------
  ------------------
 3085|      0|                {
 3086|      0|                    more_ = false;
 3087|      0|                    return;
 3088|      0|                }
 3089|   353k|                extents_.push_back(extent);
 3090|   353k|            }
 3091|  18.9k|        }
 3092|   104k|        auto r = calculate_mdarray_size(extents_);
 3093|   104k|        if (!r || *r == 0)
  ------------------
  |  Branch (3093:13): [True: 71, False: 104k]
  |  Branch (3093:19): [True: 17, False: 104k]
  ------------------
 3094|     88|        {
 3095|     88|            ec = cbor_errc::bad_extents;
 3096|     88|            more_ = false;
 3097|     88|            return;
 3098|     88|        }
 3099|   104k|        mdarray_size_ = *r;
 3100|   104k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE29begin_classical_array_storageEhRNS3_10error_codeE:
 1118|  41.7k|    {
 1119|  41.7k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  41.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 41.7k]
  |  |  ------------------
  ------------------
 1120|      7|        {
 1121|      7|            ec = cbor_errc::max_nesting_depth_exceeded;
 1122|      7|            more_ = false;
 1123|      7|            return;
 1124|      7|        }
 1125|  41.7k|        bool pop_stringref_map_stack = false;
 1126|  41.7k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1126:13): [True: 5.41k, False: 36.3k]
  ------------------
 1127|  5.41k|        {
 1128|  5.41k|            stringref_map_stack_.emplace_back();
 1129|  5.41k|            other_tags_[stringref_namespace_tag] = false;
 1130|  5.41k|            pop_stringref_map_stack = true;
 1131|  5.41k|        }
 1132|  41.7k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1132:13): [True: 20.0k, False: 21.6k]
  ------------------
 1133|  20.0k|        {
 1134|  20.0k|            state_stack_.emplace_back(parse_mode::indefinite_array, 0, pop_stringref_map_stack);
 1135|  20.0k|        }
 1136|  21.6k|        else // definite length
 1137|  21.6k|        {
 1138|  21.6k|            std::size_t len = read_size(info, ec);
 1139|  21.6k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  21.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 21.6k]
  |  |  ------------------
  ------------------
 1140|      3|            {
 1141|      3|                return;
 1142|      3|            }
 1143|  21.6k|            state_stack_.emplace_back(parse_mode::array, len, pop_stringref_map_stack);
 1144|  21.6k|        }
 1145|  41.7k|        more_ = !cursor_mode_;
 1146|  41.7k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1055|  1.12M|    {
 1056|  1.12M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  1.12M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 43, False: 1.12M]
  |  |  ------------------
  ------------------
 1057|     43|        {
 1058|     43|            ec = cbor_errc::max_nesting_depth_exceeded;
 1059|     43|            more_ = false;
 1060|     43|            return;
 1061|     43|        } 
 1062|  1.12M|        semantic_tag tag = semantic_tag::none;
 1063|  1.12M|        bool pop_stringref_map_stack = false;
 1064|  1.12M|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1064:13): [True: 12.0k, False: 1.11M]
  ------------------
 1065|  12.0k|        {
 1066|  12.0k|            stringref_map_stack_.emplace_back();
 1067|  12.0k|            other_tags_[stringref_namespace_tag] = false;
 1068|  12.0k|            pop_stringref_map_stack = true;
 1069|  12.0k|        }
 1070|  1.12M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1070:13): [True: 204k, False: 923k]
  ------------------
 1071|   204k|        {
 1072|   204k|            state_stack_.emplace_back(parse_mode::indefinite_array,0,pop_stringref_map_stack);
 1073|   204k|            visitor.begin_array(tag, *this, ec);
 1074|   204k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   204k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 204k]
  |  |  ------------------
  ------------------
 1075|      0|            {
 1076|      0|                return;
 1077|      0|            }
 1078|   204k|        }
 1079|   923k|        else // definite length
 1080|   923k|        {
 1081|   923k|            std::size_t len = read_size(info, ec);
 1082|   923k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   923k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 69, False: 923k]
  |  |  ------------------
  ------------------
 1083|     69|            {
 1084|     69|                return;
 1085|     69|            }
 1086|   923k|            state_stack_.emplace_back(parse_mode::array,len,pop_stringref_map_stack);
 1087|   923k|            visitor.begin_array(len, tag, *this, ec);
 1088|   923k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   923k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 923k]
  |  |  ------------------
  ------------------
 1089|      0|            {
 1090|      0|                return;
 1091|      0|            }
 1092|   923k|        }
 1093|  1.12M|        more_ = !cursor_mode_;
 1094|  1.12M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1165|  31.0M|    {
 1166|  31.0M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  31.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 31, False: 31.0M]
  |  |  ------------------
  ------------------
 1167|     31|        {
 1168|     31|            ec = cbor_errc::max_nesting_depth_exceeded;
 1169|     31|            more_ = false;
 1170|     31|            return;
 1171|     31|        } 
 1172|  31.0M|        bool pop_stringref_map_stack = false;
 1173|  31.0M|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1173:13): [True: 18.9k, False: 31.0M]
  ------------------
 1174|  18.9k|        {
 1175|  18.9k|            stringref_map_stack_.emplace_back();
 1176|  18.9k|            other_tags_[stringref_namespace_tag] = false;
 1177|  18.9k|            pop_stringref_map_stack = true;
 1178|  18.9k|        }
 1179|  31.0M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1179:13): [True: 108k, False: 30.9M]
  ------------------
 1180|   108k|        {
 1181|   108k|            state_stack_.emplace_back(parse_mode::indefinite_map_key,0,pop_stringref_map_stack);
 1182|   108k|            visitor.begin_object(semantic_tag::none, *this, ec);
 1183|   108k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   108k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 108k]
  |  |  ------------------
  ------------------
 1184|      0|            {
 1185|      0|                return;
 1186|      0|            }
 1187|   108k|        }
 1188|  30.9M|        else // definite_length
 1189|  30.9M|        {
 1190|  30.9M|            std::size_t len = read_size(info, ec);
 1191|  30.9M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  30.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 28, False: 30.9M]
  |  |  ------------------
  ------------------
 1192|     28|            {
 1193|     28|                return;
 1194|     28|            }
 1195|  30.9M|            state_stack_.emplace_back(parse_mode::map_key,len,pop_stringref_map_stack);
 1196|  30.9M|            visitor.begin_object(len, semantic_tag::none, *this, ec);
 1197|  30.9M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  30.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 30.9M]
  |  |  ------------------
  ------------------
 1198|      0|            {
 1199|      0|                return;
 1200|      0|            }
 1201|  30.9M|        }
 1202|  31.0M|        more_ = !cursor_mode_;
 1203|  31.0M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1097|   714k|    {
 1098|   714k|        --nesting_depth_;
 1099|       |
 1100|   714k|        visitor.end_array(*this, ec);
 1101|   714k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   714k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 714k]
  |  |  ------------------
  ------------------
 1102|      0|        {
 1103|      0|            return;
 1104|      0|        }
 1105|   714k|        more_ = !cursor_mode_;
 1106|   714k|        if (level() == mark_level_)
  ------------------
  |  Branch (1106:13): [True: 0, False: 714k]
  ------------------
 1107|      0|        {
 1108|      0|            more_ = false;
 1109|      0|        }
 1110|   714k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1110:13): [True: 2.76k, False: 711k]
  ------------------
 1111|  2.76k|        {
 1112|  2.76k|            stringref_map_stack_.pop_back();
 1113|  2.76k|        }
 1114|   714k|        state_stack_.pop_back();
 1115|   714k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1206|  30.7M|    {
 1207|  30.7M|        --nesting_depth_;
 1208|  30.7M|        visitor.end_object(*this, ec);
 1209|  30.7M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  30.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 30.7M]
  |  |  ------------------
  ------------------
 1210|      0|        {
 1211|      0|            return;
 1212|      0|        }
 1213|  30.7M|        more_ = !cursor_mode_;
 1214|  30.7M|        if (level() == mark_level_)
  ------------------
  |  Branch (1214:13): [True: 0, False: 30.7M]
  ------------------
 1215|      0|        {
 1216|      0|            more_ = false;
 1217|      0|        }
 1218|  30.7M|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1218:13): [True: 6.93k, False: 30.7M]
  ------------------
 1219|  6.93k|        {
 1220|  6.93k|            stringref_map_stack_.pop_back();
 1221|  6.93k|        }
 1222|  30.7M|        state_stack_.pop_back();
 1223|  30.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_13basic_istreamIcNS3_11char_traitsIcEEEEEEOT_RKNS0_19cbor_decode_optionsERKS7_:
  336|  6.41k|       : alloc_(alloc),
  337|  6.41k|         source_(std::forward<Sourceable>(source)),
  338|  6.41k|         max_nesting_depth_(options.max_nesting_depth()),
  339|  6.41k|         bigfloat_precision_(options.bigfloat_precision()),
  340|  6.41k|         text_buffer_(alloc),
  341|  6.41k|         bytes_buffer_(alloc),
  342|  6.41k|         state_stack_(alloc),
  343|  6.41k|         stringref_map_stack_(alloc),
  344|  6.41k|         extents_(alloc)
  345|  6.41k|    {
  346|  6.41k|        state_stack_.emplace_back(parse_mode::root,0);
  347|  6.41k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RKNS0_19cbor_decode_optionsERKS7_:
  336|  6.41k|       : alloc_(alloc),
  337|  6.41k|         source_(std::forward<Sourceable>(source)),
  338|  6.41k|         max_nesting_depth_(options.max_nesting_depth()),
  339|  6.41k|         bigfloat_precision_(options.bigfloat_precision()),
  340|  6.41k|         text_buffer_(alloc),
  341|  6.41k|         bytes_buffer_(alloc),
  342|  6.41k|         state_stack_(alloc),
  343|  6.41k|         stringref_map_stack_(alloc),
  344|  6.41k|         extents_(alloc)
  345|  6.41k|    {
  346|  6.41k|        state_stack_.emplace_back(parse_mode::root,0);
  347|  6.41k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  362|  12.8k|    {
  363|  12.8k|        more_ = true;
  364|  12.8k|        done_ = false;
  365|  12.8k|        text_buffer_.clear();
  366|  12.8k|        bytes_buffer_.clear();
  367|  12.8k|        raw_tag_ = 0;
  368|  12.8k|        state_stack_.clear();
  369|  12.8k|        state_stack_.emplace_back(parse_mode::root,0);
  370|  12.8k|        stringref_map_stack_.clear();
  371|  12.8k|        nesting_depth_ = 0;
  372|  12.8k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEEC2IRNS_6nonstd4spanIKhLm18446744073709551615EEEEEOT_RKNS0_19cbor_decode_optionsERKS6_:
  336|  12.8k|       : alloc_(alloc),
  337|  12.8k|         source_(std::forward<Sourceable>(source)),
  338|  12.8k|         max_nesting_depth_(options.max_nesting_depth()),
  339|  12.8k|         bigfloat_precision_(options.bigfloat_precision()),
  340|  12.8k|         text_buffer_(alloc),
  341|  12.8k|         bytes_buffer_(alloc),
  342|  12.8k|         state_stack_(alloc),
  343|  12.8k|         stringref_map_stack_(alloc),
  344|  12.8k|         extents_(alloc)
  345|  12.8k|    {
  346|  12.8k|        state_stack_.emplace_back(parse_mode::root,0);
  347|  12.8k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE11cursor_modeEb:
  415|  25.3k|    {
  416|  25.3k|        cursor_mode_ = value;
  417|  25.3k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE4doneEv:
  435|  59.7M|    {
  436|  59.7M|        return done_;
  437|  59.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE10mark_levelEi:
  430|  12.4k|    {
  431|  12.4k|        mark_level_ = value;
  432|  12.4k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IS6_EEOT_RKNS0_19cbor_decode_optionsERKS7_:
  336|  6.41k|       : alloc_(alloc),
  337|  6.41k|         source_(std::forward<Sourceable>(source)),
  338|  6.41k|         max_nesting_depth_(options.max_nesting_depth()),
  339|  6.41k|         bigfloat_precision_(options.bigfloat_precision()),
  340|  6.41k|         text_buffer_(alloc),
  341|  6.41k|         bytes_buffer_(alloc),
  342|  6.41k|         state_stack_(alloc),
  343|  6.41k|         stringref_map_stack_(alloc),
  344|  6.41k|         extents_(alloc)
  345|  6.41k|    {
  346|  6.41k|        state_stack_.emplace_back(parse_mode::root,0);
  347|  6.41k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  435|  59.7M|    {
  436|  59.7M|        return done_;
  437|  59.7M|    }

_ZN8jsoncons4cbor17basic_cbor_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_13basic_istreamIcNS3_11char_traitsIcEEEEEEOT_RNS_18basic_json_visitorIcEERKNS0_19cbor_decode_optionsERKS7_:
   52|  6.41k|       : parser_(std::forward<Sourceable>(source), options, alloc),
   53|  6.41k|         adaptor_(visitor, alloc), visitor_(adaptor_)
   54|  6.41k|    {
   55|  6.41k|    }
_ZNK8jsoncons4cbor17basic_cbor_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4lineEv:
   98|  5.24k|    {
   99|  5.24k|        return parser_.line();
  100|  5.24k|    }
_ZNK8jsoncons4cbor17basic_cbor_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE6columnEv:
  103|  5.24k|    {
  104|  5.24k|        return parser_.column();
  105|  5.24k|    }
_ZN8jsoncons4cbor17basic_cbor_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RNS_18basic_json_visitorIcEERKNS0_19cbor_decode_optionsERKS7_:
   52|  6.41k|       : parser_(std::forward<Sourceable>(source), options, alloc),
   53|  6.41k|         adaptor_(visitor, alloc), visitor_(adaptor_)
   54|  6.41k|    {
   55|  6.41k|    }
_ZN8jsoncons4cbor17basic_cbor_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4readERNS3_10error_codeE:
   88|  12.8k|    {
   89|  12.8k|        parser_.reset();
   90|  12.8k|        parser_.parse(visitor_, ec);
   91|  12.8k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 10.4k, False: 2.33k]
  |  |  ------------------
  ------------------
   92|  10.4k|        {
   93|  10.4k|            return;
   94|  10.4k|        }
   95|  12.8k|    }

_ZN8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  9.04k|        : data_(std::move(data), alloc), 
  200|  9.04k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  9.04k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  9.04k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  9.04k|    {
  204|  9.04k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  9.04k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 4.23k, False: 4.80k]
  ------------------
  206|  4.23k|        {
  207|  4.23k|            std::size_t stride = 1;
  208|  4.23k|            const size_t num_extents = extents.size();
  209|  12.8k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 8.59k, False: 4.23k]
  ------------------
  210|  8.59k|            {
  211|  8.59k|                strides[i] = stride;
  212|  8.59k|                stride *= extents[i];
  213|  8.59k|            }
  214|  4.23k|        }
  215|  4.80k|        else
  216|  4.80k|        {
  217|  4.80k|            std::size_t stride = 1;
  218|  4.80k|            const size_t num_extents = extents.size();
  219|  25.3k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 20.5k, False: 4.80k]
  ------------------
  220|  20.5k|            {
  221|  20.5k|                strides[num_extents-i-1] = stride;
  222|  20.5k|                stride *= extents[num_extents-i-1];
  223|  20.5k|            }
  224|  4.80k|        }
  225|  38.1k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 29.1k, False: 9.04k]
  ------------------
  226|  29.1k|        {
  227|  29.1k|            dimensions_[i].extent = extents[i];
  228|  29.1k|            dimensions_[i].stride = strides[i];
  229|  29.1k|            dimensions_[i].index = 0;
  230|  29.1k|            dimensions_[i].end = strides[i]*extents[i];
  231|  29.1k|        }
  232|  9.04k|    }
_ZN8jsoncons4cbor20typed_array_iteratorD2Ev:
   43|   591k|    virtual ~typed_array_iterator() = default;
_ZNK8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|   384k|    {
  261|   384k|        return done_;
  262|   384k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   201k|    {
  267|   201k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   201k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 201k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|   201k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 44.3k, False: 156k]
  ------------------
  270|  44.3k|        {
  271|  44.3k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 9.04k, False: 35.3k]
  ------------------
  272|  9.04k|            {
  273|  9.04k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  9.04k|                first_ = false;
  275|  9.04k|                return;
  276|  9.04k|            }
  277|  35.3k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 9.04k, False: 26.3k]
  ------------------
  278|  9.04k|            {
  279|  9.04k|                visitor.end_array(context, ec);
  280|  9.04k|                done_ = true;
  281|  9.04k|                return;
  282|  9.04k|            }
  283|  35.3k|        }
  284|   183k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 106k, False: 76.9k]
  |  Branch (284:44): [True: 65.6k, False: 40.6k]
  ------------------
  285|  65.6k|        {
  286|  65.6k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  65.6k|            ++dim_;
  288|  65.6k|            return;
  289|  65.6k|        }
  290|   117k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 51.9k, False: 65.6k]
  ------------------
  291|  51.9k|        {
  292|  51.9k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  51.9k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  51.9k|            ++count_;
  295|  51.9k|            return;
  296|  51.9k|        }
  297|  65.6k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 65.6k, False: 0]
  ------------------
  298|  65.6k|        {
  299|  65.6k|            visitor.end_array(context, ec);
  300|  65.6k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 65.6k, False: 0]
  ------------------
  301|  65.6k|            {
  302|  65.6k|                --dim_;
  303|  65.6k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  65.6k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 17.2k, False: 48.3k]
  ------------------
  305|  17.2k|                {
  306|  62.8k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 45.5k, False: 17.2k]
  ------------------
  307|  45.5k|                    {
  308|  45.5k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  45.5k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  45.5k|                    }
  311|  17.2k|                }
  312|  65.6k|            }
  313|  65.6k|        }
  314|  65.6k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIhEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   250k|    {
   73|   250k|        visitor.uint64_value(val, tag, context, ec);
   74|   250k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  33.2k|        : data_(std::move(data), alloc), 
  107|  33.2k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  33.2k|          array_tag_(array_tag), 
  109|  33.2k|          extent_(span_.size()), 
  110|  33.2k|          tag_(tag), 
  111|  33.2k|          func_(Func{})
  112|  33.2k|    {
  113|  33.2k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   462k|    {
  142|   462k|        return done_;
  143|   462k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   264k|    {
  148|   264k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   264k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 33.2k, False: 231k]
  |  |  ------------------
  ------------------
  149|  33.2k|        {
  150|  33.2k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  33.2k|            first_ = false;
  152|  33.2k|        }
  153|   231k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   231k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 198k, False: 33.2k]
  |  |  ------------------
  ------------------
  154|   198k|        {
  155|   198k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   198k|            ++index_;
  157|   198k|        }
  158|  33.2k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 33.2k, False: 0]
  ------------------
  159|  33.2k|        {
  160|  33.2k|            visitor.end_array(context, ec);
  161|  33.2k|            done_ = true;
  162|  33.2k|        }
  163|   264k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  2.79k|        : data_(std::move(data), alloc), 
  200|  2.79k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  2.79k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  2.79k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  2.79k|    {
  204|  2.79k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  2.79k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 300, False: 2.49k]
  ------------------
  206|    300|        {
  207|    300|            std::size_t stride = 1;
  208|    300|            const size_t num_extents = extents.size();
  209|  8.62k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 8.32k, False: 300]
  ------------------
  210|  8.32k|            {
  211|  8.32k|                strides[i] = stride;
  212|  8.32k|                stride *= extents[i];
  213|  8.32k|            }
  214|    300|        }
  215|  2.49k|        else
  216|  2.49k|        {
  217|  2.49k|            std::size_t stride = 1;
  218|  2.49k|            const size_t num_extents = extents.size();
  219|   566k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 563k, False: 2.49k]
  ------------------
  220|   563k|            {
  221|   563k|                strides[num_extents-i-1] = stride;
  222|   563k|                stride *= extents[num_extents-i-1];
  223|   563k|            }
  224|  2.49k|        }
  225|   574k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 571k, False: 2.79k]
  ------------------
  226|   571k|        {
  227|   571k|            dimensions_[i].extent = extents[i];
  228|   571k|            dimensions_[i].stride = strides[i];
  229|   571k|            dimensions_[i].index = 0;
  230|   571k|            dimensions_[i].end = strides[i]*extents[i];
  231|   571k|        }
  232|  2.79k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  6.78M|    {
  261|  6.78M|        return done_;
  262|  6.78M|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  3.39M|    {
  267|  3.39M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  3.39M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 3.39M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  3.39M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 13.1k, False: 3.38M]
  ------------------
  270|  13.1k|        {
  271|  13.1k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 2.79k, False: 10.3k]
  ------------------
  272|  2.79k|            {
  273|  2.79k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  2.79k|                first_ = false;
  275|  2.79k|                return;
  276|  2.79k|            }
  277|  10.3k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 2.79k, False: 7.55k]
  ------------------
  278|  2.79k|            {
  279|  2.79k|                visitor.end_array(context, ec);
  280|  2.79k|                done_ = true;
  281|  2.79k|                return;
  282|  2.79k|            }
  283|  10.3k|        }
  284|  3.38M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 3.37M, False: 10.8k]
  |  Branch (284:44): [True: 1.68M, False: 1.68M]
  ------------------
  285|  1.68M|        {
  286|  1.68M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  1.68M|            ++dim_;
  288|  1.68M|            return;
  289|  1.68M|        }
  290|  1.69M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 8.76k, False: 1.68M]
  ------------------
  291|  8.76k|        {
  292|  8.76k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  8.76k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  8.76k|            ++count_;
  295|  8.76k|            return;
  296|  8.76k|        }
  297|  1.68M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 1.68M, False: 0]
  ------------------
  298|  1.68M|        {
  299|  1.68M|            visitor.end_array(context, ec);
  300|  1.68M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 1.68M, False: 0]
  ------------------
  301|  1.68M|            {
  302|  1.68M|                --dim_;
  303|  1.68M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  1.68M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 1.28k, False: 1.68M]
  ------------------
  305|  1.28k|                {
  306|  1.12M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 1.12M, False: 1.28k]
  ------------------
  307|  1.12M|                    {
  308|  1.12M|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  1.12M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  1.12M|                    }
  311|  1.28k|                }
  312|  1.68M|            }
  313|  1.68M|        }
  314|  1.68M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueItEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   263k|    {
   73|   263k|        visitor.uint64_value(val, tag, context, ec);
   74|   263k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  36.9k|        : data_(std::move(data), alloc), 
  107|  36.9k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  36.9k|          array_tag_(array_tag), 
  109|  36.9k|          extent_(span_.size()), 
  110|  36.9k|          tag_(tag), 
  111|  36.9k|          func_(Func{})
  112|  36.9k|    {
  113|  36.9k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   583k|    {
  142|   583k|        return done_;
  143|   583k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   328k|    {
  148|   328k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   328k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 36.9k, False: 291k]
  |  |  ------------------
  ------------------
  149|  36.9k|        {
  150|  36.9k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  36.9k|            first_ = false;
  152|  36.9k|        }
  153|   291k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   291k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 254k, False: 36.9k]
  |  |  ------------------
  ------------------
  154|   254k|        {
  155|   254k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   254k|            ++index_;
  157|   254k|        }
  158|  36.9k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 36.9k, False: 0]
  ------------------
  159|  36.9k|        {
  160|  36.9k|            visitor.end_array(context, ec);
  161|  36.9k|            done_ = true;
  162|  36.9k|        }
  163|   328k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  5.14k|        : data_(std::move(data), alloc), 
  200|  5.14k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  5.14k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  5.14k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  5.14k|    {
  204|  5.14k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  5.14k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 2.92k, False: 2.21k]
  ------------------
  206|  2.92k|        {
  207|  2.92k|            std::size_t stride = 1;
  208|  2.92k|            const size_t num_extents = extents.size();
  209|  5.16M|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 5.15M, False: 2.92k]
  ------------------
  210|  5.15M|            {
  211|  5.15M|                strides[i] = stride;
  212|  5.15M|                stride *= extents[i];
  213|  5.15M|            }
  214|  2.92k|        }
  215|  2.21k|        else
  216|  2.21k|        {
  217|  2.21k|            std::size_t stride = 1;
  218|  2.21k|            const size_t num_extents = extents.size();
  219|  25.6k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 23.4k, False: 2.21k]
  ------------------
  220|  23.4k|            {
  221|  23.4k|                strides[num_extents-i-1] = stride;
  222|  23.4k|                stride *= extents[num_extents-i-1];
  223|  23.4k|            }
  224|  2.21k|        }
  225|  5.18M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 5.18M, False: 5.14k]
  ------------------
  226|  5.18M|        {
  227|  5.18M|            dimensions_[i].extent = extents[i];
  228|  5.18M|            dimensions_[i].stride = strides[i];
  229|  5.18M|            dimensions_[i].index = 0;
  230|  5.18M|            dimensions_[i].end = strides[i]*extents[i];
  231|  5.18M|        }
  232|  5.14k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  20.8M|    {
  261|  20.8M|        return done_;
  262|  20.8M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  10.4M|    {
  267|  10.4M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  10.4M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 10.4M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  10.4M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 17.5k, False: 10.3M]
  ------------------
  270|  17.5k|        {
  271|  17.5k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 5.14k, False: 12.4k]
  ------------------
  272|  5.14k|            {
  273|  5.14k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  5.14k|                first_ = false;
  275|  5.14k|                return;
  276|  5.14k|            }
  277|  12.4k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 5.14k, False: 7.26k]
  ------------------
  278|  5.14k|            {
  279|  5.14k|                visitor.end_array(context, ec);
  280|  5.14k|                done_ = true;
  281|  5.14k|                return;
  282|  5.14k|            }
  283|  12.4k|        }
  284|  10.4M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 10.3M, False: 13.9k]
  |  Branch (284:44): [True: 5.19M, False: 5.19M]
  ------------------
  285|  5.19M|        {
  286|  5.19M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  5.19M|            ++dim_;
  288|  5.19M|            return;
  289|  5.19M|        }
  290|  5.20M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 7.31k, False: 5.19M]
  ------------------
  291|  7.31k|        {
  292|  7.31k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  7.31k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  7.31k|            ++count_;
  295|  7.31k|            return;
  296|  7.31k|        }
  297|  5.19M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 5.19M, False: 0]
  ------------------
  298|  5.19M|        {
  299|  5.19M|            visitor.end_array(context, ec);
  300|  5.19M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 5.19M, False: 0]
  ------------------
  301|  5.19M|            {
  302|  5.19M|                --dim_;
  303|  5.19M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  5.19M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 2.17k, False: 5.19M]
  ------------------
  305|  2.17k|                {
  306|  23.3k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 21.1k, False: 2.17k]
  ------------------
  307|  21.1k|                    {
  308|  21.1k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  21.1k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  21.1k|                    }
  311|  2.17k|                }
  312|  5.19M|            }
  313|  5.19M|        }
  314|  5.19M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIjEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|  49.1k|    {
   73|  49.1k|        visitor.uint64_value(val, tag, context, ec);
   74|  49.1k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  21.7k|        : data_(std::move(data), alloc), 
  107|  21.7k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  21.7k|          array_tag_(array_tag), 
  109|  21.7k|          extent_(span_.size()), 
  110|  21.7k|          tag_(tag), 
  111|  21.7k|          func_(Func{})
  112|  21.7k|    {
  113|  21.7k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   127k|    {
  142|   127k|        return done_;
  143|   127k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  85.3k|    {
  148|  85.3k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  85.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 21.7k, False: 63.5k]
  |  |  ------------------
  ------------------
  149|  21.7k|        {
  150|  21.7k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  21.7k|            first_ = false;
  152|  21.7k|        }
  153|  63.5k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  63.5k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 41.8k, False: 21.7k]
  |  |  ------------------
  ------------------
  154|  41.8k|        {
  155|  41.8k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  41.8k|            ++index_;
  157|  41.8k|        }
  158|  21.7k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 21.7k, False: 0]
  ------------------
  159|  21.7k|        {
  160|  21.7k|            visitor.end_array(context, ec);
  161|  21.7k|            done_ = true;
  162|  21.7k|        }
  163|  85.3k|    }
_ZN8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  4.31k|        : data_(std::move(data), alloc), 
  200|  4.31k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  4.31k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  4.31k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  4.31k|    {
  204|  4.31k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  4.31k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 241, False: 4.07k]
  ------------------
  206|    241|        {
  207|    241|            std::size_t stride = 1;
  208|    241|            const size_t num_extents = extents.size();
  209|  3.32k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 3.08k, False: 241]
  ------------------
  210|  3.08k|            {
  211|  3.08k|                strides[i] = stride;
  212|  3.08k|                stride *= extents[i];
  213|  3.08k|            }
  214|    241|        }
  215|  4.07k|        else
  216|  4.07k|        {
  217|  4.07k|            std::size_t stride = 1;
  218|  4.07k|            const size_t num_extents = extents.size();
  219|  3.69M|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 3.69M, False: 4.07k]
  ------------------
  220|  3.69M|            {
  221|  3.69M|                strides[num_extents-i-1] = stride;
  222|  3.69M|                stride *= extents[num_extents-i-1];
  223|  3.69M|            }
  224|  4.07k|        }
  225|  3.70M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 3.69M, False: 4.31k]
  ------------------
  226|  3.69M|        {
  227|  3.69M|            dimensions_[i].extent = extents[i];
  228|  3.69M|            dimensions_[i].stride = strides[i];
  229|  3.69M|            dimensions_[i].index = 0;
  230|  3.69M|            dimensions_[i].end = strides[i]*extents[i];
  231|  3.69M|        }
  232|  4.31k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  14.8M|    {
  261|  14.8M|        return done_;
  262|  14.8M|    }
_ZN8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  7.44M|    {
  267|  7.44M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  7.44M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 7.44M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  7.44M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 14.6k, False: 7.42M]
  ------------------
  270|  14.6k|        {
  271|  14.6k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 4.31k, False: 10.3k]
  ------------------
  272|  4.31k|            {
  273|  4.31k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  4.31k|                first_ = false;
  275|  4.31k|                return;
  276|  4.31k|            }
  277|  10.3k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 4.31k, False: 6.06k]
  ------------------
  278|  4.31k|            {
  279|  4.31k|                visitor.end_array(context, ec);
  280|  4.31k|                done_ = true;
  281|  4.31k|                return;
  282|  4.31k|            }
  283|  10.3k|        }
  284|  7.43M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 7.42M, False: 12.1k]
  |  Branch (284:44): [True: 3.71M, False: 3.70M]
  ------------------
  285|  3.71M|        {
  286|  3.71M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  3.71M|            ++dim_;
  288|  3.71M|            return;
  289|  3.71M|        }
  290|  3.71M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 6.07k, False: 3.71M]
  ------------------
  291|  6.07k|        {
  292|  6.07k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  6.07k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  6.07k|            ++count_;
  295|  6.07k|            return;
  296|  6.07k|        }
  297|  3.71M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 3.71M, False: 0]
  ------------------
  298|  3.71M|        {
  299|  3.71M|            visitor.end_array(context, ec);
  300|  3.71M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 3.71M, False: 0]
  ------------------
  301|  3.71M|            {
  302|  3.71M|                --dim_;
  303|  3.71M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  3.71M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 1.76k, False: 3.71M]
  ------------------
  305|  1.76k|                {
  306|  21.4k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 19.7k, False: 1.76k]
  ------------------
  307|  19.7k|                    {
  308|  19.7k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  19.7k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  19.7k|                    }
  311|  1.76k|                }
  312|  3.71M|            }
  313|  3.71M|        }
  314|  3.71M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueImEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|  96.8k|    {
   73|  96.8k|        visitor.uint64_value(val, tag, context, ec);
   74|  96.8k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  78.5k|        : data_(std::move(data), alloc), 
  107|  78.5k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  78.5k|          array_tag_(array_tag), 
  109|  78.5k|          extent_(span_.size()), 
  110|  78.5k|          tag_(tag), 
  111|  78.5k|          func_(Func{})
  112|  78.5k|    {
  113|  78.5k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   338k|    {
  142|   338k|        return done_;
  143|   338k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   247k|    {
  148|   247k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   247k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 78.5k, False: 169k]
  |  |  ------------------
  ------------------
  149|  78.5k|        {
  150|  78.5k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  78.5k|            first_ = false;
  152|  78.5k|        }
  153|   169k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   169k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 90.7k, False: 78.5k]
  |  |  ------------------
  ------------------
  154|  90.7k|        {
  155|  90.7k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  90.7k|            ++index_;
  157|  90.7k|        }
  158|  78.5k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 78.5k, False: 0]
  ------------------
  159|  78.5k|        {
  160|  78.5k|            visitor.end_array(context, ec);
  161|  78.5k|            done_ = true;
  162|  78.5k|        }
  163|   247k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  3.58k|        : data_(std::move(data), alloc), 
  200|  3.58k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  3.58k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  3.58k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  3.58k|    {
  204|  3.58k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  3.58k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 276, False: 3.30k]
  ------------------
  206|    276|        {
  207|    276|            std::size_t stride = 1;
  208|    276|            const size_t num_extents = extents.size();
  209|  1.06M|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 1.06M, False: 276]
  ------------------
  210|  1.06M|            {
  211|  1.06M|                strides[i] = stride;
  212|  1.06M|                stride *= extents[i];
  213|  1.06M|            }
  214|    276|        }
  215|  3.30k|        else
  216|  3.30k|        {
  217|  3.30k|            std::size_t stride = 1;
  218|  3.30k|            const size_t num_extents = extents.size();
  219|  19.3k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 15.9k, False: 3.30k]
  ------------------
  220|  15.9k|            {
  221|  15.9k|                strides[num_extents-i-1] = stride;
  222|  15.9k|                stride *= extents[num_extents-i-1];
  223|  15.9k|            }
  224|  3.30k|        }
  225|  1.08M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.08M, False: 3.58k]
  ------------------
  226|  1.08M|        {
  227|  1.08M|            dimensions_[i].extent = extents[i];
  228|  1.08M|            dimensions_[i].stride = strides[i];
  229|  1.08M|            dimensions_[i].index = 0;
  230|  1.08M|            dimensions_[i].end = strides[i]*extents[i];
  231|  1.08M|        }
  232|  3.58k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  17.1M|    {
  261|  17.1M|        return done_;
  262|  17.1M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  8.56M|    {
  267|  8.56M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  8.56M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 8.56M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  8.56M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 28.0k, False: 8.53M]
  ------------------
  270|  28.0k|        {
  271|  28.0k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 3.58k, False: 24.4k]
  ------------------
  272|  3.58k|            {
  273|  3.58k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  3.58k|                first_ = false;
  275|  3.58k|                return;
  276|  3.58k|            }
  277|  24.4k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 3.58k, False: 20.8k]
  ------------------
  278|  3.58k|            {
  279|  3.58k|                visitor.end_array(context, ec);
  280|  3.58k|                done_ = true;
  281|  3.58k|                return;
  282|  3.58k|            }
  283|  24.4k|        }
  284|  8.55M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 8.51M, False: 45.6k]
  |  Branch (284:44): [True: 4.26M, False: 4.24M]
  ------------------
  285|  4.26M|        {
  286|  4.26M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  4.26M|            ++dim_;
  288|  4.26M|            return;
  289|  4.26M|        }
  290|  4.29M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 23.4k, False: 4.26M]
  ------------------
  291|  23.4k|        {
  292|  23.4k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  23.4k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  23.4k|            ++count_;
  295|  23.4k|            return;
  296|  23.4k|        }
  297|  4.26M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 4.26M, False: 0]
  ------------------
  298|  4.26M|        {
  299|  4.26M|            visitor.end_array(context, ec);
  300|  4.26M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 4.26M, False: 0]
  ------------------
  301|  4.26M|            {
  302|  4.26M|                --dim_;
  303|  4.26M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  4.26M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 18.5k, False: 4.24M]
  ------------------
  305|  18.5k|                {
  306|  3.20M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 3.18M, False: 18.5k]
  ------------------
  307|  3.18M|                    {
  308|  3.18M|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  3.18M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  3.18M|                    }
  311|  18.5k|                }
  312|  4.26M|            }
  313|  4.26M|        }
  314|  4.26M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIaEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|   728k|    {
   65|   728k|        visitor.int64_value(val, tag, context, ec);
   66|   728k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  12.9k|        : data_(std::move(data), alloc), 
  107|  12.9k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  12.9k|          array_tag_(array_tag), 
  109|  12.9k|          extent_(span_.size()), 
  110|  12.9k|          tag_(tag), 
  111|  12.9k|          func_(Func{})
  112|  12.9k|    {
  113|  12.9k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  1.43M|    {
  142|  1.43M|        return done_;
  143|  1.43M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   730k|    {
  148|   730k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   730k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12.9k, False: 717k]
  |  |  ------------------
  ------------------
  149|  12.9k|        {
  150|  12.9k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  12.9k|            first_ = false;
  152|  12.9k|        }
  153|   717k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   717k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 704k, False: 12.9k]
  |  |  ------------------
  ------------------
  154|   704k|        {
  155|   704k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   704k|            ++index_;
  157|   704k|        }
  158|  12.9k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 12.9k, False: 0]
  ------------------
  159|  12.9k|        {
  160|  12.9k|            visitor.end_array(context, ec);
  161|  12.9k|            done_ = true;
  162|  12.9k|        }
  163|   730k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  5.59k|        : data_(std::move(data), alloc), 
  200|  5.59k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  5.59k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  5.59k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  5.59k|    {
  204|  5.59k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  5.59k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 1.13k, False: 4.45k]
  ------------------
  206|  1.13k|        {
  207|  1.13k|            std::size_t stride = 1;
  208|  1.13k|            const size_t num_extents = extents.size();
  209|  6.18k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 5.04k, False: 1.13k]
  ------------------
  210|  5.04k|            {
  211|  5.04k|                strides[i] = stride;
  212|  5.04k|                stride *= extents[i];
  213|  5.04k|            }
  214|  1.13k|        }
  215|  4.45k|        else
  216|  4.45k|        {
  217|  4.45k|            std::size_t stride = 1;
  218|  4.45k|            const size_t num_extents = extents.size();
  219|  13.1k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 8.67k, False: 4.45k]
  ------------------
  220|  8.67k|            {
  221|  8.67k|                strides[num_extents-i-1] = stride;
  222|  8.67k|                stride *= extents[num_extents-i-1];
  223|  8.67k|            }
  224|  4.45k|        }
  225|  19.3k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 13.7k, False: 5.59k]
  ------------------
  226|  13.7k|        {
  227|  13.7k|            dimensions_[i].extent = extents[i];
  228|  13.7k|            dimensions_[i].stride = strides[i];
  229|  13.7k|            dimensions_[i].index = 0;
  230|  13.7k|            dimensions_[i].end = strides[i]*extents[i];
  231|  13.7k|        }
  232|  5.59k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|   113k|    {
  261|   113k|        return done_;
  262|   113k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  62.5k|    {
  267|  62.5k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  62.5k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 62.5k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  62.5k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 25.7k, False: 36.8k]
  ------------------
  270|  25.7k|        {
  271|  25.7k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 5.59k, False: 20.1k]
  ------------------
  272|  5.59k|            {
  273|  5.59k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  5.59k|                first_ = false;
  275|  5.59k|                return;
  276|  5.59k|            }
  277|  20.1k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 5.59k, False: 14.5k]
  ------------------
  278|  5.59k|            {
  279|  5.59k|                visitor.end_array(context, ec);
  280|  5.59k|                done_ = true;
  281|  5.59k|                return;
  282|  5.59k|            }
  283|  20.1k|        }
  284|  51.4k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 19.3k, False: 32.0k]
  |  Branch (284:44): [True: 15.1k, False: 4.20k]
  ------------------
  285|  15.1k|        {
  286|  15.1k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  15.1k|            ++dim_;
  288|  15.1k|            return;
  289|  15.1k|        }
  290|  36.2k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 21.0k, False: 15.1k]
  ------------------
  291|  21.0k|        {
  292|  21.0k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  21.0k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  21.0k|            ++count_;
  295|  21.0k|            return;
  296|  21.0k|        }
  297|  15.1k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 15.1k, False: 0]
  ------------------
  298|  15.1k|        {
  299|  15.1k|            visitor.end_array(context, ec);
  300|  15.1k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 15.1k, False: 0]
  ------------------
  301|  15.1k|            {
  302|  15.1k|                --dim_;
  303|  15.1k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  15.1k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 6.57k, False: 8.59k]
  ------------------
  305|  6.57k|                {
  306|  13.6k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 7.03k, False: 6.57k]
  ------------------
  307|  7.03k|                    {
  308|  7.03k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  7.03k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  7.03k|                    }
  311|  6.57k|                }
  312|  15.1k|            }
  313|  15.1k|        }
  314|  15.1k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIsEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|   112k|    {
   65|   112k|        visitor.int64_value(val, tag, context, ec);
   66|   112k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  22.6k|        : data_(std::move(data), alloc), 
  107|  22.6k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  22.6k|          array_tag_(array_tag), 
  109|  22.6k|          extent_(span_.size()), 
  110|  22.6k|          tag_(tag), 
  111|  22.6k|          func_(Func{})
  112|  22.6k|    {
  113|  22.6k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   227k|    {
  142|   227k|        return done_;
  143|   227k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   136k|    {
  148|   136k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   136k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 22.6k, False: 113k]
  |  |  ------------------
  ------------------
  149|  22.6k|        {
  150|  22.6k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  22.6k|            first_ = false;
  152|  22.6k|        }
  153|   113k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   113k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 90.9k, False: 22.6k]
  |  |  ------------------
  ------------------
  154|  90.9k|        {
  155|  90.9k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  90.9k|            ++index_;
  157|  90.9k|        }
  158|  22.6k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 22.6k, False: 0]
  ------------------
  159|  22.6k|        {
  160|  22.6k|            visitor.end_array(context, ec);
  161|  22.6k|            done_ = true;
  162|  22.6k|        }
  163|   136k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  2.90k|        : data_(std::move(data), alloc), 
  200|  2.90k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  2.90k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  2.90k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  2.90k|    {
  204|  2.90k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  2.90k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 228, False: 2.67k]
  ------------------
  206|    228|        {
  207|    228|            std::size_t stride = 1;
  208|    228|            const size_t num_extents = extents.size();
  209|  1.70k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 1.47k, False: 228]
  ------------------
  210|  1.47k|            {
  211|  1.47k|                strides[i] = stride;
  212|  1.47k|                stride *= extents[i];
  213|  1.47k|            }
  214|    228|        }
  215|  2.67k|        else
  216|  2.67k|        {
  217|  2.67k|            std::size_t stride = 1;
  218|  2.67k|            const size_t num_extents = extents.size();
  219|  1.07M|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 1.07M, False: 2.67k]
  ------------------
  220|  1.07M|            {
  221|  1.07M|                strides[num_extents-i-1] = stride;
  222|  1.07M|                stride *= extents[num_extents-i-1];
  223|  1.07M|            }
  224|  2.67k|        }
  225|  1.07M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.07M, False: 2.90k]
  ------------------
  226|  1.07M|        {
  227|  1.07M|            dimensions_[i].extent = extents[i];
  228|  1.07M|            dimensions_[i].stride = strides[i];
  229|  1.07M|            dimensions_[i].index = 0;
  230|  1.07M|            dimensions_[i].end = strides[i]*extents[i];
  231|  1.07M|        }
  232|  2.90k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  4.31M|    {
  261|  4.31M|        return done_;
  262|  4.31M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  2.16M|    {
  267|  2.16M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  2.16M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 2.16M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  2.16M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 9.07k, False: 2.15M]
  ------------------
  270|  9.07k|        {
  271|  9.07k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 2.90k, False: 6.16k]
  ------------------
  272|  2.90k|            {
  273|  2.90k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  2.90k|                first_ = false;
  275|  2.90k|                return;
  276|  2.90k|            }
  277|  6.16k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 2.90k, False: 3.26k]
  ------------------
  278|  2.90k|            {
  279|  2.90k|                visitor.end_array(context, ec);
  280|  2.90k|                done_ = true;
  281|  2.90k|                return;
  282|  2.90k|            }
  283|  6.16k|        }
  284|  2.15M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 2.14M, False: 6.53k]
  |  Branch (284:44): [True: 1.07M, False: 1.07M]
  ------------------
  285|  1.07M|        {
  286|  1.07M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  1.07M|            ++dim_;
  288|  1.07M|            return;
  289|  1.07M|        }
  290|  1.07M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 3.27k, False: 1.07M]
  ------------------
  291|  3.27k|        {
  292|  3.27k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  3.27k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  3.27k|            ++count_;
  295|  3.27k|            return;
  296|  3.27k|        }
  297|  1.07M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 1.07M, False: 0]
  ------------------
  298|  1.07M|        {
  299|  1.07M|            visitor.end_array(context, ec);
  300|  1.07M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 1.07M, False: 0]
  ------------------
  301|  1.07M|            {
  302|  1.07M|                --dim_;
  303|  1.07M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  1.07M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 368, False: 1.07M]
  ------------------
  305|    368|                {
  306|  3.93k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 3.56k, False: 368]
  ------------------
  307|  3.56k|                    {
  308|  3.56k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  3.56k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  3.56k|                    }
  311|    368|                }
  312|  1.07M|            }
  313|  1.07M|        }
  314|  1.07M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIiEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|   154k|    {
   65|   154k|        visitor.int64_value(val, tag, context, ec);
   66|   154k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|   106k|        : data_(std::move(data), alloc), 
  107|   106k|          span_(typed_array_cast<ValueType>(data_)), 
  108|   106k|          array_tag_(array_tag), 
  109|   106k|          extent_(span_.size()), 
  110|   106k|          tag_(tag), 
  111|   106k|          func_(Func{})
  112|   106k|    {
  113|   106k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   515k|    {
  142|   515k|        return done_;
  143|   515k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   364k|    {
  148|   364k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   364k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 106k, False: 257k]
  |  |  ------------------
  ------------------
  149|   106k|        {
  150|   106k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|   106k|            first_ = false;
  152|   106k|        }
  153|   257k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   257k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 151k, False: 106k]
  |  |  ------------------
  ------------------
  154|   151k|        {
  155|   151k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   151k|            ++index_;
  157|   151k|        }
  158|   106k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 106k, False: 0]
  ------------------
  159|   106k|        {
  160|   106k|            visitor.end_array(context, ec);
  161|   106k|            done_ = true;
  162|   106k|        }
  163|   364k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  5.03k|        : data_(std::move(data), alloc), 
  200|  5.03k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  5.03k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  5.03k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  5.03k|    {
  204|  5.03k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  5.03k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 214, False: 4.82k]
  ------------------
  206|    214|        {
  207|    214|            std::size_t stride = 1;
  208|    214|            const size_t num_extents = extents.size();
  209|  3.21M|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 3.21M, False: 214]
  ------------------
  210|  3.21M|            {
  211|  3.21M|                strides[i] = stride;
  212|  3.21M|                stride *= extents[i];
  213|  3.21M|            }
  214|    214|        }
  215|  4.82k|        else
  216|  4.82k|        {
  217|  4.82k|            std::size_t stride = 1;
  218|  4.82k|            const size_t num_extents = extents.size();
  219|  41.2k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 36.4k, False: 4.82k]
  ------------------
  220|  36.4k|            {
  221|  36.4k|                strides[num_extents-i-1] = stride;
  222|  36.4k|                stride *= extents[num_extents-i-1];
  223|  36.4k|            }
  224|  4.82k|        }
  225|  3.25M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 3.25M, False: 5.03k]
  ------------------
  226|  3.25M|        {
  227|  3.25M|            dimensions_[i].extent = extents[i];
  228|  3.25M|            dimensions_[i].stride = strides[i];
  229|  3.25M|            dimensions_[i].index = 0;
  230|  3.25M|            dimensions_[i].end = strides[i]*extents[i];
  231|  3.25M|        }
  232|  5.03k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  13.1M|    {
  261|  13.1M|        return done_;
  262|  13.1M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  6.56M|    {
  267|  6.56M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  6.56M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 6.56M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  6.56M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 17.9k, False: 6.54M]
  ------------------
  270|  17.9k|        {
  271|  17.9k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 5.03k, False: 12.9k]
  ------------------
  272|  5.03k|            {
  273|  5.03k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  5.03k|                first_ = false;
  275|  5.03k|                return;
  276|  5.03k|            }
  277|  12.9k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 5.03k, False: 7.90k]
  ------------------
  278|  5.03k|            {
  279|  5.03k|                visitor.end_array(context, ec);
  280|  5.03k|                done_ = true;
  281|  5.03k|                return;
  282|  5.03k|            }
  283|  12.9k|        }
  284|  6.55M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 6.53M, False: 15.8k]
  |  Branch (284:44): [True: 3.27M, False: 3.26M]
  ------------------
  285|  3.27M|        {
  286|  3.27M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  3.27M|            ++dim_;
  288|  3.27M|            return;
  289|  3.27M|        }
  290|  3.28M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 7.91k, False: 3.27M]
  ------------------
  291|  7.91k|        {
  292|  7.91k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  7.91k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  7.91k|            ++count_;
  295|  7.91k|            return;
  296|  7.91k|        }
  297|  3.27M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 3.27M, False: 0]
  ------------------
  298|  3.27M|        {
  299|  3.27M|            visitor.end_array(context, ec);
  300|  3.27M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 3.27M, False: 0]
  ------------------
  301|  3.27M|            {
  302|  3.27M|                --dim_;
  303|  3.27M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  3.27M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 2.87k, False: 3.27M]
  ------------------
  305|  2.87k|                {
  306|  28.3k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 25.4k, False: 2.87k]
  ------------------
  307|  25.4k|                    {
  308|  25.4k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  25.4k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  25.4k|                    }
  311|  2.87k|                }
  312|  3.27M|            }
  313|  3.27M|        }
  314|  3.27M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIlEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|  35.0k|    {
   65|  35.0k|        visitor.int64_value(val, tag, context, ec);
   66|  35.0k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  18.9k|        : data_(std::move(data), alloc), 
  107|  18.9k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  18.9k|          array_tag_(array_tag), 
  109|  18.9k|          extent_(span_.size()), 
  110|  18.9k|          tag_(tag), 
  111|  18.9k|          func_(Func{})
  112|  18.9k|    {
  113|  18.9k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  92.1k|    {
  142|  92.1k|        return done_;
  143|  92.1k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  65.0k|    {
  148|  65.0k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  65.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 18.9k, False: 46.0k]
  |  |  ------------------
  ------------------
  149|  18.9k|        {
  150|  18.9k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  18.9k|            first_ = false;
  152|  18.9k|        }
  153|  46.0k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  46.0k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 27.1k, False: 18.9k]
  |  |  ------------------
  ------------------
  154|  27.1k|        {
  155|  27.1k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  27.1k|            ++index_;
  157|  27.1k|        }
  158|  18.9k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 18.9k, False: 0]
  ------------------
  159|  18.9k|        {
  160|  18.9k|            visitor.end_array(context, ec);
  161|  18.9k|            done_ = true;
  162|  18.9k|        }
  163|  65.0k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  9.99k|        : data_(std::move(data), alloc), 
  200|  9.99k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  9.99k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  9.99k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  9.99k|    {
  204|  9.99k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  9.99k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 509, False: 9.48k]
  ------------------
  206|    509|        {
  207|    509|            std::size_t stride = 1;
  208|    509|            const size_t num_extents = extents.size();
  209|  3.40k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 2.89k, False: 509]
  ------------------
  210|  2.89k|            {
  211|  2.89k|                strides[i] = stride;
  212|  2.89k|                stride *= extents[i];
  213|  2.89k|            }
  214|    509|        }
  215|  9.48k|        else
  216|  9.48k|        {
  217|  9.48k|            std::size_t stride = 1;
  218|  9.48k|            const size_t num_extents = extents.size();
  219|  55.7k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 46.2k, False: 9.48k]
  ------------------
  220|  46.2k|            {
  221|  46.2k|                strides[num_extents-i-1] = stride;
  222|  46.2k|                stride *= extents[num_extents-i-1];
  223|  46.2k|            }
  224|  9.48k|        }
  225|  59.1k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 49.1k, False: 9.99k]
  ------------------
  226|  49.1k|        {
  227|  49.1k|            dimensions_[i].extent = extents[i];
  228|  49.1k|            dimensions_[i].stride = strides[i];
  229|  49.1k|            dimensions_[i].index = 0;
  230|  49.1k|            dimensions_[i].end = strides[i]*extents[i];
  231|  49.1k|        }
  232|  9.99k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4doneEv:
  260|   319k|    {
  261|   319k|        return done_;
  262|   319k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   169k|    {
  267|   169k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   169k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 169k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|   169k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 45.7k, False: 124k]
  ------------------
  270|  45.7k|        {
  271|  45.7k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 9.99k, False: 35.7k]
  ------------------
  272|  9.99k|            {
  273|  9.99k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  9.99k|                first_ = false;
  275|  9.99k|                return;
  276|  9.99k|            }
  277|  35.7k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 9.99k, False: 25.7k]
  ------------------
  278|  9.99k|            {
  279|  9.99k|                visitor.end_array(context, ec);
  280|  9.99k|                done_ = true;
  281|  9.99k|                return;
  282|  9.99k|            }
  283|  35.7k|        }
  284|   149k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 108k, False: 41.1k]
  |  Branch (284:44): [True: 58.0k, False: 50.6k]
  ------------------
  285|  58.0k|        {
  286|  58.0k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  58.0k|            ++dim_;
  288|  58.0k|            return;
  289|  58.0k|        }
  290|  91.8k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 33.7k, False: 58.0k]
  ------------------
  291|  33.7k|        {
  292|  33.7k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  33.7k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  33.7k|            ++count_;
  295|  33.7k|            return;
  296|  33.7k|        }
  297|  58.0k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 58.0k, False: 0]
  ------------------
  298|  58.0k|        {
  299|  58.0k|            visitor.end_array(context, ec);
  300|  58.0k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 58.0k, False: 0]
  ------------------
  301|  58.0k|            {
  302|  58.0k|                --dim_;
  303|  58.0k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  58.0k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 3.57k, False: 54.5k]
  ------------------
  305|  3.57k|                {
  306|  22.4k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 18.9k, False: 3.57k]
  ------------------
  307|  18.9k|                    {
  308|  18.9k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  18.9k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  18.9k|                    }
  311|  3.57k|                }
  312|  58.0k|            }
  313|  58.0k|        }
  314|  58.0k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIdEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   80|  4.39M|    {
   81|  4.39M|        visitor.double_value(val, tag, context, ec);
   82|  4.39M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  50.6k|        : data_(std::move(data), alloc), 
  107|  50.6k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  50.6k|          array_tag_(array_tag), 
  109|  50.6k|          extent_(span_.size()), 
  110|  50.6k|          tag_(tag), 
  111|  50.6k|          func_(Func{})
  112|  50.6k|    {
  113|  50.6k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4doneEv:
  141|  6.47M|    {
  142|  6.47M|        return done_;
  143|  6.47M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  3.28M|    {
  148|  3.28M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  3.28M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 50.6k, False: 3.23M]
  |  |  ------------------
  ------------------
  149|  50.6k|        {
  150|  50.6k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  50.6k|            first_ = false;
  152|  50.6k|        }
  153|  3.23M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  3.23M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 3.18M, False: 50.6k]
  |  |  ------------------
  ------------------
  154|  3.18M|        {
  155|  3.18M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  3.18M|            ++index_;
  157|  3.18M|        }
  158|  50.6k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 50.6k, False: 0]
  ------------------
  159|  50.6k|        {
  160|  50.6k|            visitor.end_array(context, ec);
  161|  50.6k|            done_ = true;
  162|  50.6k|        }
  163|  3.28M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  6.86k|        : data_(std::move(data), alloc), 
  200|  6.86k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  6.86k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  6.86k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  6.86k|    {
  204|  6.86k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  6.86k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 1.64k, False: 5.22k]
  ------------------
  206|  1.64k|        {
  207|  1.64k|            std::size_t stride = 1;
  208|  1.64k|            const size_t num_extents = extents.size();
  209|  5.24k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 3.60k, False: 1.64k]
  ------------------
  210|  3.60k|            {
  211|  3.60k|                strides[i] = stride;
  212|  3.60k|                stride *= extents[i];
  213|  3.60k|            }
  214|  1.64k|        }
  215|  5.22k|        else
  216|  5.22k|        {
  217|  5.22k|            std::size_t stride = 1;
  218|  5.22k|            const size_t num_extents = extents.size();
  219|   158k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 153k, False: 5.22k]
  ------------------
  220|   153k|            {
  221|   153k|                strides[num_extents-i-1] = stride;
  222|   153k|                stride *= extents[num_extents-i-1];
  223|   153k|            }
  224|  5.22k|        }
  225|   164k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 157k, False: 6.86k]
  ------------------
  226|   157k|        {
  227|   157k|            dimensions_[i].extent = extents[i];
  228|   157k|            dimensions_[i].stride = strides[i];
  229|   157k|            dimensions_[i].index = 0;
  230|   157k|            dimensions_[i].end = strides[i]*extents[i];
  231|   157k|        }
  232|  6.86k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  1.21M|    {
  261|  1.21M|        return done_;
  262|  1.21M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   616k|    {
  267|   616k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   616k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 616k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|   616k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 20.8k, False: 595k]
  ------------------
  270|  20.8k|        {
  271|  20.8k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 6.86k, False: 13.9k]
  ------------------
  272|  6.86k|            {
  273|  6.86k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  6.86k|                first_ = false;
  275|  6.86k|                return;
  276|  6.86k|            }
  277|  13.9k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 6.86k, False: 7.12k]
  ------------------
  278|  6.86k|            {
  279|  6.86k|                visitor.end_array(context, ec);
  280|  6.86k|                done_ = true;
  281|  6.86k|                return;
  282|  6.86k|            }
  283|  13.9k|        }
  284|   602k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 593k, False: 9.58k]
  |  Branch (284:44): [True: 297k, False: 295k]
  ------------------
  285|   297k|        {
  286|   297k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|   297k|            ++dim_;
  288|   297k|            return;
  289|   297k|        }
  290|   305k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 7.41k, False: 297k]
  ------------------
  291|  7.41k|        {
  292|  7.41k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  7.41k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  7.41k|            ++count_;
  295|  7.41k|            return;
  296|  7.41k|        }
  297|   297k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 297k, False: 0]
  ------------------
  298|   297k|        {
  299|   297k|            visitor.end_array(context, ec);
  300|   297k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 297k, False: 0]
  ------------------
  301|   297k|            {
  302|   297k|                --dim_;
  303|   297k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|   297k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 268, False: 297k]
  ------------------
  305|    268|                {
  306|   147k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 147k, False: 268]
  ------------------
  307|   147k|                    {
  308|   147k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|   147k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|   147k|                    }
  311|    268|                }
  312|   297k|            }
  313|   297k|        }
  314|   297k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIfEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   80|  6.36M|    {
   81|  6.36M|        visitor.double_value(val, tag, context, ec);
   82|  6.36M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  50.4k|        : data_(std::move(data), alloc), 
  107|  50.4k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  50.4k|          array_tag_(array_tag), 
  109|  50.4k|          extent_(span_.size()), 
  110|  50.4k|          tag_(tag), 
  111|  50.4k|          func_(Func{})
  112|  50.4k|    {
  113|  50.4k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  12.8M|    {
  142|  12.8M|        return done_;
  143|  12.8M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  6.45M|    {
  148|  6.45M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  6.45M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 50.4k, False: 6.40M]
  |  |  ------------------
  ------------------
  149|  50.4k|        {
  150|  50.4k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  50.4k|            first_ = false;
  152|  50.4k|        }
  153|  6.40M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  6.40M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 6.35M, False: 50.4k]
  |  |  ------------------
  ------------------
  154|  6.35M|        {
  155|  6.35M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  6.35M|            ++index_;
  157|  6.35M|        }
  158|  50.4k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 50.4k, False: 0]
  ------------------
  159|  50.4k|        {
  160|  50.4k|            visitor.end_array(context, ec);
  161|  50.4k|            done_ = true;
  162|  50.4k|        }
  163|  6.45M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  3.82k|        : data_(std::move(data), alloc), 
  200|  3.82k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  3.82k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  3.82k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  3.82k|    {
  204|  3.82k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  3.82k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 591, False: 3.23k]
  ------------------
  206|    591|        {
  207|    591|            std::size_t stride = 1;
  208|    591|            const size_t num_extents = extents.size();
  209|  30.2k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 29.6k, False: 591]
  ------------------
  210|  29.6k|            {
  211|  29.6k|                strides[i] = stride;
  212|  29.6k|                stride *= extents[i];
  213|  29.6k|            }
  214|    591|        }
  215|  3.23k|        else
  216|  3.23k|        {
  217|  3.23k|            std::size_t stride = 1;
  218|  3.23k|            const size_t num_extents = extents.size();
  219|  45.0k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 41.8k, False: 3.23k]
  ------------------
  220|  41.8k|            {
  221|  41.8k|                strides[num_extents-i-1] = stride;
  222|  41.8k|                stride *= extents[num_extents-i-1];
  223|  41.8k|            }
  224|  3.23k|        }
  225|  75.2k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 71.4k, False: 3.82k]
  ------------------
  226|  71.4k|        {
  227|  71.4k|            dimensions_[i].extent = extents[i];
  228|  71.4k|            dimensions_[i].stride = strides[i];
  229|  71.4k|            dimensions_[i].index = 0;
  230|  71.4k|            dimensions_[i].end = strides[i]*extents[i];
  231|  71.4k|        }
  232|  3.82k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|   427k|    {
  261|   427k|        return done_;
  262|   427k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   217k|    {
  267|   217k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   217k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 217k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|   217k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 11.9k, False: 205k]
  ------------------
  270|  11.9k|        {
  271|  11.9k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 3.82k, False: 8.09k]
  ------------------
  272|  3.82k|            {
  273|  3.82k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  3.82k|                first_ = false;
  275|  3.82k|                return;
  276|  3.82k|            }
  277|  8.09k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 3.82k, False: 4.27k]
  ------------------
  278|  3.82k|            {
  279|  3.82k|                visitor.end_array(context, ec);
  280|  3.82k|                done_ = true;
  281|  3.82k|                return;
  282|  3.82k|            }
  283|  8.09k|        }
  284|   209k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 201k, False: 8.11k]
  |  Branch (284:44): [True: 102k, False: 98.8k]
  ------------------
  285|   102k|        {
  286|   102k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|   102k|            ++dim_;
  288|   102k|            return;
  289|   102k|        }
  290|   106k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 4.27k, False: 102k]
  ------------------
  291|  4.27k|        {
  292|  4.27k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  4.27k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  4.27k|            ++count_;
  295|  4.27k|            return;
  296|  4.27k|        }
  297|   102k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 102k, False: 0]
  ------------------
  298|   102k|        {
  299|   102k|            visitor.end_array(context, ec);
  300|   102k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 102k, False: 0]
  ------------------
  301|   102k|            {
  302|   102k|                --dim_;
  303|   102k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|   102k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 446, False: 102k]
  ------------------
  305|    446|                {
  306|  35.5k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 35.0k, False: 446]
  ------------------
  307|  35.0k|                    {
  308|  35.0k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  35.0k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  35.0k|                    }
  311|    446|                }
  312|   102k|            }
  313|   102k|        }
  314|   102k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  29.1k|        : data_(std::move(data), alloc), 
  107|  29.1k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  29.1k|          array_tag_(array_tag), 
  109|  29.1k|          extent_(span_.size()), 
  110|  29.1k|          tag_(tag), 
  111|  29.1k|          func_(Func{})
  112|  29.1k|    {
  113|  29.1k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  2.39M|    {
  142|  2.39M|        return done_;
  143|  2.39M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  1.22M|    {
  148|  1.22M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  1.22M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 29.1k, False: 1.19M]
  |  |  ------------------
  ------------------
  149|  29.1k|        {
  150|  29.1k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  29.1k|            first_ = false;
  152|  29.1k|        }
  153|  1.19M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  1.19M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 1.16M, False: 29.1k]
  |  |  ------------------
  ------------------
  154|  1.16M|        {
  155|  1.16M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  1.16M|            ++index_;
  157|  1.16M|        }
  158|  29.1k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 29.1k, False: 0]
  ------------------
  159|  29.1k|        {
  160|  29.1k|            visitor.end_array(context, ec);
  161|  29.1k|            done_ = true;
  162|  29.1k|        }
  163|  1.22M|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEEC2ERKNS4_6vectorImNS5_ImEEEEPNS0_17basic_cbor_parserIS3_S6_EEbRKS6_:
  337|  21.9k|        : extents_(extents, alloc), dimensions_(extents.size(), mdarray_dimension{}, alloc),
  338|  21.9k|          parser_(parser), cursor_mode_(cursor_mode)
  339|  21.9k|    {
  340|  21.9k|        std::vector<std::size_t> strides(extents.size(), 0);
  341|  21.9k|        std::size_t stride = 1;
  342|  21.9k|        const size_t num_extents = extents.size();
  343|   643k|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (343:28): [True: 621k, False: 21.9k]
  ------------------
  344|   621k|        {
  345|   621k|            strides[num_extents - i - 1] = stride;
  346|   621k|            stride *= extents[num_extents - i - 1];
  347|   621k|        }
  348|   643k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (348:33): [True: 621k, False: 21.9k]
  ------------------
  349|   621k|        {
  350|   621k|            dimensions_[i].extent = extents[i];
  351|   621k|            dimensions_[i].stride = strides[i];
  352|   621k|            dimensions_[i].index = 0;
  353|   621k|            dimensions_[i].end = strides[i] * extents[i];
  354|   621k|        }
  355|  21.9k|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE5countEv:
  383|  1.25k|    {
  384|  1.25k|        return count_;
  385|  1.25k|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE4doneEv:
  378|  8.40M|    {
  379|  8.40M|        return done_;
  380|  8.40M|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS4_10error_codeE:
  389|  8.39M|    {
  390|  8.39M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  8.39M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 8.39M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  391|       |
  392|  8.39M|        if (dim_ == 0)
  ------------------
  |  Branch (392:13): [True: 58.7k, False: 8.33M]
  ------------------
  393|  58.7k|        {
  394|  58.7k|            if (first_)
  ------------------
  |  Branch (394:17): [True: 21.9k, False: 36.8k]
  ------------------
  395|  21.9k|            {
  396|  21.9k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  397|  21.9k|                first_ = false;
  398|  21.9k|                return;
  399|  21.9k|            }
  400|  36.8k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (400:17): [True: 8.21k, False: 28.5k]
  ------------------
  401|  8.21k|            {
  402|  8.21k|                visitor.end_array(context, ec);
  403|  8.21k|                done_ = true;
  404|  8.21k|                return;
  405|  8.21k|            }
  406|  36.8k|        }
  407|  8.36M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (407:13): [True: 5.34M, False: 3.02M]
  |  Branch (407:44): [True: 3.66M, False: 1.67M]
  ------------------
  408|  3.66M|        {
  409|  3.66M|            if (!cursor_mode_)
  ------------------
  |  Branch (409:17): [True: 1.71M, False: 1.95M]
  ------------------
  410|  1.71M|            {
  411|  1.71M|                visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  412|  1.71M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.71M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.71M]
  |  |  ------------------
  ------------------
  413|      0|                {
  414|      0|                    return;
  415|      0|                }
  416|  1.71M|            }
  417|  3.66M|            ++dim_;
  418|  3.66M|            return;
  419|  3.66M|        }
  420|  4.69M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (420:13): [True: 1.58M, False: 3.11M]
  ------------------
  421|  1.58M|        {
  422|  1.58M|            parser_->read_item(visitor, ec);
  423|  1.58M|            dimensions_[dim_].index += dimensions_[dim_].stride;
  424|  1.58M|            ++count_;
  425|  1.58M|            return;
  426|  1.58M|        }
  427|  3.11M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (427:13): [True: 3.11M, False: 0]
  ------------------
  428|  3.11M|        {
  429|  3.11M|            if (!cursor_mode_)
  ------------------
  |  Branch (429:17): [True: 1.45M, False: 1.65M]
  ------------------
  430|  1.45M|            {
  431|  1.45M|                visitor.end_array(context, ec);
  432|  1.45M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.45M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.45M]
  |  |  ------------------
  ------------------
  433|      0|                {
  434|      0|                    return;
  435|      0|                }
  436|  1.45M|            }
  437|  3.11M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.11M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.11M]
  |  |  ------------------
  ------------------
  438|      0|            {
  439|      0|                return;
  440|      0|            }
  441|  3.11M|            if (dim_ > 0)
  ------------------
  |  Branch (441:17): [True: 3.11M, False: 0]
  ------------------
  442|  3.11M|            {
  443|  3.11M|                --dim_;
  444|  3.11M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  445|  3.11M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (445:21): [True: 1.43M, False: 1.67M]
  ------------------
  446|  1.43M|                {
  447|  4.49M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (447:50): [True: 3.06M, False: 1.43M]
  ------------------
  448|  3.06M|                    {
  449|  3.06M|                        dimensions_[i].index = dimensions_[i-1].index;
  450|  3.06M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  451|  3.06M|                    }
  452|  1.43M|                }
  453|  3.11M|            }
  454|  3.11M|        }
  455|  3.11M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEEC2ERKNS4_6vectorImNS5_ImEEEEPNS0_17basic_cbor_parserIS3_S6_EEbRKS6_:
  478|  6.10k|        : extents_(extents,alloc), dimensions_(extents.size(), mdarray_dimension{},alloc),
  479|  6.10k|          parser_(parser), cursor_mode_(cursor_mode)
  480|  6.10k|    {
  481|  6.10k|        std::vector<std::size_t> strides(extents.size(), 0);
  482|  6.10k|        std::size_t stride = 1;
  483|  6.10k|        const size_t num_extents = extents.size();
  484|  1.21M|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (484:28): [True: 1.20M, False: 6.10k]
  ------------------
  485|  1.20M|        {
  486|  1.20M|            strides[num_extents - i - 1] = stride;
  487|  1.20M|            stride *= extents[num_extents - i - 1];
  488|  1.20M|        }
  489|  1.21M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (489:33): [True: 1.20M, False: 6.10k]
  ------------------
  490|  1.20M|        {
  491|  1.20M|            dimensions_[i].extent = extents[i];
  492|  1.20M|            dimensions_[i].stride = strides[i];
  493|  1.20M|            dimensions_[i].index = 0;
  494|  1.20M|            dimensions_[i].end = strides[i] * extents[i];
  495|  1.20M|        }
  496|  6.10k|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE5countEv:
  524|  1.32k|    {
  525|  1.32k|        return count_;
  526|  1.32k|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE4doneEv:
  519|  31.8M|    {
  520|  31.8M|        return done_;
  521|  31.8M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS4_10error_codeE:
  530|  31.8M|    {
  531|  31.8M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  31.8M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 31.8M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  532|       |
  533|  31.8M|        if (dim_ == 0)
  ------------------
  |  Branch (533:13): [True: 18.6k, False: 31.8M]
  ------------------
  534|  18.6k|        {
  535|  18.6k|            if (first_)
  ------------------
  |  Branch (535:17): [True: 6.10k, False: 12.5k]
  ------------------
  536|  6.10k|            {
  537|  6.10k|                if (!cursor_mode_)
  ------------------
  |  Branch (537:21): [True: 2.99k, False: 3.11k]
  ------------------
  538|  2.99k|                {
  539|  2.99k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::multi_dim_column_major, context, ec);
  540|  2.99k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  541|  2.99k|                    for (auto item : dimensions_)
  ------------------
  |  Branch (541:36): [True: 5.91k, False: 2.99k]
  ------------------
  542|  5.91k|                    {
  543|  5.91k|                        visitor.uint64_value(item.extent, semantic_tag::none, context, ec);
  544|  5.91k|                    }
  545|  2.99k|                    visitor.end_array(context, ec);
  546|  2.99k|                }
  547|  6.10k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  548|  6.10k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.10k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.10k]
  |  |  ------------------
  ------------------
  549|      0|                {
  550|      0|                    return;
  551|      0|                }
  552|  6.10k|                first_ = false;
  553|  6.10k|                return;
  554|  6.10k|            }
  555|  12.5k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (555:17): [True: 1.32k, False: 11.1k]
  ------------------
  556|  1.32k|            {
  557|  1.32k|                visitor.end_array(context, ec);
  558|  1.32k|                if (!cursor_mode_)
  ------------------
  |  Branch (558:21): [True: 654, False: 667]
  ------------------
  559|    654|                {
  560|    654|                    visitor.end_array(context, ec);
  561|    654|                }
  562|  1.32k|                done_ = true;
  563|  1.32k|                return;
  564|  1.32k|            }
  565|  12.5k|        }
  566|  31.8M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (566:13): [True: 26.9M, False: 4.86M]
  |  Branch (566:44): [True: 15.2M, False: 11.7M]
  ------------------
  567|  15.2M|        {
  568|  15.2M|            ++dim_;
  569|  15.2M|            return;
  570|  15.2M|        }
  571|  16.6M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (571:13): [True: 2.60M, False: 14.0M]
  ------------------
  572|  2.60M|        {
  573|  2.60M|            parser_->read_item(visitor, ec);
  574|  2.60M|            dimensions_[dim_].index += dimensions_[dim_].stride;
  575|  2.60M|            ++count_;
  576|  2.60M|            return;
  577|  2.60M|        }
  578|  14.0M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (578:13): [True: 14.0M, False: 0]
  ------------------
  579|  14.0M|        {
  580|  14.0M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  14.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 14.0M]
  |  |  ------------------
  ------------------
  581|      0|            {
  582|      0|                return;
  583|      0|            }
  584|  14.0M|            if (dim_ > 0)
  ------------------
  |  Branch (584:17): [True: 14.0M, False: 0]
  ------------------
  585|  14.0M|            {
  586|  14.0M|                --dim_;
  587|  14.0M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  588|  14.0M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (588:21): [True: 2.25M, False: 11.7M]
  ------------------
  589|  2.25M|                {
  590|  16.2M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (590:50): [True: 14.0M, False: 2.25M]
  ------------------
  591|  14.0M|                    {
  592|  14.0M|                        dimensions_[i].index = dimensions_[i-1].index;
  593|  14.0M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  594|  14.0M|                    }
  595|  2.25M|                }
  596|  14.0M|            }
  597|  14.0M|        }
  598|  14.0M|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2ERKNS3_6vectorImNS4_ImEEEEPNS0_17basic_cbor_parserIS6_S7_EEbRKS7_:
  337|  32.6k|        : extents_(extents, alloc), dimensions_(extents.size(), mdarray_dimension{}, alloc),
  338|  32.6k|          parser_(parser), cursor_mode_(cursor_mode)
  339|  32.6k|    {
  340|  32.6k|        std::vector<std::size_t> strides(extents.size(), 0);
  341|  32.6k|        std::size_t stride = 1;
  342|  32.6k|        const size_t num_extents = extents.size();
  343|   963k|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (343:28): [True: 931k, False: 32.6k]
  ------------------
  344|   931k|        {
  345|   931k|            strides[num_extents - i - 1] = stride;
  346|   931k|            stride *= extents[num_extents - i - 1];
  347|   931k|        }
  348|   963k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (348:33): [True: 931k, False: 32.6k]
  ------------------
  349|   931k|        {
  350|   931k|            dimensions_[i].extent = extents[i];
  351|   931k|            dimensions_[i].stride = strides[i];
  352|   931k|            dimensions_[i].index = 0;
  353|   931k|            dimensions_[i].end = strides[i] * extents[i];
  354|   931k|        }
  355|  32.6k|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5countEv:
  383|  1.87k|    {
  384|  1.87k|        return count_;
  385|  1.87k|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  378|  12.5M|    {
  379|  12.5M|        return done_;
  380|  12.5M|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  389|  12.5M|    {
  390|  12.5M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  12.5M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 12.5M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  391|       |
  392|  12.5M|        if (dim_ == 0)
  ------------------
  |  Branch (392:13): [True: 87.4k, False: 12.4M]
  ------------------
  393|  87.4k|        {
  394|  87.4k|            if (first_)
  ------------------
  |  Branch (394:17): [True: 32.6k, False: 54.8k]
  ------------------
  395|  32.6k|            {
  396|  32.6k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  397|  32.6k|                first_ = false;
  398|  32.6k|                return;
  399|  32.6k|            }
  400|  54.8k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (400:17): [True: 12.2k, False: 42.5k]
  ------------------
  401|  12.2k|            {
  402|  12.2k|                visitor.end_array(context, ec);
  403|  12.2k|                done_ = true;
  404|  12.2k|                return;
  405|  12.2k|            }
  406|  54.8k|        }
  407|  12.5M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (407:13): [True: 7.99M, False: 4.51M]
  |  Branch (407:44): [True: 5.48M, False: 2.50M]
  ------------------
  408|  5.48M|        {
  409|  5.48M|            if (!cursor_mode_)
  ------------------
  |  Branch (409:17): [True: 3.63M, False: 1.84M]
  ------------------
  410|  3.63M|            {
  411|  3.63M|                visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  412|  3.63M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.63M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.63M]
  |  |  ------------------
  ------------------
  413|      0|                {
  414|      0|                    return;
  415|      0|                }
  416|  3.63M|            }
  417|  5.48M|            ++dim_;
  418|  5.48M|            return;
  419|  5.48M|        }
  420|  7.02M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (420:13): [True: 2.37M, False: 4.65M]
  ------------------
  421|  2.37M|        {
  422|  2.37M|            parser_->read_item(visitor, ec);
  423|  2.37M|            dimensions_[dim_].index += dimensions_[dim_].stride;
  424|  2.37M|            ++count_;
  425|  2.37M|            return;
  426|  2.37M|        }
  427|  4.65M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (427:13): [True: 4.65M, False: 0]
  ------------------
  428|  4.65M|        {
  429|  4.65M|            if (!cursor_mode_)
  ------------------
  |  Branch (429:17): [True: 3.08M, False: 1.56M]
  ------------------
  430|  3.08M|            {
  431|  3.08M|                visitor.end_array(context, ec);
  432|  3.08M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.08M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.08M]
  |  |  ------------------
  ------------------
  433|      0|                {
  434|      0|                    return;
  435|      0|                }
  436|  3.08M|            }
  437|  4.65M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.65M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.65M]
  |  |  ------------------
  ------------------
  438|      0|            {
  439|      0|                return;
  440|      0|            }
  441|  4.65M|            if (dim_ > 0)
  ------------------
  |  Branch (441:17): [True: 4.65M, False: 0]
  ------------------
  442|  4.65M|            {
  443|  4.65M|                --dim_;
  444|  4.65M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  445|  4.65M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (445:21): [True: 2.14M, False: 2.51M]
  ------------------
  446|  2.14M|                {
  447|  6.72M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (447:50): [True: 4.58M, False: 2.14M]
  ------------------
  448|  4.58M|                    {
  449|  4.58M|                        dimensions_[i].index = dimensions_[i-1].index;
  450|  4.58M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  451|  4.58M|                    }
  452|  2.14M|                }
  453|  4.65M|            }
  454|  4.65M|        }
  455|  4.65M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2ERKNS3_6vectorImNS4_ImEEEEPNS0_17basic_cbor_parserIS6_S7_EEbRKS7_:
  478|  9.13k|        : extents_(extents,alloc), dimensions_(extents.size(), mdarray_dimension{},alloc),
  479|  9.13k|          parser_(parser), cursor_mode_(cursor_mode)
  480|  9.13k|    {
  481|  9.13k|        std::vector<std::size_t> strides(extents.size(), 0);
  482|  9.13k|        std::size_t stride = 1;
  483|  9.13k|        const size_t num_extents = extents.size();
  484|  1.82M|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (484:28): [True: 1.81M, False: 9.13k]
  ------------------
  485|  1.81M|        {
  486|  1.81M|            strides[num_extents - i - 1] = stride;
  487|  1.81M|            stride *= extents[num_extents - i - 1];
  488|  1.81M|        }
  489|  1.82M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (489:33): [True: 1.81M, False: 9.13k]
  ------------------
  490|  1.81M|        {
  491|  1.81M|            dimensions_[i].extent = extents[i];
  492|  1.81M|            dimensions_[i].stride = strides[i];
  493|  1.81M|            dimensions_[i].index = 0;
  494|  1.81M|            dimensions_[i].end = strides[i] * extents[i];
  495|  1.81M|        }
  496|  9.13k|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5countEv:
  524|  1.97k|    {
  525|  1.97k|        return count_;
  526|  1.97k|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  519|  47.5M|    {
  520|  47.5M|        return done_;
  521|  47.5M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  530|  47.5M|    {
  531|  47.5M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  47.5M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 47.5M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  532|       |
  533|  47.5M|        if (dim_ == 0)
  ------------------
  |  Branch (533:13): [True: 27.8k, False: 47.4M]
  ------------------
  534|  27.8k|        {
  535|  27.8k|            if (first_)
  ------------------
  |  Branch (535:17): [True: 9.13k, False: 18.7k]
  ------------------
  536|  9.13k|            {
  537|  9.13k|                if (!cursor_mode_)
  ------------------
  |  Branch (537:21): [True: 6.06k, False: 3.07k]
  ------------------
  538|  6.06k|                {
  539|  6.06k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::multi_dim_column_major, context, ec);
  540|  6.06k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  541|  6.06k|                    for (auto item : dimensions_)
  ------------------
  |  Branch (541:36): [True: 1.20M, False: 6.06k]
  ------------------
  542|  1.20M|                    {
  543|  1.20M|                        visitor.uint64_value(item.extent, semantic_tag::none, context, ec);
  544|  1.20M|                    }
  545|  6.06k|                    visitor.end_array(context, ec);
  546|  6.06k|                }
  547|  9.13k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  548|  9.13k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.13k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9.13k]
  |  |  ------------------
  ------------------
  549|      0|                {
  550|      0|                    return;
  551|      0|                }
  552|  9.13k|                first_ = false;
  553|  9.13k|                return;
  554|  9.13k|            }
  555|  18.7k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (555:17): [True: 1.97k, False: 16.7k]
  ------------------
  556|  1.97k|            {
  557|  1.97k|                visitor.end_array(context, ec);
  558|  1.97k|                if (!cursor_mode_)
  ------------------
  |  Branch (558:21): [True: 1.31k, False: 666]
  ------------------
  559|  1.31k|                {
  560|  1.31k|                    visitor.end_array(context, ec);
  561|  1.31k|                }
  562|  1.97k|                done_ = true;
  563|  1.97k|                return;
  564|  1.97k|            }
  565|  18.7k|        }
  566|  47.4M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (566:13): [True: 40.2M, False: 7.25M]
  |  Branch (566:44): [True: 22.7M, False: 17.5M]
  ------------------
  567|  22.7M|        {
  568|  22.7M|            ++dim_;
  569|  22.7M|            return;
  570|  22.7M|        }
  571|  24.7M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (571:13): [True: 3.88M, False: 20.9M]
  ------------------
  572|  3.88M|        {
  573|  3.88M|            parser_->read_item(visitor, ec);
  574|  3.88M|            dimensions_[dim_].index += dimensions_[dim_].stride;
  575|  3.88M|            ++count_;
  576|  3.88M|            return;
  577|  3.88M|        }
  578|  20.9M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (578:13): [True: 20.9M, False: 0]
  ------------------
  579|  20.9M|        {
  580|  20.9M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 20.9M]
  |  |  ------------------
  ------------------
  581|      0|            {
  582|      0|                return;
  583|      0|            }
  584|  20.9M|            if (dim_ > 0)
  ------------------
  |  Branch (584:17): [True: 20.9M, False: 0]
  ------------------
  585|  20.9M|            {
  586|  20.9M|                --dim_;
  587|  20.9M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  588|  20.9M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (588:21): [True: 3.36M, False: 17.5M]
  ------------------
  589|  3.36M|                {
  590|  24.2M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (590:50): [True: 20.9M, False: 3.36M]
  ------------------
  591|  20.9M|                    {
  592|  20.9M|                        dimensions_[i].index = dimensions_[i-1].index;
  593|  20.9M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  594|  20.9M|                    }
  595|  3.36M|                }
  596|  20.9M|            }
  597|  20.9M|        }
  598|  20.9M|    }

_ZN8jsoncons4cbor15try_decode_cborINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEENS4_9enable_ifIXsr6nonstd13is_basic_jsonIT_EE5valueENS_6nonstd8expectedIS9_NS_10read_errorEEEE4typeERNS4_13basic_istreamIcNS4_11char_traitsIcEEEERKNS0_19cbor_decode_optionsE:
   78|  6.41k|{
   79|  6.41k|    using value_type = T;
   80|  6.41k|    using result_type = read_result<value_type>;
   81|       |
   82|  6.41k|    std::error_code ec;   
   83|  6.41k|    jsoncons::json_decoder<T> decoder;
   84|  6.41k|    auto adaptor = make_json_visitor_adaptor<json_visitor>(decoder);
   85|  6.41k|    cbor_stream_reader reader(is, adaptor, options);
   86|  6.41k|    reader.read(ec);
   87|  6.41k|    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.41k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5.24k, False: 1.16k]
  |  |  ------------------
  ------------------
   88|  5.24k|    {
   89|  5.24k|        return result_type{jsoncons::unexpect, ec, reader.line(), reader.column()};
   90|  5.24k|    }
   91|  1.16k|    if (JSONCONS_UNLIKELY(!decoder.is_valid()))
  ------------------
  |  |   79|  1.16k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.16k]
  |  |  ------------------
  ------------------
   92|      0|    {
   93|      0|        return result_type{jsoncons::unexpect, conv_errc::conversion_failed, reader.line(), reader.column()};
   94|      0|    }
   95|  1.16k|    return result_type{decoder.get_result()};
   96|  1.16k|}

