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

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

_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2Ev:
 2275|  17.4k|        {
 2276|  17.4k|            construct<empty_object_storage>(semantic_tag::none);
 2277|  17.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20empty_object_storageEJNS_12semantic_tagEEEEvDpOT0_:
  995|  17.4k|        {
  996|  17.4k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  17.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_20empty_object_storageEEERT_v:
 1004|  23.7k|        {
 1005|  23.7k|            return cast(identity<T>());
 1006|  23.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_20empty_object_storageEEE:
 1025|  23.7k|        {
 1026|  23.7k|            return empty_object_;
 1027|  23.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20empty_object_storageC2ENS_12semantic_tagE:
  462|  17.4k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::empty_object)), short_str_length_(0), tag_(tag)
  463|  17.4k|            {
  464|  17.4k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE7reserveEm:
 3484|  5.58M|        {
 3485|  5.58M|            if (n > 0)
  ------------------
  |  Branch (3485:17): [True: 5.58M, False: 0]
  ------------------
 3486|  5.58M|            {
 3487|  5.58M|                switch (storage_kind())
 3488|  5.58M|                {
 3489|  5.58M|                    case json_storage_kind::array:
  ------------------
  |  Branch (3489:21): [True: 5.58M, False: 0]
  ------------------
 3490|  5.58M|                        cast<array_storage>().value().reserve(n);
 3491|  5.58M|                        break;
 3492|      0|                    case json_storage_kind::empty_object:
  ------------------
  |  Branch (3492:21): [True: 0, False: 5.58M]
  ------------------
 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: 5.58M]
  ------------------
 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: 5.58M]
  ------------------
 3500|      0|                        cast<json_ref_storage>().value().reserve(n);
 3501|      0|                        break;
 3502|      0|                    default:
  ------------------
  |  Branch (3502:21): [True: 0, False: 5.58M]
  ------------------
 3503|      0|                        break;
 3504|  5.58M|                }
 3505|  5.58M|            }
 3506|  5.58M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12storage_kindEv:
 1462|   374M|        {
 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|   374M|            return static_cast<json_storage_kind>(common_.storage_kind_);
 1468|   374M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13array_storageEEERT_v:
 1004|  93.8M|        {
 1005|  93.8M|            return cast(identity<T>());
 1006|  93.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13array_storageEEE:
 1125|  93.8M|        {
 1126|  93.8M|            return array_;
 1127|  93.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storage5valueEv:
  750|  31.2M|            {
  751|  31.2M|                return *ptr_;
  752|  31.2M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EOS5_:
 2307|  79.8M|        {
 2308|  79.8M|            uninitialized_move(std::move(other));
 2309|  79.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18uninitialized_moveEOS5_:
 1302|  79.8M|        {
 1303|  79.8M|            if (is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1303:17): [True: 41.0M, False: 38.8M]
  ------------------
 1304|  41.0M|            {
 1305|  41.0M|                std::memcpy(static_cast<void*>(this), &other, sizeof(basic_json));
 1306|  41.0M|            }
 1307|  38.8M|            else
 1308|  38.8M|            {
 1309|  38.8M|                switch (other.storage_kind())
 1310|  38.8M|                {
 1311|   116k|                    case json_storage_kind::long_str:
  ------------------
  |  Branch (1311:21): [True: 116k, False: 38.7M]
  ------------------
 1312|   116k|                        construct<long_string_storage>(other.cast<long_string_storage>());
 1313|   116k|                        other.construct<null_storage>();
 1314|   116k|                        break;
 1315|  1.92M|                    case json_storage_kind::byte_str:
  ------------------
  |  Branch (1315:21): [True: 1.92M, False: 36.9M]
  ------------------
 1316|  1.92M|                        construct<byte_string_storage>(other.cast<byte_string_storage>());
 1317|  1.92M|                        other.construct<null_storage>();
 1318|  1.92M|                        break;
 1319|  22.5M|                    case json_storage_kind::array:
  ------------------
  |  Branch (1319:21): [True: 22.5M, False: 16.2M]
  ------------------
 1320|  22.5M|                        construct<array_storage>(other.cast<array_storage>());
 1321|  22.5M|                        other.construct<null_storage>();
 1322|  22.5M|                        break;
 1323|  14.2M|                    case json_storage_kind::object:
  ------------------
  |  Branch (1323:21): [True: 14.2M, False: 24.6M]
  ------------------
 1324|  14.2M|                        construct<object_storage>(other.cast<object_storage>());
 1325|  14.2M|                        other.construct<null_storage>();
 1326|  14.2M|                        break;
 1327|      0|                    default:
  ------------------
  |  Branch (1327:21): [True: 0, False: 38.8M]
  ------------------
 1328|      0|                        JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1329|      0|                        break;
 1330|  38.8M|                }
 1331|  38.8M|            }
 1332|  79.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19long_string_storageEJRS7_EEEvDpOT0_:
  995|   259k|        {
  996|   259k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|   259k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19long_string_storageC2ERKS6_:
  626|   403k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  627|   403k|            {
  628|   403k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_19long_string_storageEEERT_v:
 1004|   646k|        {
 1005|   646k|            return cast(identity<T>());
 1006|   646k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_19long_string_storageEEE:
 1095|   646k|        {
 1096|   646k|            return long_str_;
 1097|   646k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJEEEvDpOT0_:
  995|  38.8M|        {
  996|  38.8M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  38.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12null_storageEEERT_v:
 1004|  45.3M|        {
 1005|  45.3M|            return cast(identity<T>());
 1006|  45.3M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12null_storageEEE:
 1015|  45.3M|        {
 1016|  45.3M|            return null_;
 1017|  45.3M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12null_storageC2ENS_12semantic_tagE:
  450|  38.9M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::null)), short_str_length_(0), tag_(tag)
  451|  38.9M|            {
  452|  38.9M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRS7_EEEvDpOT0_:
  995|  2.44M|        {
  996|  2.44M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  2.44M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19byte_string_storageC2ERKS6_:
  675|  2.97M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  676|  2.97M|            {
  677|  2.97M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_19byte_string_storageEEERT_v:
 1004|  8.11M|        {
 1005|  8.11M|            return cast(identity<T>());
 1006|  8.11M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_19byte_string_storageEEE:
 1105|  8.11M|        {
 1106|  8.11M|            return byte_str_;
 1107|  8.11M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13array_storageEJRS7_EEEvDpOT0_:
  995|  22.7M|        {
  996|  22.7M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  22.7M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storageC2ERKS6_:
  727|  22.9M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  728|  22.9M|            {
  729|  22.9M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14object_storageEJRS7_EEEvDpOT0_:
  995|  17.2M|        {
  996|  17.2M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  17.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storageC2ERKS6_:
  777|  20.1M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  778|  20.1M|            {
  779|  20.1M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_17json_object_arg_tENS_12semantic_tagERKS4_:
 2320|  4.23M|        {
 2321|  4.23M|            auto ptr = create_object(alloc);
 2322|  4.23M|            construct<object_storage>(ptr, tag);
 2323|  4.23M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13create_objectIJEEEPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEERKS4_DpOT_:
  976|  4.23M|        {
  977|  4.23M|            using stor_allocator_type = typename object_storage::allocator_type;
  978|  4.23M|            stor_allocator_type stor_alloc(alloc);
  979|  4.23M|            auto ptr = std::allocator_traits<stor_allocator_type>::allocate(stor_alloc, 1);
  980|  4.23M|            JSONCONS_TRY
  ------------------
  |  |   37|  4.23M|    #define JSONCONS_TRY try
  ------------------
  981|  4.23M|            {
  982|  4.23M|                std::allocator_traits<stor_allocator_type>::construct(stor_alloc, nonstd::to_plain_pointer(ptr), 
  983|  4.23M|                    std::forward<Args>(args)...);
  984|  4.23M|            }
  985|  4.23M|            JSONCONS_CATCH(...)
  986|  4.23M|            {
  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.23M|            return ptr;
  991|  4.23M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14object_storageEJRPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEERNS_12semantic_tagEEEEvDpOT0_:
  995|  4.23M|        {
  996|  4.23M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  4.23M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storageC2EPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEENS_12semantic_tagE:
  772|  4.23M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::object)), short_str_length_(0), tag_(tag), ptr_(ptr)
  773|  4.23M|            {
  774|  4.23M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14object_storageEEERT_v:
 1004|  53.2M|        {
 1005|  53.2M|            return cast(identity<T>());
 1006|  53.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14object_storageEEE:
 1115|  53.2M|        {
 1116|  53.2M|            return object_;
 1117|  53.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storage5valueEv:
  795|  6.15M|            {
  796|  6.15M|                JSONCONS_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   54|  6.15M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 6.15M]
  |  |  ------------------
  |  |   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.15M|                return *ptr_;
  798|  6.15M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9push_backEOS5_:
 4701|  9.25M|        {
 4702|  9.25M|            switch (storage_kind())
 4703|  9.25M|            {
 4704|  9.25M|                case json_storage_kind::array:
  ------------------
  |  Branch (4704:17): [True: 9.25M, False: 0]
  ------------------
 4705|  9.25M|                    cast<array_storage>().value().push_back(std::move(val));
 4706|  9.25M|                    break;
 4707|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4707:17): [True: 0, False: 9.25M]
  ------------------
 4708|      0|                    cast<json_ref_storage>().value().push_back(std::move(val));
 4709|      0|                    break;
 4710|      0|                default:
  ------------------
  |  Branch (4710:17): [True: 0, False: 9.25M]
  ------------------
 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|  9.25M|            }
 4713|  9.25M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEaSEOS5_:
 1453|  41.7M|        {
 1454|  41.7M|            if (this != &other)
  ------------------
  |  Branch (1454:17): [True: 41.7M, False: 0]
  ------------------
 1455|  41.7M|            {
 1456|  41.7M|                move_assignment(std::move(other));
 1457|  41.7M|            }
 1458|  41.7M|            return *this;
 1459|  41.7M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE15move_assignmentEOS5_:
 1415|  41.7M|        {
 1416|  41.7M|            if (is_trivial_storage(storage_kind()) && is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1416:17): [True: 41.7M, False: 0]
  |  Branch (1416:55): [True: 37.9M, False: 3.81M]
  ------------------
 1417|  37.9M|            {
 1418|  37.9M|                std::memcpy(static_cast<void*>(this), &other, sizeof(basic_json));
 1419|  37.9M|            }
 1420|  3.81M|            else
 1421|  3.81M|            {
 1422|  3.81M|                swap(other);
 1423|  3.81M|            }
 1424|  41.7M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4swapERS5_:
 1934|  3.81M|        {
 1935|  3.81M|            if (this == &other)
  ------------------
  |  Branch (1935:17): [True: 0, False: 3.81M]
  ------------------
 1936|      0|            {
 1937|      0|                return;
 1938|      0|            }
 1939|  3.81M|            if (is_trivial_storage(storage_kind()) && is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1939:17): [True: 3.81M, False: 0]
  |  Branch (1939:55): [True: 0, False: 3.81M]
  ------------------
 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.81M|            else
 1947|  3.81M|            {
 1948|  3.81M|                switch (storage_kind())
 1949|  3.81M|                {
 1950|  3.21M|                    case json_storage_kind::null: swap_l<null_storage>(other); break;
  ------------------
  |  Branch (1950:21): [True: 3.21M, False: 592k]
  ------------------
 1951|  3.12k|                    case json_storage_kind::empty_object : swap_l<empty_object_storage>(other); break;
  ------------------
  |  Branch (1951:21): [True: 3.12k, False: 3.80M]
  ------------------
 1952|  10.7k|                    case json_storage_kind::boolean: swap_l<bool_storage>(other); break;
  ------------------
  |  Branch (1952:21): [True: 10.7k, False: 3.80M]
  ------------------
 1953|   187k|                    case json_storage_kind::int64: swap_l<int64_storage>(other); break;
  ------------------
  |  Branch (1953:21): [True: 187k, False: 3.62M]
  ------------------
 1954|   367k|                    case json_storage_kind::uint64: swap_l<uint64_storage>(other); break;
  ------------------
  |  Branch (1954:21): [True: 367k, False: 3.44M]
  ------------------
 1955|  5.77k|                    case json_storage_kind::half_float: swap_l<half_storage>(other); break;
  ------------------
  |  Branch (1955:21): [True: 5.77k, False: 3.80M]
  ------------------
 1956|  8.40k|                    case json_storage_kind::float64: swap_l<double_storage>(other); break;
  ------------------
  |  Branch (1956:21): [True: 8.40k, False: 3.80M]
  ------------------
 1957|  9.35k|                    case json_storage_kind::short_str: swap_l<short_string_storage>(other); break;
  ------------------
  |  Branch (1957:21): [True: 9.35k, False: 3.80M]
  ------------------
 1958|      0|                    case json_storage_kind::long_str: swap_l<long_string_storage>(other); break;
  ------------------
  |  Branch (1958:21): [True: 0, False: 3.81M]
  ------------------
 1959|      0|                    case json_storage_kind::byte_str: swap_l<byte_string_storage>(other); break;
  ------------------
  |  Branch (1959:21): [True: 0, False: 3.81M]
  ------------------
 1960|      0|                    case json_storage_kind::array: swap_l<array_storage>(other); break;
  ------------------
  |  Branch (1960:21): [True: 0, False: 3.81M]
  ------------------
 1961|      0|                    case json_storage_kind::object: swap_l<object_storage>(other); break;
  ------------------
  |  Branch (1961:21): [True: 0, False: 3.81M]
  ------------------
 1962|      0|                    case json_storage_kind::const_json_ref: swap_l<const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1962:21): [True: 0, False: 3.81M]
  ------------------
 1963|      0|                    case json_storage_kind::json_ref: swap_l<json_ref_storage>(other); break;
  ------------------
  |  Branch (1963:21): [True: 0, False: 3.81M]
  ------------------
 1964|      0|                    default:
  ------------------
  |  Branch (1964:21): [True: 0, False: 3.81M]
  ------------------
 1965|      0|                        JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1966|      0|                        break;
 1967|  3.81M|                }
 1968|  3.81M|            }
 1969|  3.81M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12null_storageEEEvRS5_:
 1170|  3.21M|        {
 1171|  3.21M|            switch (other.storage_kind())
 1172|  3.21M|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 3.21M]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 3.21M]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 3.21M]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 3.21M]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 3.21M]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 3.21M]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 3.21M]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 3.21M]
  ------------------
 1181|   120k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 120k, False: 3.09M]
  ------------------
 1182|   445k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 445k, False: 2.77M]
  ------------------
 1183|   137k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 137k, False: 3.08M]
  ------------------
 1184|  2.51M|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 2.51M, False: 703k]
  ------------------
 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.21M]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 3.21M]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 3.21M]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  3.21M|            }
 1191|  3.21M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJRS7_EEEvDpOT0_:
  995|  3.21M|        {
  996|  3.21M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  3.21M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20empty_object_storageEJRS7_EEEvDpOT0_:
  995|  3.12k|        {
  996|  3.12k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  3.12k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12bool_storageEEERT_v:
 1004|  1.74M|        {
 1005|  1.74M|            return cast(identity<T>());
 1006|  1.74M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12bool_storageEEE:
 1035|  1.74M|        {
 1036|  1.74M|            return boolean_;
 1037|  1.74M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12bool_storageEJRS7_EEEvDpOT0_:
  995|  10.7k|        {
  996|  10.7k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  10.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13int64_storageEEERT_v:
 1004|  2.55M|        {
 1005|  2.55M|            return cast(identity<T>());
 1006|  2.55M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13int64_storageEEE:
 1045|  2.55M|        {
 1046|  2.55M|            return int64_;
 1047|  2.55M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13int64_storageEJRS7_EEEvDpOT0_:
  995|   187k|        {
  996|   187k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|   187k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14uint64_storageEEERT_v:
 1004|  11.9M|        {
 1005|  11.9M|            return cast(identity<T>());
 1006|  11.9M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14uint64_storageEEE:
 1055|  11.9M|        {
 1056|  11.9M|            return uint64_;
 1057|  11.9M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14uint64_storageEJRS7_EEEvDpOT0_:
  995|   367k|        {
  996|   367k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|   367k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12half_storageEEERT_v:
 1004|  37.1k|        {
 1005|  37.1k|            return cast(identity<T>());
 1006|  37.1k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12half_storageEEE:
 1065|  37.1k|        {
 1066|  37.1k|            return half_float_;
 1067|  37.1k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12half_storageEJRS7_EEEvDpOT0_:
  995|  5.77k|        {
  996|  5.77k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  5.77k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14double_storageEEERT_v:
 1004|  81.2k|        {
 1005|  81.2k|            return cast(identity<T>());
 1006|  81.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14double_storageEEE:
 1075|  81.2k|        {
 1076|  81.2k|            return float64_;
 1077|  81.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14double_storageEJRS7_EEEvDpOT0_:
  995|  8.40k|        {
  996|  8.40k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  8.40k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_20short_string_storageEEERT_v:
 1004|   100k|        {
 1005|   100k|            return cast(identity<T>());
 1006|   100k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_20short_string_storageEEE:
 1085|   100k|        {
 1086|   100k|            return short_str_;
 1087|   100k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20short_string_storageC2ERKS6_:
  585|  9.35k|                : storage_kind_(other.storage_kind_), short_str_length_(other.short_str_length_), tag_(other.tag_)
  586|  9.35k|            {
  587|  9.35k|                std::memcpy(data_,other.data_,other.short_str_length_*sizeof(char_type));
  588|  9.35k|                data_[short_str_length_] = 0;
  589|  9.35k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20short_string_storageEJRS7_EEEvDpOT0_:
  995|  9.35k|        {
  996|  9.35k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  9.35k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19long_string_storageEEEvRS5_:
 1156|   120k|        {
 1157|   120k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|   120k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|   120k|        {
 1163|   120k|            TypeR temp{other.cast<TypeR>()};
 1164|   120k|            other.construct<TypeL>(cast<TypeL>());
 1165|   120k|            construct<TypeR>(temp);
 1166|   120k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19byte_string_storageEEEvRS5_:
 1156|   445k|        {
 1157|   445k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|   445k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|   445k|        {
 1163|   445k|            TypeR temp{other.cast<TypeR>()};
 1164|   445k|            other.construct<TypeL>(cast<TypeL>());
 1165|   445k|            construct<TypeR>(temp);
 1166|   445k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_13array_storageEEEvRS5_:
 1156|   137k|        {
 1157|   137k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|   137k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|   137k|        {
 1163|   137k|            TypeR temp{other.cast<TypeR>()};
 1164|   137k|            other.construct<TypeL>(cast<TypeL>());
 1165|   137k|            construct<TypeR>(temp);
 1166|   137k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_14object_storageEEEvRS5_:
 1156|  2.51M|        {
 1157|  2.51M|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  2.51M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  2.51M|        {
 1163|  2.51M|            TypeR temp{other.cast<TypeR>()};
 1164|  2.51M|            other.construct<TypeL>(cast<TypeL>());
 1165|  2.51M|            construct<TypeR>(temp);
 1166|  2.51M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_20empty_object_storageEEEvRS5_:
 1170|  3.12k|        {
 1171|  3.12k|            switch (other.storage_kind())
 1172|  3.12k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 3.12k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 3.12k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 3.12k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 3.12k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 3.12k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 3.12k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 3.12k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 3.12k]
  ------------------
 1181|  1.07k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 1.07k, False: 2.04k]
  ------------------
 1182|     30|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 30, False: 3.09k]
  ------------------
 1183|    676|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 676, False: 2.44k]
  ------------------
 1184|  1.34k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 1.34k, False: 1.78k]
  ------------------
 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.12k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 3.12k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 3.12k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  3.12k|            }
 1191|  3.12k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19long_string_storageEEEvRS5_:
 1156|  1.07k|        {
 1157|  1.07k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  1.07k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  1.07k|        {
 1163|  1.07k|            TypeR temp{other.cast<TypeR>()};
 1164|  1.07k|            other.construct<TypeL>(cast<TypeL>());
 1165|  1.07k|            construct<TypeR>(temp);
 1166|  1.07k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19byte_string_storageEEEvRS5_:
 1156|     30|        {
 1157|     30|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|     30|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|     30|        {
 1163|     30|            TypeR temp{other.cast<TypeR>()};
 1164|     30|            other.construct<TypeL>(cast<TypeL>());
 1165|     30|            construct<TypeR>(temp);
 1166|     30|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_13array_storageEEEvRS5_:
 1156|    676|        {
 1157|    676|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    676|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    676|        {
 1163|    676|            TypeR temp{other.cast<TypeR>()};
 1164|    676|            other.construct<TypeL>(cast<TypeL>());
 1165|    676|            construct<TypeR>(temp);
 1166|    676|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_14object_storageEEEvRS5_:
 1156|  1.34k|        {
 1157|  1.34k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  1.34k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  1.34k|        {
 1163|  1.34k|            TypeR temp{other.cast<TypeR>()};
 1164|  1.34k|            other.construct<TypeL>(cast<TypeL>());
 1165|  1.34k|            construct<TypeR>(temp);
 1166|  1.34k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12bool_storageEEEvRS5_:
 1170|  10.7k|        {
 1171|  10.7k|            switch (other.storage_kind())
 1172|  10.7k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 10.7k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 10.7k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 10.7k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 10.7k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 10.7k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 10.7k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 10.7k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 10.7k]
  ------------------
 1181|  2.36k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 2.36k, False: 8.40k]
  ------------------
 1182|  4.77k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 4.77k, False: 5.98k]
  ------------------
 1183|    499|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 499, False: 10.2k]
  ------------------
 1184|  3.12k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 3.12k, False: 7.64k]
  ------------------
 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: 10.7k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 10.7k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 10.7k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  10.7k|            }
 1191|  10.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19long_string_storageEEEvRS5_:
 1156|  2.36k|        {
 1157|  2.36k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  2.36k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  2.36k|        {
 1163|  2.36k|            TypeR temp{other.cast<TypeR>()};
 1164|  2.36k|            other.construct<TypeL>(cast<TypeL>());
 1165|  2.36k|            construct<TypeR>(temp);
 1166|  2.36k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19byte_string_storageEEEvRS5_:
 1156|  4.77k|        {
 1157|  4.77k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  4.77k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  4.77k|        {
 1163|  4.77k|            TypeR temp{other.cast<TypeR>()};
 1164|  4.77k|            other.construct<TypeL>(cast<TypeL>());
 1165|  4.77k|            construct<TypeR>(temp);
 1166|  4.77k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_13array_storageEEEvRS5_:
 1156|    499|        {
 1157|    499|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    499|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    499|        {
 1163|    499|            TypeR temp{other.cast<TypeR>()};
 1164|    499|            other.construct<TypeL>(cast<TypeL>());
 1165|    499|            construct<TypeR>(temp);
 1166|    499|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_14object_storageEEEvRS5_:
 1156|  3.12k|        {
 1157|  3.12k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  3.12k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  3.12k|        {
 1163|  3.12k|            TypeR temp{other.cast<TypeR>()};
 1164|  3.12k|            other.construct<TypeL>(cast<TypeL>());
 1165|  3.12k|            construct<TypeR>(temp);
 1166|  3.12k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_13int64_storageEEEvRS5_:
 1170|   187k|        {
 1171|   187k|            switch (other.storage_kind())
 1172|   187k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 187k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 187k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 187k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 187k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 187k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 187k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 187k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 187k]
  ------------------
 1181|  4.84k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 4.84k, False: 182k]
  ------------------
 1182|  14.3k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 14.3k, False: 173k]
  ------------------
 1183|  4.22k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 4.22k, False: 183k]
  ------------------
 1184|   164k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 164k, False: 23.4k]
  ------------------
 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: 187k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 187k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 187k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|   187k|            }
 1191|   187k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19long_string_storageEEEvRS5_:
 1156|  4.84k|        {
 1157|  4.84k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  4.84k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  4.84k|        {
 1163|  4.84k|            TypeR temp{other.cast<TypeR>()};
 1164|  4.84k|            other.construct<TypeL>(cast<TypeL>());
 1165|  4.84k|            construct<TypeR>(temp);
 1166|  4.84k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19byte_string_storageEEEvRS5_:
 1156|  14.3k|        {
 1157|  14.3k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  14.3k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  14.3k|        {
 1163|  14.3k|            TypeR temp{other.cast<TypeR>()};
 1164|  14.3k|            other.construct<TypeL>(cast<TypeL>());
 1165|  14.3k|            construct<TypeR>(temp);
 1166|  14.3k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_13array_storageEEEvRS5_:
 1156|  4.22k|        {
 1157|  4.22k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  4.22k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  4.22k|        {
 1163|  4.22k|            TypeR temp{other.cast<TypeR>()};
 1164|  4.22k|            other.construct<TypeL>(cast<TypeL>());
 1165|  4.22k|            construct<TypeR>(temp);
 1166|  4.22k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_14object_storageEEEvRS5_:
 1156|   164k|        {
 1157|   164k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|   164k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|   164k|        {
 1163|   164k|            TypeR temp{other.cast<TypeR>()};
 1164|   164k|            other.construct<TypeL>(cast<TypeL>());
 1165|   164k|            construct<TypeR>(temp);
 1166|   164k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_14uint64_storageEEEvRS5_:
 1170|   367k|        {
 1171|   367k|            switch (other.storage_kind())
 1172|   367k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 367k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 367k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 367k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 367k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 367k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 367k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 367k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 367k]
  ------------------
 1181|  11.1k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 11.1k, False: 356k]
  ------------------
 1182|  50.0k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 50.0k, False: 317k]
  ------------------
 1183|  26.0k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 26.0k, False: 341k]
  ------------------
 1184|   280k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 280k, False: 87.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: 367k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 367k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 367k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|   367k|            }
 1191|   367k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19long_string_storageEEEvRS5_:
 1156|  11.1k|        {
 1157|  11.1k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  11.1k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  11.1k|        {
 1163|  11.1k|            TypeR temp{other.cast<TypeR>()};
 1164|  11.1k|            other.construct<TypeL>(cast<TypeL>());
 1165|  11.1k|            construct<TypeR>(temp);
 1166|  11.1k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19byte_string_storageEEEvRS5_:
 1156|  50.0k|        {
 1157|  50.0k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  50.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  50.0k|        {
 1163|  50.0k|            TypeR temp{other.cast<TypeR>()};
 1164|  50.0k|            other.construct<TypeL>(cast<TypeL>());
 1165|  50.0k|            construct<TypeR>(temp);
 1166|  50.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_13array_storageEEEvRS5_:
 1156|  26.0k|        {
 1157|  26.0k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  26.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  26.0k|        {
 1163|  26.0k|            TypeR temp{other.cast<TypeR>()};
 1164|  26.0k|            other.construct<TypeL>(cast<TypeL>());
 1165|  26.0k|            construct<TypeR>(temp);
 1166|  26.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_14object_storageEEEvRS5_:
 1156|   280k|        {
 1157|   280k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|   280k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|   280k|        {
 1163|   280k|            TypeR temp{other.cast<TypeR>()};
 1164|   280k|            other.construct<TypeL>(cast<TypeL>());
 1165|   280k|            construct<TypeR>(temp);
 1166|   280k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12half_storageEEEvRS5_:
 1170|  5.77k|        {
 1171|  5.77k|            switch (other.storage_kind())
 1172|  5.77k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 5.77k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 5.77k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 5.77k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 5.77k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 5.77k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 5.77k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 5.77k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 5.77k]
  ------------------
 1181|    321|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 321, False: 5.44k]
  ------------------
 1182|  4.73k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 4.73k, False: 1.03k]
  ------------------
 1183|    361|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 361, False: 5.40k]
  ------------------
 1184|    357|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 357, False: 5.41k]
  ------------------
 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.77k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 5.77k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 5.77k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  5.77k|            }
 1191|  5.77k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19long_string_storageEEEvRS5_:
 1156|    321|        {
 1157|    321|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    321|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    321|        {
 1163|    321|            TypeR temp{other.cast<TypeR>()};
 1164|    321|            other.construct<TypeL>(cast<TypeL>());
 1165|    321|            construct<TypeR>(temp);
 1166|    321|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19byte_string_storageEEEvRS5_:
 1156|  4.73k|        {
 1157|  4.73k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  4.73k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  4.73k|        {
 1163|  4.73k|            TypeR temp{other.cast<TypeR>()};
 1164|  4.73k|            other.construct<TypeL>(cast<TypeL>());
 1165|  4.73k|            construct<TypeR>(temp);
 1166|  4.73k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_13array_storageEEEvRS5_:
 1156|    361|        {
 1157|    361|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    361|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    361|        {
 1163|    361|            TypeR temp{other.cast<TypeR>()};
 1164|    361|            other.construct<TypeL>(cast<TypeL>());
 1165|    361|            construct<TypeR>(temp);
 1166|    361|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_14object_storageEEEvRS5_:
 1156|    357|        {
 1157|    357|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    357|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    357|        {
 1163|    357|            TypeR temp{other.cast<TypeR>()};
 1164|    357|            other.construct<TypeL>(cast<TypeL>());
 1165|    357|            construct<TypeR>(temp);
 1166|    357|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_14double_storageEEEvRS5_:
 1170|  8.40k|        {
 1171|  8.40k|            switch (other.storage_kind())
 1172|  8.40k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 8.40k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 8.40k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 8.40k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 8.40k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 8.40k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 8.40k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 8.40k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 8.40k]
  ------------------
 1181|    295|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 295, False: 8.11k]
  ------------------
 1182|    768|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 768, False: 7.63k]
  ------------------
 1183|    725|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 725, False: 7.68k]
  ------------------
 1184|  6.61k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 6.61k, False: 1.78k]
  ------------------
 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.40k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 8.40k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 8.40k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  8.40k|            }
 1191|  8.40k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19long_string_storageEEEvRS5_:
 1156|    295|        {
 1157|    295|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    295|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19long_string_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_14double_storageENS5_19byte_string_storageEEEvRS5_:
 1156|    768|        {
 1157|    768|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    768|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    768|        {
 1163|    768|            TypeR temp{other.cast<TypeR>()};
 1164|    768|            other.construct<TypeL>(cast<TypeL>());
 1165|    768|            construct<TypeR>(temp);
 1166|    768|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_13array_storageEEEvRS5_:
 1156|    725|        {
 1157|    725|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|    725|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|    725|        {
 1163|    725|            TypeR temp{other.cast<TypeR>()};
 1164|    725|            other.construct<TypeL>(cast<TypeL>());
 1165|    725|            construct<TypeR>(temp);
 1166|    725|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_14object_storageEEEvRS5_:
 1156|  6.61k|        {
 1157|  6.61k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  6.61k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  6.61k|        {
 1163|  6.61k|            TypeR temp{other.cast<TypeR>()};
 1164|  6.61k|            other.construct<TypeL>(cast<TypeL>());
 1165|  6.61k|            construct<TypeR>(temp);
 1166|  6.61k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_20short_string_storageEEEvRS5_:
 1170|  9.35k|        {
 1171|  9.35k|            switch (other.storage_kind())
 1172|  9.35k|            {
 1173|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 9.35k]
  ------------------
 1174|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 9.35k]
  ------------------
 1175|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 9.35k]
  ------------------
 1176|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 9.35k]
  ------------------
 1177|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 9.35k]
  ------------------
 1178|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 9.35k]
  ------------------
 1179|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 9.35k]
  ------------------
 1180|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 9.35k]
  ------------------
 1181|  2.99k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 2.99k, False: 6.36k]
  ------------------
 1182|  2.62k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 2.62k, False: 6.72k]
  ------------------
 1183|  1.34k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 1.34k, False: 8.01k]
  ------------------
 1184|  2.39k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 2.39k, False: 6.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: 9.35k]
  ------------------
 1186|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 0, False: 9.35k]
  ------------------
 1187|      0|                default:
  ------------------
  |  Branch (1187:17): [True: 0, False: 9.35k]
  ------------------
 1188|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1189|      0|                    break;
 1190|  9.35k|            }
 1191|  9.35k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19long_string_storageEEEvRS5_:
 1156|  2.99k|        {
 1157|  2.99k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  2.99k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  2.99k|        {
 1163|  2.99k|            TypeR temp{other.cast<TypeR>()};
 1164|  2.99k|            other.construct<TypeL>(cast<TypeL>());
 1165|  2.99k|            construct<TypeR>(temp);
 1166|  2.99k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19byte_string_storageEEEvRS5_:
 1156|  2.62k|        {
 1157|  2.62k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  2.62k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  2.62k|        {
 1163|  2.62k|            TypeR temp{other.cast<TypeR>()};
 1164|  2.62k|            other.construct<TypeL>(cast<TypeL>());
 1165|  2.62k|            construct<TypeR>(temp);
 1166|  2.62k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_13array_storageEEEvRS5_:
 1156|  1.34k|        {
 1157|  1.34k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  1.34k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  1.34k|        {
 1163|  1.34k|            TypeR temp{other.cast<TypeR>()};
 1164|  1.34k|            other.construct<TypeL>(cast<TypeL>());
 1165|  1.34k|            construct<TypeR>(temp);
 1166|  1.34k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_14object_storageEEEvRS5_:
 1156|  2.39k|        {
 1157|  2.39k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1158|  2.39k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1162|  2.39k|        {
 1163|  2.39k|            TypeR temp{other.cast<TypeR>()};
 1164|  2.39k|            other.construct<TypeL>(cast<TypeL>());
 1165|  2.39k|            construct<TypeR>(temp);
 1166|  2.39k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ImEET_NS_12semantic_tagENS2_9enable_ifIXaasr6nonstd19is_unsigned_integerIS7_EE5valuelestS7_Lm8EEiE4typeE:
 2614|  11.2M|        {
 2615|  11.2M|            construct<uint64_storage>(val, tag);
 2616|  11.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14uint64_storageEJRmRNS_12semantic_tagEEEEvDpOT0_:
  995|  11.2M|        {
  996|  11.2M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  11.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14uint64_storageC2EmNS_12semantic_tagE:
  516|  11.2M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::uint64)), short_str_length_(0), tag_(tag),
  517|  11.2M|                  val_(val)
  518|  11.2M|            {
  519|  11.2M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2IlEET_NS_12semantic_tagENS2_9enable_ifIXaasr6nonstd17is_signed_integerIS7_EE5valuelestS7_Lm8EEiE4typeE:
 2645|  2.17M|        {
 2646|  2.17M|            construct<int64_storage>(val, tag);
 2647|  2.17M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13int64_storageEJRlRNS_12semantic_tagEEEEvDpOT0_:
  995|  2.17M|        {
  996|  2.17M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  2.17M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13int64_storageC2ElNS_12semantic_tagE:
  496|  2.17M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::int64)), short_str_length_(0), tag_(tag),
  497|  2.17M|                  val_(val)
  498|  2.17M|            {
  499|  2.17M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EdNS_12semantic_tagE:
 2602|  64.3k|        {
 2603|  64.3k|            construct<double_storage>(val, tag);
 2604|  64.3k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14double_storageEJRdRNS_12semantic_tagEEEEvDpOT0_:
  995|  64.3k|        {
  996|  64.3k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  64.3k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14double_storageC2EdNS_12semantic_tagE:
  555|  64.3k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::float64)), short_str_length_(0), tag_(tag),
  556|  64.3k|                  val_(val)
  557|  64.3k|            {
  558|  64.3k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_16json_array_arg_tENS_12semantic_tagE:
 2401|  5.70M|        {
 2402|  5.70M|            auto ptr = create_array(Allocator());
 2403|  5.70M|            construct<array_storage>(ptr, tag);
 2404|  5.70M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12create_arrayIJEEEPNS_10json_arrayIS5_NS2_6vectorEEERKS4_DpOT_:
  957|  5.70M|        {
  958|  5.70M|            using stor_allocator_type = typename array_storage::allocator_type;
  959|  5.70M|            stor_allocator_type stor_alloc(alloc);
  960|  5.70M|            auto ptr = std::allocator_traits<stor_allocator_type>::allocate(stor_alloc, 1);
  961|  5.70M|            JSONCONS_TRY
  ------------------
  |  |   37|  5.70M|    #define JSONCONS_TRY try
  ------------------
  962|  5.70M|            {
  963|  5.70M|                std::allocator_traits<stor_allocator_type>::construct(stor_alloc, nonstd::to_plain_pointer(ptr), 
  964|  5.70M|                    std::forward<Args>(args)...);
  965|  5.70M|            }
  966|  5.70M|            JSONCONS_CATCH(...)
  967|  5.70M|            {
  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|  5.70M|            return ptr;
  972|  5.70M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13array_storageEJRPNS_10json_arrayIS5_NS2_6vectorEEERNS_12semantic_tagEEEEvDpOT0_:
  995|  5.70M|        {
  996|  5.70M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  5.70M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storageC2EPNS_10json_arrayIS5_NS2_6vectorEEENS_12semantic_tagE:
  722|  5.70M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::array)), short_str_length_(0), tag_(tag), ptr_(ptr)
  723|  5.70M|            {
  724|  5.70M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_9null_typeENS_12semantic_tagE:
 2691|  34.4k|        {
 2692|  34.4k|            construct<null_storage>(tag);
 2693|  34.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJRNS_12semantic_tagEEEEvDpOT0_:
  995|  34.4k|        {
  996|  34.4k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  34.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EbNS_12semantic_tagE:
 2701|  1.72M|        {
 2702|  1.72M|            construct<bool_storage>(val,tag);
 2703|  1.72M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12bool_storageEJRbRNS_12semantic_tagEEEEvDpOT0_:
  995|  1.72M|        {
  996|  1.72M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  1.72M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12bool_storageC2EbNS_12semantic_tagE:
  475|  1.72M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::boolean)), short_str_length_(0), tag_(tag),
  476|  1.72M|                  val_(val)
  477|  1.72M|            {
  478|  1.72M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ERKNS2_17basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagE:
 2549|   122k|            : basic_json(s.data(), s.size(), tag, allocator_type())
 2550|   122k|        {
 2551|   122k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EPKcmNS_12semantic_tagERKS4_:
 2579|   123k|        {
 2580|   123k|            if (length <= short_string_storage::max_length)
  ------------------
  |  Branch (2580:17): [True: 81.3k, False: 42.4k]
  ------------------
 2581|  81.3k|            {
 2582|  81.3k|                construct<short_string_storage>(s, static_cast<uint8_t>(length), tag);
 2583|  81.3k|            }
 2584|  42.4k|            else
 2585|  42.4k|            {
 2586|  42.4k|                auto ptr = create_long_string(alloc, s, length);
 2587|  42.4k|                construct<long_string_storage>(ptr, tag);
 2588|  42.4k|            }
 2589|   123k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20short_string_storageEJRPKchRNS_12semantic_tagEEEEvDpOT0_:
  995|  81.3k|        {
  996|  81.3k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  81.3k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20short_string_storageC2EPKchNS_12semantic_tagE:
  577|  81.3k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::short_str)), short_str_length_(length), tag_(tag)
  578|  81.3k|            {
  579|  81.3k|                JSONCONS_ASSERT(length <= max_length);
  ------------------
  |  |   54|  81.3k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 81.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 ))); }
  ------------------
  580|  81.3k|                std::memcpy(data_,p,length*sizeof(char_type));
  581|  81.3k|                data_[length] = 0;
  582|  81.3k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18create_long_stringERKS4_PKcm:
  943|  42.4k|        {
  944|  42.4k|            using heap_string_factory_type = jsoncons::heap::heap_string_factory<char_type,null_type,Allocator>;
  945|  42.4k|            return heap_string_factory_type::create(data, length, null_type(), alloc); 
  946|  42.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19long_string_storageEJRPNS_4heap11heap_stringIcNS_9null_typeES4_EERNS_12semantic_tagEEEEvDpOT0_:
  995|  42.4k|        {
  996|  42.4k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  42.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19long_string_storageC2EPNS_4heap11heap_stringIcNS_9null_typeES4_EENS_12semantic_tagE:
  621|  42.4k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(tag), ptr_(ptr)
  622|  42.4k|            {
  623|  42.4k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ERKNS2_17basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKS4_:
 2711|  1.31k|            : basic_json(sv.data(), sv.length(), tag, alloc)
 2712|  1.31k|        {
 2713|  1.31k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_NS_12semantic_tagENS2_9enable_ifIXsr6nonstd18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2719|  1.04M|        {
 2720|  1.04M|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2721|       |            
 2722|  1.04M|            auto ptr = create_byte_string(Allocator(), bytes.data(), bytes.size(), 0);
 2723|  1.04M|            construct<byte_string_storage>(ptr, tag);
 2724|  1.04M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18create_byte_stringERKS4_PKhmm:
  950|  1.07M|        {
  951|  1.07M|            using heap_string_factory_type = jsoncons::heap::heap_string_factory<uint8_t,uint64_t,Allocator>;
  952|  1.07M|            return heap_string_factory_type::create(data, length, raw_tag, alloc); 
  953|  1.07M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRPNS_4heap11heap_stringIhmS4_EERNS_12semantic_tagEEEEvDpOT0_:
  995|  1.04M|        {
  996|  1.04M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  1.04M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19byte_string_storageC2EPNS_4heap11heap_stringIhmS4_EENS_12semantic_tagE:
  670|  1.07M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::byte_str)), short_str_length_(0), tag_(tag), ptr_(ptr)
  671|  1.07M|            {
  672|  1.07M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_NS_12semantic_tagERKS4_NS2_9enable_ifIXsr6nonstd18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2731|     26|        {
 2732|     26|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2733|       |
 2734|     26|            auto ptr = create_byte_string(alloc, bytes.data(), bytes.size(), 0);
 2735|     26|            construct<byte_string_storage>(ptr, tag);
 2736|     26|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_mNS2_9enable_ifIXsr6nonstd18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2742|  23.9k|        {
 2743|  23.9k|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2744|       |
 2745|  23.9k|            auto ptr = create_byte_string(Allocator(), bytes.data(), bytes.size(), raw_tag);
 2746|  23.9k|            construct<byte_string_storage>(ptr, semantic_tag::ext);
 2747|  23.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRPNS_4heap11heap_stringIhmS4_EENS_12semantic_tagEEEEvDpOT0_:
  995|  23.9k|        {
  996|  23.9k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  23.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_mRKS4_NS2_9enable_ifIXsr6nonstd18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2754|      4|        {
 2755|      4|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2756|       |
 2757|      4|            auto ptr = create_byte_string(alloc, bytes.data(), bytes.size(), raw_tag);
 2758|      4|            construct<byte_string_storage>(ptr, semantic_tag::ext);
 2759|      4|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_10half_arg_tEtNS_12semantic_tagE:
 2592|  25.6k|        {
 2593|  25.6k|            construct<half_storage>(val, tag);
 2594|  25.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12half_storageEJRtRNS_12semantic_tagEEEEvDpOT0_:
  995|  25.6k|        {
  996|  25.6k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  997|  25.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12half_storageC2EtNS_12semantic_tagE:
  535|  25.6k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::half_float)), short_str_length_(0), tag_(tag),
  536|  25.6k|                  val_(val)
  537|  25.6k|            {
  538|  25.6k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEED2Ev:
 2774|   106M|        {
 2775|   106M|             destroy();
 2776|   106M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE7destroyEv:
  898|   106M|        {
  899|   106M|            switch (storage_kind())
  900|   106M|            {
  901|  42.4k|                case json_storage_kind::long_str:
  ------------------
  |  Branch (901:17): [True: 42.4k, False: 106M]
  ------------------
  902|  42.4k|                {
  903|  42.4k|                    if (cast<long_string_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (903:25): [True: 42.4k, False: 0]
  ------------------
  904|  42.4k|                    {
  905|  42.4k|                        long_string_storage::heap_string_factory_type::destroy(cast<long_string_storage>().ptr_);
  906|  42.4k|                    }
  907|  42.4k|                    break;
  908|      0|                }
  909|  1.07M|                case json_storage_kind::byte_str:
  ------------------
  |  Branch (909:17): [True: 1.07M, False: 105M]
  ------------------
  910|  1.07M|                    if (cast<byte_string_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (910:25): [True: 1.07M, False: 0]
  ------------------
  911|  1.07M|                    {
  912|  1.07M|                        byte_string_storage::heap_string_factory_type::destroy(cast<byte_string_storage>().ptr_);
  913|  1.07M|                    }
  914|  1.07M|                    break;
  915|  5.70M|                case json_storage_kind::array:
  ------------------
  |  Branch (915:17): [True: 5.70M, False: 100M]
  ------------------
  916|  5.70M|                {
  917|  5.70M|                    if (cast<array_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (917:25): [True: 5.70M, False: 0]
  ------------------
  918|  5.70M|                    {
  919|  5.70M|                        auto& stor = cast<array_storage>();
  920|  5.70M|                        typename array_storage::allocator_type alloc{stor.ptr_->get_allocator()};
  921|  5.70M|                        std::allocator_traits<typename array_storage::allocator_type>::destroy(alloc, nonstd::to_plain_pointer(stor.ptr_));
  922|  5.70M|                        std::allocator_traits<typename array_storage::allocator_type>::deallocate(alloc, stor.ptr_,1);
  923|  5.70M|                    }
  924|  5.70M|                    break;
  925|      0|                }
  926|  4.23M|                case json_storage_kind::object:
  ------------------
  |  Branch (926:17): [True: 4.23M, False: 102M]
  ------------------
  927|  4.23M|                {
  928|  4.23M|                    if (cast<object_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (928:25): [True: 4.23M, False: 0]
  ------------------
  929|  4.23M|                    {
  930|  4.23M|                        auto& stor = cast<object_storage>();
  931|  4.23M|                        typename object_storage::allocator_type alloc{stor.ptr_->get_allocator()};
  932|  4.23M|                        std::allocator_traits<typename object_storage::allocator_type>::destroy(alloc, nonstd::to_plain_pointer(stor.ptr_));
  933|  4.23M|                        std::allocator_traits<typename object_storage::allocator_type>::deallocate(alloc, stor.ptr_,1);
  934|  4.23M|                    }
  935|  4.23M|                    break;
  936|      0|                }
  937|  95.2M|                default:
  ------------------
  |  Branch (937:17): [True: 95.2M, False: 11.0M]
  ------------------
  938|  95.2M|                    break;
  939|   106M|            }
  940|   106M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE11array_rangeEv:
 4759|  5.46M|        {
 4760|  5.46M|            switch (storage_kind())
 4761|  5.46M|            {
 4762|  5.46M|                case json_storage_kind::array:
  ------------------
  |  Branch (4762:17): [True: 5.46M, False: 0]
  ------------------
 4763|  5.46M|                    return array_range_type(cast<array_storage>().value().begin(),
 4764|  5.46M|                        cast<array_storage>().value().end());
 4765|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4765:17): [True: 0, False: 5.46M]
  ------------------
 4766|      0|                    return cast<json_ref_storage>().value().array_range();
 4767|      0|                default:
  ------------------
  |  Branch (4767:17): [True: 0, False: 5.46M]
  ------------------
 4768|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an array"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4769|  5.46M|            }
 4770|  5.46M|        }
_ZN8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEEC2ERKS9_SF_:
  348|  5.46M|            : first_(first), last_(last)
  349|  5.46M|        {
  350|  5.46M|        }
_ZNK8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEE5beginEv:
  353|  5.46M|        {
  354|  5.46M|            return first_;
  355|  5.46M|        }
_ZNK8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEE3endEv:
  357|  5.46M|        {
  358|  5.46M|            return last_;
  359|  5.46M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE5emptyEv:
 3425|  5.46M|        {
 3426|  5.46M|            switch (storage_kind())
 3427|  5.46M|            {
 3428|      0|                case json_storage_kind::byte_str:
  ------------------
  |  Branch (3428:17): [True: 0, False: 5.46M]
  ------------------
 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: 5.46M]
  ------------------
 3432|      0|                    return cast<short_string_storage>().length() == 0;
 3433|      0|                case json_storage_kind::long_str:
  ------------------
  |  Branch (3433:17): [True: 0, False: 5.46M]
  ------------------
 3434|      0|                    return cast<long_string_storage>().length() == 0;
 3435|  5.34M|                case json_storage_kind::array:
  ------------------
  |  Branch (3435:17): [True: 5.34M, False: 112k]
  ------------------
 3436|  5.34M|                    return cast<array_storage>().value().empty();
 3437|      0|                case json_storage_kind::empty_object:
  ------------------
  |  Branch (3437:17): [True: 0, False: 5.46M]
  ------------------
 3438|      0|                    return true;
 3439|   112k|                case json_storage_kind::object:
  ------------------
  |  Branch (3439:17): [True: 112k, False: 5.34M]
  ------------------
 3440|   112k|                    return cast<object_storage>().value().empty();
 3441|      0|                case json_storage_kind::const_json_ref:
  ------------------
  |  Branch (3441:17): [True: 0, False: 5.46M]
  ------------------
 3442|      0|                    return cast<const_json_ref_storage>().value().empty();
 3443|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (3443:17): [True: 0, False: 5.46M]
  ------------------
 3444|      0|                    return cast<json_ref_storage>().value().empty();
 3445|      0|                default:
  ------------------
  |  Branch (3445:17): [True: 0, False: 5.46M]
  ------------------
 3446|      0|                    return false;
 3447|  5.46M|            }
 3448|  5.46M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13array_storageEEERKT_v:
 1010|  5.34M|        {
 1011|  5.34M|            return cast(identity<T>());
 1012|  5.34M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13array_storageEEE:
 1130|  5.34M|        {
 1131|  5.34M|            return array_;
 1132|  5.34M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storage5valueEv:
  755|  5.34M|            {
  756|  5.34M|                return *ptr_;
  757|  5.34M|            }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14object_storageEEERKT_v:
 1010|   112k|        {
 1011|   112k|            return cast(identity<T>());
 1012|   112k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14object_storageEEE:
 1120|   112k|        {
 1121|   112k|            return object_;
 1122|   112k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storage5valueEv:
  801|   112k|            {
  802|   112k|                JSONCONS_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   54|   112k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 112k]
  |  |  ------------------
  |  |   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|   112k|                return *ptr_;
  804|   112k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE5clearEv:
 4156|  7.49M|        {
 4157|  7.49M|            switch (storage_kind())
 4158|  7.49M|            {
 4159|  5.46M|                case json_storage_kind::array:
  ------------------
  |  Branch (4159:17): [True: 5.46M, False: 2.03M]
  ------------------
 4160|  5.46M|                    cast<array_storage>().value().clear();
 4161|  5.46M|                    break;
 4162|  2.03M|                case json_storage_kind::object:
  ------------------
  |  Branch (4162:17): [True: 2.03M, False: 5.46M]
  ------------------
 4163|  2.03M|                    cast<object_storage>().value().clear();
 4164|  2.03M|                    break;
 4165|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4165:17): [True: 0, False: 7.49M]
  ------------------
 4166|      0|                    cast<json_ref_storage>().value().clear();
 4167|      0|                    break;
 4168|      0|                default:
  ------------------
  |  Branch (4168:17): [True: 0, False: 7.49M]
  ------------------
 4169|      0|                    break;
 4170|  7.49M|            }
 4171|  7.49M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12object_rangeEv:
 4725|  2.03M|        {
 4726|  2.03M|            switch (storage_kind())
 4727|  2.03M|            {
 4728|      0|                case json_storage_kind::empty_object:
  ------------------
  |  Branch (4728:17): [True: 0, False: 2.03M]
  ------------------
 4729|      0|                    return object_range_type(object_iterator(), object_iterator());
 4730|  2.03M|                case json_storage_kind::object:
  ------------------
  |  Branch (4730:17): [True: 2.03M, False: 0]
  ------------------
 4731|  2.03M|                    return object_range_type(object_iterator(cast<object_storage>().value().begin()),
 4732|  2.03M|                                                  object_iterator(cast<object_storage>().value().end()));
 4733|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4733:17): [True: 0, False: 2.03M]
  ------------------
 4734|      0|                    return cast<json_ref_storage>().value().object_range();
 4735|      0|                default:
  ------------------
  |  Branch (4735:17): [True: 0, False: 2.03M]
  ------------------
 4736|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an object"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4737|  2.03M|            }
 4738|  2.03M|        }
_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.03M|            : first_(first), last_(last)
  349|  2.03M|        {
  350|  2.03M|        }
_ZN8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEC2ESG_:
  118|  4.07M|            explicit json_object_iterator_adaptor(Iterator ptr) : current_(ptr), has_value_(true)  
  119|  4.07M|            {
  120|  4.07M|            }
_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.03M|        {
  354|  2.03M|            return first_;
  355|  2.03M|        }
_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.03M|        {
  358|  2.03M|            return last_;
  359|  2.03M|        }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEneERKSH_:
  218|  2.08M|            {
  219|  2.08M|                return !(*this == rhs);
  220|  2.08M|            }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEeqERKSH_:
  209|  2.08M|            {
  210|  2.08M|                if (JSONCONS_LIKELY(has_value_ && rhs.has_value_))
  ------------------
  |  |   78|  4.17M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 2.08M, False: 0]
  |  |  |  Branch (78:48): [True: 2.08M, False: 0]
  |  |  |  Branch (78:48): [True: 2.08M, False: 0]
  |  |  ------------------
  ------------------
  211|  2.08M|                {
  212|  2.08M|                    return current_ == rhs.current_;
  213|  2.08M|                }
  214|      0|                return !has_value_ && !rhs.has_value_;
  ------------------
  |  Branch (214:24): [True: 0, False: 0]
  |  Branch (214:39): [True: 0, False: 0]
  ------------------
  215|  2.08M|            }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEdeEv:
  140|  47.0k|            {
  141|  47.0k|                return *current_;
  142|  47.0k|            }
_ZN8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEppEv:
  150|  47.0k|            {
  151|  47.0k|                ++current_;
  152|  47.0k|                return *this;
  153|  47.0k|            }

_ZN8jsoncons12launder_castIPNS_4heap19heap_string_factoryIcNS_9null_typeENSt3__19allocatorIcEEE9storage_tEcEET_PT0_:
  248|  42.4k|    {
  249|  42.4k|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  250|  42.4k|        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|  42.4k|    }
_ZN8jsoncons12launder_castIPNS_4heap19heap_string_factoryIhmNSt3__19allocatorIcEEE9storage_tEcEET_PT0_:
  248|  1.07M|    {
  249|  1.07M|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  250|  1.07M|        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.07M|    }
_ZN8jsoncons12launder_castIPcNS_4heap11heap_stringIcNS_9null_typeENSt3__19allocatorIcEEEEEET_PT0_:
  248|  42.4k|    {
  249|  42.4k|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  250|  42.4k|        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|  42.4k|    }
_ZN8jsoncons12launder_castIPcNS_4heap11heap_stringIhmNSt3__19allocatorIcEEEEEET_PT0_:
  248|  1.07M|    {
  249|  1.07M|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  250|  1.07M|        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.07M|    }

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|  19.5M|        {
 1009|  19.5M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 309k, False: 19.2M]
  ------------------
 1010|   309k|            {
 1011|   309k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 144k, False: 164k]
  |  Branch (1011:86): [True: 89.4k, False: 55.3k]
  ------------------
 1012|  89.4k|                {
 1013|  89.4k|                    key_buffer_.push_back(',');
 1014|  89.4k|                }
 1015|   309k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|   309k|                key_buffer_.push_back('[');
 1017|   309k|            }
 1018|  19.2M|            else
 1019|  19.2M|            {
 1020|  19.2M|                switch (level_stack_.back().target_kind())
 1021|  19.2M|                {
 1022|  7.40M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 7.40M, False: 11.8M]
  ------------------
 1023|  7.40M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 7.26M, False: 131k]
  |  Branch (1023:65): [True: 1.15M, False: 6.11M]
  ------------------
 1024|  1.15M|                        {
 1025|  1.15M|                            key_buffer_.push_back(',');
 1026|  1.15M|                        }
 1027|  7.40M|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|  7.40M|                        key_buffer_.push_back('[');
 1029|  7.40M|                        break;
 1030|  11.8M|                    default:
  ------------------
  |  Branch (1030:21): [True: 11.8M, False: 7.40M]
  ------------------
 1031|  11.8M|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|  11.8M|                        destination_->begin_array(length, tag, context, ec);
 1033|  11.8M|                        break;
 1034|  19.2M|                }
 1035|  19.2M|            }
 1036|  19.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  19.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|  19.5M|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|   431M|            {
  816|   431M|                return even_odd_ == 0;
  817|   431M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|   297M|            {
  826|   297M|                return target_kind_;
  827|   297M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  44.3M|            {
  831|  44.3M|                return count_;
  832|  44.3M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|  47.9M|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 28.1M, False: 19.7M]
  ------------------
  799|  47.9M|            {
  800|  47.9M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|   197M|            {
  821|   197M|                return structure_kind_ == json_structure_kind::object;
  822|   197M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|  18.9M|        {
 1041|  18.9M|            switch (level_stack_.back().target_kind())
 1042|  18.9M|            {
 1043|  7.21M|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 7.21M, False: 11.7M]
  ------------------
 1044|  7.21M|                    key_buffer_.push_back(']');
 1045|  7.21M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  7.21M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 7.21M]
  |  |  ------------------
  |  |   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|  7.21M|                    level_stack_.pop_back();
 1047|  7.21M|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 161k, False: 7.05M]
  ------------------
 1048|   161k|                    {
 1049|   161k|                        destination_->key(key_buffer_, context, ec);
 1050|   161k|                        key_buffer_.clear();
 1051|   161k|                    }
 1052|  7.05M|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 113k, False: 6.93M]
  ------------------
 1053|   113k|                    {
 1054|   113k|                        key_buffer_.push_back(':');
 1055|   113k|                    }
 1056|  7.21M|                    level_stack_.back().advance();
 1057|  7.21M|                    break;
 1058|  11.7M|                default:
  ------------------
  |  Branch (1058:17): [True: 11.7M, False: 7.21M]
  ------------------
 1059|  11.7M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  11.7M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 11.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 ))); }
  ------------------
 1060|  11.7M|                    level_stack_.pop_back();
 1061|  11.7M|                    level_stack_.back().advance();
 1062|  11.7M|                    destination_->end_array(context, ec);
 1063|  11.7M|                    break;
 1064|  18.9M|            }
 1065|  18.9M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  18.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|  18.9M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|   153M|            {
  804|   153M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 116M, False: 36.3M]
  ------------------
  805|   116M|                {
  806|   116M|                    ++count_;
  807|   116M|                }
  808|   153M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 72.6M, False: 80.5M]
  ------------------
  809|  72.6M|                {
  810|  72.6M|                    even_odd_ = !even_odd_;
  811|  72.6M|                }
  812|   153M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  69.2M|        {
 1234|  69.2M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 26.4M, False: 42.7M]
  |  Branch (1234:49): [True: 9.51M, False: 33.2M]
  ------------------
 1235|  35.9M|            {
 1236|  35.9M|                key_.clear();
 1237|  35.9M|                jsoncons::from_integer(value,key_);
 1238|  35.9M|            }
 1239|       |
 1240|  69.2M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 26.4M, False: 42.7M]
  ------------------
 1241|  26.4M|            {
 1242|  26.4M|                switch (level_stack_.back().target_kind())
 1243|  26.4M|                {
 1244|  2.74M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 2.74M, False: 23.7M]
  ------------------
 1245|  2.74M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 2.67M, False: 69.5k]
  ------------------
 1246|  2.67M|                        {
 1247|  2.67M|                            key_buffer_.push_back(',');
 1248|  2.67M|                        }
 1249|  2.74M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  2.74M|                        key_buffer_.push_back(':');
 1251|  2.74M|                        break;
 1252|  23.7M|                    default:
  ------------------
  |  Branch (1252:21): [True: 23.7M, False: 2.74M]
  ------------------
 1253|  23.7M|                        destination_->key(key_, context, ec);
 1254|  23.7M|                        break;
 1255|  26.4M|                }
 1256|  26.4M|            }
 1257|  42.7M|            else
 1258|  42.7M|            {
 1259|  42.7M|                switch (level_stack_.back().target_kind())
 1260|  42.7M|                {
 1261|  9.51M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 9.51M, False: 33.2M]
  ------------------
 1262|  9.51M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 6.73M, False: 2.77M]
  |  Branch (1262:65): [True: 6.49M, False: 242k]
  ------------------
 1263|  6.49M|                        {
 1264|  6.49M|                            key_buffer_.push_back(',');
 1265|  6.49M|                        }
 1266|  9.51M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  9.51M|                        break;
 1268|  33.2M|                    default:
  ------------------
  |  Branch (1268:21): [True: 33.2M, False: 9.51M]
  ------------------
 1269|  33.2M|                        destination_->uint64_value(value, tag, context, ec);
 1270|  33.2M|                        break;
 1271|  42.7M|                }
 1272|  42.7M|            }
 1273|       |
 1274|  69.2M|            level_stack_.back().advance();
 1275|  69.2M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  69.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  69.2M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  14.6M|        {
 1280|  14.6M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 1.80M, False: 12.8M]
  |  Branch (1280:49): [True: 6.28M, False: 6.52M]
  ------------------
 1281|  8.08M|            {
 1282|  8.08M|                key_.clear();
 1283|  8.08M|                jsoncons::from_integer(value,key_);
 1284|  8.08M|            }
 1285|       |
 1286|  14.6M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 1.80M, False: 12.8M]
  ------------------
 1287|  1.80M|            {
 1288|  1.80M|                switch (level_stack_.back().target_kind())
 1289|  1.80M|                {
 1290|   328k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 328k, False: 1.47M]
  ------------------
 1291|   328k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 280k, False: 48.0k]
  ------------------
 1292|   280k|                        {
 1293|   280k|                            key_buffer_.push_back(',');
 1294|   280k|                        }
 1295|   328k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|   328k|                        key_buffer_.push_back(':');
 1297|   328k|                        break;
 1298|  1.47M|                    default:
  ------------------
  |  Branch (1298:21): [True: 1.47M, False: 328k]
  ------------------
 1299|  1.47M|                        destination_->key(key_, context, ec);
 1300|  1.47M|                        break;
 1301|  1.80M|                }
 1302|  1.80M|            }
 1303|  12.8M|            else
 1304|  12.8M|            {
 1305|  12.8M|                switch (level_stack_.back().target_kind())
 1306|  12.8M|                {
 1307|  6.28M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 6.28M, False: 6.52M]
  ------------------
 1308|  6.28M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 5.96M, False: 316k]
  |  Branch (1308:65): [True: 5.67M, False: 288k]
  ------------------
 1309|  5.67M|                        {
 1310|  5.67M|                            key_buffer_.push_back(',');
 1311|  5.67M|                        }
 1312|  6.28M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  6.28M|                        break;
 1314|  6.52M|                    default:
  ------------------
  |  Branch (1314:21): [True: 6.52M, False: 6.28M]
  ------------------
 1315|  6.52M|                        destination_->int64_value(value, tag, context, ec);
 1316|  6.52M|                        break;
 1317|  12.8M|                }
 1318|  12.8M|            }
 1319|       |
 1320|  14.6M|            level_stack_.back().advance();
 1321|  14.6M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  14.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  14.6M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|  4.57M|        {
 1375|  4.57M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 190k, False: 4.38M]
  |  Branch (1375:49): [True: 4.19M, False: 193k]
  ------------------
 1376|  4.38M|            {
 1377|  4.38M|                key_.clear();
 1378|  4.38M|                string_sink<string_type> sink(key_);
 1379|  4.38M|                jsoncons::write_double f{float_chars_format::general,0};
 1380|  4.38M|                f(value, sink);
 1381|  4.38M|            }
 1382|       |
 1383|  4.57M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 190k, False: 4.38M]
  ------------------
 1384|   190k|            {
 1385|   190k|                switch (level_stack_.back().target_kind())
 1386|   190k|                {
 1387|   167k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 167k, False: 22.8k]
  ------------------
 1388|   167k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 161k, False: 5.27k]
  ------------------
 1389|   161k|                        {
 1390|   161k|                            key_buffer_.push_back(',');
 1391|   161k|                        }
 1392|   167k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|   167k|                        key_buffer_.push_back(':');
 1394|   167k|                        break;
 1395|  22.8k|                    default:
  ------------------
  |  Branch (1395:21): [True: 22.8k, False: 167k]
  ------------------
 1396|  22.8k|                        destination_->key(key_, context, ec);
 1397|  22.8k|                        break;
 1398|   190k|                }
 1399|   190k|            }
 1400|  4.38M|            else
 1401|  4.38M|            {
 1402|  4.38M|                switch (level_stack_.back().target_kind())
 1403|  4.38M|                {
 1404|  4.19M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 4.19M, False: 193k]
  ------------------
 1405|  4.19M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 4.02M, False: 164k]
  |  Branch (1405:65): [True: 3.96M, False: 61.8k]
  ------------------
 1406|  3.96M|                        {
 1407|  3.96M|                            key_buffer_.push_back(',');
 1408|  3.96M|                        }
 1409|  4.19M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|  4.19M|                        break;
 1411|   193k|                    default:
  ------------------
  |  Branch (1411:21): [True: 193k, False: 4.19M]
  ------------------
 1412|   193k|                        destination_->double_value(value, tag, context, ec);
 1413|   193k|                        break;
 1414|  4.38M|                }
 1415|  4.38M|            }
 1416|       |
 1417|  4.57M|            level_stack_.back().advance();
 1418|  4.57M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.57M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|  4.57M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|  7.29k|        {
  882|  7.29k|            destination_->flush();
  883|  7.29k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  886|   113k|        {
  887|   113k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (887:17): [True: 38.0k, False: 75.0k]
  ------------------
  888|  38.0k|            {
  889|  38.0k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (889:21): [True: 32.7k, False: 5.26k]
  |  Branch (889:86): [True: 5.72k, False: 27.0k]
  ------------------
  890|  5.72k|                {
  891|  5.72k|                    key_buffer_.push_back(',');
  892|  5.72k|                }
  893|  38.0k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  894|  38.0k|                key_buffer_.push_back('{');
  895|  38.0k|            }
  896|  75.0k|            else
  897|  75.0k|            {
  898|  75.0k|                switch (level_stack_.back().target_kind())
  899|  75.0k|                {
  900|  44.4k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (900:21): [True: 44.4k, False: 30.6k]
  ------------------
  901|  44.4k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  902|  44.4k|                        key_buffer_.push_back('{');
  903|  44.4k|                        break;
  904|  30.6k|                    default:
  ------------------
  |  Branch (904:21): [True: 30.6k, False: 44.4k]
  ------------------
  905|  30.6k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  906|  30.6k|                        destination_->begin_object(tag, context, ec);
  907|  30.6k|                        break;
  908|  75.0k|                }
  909|  75.0k|            }
  910|   113k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   113k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  911|   113k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|  28.0M|        {
  915|  28.0M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 4.11M, False: 23.9M]
  ------------------
  916|  4.11M|            {
  917|  4.11M|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 704k, False: 3.40M]
  |  Branch (917:86): [True: 555k, False: 148k]
  ------------------
  918|   555k|                {
  919|   555k|                    key_buffer_.push_back(',');
  920|   555k|                }
  921|  4.11M|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|  4.11M|                key_buffer_.push_back('{');
  923|  4.11M|            }
  924|  23.9M|            else
  925|  23.9M|            {
  926|  23.9M|                switch (level_stack_.back().target_kind())
  927|  23.9M|                {
  928|  11.2M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 11.2M, False: 12.6M]
  ------------------
  929|  11.2M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 10.6M, False: 584k]
  |  Branch (929:65): [True: 10.0M, False: 629k]
  ------------------
  930|  10.0M|                        {
  931|  10.0M|                            key_buffer_.push_back(',');
  932|  10.0M|                        }
  933|  11.2M|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|  11.2M|                        key_buffer_.push_back('{');
  935|  11.2M|                        break;
  936|  12.6M|                    default:
  ------------------
  |  Branch (936:21): [True: 12.6M, False: 11.2M]
  ------------------
  937|  12.6M|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  12.6M|                        destination_->begin_object(length, tag, context, ec);
  939|  12.6M|                        break;
  940|  23.9M|                }
  941|  23.9M|            }
  942|  28.0M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  28.0M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|  28.0M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|  27.8M|        {
  947|  27.8M|            switch (level_stack_.back().target_kind())
  948|  27.8M|            {
  949|  15.1M|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 15.1M, False: 12.6M]
  ------------------
  950|  15.1M|                    key_buffer_.push_back('}');
  951|  15.1M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  15.1M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 15.1M]
  |  |  ------------------
  |  |   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.1M|                    level_stack_.pop_back();
  953|       |                    
  954|  15.1M|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 3.40M, False: 11.7M]
  ------------------
  955|  3.40M|                    {
  956|  3.40M|                        destination_->key(key_buffer_,context, ec);
  957|  3.40M|                        key_buffer_.clear();
  958|  3.40M|                    }
  959|  11.7M|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 573k, False: 11.1M]
  ------------------
  960|   573k|                    {
  961|   573k|                        key_buffer_.push_back(':');
  962|   573k|                    }
  963|  15.1M|                    level_stack_.back().advance();
  964|  15.1M|                    break;
  965|  12.6M|                default:
  ------------------
  |  Branch (965:17): [True: 12.6M, False: 15.1M]
  ------------------
  966|  12.6M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   54|  12.6M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 12.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 ))); }
  ------------------
  967|  12.6M|                    level_stack_.pop_back();
  968|  12.6M|                    level_stack_.back().advance();
  969|  12.6M|                    destination_->end_object(context, ec);
  970|  12.6M|                    break;
  971|  27.8M|            }
  972|  27.8M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  27.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|  27.8M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  976|   184k|        {
  977|   184k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (977:17): [True: 17.9k, False: 166k]
  ------------------
  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: 14.5k, False: 3.33k]
  |  Branch (979:86): [True: 5.11k, False: 9.45k]
  ------------------
  980|  5.11k|                {
  981|  5.11k|                    key_buffer_.push_back(',');
  982|  5.11k|                }
  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|   166k|            else
  987|   166k|            {
  988|   166k|                switch (level_stack_.back().target_kind())
  989|   166k|                {
  990|   105k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (990:21): [True: 105k, False: 60.8k]
  ------------------
  991|   105k|                        if (level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (991:29): [True: 5.88k, False: 99.7k]
  |  Branch (991:64): [True: 4.73k, False: 1.15k]
  ------------------
  992|  4.73k|                        {
  993|  4.73k|                            key_buffer_.push_back(',');
  994|  4.73k|                        }
  995|   105k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
  996|   105k|                        key_buffer_.push_back('[');
  997|   105k|                        break;
  998|  60.8k|                    default:
  ------------------
  |  Branch (998:21): [True: 60.8k, False: 105k]
  ------------------
  999|  60.8k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1000|  60.8k|                        destination_->begin_array(tag, context, ec);
 1001|  60.8k|                        break;
 1002|   166k|                }
 1003|   166k|            }
 1004|   184k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   184k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1005|   184k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|   219k|        {
 1476|   219k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 52.3k, False: 167k]
  |  Branch (1476:49): [True: 63.9k, False: 103k]
  ------------------
 1477|   116k|            {
 1478|   116k|                key_.clear(); 
 1479|   116k|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|   116k|            }
 1481|       |
 1482|   219k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 52.3k, False: 167k]
  ------------------
 1483|  52.3k|            {
 1484|  52.3k|                switch (level_stack_.back().target_kind())
 1485|  52.3k|                {
 1486|  25.4k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 25.4k, False: 26.9k]
  ------------------
 1487|  25.4k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 16.3k, False: 9.11k]
  ------------------
 1488|  16.3k|                        {
 1489|  16.3k|                            key_buffer_.push_back(',');
 1490|  16.3k|                        }
 1491|  25.4k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|  25.4k|                        key_buffer_.push_back(':');
 1493|  25.4k|                        break;
 1494|  26.9k|                    default:
  ------------------
  |  Branch (1494:21): [True: 26.9k, False: 25.4k]
  ------------------
 1495|  26.9k|                        destination_->key(key_, context, ec);
 1496|  26.9k|                        break;
 1497|  52.3k|                }
 1498|  52.3k|            }
 1499|   167k|            else
 1500|   167k|            {
 1501|   167k|                switch (level_stack_.back().target_kind())
 1502|   167k|                {
 1503|  63.9k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 63.9k, False: 103k]
  ------------------
 1504|  63.9k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 42.1k, False: 21.8k]
  |  Branch (1504:65): [True: 38.0k, False: 4.08k]
  ------------------
 1505|  38.0k|                        {
 1506|  38.0k|                            key_buffer_.push_back(',');
 1507|  38.0k|                        }
 1508|  63.9k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|  63.9k|                        break;
 1510|   103k|                    default:
  ------------------
  |  Branch (1510:21): [True: 103k, False: 63.9k]
  ------------------
 1511|   103k|                        destination_->null_value(tag, context, ec);
 1512|   103k|                        break;
 1513|   167k|                }
 1514|   167k|            }
 1515|       |
 1516|   219k|            level_stack_.back().advance();
 1517|   219k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   219k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|   219k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  5.69M|        {
 1423|  5.69M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 209k, False: 5.48M]
  |  Branch (1423:49): [True: 311k, False: 5.17M]
  ------------------
 1424|   520k|            {
 1425|   520k|                key_.clear(); 
 1426|   520k|                if (value)
  ------------------
  |  Branch (1426:21): [True: 200k, False: 319k]
  ------------------
 1427|   200k|                {
 1428|   200k|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|   200k|                }
 1430|   319k|                else
 1431|   319k|                {
 1432|   319k|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|   319k|                }
 1434|   520k|            }
 1435|       |
 1436|  5.69M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 209k, False: 5.48M]
  ------------------
 1437|   209k|            {
 1438|   209k|                switch (level_stack_.back().target_kind())
 1439|   209k|                {
 1440|   149k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 149k, False: 59.0k]
  ------------------
 1441|   149k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 144k, False: 5.12k]
  ------------------
 1442|   144k|                        {
 1443|   144k|                            key_buffer_.push_back(',');
 1444|   144k|                        }
 1445|   149k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|   149k|                        key_buffer_.push_back(':');
 1447|   149k|                        break;
 1448|  59.0k|                    default:
  ------------------
  |  Branch (1448:21): [True: 59.0k, False: 149k]
  ------------------
 1449|  59.0k|                        destination_->key(key_, context, ec);
 1450|  59.0k|                        break;
 1451|   209k|                }
 1452|   209k|            }
 1453|  5.48M|            else
 1454|  5.48M|            {
 1455|  5.48M|                switch (level_stack_.back().target_kind())
 1456|  5.48M|                {
 1457|   311k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 311k, False: 5.17M]
  ------------------
 1458|   311k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 145k, False: 165k]
  |  Branch (1458:65): [True: 113k, False: 32.6k]
  ------------------
 1459|   113k|                        {
 1460|   113k|                            key_buffer_.push_back(',');
 1461|   113k|                        }
 1462|   311k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|   311k|                        break;
 1464|  5.17M|                    default:
  ------------------
  |  Branch (1464:21): [True: 5.17M, False: 311k]
  ------------------
 1465|  5.17M|                        destination_->bool_value(value, tag, context, ec);
 1466|  5.17M|                        break;
 1467|  5.48M|                }
 1468|  5.48M|            }
 1469|       |
 1470|  5.69M|            level_stack_.back().advance();
 1471|  5.69M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  5.69M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  5.69M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|   974k|        {
 1073|   974k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 316k, False: 657k]
  ------------------
 1074|   316k|            {
 1075|   316k|                switch (level_stack_.back().target_kind())
 1076|   316k|                {
 1077|   127k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 127k, False: 188k]
  ------------------
 1078|   127k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 92.6k, False: 35.1k]
  ------------------
 1079|  92.6k|                        {
 1080|  92.6k|                            key_buffer_.push_back(',');
 1081|  92.6k|                        }
 1082|   127k|                        key_buffer_.push_back('\"');
 1083|   127k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|   127k|                        key_buffer_.push_back('\"');
 1085|   127k|                        key_buffer_.push_back(':');
 1086|   127k|                        break;
 1087|   188k|                    default:
  ------------------
  |  Branch (1087:21): [True: 188k, False: 127k]
  ------------------
 1088|   188k|                        destination_->key(value, context, ec);
 1089|   188k|                        break;
 1090|   316k|                }
 1091|   316k|            }
 1092|   657k|            else
 1093|   657k|            {
 1094|   657k|                switch (level_stack_.back().target_kind())
 1095|   657k|                {
 1096|   286k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 286k, False: 371k]
  ------------------
 1097|   286k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 193k, False: 93.0k]
  |  Branch (1097:65): [True: 140k, False: 53.0k]
  ------------------
 1098|   140k|                        {
 1099|   140k|                            key_buffer_.push_back(',');
 1100|   140k|                        }
 1101|   286k|                        key_buffer_.push_back('\"');
 1102|   286k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|   286k|                        key_buffer_.push_back('\"');
 1104|   286k|                        break;
 1105|   371k|                    default:
  ------------------
  |  Branch (1105:21): [True: 371k, False: 286k]
  ------------------
 1106|   371k|                        destination_->string_value(value, tag, context, ec);
 1107|   371k|                        break;
 1108|   657k|                }
 1109|   657k|            }
 1110|       |
 1111|   974k|            level_stack_.back().advance();
 1112|   974k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   974k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|   974k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  10.7M|        {
 1120|  10.7M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 2.96M, False: 7.74M]
  |  Branch (1120:49): [True: 4.60M, False: 3.14M]
  ------------------
 1121|  7.56M|            {
 1122|  7.56M|                key_.clear();
 1123|  7.56M|                switch (tag)
 1124|  7.56M|                {
 1125|  7.84k|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 7.84k, False: 7.55M]
  ------------------
 1126|  7.84k|                        bytes_to_base64(value.begin(), value.end(), key_);
 1127|  7.84k|                        break;
 1128|  8.00k|                    case semantic_tag::base16:
  ------------------
  |  Branch (1128:21): [True: 8.00k, False: 7.55M]
  ------------------
 1129|  8.00k|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|  8.00k|                        break;
 1131|  7.55M|                    default:
  ------------------
  |  Branch (1131:21): [True: 7.55M, False: 15.8k]
  ------------------
 1132|  7.55M|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  7.55M|                        break;
 1134|  7.56M|                }
 1135|  7.56M|            }
 1136|       |
 1137|  10.7M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 2.96M, False: 7.74M]
  ------------------
 1138|  2.96M|            {
 1139|  2.96M|                switch (level_stack_.back().target_kind())
 1140|  2.96M|                {
 1141|   622k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 622k, False: 2.33M]
  ------------------
 1142|   622k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 576k, False: 46.3k]
  ------------------
 1143|   576k|                        {
 1144|   576k|                            key_buffer_.push_back(',');
 1145|   576k|                        }
 1146|   622k|                        key_buffer_.push_back('\"');
 1147|   622k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|   622k|                        key_buffer_.push_back('\"');
 1149|   622k|                        key_buffer_.push_back(':');
 1150|   622k|                        break;
 1151|  2.33M|                    default:
  ------------------
  |  Branch (1151:21): [True: 2.33M, False: 622k]
  ------------------
 1152|  2.33M|                        destination_->key(key_, context, ec);
 1153|  2.33M|                        break;
 1154|  2.96M|                }
 1155|  2.96M|            }
 1156|  7.74M|            else
 1157|  7.74M|            {
 1158|  7.74M|                switch (level_stack_.back().target_kind())
 1159|  7.74M|                {
 1160|  4.60M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 4.60M, False: 3.14M]
  ------------------
 1161|  4.60M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 4.02M, False: 583k]
  |  Branch (1161:65): [True: 3.96M, False: 56.0k]
  ------------------
 1162|  3.96M|                        {
 1163|  3.96M|                            key_buffer_.push_back(',');
 1164|  3.96M|                        }
 1165|  4.60M|                        key_buffer_.push_back('\"');
 1166|  4.60M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  4.60M|                        key_buffer_.push_back('\"');
 1168|  4.60M|                        break;
 1169|  3.14M|                    default:
  ------------------
  |  Branch (1169:21): [True: 3.14M, False: 4.60M]
  ------------------
 1170|  3.14M|                        destination_->byte_string_value(value, tag, context, ec);
 1171|  3.14M|                        break;
 1172|  7.74M|                }
 1173|  7.74M|            }
 1174|       |
 1175|  10.7M|            level_stack_.back().advance();
 1176|  10.7M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  10.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  10.7M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|   221k|        {
 1184|   221k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 49.6k, False: 171k]
  |  Branch (1184:49): [True: 100k, False: 71.7k]
  ------------------
 1185|   149k|            {
 1186|   149k|                key_.clear();
 1187|   149k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|   149k|            }
 1189|       |
 1190|   221k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 49.6k, False: 171k]
  ------------------
 1191|  49.6k|            {
 1192|  49.6k|                switch (level_stack_.back().target_kind())
 1193|  49.6k|                {
 1194|  23.9k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 23.9k, False: 25.6k]
  ------------------
 1195|  23.9k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 22.2k, False: 1.69k]
  ------------------
 1196|  22.2k|                        {
 1197|  22.2k|                            key_buffer_.push_back(',');
 1198|  22.2k|                        }
 1199|  23.9k|                        key_buffer_.push_back('\"');
 1200|  23.9k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|  23.9k|                        key_buffer_.push_back('\"');
 1202|  23.9k|                        key_buffer_.push_back(':');
 1203|  23.9k|                        break;
 1204|  25.6k|                    default:
  ------------------
  |  Branch (1204:21): [True: 25.6k, False: 23.9k]
  ------------------
 1205|  25.6k|                        destination_->key(key_, context, ec);
 1206|  25.6k|                        break;
 1207|  49.6k|                }
 1208|  49.6k|            }
 1209|   171k|            else
 1210|   171k|            {
 1211|   171k|                switch (level_stack_.back().target_kind())
 1212|   171k|                {
 1213|   100k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 100k, False: 71.7k]
  ------------------
 1214|   100k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 86.5k, False: 13.4k]
  |  Branch (1214:65): [True: 79.6k, False: 6.92k]
  ------------------
 1215|  79.6k|                        {
 1216|  79.6k|                            key_buffer_.push_back(',');
 1217|  79.6k|                        }
 1218|   100k|                        key_buffer_.push_back('\"');
 1219|   100k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|   100k|                        key_buffer_.push_back('\"');
 1221|   100k|                        break;
 1222|  71.7k|                    default:
  ------------------
  |  Branch (1222:21): [True: 71.7k, False: 100k]
  ------------------
 1223|  71.7k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|  71.7k|                        break;
 1225|   171k|                }
 1226|   171k|            }
 1227|       |
 1228|   221k|            level_stack_.back().advance();
 1229|   221k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   221k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|   221k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1325|   222k|        {
 1326|   222k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1326:17): [True: 71.3k, False: 151k]
  |  Branch (1326:49): [True: 74.7k, False: 76.8k]
  ------------------
 1327|   146k|            {
 1328|   146k|                key_.clear();
 1329|   146k|                jsoncons::string_sink<string_type> sink(key_);
 1330|   146k|                jsoncons::write_double f{float_chars_format::general,0};
 1331|   146k|                double x = binary::decode_half(value);
 1332|   146k|                f(x, sink);
 1333|   146k|            }
 1334|       |
 1335|   222k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1335:17): [True: 71.3k, False: 151k]
  ------------------
 1336|  71.3k|            {
 1337|  71.3k|                switch (level_stack_.back().target_kind())
 1338|  71.3k|                {
 1339|  32.4k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1339:21): [True: 32.4k, False: 38.8k]
  ------------------
 1340|  32.4k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1340:29): [True: 25.7k, False: 6.71k]
  ------------------
 1341|  25.7k|                        {
 1342|  25.7k|                            key_buffer_.push_back(',');
 1343|  25.7k|                        }
 1344|  32.4k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1345|  32.4k|                        key_buffer_.push_back(':');
 1346|  32.4k|                        break;
 1347|  38.8k|                    default:
  ------------------
  |  Branch (1347:21): [True: 38.8k, False: 32.4k]
  ------------------
 1348|  38.8k|                        destination_->key(key_, context, ec);
 1349|  38.8k|                        break;
 1350|  71.3k|                }
 1351|  71.3k|            }
 1352|   151k|            else
 1353|   151k|            {
 1354|   151k|                switch (level_stack_.back().target_kind())
 1355|   151k|                {
 1356|  74.7k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1356:21): [True: 74.7k, False: 76.8k]
  ------------------
 1357|  74.7k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1357:29): [True: 47.2k, False: 27.4k]
  |  Branch (1357:65): [True: 34.2k, False: 12.9k]
  ------------------
 1358|  34.2k|                        {
 1359|  34.2k|                            key_buffer_.push_back(',');
 1360|  34.2k|                        }
 1361|  74.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1362|  74.7k|                        break;
 1363|  76.8k|                    default:
  ------------------
  |  Branch (1363:21): [True: 76.8k, False: 74.7k]
  ------------------
 1364|  76.8k|                        destination_->half_value(value, tag, context, ec);
 1365|  76.8k|                        break;
 1366|   151k|                }
 1367|   151k|            }
 1368|       |
 1369|   222k|            level_stack_.back().advance();
 1370|   222k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   222k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1371|   222k|        }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|  20.4M|    {
  295|  20.4M|        visit_begin_array(length, tag, context, ec);
  296|  20.4M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  20.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|  20.4M|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|   115M|    {
  364|   115M|        visit_uint64(value, tag, context, ec);
  365|   115M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   115M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|   115M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|  19.6M|    {
  301|  19.6M|        visit_end_array(context, ec);
  302|  19.6M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  19.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|  19.6M|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  24.5M|    {
  373|  24.5M|        visit_int64(value, tag, context, ec);
  374|  24.5M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  24.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  24.5M|    }
_ZN8jsoncons21basic_generic_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  381|   383k|    {
  382|   383k|        visit_half(value, tag, context, ec);
  383|   383k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   383k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  384|   383k|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|  7.71M|    {
  391|  7.71M|        visit_double(value, tag, context, ec);
  392|  7.71M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  7.71M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|  7.71M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  20.5M|    {
  344|  20.5M|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  20.5M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  20.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  20.5M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|   413k|    {
  355|   413k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|   413k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   413k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|   413k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  9.57M|    {
  324|  9.57M|        visit_bool(value, tag, context, ec);
  325|  9.57M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.57M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  9.57M|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|   376k|    {
  315|   376k|        visit_null(tag, context, ec);
  316|   376k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   376k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|   376k|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|  1.74M|    {
  333|  1.74M|        visit_string(value, tag, context, ec);
  334|  1.74M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.74M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|  1.74M|    }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  288|   307k|    {
  289|   307k|        visit_begin_array(tag, context, ec);
  290|   307k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   307k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  291|   307k|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  267|   191k|    {
  268|   191k|        visit_begin_object(tag, context, ec);
  269|   191k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   191k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  270|   191k|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|  46.9M|    {
  277|  46.9M|        visit_begin_object(length, tag, context, ec);
  278|  46.9M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  46.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|  46.9M|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|  46.4M|    {
  283|  46.4M|        visit_end_object(context, ec);
  284|  46.4M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  46.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|  46.4M|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|  19.0k|    {
   58|  19.0k|        visit_flush();
   59|  19.0k|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextE:
  123|  4.98k|    {
  124|  4.98k|        std::error_code ec;
  125|  4.98k|        visit_end_array(context, ec);
  126|  4.98k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.98k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.98k]
  |  |  ------------------
  ------------------
  127|      0|        {
  128|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  129|      0|        }
  130|  4.98k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.98k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  131|  4.98k|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  50.5k|            : destination_(std::addressof(visitor)), 
  856|  50.5k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  50.5k|        {
  858|  50.5k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  50.5k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|   103k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextE:
   99|  4.98k|    {
  100|  4.98k|        std::error_code ec;
  101|  4.98k|        visit_begin_array(tag, context, ec);
  102|  4.98k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.98k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.98k]
  |  |  ------------------
  ------------------
  103|      0|        {
  104|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  105|      0|        }
  106|  4.98k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.98k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  107|  4.98k|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextE:
  172|  1.31k|    {
  173|  1.31k|        std::error_code ec;
  174|  1.31k|        visit_string(value, tag, context, ec);
  175|  1.31k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.31k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.31k]
  |  |  ------------------
  ------------------
  176|      0|        {
  177|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  178|      0|        }
  179|  1.31k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.31k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  180|  1.31k|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextENSt3__19enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  187|     27|    {
  188|     27|        std::error_code ec;
  189|     27|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  190|     27|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     27|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 27]
  |  |  ------------------
  ------------------
  191|      0|        {
  192|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  193|      0|        }
  194|     27|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|     27|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  195|     27|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextE:
  146|      5|    {
  147|      5|        std::error_code ec;
  148|      5|        visit_null(tag, context, ec);
  149|      5|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      5|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  150|      0|        {
  151|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  152|      0|        }
  153|      5|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      5|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  154|      5|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextE:
  159|      5|    {
  160|      5|        std::error_code ec;
  161|      5|        visit_bool(value, tag, context, ec);
  162|      5|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      5|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5]
  |  |  ------------------
  ------------------
  163|      0|        {
  164|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  165|      0|        }
  166|      5|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      5|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  167|      5|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextE:
  228|    195|    {
  229|    195|        std::error_code ec;
  230|    195|        visit_int64(value, tag, context, ec);
  231|    195|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    195|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 195]
  |  |  ------------------
  ------------------
  232|      0|        {
  233|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  234|      0|        }
  235|    195|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|    195|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  236|    195|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextE:
  215|    107|    {
  216|    107|        std::error_code ec;
  217|    107|        visit_uint64(value, tag, context, ec);
  218|    107|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    107|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 107]
  |  |  ------------------
  ------------------
  219|      0|        {
  220|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  221|      0|        }
  222|    107|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|    107|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  223|    107|    }
_ZN8jsoncons21basic_generic_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextE:
  241|      2|    {
  242|      2|        std::error_code ec;
  243|      2|        visit_half(value, tag, context, ec);
  244|      2|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      2|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2]
  |  |  ------------------
  ------------------
  245|      0|        {
  246|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  247|      0|        }
  248|      2|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  249|      2|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextE:
  254|     82|    {
  255|     82|        std::error_code ec;
  256|     82|        visit_double(value, tag, context, ec);
  257|     82|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|     82|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 82]
  |  |  ------------------
  ------------------
  258|      0|        {
  259|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  260|      0|        }
  261|     82|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|     82|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  262|     82|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextE:
   87|  8.79k|    {
   88|  8.79k|        std::error_code ec;
   89|  8.79k|        visit_end_object(context, ec);
   90|  8.79k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.79k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.79k]
  |  |  ------------------
  ------------------
   91|      0|        {
   92|      0|            JSONCONS_THROW(ser_error(ec, context.line(), context.column()));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
   93|      0|        }
   94|  8.79k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  8.79k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
   95|  8.79k|    }

_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE7reserveEm:
  153|  5.58M|        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|  9.25M|        {
  179|  9.25M|            data_.emplace_back(std::forward<T>(value));
  180|  9.25M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEEC2Ev:
   46|  5.70M|        json_array() = default;
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEED2Ev:
  105|  5.72M|        {
  106|  5.72M|            flatten_and_destroy();
  107|  5.72M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE19flatten_and_destroyEv:
  248|  5.72M|        {
  249|  14.6M|            while (!data_.empty())
  ------------------
  |  Branch (249:20): [True: 8.95M, False: 5.72M]
  ------------------
  250|  8.95M|            {
  251|  8.95M|                value_type current = std::move(data_.back());
  252|  8.95M|                data_.pop_back();
  253|  8.95M|                switch (current.storage_kind())
  254|  8.95M|                {
  255|  5.46M|                    case json_storage_kind::array:
  ------------------
  |  Branch (255:21): [True: 5.46M, False: 3.49M]
  ------------------
  256|  5.46M|                    {
  257|  5.46M|                        for (auto&& item : current.array_range())
  ------------------
  |  Branch (257:42): [True: 5.65M, False: 5.46M]
  ------------------
  258|  5.65M|                        {
  259|  5.65M|                            if ((item.storage_kind() == json_storage_kind::array || item.storage_kind() == json_storage_kind::object)
  ------------------
  |  Branch (259:34): [True: 5.34M, False: 315k]
  |  Branch (259:85): [True: 95.4k, False: 220k]
  ------------------
  260|  5.43M|                                && !item.empty()) // non-empty object or array
  ------------------
  |  Branch (260:36): [True: 5.34M, False: 93.6k]
  ------------------
  261|  5.34M|                            {
  262|  5.34M|                                data_.push_back(std::move(item));
  263|  5.34M|                            }
  264|  5.65M|                        }
  265|  5.46M|                        current.clear();                           
  266|  5.46M|                        break;
  267|      0|                    }
  268|  2.03M|                    case json_storage_kind::object:
  ------------------
  |  Branch (268:21): [True: 2.03M, False: 6.91M]
  ------------------
  269|  2.03M|                    {
  270|  2.03M|                        for (auto&& kv : current.object_range())
  ------------------
  |  Branch (270:40): [True: 47.0k, False: 2.03M]
  ------------------
  271|  47.0k|                        {
  272|  47.0k|                            if ((kv.value().storage_kind() == json_storage_kind::array || kv.value().storage_kind() == json_storage_kind::object)
  ------------------
  |  Branch (272:34): [True: 4.16k, False: 42.9k]
  |  Branch (272:91): [True: 10.5k, False: 32.3k]
  ------------------
  273|  14.7k|                                && !kv.value().empty()) // non-empty object or array
  ------------------
  |  Branch (273:36): [True: 11.8k, False: 2.89k]
  ------------------
  274|  11.8k|                            {
  275|  11.8k|                                data_.push_back(std::move(kv.value()));
  276|  11.8k|                            }
  277|  47.0k|                        }
  278|  2.03M|                        current.clear();                           
  279|  2.03M|                        break;
  280|      0|                    }
  281|  1.45M|                    default:
  ------------------
  |  Branch (281:21): [True: 1.45M, False: 7.49M]
  ------------------
  282|  1.45M|                        break;
  283|  8.95M|                }
  284|  8.95M|            }
  285|  5.72M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5beginEv:
  222|  5.46M|        iterator begin() {return data_.begin();}
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE3endEv:
  224|  5.46M|        iterator end() {return data_.end();}
_ZNK8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5emptyEv:
  125|  5.34M|        {
  126|  5.34M|            return data_.empty();
  127|  5.34M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5clearEv:
  142|  5.46M|        void clear() {data_.clear();}
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEEC2ERKS5_:
   49|  20.0k|            : allocator_holder<allocator_type>(alloc), 
   50|  20.0k|              data_(value_allocator_type(alloc))
   51|  20.0k|        {
   52|  20.0k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE12emplace_backIJS6_EEERS6_DpOT_:
  217|  6.19k|        {
  218|  6.19k|            data_.emplace_back(std::forward<Args>(args)...);
  219|  6.19k|            return data_.back();
  220|  6.19k|        }

_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_EC2ERKS5_S9_:
   74|  17.4k|        : alloc_(alloc),
   75|  17.4k|          result_(),
   76|  17.4k|          name_(alloc),
   77|  17.4k|          item_stack_(alloc),
   78|  17.4k|          structure_stack_(temp_alloc)
   79|  17.4k|    {
   80|       |        //item_stack_.reserve(1000);
   81|       |        //structure_stack_.reserve(100);
   82|  17.4k|        structure_stack_.emplace_back(json_structure_kind::root_kind, 0);
   83|  17.4k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E14json_structureC2ENS7_19json_structure_kindEm:
   51|  9.96M|            : structure_kind(type), structure_index(offset)
   52|  9.96M|        {
   53|  9.96M|        }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E15visit_end_arrayERKNS_11ser_contextERNS3_10error_codeE:
  186|  5.64M|    {
  187|  5.64M|        JSONCONS_ASSERT(structure_stack_.size() > 1);
  ------------------
  |  |   54|  5.64M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 5.64M]
  |  |  ------------------
  |  |   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|  5.64M|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::array_kind);
  ------------------
  |  |   54|  5.64M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 5.64M]
  |  |  ------------------
  |  |   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|  5.64M|        const size_t structure_index = structure_stack_.back().structure_index;
  190|  5.64M|        JSONCONS_ASSERT(item_stack_.size() > structure_index);
  ------------------
  |  |   54|  5.64M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 5.64M]
  |  |  ------------------
  |  |   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|  5.64M|        auto& structure = structure_stack_[structure_stack_.size()-2];
  193|  5.64M|        auto& arr = item_stack_[structure_index].value;
  194|  5.64M|        const size_t size = item_stack_.size() - (structure_index + 1);
  195|       |
  196|  5.64M|        if (size > 0)
  ------------------
  |  Branch (196:13): [True: 5.58M, False: 52.5k]
  ------------------
  197|  5.58M|        {
  198|  5.58M|            arr.reserve(size);
  199|  5.58M|            auto first = item_stack_.begin() + (structure_index+1);
  200|  5.58M|            auto last = first + size;
  201|  14.8M|            for (auto it = first; it != last; ++it)
  ------------------
  |  Branch (201:35): [True: 9.25M, False: 5.58M]
  ------------------
  202|  9.25M|            {
  203|  9.25M|                arr.push_back(std::move((*it).value));
  204|  9.25M|            }
  205|  5.58M|            item_stack_.erase(first, item_stack_.end());
  206|  5.58M|        }
  207|       |
  208|  5.64M|        if (structure.structure_kind == json_structure_kind::root_kind)
  ------------------
  |  Branch (208:13): [True: 676, False: 5.64M]
  ------------------
  209|    676|        {
  210|    676|            result_ = std::move(item_stack_.front().value);
  211|    676|            item_stack_.pop_back();
  212|    676|            is_valid_ = true;
  213|    676|        }
  214|       |
  215|  5.64M|        structure_stack_.pop_back();
  216|  5.64M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  5.64M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  217|  5.64M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  311|  11.2M|    {
  312|  11.2M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (312:17): [True: 11.2M, False: 0]
  ------------------
  313|  11.2M|        {
  314|  7.89M|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (314:13): [True: 7.89M, False: 3.32M]
  ------------------
  315|  7.89M|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  316|  7.89M|                break;
  317|  3.32M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (317:13): [True: 3.32M, False: 7.89M]
  ------------------
  318|  3.32M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  319|  3.32M|                break;
  320|    107|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (320:13): [True: 107, False: 11.2M]
  ------------------
  321|    107|                result_ = Json(value,tag);
  322|    107|                is_valid_ = true;
  323|    107|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|    107|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  324|  11.2M|        }
  325|  11.2M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  11.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  11.2M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  290|  2.17M|    {
  291|  2.17M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (291:17): [True: 2.17M, False: 0]
  ------------------
  292|  2.17M|        {
  293|   487k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (293:13): [True: 487k, False: 1.68M]
  ------------------
  294|   487k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  295|   487k|                break;
  296|  1.68M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (296:13): [True: 1.68M, False: 487k]
  ------------------
  297|  1.68M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  298|  1.68M|                break;
  299|    195|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (299:13): [True: 195, False: 2.17M]
  ------------------
  300|    195|                result_ = Json(value,tag);
  301|    195|                is_valid_ = true;
  302|    195|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|    195|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|  2.17M|        }
  304|  2.17M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.17M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  305|  2.17M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  353|  64.3k|    {
  354|  64.3k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (354:17): [True: 64.3k, False: 0]
  ------------------
  355|  64.3k|        {
  356|  5.79k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (356:13): [True: 5.79k, False: 58.5k]
  ------------------
  357|  5.79k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  358|  5.79k|                break;
  359|  58.5k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (359:13): [True: 58.5k, False: 5.87k]
  ------------------
  360|  58.5k|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  361|  58.5k|                break;
  362|     82|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (362:13): [True: 82, False: 64.3k]
  ------------------
  363|     82|                result_ = Json(value, tag);
  364|     82|                is_valid_ = true;
  365|     82|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|     82|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  64.3k|        }
  367|  64.3k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  64.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  64.3k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E11visit_flushEv:
  122|  3.64k|    {
  123|  3.64k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  126|  4.23M|    {
  127|  4.23M|        if (structure_stack_.back().structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (127:13): [True: 1.15M, False: 3.08M]
  ------------------
  128|  1.15M|        {
  129|  1.15M|            structure_stack_.emplace_back(json_structure_kind::object_kind, item_stack_.size());
  130|  1.15M|            item_stack_.emplace_back(std::move(name_), index_++, json_object_arg, tag);
  131|  1.15M|        }
  132|  3.08M|        else
  133|  3.08M|        {
  134|  3.08M|            structure_stack_.emplace_back(json_structure_kind::object_kind, item_stack_.size());
  135|  3.08M|            item_stack_.emplace_back(key_type(alloc_), 0, json_object_arg, tag);
  136|  3.08M|        }
  137|  4.23M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.23M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  138|  4.23M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E16visit_end_objectERKNS_11ser_contextERNS3_10error_codeE:
  141|  4.22M|    {
  142|  4.22M|        JSONCONS_ASSERT(structure_stack_.size() > 0);
  ------------------
  |  |   54|  4.22M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 4.22M]
  |  |  ------------------
  |  |   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.22M|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::object_kind);
  ------------------
  |  |   54|  4.22M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 4.22M]
  |  |  ------------------
  |  |   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.22M|        const size_t structure_index = structure_stack_.back().structure_index;
  145|  4.22M|        JSONCONS_ASSERT(item_stack_.size() > structure_index);
  ------------------
  |  |   54|  4.22M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 4.22M]
  |  |  ------------------
  |  |   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.22M|        const size_t size = item_stack_.size() - (structure_index + 1);
  148|  4.22M|        auto first = item_stack_.begin() + (structure_index+1);
  149|  4.22M|        auto& structure = structure_stack_[structure_stack_.size()-2];
  150|  4.22M|        auto& obj = item_stack_[structure_index].value;
  151|       |
  152|  4.22M|        if (size > 0)
  ------------------
  |  Branch (152:13): [True: 37.4k, False: 4.18M]
  ------------------
  153|  37.4k|        {
  154|  37.4k|            obj.template cast<typename Json::object_storage>().value().uninitialized_init(
  155|  37.4k|                &item_stack_[structure_index+1], size);
  156|  37.4k|            item_stack_.erase(first, item_stack_.end());
  157|  37.4k|        }
  158|       |
  159|  4.22M|        if (structure.structure_kind == json_structure_kind::root_kind)
  ------------------
  |  Branch (159:13): [True: 1.34k, False: 4.21M]
  ------------------
  160|  1.34k|        {
  161|  1.34k|            result_ = std::move(item_stack_.front().value);
  162|  1.34k|            item_stack_.pop_back();
  163|  1.34k|            is_valid_ = true;
  164|  1.34k|        }
  165|       |
  166|  4.22M|        structure_stack_.pop_back();
  167|  4.22M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.22M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  168|  4.22M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  171|  5.70M|    {
  172|  5.70M|        if (structure_stack_.back().structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (172:13): [True: 58.3k, False: 5.64M]
  ------------------
  173|  58.3k|        {
  174|  58.3k|            structure_stack_.emplace_back(json_structure_kind::array_kind, item_stack_.size());
  175|  58.3k|            item_stack_.emplace_back(std::move(name_), index_++, json_array_arg, tag);
  176|  58.3k|        }
  177|  5.64M|        else
  178|  5.64M|        {
  179|  5.64M|            structure_stack_.emplace_back(json_structure_kind::array_kind, item_stack_.size());
  180|  5.64M|            item_stack_.emplace_back(key_type(alloc_), 0, json_array_arg, tag);
  181|  5.64M|        }
  182|  5.70M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  5.70M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  183|  5.70M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E9visit_keyERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  220|  10.4M|    {
  221|  10.4M|        name_ = key_type(name.data(),name.length(),alloc_);
  222|  10.4M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  10.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  223|  10.4M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  389|  34.4k|    {
  390|  34.4k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (390:17): [True: 34.4k, False: 0]
  ------------------
  391|  34.4k|        {
  392|  7.44k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (392:13): [True: 7.44k, False: 27.0k]
  ------------------
  393|  7.44k|                item_stack_.emplace_back(std::move(name_), index_++, null_type(), tag);
  394|  7.44k|                break;
  395|  27.0k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (395:13): [True: 27.0k, False: 7.45k]
  ------------------
  396|  27.0k|                item_stack_.emplace_back(key_type(alloc_), 0, null_type(), tag);
  397|  27.0k|                break;
  398|      5|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (398:13): [True: 5, False: 34.4k]
  ------------------
  399|      5|                result_ = Json(null_type(), tag);
  400|      5|                is_valid_ = true;
  401|      5|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      5|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  402|  34.4k|        }
  403|  34.4k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  34.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  404|  34.4k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  371|  1.72M|    {
  372|  1.72M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (372:17): [True: 1.72M, False: 0]
  ------------------
  373|  1.72M|        {
  374|  19.1k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (374:13): [True: 19.1k, False: 1.70M]
  ------------------
  375|  19.1k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  376|  19.1k|                break;
  377|  1.70M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (377:13): [True: 1.70M, False: 19.1k]
  ------------------
  378|  1.70M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  379|  1.70M|                break;
  380|      5|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (380:13): [True: 5, False: 1.72M]
  ------------------
  381|      5|                result_ = Json(value, tag);
  382|      5|                is_valid_ = true;
  383|      5|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      5|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  384|  1.72M|        }
  385|  1.72M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.72M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  1.72M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  226|   123k|    {
  227|   123k|        auto& structure = structure_stack_.back();
  228|   123k|        switch (structure.structure_kind)
  ------------------
  |  Branch (228:17): [True: 123k, False: 0]
  ------------------
  229|   123k|        {
  230|  65.0k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (230:13): [True: 65.0k, False: 58.7k]
  ------------------
  231|  65.0k|                item_stack_.emplace_back(std::move(name_), index_++, sv, tag);
  232|  65.0k|                break;
  233|  57.4k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (233:13): [True: 57.4k, False: 66.3k]
  ------------------
  234|  57.4k|                item_stack_.emplace_back(key_type(alloc_), 0, sv, tag);
  235|  57.4k|                break;
  236|  1.31k|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (236:13): [True: 1.31k, False: 122k]
  ------------------
  237|  1.31k|                result_ = Json(sv, tag, alloc_);
  238|  1.31k|                is_valid_ = true;
  239|  1.31k|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.31k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  240|   123k|        }
  241|   122k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   122k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  242|   123k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  248|  1.04M|    {
  249|  1.04M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (249:17): [True: 1.04M, False: 0]
  ------------------
  250|  1.04M|        {
  251|   775k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (251:13): [True: 775k, False: 272k]
  ------------------
  252|   775k|                item_stack_.emplace_back(std::move(name_), index_++, byte_string_arg, b, tag);
  253|   775k|                break;
  254|   272k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (254:13): [True: 272k, False: 775k]
  ------------------
  255|   272k|                item_stack_.emplace_back(key_type(alloc_), 0, byte_string_arg, b, tag);
  256|   272k|                break;
  257|     26|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (257:13): [True: 26, False: 1.04M]
  ------------------
  258|     26|                result_ = Json(byte_string_arg, b, tag, alloc_);
  259|     26|                is_valid_ = true;
  260|     26|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|     26|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  261|  1.04M|        }
  262|  1.04M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.04M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  263|  1.04M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS3_10error_codeE:
  269|  23.9k|    {
  270|  23.9k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (270:17): [True: 23.9k, False: 0]
  ------------------
  271|  23.9k|        {
  272|  7.13k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (272:13): [True: 7.13k, False: 16.7k]
  ------------------
  273|  7.13k|                item_stack_.emplace_back(std::move(name_), index_++, byte_string_arg, b, raw_tag);
  274|  7.13k|                break;
  275|  16.7k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (275:13): [True: 16.7k, False: 7.13k]
  ------------------
  276|  16.7k|                item_stack_.emplace_back(key_type(alloc_), 0, byte_string_arg, b, raw_tag);
  277|  16.7k|                break;
  278|      4|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (278:13): [True: 4, False: 23.9k]
  ------------------
  279|      4|                result_ = Json(byte_string_arg, b, raw_tag, alloc_);
  280|      4|                is_valid_ = true;
  281|      4|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      4|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  282|  23.9k|        }
  283|  23.9k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  23.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  284|  23.9k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  332|  25.6k|    {
  333|  25.6k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (333:17): [True: 25.6k, False: 0]
  ------------------
  334|  25.6k|        {
  335|  12.3k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (335:13): [True: 12.3k, False: 13.2k]
  ------------------
  336|  12.3k|                item_stack_.emplace_back(std::move(name_), index_++, half_arg, value, tag);
  337|  12.3k|                break;
  338|  13.2k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (338:13): [True: 13.2k, False: 12.3k]
  ------------------
  339|  13.2k|                item_stack_.emplace_back(key_type(alloc_), 0, half_arg, value, tag);
  340|  13.2k|                break;
  341|      2|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (341:13): [True: 2, False: 25.6k]
  ------------------
  342|      2|                result_ = Json(half_arg, value, tag);
  343|      2|                is_valid_ = true;
  344|      2|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  345|  25.6k|        }
  346|  25.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  25.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  347|  25.6k|    }
_ZNK8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E8is_validEv:
  108|  3.64k|    {
  109|  3.64k|        return is_valid_;
  110|  3.64k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10get_resultEv:
  113|  3.64k|    {
  114|  3.64k|        JSONCONS_ASSERT(is_valid_);
  ------------------
  |  |   54|  3.64k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 3.64k]
  |  |  ------------------
  |  |   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|  3.64k|        is_valid_ = false;
  116|  3.64k|        return std::move(result_);
  117|  3.64k|    }

_ZN8jsoncons25make_json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEEENS_20json_visitor_adaptorIT_T0_vEERSD_:
 1064|  17.4k|{
 1065|  17.4k|    return json_visitor_adaptor<From, To>(to);
 1066|  17.4k|}
_ZN8jsoncons20json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEvEC2ERSA_:
  983|  17.4k|        : supertype(visitor)
  984|  17.4k|    {
  985|  17.4k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEEC2ERSA_:
  721|  17.4k|        : destination1_(std::addressof(visitor))
  722|  17.4k|    {
  723|  17.4k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  777|  5.68M|    {
  778|  5.68M|        destination1_->begin_array(length, tag, context, ec);
  779|  5.68M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  5.68M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  780|  5.68M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE15visit_end_arrayERKNS_11ser_contextERNS6_10error_codeE:
  783|  5.64M|    {
  784|  5.64M|        destination1_->end_array(context, ec);
  785|  5.64M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  5.64M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  786|  5.64M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  825|  11.2M|    {
  826|  11.2M|        destination1_->uint64_value(value, tag, context, ec);
  827|  11.2M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  11.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  828|  11.2M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  819|  2.17M|    {
  820|  2.17M|        destination1_->int64_value(value, tag, context, ec);
  821|  2.17M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.17M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  822|  2.17M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  813|  64.3k|    {
  814|  64.3k|        destination1_->double_value(value, tag, context, ec);
  815|  64.3k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  64.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  816|  64.3k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11visit_flushEv:
  738|  3.64k|    {
  739|  3.64k|        destination1_->flush();
  740|  3.64k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  745|  8.40k|    {
  746|  8.40k|        destination1_->begin_object(tag, context, ec);
  747|  8.40k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  8.40k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  748|  8.40k|    }
_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.23M|    {
  755|  4.23M|        destination1_->begin_object(length, tag, context, ec);
  756|  4.23M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.23M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  757|  4.23M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE16visit_end_objectERKNS_11ser_contextERNS6_10error_codeE:
  760|  4.22M|    {
  761|  4.22M|        destination1_->end_object(context, ec);
  762|  4.22M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.22M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  763|  4.22M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  768|  18.8k|    {
  769|  18.8k|        destination1_->begin_array(tag, context, ec);
  770|  18.8k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  18.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  771|  18.8k|    }
_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.4M|    {
  996|  10.4M|        return destination().key(string_view_type(reinterpret_cast<const to_char_type*>(key.data()),key.size()), context, ec);
  997|  10.4M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11destinationEv:
  732|  10.6M|    {
  733|  10.6M|        return *destination1_;
  734|  10.6M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  837|  34.4k|    {
  838|  34.4k|        destination1_->null_value(tag, context, ec);
  839|  34.4k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  34.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|  34.4k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  831|  1.72M|    {
  832|  1.72M|        destination1_->bool_value(value, tag, context, ec);
  833|  1.72M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.72M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  834|  1.72M|    }
_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|   123k|    {
 1004|   123k|        return destination().string_value(string_view_type(reinterpret_cast<const to_char_type*>(value.data()),value.size()), tag, context, ec);
 1005|   123k|    }
_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.04M|    {
  793|  1.04M|        destination1_->byte_string_value(b, tag, context, ec);
  794|  1.04M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  1.04M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  795|  1.04M|    }
_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|  23.9k|    {
  802|  23.9k|        destination1_->byte_string_value(b, raw_tag, context, ec);
  803|  23.9k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  23.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  804|  23.9k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  807|  25.6k|    {
  808|  25.6k|        destination1_->half_value(value, tag, context, ec);
  809|  25.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  25.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  810|  25.6k|    }

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

_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  85.5k|        basic_default_json_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|   120k|        basic_json_visitor() = default;
_ZN8jsoncons19typed_array_visitorD2Ev:
   33|   223k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  560|  11.8M|        {
  561|  11.8M|            visit_begin_array(tag, context, ec);
  562|  11.8M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  11.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  563|  11.8M|        }
_ZN8jsoncons26basic_default_json_visitorIcE15visit_end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  833|  6.08M|        {
  834|  6.08M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  6.08M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  835|  6.08M|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  858|  22.0M|        {
  859|  22.0M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  22.0M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  860|  22.0M|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  863|  4.35M|        {
  864|  4.35M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.35M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  865|  4.35M|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  873|   128k|        {
  874|   128k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   128k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  875|   128k|        }
_ZN8jsoncons26basic_default_json_visitorIcE11visit_flushEv:
  814|  3.64k|        {
  815|  3.64k|        }
_ZN8jsoncons26basic_default_json_visitorIcE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  818|  8.47M|        {
  819|  8.47M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  8.47M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  820|  8.47M|        }
_ZN8jsoncons18basic_json_visitorIcE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  544|  12.6M|        {
  545|  12.6M|            visit_begin_object(tag, context, ec);
  546|  12.6M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  12.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  547|  12.6M|        }
_ZN8jsoncons26basic_default_json_visitorIcE16visit_end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  823|  8.44M|        {
  824|  8.44M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  8.44M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  825|  8.44M|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  828|  6.19M|        {
  829|  6.19M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  6.19M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  830|  6.19M|        }
_ZN8jsoncons26basic_default_json_visitorIcE9visit_keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  838|  20.9M|        {
  839|  20.9M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  20.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|  20.9M|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  843|  68.9k|        {
  844|  68.9k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  68.9k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  845|  68.9k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  878|  3.44M|        {
  879|  3.44M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  3.44M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  880|  3.44M|        }
_ZN8jsoncons26basic_default_json_visitorIcE12visit_stringERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  848|   247k|        {
  849|   247k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   247k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  850|   247k|        }
_ZN8jsoncons26basic_default_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  853|  2.14M|        {
  854|  2.14M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  2.14M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  855|  2.14M|        }
_ZN8jsoncons18basic_json_visitorIcE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNSt3__110error_codeE:
  595|  47.8k|        {
  596|  47.8k|            visit_byte_string(value, semantic_tag::none, context, ec);
  597|  47.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  47.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  598|  47.8k|        }
_ZN8jsoncons26basic_default_json_visitorIcE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  868|  51.2k|        {
  869|  51.2k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  51.2k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  870|  51.2k|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|  17.5M|        {
  346|  17.5M|            visit_begin_array(length, tag, context, ec);
  347|  17.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  17.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|  17.5M|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|  44.4M|        {
  415|  44.4M|            visit_uint64(value, tag, context, ec);
  416|  44.4M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  44.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|  44.4M|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|  17.3M|        {
  352|  17.3M|            visit_end_array(context, ec);
  353|  17.3M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  17.3M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|  17.3M|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|  8.70M|        {
  424|  8.70M|            visit_int64(value, tag, context, ec);
  425|  8.70M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  8.70M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|  8.70M|        }
_ZN8jsoncons18basic_json_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  432|   102k|        {
  433|   102k|            visit_half(value, tag, context, ec);
  434|   102k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   102k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  435|   102k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|   257k|        {
  442|   257k|            visit_double(value, tag, context, ec);
  443|   257k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   257k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|   257k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|  41.9M|        {
  358|  41.9M|            visit_key(name, context, ec);
  359|  41.9M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  41.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|  41.9M|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  10.9k|        {
  109|  10.9k|            visit_flush();
  110|  10.9k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|  39.0k|        {
  319|  39.0k|            visit_begin_object(tag, context, ec);
  320|  39.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  39.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|  39.0k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  16.9M|        {
  328|  16.9M|            visit_begin_object(length, tag, context, ec);
  329|  16.9M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  16.9M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  16.9M|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  16.8M|        {
  334|  16.8M|            visit_end_object(context, ec);
  335|  16.8M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  16.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  16.8M|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|  79.7k|        {
  340|  79.7k|            visit_begin_array(tag, context, ec);
  341|  79.7k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  79.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|  79.7k|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|   137k|        {
  366|   137k|            visit_null(tag, context, ec);
  367|   137k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   137k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|   137k|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|  6.89M|        {
  375|  6.89M|            visit_bool(value, tag, context, ec);
  376|  6.89M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  6.89M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|  6.89M|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|   495k|        {
  384|   495k|            visit_string(value, tag, context, ec);
  385|   495k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   495k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|   495k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|  4.19M|        {
  395|  4.19M|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|  4.19M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  4.19M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|  4.19M|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr6nonstd18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|  95.6k|        {
  406|  95.6k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|  95.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  95.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|  95.6k|        }

_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEaSEOS7_:
   60|  41.7M|    index_key_value& operator=(index_key_value&&) = default;
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRmRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  11.2M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  11.2M|    {
   45|  11.2M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2EOS7_:
   49|  53.4M|    index_key_value(index_key_value&&) = default;
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRlRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  2.17M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  2.17M|    {
   45|  2.17M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRdRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  64.3k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  64.3k|    {
   45|  64.3k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17json_object_arg_tERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  4.23M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  4.23M|    {
   45|  4.23M|    }
_ZN8jsoncons9key_valueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EEEC2IJSA_EEEOS7_DpOT_:
   86|   120k|        : key_(std::move(name)), value_(std::forward<Args>(args)...)
   87|   120k|    {
   88|   120k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_16json_array_arg_tERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  5.70M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  5.70M|    {
   45|  5.70M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJNS_9null_typeERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  34.4k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  34.4k|    {
   45|  34.4k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRbRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  1.72M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  1.72M|    {
   45|  1.72M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS_12semantic_tagEEEEONS3_12basic_stringIcSB_S5_EElDpOT_:
   43|   122k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|   122k|    {
   45|   122k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17byte_string_arg_tERKNS_16byte_string_viewERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  1.04M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  1.04M|    {
   45|  1.04M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17byte_string_arg_tERKNS_16byte_string_viewERmEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  23.9k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  23.9k|    {
   45|  23.9k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_10half_arg_tERtRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  25.6k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  25.6k|    {
   45|  25.6k|    }
_ZN8jsoncons9key_valueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EEE5valueEv:
  120|   206k|    {
  121|   206k|        return value_;
  122|   206k|    }

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

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

_ZN8jsoncons6nonstd16to_plain_pointerImEEPT_S3_:
  241|  1.45M|    {       
  242|  1.45M|        return (ptr);
  243|  1.45M|    }  
_ZN8jsoncons6nonstd16to_plain_pointerINS_18sorted_json_objectINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES8_EENS3_6vectorEEEEEPT_SG_:
  241|  8.47M|    {       
  242|  8.47M|        return (ptr);
  243|  8.47M|    }  
_ZN8jsoncons6nonstd16to_plain_pointerINS_10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS5_6vectorEEEEEPT_SC_:
  241|  11.4M|    {       
  242|  11.4M|        return (ptr);
  243|  11.4M|    }  
_ZN8jsoncons6nonstd16to_plain_pointerIcEEPT_S3_:
  241|  1.11M|    {       
  242|  1.11M|        return (ptr);
  243|  1.11M|    }  
_ZN8jsoncons6nonstd16to_plain_pointerINS_4heap11heap_stringIcNS_9null_typeENSt3__19allocatorIcEEEEEEPT_SA_:
  241|  42.4k|    {       
  242|  42.4k|        return (ptr);
  243|  42.4k|    }  
_ZN8jsoncons6nonstd16to_plain_pointerINS_4heap11heap_stringIhmNSt3__19allocatorIcEEEEEEPT_S9_:
  241|  1.07M|    {       
  242|  1.07M|        return (ptr);
  243|  1.07M|    }  

_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4sizeEv:
  116|  45.4M|        {
  117|  45.4M|            return size_;
  118|  45.4M|        }
_ZNK8jsoncons6nonstd4spanIKtLm18446744073709551615EE4sizeEv:
  116|  4.18M|        {
  117|  4.18M|            return size_;
  118|  4.18M|        }
_ZNK8jsoncons6nonstd4spanIKjLm18446744073709551615EE4sizeEv:
  116|   138k|        {
  117|   138k|            return size_;
  118|   138k|        }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EE4sizeEv:
  116|  28.7M|        {
  117|  28.7M|            return size_;
  118|  28.7M|        }
_ZNK8jsoncons6nonstd4spanIKaLm18446744073709551615EE4sizeEv:
  116|   416k|        {
  117|   416k|            return size_;
  118|   416k|        }
_ZNK8jsoncons6nonstd4spanIKsLm18446744073709551615EE4sizeEv:
  116|   169k|        {
  117|   169k|            return size_;
  118|   169k|        }
_ZNK8jsoncons6nonstd4spanIKiLm18446744073709551615EE4sizeEv:
  116|   439k|        {
  117|   439k|            return size_;
  118|   439k|        }
_ZNK8jsoncons6nonstd4spanIKlLm18446744073709551615EE4sizeEv:
  116|  83.4k|        {
  117|  83.4k|            return size_;
  118|  83.4k|        }
_ZNK8jsoncons6nonstd4spanIKfLm18446744073709551615EE4sizeEv:
  116|  2.82M|        {
  117|  2.82M|            return size_;
  118|  2.82M|        }
_ZNK8jsoncons6nonstd4spanIKdLm18446744073709551615EE4sizeEv:
  116|   719k|        {
  117|   719k|            return size_;
  118|   719k|        }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|  20.4M|            : data_(data), size_(size)
   62|  20.4M|        {
   63|  20.4M|        }
_ZNK8jsoncons6nonstd4spanIhLm18446744073709551615EE4dataEv:
  111|   951k|        {
  112|   951k|            return data_;
  113|   951k|        }
_ZNK8jsoncons6nonstd4spanIhLm18446744073709551615EE4sizeEv:
  116|   951k|        {
  117|   951k|            return size_;
  118|   951k|        }
_ZN8jsoncons6nonstd4spanIhLm18446744073709551615EEC2INSt3__16vectorIhNS4_9allocatorIhEEEEEERT_PNS4_9enable_ifIXaaaaaantsr7is_spanIS9_EE5valuentsr6nonstd12is_std_arrayIS9_EE5valuesr6nonstd21is_compatible_elementIS9_hEE5valuesr6nonstd17has_data_and_sizeIS9_EE5valueEvE4typeE:
   68|   951k|            : data_(c.data()), size_(c.size())
   69|   951k|        {
   70|   951k|        }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2IhLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  37.9k|            : data_(s.data()), size_(s.size())
  103|  37.9k|        {
  104|  37.9k|        }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EEixEm:
  126|   196k|         {
  127|   196k|             return data_[index];
  128|   196k|         }
_ZN8jsoncons6nonstd4spanItLm18446744073709551615EEC2EPtm:
   61|   211k|            : data_(data), size_(size)
   62|   211k|        {
   63|   211k|        }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EE4sizeEv:
  116|  2.10M|        {
  117|  2.10M|            return size_;
  118|  2.10M|        }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EEixEm:
  126|  3.64M|         {
  127|  3.64M|             return data_[index];
  128|  3.64M|         }
_ZN8jsoncons6nonstd4spanIKtLm18446744073709551615EEC2ItLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|   104k|            : data_(s.data()), size_(s.size())
  103|   104k|        {
  104|   104k|        }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EE4dataEv:
  111|   104k|        {
  112|   104k|            return data_;
  113|   104k|        }
_ZNK8jsoncons6nonstd4spanIKtLm18446744073709551615EEixEm:
  126|  3.95M|         {
  127|  3.95M|             return data_[index];
  128|  3.95M|         }
_ZN8jsoncons6nonstd4spanIjLm18446744073709551615EEC2EPjm:
   61|  60.8k|            : data_(data), size_(size)
   62|  60.8k|        {
   63|  60.8k|        }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EE4sizeEv:
  116|   128k|        {
  117|   128k|            return size_;
  118|   128k|        }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EEixEm:
  126|  75.9k|         {
  127|  75.9k|             return data_[index];
  128|  75.9k|         }
_ZN8jsoncons6nonstd4spanIKjLm18446744073709551615EEC2IjLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  30.2k|            : data_(s.data()), size_(s.size())
  103|  30.2k|        {
  104|  30.2k|        }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EE4dataEv:
  111|  30.2k|        {
  112|  30.2k|            return data_;
  113|  30.2k|        }
_ZNK8jsoncons6nonstd4spanIKjLm18446744073709551615EEixEm:
  126|  74.6k|         {
  127|  74.6k|             return data_[index];
  128|  74.6k|         }
_ZN8jsoncons6nonstd4spanImLm18446744073709551615EEC2EPmm:
   61|  85.6k|            : data_(data), size_(size)
   62|  85.6k|        {
   63|  85.6k|        }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EE4sizeEv:
  116|   140k|        {
  117|   140k|            return size_;
  118|   140k|        }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EEixEm:
  126|  65.3k|         {
  127|  65.3k|             return data_[index];
  128|  65.3k|         }
_ZN8jsoncons6nonstd4spanIKmLm18446744073709551615EEC2ImLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  42.5k|            : data_(s.data()), size_(s.size())
  103|  42.5k|        {
  104|  42.5k|        }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EE4dataEv:
  111|  42.5k|        {
  112|  42.5k|            return data_;
  113|  42.5k|        }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EEixEm:
  126|  85.5M|         {
  127|  85.5M|             return data_[index];
  128|  85.5M|         }
_ZN8jsoncons6nonstd4spanIaLm18446744073709551615EEC2EPam:
   61|  41.2k|            : data_(data), size_(size)
   62|  41.2k|        {
   63|  41.2k|        }
_ZNK8jsoncons6nonstd4spanIaLm18446744073709551615EE4sizeEv:
  116|  45.7k|        {
  117|  45.7k|            return size_;
  118|  45.7k|        }
_ZN8jsoncons6nonstd4spanIKaLm18446744073709551615EEC2IaLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  20.3k|            : data_(s.data()), size_(s.size())
  103|  20.3k|        {
  104|  20.3k|        }
_ZNK8jsoncons6nonstd4spanIaLm18446744073709551615EE4dataEv:
  111|  20.3k|        {
  112|  20.3k|            return data_;
  113|  20.3k|        }
_ZNK8jsoncons6nonstd4spanIKaLm18446744073709551615EEixEm:
  126|   397k|         {
  127|   397k|             return data_[index];
  128|   397k|         }
_ZN8jsoncons6nonstd4spanIsLm18446744073709551615EEC2EPsm:
   61|  59.3k|            : data_(data), size_(size)
   62|  59.3k|        {
   63|  59.3k|        }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EE4sizeEv:
  116|   162k|        {
  117|   162k|            return size_;
  118|   162k|        }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EEixEm:
  126|   143k|         {
  127|   143k|             return data_[index];
  128|   143k|         }
_ZN8jsoncons6nonstd4spanIKsLm18446744073709551615EEC2IsLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  29.4k|            : data_(s.data()), size_(s.size())
  103|  29.4k|        {
  104|  29.4k|        }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EE4dataEv:
  111|  29.4k|        {
  112|  29.4k|            return data_;
  113|  29.4k|        }
_ZNK8jsoncons6nonstd4spanIKsLm18446744073709551615EEixEm:
  126|   119k|         {
  127|   119k|             return data_[index];
  128|   119k|         }
_ZN8jsoncons6nonstd4spanIiLm18446744073709551615EEC2EPim:
   61|   204k|            : data_(data), size_(size)
   62|   204k|        {
   63|   204k|        }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EE4sizeEv:
  116|   367k|        {
  117|   367k|            return size_;
  118|   367k|        }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EEixEm:
  126|   256k|         {
  127|   256k|             return data_[index];
  128|   256k|         }
_ZN8jsoncons6nonstd4spanIKiLm18446744073709551615EEC2IiLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|   102k|            : data_(s.data()), size_(s.size())
  103|   102k|        {
  104|   102k|        }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EE4dataEv:
  111|   102k|        {
  112|   102k|            return data_;
  113|   102k|        }
_ZNK8jsoncons6nonstd4spanIKiLm18446744073709551615EEixEm:
  126|   146k|         {
  127|   146k|             return data_[index];
  128|   146k|         }
_ZN8jsoncons6nonstd4spanIlLm18446744073709551615EEC2EPlm:
   61|  52.7k|            : data_(data), size_(size)
   62|  52.7k|        {
   63|  52.7k|        }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EE4sizeEv:
  116|   110k|        {
  117|   110k|            return size_;
  118|   110k|        }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EEixEm:
  126|  57.2k|         {
  127|  57.2k|             return data_[index];
  128|  57.2k|         }
_ZN8jsoncons6nonstd4spanIKlLm18446744073709551615EEC2IlLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  26.1k|            : data_(s.data()), size_(s.size())
  103|  26.1k|        {
  104|  26.1k|        }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EE4dataEv:
  111|  26.1k|        {
  112|  26.1k|            return data_;
  113|  26.1k|        }
_ZNK8jsoncons6nonstd4spanIKlLm18446744073709551615EEixEm:
  126|  30.7k|         {
  127|  30.7k|             return data_[index];
  128|  30.7k|         }
_ZN8jsoncons6nonstd4spanIfLm18446744073709551615EEC2EPfm:
   61|  95.2k|            : data_(data), size_(size)
   62|  95.2k|        {
   63|  95.2k|        }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EE4sizeEv:
  116|  2.79M|        {
  117|  2.79M|            return size_;
  118|  2.79M|        }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EEixEm:
  126|  5.35M|         {
  127|  5.35M|             return data_[index];
  128|  5.35M|         }
_ZN8jsoncons6nonstd4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  47.3k|            : data_(s.data()), size_(s.size())
  103|  47.3k|        {
  104|  47.3k|        }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EE4dataEv:
  111|  47.3k|        {
  112|  47.3k|            return data_;
  113|  47.3k|        }
_ZNK8jsoncons6nonstd4spanIKfLm18446744073709551615EEixEm:
  126|  2.70M|         {
  127|  2.70M|             return data_[index];
  128|  2.70M|         }
_ZN8jsoncons6nonstd4spanIdLm18446744073709551615EEC2EPdm:
   61|  63.8k|            : data_(data), size_(size)
   62|  63.8k|        {
   63|  63.8k|        }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EE4sizeEv:
  116|   343k|        {
  117|   343k|            return size_;
  118|   343k|        }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EEixEm:
  126|   524k|         {
  127|   524k|             return data_[index];
  128|   524k|         }
_ZN8jsoncons6nonstd4spanIKdLm18446744073709551615EEC2IdLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  31.6k|            : data_(s.data()), size_(s.size())
  103|  31.6k|        {
  104|  31.6k|        }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EE4dataEv:
  111|  31.6k|        {
  112|  31.6k|            return data_;
  113|  31.6k|        }
_ZNK8jsoncons6nonstd4spanIKdLm18446744073709551615EEixEm:
  126|   640k|         {
  127|   640k|             return data_[index];
  128|   640k|         }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2Ev:
   58|  2.72M|        {
   59|  2.72M|        }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4dataEv:
  111|  23.1M|        {
  112|  23.1M|            return data_;
  113|  23.1M|        }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EE5emptyEv:
  121|   184k|        { 
  122|   184k|            return size_ == 0; 
  123|   184k|        }
_ZN8jsoncons6nonstd4spanIKmLm18446744073709551615EEC2INSt3__16vectorImNS5_9allocatorImEEEEEERT_PNS5_9enable_ifIXaaaaaantsr7is_spanISA_EE5valuentsr6nonstd12is_std_arrayISA_EE5valuesr6nonstd21is_compatible_elementISA_S2_EE5valuesr6nonstd17has_data_and_sizeISA_EE5valueEvE4typeE:
   68|   184k|            : data_(c.data()), size_(c.size())
   69|   184k|        {
   70|   184k|        }

_ZN8jsoncons6nonstd4u128C2Em:
   29|  1.79G|    constexpr u128(uint64_t lo) : hi(0), lo(lo) {}
_ZNK8jsoncons6nonstd4u128mlERKS1_:
  103|   893M|    u128 operator*(const u128& rhs) const {
  104|       |        // Split components into 32-bit chunks to avoid 64-bit overflow during multiplication
  105|   893M|        uint64_t a3 = hi >> 32;
  106|   893M|        uint64_t a2 = hi & 0xFFFFFFFFFFFFFFULL; // lower 32 bits of hi
  107|   893M|        uint64_t a1 = lo >> 32;
  108|   893M|        uint64_t a0 = lo & 0xFFFFFFFFULL;
  109|       |
  110|   893M|        uint64_t b3 = rhs.hi >> 32;
  111|   893M|        uint64_t b2 = rhs.hi & 0xFFFFFFFFFFFFFFULL;
  112|   893M|        uint64_t b1 = rhs.lo >> 32;
  113|   893M|        uint64_t b0 = rhs.lo & 0xFFFFFFFFULL;
  114|       |
  115|       |        // Long multiplication matrix
  116|       |        // We only care about terms that fit in the final 128 bits.
  117|       |        // Chunks exceeding indices that add up to 3 (e.g., a2*b2, a3*b1) drop out of range.
  118|       |
  119|   893M|        uint64_t c0 = a0 * b0;
  120|   893M|        uint64_t c1 = a0 * b1 + a1 * b0;
  121|   893M|        uint64_t c2 = a0 * b2 + a1 * b1 + a2 * b0;
  122|   893M|        uint64_t c3 = a0 * b3 + a1 * b2 + a2 * b1 + a3 * b0;
  123|       |
  124|       |        // Carry propagation
  125|   893M|        c1 += (c0 >> 32);
  126|   893M|        c2 += (c1 >> 32);
  127|   893M|        c3 += (c2 >> 32);
  128|       |
  129|       |        // Reconstruct hi and lo 64-bit values
  130|   893M|        uint64_t new_low = (c0 & 0xFFFFFFFFULL) | (c1 << 32);
  131|   893M|        uint64_t new_high = (c2 & 0xFFFFFFFFULL) | (c3 << 32);
  132|       |
  133|   893M|        return {new_high, new_low};
  134|   893M|    }
_ZN8jsoncons6nonstd4u128C2Emm:
   30|  2.67G|    constexpr u128(uint64_t hi, uint64_t lo) : hi(hi), lo(lo) {}
_ZNK8jsoncons6nonstd4u128plERKS1_:
   41|   893M|    u128 operator+(const u128& rhs) const {
   42|   893M|        uint64_t new_low = lo + rhs.lo;
   43|       |        // Carry occurs if the result wrapped around and is less than one of the inputs
   44|   893M|        uint64_t carry = (new_low < lo) ? 1 : 0;
  ------------------
  |  Branch (44:26): [True: 0, False: 893M]
  ------------------
   45|   893M|        uint64_t new_high = hi + rhs.hi + carry;
   46|   893M|        return {new_high, new_low};
   47|   893M|    }
_ZNK8jsoncons6nonstd4u128cvmEv:
  146|   893M|    explicit operator uint64_t() const {
  147|   893M|        return lo;
  148|   893M|    }
_ZNK8jsoncons6nonstd4u128rsEj:
   87|   893M|    u128 operator>>(unsigned int shift) const {
   88|   893M|        if (shift == 0) return *this;
  ------------------
  |  Branch (88:13): [True: 0, False: 893M]
  ------------------
   89|   893M|        if (shift >= 128) return {0, 0};
  ------------------
  |  Branch (89:13): [True: 0, False: 893M]
  ------------------
   90|       |
   91|   893M|        if (shift >= 64) {
  ------------------
  |  Branch (91:13): [True: 893M, False: 0]
  ------------------
   92|   893M|            return {0, hi >> (shift - 64)};
   93|   893M|        }
   94|      0|        else {
   95|      0|            return {
   96|      0|                hi >> shift,
   97|      0|                (lo >> shift) | (hi << (64 - shift))
   98|      0|            };
   99|      0|        }
  100|   893M|    }
_ZNK8jsoncons6nonstd4u128cvbEv:
   32|  4.69M|    explicit operator bool() const {
   33|  4.69M|        return hi != 0 || lo != 0;
  ------------------
  |  Branch (33:16): [True: 0, False: 4.69M]
  |  Branch (33:27): [True: 430k, False: 4.26M]
  ------------------
   34|  4.69M|    }

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

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

_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEEC2Ev:
   61|  4.23M|        sorted_json_object() = default;
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE18uninitialized_initEPNS_15index_key_valueISA_EEm:
  277|  37.4k|        {
  278|  37.4k|            if (count > 0)
  ------------------
  |  Branch (278:17): [True: 37.4k, False: 0]
  ------------------
  279|  37.4k|            {
  280|  37.4k|                data_.reserve(count);
  281|       |
  282|  37.4k|                std::sort(items, items+count, compare);
  283|  37.4k|                data_.emplace_back(key_type(items[0].name.data(), items[0].name.size(), get_allocator()), std::move(items[0].value));
  284|       |                
  285|  7.98M|                for (std::size_t i = 1; i < count; ++i)
  ------------------
  |  Branch (285:41): [True: 7.95M, False: 37.4k]
  ------------------
  286|  7.95M|                {
  287|  7.95M|                    auto& item = items[i];
  288|  7.95M|                    if (item.name != items[i-1].name)
  ------------------
  |  Branch (288:25): [True: 83.2k, False: 7.86M]
  ------------------
  289|  83.2k|                    {
  290|  83.2k|                        data_.emplace_back(key_type(item.name.data(), item.name.size(), get_allocator()), std::move(item.value));
  291|  83.2k|                    }
  292|  7.95M|                }
  293|  37.4k|            }
  294|  37.4k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE7compareERKNS_15index_key_valueISA_EESG_:
  268|   185M|        {
  269|   185M|            int comp = item1.name.compare(item2.name); 
  270|   185M|            if (comp < 0) return true;
  ------------------
  |  Branch (270:17): [True: 1.82M, False: 184M]
  ------------------
  271|   184M|            if (comp == 0) return item1.index < item2.index;
  ------------------
  |  Branch (271:17): [True: 183M, False: 1.07M]
  ------------------
  272|       |
  273|  1.07M|            return false;
  274|   184M|        }
_ZNK8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5emptyEv:
  158|   112k|        {
  159|   112k|            return data_.empty();
  160|   112k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5clearEv:
  195|  2.03M|        void clear() {data_.clear();}
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5beginEv:
  168|  2.03M|        {
  169|  2.03M|            return data_.begin();
  170|  2.03M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE3endEv:
  173|  2.03M|        {
  174|  2.03M|            return data_.end();
  175|  2.03M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEED2Ev:
  153|  4.23M|        {
  154|  4.23M|            flatten_and_destroy();
  155|  4.23M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE19flatten_and_destroyEv:
  724|  4.23M|        {
  725|  4.23M|            if (!data_.empty())
  ------------------
  |  Branch (725:17): [True: 20.0k, False: 4.21M]
  ------------------
  726|  20.0k|            {
  727|  20.0k|                json_array<Json> temp(get_allocator());
  728|       |
  729|  20.0k|                for (auto& kv : data_)
  ------------------
  |  Branch (729:31): [True: 73.6k, False: 20.0k]
  ------------------
  730|  73.6k|                {
  731|  73.6k|                    switch (kv.value().storage_kind())
  732|  73.6k|                    {
  733|  3.95k|                        case json_storage_kind::array:
  ------------------
  |  Branch (733:25): [True: 3.95k, False: 69.6k]
  ------------------
  734|  10.4k|                        case json_storage_kind::object:
  ------------------
  |  Branch (734:25): [True: 6.49k, False: 67.1k]
  ------------------
  735|  10.4k|                            if (!kv.value().empty())
  ------------------
  |  Branch (735:33): [True: 6.19k, False: 4.25k]
  ------------------
  736|  6.19k|                            {
  737|  6.19k|                                temp.emplace_back(std::move(kv.value()));
  738|  6.19k|                            }
  739|  10.4k|                            break;
  740|  63.1k|                        default:
  ------------------
  |  Branch (740:25): [True: 63.1k, False: 10.4k]
  ------------------
  741|  63.1k|                            break;
  742|  73.6k|                    }
  743|  73.6k|                }
  744|  20.0k|            }
  745|  4.23M|        }

_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8positionEv:
  281|  13.8k|    {
  282|  13.8k|        return position_;
  283|  13.8k|    }
_ZN8jsoncons12chars_sourceIhE4readEPhm:
  588|  2.31M|    {
  589|  2.31M|        std::size_t len;
  590|  2.31M|        if (std::size_t(end_ - current_) < length)
  ------------------
  |  Branch (590:13): [True: 1.78k, False: 2.31M]
  ------------------
  591|  1.78k|        {
  592|  1.78k|            len = end_ - current_;
  593|  1.78k|        }
  594|  2.31M|        else
  595|  2.31M|        {
  596|  2.31M|            len = length;
  597|  2.31M|        }
  598|  2.31M|        std::memcpy(p, current_, len*sizeof(value_type));
  599|  2.31M|        current_  += len;
  600|  2.31M|        return len;
  601|  2.31M|    }
_ZN8jsoncons13source_readerINS_12chars_sourceIhEEE4readINSt3__16vectorIhNS5_9allocatorIhEEEEEENS5_9enable_ifIXaaL_ZNS5_17integral_constantIbLb1EE5valueEEsr6nonstd7is_byteINT_10value_typeEEE5valueEmE4typeERS2_RSD_m:
  746|   277k|    {
  747|   277k|        std::size_t unread = length;
  748|       |
  749|   512k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 235k, False: 276k]
  |  Branch (749:30): [True: 234k, False: 1.01k]
  ------------------
  750|   234k|        {
  751|   234k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 0, False: 234k]
  |  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|   234k|            else
  764|   234k|            {
  765|   234k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|   234k|                std::size_t offset = buffer.size();
  767|   234k|                buffer.resize(offset+n);
  768|   234k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|   234k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|   234k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 234k]
  |  |  ------------------
  ------------------
  770|      0|                {
  771|      0|                    buffer.resize(offset + actual);
  772|      0|                }
  773|   234k|                unread -= actual;
  774|   234k|            }
  775|   234k|        }
  776|   277k|        return length - unread;
  777|   277k|    }
_ZNK8jsoncons12chars_sourceIhE3eofEv:
  507|   238k|    {
  508|   238k|        return current_ == end_;  
  509|   238k|    }
_ZNK8jsoncons12chars_sourceIhE9remainingEv:
  568|   236k|    {
  569|   236k|        return std::size_t(end_ - current_);
  570|   236k|    }
_ZNK8jsoncons12chars_sourceIhE10chunk_sizeEv:
  541|   236k|    {
  542|   236k|        return end_ - current_;
  543|   236k|    }
_ZN8jsoncons12chars_sourceIhE9read_spanIRNSt3__16vectorIhNS3_9allocatorIhEEEEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  574|  8.68M|    {
  575|  8.68M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  8.68M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 953k, False: 7.73M]
  |  |  ------------------
  ------------------
  576|   953k|        {
  577|   953k|            return span<const value_type>{};
  578|   953k|        }
  579|  7.73M|        std::size_t remaining = std::size_t(end_ - current_);
  580|  7.73M|        std::size_t len = remaining < length ? remaining : length;
  ------------------
  |  Branch (580:27): [True: 1.88k, False: 7.72M]
  ------------------
  581|       |
  582|  7.73M|        const value_type* data = current_;
  583|  7.73M|        current_ += len;
  584|  7.73M|        return span<const value_type>(data, len);
  585|  8.68M|    }
_ZN8jsoncons13source_readerINS_12chars_sourceIhEEE4readINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEEENS5_9enable_ifIXaaL_ZNS5_17integral_constantIbLb1EE5valueEEsr6nonstd7is_byteINT_10value_typeEEE5valueEmE4typeERS2_RSF_m:
  746|  6.10k|    {
  747|  6.10k|        std::size_t unread = length;
  748|       |
  749|  8.67k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 2.97k, False: 5.69k]
  |  Branch (749:30): [True: 2.56k, False: 416]
  ------------------
  750|  2.56k|        {
  751|  2.56k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 0, False: 2.56k]
  |  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.56k|            else
  764|  2.56k|            {
  765|  2.56k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  2.56k|                std::size_t offset = buffer.size();
  767|  2.56k|                buffer.resize(offset+n);
  768|  2.56k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  2.56k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|  2.56k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.56k]
  |  |  ------------------
  ------------------
  770|      0|                {
  771|      0|                    buffer.resize(offset + actual);
  772|      0|                }
  773|  2.56k|                unread -= actual;
  774|  2.56k|            }
  775|  2.56k|        }
  776|  6.10k|        return length - unread;
  777|  6.10k|    }
_ZN8jsoncons12chars_sourceIhE9read_spanIRNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  574|   397k|    {
  575|   397k|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|   397k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 165k, False: 232k]
  |  |  ------------------
  ------------------
  576|   165k|        {
  577|   165k|            return span<const value_type>{};
  578|   165k|        }
  579|   232k|        std::size_t remaining = std::size_t(end_ - current_);
  580|   232k|        std::size_t len = remaining < length ? remaining : length;
  ------------------
  |  Branch (580:27): [True: 1.26k, False: 230k]
  ------------------
  581|       |
  582|   232k|        const value_type* data = current_;
  583|   232k|        current_ += len;
  584|   232k|        return span<const value_type>(data, len);
  585|   397k|    }
_ZN8jsoncons12chars_sourceIhE4peekEv:
  536|   248M|    {
  537|   248M|        return current_ < end_ ? char_result<value_type>{*current_, false} : char_result<value_type>{0, true};
  ------------------
  |  Branch (537:16): [True: 248M, False: 11.4k]
  ------------------
  538|   248M|    }
_ZN8jsoncons12chars_sourceIhE6ignoreEm:
  522|   105M|    {
  523|   105M|        std::size_t len;
  524|   105M|        if (std::size_t(end_ - current_) < count)
  ------------------
  |  Branch (524:13): [True: 0, False: 105M]
  ------------------
  525|      0|        {
  526|      0|            len = end_ - current_;
  527|      0|        }
  528|   105M|        else
  529|   105M|        {
  530|   105M|            len = count;
  531|   105M|        }
  532|   105M|        current_ += len;
  533|   105M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  12.7M|    {
  378|  12.7M|        std::size_t len = 0;
  379|  12.7M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 12.0M, False: 759k]
  ------------------
  380|  12.0M|        {
  381|  12.0M|            len = (std::min)(remaining_, length);
  382|  12.0M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  12.0M|            data_end_ += len;
  384|  12.0M|            remaining_ -= len;
  385|  12.0M|            position_ += len;
  386|  12.0M|        }
  387|  12.7M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 4.95M, False: 7.81M]
  ------------------
  388|  4.95M|        {
  389|  4.95M|            return len;
  390|  4.95M|        }
  391|  7.81M|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 7.80M, False: 12.9k]
  ------------------
  392|  7.80M|        {
  393|  7.80M|            data_end_ = chunk_;
  394|  7.80M|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|  7.80M|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 7.80M, False: 5.84k]
  ------------------
  396|  7.80M|            {
  397|  7.80M|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|  7.80M|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|  7.80M|                data_end_ += len2;
  400|  7.80M|                remaining_ -= len2;
  401|  7.80M|                position_ += len2;
  402|  7.80M|                len += len2;
  403|  7.80M|            }
  404|  7.80M|            return len;
  405|  7.80M|        }
  406|  12.9k|        else
  407|  12.9k|        {
  408|  12.9k|            if (stream_ptr_->eof())
  ------------------
  |  Branch (408:17): [True: 148, False: 12.7k]
  ------------------
  409|    148|            {
  410|    148|                remaining_ = 0;
  411|    148|                return 0;
  412|    148|            }
  413|  12.7k|            JSONCONS_TRY
  ------------------
  |  |   37|  12.7k|    #define JSONCONS_TRY try
  ------------------
  414|  12.7k|            {
  415|  12.7k|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  416|  12.7k|                std::size_t len2 = static_cast<std::size_t>(count);
  417|  12.7k|                if (len2 < length-len)
  ------------------
  |  Branch (417:21): [True: 86, False: 12.6k]
  ------------------
  418|     86|                {
  419|     86|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  420|     86|                }
  421|  12.7k|                len += len2;
  422|  12.7k|                position_ += len2;
  423|  12.7k|                return len;
  424|  12.7k|            }
  425|  12.7k|            JSONCONS_CATCH(const std::exception&)     
  426|  12.7k|            {
  427|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  428|      0|                return 0;
  429|      0|            }
  430|  12.7k|        }
  431|  12.7M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  17.0M|    {
  443|  17.0M|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 21.8k, False: 17.0M]
  ------------------
  444|  21.8k|        {
  445|  21.8k|            return 0;
  446|  21.8k|        }
  447|       |
  448|  17.0M|        JSONCONS_TRY
  ------------------
  |  |   37|  17.0M|    #define JSONCONS_TRY try
  ------------------
  449|  17.0M|        {
  450|  17.0M|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  17.0M|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  17.0M|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 48.0k, False: 16.9M]
  ------------------
  454|  48.0k|            {
  455|  48.0k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  48.0k|            }
  457|  17.0M|            return length;
  458|  17.0M|        }
  459|  17.0M|        JSONCONS_CATCH(const std::exception&)     
  460|  17.0M|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  17.0M|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr6nonstd7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  746|  4.70M|    {
  747|  4.70M|        std::size_t unread = length;
  748|       |
  749|  15.2M|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 10.5M, False: 4.70M]
  |  Branch (749:30): [True: 10.5M, False: 4.20k]
  ------------------
  750|  10.5M|        {
  751|  10.5M|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 1.98M, False: 8.54M]
  |  Branch (751:44): [True: 1.36M, False: 616k]
  ------------------
  752|  1.36M|            {
  753|  1.36M|                std::size_t n = source.chunk_size();
  754|  1.36M|                std::size_t offset = buffer.size();
  755|  1.36M|                buffer.resize(offset+n);
  756|  1.36M|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|  1.36M|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|  1.36M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 246, False: 1.36M]
  |  |  ------------------
  ------------------
  758|    246|                {
  759|    246|                    buffer.resize(offset+actual);
  760|    246|                }
  761|  1.36M|                unread -= actual;
  762|  1.36M|            }
  763|  9.16M|            else
  764|  9.16M|            {
  765|  9.16M|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  9.16M|                std::size_t offset = buffer.size();
  767|  9.16M|                buffer.resize(offset+n);
  768|  9.16M|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  9.16M|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|  9.16M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.51k, False: 9.16M]
  |  |  ------------------
  ------------------
  770|  2.51k|                {
  771|  2.51k|                    buffer.resize(offset + actual);
  772|  2.51k|                }
  773|  9.16M|                unread -= actual;
  774|  9.16M|            }
  775|  10.5M|        }
  776|  4.70M|        return length - unread;
  777|  4.70M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  11.0M|    {
  272|  11.0M|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 2.03M, False: 9.06M]
  |  Branch (272:35): [True: 6.67k, False: 2.02M]
  ------------------
  273|  11.0M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|  11.0M|    {
  347|  11.0M|        return remaining_;
  348|  11.0M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|  13.1M|    {
  262|  13.1M|        return chunk_size_;
  263|  13.1M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|  1.40M|    {
  436|  1.40M|        auto len = fill_buffer(chunk, chunk_size);
  437|  1.40M|        position_ += len;
  438|  1.40M|        return len;
  439|  1.40M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|  12.3M|    {
  353|  12.3M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  12.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.35M, False: 10.9M]
  |  |  ------------------
  ------------------
  354|  1.35M|        {
  355|  1.35M|            return span<const value_type>{};
  356|  1.35M|        }
  357|  10.9M|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 637k, False: 10.3M]
  |  Branch (357:32): [True: 33.3k, False: 604k]
  ------------------
  358|  33.3k|        {
  359|  33.3k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|  33.3k|            data_end_ = chunk_;
  361|  33.3k|        }
  362|  10.9M|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 4.29M, False: 6.68M]
  ------------------
  363|  4.29M|        {
  364|  4.29M|            buffer.clear();
  365|  4.29M|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|  4.29M|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|  4.29M|        }
  368|       |
  369|  6.68M|        const value_type* data = data_end_;
  370|  6.68M|        data_end_ += length;
  371|  6.68M|        remaining_ -= length;
  372|  6.68M|        position_ += length;
  373|  6.68M|        return span<const value_type>(data, length);
  374|  10.9M|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr6nonstd7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSG_m:
  746|  68.3k|    {
  747|  68.3k|        std::size_t unread = length;
  748|       |
  749|   618k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 552k, False: 65.9k]
  |  Branch (749:30): [True: 550k, False: 2.46k]
  ------------------
  750|   550k|        {
  751|   550k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 36.8k, False: 513k]
  |  Branch (751:44): [True: 30.4k, False: 6.47k]
  ------------------
  752|  30.4k|            {
  753|  30.4k|                std::size_t n = source.chunk_size();
  754|  30.4k|                std::size_t offset = buffer.size();
  755|  30.4k|                buffer.resize(offset+n);
  756|  30.4k|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|  30.4k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|  30.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 181, False: 30.2k]
  |  |  ------------------
  ------------------
  758|    181|                {
  759|    181|                    buffer.resize(offset+actual);
  760|    181|                }
  761|  30.4k|                unread -= actual;
  762|  30.4k|            }
  763|   519k|            else
  764|   519k|            {
  765|   519k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|   519k|                std::size_t offset = buffer.size();
  767|   519k|                buffer.resize(offset+n);
  768|   519k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|   519k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|   519k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.40k, False: 518k]
  |  |  ------------------
  ------------------
  770|  1.40k|                {
  771|  1.40k|                    buffer.resize(offset + actual);
  772|  1.40k|                }
  773|   519k|                unread -= actual;
  774|   519k|            }
  775|   550k|        }
  776|  68.3k|        return length - unread;
  777|  68.3k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_12basic_stringIcNS1_11char_traitsIcEENS2_IcEEEEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|   583k|    {
  353|   583k|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|   583k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 246k, False: 336k]
  |  |  ------------------
  ------------------
  354|   246k|        {
  355|   246k|            return span<const value_type>{};
  356|   246k|        }
  357|   336k|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 20.1k, False: 316k]
  |  Branch (357:32): [True: 13.1k, False: 6.94k]
  ------------------
  358|  13.1k|        {
  359|  13.1k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|  13.1k|            data_end_ = chunk_;
  361|  13.1k|        }
  362|   336k|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 59.2k, False: 277k]
  ------------------
  363|  59.2k|        {
  364|  59.2k|            buffer.clear();
  365|  59.2k|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|  59.2k|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|  59.2k|        }
  368|       |
  369|   277k|        const value_type* data = data_end_;
  370|   277k|        data_end_ += length;
  371|   277k|        remaining_ -= length;
  372|   277k|        position_ += length;
  373|   277k|        return span<const value_type>(data, length);
  374|   336k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4peekEv:
  312|   369M|    {
  313|   369M|        if (remaining_ == 0)
  ------------------
  |  Branch (313:13): [True: 7.78M, False: 362M]
  ------------------
  314|  7.78M|        {
  315|  7.78M|            data_end_ = chunk_;
  316|  7.78M|            remaining_ = fill_buffer(chunk_, chunk_size_);
  317|  7.78M|        }
  318|   369M|        if (remaining_ > 0)
  ------------------
  |  Branch (318:13): [True: 369M, False: 16.4k]
  ------------------
  319|   369M|        {
  320|   369M|            value_type c = *data_end_;
  321|   369M|            return char_result<value_type>{c, false};
  322|   369M|        }
  323|  16.4k|        else
  324|  16.4k|        {
  325|  16.4k|            return char_result<value_type>{0, true};
  326|  16.4k|        }
  327|   369M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE6ignoreEm:
  286|   157M|    {
  287|   157M|        std::size_t len = 0;
  288|   157M|        if (remaining_ > 0)
  ------------------
  |  Branch (288:13): [True: 157M, False: 0]
  ------------------
  289|   157M|        {
  290|   157M|            len = (std::min)(remaining_, length);
  291|   157M|            position_ += len;
  292|   157M|            data_end_ += len;
  293|   157M|            remaining_ -= len;
  294|   157M|        }
  295|   157M|        while (len < length)
  ------------------
  |  Branch (295:16): [True: 0, False: 157M]
  ------------------
  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|   157M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  34.9k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  34.9k|          chunk_size_(default_max_chunk_size)
  178|  34.9k|    {
  179|  34.9k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  34.9k|        data_end_ = chunk_;
  181|  34.9k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  69.9k|      : std::basic_istream<CharT>(&nb_)
   58|  69.9k|    {
   59|  69.9k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  69.9k|        null_buffer() = default;
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  69.9k|    {
  194|  69.9k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 52.4k, False: 17.4k]
  ------------------
  195|  52.4k|        {
  196|  52.4k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  52.4k|        }
  198|  69.9k|    }
_ZN8jsoncons12chars_sourceIhEC2INS_6nonstd4spanIKhLm18446744073709551615EEEhEERKT_PNSt3__19enable_ifIXaasr6nonstd7is_byteIT0_EE5valuesr6nonstd7is_byteINS7_10value_typeEEE5valueEvE4typeE:
  492|  34.9k|        : data_end_(reinterpret_cast<const value_type*>(s.data())), current_(data_end_), end_(data_end_+s.size())
  493|  34.9k|    {
  494|  34.9k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEEmRKS3_:
  185|  17.4k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  186|  17.4k|          chunk_size_(chunk_size)
  187|  17.4k|    {
  188|  17.4k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  189|  17.4k|        data_end_ = chunk_;
  190|  17.4k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2EOS4_:
  119|  17.4k|        : alloc_(other.alloc_), stream_ptr_(&null_is_), sbuf_(null_is_.rdbuf())
  120|  17.4k|    {
  121|  17.4k|        chunk_ = other.chunk_;
  122|  17.4k|        data_end_ = other.data_end_;
  123|  17.4k|        chunk_size_ = other.chunk_size_;
  124|  17.4k|        remaining_ = other.remaining_;
  125|  17.4k|        other.chunk_ = nullptr;
  126|  17.4k|        other.data_end_ = nullptr;
  127|  17.4k|        other.chunk_size_ = 0;
  128|  17.4k|        other.remaining_ = 0;
  129|       |
  130|  17.4k|        if (other.stream_ptr_ != &other.null_is_)
  ------------------
  |  Branch (130:13): [True: 17.4k, False: 0]
  ------------------
  131|  17.4k|        {
  132|  17.4k|            stream_ptr_ = other.stream_ptr_;
  133|  17.4k|            sbuf_ = other.sbuf_;
  134|  17.4k|            position_ = other.position_;
  135|  17.4k|            other.stream_ptr_ = &other.null_is_;
  136|  17.4k|            other.sbuf_ = other.null_is_.rdbuf();
  137|  17.4k|            other.position_ = 0;
  138|  17.4k|        }
  139|  17.4k|    }

_ZN8jsoncons17basic_staj_cursorIcED2Ev:
  558|  52.4k|    virtual ~basic_staj_cursor() = default;
_ZNK8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE5eventEv:
   73|  44.8k|    {
   74|  44.8k|        return event_;
   75|  44.8k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE4dumpERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS1_10error_codeE:
   83|  15.5k|    {
   84|  15.5k|        event().send_event(visitor, context, ec);
   85|  15.5k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEEC2ERKS3_:
   67|  52.4k|        : event_(staj_events::null_value), structure_stack_(temp_alloc)
   68|  52.4k|    {
   69|  52.4k|        structure_stack_.emplace_back(json_structure_kind::root_kind);
   70|  52.4k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE14json_structureC2ENS4_19json_structure_kindE:
   53|  19.9M|            : structure_kind(type)
   54|  19.9M|        {
   55|  19.9M|        }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  174|   885k|    {
  175|   885k|        auto& structure = structure_stack_.back();
  176|   885k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (176:13): [True: 466k, False: 419k]
  ------------------
  177|   466k|        {
  178|   466k|            structure.is_key = !structure_stack_.back().is_key;
  179|   466k|        }
  180|   885k|        if (structure.is_key)
  ------------------
  |  Branch (180:13): [True: 227k, False: 658k]
  ------------------
  181|   227k|        {
  182|   227k|            event_ = staj_event_type(staj_events::begin_array, length, tag, staj_events::key_flag);
  183|   227k|        }
  184|   658k|        else
  185|   658k|        {
  186|   658k|            event_ = staj_event_type(staj_events::begin_array, length, tag);
  187|   658k|        }
  188|   885k|        structure_stack_.emplace_back(json_structure_kind::array_kind);
  189|   885k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   885k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  190|   885k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
  193|   698k|    {
  194|   698k|        JSONCONS_ASSERT(structure_stack_.size() > 1);
  ------------------
  |  |   54|   698k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 698k]
  |  |  ------------------
  |  |   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|   698k|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::array_kind);
  ------------------
  |  |   54|   698k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 698k]
  |  |  ------------------
  |  |   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|   698k|        structure_stack_.pop_back();
  197|       |
  198|   698k|        if (structure_stack_.back().is_key)
  ------------------
  |  Branch (198:13): [True: 201k, False: 497k]
  ------------------
  199|   201k|        {
  200|   201k|            event_ = staj_event_type(staj_events::end_array, semantic_tag::none, staj_events::key_flag);
  201|   201k|        }
  202|   497k|        else
  203|   497k|        {
  204|   497k|            event_ = staj_event_type(staj_events::end_array);
  205|   497k|        }
  206|       |
  207|   698k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   698k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  208|   698k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  295|  46.1M|    {
  296|  46.1M|        auto& structure = structure_stack_.back();
  297|  46.1M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (297:13): [True: 35.7M, False: 10.4M]
  ------------------
  298|  35.7M|        {
  299|  35.7M|            structure.is_key = !structure.is_key;
  300|  35.7M|        }
  301|  46.1M|        if (structure.is_key)
  ------------------
  |  Branch (301:13): [True: 17.8M, False: 28.3M]
  ------------------
  302|  17.8M|        {
  303|  17.8M|            event_ = staj_event_type(value, tag, staj_events::key_flag);
  304|  17.8M|        }
  305|  28.3M|        else
  306|  28.3M|        {
  307|  28.3M|            event_ = staj_event_type(value, tag);
  308|  28.3M|        }
  309|  46.1M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  46.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  310|  46.1M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  274|  9.90M|    {
  275|  9.90M|        auto& structure = structure_stack_.back();
  276|  9.90M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (276:13): [True: 2.44M, False: 7.45M]
  ------------------
  277|  2.44M|        {
  278|  2.44M|            structure.is_key = !structure.is_key;
  279|  2.44M|        }
  280|  9.90M|        if (structure.is_key)
  ------------------
  |  Branch (280:13): [True: 1.23M, False: 8.66M]
  ------------------
  281|  1.23M|        {
  282|  1.23M|            event_ = staj_event_type(value, tag, staj_events::key_flag);
  283|  1.23M|        }
  284|  8.66M|        else
  285|  8.66M|        {
  286|  8.66M|            event_ = staj_event_type(value, tag);
  287|  8.66M|        }
  288|  9.90M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.90M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  289|  9.90M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  337|  3.13M|    {
  338|  3.13M|        auto& structure = structure_stack_.back();
  339|  3.13M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (339:13): [True: 250k, False: 2.88M]
  ------------------
  340|   250k|        {
  341|   250k|            structure.is_key = !structure.is_key;
  342|   250k|        }
  343|  3.13M|        if (structure.is_key)
  ------------------
  |  Branch (343:13): [True: 128k, False: 3.00M]
  ------------------
  344|   128k|        {
  345|   128k|            event_ = staj_event_type(value, tag, staj_events::key_flag);
  346|   128k|        }
  347|  3.00M|        else
  348|  3.00M|        {
  349|  3.00M|            event_ = staj_event_type(value, tag);
  350|  3.00M|        }
  351|  3.13M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  3.13M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  352|  3.13M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE11visit_flushEv:
   94|  11.7k|    {
   95|  11.7k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  117|  78.3k|    {
  118|  78.3k|        auto& structure = structure_stack_.back();
  119|  78.3k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (119:13): [True: 47.4k, False: 30.8k]
  ------------------
  120|  47.4k|        {
  121|  47.4k|            structure_stack_.back().is_key = !structure_stack_.back().is_key;
  122|  47.4k|        }
  123|  78.3k|        if (structure.is_key)
  ------------------
  |  Branch (123:13): [True: 26.4k, False: 51.9k]
  ------------------
  124|  26.4k|        {
  125|  26.4k|            event_ = staj_event_type(staj_events::begin_object, tag, staj_events::key_flag);
  126|  26.4k|        }
  127|  51.9k|        else 
  128|  51.9k|        {
  129|  51.9k|            event_ = staj_event_type(staj_events::begin_object, tag);
  130|  51.9k|        }
  131|  78.3k|        structure_stack_.emplace_back(json_structure_kind::object_kind);
  132|  78.3k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  78.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  133|  78.3k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
   98|  18.8M|    {
   99|  18.8M|        auto& structure = structure_stack_.back();
  100|  18.8M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (100:13): [True: 5.48M, False: 13.3M]
  ------------------
  101|  5.48M|        {
  102|  5.48M|            structure_stack_.back().is_key = !structure_stack_.back().is_key;
  103|  5.48M|        }
  104|  18.8M|        if (structure.is_key)
  ------------------
  |  Branch (104:13): [True: 2.76M, False: 16.0M]
  ------------------
  105|  2.76M|        {
  106|  2.76M|            event_ = staj_event_type(staj_events::begin_object, length, tag, staj_events::key_flag);
  107|  2.76M|        }
  108|  16.0M|        else 
  109|  16.0M|        {
  110|  16.0M|            event_ = staj_event_type(staj_events::begin_object, length, tag);
  111|  16.0M|        }
  112|  18.8M|        structure_stack_.emplace_back(json_structure_kind::object_kind);
  113|  18.8M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  18.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  114|  18.8M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  136|  18.6M|    {
  137|  18.6M|        JSONCONS_ASSERT(structure_stack_.size() > 0);
  ------------------
  |  |   54|  18.6M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 18.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|  18.6M|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::object_kind);
  ------------------
  |  |   54|  18.6M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 18.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|  18.6M|        structure_stack_.pop_back();
  141|  18.6M|        if (structure_stack_.back().is_key)
  ------------------
  |  Branch (141:13): [True: 2.67M, False: 15.9M]
  ------------------
  142|  2.67M|        {
  143|  2.67M|            event_ = staj_event_type(staj_events::end_object, semantic_tag::none, staj_events::key_flag);
  144|  2.67M|        }
  145|  15.9M|        else 
  146|  15.9M|        {
  147|  15.9M|            event_ = staj_event_type(staj_events::end_object);
  148|  15.9M|        }
  149|       |
  150|  18.6M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  18.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  151|  18.6M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  154|   127k|    {
  155|   127k|        auto& structure = structure_stack_.back();
  156|   127k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (156:13): [True: 22.0k, False: 105k]
  ------------------
  157|  22.0k|        {
  158|  22.0k|            structure.is_key = !structure_stack_.back().is_key;
  159|  22.0k|        }
  160|   127k|        if (structure.is_key)
  ------------------
  |  Branch (160:13): [True: 13.2k, False: 114k]
  ------------------
  161|  13.2k|        {
  162|  13.2k|            event_ = staj_event_type(staj_events::begin_array, tag, staj_events::key_flag);
  163|  13.2k|        }
  164|   114k|        else
  165|   114k|        {
  166|   114k|            event_ = staj_event_type(staj_events::begin_array, tag);
  167|   114k|        }
  168|   127k|        structure_stack_.emplace_back(json_structure_kind::array_kind);
  169|   127k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   127k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  170|   127k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  373|   157k|    {
  374|   157k|        auto& structure = structure_stack_.back();
  375|   157k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (375:13): [True: 74.2k, False: 82.8k]
  ------------------
  376|  74.2k|        {
  377|  74.2k|            structure.is_key = !structure.is_key;
  378|  74.2k|        }
  379|   157k|        if (structure.is_key)
  ------------------
  |  Branch (379:13): [True: 43.1k, False: 114k]
  ------------------
  380|  43.1k|        {
  381|  43.1k|            event_ = staj_event_type(staj_events::null_value, tag, staj_events::key_flag);
  382|  43.1k|        }
  383|   114k|        else
  384|   114k|        {
  385|   114k|            event_ = staj_event_type(staj_events::null_value, tag);
  386|   114k|        }
  387|   157k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   157k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  388|   157k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  355|  3.88M|    {
  356|  3.88M|        auto& structure = structure_stack_.back();
  357|  3.88M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (357:13): [True: 353k, False: 3.53M]
  ------------------
  358|   353k|        {
  359|   353k|            structure.is_key = !structure.is_key;
  360|   353k|        }
  361|  3.88M|        if (structure.is_key)
  ------------------
  |  Branch (361:13): [True: 172k, False: 3.71M]
  ------------------
  362|   172k|        {
  363|   172k|            event_ = staj_event_type(value, tag, staj_events::key_flag);
  364|   172k|        }
  365|  3.71M|        else
  366|  3.71M|        {
  367|  3.71M|            event_ = staj_event_type(value, tag);
  368|  3.71M|        }
  369|  3.88M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  3.88M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  370|  3.88M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  211|   771k|    {
  212|   771k|        auto& structure = structure_stack_.back();
  213|   771k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (213:13): [True: 486k, False: 285k]
  ------------------
  214|   486k|        {
  215|   486k|            structure.is_key = !structure.is_key;
  216|   486k|        }
  217|   771k|        if (structure.is_key)
  ------------------
  |  Branch (217:13): [True: 253k, False: 518k]
  ------------------
  218|   253k|        {
  219|   253k|            event_ = staj_event_type(sv, staj_events::string_value, tag, staj_events::key_flag);
  220|   253k|        }
  221|   518k|        else
  222|   518k|        {
  223|   518k|            event_ = staj_event_type(sv, staj_events::string_value, tag);
  224|   518k|        }
  225|   771k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   771k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  226|   771k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  232|  9.80M|    {
  233|  9.80M|        auto& structure = structure_stack_.back();
  234|  9.80M|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (234:13): [True: 4.81M, False: 4.99M]
  ------------------
  235|  4.81M|        {
  236|  4.81M|            structure.is_key = !structure.is_key;
  237|  4.81M|        }
  238|  9.80M|        if (structure.is_key)
  ------------------
  |  Branch (238:13): [True: 2.43M, False: 7.37M]
  ------------------
  239|  2.43M|        {
  240|  2.43M|            event_ = staj_event_type(value, staj_events::byte_string_value, tag, staj_events::key_flag);
  241|  2.43M|        }
  242|  7.37M|        else
  243|  7.37M|        {
  244|  7.37M|            event_ = staj_event_type(value, staj_events::byte_string_value, tag);
  245|  7.37M|        }
  246|  9.80M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|  9.80M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  247|  9.80M|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
  253|   192k|    {
  254|   192k|        auto& structure = structure_stack_.back();
  255|   192k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (255:13): [True: 66.9k, False: 125k]
  ------------------
  256|  66.9k|        {
  257|  66.9k|            structure.is_key = !structure.is_key;
  258|  66.9k|        }
  259|   192k|        if (structure.is_key)
  ------------------
  |  Branch (259:13): [True: 38.5k, False: 154k]
  ------------------
  260|  38.5k|        {
  261|  38.5k|            event_ = staj_event_type(value, staj_events::byte_string_value, raw_tag, staj_events::key_flag);
  262|  38.5k|        }
  263|   154k|        else
  264|   154k|        {
  265|   154k|            event_ = staj_event_type(value, staj_events::byte_string_value, raw_tag);
  266|   154k|        }
  267|   192k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   192k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  268|   192k|    }
_ZN8jsoncons33basic_generic_staj_event_receiverIcNSt3__19allocatorIcEEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  316|   160k|    {
  317|   160k|        auto& structure = structure_stack_.back();
  318|   160k|        if (structure.structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (318:13): [True: 92.6k, False: 67.9k]
  ------------------
  319|  92.6k|        {
  320|  92.6k|            structure.is_key = !structure.is_key;
  321|  92.6k|        }
  322|   160k|        if (structure.is_key)
  ------------------
  |  Branch (322:13): [True: 48.6k, False: 111k]
  ------------------
  323|  48.6k|        {
  324|  48.6k|            event_ = staj_event_type(half_arg, value, tag, staj_events::key_flag);
  325|  48.6k|        }
  326|   111k|        else
  327|   111k|        {
  328|   111k|            event_ = staj_event_type(half_arg, value, tag);
  329|   111k|        }
  330|   160k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  321|   160k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  331|   160k|    }

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

_ZN8jsoncons16typed_array_castIKhEENS_6nonstd4spanIT_Lm18446744073709551615EEENS3_IhLm18446744073709551615EEE:
  141|  38.7k|{
  142|  38.7k|    return jsoncons::span<const uint8_t>{reinterpret_cast<const uint8_t*>(bytes.data()), bytes.size()};
  143|  38.7k|}
_ZN8jsoncons16typed_array_castIhEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   81|  37.9k|{
   82|  37.9k|    return bytes;
   83|  37.9k|}
_ZN8jsoncons16typed_array_castItEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   87|   211k|{
   88|   211k|    return jsoncons::span<uint16_t>{reinterpret_cast<uint16_t*>(bytes.data()), bytes.size()/sizeof(uint16_t)};
   89|   211k|}
_ZN8jsoncons16typed_array_castIjEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   93|  60.8k|{
   94|  60.8k|    return jsoncons::span<uint32_t>{reinterpret_cast<uint32_t*>(bytes.data()), bytes.size()/sizeof(uint32_t)};
   95|  60.8k|}
_ZN8jsoncons16typed_array_castImEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   99|  85.6k|{
  100|  85.6k|    return jsoncons::span<uint64_t>{reinterpret_cast<uint64_t*>(bytes.data()), bytes.size()/sizeof(uint64_t)};
  101|  85.6k|}
_ZN8jsoncons16typed_array_castIaEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  105|  41.2k|{
  106|  41.2k|    return jsoncons::span<int8_t>{reinterpret_cast<int8_t*>(bytes.data()), bytes.size()};
  107|  41.2k|}
_ZN8jsoncons16typed_array_castIsEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  111|  59.3k|{
  112|  59.3k|    return jsoncons::span<int16_t>{reinterpret_cast<int16_t*>(bytes.data()), bytes.size()/sizeof(int16_t)};
  113|  59.3k|}
_ZN8jsoncons16typed_array_castIiEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  117|   204k|{
  118|   204k|    return jsoncons::span<int32_t>{reinterpret_cast<int32_t*>(bytes.data()), bytes.size()/sizeof(int32_t)};
  119|   204k|}
_ZN8jsoncons16typed_array_castIlEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  123|  52.7k|{
  124|  52.7k|    return jsoncons::span<int64_t>{reinterpret_cast<int64_t*>(bytes.data()), bytes.size()/sizeof(int64_t)};
  125|  52.7k|}
_ZN8jsoncons16typed_array_castIfEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  129|  95.2k|{
  130|  95.2k|    return jsoncons::span<float>{reinterpret_cast<float*>(bytes.data()), bytes.size()/sizeof(float)};
  131|  95.2k|}
_ZN8jsoncons16typed_array_castIdEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  135|  63.8k|{
  136|  63.8k|    return jsoncons::span<double>{reinterpret_cast<double*>(bytes.data()), bytes.size()/sizeof(double)};
  137|  63.8k|}
_ZN8jsoncons22calculate_mdarray_sizeENS_6nonstd4spanIKmLm18446744073709551615EEE:
  247|   184k|{
  248|   184k|    using result_type = jsoncons::expected<std::size_t,std::errc>;
  249|       |
  250|   184k|    if (extents.empty())
  ------------------
  |  Branch (250:9): [True: 43, False: 184k]
  ------------------
  251|     43|    {
  252|     43|        return result_type(0);
  253|     43|    }
  254|   184k|    std::size_t n = extents[0];
  255|  28.6M|    for (std::size_t i = 1; i < extents.size(); ++i)
  ------------------
  |  Branch (255:29): [True: 28.4M, False: 184k]
  ------------------
  256|  28.4M|    {
  257|  28.4M|        if (extents[i] == 0 || JSONCONS_UNLIKELY(n > (std::numeric_limits<std::size_t>::max)()/extents[i]))
  ------------------
  |  |   79|  28.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 159, False: 28.4M]
  |  |  ------------------
  ------------------
  |  Branch (257:13): [True: 96, False: 28.4M]
  ------------------
  258|    255|        {
  259|    255|            return result_type(jsoncons::unexpect, std::errc::value_too_large);
  260|    255|        }
  261|  28.4M|        n *= extents[i];
  262|  28.4M|    }
  263|   184k|    return n;
  264|   184k|}

_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEC2EONS_12basic_bigintIS3_EEl:
   42|   219k|        : unscaled_{unscaled}, scale_{scale}
   43|   219k|    {
   44|   219k|    }
_ZN8jsoncons16append_to_bufferINSt3__19allocatorImEEcNS2_IcEEEEvRKNS_12basic_bigdecIT_EERNS1_12basic_stringIT0_NS1_11char_traitsISB_EET1_EE:
  398|   219k|{
  399|   219k|    if (value.scale() == 0)
  ------------------
  |  Branch (399:9): [True: 57.0k, False: 162k]
  ------------------
  400|  57.0k|    {
  401|  57.0k|        append_to_buffer(value.unscaled(), buf);
  402|  57.0k|        return;
  403|  57.0k|    }
  404|   162k|    if (value.unscaled().is_negative())
  ------------------
  |  Branch (404:9): [True: 62.9k, False: 99.9k]
  ------------------
  405|  62.9k|    {
  406|  62.9k|        buf.push_back('-');
  407|  62.9k|    }
  408|   162k|    std::basic_string<CharT> coeff;
  409|   162k|    append_to_buffer(value.unscaled().is_negative() ? -value.unscaled() : value.unscaled(), coeff);
  ------------------
  |  Branch (409:22): [True: 62.9k, False: 99.9k]
  ------------------
  410|   162k|    std::size_t coeffLen = coeff.size();
  411|   162k|    if ((value.scale() >= 0) && (value.scale() <= static_cast<int64_t>(coeffLen) + 5)) 
  ------------------
  |  Branch (411:9): [True: 138k, False: 24.7k]
  |  Branch (411:33): [True: 77.4k, False: 60.7k]
  ------------------
  412|  77.4k|    { 
  413|  77.4k|        int64_t pad = value.scale() - coeffLen;         // padding zeros
  414|  77.4k|        if (pad >= 0) {                                 // 0.xxx form
  ------------------
  |  Branch (414:13): [True: 52.6k, False: 24.7k]
  ------------------
  415|  52.6k|            buf.push_back('0');
  416|  52.6k|            buf.push_back('.');
  417|   213k|            for (; pad>0; pad--) {
  ------------------
  |  Branch (417:20): [True: 160k, False: 52.6k]
  ------------------
  418|   160k|                buf.push_back('0');
  419|   160k|            }
  420|  52.6k|            buf.append(coeff.data(), coeffLen);
  421|  52.6k|        } 
  422|  24.7k|        else 
  423|  24.7k|        {
  424|  24.7k|            buf.append(coeff.data(), -pad);
  425|  24.7k|            buf.push_back('.');
  426|  24.7k|            buf.append(coeff.data() -pad, value.scale());
  427|  24.7k|        }
  428|  77.4k|    }
  429|  85.4k|    else
  430|  85.4k|    {
  431|  85.4k|        buf.push_back(coeff[0]);   // first character
  432|  85.4k|        if (coeffLen > 1) 
  ------------------
  |  Branch (432:13): [True: 27.4k, False: 58.0k]
  ------------------
  433|  27.4k|        {
  434|  27.4k|            buf.push_back('.');
  435|  27.4k|            buf.append(coeff.data() + 1, coeffLen - 1);
  436|  27.4k|        }
  437|  85.4k|        int64_t digits = static_cast<int64_t>(coeffLen) - 1;
  438|  85.4k|        if (value.scale() != digits) 
  ------------------
  |  Branch (438:13): [True: 85.4k, False: 0]
  ------------------
  439|  85.4k|        {             
  440|  85.4k|            buf.push_back('e');
  441|  85.4k|            if (value.scale() < digits)
  ------------------
  |  Branch (441:17): [True: 24.7k, False: 60.7k]
  ------------------
  442|  24.7k|            {
  443|  24.7k|                from_integer(static_cast<uint64_t>(digits) - static_cast<uint64_t>(value.scale()), buf);
  444|  24.7k|            }
  445|  60.7k|            else
  446|  60.7k|            {
  447|  60.7k|                from_integer(digits - value.scale(), buf);
  448|  60.7k|            }
  449|  85.4k|        }
  450|  85.4k|    }
  451|   162k|}
_ZNK8jsoncons12basic_bigdecINSt3__19allocatorImEEE5scaleEv:
   78|   879k|    {
   79|   879k|        return scale_;
   80|   879k|    }
_ZNK8jsoncons12basic_bigdecINSt3__19allocatorImEEE8unscaledEv:
   73|   545k|    {
   74|   545k|        return unscaled_;
   75|   545k|    }

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE13from_bytes_beEiPKhm:
  824|   418k|    {
  825|   418k|        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|   418k|        double bits = radix_log2 * n;
  828|   418k|        double big_digits = std::ceil(bits / 64.0);
  829|       |        //std::cout << "ESTIMATED: " << big_digits << "\n";
  830|       |
  831|   418k|        basic_bigint<Allocator> v = 0;
  832|   418k|        v.reserve(static_cast<size_type>(big_digits));
  833|       |
  834|  5.57M|        for (size_type i = 0; i < n; i++)
  ------------------
  |  Branch (834:31): [True: 5.15M, False: 418k]
  ------------------
  835|  5.15M|        {
  836|  5.15M|            v *= 256;
  837|  5.15M|            v += (word_type)(bytes[i]);
  838|  5.15M|        }
  839|       |        //std::cout << "ACTUAL: " << v.size() << "\n";
  840|       |
  841|   418k|        if (signum < 0)
  ------------------
  |  Branch (841:13): [True: 0, False: 418k]
  ------------------
  842|      0|        {
  843|      0|            v.set_negative(true);
  844|      0|        }
  845|       |
  846|   418k|        return v;
  847|   418k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE17next_power_of_twoEm:
 2043|      1|    static word_type next_power_of_two(word_type n) {
 2044|      1|        n = n - 1;
 2045|      1|        n |= n >> 1u;
 2046|      1|        n |= n >> 2u;
 2047|      1|        n |= n >> 4u;
 2048|      1|        n |= n >> 8u;
 2049|      1|        n |= n >> 16u;
 2050|      1|        n |= n >> 32u;
 2051|      1|        return n + 1;
 2052|      1|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  855|   418k|    {
  856|   418k|        storage_.reserve(n);
  857|   418k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  455|  9.87M|    {
  456|  9.87M|       if (capacity() < n)
  ------------------
  |  Branch (456:12): [True: 388k, False: 9.49M]
  ------------------
  457|   388k|       {
  458|   388k|           if (!is_allocated())
  ------------------
  |  Branch (458:16): [True: 388k, False: 0]
  ------------------
  459|   388k|           {
  460|   388k|               size_type size = inlined_.size_;
  461|   388k|               size_type is_neg = inlined_.is_negative_;
  462|   388k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  463|       |
  464|   388k|               ::new (&allocated_) allocated_storage();
  465|   388k|               allocated_.reserve(n, get_allocator());
  466|   388k|               allocated_.size_ = size;
  467|   388k|               allocated_.is_negative_ = is_neg;
  468|   388k|               if (n >= 1)
  ------------------
  |  Branch (468:20): [True: 388k, False: 0]
  ------------------
  469|   388k|               {
  470|   388k|                   allocated_.data_[0] = values[0];
  471|   388k|               }
  472|   388k|               if (n >= 2)
  ------------------
  |  Branch (472:20): [True: 388k, False: 0]
  ------------------
  473|   388k|               {
  474|   388k|                   allocated_.data_[1] = values[1];
  475|   388k|               }
  476|   388k|           }
  477|      0|           else
  478|      0|           {
  479|      0|               allocated_.reserve(n, get_allocator());
  480|      0|           }
  481|   388k|       }
  482|  9.87M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  508|  9.87M|    {
  509|  9.87M|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (509:16): [True: 5.79M, False: 4.08M]
  ------------------
  510|  9.87M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  503|  30.6M|    {
  504|  30.6M|        return common_.is_allocated_;
  505|  30.6M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  206|   388k|            : is_allocated_(true),
  207|   388k|            is_negative_(false)
  208|   388k|        {
  209|   388k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  258|   388k|        {
  259|   388k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   54|   388k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 388k]
  |  |  ------------------
  |  |   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|   388k|            size_type capacity_new = round_up(n);
  261|       |
  262|   388k|            real_allocator_type alloc(a);
  263|   388k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  264|   388k|            if (size_ > 0)
  ------------------
  |  Branch (264:17): [True: 0, False: 388k]
  ------------------
  265|      0|            {
  266|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  267|      0|            }
  268|   388k|            if (data_ != nullptr)
  ------------------
  |  Branch (268:17): [True: 0, False: 388k]
  ------------------
  269|      0|            {
  270|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  271|      0|            }
  272|   388k|            capacity_ = capacity_new;
  273|   388k|            data_ = data_new;
  274|   388k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  278|   388k|        {
  279|   388k|            size_type remainder = i % mem_unit;
  280|   388k|            size_type off = mem_unit - remainder;
  281|   388k|            bool testoff = i < max_size - off;
  282|   388k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   54|   388k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 388k]
  |  |  ------------------
  |  |   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|   388k|            return i + off;
  285|   388k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  485|  8.30M|    {
  486|  8.30M|        return static_cast<const word_allocator_type&>(*this);
  487|  8.30M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIiEENS1_9enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueERS4_E4typeES7_:
 1020|  5.15M|    {
 1021|  5.15M|        *this *= word_type(y < 0 ? -y : y);
  ------------------
  |  Branch (1021:28): [True: 0, False: 5.15M]
  ------------------
 1022|  5.15M|        if ( y < 0 )
  ------------------
  |  Branch (1022:14): [True: 0, False: 5.15M]
  ------------------
 1023|      0|            set_negative(!is_negative());
 1024|  5.15M|        return *this;
 1025|  5.15M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
 1030|  5.15M|    {
 1031|  5.15M|        auto words = get_words();
 1032|  5.15M|        size_type len = words.size();
 1033|  5.15M|        if (len == 0 || m == 0)
  ------------------
  |  Branch (1033:13): [True: 458k, False: 4.69M]
  |  Branch (1033:25): [True: 0, False: 4.69M]
  ------------------
 1034|   458k|        {
 1035|   458k|            resize(0);
 1036|   458k|            return *this;
 1037|   458k|        }
 1038|       |
 1039|  4.69M|        dword_type carry = 0;
 1040|  4.69M|        size_t i = 0;
 1041|   897M|        for (; i < len; ++i) {
  ------------------
  |  Branch (1041:16): [True: 893M, False: 4.69M]
  ------------------
 1042|   893M|            dword_type x = dword_type(words[i]) * m + carry;
 1043|   893M|            words[i] = static_cast<word_type>(x);
 1044|   893M|            carry = x >> 64;
 1045|   893M|        }
 1046|       |
 1047|  4.69M|        if (carry)
  ------------------
  |  Branch (1047:13): [True: 430k, False: 4.26M]
  ------------------
 1048|   430k|        {
 1049|   430k|            resize(len+1);
 1050|   430k|            words = get_words();
 1051|   430k|            words[i] = static_cast<word_type>(carry);
 1052|   430k|        }
 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.69M|        return *this;
 1075|  5.15M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE9get_wordsEv:
  697|  25.9M|    {
  698|  25.9M|        return storage_.get_words();
  699|  25.9M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  523|  35.4M|    {
  524|  35.4M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (524:16): [True: 22.5M, False: 12.9M]
  ------------------
  525|  22.5M|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  526|  35.4M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  527|  35.4M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   67|  35.4M|            : data_(data), size_(size)
   68|  35.4M|        {
   69|  35.4M|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   87|  37.2M|        {
   88|  37.2M|            return size_;
   89|  37.2M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  850|  7.23M|    {
  851|  7.23M|        storage_.resize(new_length);
  852|  7.23M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  537|  9.46M|    {
  538|  9.46M|        size_type old_length = common_.size_;
  539|  9.46M|        reserve(new_length);
  540|  9.46M|        common_.size_ = new_length;
  541|       |
  542|  9.46M|        if (old_length < new_length)
  ------------------
  |  Branch (542:13): [True: 7.27M, False: 2.18M]
  ------------------
  543|  7.27M|        {
  544|  7.27M|            if (is_allocated())
  ------------------
  |  Branch (544:17): [True: 5.03M, False: 2.24M]
  ------------------
  545|  5.03M|            {
  546|  5.03M|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  547|  5.03M|            }
  548|  2.24M|            else
  549|  2.24M|            {
  550|  2.24M|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   54|  2.24M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 2.24M]
  |  |  ------------------
  |  |   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|  5.25M|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (551:48): [True: 3.01M, False: 2.24M]
  ------------------
  552|  3.01M|                {
  553|  3.01M|                    inlined_.values_[i] = 0;
  554|  3.01M|                }
  555|  2.24M|            }
  556|  7.27M|        }
  557|  9.46M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   72|  2.52G|        {
   73|  2.52G|            return data_[i];
   74|  2.52G|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  707|  14.3M|    {
  708|  14.3M|        return storage_.is_negative();
  709|  14.3M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  513|  14.3M|    {
  514|  14.3M|        return common_.is_negative_;
  515|  14.3M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr6nonstd19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  921|  5.15M|    {
  922|  5.15M|        if ( is_negative())
  ------------------
  |  Branch (922:14): [True: 0, False: 5.15M]
  ------------------
  923|      0|            return *this -= -basic_bigint<Allocator>(y);
  924|       |
  925|  5.15M|        word_type d;
  926|  5.15M|        word_type carry = 0;
  927|       |
  928|  5.15M|        auto words = get_words();
  929|  5.15M|        resize(words.size() + 1);
  930|       |
  931|  5.15M|        words = get_words();
  932|  5.15M|        const size_type this_size = words.size();
  933|  5.15M|        size_type y_size = 1;
  934|       |
  935|  5.15M|        d = words[0] + carry;
  936|  5.15M|        carry = d < carry;
  937|  5.15M|        words[0] = d + y;
  938|  5.15M|        if (words[0] < d)
  ------------------
  |  Branch (938:13): [True: 0, False: 5.15M]
  ------------------
  939|      0|            carry = 1;
  940|       |
  941|  5.15M|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (941:36): [True: 4.69M, False: 458k]
  |  Branch (941:53): [True: 0, False: 4.69M]
  ------------------
  942|      0|        {
  943|      0|            d = words[i] + carry;
  944|      0|            carry = d < carry;
  945|      0|            words[i] = d;
  946|      0|        }
  947|  5.15M|        reduce();
  948|  5.15M|        return *this;
  949|  5.15M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|  1.38M|        : storage_(n, alloc)
  673|  1.38M|    {
  674|  1.38M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|  1.38M|        : word_allocator_type(alloc)
  364|  1.38M|    {
  365|  1.38M|        ::new (&inlined_) inlined_storage(n);
  366|  1.38M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  141|  1.38M|            : is_allocated_(false),
  142|  1.38M|            is_negative_(false),
  143|  1.38M|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (143:19): [True: 527k, False: 857k]
  ------------------
  144|  1.38M|        {
  145|  1.38M|            values_[0] = n;
  146|  1.38M|            values_[1] = 0;
  147|  1.38M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  867|   435k|    {
  868|   435k|        basic_bigint<Allocator> v(*this);
  869|   435k|        v.set_negative(!v.is_negative());
  870|   435k|        return v;
  871|   435k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  650|  2.05M|        : storage_(other.storage_)
  651|  2.05M|    {
  652|  2.05M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  302|  2.05M|        : word_allocator_type(other.get_allocator())
  303|  2.05M|    {
  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|  2.05M|        if (!other.is_allocated())
  ------------------
  |  Branch (308:13): [True: 1.61M, False: 445k]
  ------------------
  309|  1.61M|        {
  310|  1.61M|            ::new (&inlined_) inlined_storage(other.inlined_);
  311|  1.61M|        }
  312|   445k|        else
  313|   445k|        {
  314|   445k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  315|   445k|        }
  316|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  317|       |# pragma GCC diagnostic pop
  318|       |#endif
  319|  2.05M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  181|  3.66M|            : is_allocated_(false),
  182|  3.66M|            is_negative_(stor.is_negative_),
  183|  3.66M|            size_(stor.size_)
  184|  3.66M|        {
  185|  3.66M|            values_[0] = stor.values_[0];
  186|  3.66M|            values_[1] = stor.values_[1];
  187|  3.66M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  212|  1.45M|            : is_allocated_(true),
  213|  1.45M|              is_negative_(stor.is_negative_),
  214|  1.45M|              size_(stor.size_),
  215|  1.45M|              capacity_(stor.capacity_)
  216|  1.45M|        {
  217|  1.45M|            real_allocator_type alloc(a);
  218|       |
  219|  1.45M|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  220|  1.45M|            JSONCONS_TRY
  ------------------
  |  |   37|  1.45M|    #define JSONCONS_TRY try
  ------------------
  221|  1.45M|            {
  222|  1.45M|                std::allocator_traits<real_allocator_type>::construct(alloc, nonstd::to_plain_pointer(data_));
  223|  1.45M|            }
  224|  1.45M|            JSONCONS_CATCH(...)
  225|  1.45M|            {
  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.45M|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   54|  1.45M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 1.45M]
  |  |  ------------------
  |  |   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.45M|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  232|  1.45M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  986|   372k|    {
  987|   372k|        auto y_words = y.get_words();
  988|       |
  989|   372k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (989:14): [True: 372k, False: 0]
  ------------------
  990|   372k|            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|  3.90M|    {
  703|  3.90M|        return storage_.get_words();
  704|  3.90M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  530|  6.13M|    {
  531|  6.13M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (531:16): [True: 2.05M, False: 4.08M]
  ------------------
  532|  2.05M|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  533|  6.13M|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  534|  6.13M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   67|  6.13M|            : data_(data), size_(size)
   68|  6.13M|        {
   69|  6.13M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  952|   372k|    {
  953|   372k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (953:14): [True: 0, False: 372k]
  ------------------
  954|      0|            return *this -= -y;
  955|       |
  956|   372k|        auto y_words = y.get_words();
  957|       |        
  958|   372k|        word_type d;
  959|   372k|        word_type carry = 0;
  960|       |
  961|   372k|        auto words = get_words();
  962|   372k|        resize( (std::max)(y_words.size(), words.size()) + 1 );
  963|   372k|        words = get_words();
  964|       |
  965|   372k|        const size_t this_size = words.size();
  966|   372k|        const size_t y_size = y_words.size();
  967|  1.01M|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (967:31): [True: 641k, False: 372k]
  ------------------
  968|   641k|        {
  969|   641k|            d = words[i] + carry;
  970|   641k|            carry = d < carry;
  971|   641k|            words[i] = d + y_words[i];
  972|   641k|            if (words[i] < d)
  ------------------
  |  Branch (972:17): [True: 714, False: 641k]
  ------------------
  973|    714|                carry = 1;
  974|   641k|        }
  975|   373k|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (975:36): [True: 372k, False: 262]
  |  Branch (975:53): [True: 262, False: 372k]
  ------------------
  976|    262|        {
  977|    262|            d = words[i] + carry;
  978|    262|            carry = d < carry;
  979|    262|            words[i] = d;
  980|    262|        }
  981|   372k|        reduce();
  982|   372k|        return *this;
  983|   372k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1702|  1.08M|    {
 1703|  1.08M|        auto words = get_words();
 1704|  1.08M|        auto y_words = y.get_words();
 1705|       |
 1706|  1.08M|        const size_type y_size = y_words.size();
 1707|  1.08M|        if ( words.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1707:14): [True: 0, False: 1.08M]
  |  Branch (1707:35): [True: 0, False: 0]
  ------------------
 1708|      0|            return 0;
 1709|  1.08M|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1709:14): [True: 0, False: 1.08M]
  ------------------
 1710|      0|            return y.is_negative() - is_negative();
 1711|  1.08M|        int code = 0;
 1712|  1.08M|        if ( words.size() < y_size)
  ------------------
  |  Branch (1712:14): [True: 0, False: 1.08M]
  ------------------
 1713|      0|            code = -1;
 1714|  1.08M|        else if ( words.size() > y_size)
  ------------------
  |  Branch (1714:19): [True: 452k, False: 627k]
  ------------------
 1715|   452k|            code = +1;
 1716|   627k|        else
 1717|   627k|        {
 1718|   628k|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1718:46): [True: 627k, False: 454]
  ------------------
 1719|   627k|            {
 1720|   627k|                if (words[i] > y_words[i])
  ------------------
  |  Branch (1720:21): [True: 163k, False: 464k]
  ------------------
 1721|   163k|                {
 1722|   163k|                    code = 1;
 1723|   163k|                    break;
 1724|   163k|                }
 1725|   464k|                else if (words[i] < y_words[i])
  ------------------
  |  Branch (1725:26): [True: 463k, False: 454]
  ------------------
 1726|   463k|                {
 1727|   463k|                    code = -1;
 1728|   463k|                    break;
 1729|   463k|                }
 1730|   627k|            }
 1731|   627k|        }
 1732|  1.08M|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1732:16): [True: 0, False: 1.08M]
  ------------------
 1733|  1.08M|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1537|  1.08M|    {
 1538|  1.08M|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1538:15): [True: 463k, False: 617k]
  ------------------
 1539|  1.08M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   87|  12.2M|        {
   88|  12.2M|            return size_;
   89|  12.2M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   72|  2.82M|        {
   73|  2.82M|            return data_[i];
   74|  2.82M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 2039|  7.34M|    {
 2040|  7.34M|        storage_.reduce();
 2041|  7.34M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  432|  7.34M|    {
  433|  7.34M|        if (common_.size_ > 0)
  ------------------
  |  Branch (433:13): [True: 7.34M, False: 0]
  ------------------
  434|  7.34M|        {
  435|  7.34M|            auto words = get_words();
  436|  7.34M|            word_type* p = words.end() - 1;
  437|  7.34M|            word_type* first = words.begin();
  438|   127M|            while ( p >= first )
  ------------------
  |  Branch (438:21): [True: 127M, False: 179k]
  ------------------
  439|   127M|            {
  440|   127M|                if ( *p )
  ------------------
  |  Branch (440:22): [True: 7.16M, False: 120M]
  ------------------
  441|  7.16M|                {
  442|  7.16M|                    break;
  443|  7.16M|                }
  444|   120M|                --common_.size_;
  445|   120M|                --p;
  446|   120M|            }
  447|  7.34M|        }
  448|  7.34M|        if (common_.size_ == 0)
  ------------------
  |  Branch (448:13): [True: 179k, False: 7.16M]
  ------------------
  449|   179k|        {
  450|   179k|            common_.is_negative_ = false;
  451|   179k|        }
  452|  7.34M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   96|  7.34M|        {
   97|  7.34M|            return data_ + size_;
   98|  7.34M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   91|  7.34M|        {
   92|  7.34M|            return data_;
   93|  7.34M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  728|  4.75M|    {
  729|  4.75M|        storage_.set_negative(value);
  730|  4.75M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  518|  4.75M|    {
  519|  4.75M|        common_.is_negative_ = value;
  520|  4.75M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16append_to_bufferIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1414|   161k|    {
 1415|   161k|        if (is_zero())
  ------------------
  |  Branch (1415:13): [True: 26.5k, False: 135k]
  ------------------
 1416|  26.5k|        {
 1417|  26.5k|            buf.push_back('0');
 1418|  26.5k|            return;
 1419|  26.5k|        }
 1420|   135k|        if (is_negative())
  ------------------
  |  Branch (1420:13): [True: 110k, False: 24.7k]
  ------------------
 1421|   110k|        {
 1422|   110k|            buf.push_back('-');
 1423|   110k|        }
 1424|   135k|        std::size_t pos = buf.size();
 1425|   135k|        basic_bigint<Allocator> v(*this);
 1426|   135k|        auto v_words = v.get_words();
 1427|       |
 1428|   135k|        size_type len = (v_words.size() * word_bits / 3) + 2;
 1429|   135k|        buf.reserve(len);
 1430|       |
 1431|   135k|        if ( v_words.size() == 0 )
  ------------------
  |  Branch (1431:14): [True: 0, False: 135k]
  ------------------
 1432|      0|        {
 1433|      0|            buf.push_back('0');
 1434|      0|        }
 1435|   135k|        else
 1436|   135k|        {
 1437|   135k|            word_type r;
 1438|   135k|            basic_bigint<Allocator> R(get_allocator());
 1439|   135k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1440|       |
 1441|   135k|            do
 1442|   368k|            {
 1443|   368k|                v.divide( LP10, v, R, true );
 1444|   368k|                v_words = v.get_words();
 1445|       |
 1446|   368k|                auto R_words = R.get_words();
 1447|   368k|                r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (1447:22): [True: 366k, False: 2.14k]
  ------------------
 1448|  5.30M|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1448:38): [True: 5.06M, False: 233k]
  ------------------
 1449|  5.06M|                {
 1450|  5.06M|                    buf.push_back(char(r % 10u + '0'));
 1451|  5.06M|                    r /= 10u;
 1452|  5.06M|                    if ( r + v_words.size() == 0 )
  ------------------
  |  Branch (1452:26): [True: 135k, False: 4.93M]
  ------------------
 1453|   135k|                        break;
 1454|  5.06M|                }
 1455|   368k|            } 
 1456|   368k|            while ( v_words.size() > 0);
  ------------------
  |  Branch (1456:21): [True: 233k, False: 135k]
  ------------------
 1457|       |
 1458|   135k|            std::reverse(buf.begin()+pos,buf.end());
 1459|   135k|        }
 1460|   135k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7is_zeroEv:
 2160|   381k|    bool is_zero() const {
 2161|   381k|        return get_words().size() == 0;
 2162|   381k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  692|  3.56M|    {
  693|  3.56M|        return storage_.get_allocator();
  694|  3.56M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  623|   247k|        : storage_(alloc)
  624|   247k|    {
  625|   247k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  296|   684k|        : word_allocator_type(alloc)
  297|   684k|    {
  298|   684k|        ::new (&inlined_) inlined_storage();
  299|   684k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  116|   684k|            : is_allocated_(false),
  117|   684k|            is_negative_(false),
  118|   684k|            size_(0),
  119|   684k|            values_{0, 0}
  120|   684k|        {
  121|   684k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1796|  1.08M|    {
 1797|  1.08M|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1798|  1.08M|        auto denom_words = denom.get_words();
 1799|       |
 1800|  1.08M|        if (denom_words.size() == 0)
  ------------------
  |  Branch (1800:13): [True: 0, False: 1.08M]
  ------------------
 1801|      0|        {
 1802|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1803|      0|        }
 1804|  1.08M|        bool quot_neg = is_negative() ^ denom.is_negative();
 1805|  1.08M|        bool rem_neg = is_negative();
 1806|  1.08M|        basic_bigint<Allocator> num(*this, get_allocator());
 1807|  1.08M|        num.set_negative(false);
 1808|  1.08M|        denom.set_negative(false);
 1809|  1.08M|        if ( num < denom )
  ------------------
  |  Branch (1809:14): [True: 463k, False: 617k]
  ------------------
 1810|   463k|        {
 1811|   463k|            quot = word_type(0);
 1812|   463k|            quot.set_negative(quot_neg);
 1813|   463k|            rem = num;
 1814|   463k|            rem.set_negative(rem_neg);
 1815|   463k|            return;
 1816|   463k|        }
 1817|       |
 1818|   617k|        auto num_words = num.get_words();
 1819|   617k|        auto quot_words = quot.get_words();
 1820|   617k|        auto words = get_words();
 1821|       |
 1822|   617k|        if ( denom_words.size() == 1 && num_words.size() == 1 )
  ------------------
  |  Branch (1822:14): [True: 617k, False: 0]
  |  Branch (1822:41): [True: 164k, False: 452k]
  ------------------
 1823|   164k|        {
 1824|   164k|            quot = word_type( num_words[0]/denom_words[0] );
 1825|   164k|            rem = word_type( num_words[0]%denom_words[0] );
 1826|   164k|            quot.set_negative(quot_neg);
 1827|   164k|            rem.set_negative(rem_neg);
 1828|   164k|            return;
 1829|   164k|        }
 1830|   452k|        if (denom_words.size() == 1 && (denom_words[0] & l_mask) == 0 )
  ------------------
  |  Branch (1830:13): [True: 452k, False: 0]
  |  Branch (1830:40): [True: 0, False: 452k]
  ------------------
 1831|      0|        {
 1832|       |            // Denominator fits into a half word
 1833|      0|            word_type divisor = denom_words[0], dHi = 0, q1, r, q2, dividend;
 1834|      0|            quot.resize(words.size());
 1835|      0|            quot_words = quot.get_words();
 1836|      0|            for (size_type i=words.size(); i-- > 0; )
  ------------------
  |  Branch (1836:44): [True: 0, False: 0]
  ------------------
 1837|      0|            {
 1838|      0|                dividend = (dHi << word_half_bits) | (words[i] >> word_half_bits);
 1839|      0|                q1 = dividend/divisor;
 1840|      0|                r = dividend % divisor;
 1841|      0|                dividend = (r << word_half_bits) | (words[i] & r_mask);
 1842|      0|                q2 = dividend/divisor;
 1843|      0|                dHi = dividend % divisor;
 1844|      0|                quot_words[i] = (q1 << word_half_bits) | q2;
 1845|      0|            }
 1846|      0|            quot.reduce();
 1847|      0|            rem = dHi;
 1848|      0|            quot.set_negative(quot_neg);
 1849|      0|            rem.set_negative(rem_neg);
 1850|      0|            return;
 1851|      0|        }
 1852|   452k|        basic_bigint<Allocator> num0(num, get_allocator());
 1853|   452k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1854|   452k|        int x = 0;
 1855|   452k|        bool second_done = normalize(denom, num, x);
 1856|   452k|        denom_words = denom.get_words();
 1857|   452k|        num_words = num.get_words();
 1858|       |
 1859|   452k|        size_type l = denom_words.size() - 1;
 1860|   452k|        size_type n = num_words.size() - 1;
 1861|   452k|        quot.resize(n - l);
 1862|   452k|        quot_words = quot.get_words();
 1863|   115M|        for (size_type i = quot_words.size(); i-- > 0; )
  ------------------
  |  Branch (1863:47): [True: 115M, False: 452k]
  ------------------
 1864|   115M|        {
 1865|   115M|            quot_words[i] = 0;
 1866|   115M|        }
 1867|   452k|        rem = num;
 1868|   452k|        auto rem_words = rem.get_words();
 1869|   452k|        if ( rem_words[n] >= denom_words[l] )
  ------------------
  |  Branch (1869:14): [True: 14.9k, False: 437k]
  ------------------
 1870|  14.9k|        {
 1871|  14.9k|            rem.resize(rem_words.size() + 1);
 1872|  14.9k|            rem_words = rem.get_words();
 1873|  14.9k|            n++;
 1874|  14.9k|            quot.resize(quot_words.size() + 1);
 1875|  14.9k|            quot_words = quot.get_words();
 1876|  14.9k|        }
 1877|   452k|        word_type d = denom_words[l];
 1878|       |
 1879|   115M|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1879:32): [True: 115M, False: 452k]
  ------------------
 1880|   115M|        {
 1881|   115M|            word_type q = DDquotient(rem_words[k], rem_words[k-1], d);
 1882|   115M|            subtractmul( rem_words.data() + (k - l - 1), denom_words.data(), l + 1, q );
 1883|   115M|            quot_words[k - l - 1] = q;
 1884|   115M|        }
 1885|   452k|        quot.reduce();
 1886|   452k|        quot.set_negative(quot_neg);
 1887|   452k|        if (remDesired)
  ------------------
  |  Branch (1887:13): [True: 452k, False: 0]
  ------------------
 1888|   452k|        {
 1889|   452k|            unnormalize(rem, x, second_done);
 1890|   452k|            rem.set_negative(rem_neg);
 1891|   452k|        }
 1892|   452k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  655|  3.06M|        : storage_(other.storage_, alloc)
  656|  3.06M|    {
  657|  3.06M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  322|  3.06M|        : word_allocator_type(alloc)
  323|  3.06M|    {
  324|  3.06M|        if (!other.is_allocated())
  ------------------
  |  Branch (324:13): [True: 2.05M, False: 1.01M]
  ------------------
  325|  2.05M|        {
  326|  2.05M|            ::new (&inlined_) inlined_storage(other.inlined_);
  327|  2.05M|        }
  328|  1.01M|        else
  329|  1.01M|        {
  330|  1.01M|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  331|  1.01M|        }
  332|  3.06M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1994|   452k|    {
 1995|   452k|        auto denom_words = denom.get_words();
 1996|   452k|        if (denom_words.size() == 0)
  ------------------
  |  Branch (1996:13): [True: 0, False: 452k]
  ------------------
 1997|      0|        {
 1998|      0|            return false;
 1999|      0|        }
 2000|   452k|        size_type r = denom_words.size() - 1;
 2001|   452k|        word_type y = denom_words[r];
 2002|       |
 2003|   452k|        x = 0;
 2004|   949k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (2004:17): [True: 496k, False: 452k]
  ------------------
 2005|   496k|        {
 2006|   496k|            y <<= 1;
 2007|   496k|            x++;
 2008|   496k|        }
 2009|   452k|        denom <<= x;
 2010|   452k|        num <<= x;
 2011|       |
 2012|   452k|        denom_words = denom.get_words();
 2013|   452k|        if ( r > 0 && denom_words[r] < denom_words[r-1] )
  ------------------
  |  Branch (2013:14): [True: 0, False: 452k]
  |  Branch (2013:23): [True: 0, False: 0]
  ------------------
 2014|      0|        {
 2015|      0|            denom *= max_word;
 2016|      0|            num *= max_word;
 2017|      0|            return true;
 2018|      0|        }
 2019|   452k|        return false;
 2020|   452k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1172|   905k|    {
 1173|   905k|        auto words = get_words();
 1174|   905k|        size_type q = k / word_bits;
 1175|   905k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1175:14): [True: 0, False: 905k]
  ------------------
 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|   905k|        if ( k )  // 0 < k < word_bits:
  ------------------
  |  Branch (1183:14): [True: 331k, False: 574k]
  ------------------
 1184|   331k|        {
 1185|   331k|            size_type k1 = word_bits - k;
 1186|   331k|            word_type mask = (word_type(1) << k) - word_type(1);
 1187|   331k|            resize( words.size() + 1 );
 1188|   331k|            words = get_words();
 1189|  43.7M|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1189:46): [True: 43.4M, False: 331k]
  ------------------
 1190|  43.4M|            {
 1191|  43.4M|                words[i] <<= k;
 1192|  43.4M|                if ( i > 0 )
  ------------------
  |  Branch (1192:22): [True: 43.1M, False: 331k]
  ------------------
 1193|  43.1M|                    words[i] |= (words[i-1] >> k1) & mask;
 1194|  43.4M|            }
 1195|   331k|        }
 1196|   905k|        reduce();
 1197|   905k|        return *this;
 1198|   905k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1921|   115M|    {
 1922|   115M|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1923|   115M|                   dHi = d >> word_half_bits, dLo = d & r_mask;
 1924|   115M|        qHi = A/(dHi + 1);
 1925|       |        // This initial guess of qHi may be too small.
 1926|   115M|        middle = qHi * dLo;
 1927|   115M|        left = qHi * dHi;
 1928|   115M|        x = B - (middle << word_half_bits);
 1929|   115M|        A -= (middle >> word_half_bits) + left + (x > B);
 1930|   115M|        B = x;
 1931|   115M|        dLo1 = dLo << word_half_bits;
 1932|       |        // Increase qHi if necessary:
 1933|   181M|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1933:17): [True: 65.3M, False: 116M]
  |  Branch (1933:29): [True: 1.15M, False: 115M]
  |  Branch (1933:41): [True: 1.15M, False: 0]
  ------------------
 1934|  66.5M|        {
 1935|  66.5M|            x = B - dLo1;
 1936|  66.5M|            A -= dHi + (x > B);
 1937|  66.5M|            B = x;
 1938|  66.5M|            qHi++;
 1939|  66.5M|        }
 1940|   115M|        qLo = ((A << word_half_bits) | (B >> word_half_bits))/(dHi + 1);
 1941|       |        // This initial guess of qLo may be too small.
 1942|   115M|        right = qLo * dLo;
 1943|   115M|        middle = qLo * dHi;
 1944|   115M|        x = B - right;
 1945|   115M|        A -= (x > B);
 1946|   115M|        B = x;
 1947|   115M|        x = B - (middle << word_half_bits);
 1948|   115M|            A -= (middle >> word_half_bits) + (x > B);
 1949|   115M|        B = x;
 1950|       |        // Increase qLo if necessary:
 1951|   181M|        while ( A || B >= d )
  ------------------
  |  Branch (1951:17): [True: 4.57M, False: 177M]
  |  Branch (1951:22): [True: 62.0M, False: 115M]
  ------------------
 1952|  66.5M|        {
 1953|  66.5M|            x = B - d;
 1954|  66.5M|            A -= (x > B);
 1955|  66.5M|            B = x;
 1956|  66.5M|            qLo++;
 1957|  66.5M|        }
 1958|   115M|        return (qHi << word_half_bits) + qLo;
 1959|   115M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1963|   115M|    {
 1964|   115M|        word_type hi, lo, d, carry = 0;
 1965|   115M|        size_type i;
 1966|   230M|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1966:22): [True: 115M, False: 115M]
  ------------------
 1967|   115M|        {
 1968|   115M|            DDproduct( b[i], q, hi, lo );
 1969|   115M|            d = a[i];
 1970|   115M|            a[i] -= lo;
 1971|   115M|            if ( a[i] > d )
  ------------------
  |  Branch (1971:18): [True: 19.6M, False: 95.3M]
  ------------------
 1972|  19.6M|                carry++;
 1973|   115M|            d = a[i + 1];
 1974|   115M|            a[i + 1] -= hi + carry;
 1975|   115M|            carry = a[i + 1] > d;
 1976|   115M|        }
 1977|   115M|        if ( carry ) // q was too large
  ------------------
  |  Branch (1977:14): [True: 0, False: 115M]
  ------------------
 1978|      0|        {
 1979|      0|            q--;
 1980|      0|            carry = 0;
 1981|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1981:26): [True: 0, False: 0]
  ------------------
 1982|      0|            {
 1983|      0|                d = a[i] + carry;
 1984|      0|                carry = d < carry;
 1985|      0|                a[i] = d + b[i];
 1986|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1986:22): [True: 0, False: 0]
  ------------------
 1987|      0|                    carry = 1;
 1988|      0|            }
 1989|      0|            a[n] = 0;
 1990|      0|        }
 1991|   115M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1903|   115M|    {
 1904|   115M|        word_type hiA = A >> word_half_bits, loA = A & r_mask,
 1905|   115M|                   hiB = B >> word_half_bits, loB = B & r_mask;
 1906|       |
 1907|   115M|        lo = loA * loB;
 1908|   115M|        hi = hiA * hiB;
 1909|   115M|        word_type mid1 = loA * hiB;
 1910|   115M|        word_type mid2 = hiA * loB;
 1911|   115M|        word_type old = lo;
 1912|   115M|        lo += mid1 << word_half_bits;
 1913|   115M|            hi += (lo < old) + (mid1 >> word_half_bits);
 1914|   115M|        old = lo;
 1915|   115M|        lo += mid2 << word_half_bits;
 1916|   115M|            hi += (lo < old) + (mid2 >> word_half_bits);
 1917|   115M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   82|   231M|        {
   83|   231M|            return data_;
   84|   231M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 2023|   452k|    {
 2024|   452k|        if (secondDone)
  ------------------
  |  Branch (2024:13): [True: 0, False: 452k]
  ------------------
 2025|      0|        {
 2026|      0|            rem /= max_word;
 2027|      0|        }
 2028|   452k|        if ( x > 0 )
  ------------------
  |  Branch (2028:14): [True: 165k, False: 287k]
  ------------------
 2029|   165k|        {
 2030|   165k|            rem >>= x;
 2031|   165k|        }
 2032|   287k|        else
 2033|   287k|        {
 2034|   287k|            rem.reduce();
 2035|   287k|        }
 2036|   452k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  620|   437k|    basic_bigint() = default;
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErSEm:
 1201|   165k|    {
 1202|   165k|        auto words = get_words();
 1203|   165k|        size_type q = k / word_bits;
 1204|   165k|        if ( q >= words.size())
  ------------------
  |  Branch (1204:14): [True: 0, False: 165k]
  ------------------
 1205|      0|        {
 1206|      0|            resize( 0 );
 1207|      0|            return *this;
 1208|      0|        }
 1209|   165k|        if (q > 0)
  ------------------
  |  Branch (1209:13): [True: 0, False: 165k]
  ------------------
 1210|      0|        {
 1211|      0|            memmove( words.data(), words.data()+q, size_type((words.size() - q)*sizeof(word_type)) );
 1212|      0|            resize( size_type(words.size() - q) );
 1213|      0|            k %= word_bits;
 1214|      0|            if ( k == 0 )
  ------------------
  |  Branch (1214:18): [True: 0, False: 0]
  ------------------
 1215|      0|            {
 1216|      0|                reduce();
 1217|      0|                return *this;
 1218|      0|            }
 1219|      0|        }
 1220|       |
 1221|   165k|        words = get_words();
 1222|   165k|        size_type n = size_type(words.size() - 1);
 1223|   165k|        ssize_type k1 = word_bits - k;
 1224|   165k|        word_type mask = (word_type(1) << k) - 1;
 1225|  43.1M|        for (size_type i = 0; i <= n; i++)
  ------------------
  |  Branch (1225:31): [True: 42.9M, False: 165k]
  ------------------
 1226|  42.9M|        {
 1227|  42.9M|            words[i] >>= k;
 1228|  42.9M|            if ( i < n )
  ------------------
  |  Branch (1228:18): [True: 42.7M, False: 165k]
  ------------------
 1229|  42.7M|                words[i] |= ((words[i+1] & mask) << k1);
 1230|  42.9M|        }
 1231|   165k|        reduce();
 1232|   165k|        return *this;
 1233|   165k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  687|  8.01M|    {
  688|  8.01M|        storage_.destroy();
  689|  8.01M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  490|  8.01M|    {
  491|  8.01M|        if (is_allocated())
  ------------------
  |  Branch (491:13): [True: 1.84M, False: 6.16M]
  ------------------
  492|  1.84M|        {
  493|  1.84M|            allocated_.destroy(get_allocator());
  494|  1.84M|            allocated_.~allocated_storage();
  495|  1.84M|        }
  496|  6.16M|        else
  497|  6.16M|        {
  498|  6.16M|            inlined_.~inlined_storage();
  499|  6.16M|        }
  500|  8.01M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  249|  1.84M|        {
  250|  1.84M|            if (data_ != nullptr)
  ------------------
  |  Branch (250:17): [True: 1.84M, False: 0]
  ------------------
  251|  1.84M|            {
  252|  1.84M|                real_allocator_type alloc(a);
  253|  1.84M|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  254|  1.84M|            }
  255|  1.84M|        }
_ZN8jsonconsmiENS_12basic_bigintINSt3__19allocatorImEEEERKS4_:
 1587|   372k|    {
 1588|   372k|        return x -= y;
 1589|   372k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|   791k|        : storage_(n, alloc)
  673|   791k|    {
  674|   791k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|   791k|        : word_allocator_type(alloc)
  364|   791k|    {
  365|   791k|        ::new (&inlined_) inlined_storage(n);
  366|   791k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  128|   791k|            : is_allocated_(false),
  129|   791k|            is_negative_(n < 0),
  130|   791k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (130:19): [True: 418k, False: 372k]
  ------------------
  131|   791k|        {
  132|   791k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (132:26): [True: 372k, False: 418k]
  ------------------
  133|   791k|            values_[1] = 0;
  134|   791k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  874|  2.22M|    {
  875|  2.22M|        storage_ = y.storage_;
  876|  2.22M|        return *this;
  877|  2.22M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  369|  2.22M|    {
  370|  2.22M|        if (this != &other)
  ------------------
  |  Branch (370:13): [True: 2.22M, False: 0]
  ------------------
  371|  2.22M|        {
  372|  2.22M|            auto other_words = other.get_words();
  373|  2.22M|            resize(other_words.size());
  374|  2.22M|            auto words = get_words();
  375|  2.22M|            if (other_words.size() > 0)
  ------------------
  |  Branch (375:17): [True: 1.68M, False: 542k]
  ------------------
  376|  1.68M|            {
  377|  1.68M|                common_.is_negative_ = other.common_.is_negative_;
  378|  1.68M|                std::memcpy(words.data(), other_words.data(), size_type(other_words.size()*sizeof(word_type)));
  379|  1.68M|            }
  380|  2.22M|        }
  381|  2.22M|        return *this;
  382|  2.22M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   82|  1.68M|        {
   83|  1.68M|            return data_;
   84|  1.68M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  672|  30.1k|        : storage_(n, alloc)
  673|  30.1k|    {
  674|  30.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  363|  30.1k|        : word_allocator_type(alloc)
  364|  30.1k|    {
  365|  30.1k|        ::new (&inlined_) inlined_storage(n);
  366|  30.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  128|  30.1k|            : is_allocated_(false),
  129|  30.1k|            is_negative_(n < 0),
  130|  30.1k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (130:19): [True: 0, False: 30.1k]
  ------------------
  131|  30.1k|        {
  132|  30.1k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (132:26): [True: 30.1k, False: 0]
  ------------------
  133|  30.1k|            values_[1] = 0;
  134|  30.1k|        }
_ZN8jsoncons16append_to_bufferIcNSt3__19allocatorIcEEEEvRKNS_12basic_bigintINS2_ImEEEERNS1_12basic_stringIT_NS1_11char_traitsISA_EET0_EE:
 2118|   219k|    {
 2119|   219k|        if (value.is_zero())
  ------------------
  |  Branch (2119:13): [True: 108k, False: 111k]
  ------------------
 2120|   108k|        {
 2121|   108k|            buf.push_back('0');
 2122|   108k|            return;
 2123|   108k|        }
 2124|   111k|        if (value.is_negative())
  ------------------
  |  Branch (2124:13): [True: 15.2k, False: 96.5k]
  ------------------
 2125|  15.2k|        {
 2126|  15.2k|            buf.push_back('-');
 2127|  15.2k|        }
 2128|       |
 2129|   111k|        size_type start = buf.size();
 2130|   111k|        basic_bigint v(value);
 2131|   111k|        auto v_words = v.get_words();
 2132|       |
 2133|   111k|        size_type len = (v_words.size() * word_bits / 3) + 2;
 2134|   111k|        buf.reserve(start+len);
 2135|       |
 2136|   111k|        word_type r;
 2137|   111k|        basic_bigint R(value.get_allocator());
 2138|   111k|        basic_bigint LP10(max_unsigned_power_10, value.get_allocator());
 2139|       |
 2140|   111k|        do
 2141|   201k|        {
 2142|   201k|            v.divide(LP10, v, R, true);
 2143|   201k|            v_words = v.get_words();
 2144|       |
 2145|   201k|            auto R_words = R.get_words();
 2146|   201k|            r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (2146:18): [True: 200k, False: 207]
  ------------------
 2147|  2.07M|            for (size_type j = 0; j < imax_unsigned_power_10; j++)
  ------------------
  |  Branch (2147:35): [True: 1.98M, False: 89.4k]
  ------------------
 2148|  1.98M|            {
 2149|  1.98M|                buf.push_back(CharT(r % 10u + '0'));
 2150|  1.98M|                r /= 10u;
 2151|  1.98M|                if (r + v_words.size() == 0)
  ------------------
  |  Branch (2151:21): [True: 111k, False: 1.87M]
  ------------------
 2152|   111k|                    break;
 2153|  1.98M|            }
 2154|   201k|        } while (v_words.size() > 0);
  ------------------
  |  Branch (2154:18): [True: 89.4k, False: 111k]
  ------------------
 2155|       |
 2156|   111k|        std::reverse(buf.begin()+start, buf.end());
 2157|       |        
 2158|   111k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16write_string_hexIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1471|   235k|    {
 1472|       |
 1473|       |
 1474|   235k|        basic_bigint<Allocator> v(*this);
 1475|   235k|        auto v_words = v.get_words();
 1476|       |
 1477|   235k|        size_type len = (v_words.size() * basic_bigint<Allocator>::word_bits / 3) + 2;
 1478|   235k|        data.reserve(len);
 1479|       |
 1480|   235k|        if ( v_words.size() == 0 )
  ------------------
  |  Branch (1480:14): [True: 18.5k, False: 216k]
  ------------------
 1481|  18.5k|        {
 1482|  18.5k|            data.push_back('0');
 1483|  18.5k|        }
 1484|   216k|        else
 1485|   216k|        {
 1486|   216k|            word_type r;
 1487|   216k|            basic_bigint<Allocator> R;
 1488|   216k|            basic_bigint<Allocator> LP10 = max_unsigned_power_16; // LP10 = max_unsigned_power_16 = ::pow(16, imax_unsigned_power_16)
 1489|   216k|            do
 1490|   511k|            {
 1491|   511k|                v.divide( LP10, v, R, true );
 1492|   511k|                v_words = v.get_words();
 1493|   511k|                auto R_words = R.get_words();
 1494|   511k|                r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (1494:22): [True: 498k, False: 12.7k]
  ------------------
 1495|  5.18M|                for ( size_type j=0; j < imax_unsigned_power_16; j++ )
  ------------------
  |  Branch (1495:38): [True: 4.88M, False: 294k]
  ------------------
 1496|  4.88M|                {
 1497|  4.88M|                    uint8_t c = r % 16u;
 1498|  4.88M|                    data.push_back((c < 10u) ? ('0' + c) : ('A' - 10u + c));
  ------------------
  |  Branch (1498:36): [True: 4.16M, False: 723k]
  ------------------
 1499|  4.88M|                    r /= 16u;
 1500|  4.88M|                    if ( r + v_words.size() == 0 )
  ------------------
  |  Branch (1500:26): [True: 216k, False: 4.67M]
  ------------------
 1501|   216k|                        break;
 1502|  4.88M|                }
 1503|   511k|            } 
 1504|   511k|            while (v_words.size() > 0);
  ------------------
  |  Branch (1504:20): [True: 294k, False: 216k]
  ------------------
 1505|       |
 1506|   216k|            if (is_negative())
  ------------------
  |  Branch (1506:17): [True: 214k, False: 2.60k]
  ------------------
 1507|   214k|            {
 1508|   214k|                data.push_back('-');
 1509|   214k|            }
 1510|   216k|            std::reverse(data.begin(),data.end());
 1511|   216k|        }
 1512|   235k|    }

_ZN8jsoncons6binary13big_to_nativeItNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  1.11M|    {
  183|  1.11M|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 1.11M]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  1.11M|        T val;
  188|  1.11M|        std::memcpy(&val,first,sizeof(T));
  189|  1.11M|        return byte_swap(val);
  190|  1.11M|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  2.94M|    {
   29|  2.94M|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  2.94M|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  467|  2.94M|#      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|  2.94M|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  42.2k|    {
  183|  42.2k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 42.2k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  42.2k|        T val;
  188|  42.2k|        std::memcpy(&val,first,sizeof(T));
  189|  42.2k|        return byte_swap(val);
  190|  42.2k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  3.31M|    {
   40|  3.31M|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  3.31M|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  463|  3.31M|#  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|  3.31M|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   102k|    {
  183|   102k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 102k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   102k|        T val;
  188|   102k|        std::memcpy(&val,first,sizeof(T));
  189|   102k|        return byte_swap(val);
  190|   102k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   502k|    {
   52|   502k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   502k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  462|   502k|#  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|   502k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  71.5k|    {
   29|  71.5k|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  71.5k|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  467|  71.5k|#      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|  71.5k|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   128k|    {
   40|   128k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   128k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  463|   128k|#  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|   128k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  28.6k|    {
   52|  28.6k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  28.6k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  462|  28.6k|#  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|  28.6k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|  3.23M|    {
   65|  3.23M|        uint32_t x;
   66|  3.23M|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|  3.23M|        uint32_t y = byte_swap(x);
   68|  3.23M|        T val2;
   69|  3.23M|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|  3.23M|        return val2;
   71|  3.23M|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|   367k|    {
   77|   367k|        uint64_t x;
   78|   367k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|   367k|        uint64_t y = byte_swap(x);
   80|   367k|        T val2;
   81|   367k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|   367k|        return val2;
   83|   367k|    }
_ZN8jsoncons6binary13big_to_nativeIfNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   555k|    {
  183|   555k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 555k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   555k|        T val;
  188|   555k|        std::memcpy(&val,first,sizeof(T));
  189|   555k|        return byte_swap(val);
  190|   555k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   104k|    {
  183|   104k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 104k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   104k|        T val;
  188|   104k|        std::memcpy(&val,first,sizeof(T));
  189|   104k|        return byte_swap(val);
  190|   104k|    }

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

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

_ZNK8jsoncons8identityclIRKhEEOT_S5_:
   19|   196k|    {
   20|   196k|        return std::forward<T>(val);
   21|   196k|    }
_ZNK8jsoncons8identityclIRKtEEOT_S5_:
   19|   248k|    {
   20|   248k|        return std::forward<T>(val);
   21|   248k|    }
_ZNK8jsoncons8identityclIRKjEEOT_S5_:
   19|  74.6k|    {
   20|  74.6k|        return std::forward<T>(val);
   21|  74.6k|    }
_ZNK8jsoncons8identityclIRKmEEOT_S5_:
   19|  49.0k|    {
   20|  49.0k|        return std::forward<T>(val);
   21|  49.0k|    }
_ZNK8jsoncons8identityclIRKaEEOT_S5_:
   19|   397k|    {
   20|   397k|        return std::forward<T>(val);
   21|   397k|    }
_ZNK8jsoncons8identityclIRKsEEOT_S5_:
   19|   119k|    {
   20|   119k|        return std::forward<T>(val);
   21|   119k|    }
_ZNK8jsoncons8identityclIRKiEEOT_S5_:
   19|   146k|    {
   20|   146k|        return std::forward<T>(val);
   21|   146k|    }
_ZNK8jsoncons8identityclIRKlEEOT_S5_:
   19|  30.7k|    {
   20|  30.7k|        return std::forward<T>(val);
   21|  30.7k|    }
_ZNK8jsoncons11decode_halfclEt:
   36|  3.70M|    {
   37|  3.70M|        return binary::decode_half(val);
   38|  3.70M|    }
_ZNK8jsoncons8identityclIRKfEEOT_S5_:
   19|  2.70M|    {
   20|  2.70M|        return std::forward<T>(val);
   21|  2.70M|    }
_ZNK8jsoncons8identityclIRKdEEOT_S5_:
   19|   640k|    {
   20|   640k|        return std::forward<T>(val);
   21|   640k|    }

_ZN8jsoncons4heap19heap_string_factoryIcNS_9null_typeENSt3__19allocatorIcEEE6createEPKcmS2_RKS5_:
  126|  42.4k|    {
  127|  42.4k|        std::size_t len = aligned_size(length*sizeof(char_type));
  128|       |
  129|  42.4k|        std::size_t align = alignof(storage_type);
  130|  42.4k|        char* q = nullptr;
  131|  42.4k|        char* storage = nullptr;
  132|  42.4k|        byte_allocator_type byte_alloc(alloc);
  133|  42.4k|        uint8_t align_pad = 0;
  134|       |
  135|  42.4k|        if (align <= 8) {
  ------------------
  |  Branch (135:13): [True: 42.4k, False: 0]
  ------------------
  136|  42.4k|            byte_pointer ptr = byte_alloc.allocate(len);
  137|  42.4k|            q = nonstd::to_plain_pointer(ptr);
  138|       |
  139|  42.4k|            if (reinterpret_cast<uintptr_t>(q) % align == 0) {
  ------------------
  |  Branch (139:17): [True: 42.4k, False: 0]
  ------------------
  140|  42.4k|                storage = q;
  141|  42.4k|            } else {
  142|      0|                byte_alloc.deallocate(ptr, len);
  143|      0|            }
  144|  42.4k|        }
  145|       |
  146|  42.4k|        if (storage == nullptr) {
  ------------------
  |  Branch (146:13): [True: 0, False: 42.4k]
  ------------------
  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|  42.4k|        heap_string_type* ps = new(storage)heap_string_type(extra, byte_alloc);
  155|       |
  156|  42.4k|        auto psa = launder_cast<storage_t*>(storage);
  157|       |
  158|  42.4k|        CharT* p = new(&psa->c)char_type[length + 1];
  159|  42.4k|        std::memcpy(p, s, length*sizeof(char_type));
  160|  42.4k|        p[length] = 0;
  161|  42.4k|        ps->p_ = std::pointer_traits<typename heap_string_type::pointer>::pointer_to(*p);
  162|  42.4k|        ps->length_ = length;
  163|  42.4k|        ps->offset_ = (uint8_t)(storage - q);
  164|  42.4k|        ps->align_pad_ = align_pad;
  165|  42.4k|        return std::pointer_traits<pointer>::pointer_to(*ps);
  166|  42.4k|    }
_ZN8jsoncons4heap19heap_string_factoryIcNS_9null_typeENSt3__19allocatorIcEEE12aligned_sizeEm:
  119|  84.8k|    {
  120|  84.8k|        return sizeof(storage_type) + n;
  121|  84.8k|    }
_ZN8jsoncons4heap11heap_stringIcNS_9null_typeENSt3__19allocatorIcEEEC2ES2_RKS5_:
   69|  42.4k|        : heap_string_base<Extra,Allocator>(extra, alloc)
   70|  42.4k|    {
   71|  42.4k|    }
_ZN8jsoncons4heap16heap_string_baseINS_9null_typeENSt3__19allocatorIcEEEC2ERKS2_RKS5_:
   45|  42.4k|        : extra_(extra), alloc_(alloc)
   46|  42.4k|    {
   47|  42.4k|    }
_ZN8jsoncons4heap19heap_string_factoryIhmNSt3__19allocatorIcEEE6createEPKhmmRKS4_:
  126|  1.07M|    {
  127|  1.07M|        std::size_t len = aligned_size(length*sizeof(char_type));
  128|       |
  129|  1.07M|        std::size_t align = alignof(storage_type);
  130|  1.07M|        char* q = nullptr;
  131|  1.07M|        char* storage = nullptr;
  132|  1.07M|        byte_allocator_type byte_alloc(alloc);
  133|  1.07M|        uint8_t align_pad = 0;
  134|       |
  135|  1.07M|        if (align <= 8) {
  ------------------
  |  Branch (135:13): [True: 1.07M, False: 0]
  ------------------
  136|  1.07M|            byte_pointer ptr = byte_alloc.allocate(len);
  137|  1.07M|            q = nonstd::to_plain_pointer(ptr);
  138|       |
  139|  1.07M|            if (reinterpret_cast<uintptr_t>(q) % align == 0) {
  ------------------
  |  Branch (139:17): [True: 1.07M, False: 0]
  ------------------
  140|  1.07M|                storage = q;
  141|  1.07M|            } else {
  142|      0|                byte_alloc.deallocate(ptr, len);
  143|      0|            }
  144|  1.07M|        }
  145|       |
  146|  1.07M|        if (storage == nullptr) {
  ------------------
  |  Branch (146:13): [True: 0, False: 1.07M]
  ------------------
  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.07M|        heap_string_type* ps = new(storage)heap_string_type(extra, byte_alloc);
  155|       |
  156|  1.07M|        auto psa = launder_cast<storage_t*>(storage);
  157|       |
  158|  1.07M|        CharT* p = new(&psa->c)char_type[length + 1];
  159|  1.07M|        std::memcpy(p, s, length*sizeof(char_type));
  160|  1.07M|        p[length] = 0;
  161|  1.07M|        ps->p_ = std::pointer_traits<typename heap_string_type::pointer>::pointer_to(*p);
  162|  1.07M|        ps->length_ = length;
  163|  1.07M|        ps->offset_ = (uint8_t)(storage - q);
  164|  1.07M|        ps->align_pad_ = align_pad;
  165|  1.07M|        return std::pointer_traits<pointer>::pointer_to(*ps);
  166|  1.07M|    }
_ZN8jsoncons4heap19heap_string_factoryIhmNSt3__19allocatorIcEEE12aligned_sizeEm:
  119|  2.14M|    {
  120|  2.14M|        return sizeof(storage_type) + n;
  121|  2.14M|    }
_ZN8jsoncons4heap11heap_stringIhmNSt3__19allocatorIcEEEC2EmRKS4_:
   69|  1.07M|        : heap_string_base<Extra,Allocator>(extra, alloc)
   70|  1.07M|    {
   71|  1.07M|    }
_ZN8jsoncons4heap16heap_string_baseImNSt3__19allocatorIcEEEC2ERKmRKS4_:
   45|  1.07M|        : extra_(extra), alloc_(alloc)
   46|  1.07M|    {
   47|  1.07M|    }
_ZN8jsoncons4heap19heap_string_factoryIcNS_9null_typeENSt3__19allocatorIcEEE7destroyEPNS0_11heap_stringIcS2_S5_EE:
  169|  42.4k|    {
  170|  42.4k|        if (ptr != nullptr)
  ------------------
  |  Branch (170:13): [True: 42.4k, False: 0]
  ------------------
  171|  42.4k|        {
  172|  42.4k|            heap_string_type* rawp = nonstd::to_plain_pointer(ptr);
  173|       |
  174|  42.4k|            char* q = launder_cast<char*>(rawp);
  175|       |
  176|  42.4k|            char* p = q - ptr->offset_;
  177|       |
  178|  42.4k|            std::size_t mem_size = ptr->align_pad_ + aligned_size(ptr->length_*sizeof(char_type));
  179|  42.4k|            byte_allocator_type byte_alloc(ptr->get_allocator());
  180|  42.4k|            byte_alloc.deallocate(p,mem_size);
  181|  42.4k|        }
  182|  42.4k|    }
_ZN8jsoncons4heap16heap_string_baseINS_9null_typeENSt3__19allocatorIcEEE13get_allocatorEv:
   35|  42.4k|    {
   36|  42.4k|        return alloc_;
   37|  42.4k|    }
_ZN8jsoncons4heap19heap_string_factoryIhmNSt3__19allocatorIcEEE7destroyEPNS0_11heap_stringIhmS4_EE:
  169|  1.07M|    {
  170|  1.07M|        if (ptr != nullptr)
  ------------------
  |  Branch (170:13): [True: 1.07M, False: 0]
  ------------------
  171|  1.07M|        {
  172|  1.07M|            heap_string_type* rawp = nonstd::to_plain_pointer(ptr);
  173|       |
  174|  1.07M|            char* q = launder_cast<char*>(rawp);
  175|       |
  176|  1.07M|            char* p = q - ptr->offset_;
  177|       |
  178|  1.07M|            std::size_t mem_size = ptr->align_pad_ + aligned_size(ptr->length_*sizeof(char_type));
  179|  1.07M|            byte_allocator_type byte_alloc(ptr->get_allocator());
  180|  1.07M|            byte_alloc.deallocate(p,mem_size);
  181|  1.07M|        }
  182|  1.07M|    }
_ZN8jsoncons4heap16heap_string_baseImNSt3__19allocatorIcEEE13get_allocatorEv:
   35|  1.07M|    {
   36|  1.07M|        return alloc_;
   37|  1.07M|    }

_ZN8jsoncons16decstr_to_doubleEPKcmRd:
  889|  72.0k|{
  890|  72.0k|    const char* cur = s+length;
  891|  72.0k|    char *end = nullptr;
  892|  72.0k|    val = strtod(s, &end);
  893|  72.0k|    const char* str_end = end;
  894|  72.0k|    if (JSONCONS_UNLIKELY(end < cur))
  ------------------
  |  |   79|  72.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 72.0k]
  |  |  ------------------
  ------------------
  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|  72.0k|    if (JSONCONS_UNLIKELY(val <= -HUGE_VAL || val >= HUGE_VAL))
  ------------------
  |  |   79|   144k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 72.0k]
  |  |  |  Branch (79:50): [True: 0, False: 72.0k]
  |  |  |  Branch (79:50): [True: 0, False: 72.0k]
  |  |  ------------------
  ------------------
  911|      0|    {
  912|      0|        return to_number_result<char>{str_end, std::errc::result_out_of_range};
  913|      0|    }
  914|  72.0k|    return to_number_result<char>{str_end};
  915|  72.0k|}
_ZN8jsoncons16to_number_resultIcEC2EPKc:
  160|  72.0k|        : ptr(ptr_), ec(std::errc{})
  161|  72.0k|    {
  162|  72.0k|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr6nonstd10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  36.0M|{
   43|  36.0M|    using char_type = typename Result::value_type;
   44|       |
   45|  36.0M|    char_type buf[255];
   46|  36.0M|    char_type *p = buf;
   47|  36.0M|    const char_type* last = buf+255;
   48|       |
   49|  36.0M|    bool is_negative = value < 0;
   50|       |
   51|  36.0M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 36.0M]
  ------------------
   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|  36.0M|    else
   60|  36.0M|    {
   61|       |
   62|  36.0M|        do
   63|  37.8M|        {
   64|  37.8M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  37.8M|        }
   66|  37.8M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 1.84M, False: 36.0M]
  |  Branch (66:33): [True: 1.84M, False: 0]
  ------------------
   67|  36.0M|    }
   68|  36.0M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   54|  36.0M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 36.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 ))); }
  ------------------
   69|       |
   70|  36.0M|    std::size_t count = (p - buf);
   71|  36.0M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 36.0M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  73.8M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 37.8M, False: 36.0M]
  ------------------
   77|  37.8M|    {
   78|  37.8M|        result.push_back(*p);
   79|  37.8M|    }
   80|       |
   81|  36.0M|    return count;
   82|  36.0M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr6nonstd10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  8.14M|{
   43|  8.14M|    using char_type = typename Result::value_type;
   44|       |
   45|  8.14M|    char_type buf[255];
   46|  8.14M|    char_type *p = buf;
   47|  8.14M|    const char_type* last = buf+255;
   48|       |
   49|  8.14M|    bool is_negative = value < 0;
   50|       |
   51|  8.14M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 7.90M, False: 239k]
  ------------------
   52|  7.90M|    {
   53|  7.90M|        do
   54|  16.2M|        {
   55|  16.2M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  16.2M|        }
   57|  16.2M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 8.38M, False: 7.90M]
  |  Branch (57:33): [True: 8.38M, False: 0]
  ------------------
   58|  7.90M|    }
   59|   239k|    else
   60|   239k|    {
   61|       |
   62|   239k|        do
   63|   860k|        {
   64|   860k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|   860k|        }
   66|   860k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 621k, False: 239k]
  |  Branch (66:33): [True: 621k, False: 0]
  ------------------
   67|   239k|    }
   68|  8.14M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   54|  8.14M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 8.14M]
  |  |  ------------------
  |  |   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.14M|    std::size_t count = (p - buf);
   71|  8.14M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 7.90M, False: 239k]
  ------------------
   72|  7.90M|    {
   73|  7.90M|        result.push_back('-');
   74|  7.90M|        ++count;
   75|  7.90M|    }
   76|  25.3M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 17.1M, False: 8.14M]
  ------------------
   77|  17.1M|    {
   78|  17.1M|        result.push_back(*p);
   79|  17.1M|    }
   80|       |
   81|  8.14M|    return count;
   82|  8.14M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  4.53M|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  4.53M|    {
  489|  4.53M|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  4.53M|        struct lconv *lc = localeconv();
  491|  4.53M|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 4.53M, False: 0]
  |  Branch (491:30): [True: 4.53M, False: 0]
  ------------------
  492|  4.53M|        {
  493|  4.53M|            decimal_point_ = lc->decimal_point[0];
  494|  4.53M|        }
  495|  4.53M|#endif
  496|  4.53M|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  4.53M|    {
  504|  4.53M|        std::size_t count = 0;
  505|       |
  506|  4.53M|        char number_buffer[200];
  507|  4.53M|        int length = 0;
  508|       |
  509|  4.53M|        switch (float_format_)
  510|  4.53M|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 4.53M]
  ------------------
  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: 4.53M]
  ------------------
  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|  4.53M|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 4.53M, False: 0]
  ------------------
  552|  4.53M|            {
  553|  4.53M|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 4.53M]
  ------------------
  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|  4.53M|                else
  563|  4.53M|                {
  564|  4.53M|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 4.53M]
  ------------------
  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|  4.53M|                }             
  569|  4.53M|                break;
  570|  4.53M|            }
  571|  4.53M|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 4.53M]
  ------------------
  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|  4.53M|        }
  575|  4.53M|        return count;
  576|  4.53M|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  72.0k|{
  244|  72.0k|    const char *sbeg = buffer;
  245|  72.0k|    const char *send = sbeg + length;
  246|       |
  247|  72.0k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 72.0k, False: 0]
  ------------------
  248|  72.0k|    {
  249|  72.0k|        bool needs_dot = true;
  250|  1.59M|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 1.51M, False: 72.0k]
  ------------------
  251|  1.51M|        {
  252|  1.51M|            switch (*q)
  253|  1.51M|            {
  254|  68.7k|            case '-':
  ------------------
  |  Branch (254:13): [True: 68.7k, False: 1.44M]
  ------------------
  255|   382k|            case '0':
  ------------------
  |  Branch (255:13): [True: 313k, False: 1.20M]
  ------------------
  256|   475k|            case '1':
  ------------------
  |  Branch (256:13): [True: 93.2k, False: 1.42M]
  ------------------
  257|   664k|            case '2':
  ------------------
  |  Branch (257:13): [True: 188k, False: 1.32M]
  ------------------
  258|   757k|            case '3':
  ------------------
  |  Branch (258:13): [True: 93.5k, False: 1.42M]
  ------------------
  259|   829k|            case '4':
  ------------------
  |  Branch (259:13): [True: 71.8k, False: 1.44M]
  ------------------
  260|  1.00M|            case '5':
  ------------------
  |  Branch (260:13): [True: 175k, False: 1.34M]
  ------------------
  261|  1.14M|            case '6':
  ------------------
  |  Branch (261:13): [True: 136k, False: 1.38M]
  ------------------
  262|  1.21M|            case '7':
  ------------------
  |  Branch (262:13): [True: 72.6k, False: 1.44M]
  ------------------
  263|  1.32M|            case '8':
  ------------------
  |  Branch (263:13): [True: 112k, False: 1.40M]
  ------------------
  264|  1.41M|            case '9':
  ------------------
  |  Branch (264:13): [True: 85.1k, False: 1.43M]
  ------------------
  265|  1.41M|            case '+':
  ------------------
  |  Branch (265:13): [True: 3.82k, False: 1.51M]
  ------------------
  266|  1.41M|                result.push_back(*q);
  267|  1.41M|                break;
  268|  29.0k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 29.0k, False: 1.48M]
  ------------------
  269|  29.0k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 1.51M]
  ------------------
  270|  29.0k|                result.push_back('e');
  271|  29.0k|                needs_dot = false;
  272|  29.0k|                break;
  273|  73.2k|            default:
  ------------------
  |  Branch (273:13): [True: 73.2k, False: 1.44M]
  ------------------
  274|  73.2k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 67.8k, False: 5.40k]
  ------------------
  275|  67.8k|                {
  276|  67.8k|                    needs_dot = false;
  277|  67.8k|                    result.push_back('.');
  278|  67.8k|                }
  279|  73.2k|                break;
  280|  1.51M|            }
  281|  1.51M|        }
  282|  72.0k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 4.21k, False: 67.8k]
  ------------------
  283|  4.21k|        {
  284|  4.21k|            result.push_back('.');
  285|  4.21k|            result.push_back('0');
  286|  4.21k|        }
  287|  72.0k|    }
  288|  72.0k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKciiiiRT_:
  171|  4.14M|{
  172|  4.14M|    int nb_digits = length;
  173|  4.14M|    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|  4.14M|    int kk = nb_digits + k;
  179|       |
  180|  4.14M|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 1.22M, False: 2.92M]
  |  Branch (180:28): [True: 671k, False: 549k]
  ------------------
  181|   671k|    {
  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|  5.57M|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 4.90M, False: 671k]
  ------------------
  186|  4.90M|        {
  187|  4.90M|            result.push_back(buffer[i]);
  188|  4.90M|        }
  189|   716k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 45.3k, False: 671k]
  ------------------
  190|  45.3k|        {
  191|  45.3k|            result.push_back('0');
  192|  45.3k|        }
  193|   671k|        result.push_back('.');
  194|   671k|        result.push_back('0');
  195|   671k|    } 
  196|  3.47M|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 1.48M, False: 1.98M]
  |  Branch (196:24): [True: 937k, False: 549k]
  ------------------
  197|   937k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  2.98M|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 2.05M, False: 937k]
  ------------------
  200|  2.05M|        {
  201|  2.05M|            result.push_back(buffer[i]);
  202|  2.05M|        }
  203|   937k|        result.push_back('.');
  204|  7.24M|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 6.30M, False: 937k]
  ------------------
  205|  6.30M|        {
  206|  6.30M|            result.push_back(buffer[i]);
  207|  6.30M|        }
  208|   937k|    } 
  209|  2.53M|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 1.21M, False: 1.32M]
  |  Branch (209:30): [True: 664k, False: 549k]
  ------------------
  210|   664k|    {
  211|   664k|        offset = 2 - kk;
  212|       |
  213|   664k|        result.push_back('0');
  214|   664k|        result.push_back('.');
  215|  1.73M|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 1.06M, False: 664k]
  ------------------
  216|  1.06M|            result.push_back('0');
  217|  9.92M|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 9.26M, False: 664k]
  ------------------
  218|  9.26M|        {
  219|  9.26M|            result.push_back(buffer[i]);
  220|  9.26M|        }
  221|   664k|    } 
  222|  1.87M|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 4.54k, False: 1.86M]
  ------------------
  223|  4.54k|    {
  224|  4.54k|        result.push_back(buffer[0]);
  225|  4.54k|        result.push_back('e');
  226|  4.54k|        fill_exponent(kk - 1, result);
  227|  4.54k|    } 
  228|  1.86M|    else
  229|  1.86M|    {
  230|  1.86M|        result.push_back(buffer[0]);
  231|  1.86M|        result.push_back('.');
  232|  29.8M|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 27.9M, False: 1.86M]
  ------------------
  233|  27.9M|        {
  234|  27.9M|            result.push_back(buffer[i]);
  235|  27.9M|        }
  236|  1.86M|        result.push_back('e');
  237|  1.86M|        fill_exponent(kk - 1, result);
  238|  1.86M|    }
  239|  4.14M|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  1.87M|{
  137|  1.87M|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 1.32M, False: 549k]
  ------------------
  138|  1.32M|    {
  139|  1.32M|        result.push_back('-');
  140|  1.32M|        K = -K;
  141|  1.32M|    }
  142|   549k|    else
  143|   549k|    {
  144|   549k|        result.push_back('+'); // compatibility with sprintf
  145|   549k|    }
  146|       |
  147|  1.87M|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 311k, False: 1.56M]
  ------------------
  148|   311k|    {
  149|   311k|        result.push_back('0'); // compatibility with sprintf
  150|   311k|        result.push_back((char)('0' + K));
  151|   311k|    }
  152|  1.56M|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 1.26M, False: 292k]
  ------------------
  153|  1.26M|    {
  154|  1.26M|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|  1.26M|        result.push_back((char)('0' + K));
  156|  1.26M|    }
  157|   292k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 292k, False: 0]
  ------------------
  158|   292k|    {
  159|   292k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|   292k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|   292k|        result.push_back((char)('0' + K));
  162|   292k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  1.87M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  4.53M|{
  476|  4.53M|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  4.53M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  4.53M|{
  367|  4.53M|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 312k, False: 4.21M]
  ------------------
  368|   312k|    {
  369|   312k|        result.push_back('0');
  370|   312k|        result.push_back('.');
  371|   312k|        result.push_back('0');
  372|   312k|        return true;
  373|   312k|    }
  374|       |
  375|  4.21M|    int length = 0;
  376|  4.21M|    int k;
  377|       |
  378|  4.21M|    char buffer[100];
  379|       |
  380|  4.21M|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 2.28M, False: 1.93M]
  ------------------
  381|  4.21M|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 4.14M, False: 72.0k]
  ------------------
  382|  4.14M|    {
  383|  4.14M|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 2.24M, False: 1.90M]
  ------------------
  384|  2.24M|        {
  385|  2.24M|            result.push_back('-');
  386|  2.24M|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  4.14M|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  4.14M|        return true;
  391|  4.14M|    }
  392|  72.0k|    else
  393|  72.0k|    {
  394|  72.0k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  72.0k|    }
  396|  4.21M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  72.0k|{
  330|  72.0k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 72.0k]
  ------------------
  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|  72.0k|    char buffer[100];
  339|  72.0k|    int precision = std::numeric_limits<double>::digits10;
  340|  72.0k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  72.0k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 72.0k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  72.0k|    double x{0};
  346|  72.0k|    auto res = decstr_to_double(buffer, length, x);
  347|  72.0k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 72.0k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  72.0k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 71.1k, False: 966]
  ------------------
  352|  71.1k|    {
  353|  71.1k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  71.1k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  71.1k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 71.1k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  71.1k|    }
  360|  72.0k|    dump_buffer(buffer, length, decimal_point, result);
  361|  72.0k|    return true;
  362|  72.0k|}
_ZN8jsoncons14integer_to_hexImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr6nonstd10is_integerIT_EE5valueEmE4typeES9_RT0_:
   89|   456k|{
   90|   456k|    using char_type = typename Result::value_type;
   91|       |
   92|   456k|    char_type buf[255];
   93|   456k|    char_type *p = buf;
   94|   456k|    const char_type* last = buf+255;
   95|       |
   96|   456k|    bool is_negative = value < 0;
   97|       |
   98|   456k|    if (value < 0)
  ------------------
  |  Branch (98:9): [True: 0, False: 456k]
  ------------------
   99|      0|    {
  100|      0|        do
  101|      0|        {
  102|      0|            *p++ = to_hex_character(0-(value % 16));
  103|      0|        }
  104|      0|        while ((value /= 16) && (p < last));
  ------------------
  |  Branch (104:16): [True: 0, False: 0]
  |  Branch (104:33): [True: 0, False: 0]
  ------------------
  105|      0|    }
  106|   456k|    else
  107|   456k|    {
  108|       |
  109|   456k|        do
  110|   714k|        {
  111|   714k|            *p++ = to_hex_character(value % 16);
  112|   714k|        }
  113|   714k|        while ((value /= 16) && (p < last));
  ------------------
  |  Branch (113:16): [True: 257k, False: 456k]
  |  Branch (113:33): [True: 257k, False: 0]
  ------------------
  114|   456k|    }
  115|   456k|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   54|   456k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 456k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  116|       |
  117|   456k|    std::size_t count = (p - buf);
  118|   456k|    if (is_negative)
  ------------------
  |  Branch (118:9): [True: 0, False: 456k]
  ------------------
  119|      0|    {
  120|      0|        result.push_back('-');
  121|      0|        ++count;
  122|      0|    }
  123|  1.17M|    while (--p >= buf)
  ------------------
  |  Branch (123:12): [True: 714k, False: 456k]
  ------------------
  124|   714k|    {
  125|   714k|        result.push_back(*p);
  126|   714k|    }
  127|       |
  128|   456k|    return count;
  129|   456k|}
_ZN8jsoncons16to_hex_characterEh:
   33|   714k|{
   34|   714k|    return (char)((c < 10) ? ('0' + c) : ('A' - 10 + c));
  ------------------
  |  Branch (34:19): [True: 452k, False: 261k]
  ------------------
   35|   714k|}

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr6nonstd8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|   998k|    {
 1148|   998k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|   998k|        const uint8_t* end = it + length;
 1150|       |
 1151|   998k|        unicode_errc  result{};
 1152|  3.07M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 2.08M, False: 996k]
  ------------------
 1153|  2.08M|        {
 1154|  2.08M|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 443k, False: 1.63M]
  ------------------
 1155|   443k|            {
 1156|  3.02M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  326|   887k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (326:32): [True: 440k, False: 3.15k]
  |  |  |  Branch (326:34): [True: 439k, False: 1.02k]
  |  |  |  Branch (326:36): [True: 434k, False: 4.93k]
  |  |  |  Branch (326:38): [True: 432k, False: 1.72k]
  |  |  |  Branch (326:40): [True: 427k, False: 5.65k]
  |  |  |  Branch (326:42): [True: 426k, False: 672]
  |  |  |  Branch (326:44): [True: 422k, False: 3.64k]
  |  |  |  Branch (326:46): [True: 419k, False: 3.01k]
  |  |  ------------------
  ------------------
 1157|   419k|                continue;
 1158|  3.02M|            }
 1159|  1.66M|    non_ascii:
 1160|  1.66M|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  1.66M|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 286, False: 1.66M]
  ------------------
 1162|    286|            {
 1163|    286|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|    286|            }
 1165|  1.66M|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 1.83k, False: 1.66M]
  ------------------
 1166|  1.83k|            {
 1167|  1.83k|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|  1.83k|            }
 1169|  1.66M|            it += len;
 1170|  1.66M|        }
 1171|   996k|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|   998k|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  1.66M|    {
  306|  1.66M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  1.66M|        const uint8_t* end = it+length;
  308|       |
  309|  1.66M|        uint8_t byte;
  310|  1.66M|        switch (length) {
  311|    162|        default:
  ------------------
  |  Branch (311:9): [True: 162, False: 1.66M]
  ------------------
  312|    162|            return unicode_errc::over_long_utf8_sequence;
  313|  14.0k|        case 4:
  ------------------
  |  Branch (313:9): [True: 14.0k, False: 1.64M]
  ------------------
  314|  14.0k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 75, False: 13.9k]
  ------------------
  315|     75|                return unicode_errc::bad_continuation_byte;
  316|  13.9k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|  13.9k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  14.7k|        case 3:
  ------------------
  |  Branch (317:9): [True: 726, False: 1.66M]
  ------------------
  318|  14.7k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 91, False: 14.6k]
  ------------------
  319|     91|                return unicode_errc::bad_continuation_byte;
  320|  14.6k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|  14.6k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  26.3k|        case 2:
  ------------------
  |  Branch (321:9): [True: 11.7k, False: 1.65M]
  ------------------
  322|  26.3k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 527, False: 25.8k]
  ------------------
  323|    527|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  25.8k|            switch (*it) 
  326|  25.8k|            {
  327|       |                // no fall-through in this inner switch
  328|    254|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 254, False: 25.5k]
  |  Branch (328:32): [True: 17, False: 237]
  ------------------
  329|    239|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 239, False: 25.5k]
  |  Branch (329:32): [True: 27, False: 212]
  ------------------
  330|    774|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 774, False: 25.0k]
  |  Branch (330:32): [True: 22, False: 752]
  ------------------
  331|  13.0k|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 13.0k, False: 12.7k]
  |  Branch (331:32): [True: 12, False: 12.9k]
  ------------------
  332|  12.9k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 11.5k, False: 14.2k]
  |  Branch (332:32): [True: 0, False: 11.5k]
  ------------------
  333|  25.8k|            }
  334|       |
  335|  25.7k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  565|  25.7k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  1.66M|        case 1:
  ------------------
  |  Branch (336:9): [True: 1.63M, False: 26.6k]
  ------------------
  337|  1.66M|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 26.6k, False: 1.63M]
  |  Branch (337:32): [True: 891, False: 25.7k]
  ------------------
  338|    891|                return unicode_errc::source_illegal;
  339|  1.66M|            break;
  340|  1.66M|        }
  341|  1.66M|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 7, False: 1.66M]
  ------------------
  342|      7|            return unicode_errc::source_illegal;
  343|       |
  344|  1.66M|        return unicode_errc();
  345|  1.66M|    }

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

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

_ZN8jsoncons4cbor15make_error_codeENS0_9cbor_errcE:
  105|  68.4k|{
  106|  68.4k|    return std::error_code(static_cast<int>(e),cbor_error_category());
  107|  68.4k|}
_ZN8jsoncons4cbor19cbor_error_categoryEv:
   98|  68.4k|{
   99|  68.4k|  static cbor_error_category_impl instance;
  100|  68.4k|  return instance;
  101|  68.4k|}

_ZN8jsoncons4cbor19cbor_decode_optionsC1Ev:
   42|  87.4k|    cbor_decode_options() = default;
_ZN8jsoncons4cbor19cbor_options_commonC2Ev:
   25|  87.4k|    cbor_options_common() = default;
_ZN8jsoncons4cbor19cbor_options_commonD2Ev:
   27|  87.4k|    virtual ~cbor_options_common() = default;
_ZNK8jsoncons4cbor19cbor_options_common17max_nesting_depthEv:
   33|  87.4k|    {
   34|  87.4k|        return max_nesting_depth_;
   35|  87.4k|    }

_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEED2Ev:
  237|  52.4k|    ~basic_cbor_parser() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringD2Ev:
  136|  36.6M|        ~mapped_string() = default;
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4lineEv:
  328|  13.8k|    {
  329|  13.8k|        return 0;
  330|  13.8k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE6columnEv:
  333|  13.8k|    {
  334|  13.8k|        return source_.position();
  335|  13.8k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEED2Ev:
  237|  34.9k|    ~basic_cbor_parser() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13mapped_stringD2Ev:
  136|  26.0M|        ~mapped_string() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE7restartEv:
  240|  56.7M|    {
  241|  56.7M|        more_ = !done_;
  242|  56.7M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE7stoppedEv:
  323|   113M|    {
  324|   113M|        return !more_;
  325|   113M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE5parseERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
  348|  56.7M|    {
  349|   198M|        while (!done_ && more_)
  ------------------
  |  Branch (349:16): [True: 198M, False: 7.82k]
  |  Branch (349:26): [True: 141M, False: 56.7M]
  ------------------
  350|   141M|        {
  351|   141M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (351:21): [True: 141M, False: 0]
  ------------------
  352|   141M|            {
  353|  52.8k|                case parse_mode::multi_dim:
  ------------------
  |  Branch (353:17): [True: 52.8k, False: 141M]
  ------------------
  354|  52.8k|                {
  355|  52.8k|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  52.8k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 52.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 ))); }
  ------------------
  356|  52.8k|                    typed_array_stack_.pop_back();
  357|  52.8k|                    state_stack_.pop_back();
  358|  52.8k|                    break;
  359|  52.8k|                }
  360|  6.27M|                case parse_mode::typed_array:
  ------------------
  |  Branch (360:17): [True: 6.27M, False: 135M]
  ------------------
  361|  6.27M|                {
  362|  6.27M|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  6.27M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 6.27M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  363|  6.27M|                    read_typed_array_item(visitor, ec);
  364|  6.27M|                    auto iter = typed_array_stack_.back();
  365|  6.27M|                    if (iter->done())
  ------------------
  |  Branch (365:25): [True: 190k, False: 6.08M]
  ------------------
  366|   190k|                    {
  367|   190k|                        if (level() == mark_level_)
  ------------------
  |  Branch (367:29): [True: 601, False: 189k]
  ------------------
  368|    601|                        {
  369|    601|                            more_ = false;
  370|    601|                        }
  371|   190k|                        if (!is_multi_dim())
  ------------------
  |  Branch (371:29): [True: 144k, False: 45.5k]
  ------------------
  372|   144k|                        {
  373|   144k|                            typed_array_stack_.pop_back();
  374|   144k|                        }
  375|   190k|                        state_stack_.pop_back();
  376|   190k|                    }
  377|  6.27M|                    break;
  378|  6.27M|                }
  379|  36.8M|                case parse_mode::array:
  ------------------
  |  Branch (379:17): [True: 36.8M, False: 105M]
  ------------------
  380|  36.8M|                {
  381|  36.8M|                    if (is_multi_dim())
  ------------------
  |  Branch (381:25): [True: 23.4M, False: 13.3M]
  ------------------
  382|  23.4M|                    {
  383|  23.4M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  23.4M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 23.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 ))); }
  ------------------
  384|  23.4M|                        auto iter = typed_array_stack_.back();
  385|  23.4M|                        if (!iter->done())
  ------------------
  |  Branch (385:29): [True: 23.4M, False: 2.61k]
  ------------------
  386|  23.4M|                        {
  387|  23.4M|                            iter->next(visitor, *this, ec);
  388|  23.4M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  23.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 810, False: 23.4M]
  |  |  ------------------
  ------------------
  389|    810|                            {
  390|    810|                                return;
  391|    810|                            }
  392|  23.4M|                        }
  393|  2.61k|                        else
  394|  2.61k|                        {
  395|  2.61k|                            if (iter->count() != state_stack_.back().length)
  ------------------
  |  Branch (395:33): [True: 251, False: 2.36k]
  ------------------
  396|    251|                            {
  397|       |                                //std::cout << state_stack_.back().index << "!=" << state_stack_.back().length << "\n";
  398|    251|                                ec = cbor_errc::bad_mdarray;
  399|    251|                                return;
  400|    251|                            }
  401|  2.36k|                            end_classical_array_storage(ec);
  402|  2.36k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.36k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.36k]
  |  |  ------------------
  ------------------
  403|      0|                            {
  404|      0|                                return;
  405|      0|                            }
  406|  2.36k|                        }
  407|  23.4M|                    }
  408|  13.3M|                    else
  409|  13.3M|                    {
  410|  13.3M|                        if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (410:29): [True: 12.9M, False: 426k]
  ------------------
  411|  12.9M|                        {
  412|  12.9M|                            ++state_stack_.back().index;
  413|  12.9M|                            read_item(visitor, ec);
  414|  12.9M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7.65k, False: 12.9M]
  |  |  ------------------
  ------------------
  415|  7.65k|                            {
  416|  7.65k|                                return;
  417|  7.65k|                            }
  418|  12.9M|                        }
  419|   426k|                        else
  420|   426k|                        {
  421|   426k|                            end_array(visitor, ec);
  422|   426k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   426k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 426k]
  |  |  ------------------
  ------------------
  423|      0|                            {
  424|      0|                                return;
  425|      0|                            }
  426|   426k|                        }
  427|  13.3M|                    }
  428|  36.7M|                    break;
  429|  36.8M|                }
  430|  36.7M|                case parse_mode::indefinite_array:
  ------------------
  |  Branch (430:17): [True: 30.6M, False: 111M]
  ------------------
  431|  30.6M|                {
  432|  30.6M|                    if (is_multi_dim()) 
  ------------------
  |  Branch (432:25): [True: 8.15M, False: 22.5M]
  ------------------
  433|  8.15M|                    {
  434|  8.15M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  8.15M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 8.15M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  435|  8.15M|                        auto iter = typed_array_stack_.back();
  436|  8.15M|                        if (!iter->done())
  ------------------
  |  Branch (436:29): [True: 8.15M, False: 5.01k]
  ------------------
  437|  8.15M|                        {
  438|  8.15M|                            iter->next(visitor, *this, ec);
  439|  8.15M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.15M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 336, False: 8.15M]
  |  |  ------------------
  ------------------
  440|    336|                            {
  441|    336|                                return;
  442|    336|                            }
  443|  8.15M|                        }
  444|  5.01k|                        else
  445|  5.01k|                        {
  446|  5.01k|                            auto c = source_.peek();
  447|  5.01k|                            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  5.01k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 15, False: 5.00k]
  |  |  ------------------
  ------------------
  448|     15|                            {
  449|     15|                                ec = cbor_errc::unexpected_eof;
  450|     15|                                more_ = false;
  451|     15|                                return;
  452|     15|                            }
  453|  5.00k|                            if (c.value == 0xff)
  ------------------
  |  Branch (453:33): [True: 4.95k, False: 54]
  ------------------
  454|  4.95k|                            {
  455|  4.95k|                                source_.ignore(1);
  456|  4.95k|                            }
  457|     54|                            else
  458|     54|                            {
  459|     54|                                ec = cbor_errc::bad_mdarray;
  460|     54|                                return;
  461|     54|                            }
  462|  4.95k|                            end_classical_array_storage(ec);
  463|  4.95k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.95k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.95k]
  |  |  ------------------
  ------------------
  464|      0|                            {
  465|      0|                                return;
  466|      0|                            }
  467|  4.95k|                        }
  468|  8.15M|                    }
  469|  22.5M|                    else
  470|  22.5M|                    {
  471|  22.5M|                        auto c = source_.peek();
  472|  22.5M|                        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  22.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.02k, False: 22.5M]
  |  |  ------------------
  ------------------
  473|  1.02k|                        {
  474|  1.02k|                            ec = cbor_errc::unexpected_eof;
  475|  1.02k|                            more_ = false;
  476|  1.02k|                            return;
  477|  1.02k|                        }
  478|  22.5M|                        if (c.value == 0xff)
  ------------------
  |  Branch (478:29): [True: 30.7k, False: 22.5M]
  ------------------
  479|  30.7k|                        {
  480|  30.7k|                            source_.ignore(1);
  481|  30.7k|                            end_array(visitor, ec);
  482|  30.7k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  30.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 30.7k]
  |  |  ------------------
  ------------------
  483|      0|                            {
  484|      0|                                return;
  485|      0|                            }
  486|  30.7k|                        }
  487|  22.5M|                        else
  488|  22.5M|                        {
  489|  22.5M|                            read_item(visitor, ec);
  490|  22.5M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  22.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.34k, False: 22.5M]
  |  |  ------------------
  ------------------
  491|  1.34k|                            {
  492|  1.34k|                                return;
  493|  1.34k|                            }
  494|  22.5M|                        }
  495|  22.5M|                    }
  496|  30.6M|                    break;
  497|  30.6M|                }
  498|  30.6M|                case parse_mode::map_key:
  ------------------
  |  Branch (498:17): [True: 20.9M, False: 121M]
  ------------------
  499|  20.9M|                {
  500|  20.9M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (500:25): [True: 2.33M, False: 18.5M]
  ------------------
  501|  2.33M|                    {
  502|  2.33M|                        ++state_stack_.back().index;
  503|  2.33M|                        state_stack_.back().mode = parse_mode::map_value;
  504|  2.33M|                        read_item(visitor, ec);
  505|  2.33M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.33M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4.04k, False: 2.32M]
  |  |  ------------------
  ------------------
  506|  4.04k|                        {
  507|  4.04k|                            return;
  508|  4.04k|                        }
  509|  2.33M|                    }
  510|  18.5M|                    else
  511|  18.5M|                    {
  512|  18.5M|                        end_object(visitor, ec);
  513|  18.5M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 18.5M]
  |  |  ------------------
  ------------------
  514|      0|                        {
  515|      0|                            return;
  516|      0|                        }
  517|  18.5M|                    }
  518|  20.9M|                    break;
  519|  20.9M|                }
  520|  20.9M|                case parse_mode::map_value:
  ------------------
  |  Branch (520:17): [True: 2.20M, False: 139M]
  ------------------
  521|  2.20M|                {
  522|  2.20M|                    state_stack_.back().mode = parse_mode::map_key;
  523|  2.20M|                    read_item(visitor, ec);
  524|  2.20M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.20M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.79k, False: 2.19M]
  |  |  ------------------
  ------------------
  525|  3.79k|                    {
  526|  3.79k|                        return;
  527|  3.79k|                    }
  528|  2.19M|                    break;
  529|  2.20M|                }
  530|  22.5M|                case parse_mode::indefinite_map_key:
  ------------------
  |  Branch (530:17): [True: 22.5M, False: 119M]
  ------------------
  531|  22.5M|                {
  532|  22.5M|                    auto c = source_.peek();
  533|  22.5M|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  22.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 867, False: 22.5M]
  |  |  ------------------
  ------------------
  534|    867|                    {
  535|    867|                        ec = cbor_errc::unexpected_eof;
  536|    867|                        more_ = false;
  537|    867|                        return;
  538|    867|                    }
  539|  22.5M|                    if (c.value == 0xff)
  ------------------
  |  Branch (539:25): [True: 12.1k, False: 22.4M]
  ------------------
  540|  12.1k|                    {
  541|  12.1k|                        source_.ignore(1);
  542|  12.1k|                        end_object(visitor, ec);
  543|  12.1k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 12.1k]
  |  |  ------------------
  ------------------
  544|      0|                        {
  545|      0|                            return;
  546|      0|                        }
  547|  12.1k|                    }
  548|  22.4M|                    else
  549|  22.4M|                    {
  550|  22.4M|                        state_stack_.back().mode = parse_mode::indefinite_map_value;
  551|  22.4M|                        read_item(visitor, ec);
  552|  22.4M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  22.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.03k, False: 22.4M]
  |  |  ------------------
  ------------------
  553|  1.03k|                        {
  554|  1.03k|                            return;
  555|  1.03k|                        }
  556|  22.4M|                    }
  557|  22.5M|                    break;
  558|  22.5M|                }
  559|  22.5M|                case parse_mode::indefinite_map_value:
  ------------------
  |  Branch (559:17): [True: 22.4M, False: 119M]
  ------------------
  560|  22.4M|                {
  561|  22.4M|                    state_stack_.back().mode = parse_mode::indefinite_map_key;
  562|  22.4M|                    read_item(visitor, ec);
  563|  22.4M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  22.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.99k, False: 22.4M]
  |  |  ------------------
  ------------------
  564|  1.99k|                    {
  565|  1.99k|                        return;
  566|  1.99k|                    }
  567|  22.4M|                    break;
  568|  22.4M|                }
  569|  22.4M|                case parse_mode::root:
  ------------------
  |  Branch (569:17): [True: 34.9k, False: 141M]
  ------------------
  570|  34.9k|                {
  571|  34.9k|                    state_stack_.back().mode = parse_mode::accept;
  572|  34.9k|                    read_item(visitor, ec);
  573|  34.9k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  34.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.95k, False: 31.0k]
  |  |  ------------------
  ------------------
  574|  3.95k|                    {
  575|  3.95k|                        return;
  576|  3.95k|                    }
  577|  31.0k|                    break;
  578|  34.9k|                }
  579|  31.0k|                case parse_mode::accept:
  ------------------
  |  Branch (579:17): [True: 7.82k, False: 141M]
  ------------------
  580|  7.82k|                {
  581|  7.82k|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   54|  7.82k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 7.82k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  582|  7.82k|                    state_stack_.clear();
  583|  7.82k|                    more_ = false;
  584|  7.82k|                    done_ = true;
  585|  7.82k|                    visitor.flush();
  586|  7.82k|                    break;
  587|  7.82k|                }
  588|   141M|            }
  589|   141M|        }
  590|  56.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE21read_typed_array_itemERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
  593|  6.27M|    {
  594|  6.27M|        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  6.27M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 6.27M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  595|  6.27M|        auto iter = typed_array_stack_.back();
  596|  6.27M|        if (!iter->done())
  ------------------
  |  Branch (596:13): [True: 6.27M, False: 0]
  ------------------
  597|  6.27M|        {
  598|  6.27M|            iter->next(visitor, *this, ec);
  599|  6.27M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.27M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.27M]
  |  |  ------------------
  ------------------
  600|      0|            {
  601|      0|                return;
  602|      0|            }
  603|  6.27M|            more_ = !cursor_mode_;
  604|  6.27M|        }
  605|  6.27M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE5levelEv:
  303|  19.2M|    {
  304|  19.2M|        return static_cast<int>(state_stack_.size());
  305|  19.2M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE12is_multi_dimEv:
  263|  67.6M|    {
  264|  67.6M|        return state_stack_.size() >=2 && state_stack_[state_stack_.size()-2].mode == parse_mode::multi_dim;
  ------------------
  |  Branch (264:16): [True: 67.6M, False: 0]
  |  Branch (264:43): [True: 31.6M, False: 36.0M]
  ------------------
  265|  67.6M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE27end_classical_array_storageERNS4_10error_codeE:
 1032|  7.31k|    {
 1033|  7.31k|        --nesting_depth_;
 1034|       |
 1035|  7.31k|        more_ = !cursor_mode_;
 1036|  7.31k|        if (level() == mark_level_)
  ------------------
  |  Branch (1036:13): [True: 7, False: 7.30k]
  ------------------
 1037|      7|        {
 1038|      7|            more_ = false;
 1039|      7|        }
 1040|  7.31k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1040:13): [True: 1.70k, False: 5.60k]
  ------------------
 1041|  1.70k|        {
 1042|  1.70k|            stringref_map_stack_.pop_back();
 1043|  1.70k|        }
 1044|  7.31k|        state_stack_.pop_back();
 1045|  7.31k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE9read_itemERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
  608|  88.7M|    {
  609|  88.7M|        read_tags(ec);
  610|  88.7M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  88.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 9.71k, False: 88.7M]
  |  |  ------------------
  ------------------
  611|  9.71k|        {
  612|  9.71k|            return;
  613|  9.71k|        }
  614|  88.7M|        auto c = source_.peek();
  615|  88.7M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  88.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 88.7M]
  |  |  ------------------
  ------------------
  616|      0|        {
  617|      0|            ec = cbor_errc::unexpected_eof;
  618|      0|            more_ = false;
  619|      0|            return;
  620|      0|        }
  621|  88.7M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
  622|  88.7M|        uint8_t info = get_additional_information(c.value);
  623|  88.7M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  89.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 55, False: 88.7M]
  |  |  |  Branch (79:50): [True: 259k, False: 88.5M]
  |  |  |  Branch (79:50): [True: 55, False: 259k]
  |  |  ------------------
  ------------------
  624|     55|        {
  625|     55|            ec = cbor_errc::reserved_additional_info;
  626|     55|            more_ = false;
  627|     55|            return;
  628|     55|        }
  629|       |
  630|  88.7M|        switch (major_type)
  631|  88.7M|        {
  632|  45.7M|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (632:13): [True: 45.7M, False: 43.0M]
  ------------------
  633|  45.7M|            {
  634|  45.7M|                source_.ignore(1);
  635|  45.7M|                uint64_t val = read_unsigned_integer(info, ec);
  636|  45.7M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  45.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 155, False: 45.7M]
  |  |  ------------------
  ------------------
  637|    155|                {
  638|    155|                    return;
  639|    155|                }
  640|  45.7M|                if (!stringref_map_stack_.empty() && other_tags_[stringref_tag])
  ------------------
  |  Branch (640:21): [True: 3.07M, False: 42.6M]
  |  Branch (640:21): [True: 63.0k, False: 45.6M]
  |  Branch (640:54): [True: 63.0k, False: 3.01M]
  ------------------
  641|  63.0k|                {
  642|  63.0k|                    other_tags_[stringref_tag] = false;
  643|  63.0k|                    if (val >= stringref_map_stack_.back().size())
  ------------------
  |  Branch (643:25): [True: 274, False: 62.7k]
  ------------------
  644|    274|                    {
  645|    274|                        ec = cbor_errc::stringref_too_large;
  646|    274|                        more_ = false;
  647|    274|                        return;
  648|    274|                    }
  649|  62.7k|                    auto index = static_cast<typename stringref_map::size_type>(val);
  650|  62.7k|                    if (index != val)
  ------------------
  |  Branch (650:25): [True: 0, False: 62.7k]
  ------------------
  651|      0|                    {
  652|      0|                        ec = cbor_errc::number_too_large;
  653|      0|                        more_ = false;
  654|      0|                        return;
  655|      0|                    }
  656|  62.7k|                    auto& str = stringref_map_stack_.back().at(index);
  657|  62.7k|                    switch (str.type)
  658|  62.7k|                    {
  659|  4.18k|                        case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (659:25): [True: 4.18k, False: 58.5k]
  ------------------
  660|  4.18k|                        {
  661|  4.18k|                            handle_string(visitor, jsoncons::string_view(str.str.data(),str.str.length()),ec);
  662|  4.18k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.18k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.18k]
  |  |  ------------------
  ------------------
  663|      0|                            {
  664|      0|                                return;
  665|      0|                            }
  666|  4.18k|                            break;
  667|  4.18k|                        }
  668|  58.5k|                        case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (668:25): [True: 58.5k, False: 4.18k]
  ------------------
  669|  58.5k|                        {
  670|  58.5k|                            read_byte_string_from_buffer read(byte_string_view(str.bytes));
  671|  58.5k|                            read_byte_string(read, visitor, ec);
  672|  58.5k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  58.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 58.5k]
  |  |  ------------------
  ------------------
  673|      0|                            {
  674|      0|                                return;
  675|      0|                            }
  676|  58.5k|                            break;
  677|  58.5k|                        }
  678|  58.5k|                        default:
  ------------------
  |  Branch (678:25): [True: 0, False: 62.7k]
  ------------------
  679|      0|                        {
  680|      0|                            ec = cbor_errc::invalid_major_type;
  681|      0|                            more_ = false;
  682|      0|                            return;
  683|  58.5k|                        }
  684|  62.7k|                    }
  685|  62.7k|                }
  686|  45.6M|                else
  687|  45.6M|                {
  688|  45.6M|                    semantic_tag tag = semantic_tag::none;
  689|  45.6M|                    if (other_tags_[item_tag])
  ------------------
  |  Branch (689:25): [True: 65.6k, False: 45.5M]
  ------------------
  690|  65.6k|                    {
  691|  65.6k|                        if (raw_tag_ == 1)
  ------------------
  |  Branch (691:29): [True: 2.43k, False: 63.2k]
  ------------------
  692|  2.43k|                        {
  693|  2.43k|                            tag = semantic_tag::epoch_second;
  694|  2.43k|                        }
  695|  65.6k|                        other_tags_[item_tag] = false;
  696|  65.6k|                    }
  697|  45.6M|                    visitor.uint64_value(val, tag, *this, ec);
  698|  45.6M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  45.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 45.6M]
  |  |  ------------------
  ------------------
  699|      0|                    {
  700|      0|                        return;
  701|      0|                    }
  702|  45.6M|                    more_ = !cursor_mode_;
  703|  45.6M|                }
  704|  45.7M|                break;
  705|  45.7M|            }
  706|  45.7M|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (706:13): [True: 9.55M, False: 79.2M]
  ------------------
  707|  9.55M|            {
  708|  9.55M|                source_.ignore(1);
  709|  9.55M|                read_negative_integer (info, visitor, ec);
  710|  9.55M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.55M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 349, False: 9.55M]
  |  |  ------------------
  ------------------
  711|    349|                {
  712|    349|                    return;
  713|    349|                }
  714|  9.55M|                break;
  715|  9.55M|            }
  716|  9.55M|            case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (716:13): [True: 8.79M, False: 79.9M]
  ------------------
  717|  8.79M|            {
  718|  8.79M|                read_byte_string_from_source read(this);
  719|  8.79M|                read_byte_string(read, visitor, ec);
  720|  8.79M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.79M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.01k, False: 8.78M]
  |  |  ------------------
  ------------------
  721|  3.01k|                {
  722|  3.01k|                    return;
  723|  3.01k|                }
  724|  8.78M|                break;
  725|  8.79M|            }
  726|  8.78M|            case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (726:13): [True: 401k, False: 88.3M]
  ------------------
  727|   401k|            {
  728|   401k|                source_.ignore(1);
  729|   401k|                auto sv = read_text_string_view(info, ec);
  730|   401k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   401k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.03k, False: 398k]
  |  |  ------------------
  ------------------
  731|  2.03k|                {
  732|  2.03k|                    return;
  733|  2.03k|                }
  734|   398k|                auto result = unicode_traits::validate(sv.data(),sv.size());
  735|   398k|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (735:21): [True: 805, False: 398k]
  ------------------
  736|    805|                {
  737|    805|                    ec = cbor_errc::invalid_utf8_text_string;
  738|    805|                    more_ = false;
  739|    805|                    return;
  740|    805|                }
  741|   398k|                handle_string(visitor, sv, ec);
  742|   398k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   398k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 398k]
  |  |  ------------------
  ------------------
  743|      0|                {
  744|      0|                    return;
  745|      0|                }
  746|   398k|                break;
  747|   398k|            }
  748|   398k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (748:13): [True: 0, False: 88.7M]
  ------------------
  749|      0|            {
  750|      0|                JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
  751|      0|                break;
  752|   398k|            }
  753|  4.41M|            case jsoncons::cbor::detail::cbor_major_type::simple:
  ------------------
  |  Branch (753:13): [True: 4.41M, False: 84.3M]
  ------------------
  754|  4.41M|            {
  755|  4.41M|                switch (info)
  756|  4.41M|                {
  757|   324k|                    case 0x14:
  ------------------
  |  Branch (757:21): [True: 324k, False: 4.08M]
  ------------------
  758|   324k|                        source_.ignore(1);
  759|   324k|                        visitor.bool_value(false, semantic_tag::none, *this, ec);
  760|   324k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   324k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 324k]
  |  |  ------------------
  ------------------
  761|      0|                        {
  762|      0|                            return;
  763|      0|                        }
  764|   324k|                        more_ = !cursor_mode_;
  765|   324k|                        break;
  766|  3.51M|                    case 0x15:
  ------------------
  |  Branch (766:21): [True: 3.51M, False: 898k]
  ------------------
  767|  3.51M|                        source_.ignore(1);
  768|  3.51M|                        visitor.bool_value(true, semantic_tag::none, *this, ec);
  769|  3.51M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.51M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.51M]
  |  |  ------------------
  ------------------
  770|      0|                        {
  771|      0|                            return;
  772|      0|                        }
  773|  3.51M|                        more_ = !cursor_mode_;
  774|  3.51M|                        break;
  775|  65.2k|                    case 0x16:
  ------------------
  |  Branch (775:21): [True: 65.2k, False: 4.34M]
  ------------------
  776|  65.2k|                        source_.ignore(1);
  777|  65.2k|                        visitor.null_value(semantic_tag::none, *this, ec);
  778|  65.2k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  65.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 65.2k]
  |  |  ------------------
  ------------------
  779|      0|                        {
  780|      0|                            return;
  781|      0|                        }
  782|  65.2k|                        more_ = !cursor_mode_;
  783|  65.2k|                        break;
  784|  86.5k|                    case 0x17:
  ------------------
  |  Branch (784:21): [True: 86.5k, False: 4.32M]
  ------------------
  785|  86.5k|                        source_.ignore(1);
  786|  86.5k|                        visitor.null_value(semantic_tag::undefined, *this, ec);
  787|  86.5k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  86.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 86.5k]
  |  |  ------------------
  ------------------
  788|      0|                        {
  789|      0|                            return;
  790|      0|                        }
  791|  86.5k|                        more_ = !cursor_mode_;
  792|  86.5k|                        break;
  793|   154k|                    case 0x19: // Half-Precision Float (two-byte IEEE 754)
  ------------------
  |  Branch (793:21): [True: 154k, False: 4.25M]
  ------------------
  794|   154k|                    {
  795|   154k|                        source_.ignore(1);
  796|   154k|                        uint64_t val = read_unsigned_integer(info, ec);
  797|   154k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   154k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 105, False: 154k]
  |  |  ------------------
  ------------------
  798|    105|                        {
  799|    105|                            return;
  800|    105|                        }
  801|   154k|                        visitor.half_value(static_cast<uint16_t>(val), semantic_tag::none, *this, ec);
  802|   154k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   154k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 154k]
  |  |  ------------------
  ------------------
  803|      0|                        {
  804|      0|                            return;
  805|      0|                        }
  806|   154k|                        more_ = !cursor_mode_;
  807|   154k|                        break;
  808|   154k|                    }
  809|   222k|                    case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (809:21): [True: 222k, False: 4.19M]
  ------------------
  810|   265k|                    case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (810:21): [True: 42.4k, False: 4.37M]
  ------------------
  811|   265k|                    {
  812|   265k|                        source_.ignore(1);
  813|   265k|                        double val = read_double(info, ec);
  814|   265k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   265k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 287, False: 264k]
  |  |  ------------------
  ------------------
  815|    287|                        {
  816|    287|                            return;
  817|    287|                        }
  818|   264k|                        semantic_tag tag = semantic_tag::none;
  819|   264k|                        if (other_tags_[item_tag])
  ------------------
  |  Branch (819:29): [True: 4.84k, False: 259k]
  ------------------
  820|  4.84k|                        {
  821|  4.84k|                            if (raw_tag_ == 1)
  ------------------
  |  Branch (821:33): [True: 1.16k, False: 3.68k]
  ------------------
  822|  1.16k|                            {
  823|  1.16k|                                tag = semantic_tag::epoch_second;
  824|  1.16k|                            }
  825|  4.84k|                            other_tags_[item_tag] = false;
  826|  4.84k|                        }
  827|   264k|                        visitor.double_value(val, tag, *this, ec);
  828|   264k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   264k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 264k]
  |  |  ------------------
  ------------------
  829|      0|                        {
  830|      0|                            return;
  831|      0|                        }
  832|   264k|                        more_ = !cursor_mode_;
  833|   264k|                        break;
  834|   264k|                    }
  835|  2.32k|                    default:
  ------------------
  |  Branch (835:21): [True: 2.32k, False: 4.41M]
  ------------------
  836|  2.32k|                    {
  837|  2.32k|                        ec = cbor_errc::unknown_type;
  838|  2.32k|                        more_ = false;
  839|  2.32k|                        return;
  840|   264k|                    }
  841|  4.41M|                }
  842|  4.41M|                break;
  843|  4.41M|            }
  844|  4.41M|            case jsoncons::cbor::detail::cbor_major_type::array:
  ------------------
  |  Branch (844:13): [True: 1.06M, False: 87.7M]
  ------------------
  845|  1.06M|            {
  846|  1.06M|                if (other_tags_[item_tag])
  ------------------
  |  Branch (846:21): [True: 365k, False: 699k]
  ------------------
  847|   365k|                {
  848|   365k|                    switch (raw_tag_)
  849|   365k|                    {
  850|  91.0k|                        case 0x04:
  ------------------
  |  Branch (850:25): [True: 91.0k, False: 274k]
  ------------------
  851|  91.0k|                            source_.ignore(1);
  852|  91.0k|                            text_buffer_.clear();
  853|  91.0k|                            read_bigdecimal(info, text_buffer_, ec);
  854|  91.0k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  91.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.09k, False: 89.9k]
  |  |  ------------------
  ------------------
  855|  1.09k|                            {
  856|  1.09k|                                return;
  857|  1.09k|                            }
  858|  89.9k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
  859|  89.9k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  89.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 89.9k]
  |  |  ------------------
  ------------------
  860|      0|                            {
  861|      0|                                return;
  862|      0|                            }
  863|  89.9k|                            more_ = !cursor_mode_;
  864|  89.9k|                            break;
  865|   152k|                        case 0x05:
  ------------------
  |  Branch (865:25): [True: 152k, False: 213k]
  ------------------
  866|   152k|                            source_.ignore(1);
  867|   152k|                            text_buffer_.clear();
  868|   152k|                            read_bigfloat(info, text_buffer_, ec);
  869|   152k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   152k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 767, False: 151k]
  |  |  ------------------
  ------------------
  870|    767|                            {
  871|    767|                                return;
  872|    767|                            }
  873|   151k|                            visitor.string_value(text_buffer_, semantic_tag::bigfloat, *this, ec);
  874|   151k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   151k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 151k]
  |  |  ------------------
  ------------------
  875|      0|                            {
  876|      0|                                return;
  877|      0|                            }
  878|   151k|                            more_ = !cursor_mode_;
  879|   151k|                            break;
  880|  59.8k|                        case 40: // row-major storage
  ------------------
  |  Branch (880:25): [True: 59.8k, False: 305k]
  ------------------
  881|  59.8k|                            order_ = mdarray_order::row_major;
  882|  59.8k|                            read_mdarray_header(visitor, ec);
  883|  59.8k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  59.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.62k, False: 56.2k]
  |  |  ------------------
  ------------------
  884|  3.62k|                            {
  885|  3.62k|                                return;
  886|  3.62k|                            }
  887|  56.2k|                            break;
  888|  56.2k|                        case 1040: // column-major storage
  ------------------
  |  Branch (888:25): [True: 14.9k, False: 350k]
  ------------------
  889|  14.9k|                            order_ = mdarray_order::column_major;
  890|  14.9k|                            read_mdarray_header(visitor, ec);
  891|  14.9k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  14.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 116, False: 14.8k]
  |  |  ------------------
  ------------------
  892|    116|                            {
  893|    116|                                return;
  894|    116|                            }
  895|  14.8k|                            break;
  896|  47.1k|                        default:
  ------------------
  |  Branch (896:25): [True: 47.1k, False: 318k]
  ------------------
  897|  47.1k|                            source_.ignore(1);
  898|  47.1k|                            begin_array(info, visitor, ec);
  899|  47.1k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  47.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 35, False: 47.1k]
  |  |  ------------------
  ------------------
  900|     35|                            {
  901|     35|                                return;
  902|     35|                            }
  903|  47.1k|                            break;
  904|   365k|                    }
  905|   359k|                    other_tags_[item_tag] = false;
  906|   359k|                }
  907|   699k|                else
  908|   699k|                {
  909|   699k|                    source_.ignore(1);
  910|   699k|                    begin_array(info, visitor, ec);
  911|   699k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   699k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 127, False: 699k]
  |  |  ------------------
  ------------------
  912|    127|                    {
  913|    127|                        return;
  914|    127|                    }
  915|   699k|                }
  916|  1.05M|                break;
  917|  1.06M|            }
  918|  18.8M|            case jsoncons::cbor::detail::cbor_major_type::map:
  ------------------
  |  Branch (918:13): [True: 18.8M, False: 69.9M]
  ------------------
  919|  18.8M|            {
  920|  18.8M|                source_.ignore(1);
  921|  18.8M|                begin_object(info, visitor, ec);
  922|  18.8M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 77, False: 18.8M]
  |  |  ------------------
  ------------------
  923|     77|                {
  924|     77|                    return;
  925|     77|                }
  926|  18.8M|                break;
  927|  18.8M|            }
  928|  18.8M|            default:
  ------------------
  |  Branch (928:13): [True: 0, False: 88.7M]
  ------------------
  929|      0|                ec = cbor_errc::invalid_major_type;
  930|      0|                more_ = false;
  931|      0|                return;
  932|  88.7M|        }
  933|  88.7M|        other_tags_[item_tag] = false;
  934|  88.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE9read_tagsERNS4_10error_codeE:
 2092|  88.8M|    {
 2093|  88.8M|        auto c = source_.peek();
 2094|  88.8M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  88.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7.92k, False: 88.8M]
  |  |  ------------------
  ------------------
 2095|  7.92k|        {
 2096|  7.92k|            ec = cbor_errc::unexpected_eof;
 2097|  7.92k|            more_ = false;
 2098|  7.92k|            return;
 2099|  7.92k|        }
 2100|  88.8M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 2101|  88.8M|        uint8_t info = get_additional_information(c.value);
 2102|  88.8M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  89.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 627, False: 88.8M]
  |  |  |  Branch (79:50): [True: 195k, False: 88.6M]
  |  |  |  Branch (79:50): [True: 627, False: 194k]
  |  |  ------------------
  ------------------
 2103|    627|        {
 2104|    627|            ec = cbor_errc::reserved_additional_info;
 2105|    627|            more_ = false;
 2106|    627|            return;
 2107|    627|        }
 2108|       |
 2109|  90.4M|        while (major_type == jsoncons::cbor::detail::cbor_major_type::semantic_tag)
  ------------------
  |  Branch (2109:16): [True: 1.58M, False: 88.8M]
  ------------------
 2110|  1.58M|        {
 2111|  1.58M|            source_.ignore(1);
 2112|  1.58M|            uint64_t val = read_unsigned_integer(info, ec);
 2113|  1.58M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.58M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 409, False: 1.58M]
  |  |  ------------------
  ------------------
 2114|    409|            {
 2115|    409|                return;
 2116|    409|            }
 2117|  1.58M|            switch(val)
 2118|  1.58M|            {
 2119|  68.9k|                case 25: // stringref
  ------------------
  |  Branch (2119:17): [True: 68.9k, False: 1.51M]
  ------------------
 2120|  68.9k|                    other_tags_[stringref_tag] = true;
 2121|  68.9k|                    break;
 2122|  24.2k|                case 256: // stringref-namespace
  ------------------
  |  Branch (2122:17): [True: 24.2k, False: 1.55M]
  ------------------
 2123|  24.2k|                    other_tags_[stringref_namespace_tag] = true;
 2124|  24.2k|                    break;
 2125|  1.48M|                default:
  ------------------
  |  Branch (2125:17): [True: 1.48M, False: 93.2k]
  ------------------
 2126|  1.48M|                    other_tags_[item_tag] = true;
 2127|  1.48M|                    raw_tag_ = val;
 2128|  1.48M|                    break;
 2129|  1.58M|            }
 2130|  1.58M|            c = source_.peek();
 2131|  1.58M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  1.58M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 860, False: 1.58M]
  |  |  ------------------
  ------------------
 2132|    860|            {
 2133|    860|                ec = cbor_errc::unexpected_eof;
 2134|    860|                more_ = false;
 2135|    860|                return;
 2136|    860|            }
 2137|  1.58M|            major_type = get_major_type(c.value);
 2138|  1.58M|        }
 2139|  88.8M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE14get_major_typeEh:
 2078|   189M|    {
 2079|   189M|        static constexpr uint8_t major_type_shift = 0x05;
 2080|   189M|        uint8_t value = type >> major_type_shift;
 2081|   189M|        return static_cast<jsoncons::cbor::detail::cbor_major_type>(value);
 2082|   189M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE26get_additional_informationEh:
 2085|   202M|    {
 2086|   202M|        static constexpr uint8_t additional_information_mask = (1U << 5) - 1;
 2087|   202M|        uint8_t value = type & additional_information_mask;
 2088|   202M|        return value;
 2089|   202M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE21read_unsigned_integerEhRNS4_10error_codeE:
 1611|  91.3M|    {
 1612|  91.3M|        switch (info)
 1613|  91.3M|        {
 1614|  90.4M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  90.4M|    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: 13.6M, False: 77.6M]
  |  |  |  Branch (18:20): [True: 624k, False: 90.7M]
  |  |  |  Branch (18:30): [True: 225k, False: 91.1M]
  |  |  |  Branch (18:40): [True: 395k, False: 90.9M]
  |  |  |  Branch (18:50): [True: 4.01M, False: 87.3M]
  |  |  |  Branch (18:60): [True: 136k, False: 91.2M]
  |  |  |  Branch (18:70): [True: 187k, False: 91.1M]
  |  |  |  Branch (18:80): [True: 156k, False: 91.2M]
  |  |  |  Branch (18:90): [True: 35.1k, False: 91.3M]
  |  |  |  Branch (18:100): [True: 425k, False: 90.9M]
  |  |  |  Branch (18:110): [True: 9.94M, False: 81.4M]
  |  |  |  Branch (18:120): [True: 34.8k, False: 91.3M]
  |  |  |  Branch (18:130): [True: 100k, False: 91.2M]
  |  |  |  Branch (18:140): [True: 81.9k, False: 91.3M]
  |  |  |  Branch (18:150): [True: 144k, False: 91.2M]
  |  |  |  Branch (18:160): [True: 177k, False: 91.2M]
  |  |  |  Branch (18:170): [True: 348k, False: 91.0M]
  |  |  |  Branch (18:180): [True: 128k, False: 91.2M]
  |  |  |  Branch (18:190): [True: 34.5k, False: 91.3M]
  |  |  |  Branch (18:200): [True: 85.7k, False: 91.3M]
  |  |  |  Branch (18:210): [True: 63.7k, False: 91.3M]
  |  |  |  Branch (18:220): [True: 42.3k, False: 91.3M]
  |  |  ------------------
  ------------------
  |  Branch (1614:13): [True: 59.2M, False: 32.1M]
  ------------------
 1615|  90.4M|            {
 1616|  90.4M|                return info;
 1617|  1.84G|            }
 1618|   652k|            case 0x18: // Unsigned integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1618:13): [True: 652k, False: 90.7M]
  ------------------
 1619|   652k|            {
 1620|   652k|                uint8_t b;
 1621|   652k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1621:21): [True: 321, False: 652k]
  ------------------
 1622|    321|                {
 1623|    321|                    ec = cbor_errc::unexpected_eof;
 1624|    321|                    return uint64_t{};
 1625|    321|                }
 1626|   652k|                return b;
 1627|   652k|            }
 1628|   278k|            case 0x19: // Unsigned integer (two-byte uint16_t follows)
  ------------------
  |  Branch (1628:13): [True: 278k, False: 91.1M]
  ------------------
 1629|   278k|            {
 1630|   278k|                uint8_t buf[sizeof(uint16_t)];
 1631|   278k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1631:21): [True: 256, False: 277k]
  ------------------
 1632|    256|                {
 1633|    256|                    ec = cbor_errc::unexpected_eof;
 1634|    256|                    return uint64_t{};
 1635|    256|                }
 1636|   277k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1637|   277k|                return u;
 1638|   278k|            }
 1639|  12.5k|            case 0x1a: // Unsigned integer (four-byte uint32_t follows)
  ------------------
  |  Branch (1639:13): [True: 12.5k, False: 91.3M]
  ------------------
 1640|  12.5k|            {
 1641|  12.5k|                uint8_t buf[sizeof(uint32_t)];
 1642|  12.5k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1642:21): [True: 115, False: 12.4k]
  ------------------
 1643|    115|                {
 1644|    115|                    ec = cbor_errc::unexpected_eof;
 1645|    115|                    return uint64_t{};
 1646|    115|                }
 1647|  12.4k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1648|  12.4k|                return u;
 1649|  12.5k|            }
 1650|  25.8k|            case 0x1b: // Unsigned integer (eight-byte uint64_t follows)
  ------------------
  |  Branch (1650:13): [True: 25.8k, False: 91.3M]
  ------------------
 1651|  25.8k|            {
 1652|  25.8k|                uint8_t buf[sizeof(uint64_t)];
 1653|  25.8k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1653:21): [True: 349, False: 25.4k]
  ------------------
 1654|    349|                {
 1655|    349|                    ec = cbor_errc::unexpected_eof;
 1656|    349|                    return uint64_t{};
 1657|    349|                }
 1658|  25.4k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1659|  25.4k|                return u;
 1660|  25.8k|            }
 1661|    281|            default:
  ------------------
  |  Branch (1661:13): [True: 281, False: 91.3M]
  ------------------
 1662|    281|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (1662:22): [True: 221, False: 60]
  ------------------
 1663|    281|                return uint64_t{};
 1664|  91.3M|        }
 1665|  91.3M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13handle_stringERNS_21basic_generic_visitorIcEERKNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERNS4_10error_codeE:
 2142|   402k|    {
 2143|   402k|        semantic_tag tag = semantic_tag::none;
 2144|   402k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2144:13): [True: 6.73k, False: 395k]
  ------------------
 2145|  6.73k|        {
 2146|  6.73k|            switch (raw_tag_)
 2147|  6.73k|            {
 2148|    386|                case 0:
  ------------------
  |  Branch (2148:17): [True: 386, False: 6.35k]
  ------------------
 2149|    386|                    tag = semantic_tag::datetime;
 2150|    386|                    break;
 2151|    372|                case 32:
  ------------------
  |  Branch (2151:17): [True: 372, False: 6.36k]
  ------------------
 2152|    372|                    tag = semantic_tag::uri;
 2153|    372|                    break;
 2154|    358|                case 33:
  ------------------
  |  Branch (2154:17): [True: 358, False: 6.38k]
  ------------------
 2155|    358|                    tag = semantic_tag::base64url;
 2156|    358|                    break;
 2157|  1.20k|                case 34:
  ------------------
  |  Branch (2157:17): [True: 1.20k, False: 5.53k]
  ------------------
 2158|  1.20k|                    tag = semantic_tag::base64;
 2159|  1.20k|                    break;
 2160|  4.41k|                default:
  ------------------
  |  Branch (2160:17): [True: 4.41k, False: 2.32k]
  ------------------
 2161|  4.41k|                    break;
 2162|  6.73k|            }
 2163|  6.73k|            other_tags_[item_tag] = false;
 2164|  6.73k|        }
 2165|   402k|        visitor.string_value(v, tag, *this, ec);
 2166|   402k|        more_ = !cursor_mode_;
 2167|   402k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_bufferC2ERKNS_16byte_string_viewE:
  175|  58.5k|            : bytes(b)
  176|  58.5k|        {
  177|  58.5k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE16read_byte_stringINS7_28read_byte_string_from_bufferEEEvT_RNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 2184|  58.5k|    {
 2185|  58.5k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2185:13): [True: 49.2k, False: 9.32k]
  ------------------
 2186|  49.2k|        {
 2187|  49.2k|            switch (raw_tag_)
 2188|  49.2k|            {
 2189|  4.57k|                case 0x2:
  ------------------
  |  Branch (2189:17): [True: 4.57k, False: 44.6k]
  ------------------
 2190|  4.57k|                {
 2191|  4.57k|                    auto bytes = read.view(ec);
 2192|  4.57k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.57k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.57k]
  |  |  ------------------
  ------------------
 2193|      0|                    {
 2194|      0|                        more_ = false;
 2195|      0|                        return;
 2196|      0|                    }
 2197|  4.57k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2198|  4.57k|                    text_buffer_.clear();
 2199|  4.57k|                    b.append_to_buffer(text_buffer_);
 2200|  4.57k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2201|  4.57k|                    more_ = !cursor_mode_;
 2202|  4.57k|                    break;
 2203|  4.57k|                }
 2204|    948|                case 0x3:
  ------------------
  |  Branch (2204:17): [True: 948, False: 48.3k]
  ------------------
 2205|    948|                {
 2206|    948|                    auto bytes = read.view(ec);
 2207|    948|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    948|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 948]
  |  |  ------------------
  ------------------
 2208|      0|                    {
 2209|      0|                        more_ = false;
 2210|      0|                        return;
 2211|      0|                    }
 2212|    948|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2213|    948|                    b = -1 - b;
 2214|    948|                    text_buffer_.clear();
 2215|    948|                    b.append_to_buffer(text_buffer_);
 2216|    948|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2217|    948|                    more_ = !cursor_mode_;
 2218|    948|                    break;
 2219|    948|                }
 2220|    320|                case 0x15:
  ------------------
  |  Branch (2220:17): [True: 320, False: 48.9k]
  ------------------
 2221|    728|                case 0x16:
  ------------------
  |  Branch (2221:17): [True: 408, False: 48.8k]
  ------------------
 2222|  1.05k|                case 0x17:
  ------------------
  |  Branch (2222:17): [True: 330, False: 48.9k]
  ------------------
 2223|  1.05k|                {
 2224|  1.05k|                    auto bytes = read.view(ec);
 2225|  1.05k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.05k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.05k]
  |  |  ------------------
  ------------------
 2226|      0|                    {
 2227|      0|                        more_ = false;
 2228|      0|                        return;
 2229|      0|                    }
 2230|  1.05k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2230:46): [True: 320, False: 738]
  ------------------
 2231|  1.05k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2231:27): [True: 408, False: 330]
  ------------------
 2232|    738|                        : semantic_tag::base16;
 2233|  1.05k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2234|  1.05k|                    more_ = !cursor_mode_;
 2235|  1.05k|                    break;
 2236|  1.05k|                }
 2237|  1.15k|                case 0x40:
  ------------------
  |  Branch (2237:17): [True: 1.15k, False: 48.0k]
  ------------------
 2238|  1.15k|                {
 2239|  1.15k|                    array_tag_ = typed_array_tags::uint8;
 2240|  1.15k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2241|  1.15k|                    read(array_buffer, ec);
 2242|  1.15k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.15k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.15k]
  |  |  ------------------
  ------------------
 2243|      0|                    {
 2244|      0|                        more_ = false;
 2245|      0|                        return;
 2246|      0|                    }
 2247|  1.15k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2248|  1.15k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2248:25): [True: 575, False: 583]
  |  Branch (2248:42): [True: 0, False: 575]
  ------------------
 2249|      0|                    {
 2250|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2250:29): [True: 0, False: 0]
  ------------------
 2251|      0|                        {
 2252|      0|                            ec = cbor_errc::bad_extents;
 2253|      0|                            more_ = false;
 2254|      0|                            return;
 2255|      0|                        }
 2256|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2257|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2258|      0|                        typed_array_stack_.push_back(iter);
 2259|      0|                        iter->next(visitor, *this, ec);
 2260|      0|                    }
 2261|  1.15k|                    else
 2262|  1.15k|                    {
 2263|  1.15k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2264|  1.15k|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2265|  1.15k|                        typed_array_stack_.push_back(iter);
 2266|  1.15k|                        iter->next(visitor, *this, ec);
 2267|  1.15k|                    }
 2268|  1.15k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2269|  1.15k|                    more_ = !cursor_mode_;
 2270|  1.15k|                    break;
 2271|  1.15k|                }
 2272|    855|                case 0x44:
  ------------------
  |  Branch (2272:17): [True: 855, False: 48.3k]
  ------------------
 2273|    855|                {
 2274|    855|                    array_tag_ = typed_array_tags::uint8;
 2275|    855|                    typed_array_tag_ = semantic_tag::clamped;
 2276|    855|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2277|    855|                    read(array_buffer, ec);
 2278|    855|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    855|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 855]
  |  |  ------------------
  ------------------
 2279|      0|                    {
 2280|      0|                        more_ = false;
 2281|      0|                        return;
 2282|      0|                    }
 2283|    855|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2284|    855|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2284:25): [True: 418, False: 437]
  |  Branch (2284:42): [True: 0, False: 418]
  ------------------
 2285|      0|                    {
 2286|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2286:29): [True: 0, False: 0]
  ------------------
 2287|      0|                        {
 2288|      0|                            ec = cbor_errc::bad_extents;
 2289|      0|                            more_ = false;
 2290|      0|                            return;
 2291|      0|                        }
 2292|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2293|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2294|      0|                        typed_array_stack_.push_back(iter);
 2295|      0|                        iter->next(visitor, *this, ec);
 2296|      0|                    }
 2297|    855|                    else
 2298|    855|                    {
 2299|    855|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2300|    855|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2301|    855|                        typed_array_stack_.push_back(iter);
 2302|    855|                        iter->next(visitor, *this, ec);
 2303|    855|                    }
 2304|    855|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2305|    855|                    more_ = !cursor_mode_;
 2306|    855|                    break;
 2307|    855|                }
 2308|  2.03k|                case 0x41:
  ------------------
  |  Branch (2308:17): [True: 2.03k, False: 47.2k]
  ------------------
 2309|  3.98k|                case 0x45:
  ------------------
  |  Branch (2309:17): [True: 1.95k, False: 47.3k]
  ------------------
 2310|  3.98k|                {
 2311|  3.98k|                    array_tag_ = typed_array_tags::uint16;
 2312|  3.98k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2313|  3.98k|                    read(array_buffer, ec);
 2314|  3.98k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.98k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.98k]
  |  |  ------------------
  ------------------
 2315|      0|                    {
 2316|      0|                        more_ = false;
 2317|      0|                        return;
 2318|      0|                    }
 2319|  3.98k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2320|  3.98k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2321|  3.98k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2322|  3.98k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2322:25): [True: 2.03k, False: 1.95k]
  ------------------
 2323|  2.03k|                    {
 2324|  30.0k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2324:49): [True: 28.0k, False: 2.03k]
  ------------------
 2325|  28.0k|                        {
 2326|  28.0k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2327|  28.0k|                        }
 2328|  2.03k|                    }
 2329|  3.98k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2329:25): [True: 1.95k, False: 2.03k]
  |  Branch (2329:42): [True: 0, False: 1.95k]
  ------------------
 2330|      0|                    {
 2331|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2331:29): [True: 0, False: 0]
  ------------------
 2332|      0|                        {
 2333|      0|                            ec = cbor_errc::bad_extents;
 2334|      0|                            more_ = false;
 2335|      0|                            return;
 2336|      0|                        }
 2337|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2338|      0|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2339|      0|                        typed_array_stack_.push_back(iter);
 2340|      0|                        iter->next(visitor, *this, ec);
 2341|      0|                    }
 2342|  3.98k|                    else
 2343|  3.98k|                    {
 2344|  3.98k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2345|  3.98k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2346|  3.98k|                        typed_array_stack_.push_back(iter);
 2347|  3.98k|                        iter->next(visitor, *this, ec);
 2348|  3.98k|                    }
 2349|  3.98k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2350|  3.98k|                    more_ = !cursor_mode_;
 2351|  3.98k|                    break;
 2352|  3.98k|                }
 2353|  1.18k|                case 0x42:
  ------------------
  |  Branch (2353:17): [True: 1.18k, False: 48.0k]
  ------------------
 2354|  2.04k|                case 0x46:
  ------------------
  |  Branch (2354:17): [True: 856, False: 48.3k]
  ------------------
 2355|  2.04k|                {
 2356|  2.04k|                    array_tag_ = typed_array_tags::uint32;
 2357|  2.04k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2358|  2.04k|                    read(array_buffer, ec);
 2359|  2.04k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.04k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.04k]
  |  |  ------------------
  ------------------
 2360|      0|                    {
 2361|      0|                        more_ = false;
 2362|      0|                        return;
 2363|      0|                    }
 2364|  2.04k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2365|  2.04k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2366|  2.04k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2367|  2.04k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2367:25): [True: 1.18k, False: 856]
  ------------------
 2368|  1.18k|                    {
 2369|  8.08k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2369:49): [True: 6.90k, False: 1.18k]
  ------------------
 2370|  6.90k|                        {
 2371|  6.90k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2372|  6.90k|                        }
 2373|  1.18k|                    }
 2374|  2.04k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2374:25): [True: 1.00k, False: 1.04k]
  |  Branch (2374:42): [True: 0, False: 1.00k]
  ------------------
 2375|      0|                    {
 2376|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2376:29): [True: 0, False: 0]
  ------------------
 2377|      0|                        {
 2378|      0|                            ec = cbor_errc::bad_extents;
 2379|      0|                            more_ = false;
 2380|      0|                            return;
 2381|      0|                        }
 2382|      0|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2383|      0|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2384|      0|                        typed_array_stack_.push_back(iter);
 2385|      0|                        iter->next(visitor, *this, ec);
 2386|      0|                    }
 2387|  2.04k|                    else
 2388|  2.04k|                    {
 2389|  2.04k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2390|  2.04k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2391|  2.04k|                        typed_array_stack_.push_back(iter);
 2392|  2.04k|                        iter->next(visitor, *this, ec);
 2393|  2.04k|                    }
 2394|  2.04k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2395|  2.04k|                    more_ = !cursor_mode_;
 2396|  2.04k|                    break;
 2397|  2.04k|                }
 2398|  2.72k|                case 0x43:
  ------------------
  |  Branch (2398:17): [True: 2.72k, False: 46.5k]
  ------------------
 2399|  8.62k|                case 0x47:
  ------------------
  |  Branch (2399:17): [True: 5.89k, False: 43.3k]
  ------------------
 2400|  8.62k|                {
 2401|  8.62k|                    array_tag_ = typed_array_tags::uint64;
 2402|  8.62k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2403|  8.62k|                    read(array_buffer, ec);
 2404|  8.62k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.62k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.62k]
  |  |  ------------------
  ------------------
 2405|      0|                    {
 2406|      0|                        more_ = false;
 2407|      0|                        return;
 2408|      0|                    }
 2409|  8.62k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2410|  8.62k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2411|  8.62k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2412|  8.62k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2412:25): [True: 2.72k, False: 5.89k]
  ------------------
 2413|  2.72k|                    {
 2414|  10.7k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2414:49): [True: 8.05k, False: 2.72k]
  ------------------
 2415|  8.05k|                        {
 2416|  8.05k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2417|  8.05k|                        }
 2418|  2.72k|                    }
 2419|  8.62k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2419:25): [True: 4.28k, False: 4.33k]
  |  Branch (2419:42): [True: 0, False: 4.28k]
  ------------------
 2420|      0|                    {
 2421|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2421:29): [True: 0, False: 0]
  ------------------
 2422|      0|                        {
 2423|      0|                            ec = cbor_errc::bad_extents;
 2424|      0|                            more_ = false;
 2425|      0|                            return;
 2426|      0|                        }
 2427|      0|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2428|      0|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2429|      0|                        typed_array_stack_.push_back(iter);
 2430|      0|                        iter->next(visitor, *this, ec);
 2431|      0|                    }
 2432|  8.62k|                    else
 2433|  8.62k|                    {
 2434|  8.62k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2435|  8.62k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2436|  8.62k|                        typed_array_stack_.push_back(iter);
 2437|  8.62k|                        iter->next(visitor, *this, ec);
 2438|  8.62k|                    }
 2439|  8.62k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2440|  8.62k|                    more_ = !cursor_mode_;
 2441|  8.62k|                    break;
 2442|  8.62k|                }
 2443|  2.00k|                case 0x48:
  ------------------
  |  Branch (2443:17): [True: 2.00k, False: 47.2k]
  ------------------
 2444|  2.00k|                {
 2445|  2.00k|                    array_tag_ = typed_array_tags::int8;
 2446|  2.00k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2447|  2.00k|                    read(array_buffer, ec);
 2448|  2.00k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.00k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.00k]
  |  |  ------------------
  ------------------
 2449|      0|                    {
 2450|      0|                        more_ = false;
 2451|      0|                        return;
 2452|      0|                    }
 2453|  2.00k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2454|  2.00k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2454:25): [True: 998, False: 1.00k]
  |  Branch (2454:42): [True: 0, False: 998]
  ------------------
 2455|      0|                    {
 2456|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2456:29): [True: 0, False: 0]
  ------------------
 2457|      0|                        {
 2458|      0|                            ec = cbor_errc::bad_extents;
 2459|      0|                            more_ = false;
 2460|      0|                            return;
 2461|      0|                        }
 2462|      0|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2463|      0|                            typed_array_tags::int8, extents_, order_, alloc_);
 2464|      0|                        typed_array_stack_.push_back(iter);
 2465|      0|                        iter->next(visitor, *this, ec);
 2466|      0|                    }
 2467|  2.00k|                    else
 2468|  2.00k|                    {
 2469|  2.00k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2470|  2.00k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2471|  2.00k|                        typed_array_stack_.push_back(iter);
 2472|  2.00k|                        iter->next(visitor, *this, ec);
 2473|  2.00k|                    }
 2474|  2.00k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2475|  2.00k|                    more_ = !cursor_mode_;
 2476|  2.00k|                    break;
 2477|  2.00k|                }
 2478|    594|                case 0x49:
  ------------------
  |  Branch (2478:17): [True: 594, False: 48.6k]
  ------------------
 2479|  1.66k|                case 0x4d:
  ------------------
  |  Branch (2479:17): [True: 1.06k, False: 48.1k]
  ------------------
 2480|  1.66k|                {
 2481|  1.66k|                    array_tag_ = typed_array_tags::int16;
 2482|  1.66k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2483|  1.66k|                    read(array_buffer, ec);
 2484|  1.66k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.66k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.66k]
  |  |  ------------------
  ------------------
 2485|      0|                    {
 2486|      0|                        more_ = false;
 2487|      0|                        return;
 2488|      0|                    }
 2489|  1.66k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2490|  1.66k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2491|  1.66k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2492|  1.66k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2492:25): [True: 594, False: 1.06k]
  ------------------
 2493|    594|                    {
 2494|  4.23k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2494:49): [True: 3.64k, False: 594]
  ------------------
 2495|  3.64k|                        {
 2496|  3.64k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2497|  3.64k|                        }
 2498|    594|                    }
 2499|  1.66k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2499:25): [True: 821, False: 841]
  |  Branch (2499:42): [True: 0, False: 821]
  ------------------
 2500|      0|                    {
 2501|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2501:29): [True: 0, False: 0]
  ------------------
 2502|      0|                        {
 2503|      0|                            ec = cbor_errc::bad_extents;
 2504|      0|                            more_ = false;
 2505|      0|                            return;
 2506|      0|                        }
 2507|      0|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2508|      0|                            typed_array_tags::int16, extents_, order_, alloc_);
 2509|      0|                        typed_array_stack_.push_back(iter);
 2510|      0|                        iter->next(visitor, *this, ec);
 2511|      0|                    }
 2512|  1.66k|                    else
 2513|  1.66k|                    {
 2514|  1.66k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2515|  1.66k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2516|  1.66k|                        typed_array_stack_.push_back(iter);
 2517|  1.66k|                        iter->next(visitor, *this, ec);
 2518|  1.66k|                    }
 2519|  1.66k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2520|  1.66k|                    more_ = !cursor_mode_;
 2521|  1.66k|                    break;
 2522|  1.66k|                }
 2523|  3.74k|                case 0x4a:
  ------------------
  |  Branch (2523:17): [True: 3.74k, False: 45.5k]
  ------------------
 2524|  4.33k|                case 0x4e:
  ------------------
  |  Branch (2524:17): [True: 590, False: 48.6k]
  ------------------
 2525|  4.33k|                {
 2526|  4.33k|                    array_tag_ = typed_array_tags::int32;
 2527|  4.33k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2528|  4.33k|                    read(array_buffer, ec);
 2529|  4.33k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.33k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.33k]
  |  |  ------------------
  ------------------
 2530|      0|                    {
 2531|      0|                        more_ = false;
 2532|      0|                        return;
 2533|      0|                    }
 2534|  4.33k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2535|  4.33k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2536|  4.33k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2537|  4.33k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2537:25): [True: 3.74k, False: 590]
  ------------------
 2538|  3.74k|                    {
 2539|  49.5k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2539:49): [True: 45.7k, False: 3.74k]
  ------------------
 2540|  45.7k|                        {
 2541|  45.7k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2542|  45.7k|                        }
 2543|  3.74k|                    }
 2544|  4.33k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2544:25): [True: 2.14k, False: 2.19k]
  |  Branch (2544:42): [True: 0, False: 2.14k]
  ------------------
 2545|      0|                    {
 2546|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2546:29): [True: 0, False: 0]
  ------------------
 2547|      0|                        {
 2548|      0|                            ec = cbor_errc::bad_extents;
 2549|      0|                            more_ = false;
 2550|      0|                            return;
 2551|      0|                        }
 2552|      0|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2553|      0|                            typed_array_tags::int32, extents_, order_, alloc_);
 2554|      0|                        typed_array_stack_.push_back(iter);
 2555|      0|                        iter->next(visitor, *this, ec);
 2556|      0|                    }
 2557|  4.33k|                    else
 2558|  4.33k|                    {
 2559|  4.33k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2560|  4.33k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2561|  4.33k|                        typed_array_stack_.push_back(iter);
 2562|  4.33k|                        iter->next(visitor, *this, ec);
 2563|  4.33k|                    }
 2564|  4.33k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2565|  4.33k|                    more_ = !cursor_mode_;
 2566|  4.33k|                    break;
 2567|  4.33k|                }
 2568|  1.35k|                case 0x4b:
  ------------------
  |  Branch (2568:17): [True: 1.35k, False: 47.8k]
  ------------------
 2569|  1.93k|                case 0x4f:
  ------------------
  |  Branch (2569:17): [True: 579, False: 48.6k]
  ------------------
 2570|  1.93k|                {
 2571|  1.93k|                    array_tag_ = typed_array_tags::int64;
 2572|  1.93k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2573|  1.93k|                    read(array_buffer, ec);
 2574|  1.93k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.93k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.93k]
  |  |  ------------------
  ------------------
 2575|      0|                    {
 2576|      0|                        more_ = false;
 2577|      0|                        return;
 2578|      0|                    }
 2579|  1.93k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2580|  1.93k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2581|  1.93k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2582|  1.93k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2582:25): [True: 1.35k, False: 579]
  ------------------
 2583|  1.35k|                    {
 2584|  4.52k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2584:49): [True: 3.17k, False: 1.35k]
  ------------------
 2585|  3.17k|                        {
 2586|  3.17k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2587|  3.17k|                        }
 2588|  1.35k|                    }
 2589|  1.93k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2589:25): [True: 944, False: 988]
  |  Branch (2589:42): [True: 0, False: 944]
  ------------------
 2590|      0|                    {
 2591|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2591:29): [True: 0, False: 0]
  ------------------
 2592|      0|                        {
 2593|      0|                            ec = cbor_errc::bad_extents;
 2594|      0|                            more_ = false;
 2595|      0|                            return;
 2596|      0|                        }
 2597|      0|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2598|      0|                            typed_array_tags::int64, extents_, order_, alloc_);
 2599|      0|                        typed_array_stack_.push_back(iter);
 2600|      0|                        iter->next(visitor, *this, ec);
 2601|      0|                    }
 2602|  1.93k|                    else
 2603|  1.93k|                    {
 2604|  1.93k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2605|  1.93k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2606|  1.93k|                        typed_array_stack_.push_back(iter);
 2607|  1.93k|                        iter->next(visitor, *this, ec);
 2608|  1.93k|                    }
 2609|  1.93k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2610|  1.93k|                    more_ = !cursor_mode_;
 2611|  1.93k|                    break;
 2612|  1.93k|                }
 2613|  3.70k|                case 0x50:
  ------------------
  |  Branch (2613:17): [True: 3.70k, False: 45.5k]
  ------------------
 2614|  5.40k|                case 0x54:
  ------------------
  |  Branch (2614:17): [True: 1.69k, False: 47.5k]
  ------------------
 2615|  5.40k|                {
 2616|  5.40k|                    array_tag_ = typed_array_tags::half_float;
 2617|  5.40k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2618|  5.40k|                    read(array_buffer, ec);
 2619|  5.40k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.40k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.40k]
  |  |  ------------------
  ------------------
 2620|      0|                    {
 2621|      0|                        more_ = false;
 2622|      0|                        return;
 2623|      0|                    }
 2624|  5.40k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2625|  5.40k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2626|  5.40k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2627|  5.40k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2627:25): [True: 3.70k, False: 1.69k]
  ------------------
 2628|  3.70k|                    {
 2629|   535k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2629:49): [True: 532k, False: 3.70k]
  ------------------
 2630|   532k|                        {
 2631|   532k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2632|   532k|                        }
 2633|  3.70k|                    }
 2634|  5.40k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2634:25): [True: 2.68k, False: 2.71k]
  |  Branch (2634:42): [True: 0, False: 2.68k]
  ------------------
 2635|      0|                    {
 2636|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2636:29): [True: 0, False: 0]
  ------------------
 2637|      0|                        {
 2638|      0|                            ec = cbor_errc::bad_extents;
 2639|      0|                            more_ = false;
 2640|      0|                            return;
 2641|      0|                        }
 2642|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2643|      0|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2644|      0|                        typed_array_stack_.push_back(iter);
 2645|      0|                        iter->next(visitor, *this, ec);
 2646|      0|                    }
 2647|  5.40k|                    else
 2648|  5.40k|                    {
 2649|  5.40k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2650|  5.40k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2651|  5.40k|                        typed_array_stack_.push_back(iter);
 2652|  5.40k|                        iter->next(visitor, *this, ec);
 2653|  5.40k|                    }
 2654|  5.40k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2655|  5.40k|                    more_ = !cursor_mode_;
 2656|  5.40k|                    break;
 2657|  5.40k|                }
 2658|  5.24k|                case 0x51:
  ------------------
  |  Branch (2658:17): [True: 5.24k, False: 44.0k]
  ------------------
 2659|  5.64k|                case 0x55:
  ------------------
  |  Branch (2659:17): [True: 401, False: 48.8k]
  ------------------
 2660|  5.64k|                {
 2661|  5.64k|                    array_tag_ = typed_array_tags::float32;
 2662|  5.64k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2663|  5.64k|                    read(array_buffer, ec);
 2664|  5.64k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.64k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.64k]
  |  |  ------------------
  ------------------
 2665|      0|                    {
 2666|      0|                        more_ = false;
 2667|      0|                        return;
 2668|      0|                    }
 2669|  5.64k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2670|  5.64k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2671|  5.64k|                    auto ta = typed_array_cast<float>(array_buffer);
 2672|  5.64k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2672:25): [True: 5.24k, False: 401]
  ------------------
 2673|  5.24k|                    {
 2674|  1.07M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2674:49): [True: 1.06M, False: 5.24k]
  ------------------
 2675|  1.06M|                        {
 2676|  1.06M|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2677|  1.06M|                        }
 2678|  5.24k|                    }
 2679|  5.64k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2679:25): [True: 2.80k, False: 2.84k]
  |  Branch (2679:42): [True: 0, False: 2.80k]
  ------------------
 2680|      0|                    {
 2681|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2681:29): [True: 0, False: 0]
  ------------------
 2682|      0|                        {
 2683|      0|                            ec = cbor_errc::bad_extents;
 2684|      0|                            more_ = false;
 2685|      0|                            return;
 2686|      0|                        }
 2687|      0|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2688|      0|                            typed_array_tags::float32, extents_, order_, alloc_);
 2689|      0|                        typed_array_stack_.push_back(iter);
 2690|      0|                        iter->next(visitor, *this, ec);
 2691|      0|                    }
 2692|  5.64k|                    else
 2693|  5.64k|                    {
 2694|  5.64k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2695|  5.64k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2696|  5.64k|                        typed_array_stack_.push_back(iter);
 2697|  5.64k|                        iter->next(visitor, *this, ec);
 2698|  5.64k|                    }
 2699|  5.64k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2700|  5.64k|                    more_ = !cursor_mode_;
 2701|  5.64k|                    break;
 2702|  5.64k|                }
 2703|  2.03k|                case 0x52:
  ------------------
  |  Branch (2703:17): [True: 2.03k, False: 47.2k]
  ------------------
 2704|  3.51k|                case 0x56:
  ------------------
  |  Branch (2704:17): [True: 1.47k, False: 47.7k]
  ------------------
 2705|  3.51k|                {
 2706|  3.51k|                    array_tag_ = typed_array_tags::float64;
 2707|  3.51k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2708|  3.51k|                    read(array_buffer, ec);
 2709|  3.51k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.51k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.51k]
  |  |  ------------------
  ------------------
 2710|      0|                    {
 2711|      0|                        more_ = false;
 2712|      0|                        return;
 2713|      0|                    }
 2714|  3.51k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2715|  3.51k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2716|  3.51k|                    auto ta = typed_array_cast<double>(array_buffer);
 2717|  3.51k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2717:25): [True: 2.03k, False: 1.47k]
  ------------------
 2718|  2.03k|                    {
 2719|  13.8k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2719:49): [True: 11.8k, False: 2.03k]
  ------------------
 2720|  11.8k|                        {
 2721|  11.8k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2722|  11.8k|                        }
 2723|  2.03k|                    }
 2724|  3.51k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2724:25): [True: 1.72k, False: 1.78k]
  |  Branch (2724:42): [True: 0, False: 1.72k]
  ------------------
 2725|      0|                    {
 2726|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2726:29): [True: 0, False: 0]
  ------------------
 2727|      0|                        {
 2728|      0|                            ec = cbor_errc::bad_extents;
 2729|      0|                            more_ = false;
 2730|      0|                            return;
 2731|      0|                        }
 2732|      0|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2733|      0|                            typed_array_tags::float64, extents_, order_, alloc_);
 2734|      0|                        typed_array_stack_.push_back(iter);
 2735|      0|                        iter->next(visitor, *this, ec);
 2736|      0|                    }
 2737|  3.51k|                    else
 2738|  3.51k|                    {
 2739|  3.51k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2740|  3.51k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2741|  3.51k|                        typed_array_stack_.push_back(iter);
 2742|  3.51k|                        iter->next(visitor, *this, ec);
 2743|  3.51k|                    }
 2744|  3.51k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2745|  3.51k|                    more_ = !cursor_mode_;
 2746|  3.51k|                    break;
 2747|  3.51k|                }
 2748|  1.50k|                default:
  ------------------
  |  Branch (2748:17): [True: 1.50k, False: 47.7k]
  ------------------
 2749|  1.50k|                {
 2750|  1.50k|                    auto bytes = read.view(ec);
 2751|  1.50k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.50k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.50k]
  |  |  ------------------
  ------------------
 2752|      0|                    {
 2753|      0|                        more_ = false;
 2754|      0|                        return;
 2755|      0|                    }
 2756|  1.50k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2757|  1.50k|                    more_ = !cursor_mode_;
 2758|  1.50k|                    break;
 2759|  1.50k|                }
 2760|  49.2k|            }
 2761|  49.2k|            other_tags_[item_tag] = false;
 2762|  49.2k|        }
 2763|  9.32k|        else
 2764|  9.32k|        {
 2765|  9.32k|            auto bytes = read.view(ec);
 2766|  9.32k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.32k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 9.32k]
  |  |  ------------------
  ------------------
 2767|      0|            {
 2768|      0|                return;
 2769|      0|            }
 2770|  9.32k|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2771|  9.32k|            more_ = !cursor_mode_;
 2772|  9.32k|        }
 2773|  58.5k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_buffer4viewERNS4_10error_codeE:
  190|  17.4k|        {
  191|  17.4k|            return bytes;
  192|  17.4k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_bufferclINS4_6vectorIhNS5_IhEEEEEEvRT_RNS4_10error_codeE:
  180|  41.1k|        {
  181|  41.1k|            c.clear();
  182|  41.1k|            c.reserve(bytes.size());
  183|  41.1k|            for (auto b : bytes)
  ------------------
  |  Branch (183:25): [True: 8.90M, False: 41.1k]
  ------------------
  184|  8.90M|            {
  185|  8.90M|                c.push_back(b);
  186|  8.90M|            }
  187|  41.1k|        }
_ZN8jsoncons4cbor11parse_stateC2ENS0_10parse_modeEmb:
   52|  49.7M|        : mode(mode), length(length), pop_stringref_map_stack(pop_stringref_map_stack)
   53|  49.7M|    {
   54|  49.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE26get_typed_array_endiannessEh:
 2170|   168k|    {
 2171|   168k|        return ((tag & detail::cbor_array_tags_e_mask) >> detail::cbor_array_tags_e_shift) == 0 ? jsoncons::endian::big : jsoncons::endian::little; 
  ------------------
  |  Branch (2171:16): [True: 82.4k, False: 86.2k]
  ------------------
 2172|   168k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE21read_negative_integerEhRNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 1506|  9.55M|    {
 1507|  9.55M|        semantic_tag tag = semantic_tag::none;
 1508|  9.55M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (1508:13): [True: 29.5k, False: 9.52M]
  ------------------
 1509|  29.5k|        {
 1510|  29.5k|            if (raw_tag_ == 1)
  ------------------
  |  Branch (1510:17): [True: 729, False: 28.7k]
  ------------------
 1511|    729|            {
 1512|    729|                tag = semantic_tag::epoch_second;
 1513|    729|            }
 1514|  29.5k|            other_tags_[item_tag] = false;
 1515|  29.5k|        }
 1516|       |
 1517|  9.55M|        switch (info)
 1518|  9.55M|        {
 1519|  9.18M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  9.18M|    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.3k, False: 9.51M]
  |  |  |  Branch (18:20): [True: 34.2k, False: 9.51M]
  |  |  |  Branch (18:30): [True: 18.9k, False: 9.53M]
  |  |  |  Branch (18:40): [True: 38.1k, False: 9.51M]
  |  |  |  Branch (18:50): [True: 94.1k, False: 9.45M]
  |  |  |  Branch (18:60): [True: 10.3k, False: 9.54M]
  |  |  |  Branch (18:70): [True: 38.0k, False: 9.51M]
  |  |  |  Branch (18:80): [True: 131k, False: 9.41M]
  |  |  |  Branch (18:90): [True: 11.7k, False: 9.53M]
  |  |  |  Branch (18:100): [True: 22.8k, False: 9.52M]
  |  |  |  Branch (18:110): [True: 14.2k, False: 9.53M]
  |  |  |  Branch (18:120): [True: 11.6k, False: 9.53M]
  |  |  |  Branch (18:130): [True: 269k, False: 9.28M]
  |  |  |  Branch (18:140): [True: 146k, False: 9.40M]
  |  |  |  Branch (18:150): [True: 818k, False: 8.73M]
  |  |  |  Branch (18:160): [True: 6.11M, False: 3.44M]
  |  |  |  Branch (18:170): [True: 39.0k, False: 9.51M]
  |  |  |  Branch (18:180): [True: 200k, False: 9.34M]
  |  |  |  Branch (18:190): [True: 273k, False: 9.27M]
  |  |  |  Branch (18:200): [True: 187k, False: 9.36M]
  |  |  |  Branch (18:210): [True: 158k, False: 9.39M]
  |  |  |  Branch (18:220): [True: 128k, False: 9.42M]
  |  |  ------------------
  ------------------
  |  Branch (1519:13): [True: 53.9k, False: 9.49M]
  ------------------
 1520|  9.18M|            {
 1521|  9.18M|                int64_t val = static_cast<int8_t>(- 1 - info);
 1522|  9.18M|                visitor.int64_value(val, tag, *this, ec);
 1523|  9.18M|                more_ = !cursor_mode_;
 1524|  9.18M|                break;
 1525|  65.6M|            }
 1526|   175k|            case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1526:13): [True: 175k, False: 9.37M]
  ------------------
 1527|   175k|            {
 1528|   175k|                uint8_t b;
 1529|   175k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1529:21): [True: 42, False: 175k]
  ------------------
 1530|     42|                {
 1531|     42|                    ec = cbor_errc::unexpected_eof;
 1532|     42|                    more_ = false;
 1533|     42|                    return;
 1534|     42|                }
 1535|   175k|                int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1536|   175k|                visitor.int64_value(val, tag, *this, ec);
 1537|   175k|                more_ = !cursor_mode_;
 1538|   175k|                break;
 1539|   175k|            }
 1540|   171k|            case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1540:13): [True: 171k, False: 9.37M]
  ------------------
 1541|   171k|            {
 1542|   171k|                uint8_t buf[sizeof(uint16_t)];
 1543|   171k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1543:21): [True: 30, False: 171k]
  ------------------
 1544|     30|                {
 1545|     30|                    ec = cbor_errc::unexpected_eof;
 1546|     30|                    more_ = false;
 1547|     30|                    return;
 1548|     30|                }
 1549|   171k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1550|   171k|                int64_t val = static_cast<int64_t>(-1)- u;
 1551|   171k|                visitor.int64_value(val, tag, *this, ec);
 1552|   171k|                more_ = !cursor_mode_;
 1553|   171k|                break;
 1554|   171k|            }
 1555|  2.76k|            case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1555:13): [True: 2.76k, False: 9.54M]
  ------------------
 1556|  2.76k|            {
 1557|  2.76k|                uint8_t buf[sizeof(uint32_t)];
 1558|  2.76k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1558:21): [True: 56, False: 2.71k]
  ------------------
 1559|     56|                {
 1560|     56|                    ec = cbor_errc::unexpected_eof;
 1561|     56|                    more_ = false;
 1562|     56|                    return;
 1563|     56|                }
 1564|  2.71k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1565|  2.71k|                int64_t val = static_cast<int64_t>(-1)- u;
 1566|  2.71k|                visitor.int64_value(val, tag, *this, ec);
 1567|  2.71k|                more_ = !cursor_mode_;
 1568|  2.71k|                break;
 1569|  2.76k|            }
 1570|  13.8k|            case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1570:13): [True: 13.8k, False: 9.53M]
  ------------------
 1571|  13.8k|            {
 1572|  13.8k|                uint8_t buf[sizeof(uint64_t)];
 1573|  13.8k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1573:21): [True: 119, False: 13.7k]
  ------------------
 1574|    119|                {
 1575|    119|                    ec = cbor_errc::unexpected_eof;
 1576|    119|                    more_ = false;
 1577|    119|                    return;
 1578|    119|                }
 1579|  13.7k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1580|  13.7k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1580:21): [True: 7.85k, False: 5.91k]
  ------------------
 1581|  7.85k|                {
 1582|       |                    //ec = cbor_errc::invalid_negative_integer;
 1583|       |                    //more_ = false;
 1584|       |                    //return;
 1585|  7.85k|                    bigint b(u);
 1586|  7.85k|                    bigint b2 = -1 - b;
 1587|  7.85k|                    text_buffer_.clear();
 1588|  7.85k|                    b2.append_to_buffer(text_buffer_);
 1589|  7.85k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 1590|  7.85k|                }
 1591|  5.91k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  5.91k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 442, False: 5.46k]
  |  |  ------------------
  ------------------
 1592|    442|                {
 1593|    442|                    visitor.int64_value((std::numeric_limits<int64_t>::min)(), tag, *this, ec);
 1594|    442|                }
 1595|  5.46k|                else
 1596|  5.46k|                {
 1597|  5.46k|                    int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(u);
 1598|  5.46k|                    visitor.int64_value(val, tag, *this, ec);
 1599|  5.46k|                }
 1600|  13.7k|                more_ = !cursor_mode_;
 1601|  13.7k|                break;
 1602|  13.8k|            }
 1603|    102|            default:
  ------------------
  |  Branch (1603:13): [True: 102, False: 9.55M]
  ------------------
 1604|    102|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (1604:22): [True: 102, False: 0]
  ------------------
 1605|    102|                more_ = false;
 1606|    102|                return;
 1607|  9.55M|        }
 1608|  9.55M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_sourceC2EPS7_:
  200|  8.83M|            : source(source)
  201|  8.83M|        {
  202|  8.83M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE16read_byte_stringINS7_28read_byte_string_from_sourceEEEvT_RNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 2184|  8.83M|    {
 2185|  8.83M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2185:13): [True: 408k, False: 8.43M]
  ------------------
 2186|   408k|        {
 2187|   408k|            switch (raw_tag_)
 2188|   408k|            {
 2189|  16.1k|                case 0x2:
  ------------------
  |  Branch (2189:17): [True: 16.1k, False: 392k]
  ------------------
 2190|  16.1k|                {
 2191|  16.1k|                    auto bytes = read.view(ec);
 2192|  16.1k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  16.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 32, False: 16.1k]
  |  |  ------------------
  ------------------
 2193|     32|                    {
 2194|     32|                        more_ = false;
 2195|     32|                        return;
 2196|     32|                    }
 2197|  16.1k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2198|  16.1k|                    text_buffer_.clear();
 2199|  16.1k|                    b.append_to_buffer(text_buffer_);
 2200|  16.1k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2201|  16.1k|                    more_ = !cursor_mode_;
 2202|  16.1k|                    break;
 2203|  16.1k|                }
 2204|  36.3k|                case 0x3:
  ------------------
  |  Branch (2204:17): [True: 36.3k, False: 371k]
  ------------------
 2205|  36.3k|                {
 2206|  36.3k|                    auto bytes = read.view(ec);
 2207|  36.3k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  36.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 45, False: 36.3k]
  |  |  ------------------
  ------------------
 2208|     45|                    {
 2209|     45|                        more_ = false;
 2210|     45|                        return;
 2211|     45|                    }
 2212|  36.3k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2213|  36.3k|                    b = -1 - b;
 2214|  36.3k|                    text_buffer_.clear();
 2215|  36.3k|                    b.append_to_buffer(text_buffer_);
 2216|  36.3k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2217|  36.3k|                    more_ = !cursor_mode_;
 2218|  36.3k|                    break;
 2219|  36.3k|                }
 2220|  24.4k|                case 0x15:
  ------------------
  |  Branch (2220:17): [True: 24.4k, False: 383k]
  ------------------
 2221|  29.6k|                case 0x16:
  ------------------
  |  Branch (2221:17): [True: 5.21k, False: 402k]
  ------------------
 2222|  34.9k|                case 0x17:
  ------------------
  |  Branch (2222:17): [True: 5.26k, False: 402k]
  ------------------
 2223|  34.9k|                {
 2224|  34.9k|                    auto bytes = read.view(ec);
 2225|  34.9k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  34.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 36, False: 34.9k]
  |  |  ------------------
  ------------------
 2226|     36|                    {
 2227|     36|                        more_ = false;
 2228|     36|                        return;
 2229|     36|                    }
 2230|  34.9k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2230:46): [True: 24.4k, False: 10.4k]
  ------------------
 2231|  34.9k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2231:27): [True: 5.19k, False: 5.24k]
  ------------------
 2232|  10.4k|                        : semantic_tag::base16;
 2233|  34.9k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2234|  34.9k|                    more_ = !cursor_mode_;
 2235|  34.9k|                    break;
 2236|  34.9k|                }
 2237|  5.80k|                case 0x40:
  ------------------
  |  Branch (2237:17): [True: 5.80k, False: 402k]
  ------------------
 2238|  5.80k|                {
 2239|  5.80k|                    array_tag_ = typed_array_tags::uint8;
 2240|  5.80k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2241|  5.80k|                    read(array_buffer, ec);
 2242|  5.80k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.80k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 15, False: 5.78k]
  |  |  ------------------
  ------------------
 2243|     15|                    {
 2244|     15|                        more_ = false;
 2245|     15|                        return;
 2246|     15|                    }
 2247|  5.78k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2248|  5.78k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2248:25): [True: 2.81k, False: 2.96k]
  |  Branch (2248:42): [True: 621, False: 2.19k]
  ------------------
 2249|    621|                    {
 2250|    621|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2250:29): [True: 142, False: 479]
  ------------------
 2251|    142|                        {
 2252|    142|                            ec = cbor_errc::bad_extents;
 2253|    142|                            more_ = false;
 2254|    142|                            return;
 2255|    142|                        }
 2256|    479|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2257|    479|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2258|    479|                        typed_array_stack_.push_back(iter);
 2259|    479|                        iter->next(visitor, *this, ec);
 2260|    479|                    }
 2261|  5.16k|                    else
 2262|  5.16k|                    {
 2263|  5.16k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2264|  5.16k|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2265|  5.16k|                        typed_array_stack_.push_back(iter);
 2266|  5.16k|                        iter->next(visitor, *this, ec);
 2267|  5.16k|                    }
 2268|  5.64k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2269|  5.64k|                    more_ = !cursor_mode_;
 2270|  5.64k|                    break;
 2271|  5.78k|                }
 2272|  7.74k|                case 0x44:
  ------------------
  |  Branch (2272:17): [True: 7.74k, False: 400k]
  ------------------
 2273|  7.74k|                {
 2274|  7.74k|                    array_tag_ = typed_array_tags::uint8;
 2275|  7.74k|                    typed_array_tag_ = semantic_tag::clamped;
 2276|  7.74k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2277|  7.74k|                    read(array_buffer, ec);
 2278|  7.74k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.74k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 18, False: 7.73k]
  |  |  ------------------
  ------------------
 2279|     18|                    {
 2280|     18|                        more_ = false;
 2281|     18|                        return;
 2282|     18|                    }
 2283|  7.73k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2284|  7.73k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2284:25): [True: 3.79k, False: 3.93k]
  |  Branch (2284:42): [True: 2.36k, False: 1.43k]
  ------------------
 2285|  2.36k|                    {
 2286|  2.36k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2286:29): [True: 108, False: 2.25k]
  ------------------
 2287|    108|                        {
 2288|    108|                            ec = cbor_errc::bad_extents;
 2289|    108|                            more_ = false;
 2290|    108|                            return;
 2291|    108|                        }
 2292|  2.25k|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2293|  2.25k|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2294|  2.25k|                        typed_array_stack_.push_back(iter);
 2295|  2.25k|                        iter->next(visitor, *this, ec);
 2296|  2.25k|                    }
 2297|  5.36k|                    else
 2298|  5.36k|                    {
 2299|  5.36k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2300|  5.36k|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2301|  5.36k|                        typed_array_stack_.push_back(iter);
 2302|  5.36k|                        iter->next(visitor, *this, ec);
 2303|  5.36k|                    }
 2304|  7.62k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2305|  7.62k|                    more_ = !cursor_mode_;
 2306|  7.62k|                    break;
 2307|  7.73k|                }
 2308|  12.4k|                case 0x41:
  ------------------
  |  Branch (2308:17): [True: 12.4k, False: 395k]
  ------------------
 2309|  13.2k|                case 0x45:
  ------------------
  |  Branch (2309:17): [True: 792, False: 407k]
  ------------------
 2310|  13.2k|                {
 2311|  13.2k|                    array_tag_ = typed_array_tags::uint16;
 2312|  13.2k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2313|  13.2k|                    read(array_buffer, ec);
 2314|  13.2k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 52, False: 13.1k]
  |  |  ------------------
  ------------------
 2315|     52|                    {
 2316|     52|                        more_ = false;
 2317|     52|                        return;
 2318|     52|                    }
 2319|  13.1k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2320|  13.1k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2321|  13.1k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2322|  13.1k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2322:25): [True: 12.3k, False: 782]
  ------------------
 2323|  12.3k|                    {
 2324|  62.6k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2324:49): [True: 50.2k, False: 12.3k]
  ------------------
 2325|  50.2k|                        {
 2326|  50.2k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2327|  50.2k|                        }
 2328|  12.3k|                    }
 2329|  13.1k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2329:25): [True: 6.40k, False: 6.74k]
  |  Branch (2329:42): [True: 1.17k, False: 5.22k]
  ------------------
 2330|  1.17k|                    {
 2331|  1.17k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2331:29): [True: 173, False: 1.00k]
  ------------------
 2332|    173|                        {
 2333|    173|                            ec = cbor_errc::bad_extents;
 2334|    173|                            more_ = false;
 2335|    173|                            return;
 2336|    173|                        }
 2337|  1.00k|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2338|  1.00k|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2339|  1.00k|                        typed_array_stack_.push_back(iter);
 2340|  1.00k|                        iter->next(visitor, *this, ec);
 2341|  1.00k|                    }
 2342|  11.9k|                    else
 2343|  11.9k|                    {
 2344|  11.9k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2345|  11.9k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2346|  11.9k|                        typed_array_stack_.push_back(iter);
 2347|  11.9k|                        iter->next(visitor, *this, ec);
 2348|  11.9k|                    }
 2349|  12.9k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2350|  12.9k|                    more_ = !cursor_mode_;
 2351|  12.9k|                    break;
 2352|  13.1k|                }
 2353|  8.21k|                case 0x42:
  ------------------
  |  Branch (2353:17): [True: 8.21k, False: 399k]
  ------------------
 2354|  10.2k|                case 0x46:
  ------------------
  |  Branch (2354:17): [True: 2.08k, False: 406k]
  ------------------
 2355|  10.2k|                {
 2356|  10.2k|                    array_tag_ = typed_array_tags::uint32;
 2357|  10.2k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2358|  10.2k|                    read(array_buffer, ec);
 2359|  10.2k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  10.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 24, False: 10.2k]
  |  |  ------------------
  ------------------
 2360|     24|                    {
 2361|     24|                        more_ = false;
 2362|     24|                        return;
 2363|     24|                    }
 2364|  10.2k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2365|  10.2k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2366|  10.2k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2367|  10.2k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2367:25): [True: 8.19k, False: 2.07k]
  ------------------
 2368|  8.19k|                    {
 2369|  16.5k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2369:49): [True: 8.32k, False: 8.19k]
  ------------------
 2370|  8.32k|                        {
 2371|  8.32k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2372|  8.32k|                        }
 2373|  8.19k|                    }
 2374|  10.2k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2374:25): [True: 4.99k, False: 5.27k]
  |  Branch (2374:42): [True: 2.20k, False: 2.79k]
  ------------------
 2375|  2.20k|                    {
 2376|  2.20k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2376:29): [True: 146, False: 2.05k]
  ------------------
 2377|    146|                        {
 2378|    146|                            ec = cbor_errc::bad_extents;
 2379|    146|                            more_ = false;
 2380|    146|                            return;
 2381|    146|                        }
 2382|  2.05k|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2383|  2.05k|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2384|  2.05k|                        typed_array_stack_.push_back(iter);
 2385|  2.05k|                        iter->next(visitor, *this, ec);
 2386|  2.05k|                    }
 2387|  8.06k|                    else
 2388|  8.06k|                    {
 2389|  8.06k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2390|  8.06k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2391|  8.06k|                        typed_array_stack_.push_back(iter);
 2392|  8.06k|                        iter->next(visitor, *this, ec);
 2393|  8.06k|                    }
 2394|  10.1k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2395|  10.1k|                    more_ = !cursor_mode_;
 2396|  10.1k|                    break;
 2397|  10.2k|                }
 2398|  4.25k|                case 0x43:
  ------------------
  |  Branch (2398:17): [True: 4.25k, False: 403k]
  ------------------
 2399|  8.69k|                case 0x47:
  ------------------
  |  Branch (2399:17): [True: 4.43k, False: 403k]
  ------------------
 2400|  8.69k|                {
 2401|  8.69k|                    array_tag_ = typed_array_tags::uint64;
 2402|  8.69k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2403|  8.69k|                    read(array_buffer, ec);
 2404|  8.69k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.69k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 29, False: 8.66k]
  |  |  ------------------
  ------------------
 2405|     29|                    {
 2406|     29|                        more_ = false;
 2407|     29|                        return;
 2408|     29|                    }
 2409|  8.66k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2410|  8.66k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2411|  8.66k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2412|  8.66k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2412:25): [True: 4.25k, False: 4.41k]
  ------------------
 2413|  4.25k|                    {
 2414|  9.29k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2414:49): [True: 5.04k, False: 4.25k]
  ------------------
 2415|  5.04k|                        {
 2416|  5.04k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2417|  5.04k|                        }
 2418|  4.25k|                    }
 2419|  8.66k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2419:25): [True: 4.13k, False: 4.52k]
  |  Branch (2419:42): [True: 1.64k, False: 2.49k]
  ------------------
 2420|  1.64k|                    {
 2421|  1.64k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2421:29): [True: 150, False: 1.49k]
  ------------------
 2422|    150|                        {
 2423|    150|                            ec = cbor_errc::bad_extents;
 2424|    150|                            more_ = false;
 2425|    150|                            return;
 2426|    150|                        }
 2427|  1.49k|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2428|  1.49k|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2429|  1.49k|                        typed_array_stack_.push_back(iter);
 2430|  1.49k|                        iter->next(visitor, *this, ec);
 2431|  1.49k|                    }
 2432|  7.01k|                    else
 2433|  7.01k|                    {
 2434|  7.01k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2435|  7.01k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2436|  7.01k|                        typed_array_stack_.push_back(iter);
 2437|  7.01k|                        iter->next(visitor, *this, ec);
 2438|  7.01k|                    }
 2439|  8.51k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2440|  8.51k|                    more_ = !cursor_mode_;
 2441|  8.51k|                    break;
 2442|  8.66k|                }
 2443|  6.43k|                case 0x48:
  ------------------
  |  Branch (2443:17): [True: 6.43k, False: 401k]
  ------------------
 2444|  6.43k|                {
 2445|  6.43k|                    array_tag_ = typed_array_tags::int8;
 2446|  6.43k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2447|  6.43k|                    read(array_buffer, ec);
 2448|  6.43k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.43k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 18, False: 6.41k]
  |  |  ------------------
  ------------------
 2449|     18|                    {
 2450|     18|                        more_ = false;
 2451|     18|                        return;
 2452|     18|                    }
 2453|  6.41k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2454|  6.41k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2454:25): [True: 2.97k, False: 3.43k]
  |  Branch (2454:42): [True: 1.61k, False: 1.35k]
  ------------------
 2455|  1.61k|                    {
 2456|  1.61k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2456:29): [True: 149, False: 1.47k]
  ------------------
 2457|    149|                        {
 2458|    149|                            ec = cbor_errc::bad_extents;
 2459|    149|                            more_ = false;
 2460|    149|                            return;
 2461|    149|                        }
 2462|  1.47k|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2463|  1.47k|                            typed_array_tags::int8, extents_, order_, alloc_);
 2464|  1.47k|                        typed_array_stack_.push_back(iter);
 2465|  1.47k|                        iter->next(visitor, *this, ec);
 2466|  1.47k|                    }
 2467|  4.79k|                    else
 2468|  4.79k|                    {
 2469|  4.79k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2470|  4.79k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2471|  4.79k|                        typed_array_stack_.push_back(iter);
 2472|  4.79k|                        iter->next(visitor, *this, ec);
 2473|  4.79k|                    }
 2474|  6.26k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2475|  6.26k|                    more_ = !cursor_mode_;
 2476|  6.26k|                    break;
 2477|  6.41k|                }
 2478|  9.61k|                case 0x49:
  ------------------
  |  Branch (2478:17): [True: 9.61k, False: 398k]
  ------------------
 2479|  10.3k|                case 0x4d:
  ------------------
  |  Branch (2479:17): [True: 761, False: 407k]
  ------------------
 2480|  10.3k|                {
 2481|  10.3k|                    array_tag_ = typed_array_tags::int16;
 2482|  10.3k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2483|  10.3k|                    read(array_buffer, ec);
 2484|  10.3k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  10.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 17, False: 10.3k]
  |  |  ------------------
  ------------------
 2485|     17|                    {
 2486|     17|                        more_ = false;
 2487|     17|                        return;
 2488|     17|                    }
 2489|  10.3k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2490|  10.3k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2491|  10.3k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2492|  10.3k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2492:25): [True: 9.60k, False: 757]
  ------------------
 2493|  9.60k|                    {
 2494|  34.6k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2494:49): [True: 25.0k, False: 9.60k]
  ------------------
 2495|  25.0k|                        {
 2496|  25.0k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2497|  25.0k|                        }
 2498|  9.60k|                    }
 2499|  10.3k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2499:25): [True: 5.02k, False: 5.33k]
  |  Branch (2499:42): [True: 2.05k, False: 2.96k]
  ------------------
 2500|  2.05k|                    {
 2501|  2.05k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2501:29): [True: 148, False: 1.91k]
  ------------------
 2502|    148|                        {
 2503|    148|                            ec = cbor_errc::bad_extents;
 2504|    148|                            more_ = false;
 2505|    148|                            return;
 2506|    148|                        }
 2507|  1.91k|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2508|  1.91k|                            typed_array_tags::int16, extents_, order_, alloc_);
 2509|  1.91k|                        typed_array_stack_.push_back(iter);
 2510|  1.91k|                        iter->next(visitor, *this, ec);
 2511|  1.91k|                    }
 2512|  8.30k|                    else
 2513|  8.30k|                    {
 2514|  8.30k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2515|  8.30k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2516|  8.30k|                        typed_array_stack_.push_back(iter);
 2517|  8.30k|                        iter->next(visitor, *this, ec);
 2518|  8.30k|                    }
 2519|  10.2k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2520|  10.2k|                    more_ = !cursor_mode_;
 2521|  10.2k|                    break;
 2522|  10.3k|                }
 2523|  8.69k|                case 0x4a:
  ------------------
  |  Branch (2523:17): [True: 8.69k, False: 399k]
  ------------------
 2524|  36.8k|                case 0x4e:
  ------------------
  |  Branch (2524:17): [True: 28.1k, False: 380k]
  ------------------
 2525|  36.8k|                {
 2526|  36.8k|                    array_tag_ = typed_array_tags::int32;
 2527|  36.8k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2528|  36.8k|                    read(array_buffer, ec);
 2529|  36.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  36.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 32, False: 36.8k]
  |  |  ------------------
  ------------------
 2530|     32|                    {
 2531|     32|                        more_ = false;
 2532|     32|                        return;
 2533|     32|                    }
 2534|  36.8k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2535|  36.8k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2536|  36.8k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2537|  36.8k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2537:25): [True: 8.67k, False: 28.1k]
  ------------------
 2538|  8.67k|                    {
 2539|  14.1k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2539:49): [True: 5.52k, False: 8.67k]
  ------------------
 2540|  5.52k|                        {
 2541|  5.52k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2542|  5.52k|                        }
 2543|  8.67k|                    }
 2544|  36.8k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2544:25): [True: 18.0k, False: 18.7k]
  |  Branch (2544:42): [True: 1.23k, False: 16.8k]
  ------------------
 2545|  1.23k|                    {
 2546|  1.23k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2546:29): [True: 147, False: 1.08k]
  ------------------
 2547|    147|                        {
 2548|    147|                            ec = cbor_errc::bad_extents;
 2549|    147|                            more_ = false;
 2550|    147|                            return;
 2551|    147|                        }
 2552|  1.08k|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2553|  1.08k|                            typed_array_tags::int32, extents_, order_, alloc_);
 2554|  1.08k|                        typed_array_stack_.push_back(iter);
 2555|  1.08k|                        iter->next(visitor, *this, ec);
 2556|  1.08k|                    }
 2557|  35.5k|                    else
 2558|  35.5k|                    {
 2559|  35.5k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2560|  35.5k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2561|  35.5k|                        typed_array_stack_.push_back(iter);
 2562|  35.5k|                        iter->next(visitor, *this, ec);
 2563|  35.5k|                    }
 2564|  36.6k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2565|  36.6k|                    more_ = !cursor_mode_;
 2566|  36.6k|                    break;
 2567|  36.8k|                }
 2568|  8.04k|                case 0x4b:
  ------------------
  |  Branch (2568:17): [True: 8.04k, False: 400k]
  ------------------
 2569|  8.82k|                case 0x4f:
  ------------------
  |  Branch (2569:17): [True: 780, False: 407k]
  ------------------
 2570|  8.82k|                {
 2571|  8.82k|                    array_tag_ = typed_array_tags::int64;
 2572|  8.82k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2573|  8.82k|                    read(array_buffer, ec);
 2574|  8.82k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.82k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 22, False: 8.80k]
  |  |  ------------------
  ------------------
 2575|     22|                    {
 2576|     22|                        more_ = false;
 2577|     22|                        return;
 2578|     22|                    }
 2579|  8.80k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2580|  8.80k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2581|  8.80k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2582|  8.80k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2582:25): [True: 8.03k, False: 776]
  ------------------
 2583|  8.03k|                    {
 2584|  16.4k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2584:49): [True: 8.39k, False: 8.03k]
  ------------------
 2585|  8.39k|                        {
 2586|  8.39k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2587|  8.39k|                        }
 2588|  8.03k|                    }
 2589|  8.80k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2589:25): [True: 4.14k, False: 4.66k]
  |  Branch (2589:42): [True: 2.00k, False: 2.13k]
  ------------------
 2590|  2.00k|                    {
 2591|  2.00k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2591:29): [True: 151, False: 1.85k]
  ------------------
 2592|    151|                        {
 2593|    151|                            ec = cbor_errc::bad_extents;
 2594|    151|                            more_ = false;
 2595|    151|                            return;
 2596|    151|                        }
 2597|  1.85k|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2598|  1.85k|                            typed_array_tags::int64, extents_, order_, alloc_);
 2599|  1.85k|                        typed_array_stack_.push_back(iter);
 2600|  1.85k|                        iter->next(visitor, *this, ec);
 2601|  1.85k|                    }
 2602|  6.79k|                    else
 2603|  6.79k|                    {
 2604|  6.79k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2605|  6.79k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2606|  6.79k|                        typed_array_stack_.push_back(iter);
 2607|  6.79k|                        iter->next(visitor, *this, ec);
 2608|  6.79k|                    }
 2609|  8.65k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2610|  8.65k|                    more_ = !cursor_mode_;
 2611|  8.65k|                    break;
 2612|  8.80k|                }
 2613|  3.30k|                case 0x50:
  ------------------
  |  Branch (2613:17): [True: 3.30k, False: 404k]
  ------------------
 2614|  20.6k|                case 0x54:
  ------------------
  |  Branch (2614:17): [True: 17.3k, False: 390k]
  ------------------
 2615|  20.6k|                {
 2616|  20.6k|                    array_tag_ = typed_array_tags::half_float;
 2617|  20.6k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2618|  20.6k|                    read(array_buffer, ec);
 2619|  20.6k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 110, False: 20.4k]
  |  |  ------------------
  ------------------
 2620|    110|                    {
 2621|    110|                        more_ = false;
 2622|    110|                        return;
 2623|    110|                    }
 2624|  20.4k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2625|  20.4k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2626|  20.4k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2627|  20.4k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2627:25): [True: 3.28k, False: 17.2k]
  ------------------
 2628|  3.28k|                    {
 2629|   128k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2629:49): [True: 125k, False: 3.28k]
  ------------------
 2630|   125k|                        {
 2631|   125k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2632|   125k|                        }
 2633|  3.28k|                    }
 2634|  20.4k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2634:25): [True: 9.97k, False: 10.5k]
  |  Branch (2634:42): [True: 4.14k, False: 5.83k]
  ------------------
 2635|  4.14k|                    {
 2636|  4.14k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2636:29): [True: 864, False: 3.27k]
  ------------------
 2637|    864|                        {
 2638|    864|                            ec = cbor_errc::bad_extents;
 2639|    864|                            more_ = false;
 2640|    864|                            return;
 2641|    864|                        }
 2642|  3.27k|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2643|  3.27k|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2644|  3.27k|                        typed_array_stack_.push_back(iter);
 2645|  3.27k|                        iter->next(visitor, *this, ec);
 2646|  3.27k|                    }
 2647|  16.3k|                    else
 2648|  16.3k|                    {
 2649|  16.3k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2650|  16.3k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2651|  16.3k|                        typed_array_stack_.push_back(iter);
 2652|  16.3k|                        iter->next(visitor, *this, ec);
 2653|  16.3k|                    }
 2654|  19.6k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2655|  19.6k|                    more_ = !cursor_mode_;
 2656|  19.6k|                    break;
 2657|  20.4k|                }
 2658|  1.97k|                case 0x51:
  ------------------
  |  Branch (2658:17): [True: 1.97k, False: 406k]
  ------------------
 2659|  13.6k|                case 0x55:
  ------------------
  |  Branch (2659:17): [True: 11.6k, False: 396k]
  ------------------
 2660|  13.6k|                {
 2661|  13.6k|                    array_tag_ = typed_array_tags::float32;
 2662|  13.6k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2663|  13.6k|                    read(array_buffer, ec);
 2664|  13.6k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 48, False: 13.5k]
  |  |  ------------------
  ------------------
 2665|     48|                    {
 2666|     48|                        more_ = false;
 2667|     48|                        return;
 2668|     48|                    }
 2669|  13.5k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2670|  13.5k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2671|  13.5k|                    auto ta = typed_array_cast<float>(array_buffer);
 2672|  13.5k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2672:25): [True: 1.96k, False: 11.6k]
  ------------------
 2673|  1.96k|                    {
 2674|  5.01k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2674:49): [True: 3.05k, False: 1.96k]
  ------------------
 2675|  3.05k|                        {
 2676|  3.05k|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2677|  3.05k|                        }
 2678|  1.96k|                    }
 2679|  13.5k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2679:25): [True: 6.64k, False: 6.91k]
  |  Branch (2679:42): [True: 2.40k, False: 4.24k]
  ------------------
 2680|  2.40k|                    {
 2681|  2.40k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2681:29): [True: 171, False: 2.22k]
  ------------------
 2682|    171|                        {
 2683|    171|                            ec = cbor_errc::bad_extents;
 2684|    171|                            more_ = false;
 2685|    171|                            return;
 2686|    171|                        }
 2687|  2.22k|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2688|  2.22k|                            typed_array_tags::float32, extents_, order_, alloc_);
 2689|  2.22k|                        typed_array_stack_.push_back(iter);
 2690|  2.22k|                        iter->next(visitor, *this, ec);
 2691|  2.22k|                    }
 2692|  11.1k|                    else
 2693|  11.1k|                    {
 2694|  11.1k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2695|  11.1k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2696|  11.1k|                        typed_array_stack_.push_back(iter);
 2697|  11.1k|                        iter->next(visitor, *this, ec);
 2698|  11.1k|                    }
 2699|  13.3k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2700|  13.3k|                    more_ = !cursor_mode_;
 2701|  13.3k|                    break;
 2702|  13.5k|                }
 2703|  3.55k|                case 0x52:
  ------------------
  |  Branch (2703:17): [True: 3.55k, False: 404k]
  ------------------
 2704|  9.53k|                case 0x56:
  ------------------
  |  Branch (2704:17): [True: 5.98k, False: 402k]
  ------------------
 2705|  9.53k|                {
 2706|  9.53k|                    array_tag_ = typed_array_tags::float64;
 2707|  9.53k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2708|  9.53k|                    read(array_buffer, ec);
 2709|  9.53k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.53k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 84, False: 9.45k]
  |  |  ------------------
  ------------------
 2710|     84|                    {
 2711|     84|                        more_ = false;
 2712|     84|                        return;
 2713|     84|                    }
 2714|  9.45k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2715|  9.45k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2716|  9.45k|                    auto ta = typed_array_cast<double>(array_buffer);
 2717|  9.45k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2717:25): [True: 3.49k, False: 5.96k]
  ------------------
 2718|  3.49k|                    {
 2719|  96.7k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2719:49): [True: 93.2k, False: 3.49k]
  ------------------
 2720|  93.2k|                        {
 2721|  93.2k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2722|  93.2k|                        }
 2723|  3.49k|                    }
 2724|  9.45k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2724:25): [True: 4.55k, False: 4.89k]
  |  Branch (2724:42): [True: 1.50k, False: 3.05k]
  ------------------
 2725|  1.50k|                    {
 2726|  1.50k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2726:29): [True: 193, False: 1.31k]
  ------------------
 2727|    193|                        {
 2728|    193|                            ec = cbor_errc::bad_extents;
 2729|    193|                            more_ = false;
 2730|    193|                            return;
 2731|    193|                        }
 2732|  1.31k|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2733|  1.31k|                            typed_array_tags::float64, extents_, order_, alloc_);
 2734|  1.31k|                        typed_array_stack_.push_back(iter);
 2735|  1.31k|                        iter->next(visitor, *this, ec);
 2736|  1.31k|                    }
 2737|  7.94k|                    else
 2738|  7.94k|                    {
 2739|  7.94k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2740|  7.94k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2741|  7.94k|                        typed_array_stack_.push_back(iter);
 2742|  7.94k|                        iter->next(visitor, *this, ec);
 2743|  7.94k|                    }
 2744|  9.25k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2745|  9.25k|                    more_ = !cursor_mode_;
 2746|  9.25k|                    break;
 2747|  9.45k|                }
 2748|   168k|                default:
  ------------------
  |  Branch (2748:17): [True: 168k, False: 239k]
  ------------------
 2749|   168k|                {
 2750|   168k|                    auto bytes = read.view(ec);
 2751|   168k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   168k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 166, False: 168k]
  |  |  ------------------
  ------------------
 2752|    166|                    {
 2753|    166|                        more_ = false;
 2754|    166|                        return;
 2755|    166|                    }
 2756|   168k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2757|   168k|                    more_ = !cursor_mode_;
 2758|   168k|                    break;
 2759|   168k|                }
 2760|   408k|            }
 2761|   404k|            other_tags_[item_tag] = false;
 2762|   404k|        }
 2763|  8.43M|        else
 2764|  8.43M|        {
 2765|  8.43M|            auto bytes = read.view(ec);
 2766|  8.43M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.43M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.33k, False: 8.42M]
  |  |  ------------------
  ------------------
 2767|  2.33k|            {
 2768|  2.33k|                return;
 2769|  2.33k|            }
 2770|  8.42M|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2771|  8.42M|            more_ = !cursor_mode_;
 2772|  8.42M|        }
 2773|  8.83M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_source4viewERNS4_10error_codeE:
  210|  8.68M|        {
  211|  8.68M|            return source->read_byte_string_view(ec);
  212|  8.68M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE21read_byte_string_viewERNS4_10error_codeE:
 1143|  8.68M|    {
 1144|  8.68M|        auto c = source_.peek();
 1145|  8.68M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  8.68M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.68M]
  |  |  ------------------
  ------------------
 1146|      0|        {
 1147|      0|            ec = cbor_errc::unexpected_eof;
 1148|      0|            more_ = false;
 1149|      0|            return byte_string_view();
 1150|      0|        }
 1151|  8.68M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1152|  8.68M|        uint8_t info = get_additional_information(c.value);
 1153|  8.68M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  8.69M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.68M]
  |  |  |  Branch (79:50): [True: 2.71k, False: 8.68M]
  |  |  |  Branch (79:50): [True: 0, False: 2.71k]
  |  |  ------------------
  ------------------
 1154|      0|        {
 1155|      0|            ec = cbor_errc::reserved_additional_info;
 1156|      0|            more_ = false;
 1157|      0|            return byte_string_view();
 1158|      0|        }
 1159|       |
 1160|  8.68M|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   54|  8.68M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 8.68M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1161|       |
 1162|  8.68M|        source_.ignore(1);
 1163|  8.68M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1163:13): [True: 2.71k, False: 8.68M]
  ------------------
 1164|  2.71k|        {
 1165|  2.71k|            bytes_buffer_.clear();
 1166|  2.71k|            iterate_byte_string_chunks(bytes_buffer_, ec);
 1167|  2.71k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.71k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 596, False: 2.11k]
  |  |  ------------------
  ------------------
 1168|    596|            {
 1169|    596|                return byte_string_view();
 1170|    596|            }
 1171|  2.11k|            return byte_string_view(bytes_buffer_.data(), bytes_buffer_.size());
 1172|  2.71k|        }
 1173|       |
 1174|  8.68M|        std::size_t length = read_size(info, ec);
 1175|  8.68M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.68M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 134, False: 8.68M]
  |  |  ------------------
  ------------------
 1176|    134|        {
 1177|    134|            return byte_string_view();
 1178|    134|        }
 1179|  8.68M|        auto data = source_.read_span(length, bytes_buffer_);
 1180|  8.68M|        if (data.size() != length)
  ------------------
  |  Branch (1180:13): [True: 1.88k, False: 8.68M]
  ------------------
 1181|  1.88k|        {
 1182|  1.88k|            ec = cbor_errc::unexpected_eof;
 1183|  1.88k|            more_ = false;
 1184|  1.88k|            return byte_string_view();
 1185|  1.88k|        }
 1186|       |        
 1187|  8.68M|        byte_string_view bytes(data.data(), data.size());
 1188|  8.68M|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1188:13): [True: 7.35M, False: 1.33M]
  ------------------
 1189|  7.35M|            bytes.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1189:13): [True: 7.13M, False: 213k]
  ------------------
 1190|  7.13M|        {
 1191|  7.13M|            stringref_map_stack_.back().emplace_back(mapped_string(bytes, alloc_));
 1192|  7.13M|        }
 1193|  8.68M|        return bytes;
 1194|  8.68M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE26iterate_byte_string_chunksINS4_6vectorIhNS5_IhEEEEEEvRT_RNS4_10error_codeE:
 1327|  5.30k|    {
 1328|  5.30k|        bool done = false;
 1329|  21.0k|        while (!done)
  ------------------
  |  Branch (1329:16): [True: 16.4k, False: 4.65k]
  ------------------
 1330|  16.4k|        {
 1331|  16.4k|            auto c = source_.peek();
 1332|  16.4k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  16.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 94, False: 16.3k]
  |  |  ------------------
  ------------------
 1333|     94|            {
 1334|     94|                ec = cbor_errc::unexpected_eof;
 1335|     94|                more_ = false;
 1336|     94|                return;
 1337|     94|            }
 1338|  16.3k|            if (c.value == 0xff)
  ------------------
  |  Branch (1338:17): [True: 4.65k, False: 11.6k]
  ------------------
 1339|  4.65k|            {
 1340|  4.65k|                source_.ignore(1);
 1341|  4.65k|                done = true;
 1342|  4.65k|                continue;
 1343|  4.65k|            }
 1344|       |
 1345|  11.6k|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1346|  11.6k|            if (major_type != jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1346:17): [True: 103, False: 11.5k]
  ------------------
 1347|    103|            {
 1348|    103|                ec = cbor_errc::illegal_chunked_string;
 1349|    103|                more_ = false;
 1350|    103|                return;
 1351|    103|            }
 1352|  11.5k|            uint8_t info = get_additional_information(c.value);
 1353|  11.5k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1353:17): [True: 21, False: 11.5k]
  ------------------
 1354|     21|            {
 1355|     21|                ec = cbor_errc::illegal_chunked_string;
 1356|     21|                more_ = false;
 1357|     21|                return;
 1358|     21|            }
 1359|       |
 1360|  11.5k|            source_.ignore(1);
 1361|  11.5k|            std::size_t length = read_size(info, ec);
 1362|  11.5k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  11.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 26, False: 11.5k]
  |  |  ------------------
  ------------------
 1363|     26|            {
 1364|     26|                return;
 1365|     26|            }
 1366|  11.5k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1366:17): [True: 406, False: 11.1k]
  ------------------
 1367|    406|            {
 1368|    406|                ec = cbor_errc::unexpected_eof;
 1369|    406|            }
 1370|  11.5k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  11.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 406, False: 11.1k]
  |  |  ------------------
  ------------------
 1371|    406|            {
 1372|    406|                return;
 1373|    406|            }
 1374|  11.5k|        }
 1375|  5.30k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE9read_sizeEhRNS4_10error_codeE:
 1197|  43.5M|    {
 1198|  43.5M|        uint64_t u = read_unsigned_integer(info, ec);
 1199|  43.5M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  43.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 586, False: 43.5M]
  |  |  ------------------
  ------------------
 1200|    586|        {
 1201|    586|            return 0;
 1202|    586|        }
 1203|  43.5M|        std::size_t len = static_cast<std::size_t>(u);
 1204|  43.5M|        if (len != u)
  ------------------
  |  Branch (1204:13): [True: 0, False: 43.5M]
  ------------------
 1205|      0|        {
 1206|      0|            ec = cbor_errc::number_too_large;
 1207|      0|            more_ = false;
 1208|      0|        }
 1209|  43.5M|        return len;
 1210|  43.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13mapped_stringC2EOS8_:
  121|  18.8M|        mapped_string(mapped_string&&) = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13mapped_stringC2ERKNS_16byte_string_viewERKS6_:
  110|  7.13M|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes.begin(),bytes.end(),alloc)
  111|  7.13M|        {
  112|  7.13M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE28read_byte_string_from_sourceclINS4_6vectorIhNS5_IhEEEEEEvRT_RNS4_10error_codeE:
  205|   151k|        {
  206|   151k|            source->read_byte_string(cont,ec);
  207|   151k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE16read_byte_stringERNS4_6vectorIhNS5_IhEEEERNS4_10error_codeE:
 1213|   268k|    {
 1214|   268k|        v.clear();
 1215|   268k|        auto c = source_.peek();
 1216|   268k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   268k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 268k]
  |  |  ------------------
  ------------------
 1217|      0|        {
 1218|      0|            ec = cbor_errc::unexpected_eof;
 1219|      0|            return;
 1220|      0|        }
 1221|   268k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1222|   268k|        uint8_t info = get_additional_information(c.value);
 1223|   268k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   271k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 8, False: 268k]
  |  |  |  Branch (79:50): [True: 2.59k, False: 266k]
  |  |  |  Branch (79:50): [True: 8, False: 2.58k]
  |  |  ------------------
  ------------------
 1224|      8|        {
 1225|      8|            ec = cbor_errc::reserved_additional_info;
 1226|      8|            more_ = false;
 1227|      8|            return;
 1228|      8|        }
 1229|       |
 1230|   268k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   54|   268k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 268k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1231|       |
 1232|   268k|        source_.ignore(1);
 1233|   268k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1233:13): [True: 2.58k, False: 266k]
  ------------------
 1234|  2.58k|        {
 1235|  2.58k|            iterate_byte_string_chunks(v, ec);
 1236|  2.58k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.58k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 54, False: 2.53k]
  |  |  ------------------
  ------------------
 1237|     54|            {
 1238|     54|                return;
 1239|     54|            }
 1240|  2.58k|        }
 1241|   266k|        else 
 1242|   266k|        {
 1243|   266k|            std::size_t length = read_size(info, ec);
 1244|   266k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   266k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 11, False: 266k]
  |  |  ------------------
  ------------------
 1245|     11|            {
 1246|     11|                return;
 1247|     11|            }
 1248|   266k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1248:17): [True: 606, False: 265k]
  ------------------
 1249|    606|            {
 1250|    606|                ec = cbor_errc::unexpected_eof;
 1251|    606|                return;
 1252|    606|            }
 1253|   265k|            if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1253:17): [True: 85.5k, False: 180k]
  ------------------
 1254|  85.5k|                v.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1254:17): [True: 46.3k, False: 39.1k]
  ------------------
 1255|  46.3k|            {
 1256|  46.3k|                stringref_map_stack_.back().emplace_back(mapped_string(v, alloc_));
 1257|  46.3k|            }
 1258|   265k|        }
 1259|   268k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13mapped_stringC2ERKNS4_6vectorIhNS5_IhEEEERKS6_:
  104|  46.3k|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes,alloc)
  105|  46.3k|        {
  106|  46.3k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE21read_text_string_viewEhRNS4_10error_codeE:
 1109|   401k|    {
 1110|   401k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1110:13): [True: 3.17k, False: 397k]
  ------------------
 1111|  3.17k|        {
 1112|  3.17k|            text_buffer_.clear();
 1113|  3.17k|            iterate_text_string_chunks(text_buffer_, ec);
 1114|  3.17k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.17k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 711, False: 2.46k]
  |  |  ------------------
  ------------------
 1115|    711|            {
 1116|    711|                return string_view_type();
 1117|    711|            }
 1118|  2.46k|            return string_view_type(text_buffer_.data(), text_buffer_.size());
 1119|  3.17k|        }
 1120|       |
 1121|   397k|        std::size_t length = read_size(info, ec);
 1122|   397k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   397k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 58, False: 397k]
  |  |  ------------------
  ------------------
 1123|     58|        {
 1124|     58|            return string_view_type();
 1125|     58|        }
 1126|   397k|        auto data = source_.read_span(length, text_buffer_);
 1127|   397k|        if (data.size() != length)
  ------------------
  |  Branch (1127:13): [True: 1.26k, False: 396k]
  ------------------
 1128|  1.26k|        {
 1129|  1.26k|            ec = cbor_errc::unexpected_eof;
 1130|  1.26k|            more_ = false;
 1131|  1.26k|            return string_view_type();
 1132|  1.26k|        }
 1133|   396k|        string_view_type sv(reinterpret_cast<const char_type*>(data.data()), data.size());
 1134|   396k|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1134:13): [True: 97.3k, False: 299k]
  ------------------
 1135|  97.3k|            sv.length() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1135:13): [True: 41.6k, False: 55.7k]
  ------------------
 1136|  41.6k|        {
 1137|  41.6k|            stringref_map_stack_.back().emplace_back(mapped_string(sv,alloc_));
 1138|  41.6k|        }
 1139|   396k|        return sv;
 1140|   397k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE26iterate_text_string_chunksINS4_12basic_stringIcNS4_11char_traitsIcEES6_EEEEvRT_RNS4_10error_codeE:
 1263|  3.17k|    {
 1264|  3.17k|        bool done = false;
 1265|  11.2k|        while (!done)
  ------------------
  |  Branch (1265:16): [True: 8.80k, False: 2.46k]
  ------------------
 1266|  8.80k|        {
 1267|  8.80k|            auto c = source_.peek();
 1268|  8.80k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  8.80k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 61, False: 8.74k]
  |  |  ------------------
  ------------------
 1269|     61|            {
 1270|     61|                ec = cbor_errc::unexpected_eof;
 1271|     61|                more_ = false;
 1272|     61|                return;
 1273|     61|            }
 1274|  8.74k|            if (c.value == 0xff)
  ------------------
  |  Branch (1274:17): [True: 2.46k, False: 6.27k]
  ------------------
 1275|  2.46k|            {
 1276|  2.46k|                source_.ignore(1);
 1277|  2.46k|                done = true;
 1278|  2.46k|                continue;
 1279|  2.46k|            }
 1280|       |
 1281|  6.27k|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1282|  6.27k|            if (major_type != jsoncons::cbor::detail::cbor_major_type::text_string)
  ------------------
  |  Branch (1282:17): [True: 139, False: 6.13k]
  ------------------
 1283|    139|            {
 1284|    139|                ec = cbor_errc::illegal_chunked_string;
 1285|    139|                more_ = false;
 1286|    139|                return;
 1287|    139|            }
 1288|  6.13k|            uint8_t info = get_additional_information(c.value);
 1289|  6.13k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1289:17): [True: 12, False: 6.12k]
  ------------------
 1290|     12|            {
 1291|     12|                ec = cbor_errc::illegal_chunked_string;
 1292|     12|                more_ = false;
 1293|     12|                return;
 1294|     12|            }
 1295|       |
 1296|  6.12k|            source_.ignore(1);
 1297|  6.12k|            std::size_t length = read_size(info, ec);
 1298|  6.12k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.12k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 15, False: 6.10k]
  |  |  ------------------
  ------------------
 1299|     15|            {
 1300|     15|                return;
 1301|     15|            }
 1302|  6.10k|            const std::size_t offset = v.size();
 1303|  6.10k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1303:17): [True: 416, False: 5.69k]
  ------------------
 1304|    416|            {
 1305|    416|                ec = cbor_errc::unexpected_eof;
 1306|    416|            }
 1307|  6.10k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.10k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 416, False: 5.69k]
  |  |  ------------------
  ------------------
 1308|    416|            {
 1309|    416|                return;
 1310|    416|            }
 1311|       |            // RFC 8949 3.2.3: each chunk of an indefinite-length text
 1312|       |            // string must itself be well-formed UTF-8, so a code point
 1313|       |            // may not be split across chunks.
 1314|  5.69k|            auto result = unicode_traits::validate(
 1315|  5.69k|                reinterpret_cast<const char*>(v.data()) + offset, length);
 1316|  5.69k|            if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (1316:17): [True: 68, False: 5.62k]
  ------------------
 1317|     68|            {
 1318|     68|                ec = cbor_errc::invalid_utf8_text_string;
 1319|     68|                more_ = false;
 1320|     68|                return;
 1321|     68|            }
 1322|  5.69k|        }
 1323|  3.17k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13mapped_stringC2ERKNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERKS6_:
   93|  41.6k|            : type(jsoncons::cbor::detail::cbor_major_type::text_string), str(sv.data(), sv.size(), alloc), bytes(alloc)
   94|  41.6k|        {
   95|  41.6k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE11read_doubleEhRNS4_10error_codeE:
 1668|   265k|    {
 1669|   265k|        double val = 0;
 1670|       |
 1671|   265k|        switch (info)
 1672|   265k|        {
 1673|   222k|            case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (1673:13): [True: 222k, False: 42.4k]
  ------------------
 1674|   222k|            {
 1675|   222k|                uint8_t buf[sizeof(float)];
 1676|   222k|                if (source_.read(buf, sizeof(float)) !=sizeof(float)) 
  ------------------
  |  Branch (1676:21): [True: 147, False: 222k]
  ------------------
 1677|    147|                {
 1678|    147|                    ec = cbor_errc::unexpected_eof;
 1679|    147|                    more_ = false;
 1680|    147|                    return 0;
 1681|    147|                }
 1682|   222k|                val = binary::big_to_native<float>(buf, sizeof(buf));
 1683|   222k|                break;
 1684|   222k|            }
 1685|       |
 1686|  42.4k|            case 0x1b: //  Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (1686:13): [True: 42.4k, False: 222k]
  ------------------
 1687|  42.4k|            {
 1688|  42.4k|                uint8_t buf[sizeof(double)];
 1689|  42.4k|                if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (1689:21): [True: 140, False: 42.3k]
  ------------------
 1690|    140|                {
 1691|    140|                    ec = cbor_errc::unexpected_eof;
 1692|    140|                    more_ = false;
 1693|    140|                    return 0;
 1694|    140|                }
 1695|  42.3k|                val = binary::big_to_native<double>(buf, sizeof(buf));
 1696|  42.3k|                break;
 1697|  42.4k|            }
 1698|      0|            default:
  ------------------
  |  Branch (1698:13): [True: 0, False: 265k]
  ------------------
 1699|      0|            {
 1700|      0|                ec = cbor_errc::unknown_type;
 1701|      0|                more_ = false;
 1702|      0|                return 0;
 1703|  42.4k|            }
 1704|   265k|        }
 1705|       |        
 1706|   264k|        return val;
 1707|   265k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE15read_bigdecimalEhRNS4_12basic_stringIcNS4_11char_traitsIcEES6_EERNS4_10error_codeE:
 1710|  91.0k|    {
 1711|  91.0k|        std::size_t size = read_unsigned_integer(container_info, ec);
 1712|  91.0k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  91.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 91.0k]
  |  |  ------------------
  ------------------
 1713|     12|        {
 1714|     12|            return;
 1715|     12|        }
 1716|  91.0k|        if (size != 2)
  ------------------
  |  Branch (1716:13): [True: 210, False: 90.8k]
  ------------------
 1717|    210|        {
 1718|    210|            ec = cbor_errc::invalid_bigdecimal;
 1719|    210|            more_ = false;
 1720|    210|            return;
 1721|    210|        }
 1722|       |
 1723|  90.8k|        auto c = source_.peek();
 1724|  90.8k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  90.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 45, False: 90.7k]
  |  |  ------------------
  ------------------
 1725|     45|        {
 1726|     45|            ec = cbor_errc::unexpected_eof;
 1727|     45|            more_ = false;
 1728|     45|            return;
 1729|     45|        }
 1730|  90.7k|        int64_t exponent = 0;
 1731|  90.7k|        auto major_type = get_major_type(c.value);
 1732|  90.7k|        auto info = get_additional_information(c.value);
 1733|  90.7k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  91.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 11, False: 90.7k]
  |  |  |  Branch (79:50): [True: 939, False: 89.8k]
  |  |  |  Branch (79:50): [True: 11, False: 928]
  |  |  ------------------
  ------------------
 1734|     11|        {
 1735|     11|            ec = cbor_errc::reserved_additional_info;
 1736|     11|            more_ = false;
 1737|     11|            return;
 1738|     11|        }
 1739|       |
 1740|  90.7k|        switch (major_type)
 1741|  90.7k|        {
 1742|  32.3k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1742:13): [True: 32.3k, False: 58.3k]
  ------------------
 1743|  32.3k|            {
 1744|  32.3k|                source_.ignore(1);
 1745|  32.3k|                auto u = read_unsigned_integer(info, ec);
 1746|  32.3k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  32.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 10, False: 32.3k]
  |  |  ------------------
  ------------------
 1747|     10|                {
 1748|     10|                    more_ = false;
 1749|     10|                    return;
 1750|     10|                }
 1751|  32.3k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1751:21): [True: 147, False: 32.2k]
  ------------------
 1752|    147|                {
 1753|    147|                    ec = cbor_errc::invalid_bigdecimal;
 1754|    147|                    more_ = false;
 1755|    147|                    return;
 1756|    147|                }
 1757|  32.2k|                exponent = static_cast<int64_t>(u);
 1758|  32.2k|                break;
 1759|  32.3k|            }
 1760|  58.2k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1760:13): [True: 58.2k, False: 32.5k]
  ------------------
 1761|  58.2k|            {
 1762|  58.2k|                auto u = read_int64(ec);
 1763|  58.2k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  58.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 115, False: 58.1k]
  |  |  ------------------
  ------------------
 1764|    115|                {
 1765|    115|                    return;
 1766|    115|                }
 1767|  58.1k|                if (JSONCONS_UNLIKELY(u == (std::numeric_limits<int64_t>::min)()))
  ------------------
  |  |   79|  58.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 58.1k]
  |  |  ------------------
  ------------------
 1768|      3|                {
 1769|      3|                    ec = cbor_errc::invalid_bigdecimal;
 1770|      3|                    more_ = false;
 1771|      3|                    return;
 1772|      3|                }
 1773|  58.1k|                exponent = u;
 1774|  58.1k|                break;
 1775|  58.1k|            }
 1776|    122|            default:
  ------------------
  |  Branch (1776:13): [True: 122, False: 90.6k]
  ------------------
 1777|    122|            {
 1778|    122|                ec = cbor_errc::invalid_bigdecimal;
 1779|    122|                more_ = false;
 1780|    122|                return;
 1781|  58.1k|            }
 1782|  90.7k|        }
 1783|       |
 1784|  90.3k|        c = source_.peek();
 1785|  90.3k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  90.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 188, False: 90.1k]
  |  |  ------------------
  ------------------
 1786|    188|        {
 1787|    188|            ec = cbor_errc::unexpected_eof;
 1788|    188|            more_ = false;
 1789|    188|            return;
 1790|    188|        }
 1791|       |
 1792|  90.1k|        major_type = get_major_type(c.value);
 1793|  90.1k|        info = get_additional_information(c.value);
 1794|  90.1k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  90.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 15, False: 90.1k]
  |  |  |  Branch (79:50): [True: 512, False: 89.6k]
  |  |  |  Branch (79:50): [True: 15, False: 497]
  |  |  ------------------
  ------------------
 1795|     15|        {
 1796|     15|            ec = cbor_errc::reserved_additional_info;
 1797|     15|            more_ = false;
 1798|     15|            return;
 1799|     15|        }
 1800|       |
 1801|  90.1k|        bigint unscaled;
 1802|  90.1k|        switch (major_type)
 1803|  90.1k|        {
 1804|  38.2k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1804:13): [True: 38.2k, False: 51.9k]
  ------------------
 1805|  38.2k|            {
 1806|  38.2k|                source_.ignore(1);
 1807|  38.2k|                uint64_t u = read_unsigned_integer(info, ec);
 1808|  38.2k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  38.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 38.2k]
  |  |  ------------------
  ------------------
 1809|     12|                {
 1810|     12|                    return;
 1811|     12|                }
 1812|  38.2k|                unscaled = bigint(u);
 1813|  38.2k|                break;
 1814|  38.2k|            }
 1815|  18.2k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1815:13): [True: 18.2k, False: 71.9k]
  ------------------
 1816|  18.2k|            {
 1817|  18.2k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  18.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 18.2k]
  |  |  |  Branch (79:50): [True: 5, False: 18.2k]
  |  |  |  Branch (79:50): [True: 0, False: 5]
  |  |  ------------------
  ------------------
 1818|      0|                {
 1819|      0|                    ec = cbor_errc::reserved_additional_info;
 1820|      0|                    more_ = false;
 1821|      0|                    return;
 1822|      0|                }
 1823|  18.2k|                source_.ignore(1);
 1824|  18.2k|                auto u = read_unsigned_integer(info, ec);
 1825|  18.2k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 15, False: 18.2k]
  |  |  ------------------
  ------------------
 1826|     15|                {
 1827|     15|                    return;
 1828|     15|                }
 1829|  18.2k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1829:21): [True: 6.07k, False: 12.1k]
  ------------------
 1830|  6.07k|                {
 1831|  6.07k|                    unscaled = -1 - bigint(u);
 1832|  6.07k|                }
 1833|  12.1k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  12.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 366, False: 11.7k]
  |  |  ------------------
  ------------------
 1834|    366|                {
 1835|    366|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 1836|    366|                }
 1837|  11.7k|                else
 1838|  11.7k|                {
 1839|  11.7k|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 1840|  11.7k|                }
 1841|  18.2k|                break;
 1842|  18.2k|            }
 1843|  33.6k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1843:13): [True: 33.6k, False: 56.5k]
  ------------------
 1844|  33.6k|            {
 1845|  33.6k|                uint8_t b;
 1846|  33.6k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1846:21): [True: 0, False: 33.6k]
  ------------------
 1847|      0|                {
 1848|      0|                    ec = cbor_errc::unexpected_eof;
 1849|      0|                    more_ = false;
 1850|      0|                    return;
 1851|      0|                }
 1852|  33.6k|                info = get_additional_information(b);
 1853|  33.6k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  34.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 33.6k]
  |  |  |  Branch (79:50): [True: 449, False: 33.1k]
  |  |  |  Branch (79:50): [True: 0, False: 449]
  |  |  ------------------
  ------------------
 1854|      0|                {
 1855|      0|                    ec = cbor_errc::reserved_additional_info;
 1856|      0|                    more_ = false;
 1857|      0|                    return;
 1858|      0|                }
 1859|  33.6k|                c = source_.peek();
 1860|  33.6k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  33.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 40, False: 33.5k]
  |  |  ------------------
  ------------------
 1861|     40|                {
 1862|     40|                    ec = cbor_errc::unexpected_eof;
 1863|     40|                    more_ = false;
 1864|     40|                    return;
 1865|     40|                }
 1866|       |
 1867|  33.5k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1867:21): [True: 18.4k, False: 15.1k]
  ------------------
 1868|  18.4k|                {
 1869|  18.4k|                    bytes_buffer_.clear();
 1870|  18.4k|                    read_byte_string(bytes_buffer_, ec);
 1871|  18.4k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 53, False: 18.3k]
  |  |  ------------------
  ------------------
 1872|     53|                    {
 1873|     53|                        more_ = false;
 1874|     53|                        return;
 1875|     53|                    }
 1876|  18.3k|                    if (info == 2)
  ------------------
  |  Branch (1876:25): [True: 3.39k, False: 14.9k]
  ------------------
 1877|  3.39k|                    {
 1878|  3.39k|                        unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1879|  3.39k|                    }
 1880|  14.9k|                    else if (info == 3)
  ------------------
  |  Branch (1880:30): [True: 13.6k, False: 1.32k]
  ------------------
 1881|  13.6k|                    {
 1882|  13.6k|                        unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1883|  13.6k|                        unscaled = -1 - unscaled;
 1884|  13.6k|                    }
 1885|  18.3k|                }
 1886|  33.5k|                break;
 1887|  33.5k|            }
 1888|  33.5k|            default:
  ------------------
  |  Branch (1888:13): [True: 94, False: 90.0k]
  ------------------
 1889|     94|            {
 1890|     94|                ec = cbor_errc::invalid_bigdecimal;
 1891|     94|                more_ = false;
 1892|     94|                return;
 1893|  33.5k|            }
 1894|  90.1k|        }
 1895|       |
 1896|  89.9k|        bigdec dec(std::move(unscaled), -exponent);
 1897|  89.9k|        append_to_buffer(dec, result);
 1898|  89.9k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE10read_int64ERNS4_10error_codeE:
 1378|   180k|    {
 1379|   180k|        int64_t val = 0;
 1380|       |
 1381|   180k|        auto ch = source_.peek();
 1382|   180k|        if (ch.eof)
  ------------------
  |  Branch (1382:13): [True: 0, False: 180k]
  ------------------
 1383|      0|        {
 1384|      0|            ec = cbor_errc::unexpected_eof;
 1385|      0|            more_ = false;
 1386|      0|            return val;
 1387|      0|        }
 1388|       |
 1389|   180k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(ch.value);
 1390|   180k|        uint8_t info = get_additional_information(ch.value);
 1391|   180k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   182k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 180k]
  |  |  |  Branch (79:50): [True: 2.27k, False: 177k]
  |  |  |  Branch (79:50): [True: 0, False: 2.27k]
  |  |  ------------------
  ------------------
 1392|      0|        {
 1393|      0|            ec = cbor_errc::reserved_additional_info;
 1394|      0|            more_ = false;
 1395|      0|            return val;
 1396|      0|        }
 1397|   180k|        switch (major_type)
 1398|   180k|        {
 1399|   180k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1399:13): [True: 180k, False: 0]
  ------------------
 1400|   180k|                source_.ignore(1);
 1401|   180k|                switch (info)
  ------------------
  |  Branch (1401:25): [True: 177k, False: 2.27k]
  ------------------
 1402|   180k|                {
 1403|   161k|                    case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|   161k|    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: 1.89k, False: 178k]
  |  |  |  Branch (18:20): [True: 557, False: 179k]
  |  |  |  Branch (18:30): [True: 654, False: 179k]
  |  |  |  Branch (18:40): [True: 15.9k, False: 164k]
  |  |  |  Branch (18:50): [True: 776, False: 179k]
  |  |  |  Branch (18:60): [True: 452, False: 179k]
  |  |  |  Branch (18:70): [True: 10.6k, False: 169k]
  |  |  |  Branch (18:80): [True: 2.20k, False: 177k]
  |  |  |  Branch (18:90): [True: 1.56k, False: 178k]
  |  |  |  Branch (18:100): [True: 25.1k, False: 154k]
  |  |  |  Branch (18:110): [True: 14.6k, False: 165k]
  |  |  |  Branch (18:120): [True: 2.10k, False: 177k]
  |  |  |  Branch (18:130): [True: 2.96k, False: 177k]
  |  |  |  Branch (18:140): [True: 2.51k, False: 177k]
  |  |  |  Branch (18:150): [True: 60.7k, False: 119k]
  |  |  |  Branch (18:160): [True: 1.03k, False: 179k]
  |  |  |  Branch (18:170): [True: 5.12k, False: 174k]
  |  |  |  Branch (18:180): [True: 865, False: 179k]
  |  |  |  Branch (18:190): [True: 877, False: 179k]
  |  |  |  Branch (18:200): [True: 959, False: 179k]
  |  |  |  Branch (18:210): [True: 953, False: 179k]
  |  |  |  Branch (18:220): [True: 1.74k, False: 178k]
  |  |  ------------------
  ------------------
  |  Branch (1403:21): [True: 4.57k, False: 175k]
  ------------------
 1404|   161k|                    {
 1405|   161k|                        val = static_cast<int8_t>(- 1 - info);
 1406|   161k|                        break;
 1407|  1.83M|                    }
 1408|  11.8k|                    case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1408:21): [True: 11.8k, False: 168k]
  ------------------
 1409|  11.8k|                        {
 1410|  11.8k|                            uint8_t b;
 1411|  11.8k|                            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1411:33): [True: 7, False: 11.8k]
  ------------------
 1412|      7|                            {
 1413|      7|                                ec = cbor_errc::unexpected_eof;
 1414|      7|                                more_ = false;
 1415|      7|                                return val;
 1416|      7|                            }
 1417|  11.8k|                            val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1418|  11.8k|                            break;
 1419|  11.8k|                        }
 1420|       |
 1421|    511|                    case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1421:21): [True: 511, False: 179k]
  ------------------
 1422|    511|                        {
 1423|    511|                            uint8_t buf[sizeof(uint16_t)];
 1424|    511|                            if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1424:33): [True: 9, False: 502]
  ------------------
 1425|      9|                            {
 1426|      9|                                ec = cbor_errc::unexpected_eof;
 1427|      9|                                more_ = false;
 1428|      9|                                return val;
 1429|      9|                            }
 1430|    502|                            auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1431|    502|                            val = static_cast<int64_t>(-1)- u;
 1432|    502|                            break;
 1433|    511|                        }
 1434|       |
 1435|  1.80k|                    case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1435:21): [True: 1.80k, False: 178k]
  ------------------
 1436|  1.80k|                        {
 1437|  1.80k|                            uint8_t buf[sizeof(uint32_t)];
 1438|  1.80k|                            if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1438:33): [True: 9, False: 1.79k]
  ------------------
 1439|      9|                            {
 1440|      9|                                ec = cbor_errc::unexpected_eof;
 1441|      9|                                more_ = false;
 1442|      9|                                return val;
 1443|      9|                            }
 1444|  1.79k|                            auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1445|  1.79k|                            val = static_cast<int64_t>(-1)- u;
 1446|  1.79k|                            break;
 1447|  1.80k|                        }
 1448|       |
 1449|  1.95k|                    case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1449:21): [True: 1.95k, False: 178k]
  ------------------
 1450|  1.95k|                        {
 1451|  1.95k|                            uint8_t buf[sizeof(uint64_t)];
 1452|  1.95k|                            if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1452:33): [True: 19, False: 1.93k]
  ------------------
 1453|     19|                            {
 1454|     19|                                ec = cbor_errc::unexpected_eof;
 1455|     19|                                more_ = false;
 1456|     19|                                return val;
 1457|     19|                            }
 1458|  1.93k|                            auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1459|  1.93k|                            if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1459:33): [True: 141, False: 1.79k]
  ------------------
 1460|    141|                            {
 1461|    141|                                ec = cbor_errc::invalid_bigdecimal;
 1462|    141|                                more_ = false;
 1463|    141|                                return val;
 1464|    141|                            }
 1465|  1.79k|                            if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  1.79k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 385, False: 1.40k]
  |  |  ------------------
  ------------------
 1466|    385|                            {
 1467|    385|                                val = (std::numeric_limits<int64_t>::min)();
 1468|    385|                            }
 1469|  1.40k|                            else
 1470|  1.40k|                            {
 1471|  1.40k|                                val = static_cast<int64_t>(-1)- static_cast<int64_t>(u);
 1472|  1.40k|                            }
 1473|  1.79k|                            break;
 1474|  1.93k|                        }
 1475|   180k|                }
 1476|   179k|                break;
 1477|       |
 1478|   179k|                case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1478:17): [True: 0, False: 180k]
  ------------------
 1479|      0|                {
 1480|      0|                    source_.ignore(1);
 1481|      0|                    uint64_t u = read_unsigned_integer(info, ec);
 1482|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1483|      0|                    {
 1484|      0|                        return 0;
 1485|      0|                    }
 1486|      0|                    if (u <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1486:25): [True: 0, False: 0]
  ------------------
 1487|      0|                    {
 1488|      0|                        val = u;
 1489|      0|                    }
 1490|      0|                    else
 1491|      0|                    {
 1492|       |                        // error;
 1493|      0|                    }
 1494|       |                    
 1495|      0|                    break;
 1496|      0|                }
 1497|      0|                break;
 1498|      0|            default:
  ------------------
  |  Branch (1498:13): [True: 0, False: 180k]
  ------------------
 1499|      0|                break;
 1500|   180k|        }
 1501|       |
 1502|   179k|        return val;
 1503|   180k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE13read_bigfloatEhRNS4_12basic_stringIcNS4_11char_traitsIcEES6_EERNS4_10error_codeE:
 1901|   152k|    {
 1902|   152k|        std::size_t size = read_unsigned_integer(container_info, ec);
 1903|   152k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   152k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 8, False: 152k]
  |  |  ------------------
  ------------------
 1904|      8|        {
 1905|      8|            return;
 1906|      8|        }
 1907|   152k|        if (size != 2)
  ------------------
  |  Branch (1907:13): [True: 216, False: 152k]
  ------------------
 1908|    216|        {
 1909|    216|            ec = cbor_errc::invalid_bigfloat;
 1910|    216|            more_ = false;
 1911|    216|            return;
 1912|    216|        }
 1913|       |
 1914|   152k|        auto c = source_.peek();
 1915|   152k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   152k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 26, False: 152k]
  |  |  ------------------
  ------------------
 1916|     26|        {
 1917|     26|            ec = cbor_errc::unexpected_eof;
 1918|     26|            more_ = false;
 1919|     26|            return;
 1920|     26|        }
 1921|   152k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1922|   152k|        uint8_t info = get_additional_information(c.value);
 1923|   152k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   153k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 152k]
  |  |  |  Branch (79:50): [True: 1.17k, False: 150k]
  |  |  |  Branch (79:50): [True: 6, False: 1.16k]
  |  |  ------------------
  ------------------
 1924|      6|        {
 1925|      6|            ec = cbor_errc::reserved_additional_info;
 1926|      6|            more_ = false;
 1927|      6|            return;
 1928|      6|        }
 1929|       |
 1930|   152k|        int64_t exponent = 0;
 1931|   152k|        switch (major_type)
 1932|   152k|        {
 1933|  57.0k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1933:13): [True: 57.0k, False: 95.0k]
  ------------------
 1934|  57.0k|            {
 1935|  57.0k|                source_.ignore(1);
 1936|  57.0k|                exponent = read_unsigned_integer(info, ec);
 1937|  57.0k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  57.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 56.9k]
  |  |  ------------------
  ------------------
 1938|      5|                {
 1939|      5|                    return;
 1940|      5|                }
 1941|  56.9k|                break;
 1942|  57.0k|            }
 1943|  94.9k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1943:13): [True: 94.9k, False: 57.0k]
  ------------------
 1944|  94.9k|            {
 1945|  94.9k|                exponent = read_int64(ec);
 1946|  94.9k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  94.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 58, False: 94.9k]
  |  |  ------------------
  ------------------
 1947|     58|                {
 1948|     58|                    return;
 1949|     58|                }
 1950|  94.9k|                break;
 1951|  94.9k|            }
 1952|  94.9k|            default:
  ------------------
  |  Branch (1952:13): [True: 62, False: 151k]
  ------------------
 1953|     62|            {
 1954|     62|                ec = cbor_errc::invalid_bigfloat;
 1955|     62|                more_ = false;
 1956|     62|                return;
 1957|  94.9k|            }
 1958|   152k|        }
 1959|       |
 1960|   151k|        c = source_.peek();
 1961|   151k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   151k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 88, False: 151k]
  |  |  ------------------
  ------------------
 1962|     88|        {
 1963|     88|            ec = cbor_errc::unexpected_eof;
 1964|     88|            more_ = false;
 1965|     88|            return;
 1966|     88|        }
 1967|   151k|        major_type = get_major_type(c.value);
 1968|   151k|        info = get_additional_information(c.value);
 1969|   151k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   152k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 16, False: 151k]
  |  |  |  Branch (79:50): [True: 604, False: 151k]
  |  |  |  Branch (79:50): [True: 16, False: 588]
  |  |  ------------------
  ------------------
 1970|     16|        {
 1971|     16|            ec = cbor_errc::reserved_additional_info;
 1972|     16|            more_ = false;
 1973|     16|            return;
 1974|     16|        }
 1975|       |
 1976|   151k|        switch (major_type)
 1977|   151k|        {
 1978|  8.27k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1978:13): [True: 8.27k, False: 143k]
  ------------------
 1979|  8.27k|            {
 1980|  8.27k|                source_.ignore(1);
 1981|  8.27k|                uint64_t val = read_unsigned_integer(info, ec);
 1982|  8.27k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.27k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 8.26k]
  |  |  ------------------
  ------------------
 1983|      5|                {
 1984|      5|                    return;
 1985|      5|                }
 1986|  8.26k|                str.push_back('0');
 1987|  8.26k|                str.push_back('x');
 1988|  8.26k|                jsoncons::integer_to_hex(val, str);
 1989|  8.26k|                break;
 1990|  8.27k|            }
 1991|  26.8k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1991:13): [True: 26.8k, False: 124k]
  ------------------
 1992|  26.8k|            {
 1993|  26.8k|                int64_t val = read_int64(ec);
 1994|  26.8k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  26.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 26.8k]
  |  |  ------------------
  ------------------
 1995|     12|                {
 1996|     12|                    return;
 1997|     12|                }
 1998|  26.8k|                str.push_back('-');
 1999|  26.8k|                str.push_back('0');
 2000|  26.8k|                str.push_back('x');
 2001|  26.8k|                jsoncons::integer_to_hex(static_cast<uint64_t>(-1 - val) + 1u, str);
 2002|  26.8k|                break;
 2003|  26.8k|            }
 2004|   116k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (2004:13): [True: 116k, False: 35.2k]
  ------------------
 2005|   116k|            {
 2006|   116k|                uint8_t x;
 2007|   116k|                if (source_.read(&x, 1) == 0)
  ------------------
  |  Branch (2007:21): [True: 0, False: 116k]
  ------------------
 2008|      0|                {
 2009|      0|                    ec = cbor_errc::unexpected_eof;
 2010|      0|                    more_ = false;
 2011|      0|                    return;
 2012|      0|                }
 2013|   116k|                uint8_t tag = get_additional_information(x);
 2014|   116k|                if (JSONCONS_UNLIKELY(tag >= 0x1C && tag <= 0x1E))
  ------------------
  |  |   79|   116k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 116k]
  |  |  |  Branch (79:50): [True: 352, False: 116k]
  |  |  |  Branch (79:50): [True: 0, False: 352]
  |  |  ------------------
  ------------------
 2015|      0|                {
 2016|      0|                    ec = cbor_errc::reserved_additional_info;
 2017|      0|                    more_ = false;
 2018|      0|                    return;
 2019|      0|                }
 2020|       |
 2021|   116k|                c = source_.peek();
 2022|   116k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   116k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 23, False: 116k]
  |  |  ------------------
  ------------------
 2023|     23|                {
 2024|     23|                    ec = cbor_errc::unexpected_eof;
 2025|     23|                    more_ = false;
 2026|     23|                    return;
 2027|     23|                }
 2028|       |
 2029|   116k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2029:21): [True: 98.6k, False: 17.9k]
  ------------------
 2030|  98.6k|                {
 2031|  98.6k|                    bytes_buffer_.clear(); 
 2032|  98.6k|                    read_byte_string(bytes_buffer_, ec);
 2033|  98.6k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  98.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 157, False: 98.4k]
  |  |  ------------------
  ------------------
 2034|    157|                    {
 2035|    157|                        more_ = false;
 2036|    157|                        return;
 2037|    157|                    }
 2038|  98.4k|                    if (tag == 2)
  ------------------
  |  Branch (2038:25): [True: 8.63k, False: 89.8k]
  ------------------
 2039|  8.63k|                    {
 2040|  8.63k|                        str.push_back('0');
 2041|  8.63k|                        str.push_back('x');
 2042|  8.63k|                        bigint b = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 2043|  8.63k|                        b.write_string_hex(str);
 2044|  8.63k|                    }
 2045|  89.8k|                    else if (tag == 3)
  ------------------
  |  Branch (2045:30): [True: 88.2k, False: 1.55k]
  ------------------
 2046|  88.2k|                    {
 2047|  88.2k|                        str.push_back('-');
 2048|  88.2k|                        str.push_back('0');
 2049|  88.2k|                        bigint b = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 2050|  88.2k|                        b = -1 - b;
 2051|  88.2k|                        b.write_string_hex(str);
 2052|  88.2k|                        str[2] = 'x'; // overwrite minus
 2053|  88.2k|                    }
 2054|  98.4k|                }
 2055|   116k|                break;
 2056|   116k|            }
 2057|   116k|            default:
  ------------------
  |  Branch (2057:13): [True: 85, False: 151k]
  ------------------
 2058|     85|            {
 2059|     85|                ec = cbor_errc::invalid_bigfloat;
 2060|     85|                more_ = false;
 2061|     85|                return;
 2062|   116k|            }
 2063|   151k|        }
 2064|       |
 2065|   151k|        str.push_back('p');
 2066|   151k|        if (exponent >=0)
  ------------------
  |  Branch (2066:13): [True: 57.9k, False: 93.5k]
  ------------------
 2067|  57.9k|        {
 2068|  57.9k|            jsoncons::integer_to_hex(static_cast<uint64_t>(exponent), str);
 2069|  57.9k|        }
 2070|  93.5k|        else
 2071|  93.5k|        {
 2072|  93.5k|            str.push_back('-');
 2073|  93.5k|            jsoncons::integer_to_hex(static_cast<uint64_t>(-1 - exponent) + 1u, str);
 2074|  93.5k|        }
 2075|   151k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE19read_mdarray_headerERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 2776|  74.8k|    {
 2777|  74.8k|        uint8_t b;
 2778|  74.8k|        if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2778:13): [True: 0, False: 74.8k]
  ------------------
 2779|      0|        {
 2780|      0|            ec = cbor_errc::unexpected_eof;
 2781|      0|            more_ = false;
 2782|      0|            return;
 2783|      0|        }
 2784|  74.8k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(b);
 2785|  74.8k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::array);
  ------------------
  |  |   54|  74.8k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 74.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 ))); }
  ------------------
 2786|  74.8k|        uint8_t info = get_additional_information(b);
 2787|  74.8k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   129k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 74.8k]
  |  |  |  Branch (79:50): [True: 54.6k, False: 20.1k]
  |  |  |  Branch (79:50): [True: 0, False: 54.6k]
  |  |  ------------------
  ------------------
 2788|      0|        {
 2789|      0|            ec = cbor_errc::reserved_additional_info;
 2790|      0|            more_ = false;
 2791|      0|            return;
 2792|      0|        }
 2793|       |       
 2794|  74.8k|        read_extents(ec);   
 2795|  74.8k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  74.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 802, False: 74.0k]
  |  |  ------------------
  ------------------
 2796|    802|        {
 2797|    802|            return;
 2798|    802|        }
 2799|       |
 2800|  74.0k|        read_tags(ec);
 2801|  74.0k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  74.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 102, False: 73.9k]
  |  |  ------------------
  ------------------
 2802|    102|        {
 2803|    102|            return;
 2804|    102|        }
 2805|  73.9k|        auto c = source_.peek();
 2806|  73.9k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  73.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 73.9k]
  |  |  ------------------
  ------------------
 2807|      0|        {
 2808|      0|            ec = cbor_errc::unexpected_eof;
 2809|      0|            more_ = false;
 2810|      0|            return;
 2811|      0|        }
 2812|  73.9k|        major_type = get_major_type(c.value);
 2813|  73.9k|        info = get_additional_information(c.value);
 2814|  73.9k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  85.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 73.9k]
  |  |  |  Branch (79:50): [True: 11.1k, False: 62.7k]
  |  |  |  Branch (79:50): [True: 5, False: 11.1k]
  |  |  ------------------
  ------------------
 2815|      5|        {
 2816|      5|            ec = cbor_errc::reserved_additional_info;
 2817|      5|            more_ = false;
 2818|      5|            return;
 2819|      5|        }
 2820|  73.9k|        state_stack_.emplace_back(parse_mode::multi_dim, 0);
 2821|  73.9k|        ++state_stack_.back().index;
 2822|       |
 2823|  73.9k|        if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::row_major) 
  ------------------
  |  Branch (2823:13): [True: 25.5k, False: 48.3k]
  |  Branch (2823:77): [True: 19.7k, False: 5.77k]
  ------------------
 2824|  19.7k|        {
 2825|  19.7k|            source_.ignore(1);
 2826|  19.7k|            begin_classical_array_storage(info, ec);
 2827|  19.7k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  19.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 14, False: 19.7k]
  |  |  ------------------
  ------------------
 2828|     14|            {
 2829|     14|                return;
 2830|     14|            }
 2831|  19.7k|            auto iter = std::make_shared<cbor_mdarray_row_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2832|  19.7k|            typed_array_stack_.push_back(iter);
 2833|  19.7k|            if (!iter->done())
  ------------------
  |  Branch (2833:17): [True: 19.7k, False: 0]
  ------------------
 2834|  19.7k|            {
 2835|  19.7k|                iter->next(visitor, *this, ec);
 2836|  19.7k|            }
 2837|  19.7k|        }
 2838|  54.1k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::column_major) 
  ------------------
  |  Branch (2838:18): [True: 5.77k, False: 48.3k]
  |  Branch (2838:82): [True: 5.77k, False: 0]
  ------------------
 2839|  5.77k|        {
 2840|  5.77k|            source_.ignore(1);
 2841|  5.77k|            begin_classical_array_storage(info, ec);
 2842|  5.77k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.77k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 5.77k]
  |  |  ------------------
  ------------------
 2843|      5|            {
 2844|      5|                return;
 2845|      5|            }
 2846|  5.77k|            auto iter = std::make_shared<cbor_mdarray_column_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2847|  5.77k|            typed_array_stack_.push_back(iter);
 2848|  5.77k|            if (!iter->done())
  ------------------
  |  Branch (2848:17): [True: 5.77k, False: 0]
  ------------------
 2849|  5.77k|            {
 2850|  5.77k|                iter->next(visitor, *this, ec);
 2851|  5.77k|            }
 2852|  5.77k|        }
 2853|  48.3k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2853:18): [True: 48.2k, False: 160]
  ------------------
 2854|  48.2k|        {
 2855|  48.2k|            std::size_t typed_array_count = typed_array_stack_.size();
 2856|  48.2k|            read_byte_string_from_source read(this);
 2857|  48.2k|            read_byte_string(read, visitor, ec);
 2858|  48.2k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  48.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.60k, False: 45.5k]
  |  |  ------------------
  ------------------
 2859|  2.60k|            {
 2860|  2.60k|                return;
 2861|  2.60k|            }
 2862|  45.5k|            if (typed_array_stack_.size() == typed_array_count)
  ------------------
  |  Branch (2862:17): [True: 43, False: 45.5k]
  ------------------
 2863|     43|            {
 2864|       |                // Byte string storage must be a typed array
 2865|     43|                ec = cbor_errc::bad_mdarray;
 2866|     43|                return;
 2867|     43|            }
 2868|  45.5k|        }
 2869|    160|        else
 2870|    160|        {
 2871|    160|            ec = cbor_errc::bad_mdarray;
 2872|    160|            return;
 2873|    160|        }
 2874|       |        // cursor case
 2875|  73.9k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE12read_extentsERNS4_10error_codeE:
 2878|  74.8k|    {
 2879|  74.8k|        extents_.clear();
 2880|       |
 2881|  74.8k|        auto b = source_.peek();
 2882|  74.8k|        if (JSONCONS_UNLIKELY(b.eof))
  ------------------
  |  |   79|  74.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 24, False: 74.7k]
  |  |  ------------------
  ------------------
 2883|     24|        {
 2884|     24|            ec = cbor_errc::unexpected_eof;
 2885|     24|            more_ = false;
 2886|     24|            return;
 2887|     24|        }
 2888|  74.7k|        if (get_major_type(b.value) != jsoncons::cbor::detail::cbor_major_type::array)
  ------------------
  |  Branch (2888:13): [True: 81, False: 74.7k]
  ------------------
 2889|     81|        {
 2890|     81|            ec = cbor_errc::bad_extents;
 2891|     81|            more_ = false;
 2892|     81|            return;
 2893|     81|        }
 2894|  74.7k|        uint8_t info = get_additional_information(b.value);
 2895|  74.7k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   135k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 74.7k]
  |  |  |  Branch (79:50): [True: 61.1k, False: 13.5k]
  |  |  |  Branch (79:50): [True: 7, False: 61.1k]
  |  |  ------------------
  ------------------
 2896|      7|        {
 2897|      7|            ec = cbor_errc::reserved_additional_info;
 2898|      7|            more_ = false;
 2899|      7|            return;
 2900|      7|        }
 2901|       |
 2902|  74.7k|        source_.ignore(1);
 2903|  74.7k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (2903:13): [True: 61.1k, False: 13.5k]
  ------------------
 2904|  61.1k|        {
 2905|  61.1k|             bool done = false;
 2906|  14.6M|             while (!done)
  ------------------
  |  Branch (2906:21): [True: 14.5M, False: 60.9k]
  ------------------
 2907|  14.5M|             {
 2908|  14.5M|                 auto c = source_.peek();
 2909|  14.5M|                 if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  14.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 117, False: 14.5M]
  |  |  ------------------
  ------------------
 2910|    117|                 {
 2911|    117|                     ec = cbor_errc::unexpected_eof;
 2912|    117|                     more_ = false;
 2913|    117|                     return;
 2914|    117|                 }
 2915|  14.5M|                 if (c.value == 0xff)
  ------------------
  |  Branch (2915:22): [True: 60.9k, False: 14.5M]
  ------------------
 2916|  60.9k|                 {
 2917|  60.9k|                     source_.ignore(1);
 2918|  60.9k|                     done = true;
 2919|  60.9k|                 }
 2920|  14.5M|                 else
 2921|  14.5M|                 {
 2922|  14.5M|                     source_.ignore(1);
 2923|  14.5M|                     std::size_t extent = read_size(get_additional_information(c.value), ec);
 2924|  14.5M|                     if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  14.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 125, False: 14.5M]
  |  |  ------------------
  ------------------
 2925|    125|                     {
 2926|    125|                         more_ = false;
 2927|    125|                         return;
 2928|    125|                     }
 2929|  14.5M|                     extents_.push_back(extent);
 2930|  14.5M|                 }
 2931|  14.5M|             }
 2932|  61.1k|        }
 2933|  13.5k|        else 
 2934|  13.5k|        {
 2935|  13.5k|            std::size_t size = read_size(info, ec);
 2936|  13.5k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 13.5k]
  |  |  ------------------
  ------------------
 2937|      6|            {
 2938|      6|                more_ = false;
 2939|      6|                return;
 2940|      6|            }
 2941|   251k|            for (std::size_t i = 0; more_ && i < size; ++i)
  ------------------
  |  Branch (2941:37): [True: 251k, False: 0]
  |  Branch (2941:46): [True: 238k, False: 13.2k]
  ------------------
 2942|   238k|            {
 2943|   238k|                uint8_t initial_byte;
 2944|   238k|                if (source_.read(&initial_byte, 1) == 0)
  ------------------
  |  Branch (2944:21): [True: 164, False: 237k]
  ------------------
 2945|    164|                {
 2946|    164|                    ec = cbor_errc::unexpected_eof;
 2947|    164|                    more_ = false;
 2948|    164|                    return;
 2949|    164|                }
 2950|   237k|                if (JSONCONS_UNLIKELY(get_major_type(initial_byte) != jsoncons::cbor::detail::cbor_major_type::unsigned_integer))
  ------------------
  |  |   79|   237k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 133, False: 237k]
  |  |  ------------------
  ------------------
 2951|    133|                {
 2952|    133|                    ec = cbor_errc::unknown_type;
 2953|    133|                    more_ = false;
 2954|    133|                    return;
 2955|    133|                }
 2956|   237k|                info = get_additional_information(initial_byte);
 2957|   237k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   237k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 237k]
  |  |  |  Branch (79:50): [True: 12, False: 237k]
  |  |  |  Branch (79:50): [True: 5, False: 7]
  |  |  ------------------
  ------------------
 2958|      5|                {
 2959|      5|                    ec = cbor_errc::reserved_additional_info;
 2960|      5|                    more_ = false;
 2961|      5|                    return;
 2962|      5|                }
 2963|   237k|                std::size_t extent = read_size(info, ec);
 2964|   237k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   237k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 237k]
  |  |  ------------------
  ------------------
 2965|     12|                {
 2966|     12|                    more_ = false;
 2967|     12|                    return;
 2968|     12|                }
 2969|   237k|                extents_.push_back(extent);
 2970|   237k|            }
 2971|  13.5k|        }
 2972|  74.1k|        auto r = calculate_mdarray_size(extents_);
 2973|  74.1k|        if (!r || *r == 0)
  ------------------
  |  Branch (2973:13): [True: 103, False: 74.0k]
  |  Branch (2973:19): [True: 25, False: 74.0k]
  ------------------
 2974|    128|        {
 2975|    128|            ec = cbor_errc::bad_extents;
 2976|    128|            more_ = false;
 2977|    128|            return;
 2978|    128|        }
 2979|  74.0k|        mdarray_size_ = *r;
 2980|  74.0k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE29begin_classical_array_storageEhRNS4_10error_codeE:
 1001|  25.5k|    {
 1002|  25.5k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  25.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 25.5k]
  |  |  ------------------
  ------------------
 1003|      5|        {
 1004|      5|            ec = cbor_errc::max_nesting_depth_exceeded;
 1005|      5|            more_ = false;
 1006|      5|            return;
 1007|      5|        }
 1008|  25.5k|        bool pop_stringref_map_stack = false;
 1009|  25.5k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1009:13): [True: 3.46k, False: 22.0k]
  ------------------
 1010|  3.46k|        {
 1011|  3.46k|            stringref_map_stack_.emplace_back();
 1012|  3.46k|            other_tags_[stringref_namespace_tag] = false;
 1013|  3.46k|            pop_stringref_map_stack = true;
 1014|  3.46k|        }
 1015|  25.5k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1015:13): [True: 11.0k, False: 14.5k]
  ------------------
 1016|  11.0k|        {
 1017|  11.0k|            state_stack_.emplace_back(parse_mode::indefinite_array, 0, pop_stringref_map_stack);
 1018|  11.0k|        }
 1019|  14.5k|        else // definite length
 1020|  14.5k|        {
 1021|  14.5k|            std::size_t len = read_size(info, ec);
 1022|  14.5k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  14.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 14, False: 14.4k]
  |  |  ------------------
  ------------------
 1023|     14|            {
 1024|     14|                return;
 1025|     14|            }
 1026|  14.4k|            state_stack_.emplace_back(parse_mode::array, len, pop_stringref_map_stack);
 1027|  14.4k|        }
 1028|  25.5k|        more_ = !cursor_mode_;
 1029|  25.5k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE11begin_arrayEhRNS_21basic_generic_visitorIcEERNS4_10error_codeE:
  938|   746k|    {
  939|   746k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|   746k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 35, False: 746k]
  |  |  ------------------
  ------------------
  940|     35|        {
  941|     35|            ec = cbor_errc::max_nesting_depth_exceeded;
  942|     35|            more_ = false;
  943|     35|            return;
  944|     35|        } 
  945|   746k|        semantic_tag tag = semantic_tag::none;
  946|   746k|        bool pop_stringref_map_stack = false;
  947|   746k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (947:13): [True: 7.78k, False: 738k]
  ------------------
  948|  7.78k|        {
  949|  7.78k|            stringref_map_stack_.emplace_back();
  950|  7.78k|            other_tags_[stringref_namespace_tag] = false;
  951|  7.78k|            pop_stringref_map_stack = true;
  952|  7.78k|        }
  953|   746k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (953:13): [True: 123k, False: 622k]
  ------------------
  954|   123k|        {
  955|   123k|            state_stack_.emplace_back(parse_mode::indefinite_array,0,pop_stringref_map_stack);
  956|   123k|            visitor.begin_array(tag, *this, ec);
  957|   123k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   123k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 123k]
  |  |  ------------------
  ------------------
  958|      0|            {
  959|      0|                return;
  960|      0|            }
  961|   123k|        }
  962|   622k|        else // definite length
  963|   622k|        {
  964|   622k|            std::size_t len = read_size(info, ec);
  965|   622k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   622k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 127, False: 622k]
  |  |  ------------------
  ------------------
  966|    127|            {
  967|    127|                return;
  968|    127|            }
  969|   622k|            state_stack_.emplace_back(parse_mode::array,len,pop_stringref_map_stack);
  970|   622k|            visitor.begin_array(len, tag, *this, ec);
  971|   622k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   622k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 622k]
  |  |  ------------------
  ------------------
  972|      0|            {
  973|      0|                return;
  974|      0|            }
  975|   622k|        }
  976|   746k|        more_ = !cursor_mode_;
  977|   746k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE12begin_objectEhRNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 1048|  18.8M|    {
 1049|  18.8M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  18.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 19, False: 18.8M]
  |  |  ------------------
  ------------------
 1050|     19|        {
 1051|     19|            ec = cbor_errc::max_nesting_depth_exceeded;
 1052|     19|            more_ = false;
 1053|     19|            return;
 1054|     19|        } 
 1055|  18.8M|        bool pop_stringref_map_stack = false;
 1056|  18.8M|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1056:13): [True: 11.7k, False: 18.8M]
  ------------------
 1057|  11.7k|        {
 1058|  11.7k|            stringref_map_stack_.emplace_back();
 1059|  11.7k|            other_tags_[stringref_namespace_tag] = false;
 1060|  11.7k|            pop_stringref_map_stack = true;
 1061|  11.7k|        }
 1062|  18.8M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1062:13): [True: 73.3k, False: 18.7M]
  ------------------
 1063|  73.3k|        {
 1064|  73.3k|            state_stack_.emplace_back(parse_mode::indefinite_map_key,0,pop_stringref_map_stack);
 1065|  73.3k|            visitor.begin_object(semantic_tag::none, *this, ec);
 1066|  73.3k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  73.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 73.3k]
  |  |  ------------------
  ------------------
 1067|      0|            {
 1068|      0|                return;
 1069|      0|            }
 1070|  73.3k|        }
 1071|  18.7M|        else // definite_length
 1072|  18.7M|        {
 1073|  18.7M|            std::size_t len = read_size(info, ec);
 1074|  18.7M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 58, False: 18.7M]
  |  |  ------------------
  ------------------
 1075|     58|            {
 1076|     58|                return;
 1077|     58|            }
 1078|  18.7M|            state_stack_.emplace_back(parse_mode::map_key,len,pop_stringref_map_stack);
 1079|  18.7M|            visitor.begin_object(len, semantic_tag::none, *this, ec);
 1080|  18.7M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 18.7M]
  |  |  ------------------
  ------------------
 1081|      0|            {
 1082|      0|                return;
 1083|      0|            }
 1084|  18.7M|        }
 1085|  18.8M|        more_ = !cursor_mode_;
 1086|  18.8M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE9end_arrayERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
  980|   456k|    {
  981|   456k|        --nesting_depth_;
  982|       |
  983|   456k|        visitor.end_array(*this, ec);
  984|   456k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   456k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 456k]
  |  |  ------------------
  ------------------
  985|      0|        {
  986|      0|            return;
  987|      0|        }
  988|   456k|        more_ = !cursor_mode_;
  989|   456k|        if (level() == mark_level_)
  ------------------
  |  Branch (989:13): [True: 217, False: 456k]
  ------------------
  990|    217|        {
  991|    217|            more_ = false;
  992|    217|        }
  993|   456k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (993:13): [True: 1.61k, False: 455k]
  ------------------
  994|  1.61k|        {
  995|  1.61k|            stringref_map_stack_.pop_back();
  996|  1.61k|        }
  997|   456k|        state_stack_.pop_back();
  998|   456k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE10end_objectERNS_21basic_generic_visitorIcEERNS4_10error_codeE:
 1089|  18.5M|    {
 1090|  18.5M|        --nesting_depth_;
 1091|  18.5M|        visitor.end_object(*this, ec);
 1092|  18.5M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 18.5M]
  |  |  ------------------
  ------------------
 1093|      0|        {
 1094|      0|            return;
 1095|      0|        }
 1096|  18.5M|        more_ = !cursor_mode_;
 1097|  18.5M|        if (level() == mark_level_)
  ------------------
  |  Branch (1097:13): [True: 1.34k, False: 18.5M]
  ------------------
 1098|  1.34k|        {
 1099|  1.34k|            more_ = false;
 1100|  1.34k|        }
 1101|  18.5M|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1101:13): [True: 2.72k, False: 18.5M]
  ------------------
 1102|  2.72k|        {
 1103|  2.72k|            stringref_map_stack_.pop_back();
 1104|  2.72k|        }
 1105|  18.5M|        state_stack_.pop_back();
 1106|  18.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11cursor_modeEb:
  298|  17.4k|    {
  299|  17.4k|        cursor_mode_ = value;
  300|  17.4k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5levelEv:
  303|  28.8M|    {
  304|  28.8M|        return static_cast<int>(state_stack_.size());
  305|  28.8M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE7restartEv:
  240|  56.7M|    {
  241|  56.7M|        more_ = !done_;
  242|  56.7M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE7stoppedEv:
  323|   113M|    {
  324|   113M|        return !more_;
  325|   113M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  348|  56.7M|    {
  349|   290M|        while (!done_ && more_)
  ------------------
  |  Branch (349:16): [True: 290M, False: 11.2k]
  |  Branch (349:26): [True: 233M, False: 56.7M]
  ------------------
  350|   233M|        {
  351|   233M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (351:21): [True: 233M, False: 0]
  ------------------
  352|   233M|            {
  353|  76.9k|                case parse_mode::multi_dim:
  ------------------
  |  Branch (353:17): [True: 76.9k, False: 233M]
  ------------------
  354|  76.9k|                {
  355|  76.9k|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  76.9k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 76.9k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  356|  76.9k|                    typed_array_stack_.pop_back();
  357|  76.9k|                    state_stack_.pop_back();
  358|  76.9k|                    break;
  359|  76.9k|                }
  360|  31.1M|                case parse_mode::typed_array:
  ------------------
  |  Branch (360:17): [True: 31.1M, False: 202M]
  ------------------
  361|  31.1M|                {
  362|  31.1M|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  31.1M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 31.1M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  363|  31.1M|                    read_typed_array_item(visitor, ec);
  364|  31.1M|                    auto iter = typed_array_stack_.back();
  365|  31.1M|                    if (iter->done())
  ------------------
  |  Branch (365:25): [True: 281k, False: 30.9M]
  ------------------
  366|   281k|                    {
  367|   281k|                        if (level() == mark_level_)
  ------------------
  |  Branch (367:29): [True: 0, False: 281k]
  ------------------
  368|      0|                        {
  369|      0|                            more_ = false;
  370|      0|                        }
  371|   281k|                        if (!is_multi_dim())
  ------------------
  |  Branch (371:29): [True: 215k, False: 66.0k]
  ------------------
  372|   215k|                        {
  373|   215k|                            typed_array_stack_.pop_back();
  374|   215k|                        }
  375|   281k|                        state_stack_.pop_back();
  376|   281k|                    }
  377|  31.1M|                    break;
  378|  31.1M|                }
  379|  54.8M|                case parse_mode::array:
  ------------------
  |  Branch (379:17): [True: 54.8M, False: 178M]
  ------------------
  380|  54.8M|                {
  381|  54.8M|                    if (is_multi_dim())
  ------------------
  |  Branch (381:25): [True: 34.9M, False: 19.9M]
  ------------------
  382|  34.9M|                    {
  383|  34.9M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  34.9M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 34.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 ))); }
  ------------------
  384|  34.9M|                        auto iter = typed_array_stack_.back();
  385|  34.9M|                        if (!iter->done())
  ------------------
  |  Branch (385:29): [True: 34.9M, False: 3.89k]
  ------------------
  386|  34.9M|                        {
  387|  34.9M|                            iter->next(visitor, *this, ec);
  388|  34.9M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  34.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.21k, False: 34.9M]
  |  |  ------------------
  ------------------
  389|  1.21k|                            {
  390|  1.21k|                                return;
  391|  1.21k|                            }
  392|  34.9M|                        }
  393|  3.89k|                        else
  394|  3.89k|                        {
  395|  3.89k|                            if (iter->count() != state_stack_.back().length)
  ------------------
  |  Branch (395:33): [True: 370, False: 3.52k]
  ------------------
  396|    370|                            {
  397|       |                                //std::cout << state_stack_.back().index << "!=" << state_stack_.back().length << "\n";
  398|    370|                                ec = cbor_errc::bad_mdarray;
  399|    370|                                return;
  400|    370|                            }
  401|  3.52k|                            end_classical_array_storage(ec);
  402|  3.52k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.52k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.52k]
  |  |  ------------------
  ------------------
  403|      0|                            {
  404|      0|                                return;
  405|      0|                            }
  406|  3.52k|                        }
  407|  34.9M|                    }
  408|  19.9M|                    else
  409|  19.9M|                    {
  410|  19.9M|                        if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (410:29): [True: 19.2M, False: 623k]
  ------------------
  411|  19.2M|                        {
  412|  19.2M|                            ++state_stack_.back().index;
  413|  19.2M|                            read_item(visitor, ec);
  414|  19.2M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  19.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 11.5k, False: 19.2M]
  |  |  ------------------
  ------------------
  415|  11.5k|                            {
  416|  11.5k|                                return;
  417|  11.5k|                            }
  418|  19.2M|                        }
  419|   623k|                        else
  420|   623k|                        {
  421|   623k|                            end_array(visitor, ec);
  422|   623k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   623k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 623k]
  |  |  ------------------
  ------------------
  423|      0|                            {
  424|      0|                                return;
  425|      0|                            }
  426|   623k|                        }
  427|  19.9M|                    }
  428|  54.8M|                    break;
  429|  54.8M|                }
  430|  54.8M|                case parse_mode::indefinite_array:
  ------------------
  |  Branch (430:17): [True: 45.5M, False: 187M]
  ------------------
  431|  45.5M|                {
  432|  45.5M|                    if (is_multi_dim()) 
  ------------------
  |  Branch (432:25): [True: 12.1M, False: 33.3M]
  ------------------
  433|  12.1M|                    {
  434|  12.1M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  12.1M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 12.1M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  435|  12.1M|                        auto iter = typed_array_stack_.back();
  436|  12.1M|                        if (!iter->done())
  ------------------
  |  Branch (436:29): [True: 12.1M, False: 7.51k]
  ------------------
  437|  12.1M|                        {
  438|  12.1M|                            iter->next(visitor, *this, ec);
  439|  12.1M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 499, False: 12.1M]
  |  |  ------------------
  ------------------
  440|    499|                            {
  441|    499|                                return;
  442|    499|                            }
  443|  12.1M|                        }
  444|  7.51k|                        else
  445|  7.51k|                        {
  446|  7.51k|                            auto c = source_.peek();
  447|  7.51k|                            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  7.51k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 22, False: 7.49k]
  |  |  ------------------
  ------------------
  448|     22|                            {
  449|     22|                                ec = cbor_errc::unexpected_eof;
  450|     22|                                more_ = false;
  451|     22|                                return;
  452|     22|                            }
  453|  7.49k|                            if (c.value == 0xff)
  ------------------
  |  Branch (453:33): [True: 7.41k, False: 76]
  ------------------
  454|  7.41k|                            {
  455|  7.41k|                                source_.ignore(1);
  456|  7.41k|                            }
  457|     76|                            else
  458|     76|                            {
  459|     76|                                ec = cbor_errc::bad_mdarray;
  460|     76|                                return;
  461|     76|                            }
  462|  7.41k|                            end_classical_array_storage(ec);
  463|  7.41k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.41k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 7.41k]
  |  |  ------------------
  ------------------
  464|      0|                            {
  465|      0|                                return;
  466|      0|                            }
  467|  7.41k|                        }
  468|  12.1M|                    }
  469|  33.3M|                    else
  470|  33.3M|                    {
  471|  33.3M|                        auto c = source_.peek();
  472|  33.3M|                        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  33.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.50k, False: 33.3M]
  |  |  ------------------
  ------------------
  473|  1.50k|                        {
  474|  1.50k|                            ec = cbor_errc::unexpected_eof;
  475|  1.50k|                            more_ = false;
  476|  1.50k|                            return;
  477|  1.50k|                        }
  478|  33.3M|                        if (c.value == 0xff)
  ------------------
  |  Branch (478:29): [True: 45.8k, False: 33.3M]
  ------------------
  479|  45.8k|                        {
  480|  45.8k|                            source_.ignore(1);
  481|  45.8k|                            end_array(visitor, ec);
  482|  45.8k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  45.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 45.8k]
  |  |  ------------------
  ------------------
  483|      0|                            {
  484|      0|                                return;
  485|      0|                            }
  486|  45.8k|                        }
  487|  33.3M|                        else
  488|  33.3M|                        {
  489|  33.3M|                            read_item(visitor, ec);
  490|  33.3M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  33.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.00k, False: 33.3M]
  |  |  ------------------
  ------------------
  491|  2.00k|                            {
  492|  2.00k|                                return;
  493|  2.00k|                            }
  494|  33.3M|                        }
  495|  33.3M|                    }
  496|  45.5M|                    break;
  497|  45.5M|                }
  498|  45.5M|                case parse_mode::map_key:
  ------------------
  |  Branch (498:17): [True: 31.2M, False: 202M]
  ------------------
  499|  31.2M|                {
  500|  31.2M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (500:25): [True: 3.43M, False: 27.8M]
  ------------------
  501|  3.43M|                    {
  502|  3.43M|                        ++state_stack_.back().index;
  503|  3.43M|                        state_stack_.back().mode = parse_mode::map_value;
  504|  3.43M|                        read_item(visitor, ec);
  505|  3.43M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.43M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6.13k, False: 3.43M]
  |  |  ------------------
  ------------------
  506|  6.13k|                        {
  507|  6.13k|                            return;
  508|  6.13k|                        }
  509|  3.43M|                    }
  510|  27.8M|                    else
  511|  27.8M|                    {
  512|  27.8M|                        end_object(visitor, ec);
  513|  27.8M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 27.8M]
  |  |  ------------------
  ------------------
  514|      0|                        {
  515|      0|                            return;
  516|      0|                        }
  517|  27.8M|                    }
  518|  31.2M|                    break;
  519|  31.2M|                }
  520|  31.2M|                case parse_mode::map_value:
  ------------------
  |  Branch (520:17): [True: 3.24M, False: 230M]
  ------------------
  521|  3.24M|                {
  522|  3.24M|                    state_stack_.back().mode = parse_mode::map_key;
  523|  3.24M|                    read_item(visitor, ec);
  524|  3.24M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.24M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5.58k, False: 3.24M]
  |  |  ------------------
  ------------------
  525|  5.58k|                    {
  526|  5.58k|                        return;
  527|  5.58k|                    }
  528|  3.24M|                    break;
  529|  3.24M|                }
  530|  33.6M|                case parse_mode::indefinite_map_key:
  ------------------
  |  Branch (530:17): [True: 33.6M, False: 199M]
  ------------------
  531|  33.6M|                {
  532|  33.6M|                    auto c = source_.peek();
  533|  33.6M|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  33.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.27k, False: 33.6M]
  |  |  ------------------
  ------------------
  534|  1.27k|                    {
  535|  1.27k|                        ec = cbor_errc::unexpected_eof;
  536|  1.27k|                        more_ = false;
  537|  1.27k|                        return;
  538|  1.27k|                    }
  539|  33.6M|                    if (c.value == 0xff)
  ------------------
  |  Branch (539:25): [True: 18.2k, False: 33.6M]
  ------------------
  540|  18.2k|                    {
  541|  18.2k|                        source_.ignore(1);
  542|  18.2k|                        end_object(visitor, ec);
  543|  18.2k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  18.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 18.2k]
  |  |  ------------------
  ------------------
  544|      0|                        {
  545|      0|                            return;
  546|      0|                        }
  547|  18.2k|                    }
  548|  33.6M|                    else
  549|  33.6M|                    {
  550|  33.6M|                        state_stack_.back().mode = parse_mode::indefinite_map_value;
  551|  33.6M|                        read_item(visitor, ec);
  552|  33.6M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  33.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.59k, False: 33.5M]
  |  |  ------------------
  ------------------
  553|  1.59k|                        {
  554|  1.59k|                            return;
  555|  1.59k|                        }
  556|  33.6M|                    }
  557|  33.6M|                    break;
  558|  33.6M|                }
  559|  33.6M|                case parse_mode::indefinite_map_value:
  ------------------
  |  Branch (559:17): [True: 33.5M, False: 199M]
  ------------------
  560|  33.5M|                {
  561|  33.5M|                    state_stack_.back().mode = parse_mode::indefinite_map_key;
  562|  33.5M|                    read_item(visitor, ec);
  563|  33.5M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  33.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.96k, False: 33.5M]
  |  |  ------------------
  ------------------
  564|  2.96k|                    {
  565|  2.96k|                        return;
  566|  2.96k|                    }
  567|  33.5M|                    break;
  568|  33.5M|                }
  569|  33.5M|                case parse_mode::root:
  ------------------
  |  Branch (569:17): [True: 52.4k, False: 233M]
  ------------------
  570|  52.4k|                {
  571|  52.4k|                    state_stack_.back().mode = parse_mode::accept;
  572|  52.4k|                    read_item(visitor, ec);
  573|  52.4k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  52.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6.43k, False: 46.0k]
  |  |  ------------------
  ------------------
  574|  6.43k|                    {
  575|  6.43k|                        return;
  576|  6.43k|                    }
  577|  46.0k|                    break;
  578|  52.4k|                }
  579|  46.0k|                case parse_mode::accept:
  ------------------
  |  Branch (579:17): [True: 11.2k, False: 233M]
  ------------------
  580|  11.2k|                {
  581|  11.2k|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   54|  11.2k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 11.2k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  582|  11.2k|                    state_stack_.clear();
  583|  11.2k|                    more_ = false;
  584|  11.2k|                    done_ = true;
  585|  11.2k|                    visitor.flush();
  586|  11.2k|                    break;
  587|  11.2k|                }
  588|   233M|            }
  589|   233M|        }
  590|  56.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_typed_array_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  593|  31.1M|    {
  594|  31.1M|        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   54|  31.1M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 31.1M]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  595|  31.1M|        auto iter = typed_array_stack_.back();
  596|  31.1M|        if (!iter->done())
  ------------------
  |  Branch (596:13): [True: 31.1M, False: 0]
  ------------------
  597|  31.1M|        {
  598|  31.1M|            iter->next(visitor, *this, ec);
  599|  31.1M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  31.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 31.1M]
  |  |  ------------------
  ------------------
  600|      0|            {
  601|      0|                return;
  602|      0|            }
  603|  31.1M|            more_ = !cursor_mode_;
  604|  31.1M|        }
  605|  31.1M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12is_multi_dimEv:
  263|   100M|    {
  264|   100M|        return state_stack_.size() >=2 && state_stack_[state_stack_.size()-2].mode == parse_mode::multi_dim;
  ------------------
  |  Branch (264:16): [True: 100M, False: 0]
  |  Branch (264:43): [True: 47.1M, False: 53.5M]
  ------------------
  265|   100M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE27end_classical_array_storageERNS3_10error_codeE:
 1032|  10.9k|    {
 1033|  10.9k|        --nesting_depth_;
 1034|       |
 1035|  10.9k|        more_ = !cursor_mode_;
 1036|  10.9k|        if (level() == mark_level_)
  ------------------
  |  Branch (1036:13): [True: 0, False: 10.9k]
  ------------------
 1037|      0|        {
 1038|      0|            more_ = false;
 1039|      0|        }
 1040|  10.9k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1040:13): [True: 2.55k, False: 8.39k]
  ------------------
 1041|  2.55k|        {
 1042|  2.55k|            stringref_map_stack_.pop_back();
 1043|  2.55k|        }
 1044|  10.9k|        state_stack_.pop_back();
 1045|  10.9k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  608|   132M|    {
  609|   132M|        read_tags(ec);
  610|   132M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   132M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 14.0k, False: 132M]
  |  |  ------------------
  ------------------
  611|  14.0k|        {
  612|  14.0k|            return;
  613|  14.0k|        }
  614|   132M|        auto c = source_.peek();
  615|   132M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   132M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 132M]
  |  |  ------------------
  ------------------
  616|      0|        {
  617|      0|            ec = cbor_errc::unexpected_eof;
  618|      0|            more_ = false;
  619|      0|            return;
  620|      0|        }
  621|   132M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
  622|   132M|        uint8_t info = get_additional_information(c.value);
  623|   132M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   132M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 76, False: 132M]
  |  |  |  Branch (79:50): [True: 386k, False: 131M]
  |  |  |  Branch (79:50): [True: 76, False: 386k]
  |  |  ------------------
  ------------------
  624|     76|        {
  625|     76|            ec = cbor_errc::reserved_additional_info;
  626|     76|            more_ = false;
  627|     76|            return;
  628|     76|        }
  629|       |
  630|   132M|        switch (major_type)
  631|   132M|        {
  632|  68.4M|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (632:13): [True: 68.4M, False: 63.7M]
  ------------------
  633|  68.4M|            {
  634|  68.4M|                source_.ignore(1);
  635|  68.4M|                uint64_t val = read_unsigned_integer(info, ec);
  636|  68.4M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  68.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 219, False: 68.4M]
  |  |  ------------------
  ------------------
  637|    219|                {
  638|    219|                    return;
  639|    219|                }
  640|  68.4M|                if (!stringref_map_stack_.empty() && other_tags_[stringref_tag])
  ------------------
  |  Branch (640:21): [True: 4.57M, False: 63.8M]
  |  Branch (640:21): [True: 94.0k, False: 68.3M]
  |  Branch (640:54): [True: 94.0k, False: 4.47M]
  ------------------
  641|  94.0k|                {
  642|  94.0k|                    other_tags_[stringref_tag] = false;
  643|  94.0k|                    if (val >= stringref_map_stack_.back().size())
  ------------------
  |  Branch (643:25): [True: 409, False: 93.6k]
  ------------------
  644|    409|                    {
  645|    409|                        ec = cbor_errc::stringref_too_large;
  646|    409|                        more_ = false;
  647|    409|                        return;
  648|    409|                    }
  649|  93.6k|                    auto index = static_cast<typename stringref_map::size_type>(val);
  650|  93.6k|                    if (index != val)
  ------------------
  |  Branch (650:25): [True: 0, False: 93.6k]
  ------------------
  651|      0|                    {
  652|      0|                        ec = cbor_errc::number_too_large;
  653|      0|                        more_ = false;
  654|      0|                        return;
  655|      0|                    }
  656|  93.6k|                    auto& str = stringref_map_stack_.back().at(index);
  657|  93.6k|                    switch (str.type)
  658|  93.6k|                    {
  659|  6.26k|                        case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (659:25): [True: 6.26k, False: 87.3k]
  ------------------
  660|  6.26k|                        {
  661|  6.26k|                            handle_string(visitor, jsoncons::string_view(str.str.data(),str.str.length()),ec);
  662|  6.26k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.26k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.26k]
  |  |  ------------------
  ------------------
  663|      0|                            {
  664|      0|                                return;
  665|      0|                            }
  666|  6.26k|                            break;
  667|  6.26k|                        }
  668|  87.3k|                        case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (668:25): [True: 87.3k, False: 6.26k]
  ------------------
  669|  87.3k|                        {
  670|  87.3k|                            read_byte_string_from_buffer read(byte_string_view(str.bytes));
  671|  87.3k|                            read_byte_string(read, visitor, ec);
  672|  87.3k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  87.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 87.3k]
  |  |  ------------------
  ------------------
  673|      0|                            {
  674|      0|                                return;
  675|      0|                            }
  676|  87.3k|                            break;
  677|  87.3k|                        }
  678|  87.3k|                        default:
  ------------------
  |  Branch (678:25): [True: 0, False: 93.6k]
  ------------------
  679|      0|                        {
  680|      0|                            ec = cbor_errc::invalid_major_type;
  681|      0|                            more_ = false;
  682|      0|                            return;
  683|  87.3k|                        }
  684|  93.6k|                    }
  685|  93.6k|                }
  686|  68.3M|                else
  687|  68.3M|                {
  688|  68.3M|                    semantic_tag tag = semantic_tag::none;
  689|  68.3M|                    if (other_tags_[item_tag])
  ------------------
  |  Branch (689:25): [True: 96.0k, False: 68.2M]
  ------------------
  690|  96.0k|                    {
  691|  96.0k|                        if (raw_tag_ == 1)
  ------------------
  |  Branch (691:29): [True: 3.61k, False: 92.4k]
  ------------------
  692|  3.61k|                        {
  693|  3.61k|                            tag = semantic_tag::epoch_second;
  694|  3.61k|                        }
  695|  96.0k|                        other_tags_[item_tag] = false;
  696|  96.0k|                    }
  697|  68.3M|                    visitor.uint64_value(val, tag, *this, ec);
  698|  68.3M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  68.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 68.3M]
  |  |  ------------------
  ------------------
  699|      0|                    {
  700|      0|                        return;
  701|      0|                    }
  702|  68.3M|                    more_ = !cursor_mode_;
  703|  68.3M|                }
  704|  68.4M|                break;
  705|  68.4M|            }
  706|  68.4M|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (706:13): [True: 14.2M, False: 117M]
  ------------------
  707|  14.2M|            {
  708|  14.2M|                source_.ignore(1);
  709|  14.2M|                read_negative_integer (info, visitor, ec);
  710|  14.2M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  14.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 504, False: 14.2M]
  |  |  ------------------
  ------------------
  711|    504|                {
  712|    504|                    return;
  713|    504|                }
  714|  14.2M|                break;
  715|  14.2M|            }
  716|  14.2M|            case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (716:13): [True: 12.5M, False: 119M]
  ------------------
  717|  12.5M|            {
  718|  12.5M|                read_byte_string_from_source read(this);
  719|  12.5M|                read_byte_string(read, visitor, ec);
  720|  12.5M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4.35k, False: 12.5M]
  |  |  ------------------
  ------------------
  721|  4.35k|                {
  722|  4.35k|                    return;
  723|  4.35k|                }
  724|  12.5M|                break;
  725|  12.5M|            }
  726|  12.5M|            case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (726:13): [True: 588k, False: 131M]
  ------------------
  727|   588k|            {
  728|   588k|                source_.ignore(1);
  729|   588k|                auto sv = read_text_string_view(info, ec);
  730|   588k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   588k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.97k, False: 585k]
  |  |  ------------------
  ------------------
  731|  2.97k|                {
  732|  2.97k|                    return;
  733|  2.97k|                }
  734|   585k|                auto result = unicode_traits::validate(sv.data(),sv.size());
  735|   585k|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (735:21): [True: 1.14k, False: 584k]
  ------------------
  736|  1.14k|                {
  737|  1.14k|                    ec = cbor_errc::invalid_utf8_text_string;
  738|  1.14k|                    more_ = false;
  739|  1.14k|                    return;
  740|  1.14k|                }
  741|   584k|                handle_string(visitor, sv, ec);
  742|   584k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   584k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 584k]
  |  |  ------------------
  ------------------
  743|      0|                {
  744|      0|                    return;
  745|      0|                }
  746|   584k|                break;
  747|   584k|            }
  748|   584k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (748:13): [True: 0, False: 132M]
  ------------------
  749|      0|            {
  750|      0|                JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
  751|      0|                break;
  752|   584k|            }
  753|  6.59M|            case jsoncons::cbor::detail::cbor_major_type::simple:
  ------------------
  |  Branch (753:13): [True: 6.59M, False: 125M]
  ------------------
  754|  6.59M|            {
  755|  6.59M|                switch (info)
  756|  6.59M|                {
  757|   464k|                    case 0x14:
  ------------------
  |  Branch (757:21): [True: 464k, False: 6.12M]
  ------------------
  758|   464k|                        source_.ignore(1);
  759|   464k|                        visitor.bool_value(false, semantic_tag::none, *this, ec);
  760|   464k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   464k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 464k]
  |  |  ------------------
  ------------------
  761|      0|                        {
  762|      0|                            return;
  763|      0|                        }
  764|   464k|                        more_ = !cursor_mode_;
  765|   464k|                        break;
  766|  5.27M|                    case 0x15:
  ------------------
  |  Branch (766:21): [True: 5.27M, False: 1.31M]
  ------------------
  767|  5.27M|                        source_.ignore(1);
  768|  5.27M|                        visitor.bool_value(true, semantic_tag::none, *this, ec);
  769|  5.27M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.27M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.27M]
  |  |  ------------------
  ------------------
  770|      0|                        {
  771|      0|                            return;
  772|      0|                        }
  773|  5.27M|                        more_ = !cursor_mode_;
  774|  5.27M|                        break;
  775|  97.2k|                    case 0x16:
  ------------------
  |  Branch (775:21): [True: 97.2k, False: 6.49M]
  ------------------
  776|  97.2k|                        source_.ignore(1);
  777|  97.2k|                        visitor.null_value(semantic_tag::none, *this, ec);
  778|  97.2k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  97.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 97.2k]
  |  |  ------------------
  ------------------
  779|      0|                        {
  780|      0|                            return;
  781|      0|                        }
  782|  97.2k|                        more_ = !cursor_mode_;
  783|  97.2k|                        break;
  784|   127k|                    case 0x17:
  ------------------
  |  Branch (784:21): [True: 127k, False: 6.46M]
  ------------------
  785|   127k|                        source_.ignore(1);
  786|   127k|                        visitor.null_value(semantic_tag::undefined, *this, ec);
  787|   127k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   127k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 127k]
  |  |  ------------------
  ------------------
  788|      0|                        {
  789|      0|                            return;
  790|      0|                        }
  791|   127k|                        more_ = !cursor_mode_;
  792|   127k|                        break;
  793|   229k|                    case 0x19: // Half-Precision Float (two-byte IEEE 754)
  ------------------
  |  Branch (793:21): [True: 229k, False: 6.36M]
  ------------------
  794|   229k|                    {
  795|   229k|                        source_.ignore(1);
  796|   229k|                        uint64_t val = read_unsigned_integer(info, ec);
  797|   229k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   229k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 154, False: 228k]
  |  |  ------------------
  ------------------
  798|    154|                        {
  799|    154|                            return;
  800|    154|                        }
  801|   228k|                        visitor.half_value(static_cast<uint16_t>(val), semantic_tag::none, *this, ec);
  802|   228k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   228k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 228k]
  |  |  ------------------
  ------------------
  803|      0|                        {
  804|      0|                            return;
  805|      0|                        }
  806|   228k|                        more_ = !cursor_mode_;
  807|   228k|                        break;
  808|   228k|                    }
  809|   333k|                    case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (809:21): [True: 333k, False: 6.25M]
  ------------------
  810|   396k|                    case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (810:21): [True: 62.8k, False: 6.52M]
  ------------------
  811|   396k|                    {
  812|   396k|                        source_.ignore(1);
  813|   396k|                        double val = read_double(info, ec);
  814|   396k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   396k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 417, False: 395k]
  |  |  ------------------
  ------------------
  815|    417|                        {
  816|    417|                            return;
  817|    417|                        }
  818|   395k|                        semantic_tag tag = semantic_tag::none;
  819|   395k|                        if (other_tags_[item_tag])
  ------------------
  |  Branch (819:29): [True: 7.25k, False: 388k]
  ------------------
  820|  7.25k|                        {
  821|  7.25k|                            if (raw_tag_ == 1)
  ------------------
  |  Branch (821:33): [True: 1.74k, False: 5.50k]
  ------------------
  822|  1.74k|                            {
  823|  1.74k|                                tag = semantic_tag::epoch_second;
  824|  1.74k|                            }
  825|  7.25k|                            other_tags_[item_tag] = false;
  826|  7.25k|                        }
  827|   395k|                        visitor.double_value(val, tag, *this, ec);
  828|   395k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   395k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 395k]
  |  |  ------------------
  ------------------
  829|      0|                        {
  830|      0|                            return;
  831|      0|                        }
  832|   395k|                        more_ = !cursor_mode_;
  833|   395k|                        break;
  834|   395k|                    }
  835|  3.36k|                    default:
  ------------------
  |  Branch (835:21): [True: 3.36k, False: 6.58M]
  ------------------
  836|  3.36k|                    {
  837|  3.36k|                        ec = cbor_errc::unknown_type;
  838|  3.36k|                        more_ = false;
  839|  3.36k|                        return;
  840|   395k|                    }
  841|  6.59M|                }
  842|  6.58M|                break;
  843|  6.59M|            }
  844|  6.58M|            case jsoncons::cbor::detail::cbor_major_type::array:
  ------------------
  |  Branch (844:13): [True: 1.56M, False: 130M]
  ------------------
  845|  1.56M|            {
  846|  1.56M|                if (other_tags_[item_tag])
  ------------------
  |  Branch (846:21): [True: 530k, False: 1.03M]
  ------------------
  847|   530k|                {
  848|   530k|                    switch (raw_tag_)
  849|   530k|                    {
  850|   131k|                        case 0x04:
  ------------------
  |  Branch (850:25): [True: 131k, False: 399k]
  ------------------
  851|   131k|                            source_.ignore(1);
  852|   131k|                            text_buffer_.clear();
  853|   131k|                            read_bigdecimal(info, text_buffer_, ec);
  854|   131k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   131k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.59k, False: 130k]
  |  |  ------------------
  ------------------
  855|  1.59k|                            {
  856|  1.59k|                                return;
  857|  1.59k|                            }
  858|   130k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
  859|   130k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   130k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 130k]
  |  |  ------------------
  ------------------
  860|      0|                            {
  861|      0|                                return;
  862|      0|                            }
  863|   130k|                            more_ = !cursor_mode_;
  864|   130k|                            break;
  865|   219k|                        case 0x05:
  ------------------
  |  Branch (865:25): [True: 219k, False: 311k]
  ------------------
  866|   219k|                            source_.ignore(1);
  867|   219k|                            text_buffer_.clear();
  868|   219k|                            read_bigfloat(info, text_buffer_, ec);
  869|   219k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   219k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.11k, False: 217k]
  |  |  ------------------
  ------------------
  870|  1.11k|                            {
  871|  1.11k|                                return;
  872|  1.11k|                            }
  873|   217k|                            visitor.string_value(text_buffer_, semantic_tag::bigfloat, *this, ec);
  874|   217k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   217k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 217k]
  |  |  ------------------
  ------------------
  875|      0|                            {
  876|      0|                                return;
  877|      0|                            }
  878|   217k|                            more_ = !cursor_mode_;
  879|   217k|                            break;
  880|  89.0k|                        case 40: // row-major storage
  ------------------
  |  Branch (880:25): [True: 89.0k, False: 441k]
  ------------------
  881|  89.0k|                            order_ = mdarray_order::row_major;
  882|  89.0k|                            read_mdarray_header(visitor, ec);
  883|  89.0k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  89.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7.14k, False: 81.9k]
  |  |  ------------------
  ------------------
  884|  7.14k|                            {
  885|  7.14k|                                return;
  886|  7.14k|                            }
  887|  81.9k|                            break;
  888|  81.9k|                        case 1040: // column-major storage
  ------------------
  |  Branch (888:25): [True: 22.3k, False: 508k]
  ------------------
  889|  22.3k|                            order_ = mdarray_order::column_major;
  890|  22.3k|                            read_mdarray_header(visitor, ec);
  891|  22.3k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  22.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 194, False: 22.1k]
  |  |  ------------------
  ------------------
  892|    194|                            {
  893|    194|                                return;
  894|    194|                            }
  895|  22.1k|                            break;
  896|  68.6k|                        default:
  ------------------
  |  Branch (896:25): [True: 68.6k, False: 462k]
  ------------------
  897|  68.6k|                            source_.ignore(1);
  898|  68.6k|                            begin_array(info, visitor, ec);
  899|  68.6k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  68.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 52, False: 68.6k]
  |  |  ------------------
  ------------------
  900|     52|                            {
  901|     52|                                return;
  902|     52|                            }
  903|  68.6k|                            break;
  904|   530k|                    }
  905|   520k|                    other_tags_[item_tag] = false;
  906|   520k|                }
  907|  1.03M|                else
  908|  1.03M|                {
  909|  1.03M|                    source_.ignore(1);
  910|  1.03M|                    begin_array(info, visitor, ec);
  911|  1.03M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.03M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 184, False: 1.03M]
  |  |  ------------------
  ------------------
  912|    184|                    {
  913|    184|                        return;
  914|    184|                    }
  915|  1.03M|                }
  916|  1.55M|                break;
  917|  1.56M|            }
  918|  28.2M|            case jsoncons::cbor::detail::cbor_major_type::map:
  ------------------
  |  Branch (918:13): [True: 28.2M, False: 103M]
  ------------------
  919|  28.2M|            {
  920|  28.2M|                source_.ignore(1);
  921|  28.2M|                begin_object(info, visitor, ec);
  922|  28.2M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  28.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 111, False: 28.2M]
  |  |  ------------------
  ------------------
  923|    111|                {
  924|    111|                    return;
  925|    111|                }
  926|  28.2M|                break;
  927|  28.2M|            }
  928|  28.2M|            default:
  ------------------
  |  Branch (928:13): [True: 0, False: 132M]
  ------------------
  929|      0|                ec = cbor_errc::invalid_major_type;
  930|      0|                more_ = false;
  931|      0|                return;
  932|   132M|        }
  933|   132M|        other_tags_[item_tag] = false;
  934|   132M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_tagsERNS3_10error_codeE:
 2092|   132M|    {
 2093|   132M|        auto c = source_.peek();
 2094|   132M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   132M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 11.4k, False: 132M]
  |  |  ------------------
  ------------------
 2095|  11.4k|        {
 2096|  11.4k|            ec = cbor_errc::unexpected_eof;
 2097|  11.4k|            more_ = false;
 2098|  11.4k|            return;
 2099|  11.4k|        }
 2100|   132M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 2101|   132M|        uint8_t info = get_additional_information(c.value);
 2102|   132M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   132M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 909, False: 132M]
  |  |  |  Branch (79:50): [True: 290k, False: 132M]
  |  |  |  Branch (79:50): [True: 909, False: 289k]
  |  |  ------------------
  ------------------
 2103|    909|        {
 2104|    909|            ec = cbor_errc::reserved_additional_info;
 2105|    909|            more_ = false;
 2106|    909|            return;
 2107|    909|        }
 2108|       |
 2109|   134M|        while (major_type == jsoncons::cbor::detail::cbor_major_type::semantic_tag)
  ------------------
  |  Branch (2109:16): [True: 2.32M, False: 132M]
  ------------------
 2110|  2.32M|        {
 2111|  2.32M|            source_.ignore(1);
 2112|  2.32M|            uint64_t val = read_unsigned_integer(info, ec);
 2113|  2.32M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.32M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 590, False: 2.32M]
  |  |  ------------------
  ------------------
 2114|    590|            {
 2115|    590|                return;
 2116|    590|            }
 2117|  2.32M|            switch(val)
 2118|  2.32M|            {
 2119|   102k|                case 25: // stringref
  ------------------
  |  Branch (2119:17): [True: 102k, False: 2.21M]
  ------------------
 2120|   102k|                    other_tags_[stringref_tag] = true;
 2121|   102k|                    break;
 2122|  36.1k|                case 256: // stringref-namespace
  ------------------
  |  Branch (2122:17): [True: 36.1k, False: 2.28M]
  ------------------
 2123|  36.1k|                    other_tags_[stringref_namespace_tag] = true;
 2124|  36.1k|                    break;
 2125|  2.18M|                default:
  ------------------
  |  Branch (2125:17): [True: 2.18M, False: 139k]
  ------------------
 2126|  2.18M|                    other_tags_[item_tag] = true;
 2127|  2.18M|                    raw_tag_ = val;
 2128|  2.18M|                    break;
 2129|  2.32M|            }
 2130|  2.32M|            c = source_.peek();
 2131|  2.32M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  2.32M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.24k, False: 2.31M]
  |  |  ------------------
  ------------------
 2132|  1.24k|            {
 2133|  1.24k|                ec = cbor_errc::unexpected_eof;
 2134|  1.24k|                more_ = false;
 2135|  1.24k|                return;
 2136|  1.24k|            }
 2137|  2.31M|            major_type = get_major_type(c.value);
 2138|  2.31M|        }
 2139|   132M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE14get_major_typeEh:
 2078|   281M|    {
 2079|   281M|        static constexpr uint8_t major_type_shift = 0x05;
 2080|   281M|        uint8_t value = type >> major_type_shift;
 2081|   281M|        return static_cast<jsoncons::cbor::detail::cbor_major_type>(value);
 2082|   281M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26get_additional_informationEh:
 2085|   300M|    {
 2086|   300M|        static constexpr uint8_t additional_information_mask = (1U << 5) - 1;
 2087|   300M|        uint8_t value = type & additional_information_mask;
 2088|   300M|        return value;
 2089|   300M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_unsigned_integerEhRNS3_10error_codeE:
 1611|   136M|    {
 1612|   136M|        switch (info)
 1613|   136M|        {
 1614|   134M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|   134M|    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: 20.5M, False: 115M]
  |  |  |  Branch (18:20): [True: 904k, False: 135M]
  |  |  |  Branch (18:30): [True: 328k, False: 135M]
  |  |  |  Branch (18:40): [True: 586k, False: 135M]
  |  |  |  Branch (18:50): [True: 5.99M, False: 130M]
  |  |  |  Branch (18:60): [True: 199k, False: 135M]
  |  |  |  Branch (18:70): [True: 280k, False: 135M]
  |  |  |  Branch (18:80): [True: 231k, False: 135M]
  |  |  |  Branch (18:90): [True: 52.1k, False: 136M]
  |  |  |  Branch (18:100): [True: 632k, False: 135M]
  |  |  |  Branch (18:110): [True: 14.3M, False: 121M]
  |  |  |  Branch (18:120): [True: 50.6k, False: 136M]
  |  |  |  Branch (18:130): [True: 148k, False: 135M]
  |  |  |  Branch (18:140): [True: 122k, False: 135M]
  |  |  |  Branch (18:150): [True: 214k, False: 135M]
  |  |  |  Branch (18:160): [True: 262k, False: 135M]
  |  |  |  Branch (18:170): [True: 516k, False: 135M]
  |  |  |  Branch (18:180): [True: 190k, False: 135M]
  |  |  |  Branch (18:190): [True: 50.2k, False: 136M]
  |  |  |  Branch (18:200): [True: 128k, False: 135M]
  |  |  |  Branch (18:210): [True: 94.8k, False: 136M]
  |  |  |  Branch (18:220): [True: 59.8k, False: 136M]
  |  |  ------------------
  ------------------
  |  Branch (1614:13): [True: 88.6M, False: 47.4M]
  ------------------
 1615|   134M|            {
 1616|   134M|                return info;
 1617|  2.75G|            }
 1618|   973k|            case 0x18: // Unsigned integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1618:13): [True: 973k, False: 135M]
  ------------------
 1619|   973k|            {
 1620|   973k|                uint8_t b;
 1621|   973k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1621:21): [True: 460, False: 973k]
  ------------------
 1622|    460|                {
 1623|    460|                    ec = cbor_errc::unexpected_eof;
 1624|    460|                    return uint64_t{};
 1625|    460|                }
 1626|   973k|                return b;
 1627|   973k|            }
 1628|   411k|            case 0x19: // Unsigned integer (two-byte uint16_t follows)
  ------------------
  |  Branch (1628:13): [True: 411k, False: 135M]
  ------------------
 1629|   411k|            {
 1630|   411k|                uint8_t buf[sizeof(uint16_t)];
 1631|   411k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1631:21): [True: 373, False: 411k]
  ------------------
 1632|    373|                {
 1633|    373|                    ec = cbor_errc::unexpected_eof;
 1634|    373|                    return uint64_t{};
 1635|    373|                }
 1636|   411k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1637|   411k|                return u;
 1638|   411k|            }
 1639|  18.7k|            case 0x1a: // Unsigned integer (four-byte uint32_t follows)
  ------------------
  |  Branch (1639:13): [True: 18.7k, False: 136M]
  ------------------
 1640|  18.7k|            {
 1641|  18.7k|                uint8_t buf[sizeof(uint32_t)];
 1642|  18.7k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1642:21): [True: 163, False: 18.6k]
  ------------------
 1643|    163|                {
 1644|    163|                    ec = cbor_errc::unexpected_eof;
 1645|    163|                    return uint64_t{};
 1646|    163|                }
 1647|  18.6k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1648|  18.6k|                return u;
 1649|  18.7k|            }
 1650|  38.4k|            case 0x1b: // Unsigned integer (eight-byte uint64_t follows)
  ------------------
  |  Branch (1650:13): [True: 38.4k, False: 136M]
  ------------------
 1651|  38.4k|            {
 1652|  38.4k|                uint8_t buf[sizeof(uint64_t)];
 1653|  38.4k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1653:21): [True: 485, False: 37.9k]
  ------------------
 1654|    485|                {
 1655|    485|                    ec = cbor_errc::unexpected_eof;
 1656|    485|                    return uint64_t{};
 1657|    485|                }
 1658|  37.9k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1659|  37.9k|                return u;
 1660|  38.4k|            }
 1661|    400|            default:
  ------------------
  |  Branch (1661:13): [True: 400, False: 136M]
  ------------------
 1662|    400|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (1662:22): [True: 313, False: 87]
  ------------------
 1663|    400|                return uint64_t{};
 1664|   136M|        }
 1665|   136M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13handle_stringERNS_21basic_generic_visitorIcEERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS3_10error_codeE:
 2142|   590k|    {
 2143|   590k|        semantic_tag tag = semantic_tag::none;
 2144|   590k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2144:13): [True: 9.97k, False: 580k]
  ------------------
 2145|  9.97k|        {
 2146|  9.97k|            switch (raw_tag_)
 2147|  9.97k|            {
 2148|    577|                case 0:
  ------------------
  |  Branch (2148:17): [True: 577, False: 9.40k]
  ------------------
 2149|    577|                    tag = semantic_tag::datetime;
 2150|    577|                    break;
 2151|    556|                case 32:
  ------------------
  |  Branch (2151:17): [True: 556, False: 9.42k]
  ------------------
 2152|    556|                    tag = semantic_tag::uri;
 2153|    556|                    break;
 2154|    534|                case 33:
  ------------------
  |  Branch (2154:17): [True: 534, False: 9.44k]
  ------------------
 2155|    534|                    tag = semantic_tag::base64url;
 2156|    534|                    break;
 2157|  1.79k|                case 34:
  ------------------
  |  Branch (2157:17): [True: 1.79k, False: 8.17k]
  ------------------
 2158|  1.79k|                    tag = semantic_tag::base64;
 2159|  1.79k|                    break;
 2160|  6.51k|                default:
  ------------------
  |  Branch (2160:17): [True: 6.51k, False: 3.46k]
  ------------------
 2161|  6.51k|                    break;
 2162|  9.97k|            }
 2163|  9.97k|            other_tags_[item_tag] = false;
 2164|  9.97k|        }
 2165|   590k|        visitor.string_value(v, tag, *this, ec);
 2166|   590k|        more_ = !cursor_mode_;
 2167|   590k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferC2ERKNS_16byte_string_viewE:
  175|  87.3k|            : bytes(b)
  176|  87.3k|        {
  177|  87.3k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_bufferEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2184|  87.3k|    {
 2185|  87.3k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2185:13): [True: 73.4k, False: 13.9k]
  ------------------
 2186|  73.4k|        {
 2187|  73.4k|            switch (raw_tag_)
 2188|  73.4k|            {
 2189|  6.73k|                case 0x2:
  ------------------
  |  Branch (2189:17): [True: 6.73k, False: 66.7k]
  ------------------
 2190|  6.73k|                {
 2191|  6.73k|                    auto bytes = read.view(ec);
 2192|  6.73k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.73k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.73k]
  |  |  ------------------
  ------------------
 2193|      0|                    {
 2194|      0|                        more_ = false;
 2195|      0|                        return;
 2196|      0|                    }
 2197|  6.73k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2198|  6.73k|                    text_buffer_.clear();
 2199|  6.73k|                    b.append_to_buffer(text_buffer_);
 2200|  6.73k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2201|  6.73k|                    more_ = !cursor_mode_;
 2202|  6.73k|                    break;
 2203|  6.73k|                }
 2204|  1.41k|                case 0x3:
  ------------------
  |  Branch (2204:17): [True: 1.41k, False: 72.0k]
  ------------------
 2205|  1.41k|                {
 2206|  1.41k|                    auto bytes = read.view(ec);
 2207|  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]
  |  |  ------------------
  ------------------
 2208|      0|                    {
 2209|      0|                        more_ = false;
 2210|      0|                        return;
 2211|      0|                    }
 2212|  1.41k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2213|  1.41k|                    b = -1 - b;
 2214|  1.41k|                    text_buffer_.clear();
 2215|  1.41k|                    b.append_to_buffer(text_buffer_);
 2216|  1.41k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2217|  1.41k|                    more_ = !cursor_mode_;
 2218|  1.41k|                    break;
 2219|  1.41k|                }
 2220|    477|                case 0x15:
  ------------------
  |  Branch (2220:17): [True: 477, False: 72.9k]
  ------------------
 2221|  1.05k|                case 0x16:
  ------------------
  |  Branch (2221:17): [True: 579, False: 72.8k]
  ------------------
 2222|  1.54k|                case 0x17:
  ------------------
  |  Branch (2222:17): [True: 493, False: 72.9k]
  ------------------
 2223|  1.54k|                {
 2224|  1.54k|                    auto bytes = read.view(ec);
 2225|  1.54k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.54k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.54k]
  |  |  ------------------
  ------------------
 2226|      0|                    {
 2227|      0|                        more_ = false;
 2228|      0|                        return;
 2229|      0|                    }
 2230|  1.54k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2230:46): [True: 477, False: 1.07k]
  ------------------
 2231|  1.54k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2231:27): [True: 579, False: 493]
  ------------------
 2232|  1.07k|                        : semantic_tag::base16;
 2233|  1.54k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2234|  1.54k|                    more_ = !cursor_mode_;
 2235|  1.54k|                    break;
 2236|  1.54k|                }
 2237|  1.73k|                case 0x40:
  ------------------
  |  Branch (2237:17): [True: 1.73k, False: 71.7k]
  ------------------
 2238|  1.73k|                {
 2239|  1.73k|                    array_tag_ = typed_array_tags::uint8;
 2240|  1.73k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2241|  1.73k|                    read(array_buffer, ec);
 2242|  1.73k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.73k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.73k]
  |  |  ------------------
  ------------------
 2243|      0|                    {
 2244|      0|                        more_ = false;
 2245|      0|                        return;
 2246|      0|                    }
 2247|  1.73k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2248|  1.73k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2248:25): [True: 1.15k, False: 583]
  |  Branch (2248:42): [True: 0, False: 1.15k]
  ------------------
 2249|      0|                    {
 2250|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2250:29): [True: 0, False: 0]
  ------------------
 2251|      0|                        {
 2252|      0|                            ec = cbor_errc::bad_extents;
 2253|      0|                            more_ = false;
 2254|      0|                            return;
 2255|      0|                        }
 2256|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2257|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2258|      0|                        typed_array_stack_.push_back(iter);
 2259|      0|                        iter->next(visitor, *this, ec);
 2260|      0|                    }
 2261|  1.73k|                    else
 2262|  1.73k|                    {
 2263|  1.73k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2264|  1.73k|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2265|  1.73k|                        typed_array_stack_.push_back(iter);
 2266|  1.73k|                        iter->next(visitor, *this, ec);
 2267|  1.73k|                    }
 2268|  1.73k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2269|  1.73k|                    more_ = !cursor_mode_;
 2270|  1.73k|                    break;
 2271|  1.73k|                }
 2272|  1.27k|                case 0x44:
  ------------------
  |  Branch (2272:17): [True: 1.27k, False: 72.1k]
  ------------------
 2273|  1.27k|                {
 2274|  1.27k|                    array_tag_ = typed_array_tags::uint8;
 2275|  1.27k|                    typed_array_tag_ = semantic_tag::clamped;
 2276|  1.27k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2277|  1.27k|                    read(array_buffer, ec);
 2278|  1.27k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.27k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.27k]
  |  |  ------------------
  ------------------
 2279|      0|                    {
 2280|      0|                        more_ = false;
 2281|      0|                        return;
 2282|      0|                    }
 2283|  1.27k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2284|  1.27k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2284:25): [True: 836, False: 437]
  |  Branch (2284:42): [True: 0, False: 836]
  ------------------
 2285|      0|                    {
 2286|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2286:29): [True: 0, False: 0]
  ------------------
 2287|      0|                        {
 2288|      0|                            ec = cbor_errc::bad_extents;
 2289|      0|                            more_ = false;
 2290|      0|                            return;
 2291|      0|                        }
 2292|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2293|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2294|      0|                        typed_array_stack_.push_back(iter);
 2295|      0|                        iter->next(visitor, *this, ec);
 2296|      0|                    }
 2297|  1.27k|                    else
 2298|  1.27k|                    {
 2299|  1.27k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2300|  1.27k|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2301|  1.27k|                        typed_array_stack_.push_back(iter);
 2302|  1.27k|                        iter->next(visitor, *this, ec);
 2303|  1.27k|                    }
 2304|  1.27k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2305|  1.27k|                    more_ = !cursor_mode_;
 2306|  1.27k|                    break;
 2307|  1.27k|                }
 2308|  3.04k|                case 0x41:
  ------------------
  |  Branch (2308:17): [True: 3.04k, False: 70.4k]
  ------------------
 2309|  5.93k|                case 0x45:
  ------------------
  |  Branch (2309:17): [True: 2.89k, False: 70.5k]
  ------------------
 2310|  5.93k|                {
 2311|  5.93k|                    array_tag_ = typed_array_tags::uint16;
 2312|  5.93k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2313|  5.93k|                    read(array_buffer, ec);
 2314|  5.93k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.93k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.93k]
  |  |  ------------------
  ------------------
 2315|      0|                    {
 2316|      0|                        more_ = false;
 2317|      0|                        return;
 2318|      0|                    }
 2319|  5.93k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2320|  5.93k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2321|  5.93k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2322|  5.93k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2322:25): [True: 3.04k, False: 2.89k]
  ------------------
 2323|  3.04k|                    {
 2324|  44.9k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2324:49): [True: 41.9k, False: 3.04k]
  ------------------
 2325|  41.9k|                        {
 2326|  41.9k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2327|  41.9k|                        }
 2328|  3.04k|                    }
 2329|  5.93k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2329:25): [True: 3.90k, False: 2.03k]
  |  Branch (2329:42): [True: 0, False: 3.90k]
  ------------------
 2330|      0|                    {
 2331|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2331:29): [True: 0, False: 0]
  ------------------
 2332|      0|                        {
 2333|      0|                            ec = cbor_errc::bad_extents;
 2334|      0|                            more_ = false;
 2335|      0|                            return;
 2336|      0|                        }
 2337|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2338|      0|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2339|      0|                        typed_array_stack_.push_back(iter);
 2340|      0|                        iter->next(visitor, *this, ec);
 2341|      0|                    }
 2342|  5.93k|                    else
 2343|  5.93k|                    {
 2344|  5.93k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2345|  5.93k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2346|  5.93k|                        typed_array_stack_.push_back(iter);
 2347|  5.93k|                        iter->next(visitor, *this, ec);
 2348|  5.93k|                    }
 2349|  5.93k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2350|  5.93k|                    more_ = !cursor_mode_;
 2351|  5.93k|                    break;
 2352|  5.93k|                }
 2353|  1.77k|                case 0x42:
  ------------------
  |  Branch (2353:17): [True: 1.77k, False: 71.6k]
  ------------------
 2354|  3.04k|                case 0x46:
  ------------------
  |  Branch (2354:17): [True: 1.27k, False: 72.1k]
  ------------------
 2355|  3.04k|                {
 2356|  3.04k|                    array_tag_ = typed_array_tags::uint32;
 2357|  3.04k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2358|  3.04k|                    read(array_buffer, ec);
 2359|  3.04k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.04k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.04k]
  |  |  ------------------
  ------------------
 2360|      0|                    {
 2361|      0|                        more_ = false;
 2362|      0|                        return;
 2363|      0|                    }
 2364|  3.04k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2365|  3.04k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2366|  3.04k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2367|  3.04k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2367:25): [True: 1.77k, False: 1.27k]
  ------------------
 2368|  1.77k|                    {
 2369|  12.1k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2369:49): [True: 10.3k, False: 1.77k]
  ------------------
 2370|  10.3k|                        {
 2371|  10.3k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2372|  10.3k|                        }
 2373|  1.77k|                    }
 2374|  3.04k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2374:25): [True: 2.00k, False: 1.04k]
  |  Branch (2374:42): [True: 0, False: 2.00k]
  ------------------
 2375|      0|                    {
 2376|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2376:29): [True: 0, False: 0]
  ------------------
 2377|      0|                        {
 2378|      0|                            ec = cbor_errc::bad_extents;
 2379|      0|                            more_ = false;
 2380|      0|                            return;
 2381|      0|                        }
 2382|      0|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2383|      0|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2384|      0|                        typed_array_stack_.push_back(iter);
 2385|      0|                        iter->next(visitor, *this, ec);
 2386|      0|                    }
 2387|  3.04k|                    else
 2388|  3.04k|                    {
 2389|  3.04k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2390|  3.04k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2391|  3.04k|                        typed_array_stack_.push_back(iter);
 2392|  3.04k|                        iter->next(visitor, *this, ec);
 2393|  3.04k|                    }
 2394|  3.04k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2395|  3.04k|                    more_ = !cursor_mode_;
 2396|  3.04k|                    break;
 2397|  3.04k|                }
 2398|  4.07k|                case 0x43:
  ------------------
  |  Branch (2398:17): [True: 4.07k, False: 69.3k]
  ------------------
 2399|  12.9k|                case 0x47:
  ------------------
  |  Branch (2399:17): [True: 8.83k, False: 64.6k]
  ------------------
 2400|  12.9k|                {
 2401|  12.9k|                    array_tag_ = typed_array_tags::uint64;
 2402|  12.9k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2403|  12.9k|                    read(array_buffer, ec);
 2404|  12.9k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 12.9k]
  |  |  ------------------
  ------------------
 2405|      0|                    {
 2406|      0|                        more_ = false;
 2407|      0|                        return;
 2408|      0|                    }
 2409|  12.9k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2410|  12.9k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2411|  12.9k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2412|  12.9k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2412:25): [True: 4.07k, False: 8.83k]
  ------------------
 2413|  4.07k|                    {
 2414|  16.1k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2414:49): [True: 12.0k, False: 4.07k]
  ------------------
 2415|  12.0k|                        {
 2416|  12.0k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2417|  12.0k|                        }
 2418|  4.07k|                    }
 2419|  12.9k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2419:25): [True: 8.57k, False: 4.33k]
  |  Branch (2419:42): [True: 0, False: 8.57k]
  ------------------
 2420|      0|                    {
 2421|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2421:29): [True: 0, False: 0]
  ------------------
 2422|      0|                        {
 2423|      0|                            ec = cbor_errc::bad_extents;
 2424|      0|                            more_ = false;
 2425|      0|                            return;
 2426|      0|                        }
 2427|      0|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2428|      0|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2429|      0|                        typed_array_stack_.push_back(iter);
 2430|      0|                        iter->next(visitor, *this, ec);
 2431|      0|                    }
 2432|  12.9k|                    else
 2433|  12.9k|                    {
 2434|  12.9k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2435|  12.9k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2436|  12.9k|                        typed_array_stack_.push_back(iter);
 2437|  12.9k|                        iter->next(visitor, *this, ec);
 2438|  12.9k|                    }
 2439|  12.9k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2440|  12.9k|                    more_ = !cursor_mode_;
 2441|  12.9k|                    break;
 2442|  12.9k|                }
 2443|  3.00k|                case 0x48:
  ------------------
  |  Branch (2443:17): [True: 3.00k, False: 70.4k]
  ------------------
 2444|  3.00k|                {
 2445|  3.00k|                    array_tag_ = typed_array_tags::int8;
 2446|  3.00k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2447|  3.00k|                    read(array_buffer, ec);
 2448|  3.00k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.00k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.00k]
  |  |  ------------------
  ------------------
 2449|      0|                    {
 2450|      0|                        more_ = false;
 2451|      0|                        return;
 2452|      0|                    }
 2453|  3.00k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2454|  3.00k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2454:25): [True: 1.99k, False: 1.00k]
  |  Branch (2454:42): [True: 0, False: 1.99k]
  ------------------
 2455|      0|                    {
 2456|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2456:29): [True: 0, False: 0]
  ------------------
 2457|      0|                        {
 2458|      0|                            ec = cbor_errc::bad_extents;
 2459|      0|                            more_ = false;
 2460|      0|                            return;
 2461|      0|                        }
 2462|      0|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2463|      0|                            typed_array_tags::int8, extents_, order_, alloc_);
 2464|      0|                        typed_array_stack_.push_back(iter);
 2465|      0|                        iter->next(visitor, *this, ec);
 2466|      0|                    }
 2467|  3.00k|                    else
 2468|  3.00k|                    {
 2469|  3.00k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2470|  3.00k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2471|  3.00k|                        typed_array_stack_.push_back(iter);
 2472|  3.00k|                        iter->next(visitor, *this, ec);
 2473|  3.00k|                    }
 2474|  3.00k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2475|  3.00k|                    more_ = !cursor_mode_;
 2476|  3.00k|                    break;
 2477|  3.00k|                }
 2478|    884|                case 0x49:
  ------------------
  |  Branch (2478:17): [True: 884, False: 72.5k]
  ------------------
 2479|  2.48k|                case 0x4d:
  ------------------
  |  Branch (2479:17): [True: 1.59k, False: 71.8k]
  ------------------
 2480|  2.48k|                {
 2481|  2.48k|                    array_tag_ = typed_array_tags::int16;
 2482|  2.48k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2483|  2.48k|                    read(array_buffer, ec);
 2484|  2.48k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.48k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.48k]
  |  |  ------------------
  ------------------
 2485|      0|                    {
 2486|      0|                        more_ = false;
 2487|      0|                        return;
 2488|      0|                    }
 2489|  2.48k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2490|  2.48k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2491|  2.48k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2492|  2.48k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2492:25): [True: 884, False: 1.59k]
  ------------------
 2493|    884|                    {
 2494|  6.31k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2494:49): [True: 5.43k, False: 884]
  ------------------
 2495|  5.43k|                        {
 2496|  5.43k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2497|  5.43k|                        }
 2498|    884|                    }
 2499|  2.48k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2499:25): [True: 1.64k, False: 841]
  |  Branch (2499:42): [True: 0, False: 1.64k]
  ------------------
 2500|      0|                    {
 2501|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2501:29): [True: 0, False: 0]
  ------------------
 2502|      0|                        {
 2503|      0|                            ec = cbor_errc::bad_extents;
 2504|      0|                            more_ = false;
 2505|      0|                            return;
 2506|      0|                        }
 2507|      0|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2508|      0|                            typed_array_tags::int16, extents_, order_, alloc_);
 2509|      0|                        typed_array_stack_.push_back(iter);
 2510|      0|                        iter->next(visitor, *this, ec);
 2511|      0|                    }
 2512|  2.48k|                    else
 2513|  2.48k|                    {
 2514|  2.48k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2515|  2.48k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2516|  2.48k|                        typed_array_stack_.push_back(iter);
 2517|  2.48k|                        iter->next(visitor, *this, ec);
 2518|  2.48k|                    }
 2519|  2.48k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2520|  2.48k|                    more_ = !cursor_mode_;
 2521|  2.48k|                    break;
 2522|  2.48k|                }
 2523|  5.61k|                case 0x4a:
  ------------------
  |  Branch (2523:17): [True: 5.61k, False: 67.8k]
  ------------------
 2524|  6.48k|                case 0x4e:
  ------------------
  |  Branch (2524:17): [True: 874, False: 72.5k]
  ------------------
 2525|  6.48k|                {
 2526|  6.48k|                    array_tag_ = typed_array_tags::int32;
 2527|  6.48k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2528|  6.48k|                    read(array_buffer, ec);
 2529|  6.48k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.48k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 6.48k]
  |  |  ------------------
  ------------------
 2530|      0|                    {
 2531|      0|                        more_ = false;
 2532|      0|                        return;
 2533|      0|                    }
 2534|  6.48k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2535|  6.48k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2536|  6.48k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2537|  6.48k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2537:25): [True: 5.61k, False: 874]
  ------------------
 2538|  5.61k|                    {
 2539|  74.2k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2539:49): [True: 68.6k, False: 5.61k]
  ------------------
 2540|  68.6k|                        {
 2541|  68.6k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2542|  68.6k|                        }
 2543|  5.61k|                    }
 2544|  6.48k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2544:25): [True: 4.29k, False: 2.19k]
  |  Branch (2544:42): [True: 0, False: 4.29k]
  ------------------
 2545|      0|                    {
 2546|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2546:29): [True: 0, False: 0]
  ------------------
 2547|      0|                        {
 2548|      0|                            ec = cbor_errc::bad_extents;
 2549|      0|                            more_ = false;
 2550|      0|                            return;
 2551|      0|                        }
 2552|      0|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2553|      0|                            typed_array_tags::int32, extents_, order_, alloc_);
 2554|      0|                        typed_array_stack_.push_back(iter);
 2555|      0|                        iter->next(visitor, *this, ec);
 2556|      0|                    }
 2557|  6.48k|                    else
 2558|  6.48k|                    {
 2559|  6.48k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2560|  6.48k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2561|  6.48k|                        typed_array_stack_.push_back(iter);
 2562|  6.48k|                        iter->next(visitor, *this, ec);
 2563|  6.48k|                    }
 2564|  6.48k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2565|  6.48k|                    more_ = !cursor_mode_;
 2566|  6.48k|                    break;
 2567|  6.48k|                }
 2568|  2.01k|                case 0x4b:
  ------------------
  |  Branch (2568:17): [True: 2.01k, False: 71.4k]
  ------------------
 2569|  2.87k|                case 0x4f:
  ------------------
  |  Branch (2569:17): [True: 858, False: 72.5k]
  ------------------
 2570|  2.87k|                {
 2571|  2.87k|                    array_tag_ = typed_array_tags::int64;
 2572|  2.87k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2573|  2.87k|                    read(array_buffer, ec);
 2574|  2.87k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.87k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.87k]
  |  |  ------------------
  ------------------
 2575|      0|                    {
 2576|      0|                        more_ = false;
 2577|      0|                        return;
 2578|      0|                    }
 2579|  2.87k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2580|  2.87k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2581|  2.87k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2582|  2.87k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2582:25): [True: 2.01k, False: 858]
  ------------------
 2583|  2.01k|                    {
 2584|  6.76k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2584:49): [True: 4.75k, False: 2.01k]
  ------------------
 2585|  4.75k|                        {
 2586|  4.75k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2587|  4.75k|                        }
 2588|  2.01k|                    }
 2589|  2.87k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2589:25): [True: 1.88k, False: 988]
  |  Branch (2589:42): [True: 0, False: 1.88k]
  ------------------
 2590|      0|                    {
 2591|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2591:29): [True: 0, False: 0]
  ------------------
 2592|      0|                        {
 2593|      0|                            ec = cbor_errc::bad_extents;
 2594|      0|                            more_ = false;
 2595|      0|                            return;
 2596|      0|                        }
 2597|      0|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2598|      0|                            typed_array_tags::int64, extents_, order_, alloc_);
 2599|      0|                        typed_array_stack_.push_back(iter);
 2600|      0|                        iter->next(visitor, *this, ec);
 2601|      0|                    }
 2602|  2.87k|                    else
 2603|  2.87k|                    {
 2604|  2.87k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2605|  2.87k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2606|  2.87k|                        typed_array_stack_.push_back(iter);
 2607|  2.87k|                        iter->next(visitor, *this, ec);
 2608|  2.87k|                    }
 2609|  2.87k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2610|  2.87k|                    more_ = !cursor_mode_;
 2611|  2.87k|                    break;
 2612|  2.87k|                }
 2613|  5.55k|                case 0x50:
  ------------------
  |  Branch (2613:17): [True: 5.55k, False: 67.8k]
  ------------------
 2614|  8.09k|                case 0x54:
  ------------------
  |  Branch (2614:17): [True: 2.53k, False: 70.9k]
  ------------------
 2615|  8.09k|                {
 2616|  8.09k|                    array_tag_ = typed_array_tags::half_float;
 2617|  8.09k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2618|  8.09k|                    read(array_buffer, ec);
 2619|  8.09k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.09k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.09k]
  |  |  ------------------
  ------------------
 2620|      0|                    {
 2621|      0|                        more_ = false;
 2622|      0|                        return;
 2623|      0|                    }
 2624|  8.09k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2625|  8.09k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2626|  8.09k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2627|  8.09k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2627:25): [True: 5.55k, False: 2.53k]
  ------------------
 2628|  5.55k|                    {
 2629|   803k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2629:49): [True: 798k, False: 5.55k]
  ------------------
 2630|   798k|                        {
 2631|   798k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2632|   798k|                        }
 2633|  5.55k|                    }
 2634|  8.09k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2634:25): [True: 5.37k, False: 2.71k]
  |  Branch (2634:42): [True: 0, False: 5.37k]
  ------------------
 2635|      0|                    {
 2636|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2636:29): [True: 0, False: 0]
  ------------------
 2637|      0|                        {
 2638|      0|                            ec = cbor_errc::bad_extents;
 2639|      0|                            more_ = false;
 2640|      0|                            return;
 2641|      0|                        }
 2642|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2643|      0|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2644|      0|                        typed_array_stack_.push_back(iter);
 2645|      0|                        iter->next(visitor, *this, ec);
 2646|      0|                    }
 2647|  8.09k|                    else
 2648|  8.09k|                    {
 2649|  8.09k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2650|  8.09k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2651|  8.09k|                        typed_array_stack_.push_back(iter);
 2652|  8.09k|                        iter->next(visitor, *this, ec);
 2653|  8.09k|                    }
 2654|  8.09k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2655|  8.09k|                    more_ = !cursor_mode_;
 2656|  8.09k|                    break;
 2657|  8.09k|                }
 2658|  7.84k|                case 0x51:
  ------------------
  |  Branch (2658:17): [True: 7.84k, False: 65.6k]
  ------------------
 2659|  8.44k|                case 0x55:
  ------------------
  |  Branch (2659:17): [True: 598, False: 72.8k]
  ------------------
 2660|  8.44k|                {
 2661|  8.44k|                    array_tag_ = typed_array_tags::float32;
 2662|  8.44k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2663|  8.44k|                    read(array_buffer, ec);
 2664|  8.44k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.44k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.44k]
  |  |  ------------------
  ------------------
 2665|      0|                    {
 2666|      0|                        more_ = false;
 2667|      0|                        return;
 2668|      0|                    }
 2669|  8.44k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2670|  8.44k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2671|  8.44k|                    auto ta = typed_array_cast<float>(array_buffer);
 2672|  8.44k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2672:25): [True: 7.84k, False: 598]
  ------------------
 2673|  7.84k|                    {
 2674|  1.60M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2674:49): [True: 1.60M, False: 7.84k]
  ------------------
 2675|  1.60M|                        {
 2676|  1.60M|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2677|  1.60M|                        }
 2678|  7.84k|                    }
 2679|  8.44k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2679:25): [True: 5.60k, False: 2.84k]
  |  Branch (2679:42): [True: 0, False: 5.60k]
  ------------------
 2680|      0|                    {
 2681|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2681:29): [True: 0, False: 0]
  ------------------
 2682|      0|                        {
 2683|      0|                            ec = cbor_errc::bad_extents;
 2684|      0|                            more_ = false;
 2685|      0|                            return;
 2686|      0|                        }
 2687|      0|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2688|      0|                            typed_array_tags::float32, extents_, order_, alloc_);
 2689|      0|                        typed_array_stack_.push_back(iter);
 2690|      0|                        iter->next(visitor, *this, ec);
 2691|      0|                    }
 2692|  8.44k|                    else
 2693|  8.44k|                    {
 2694|  8.44k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2695|  8.44k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2696|  8.44k|                        typed_array_stack_.push_back(iter);
 2697|  8.44k|                        iter->next(visitor, *this, ec);
 2698|  8.44k|                    }
 2699|  8.44k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2700|  8.44k|                    more_ = !cursor_mode_;
 2701|  8.44k|                    break;
 2702|  8.44k|                }
 2703|  3.03k|                case 0x52:
  ------------------
  |  Branch (2703:17): [True: 3.03k, False: 70.4k]
  ------------------
 2704|  5.23k|                case 0x56:
  ------------------
  |  Branch (2704:17): [True: 2.20k, False: 71.2k]
  ------------------
 2705|  5.23k|                {
 2706|  5.23k|                    array_tag_ = typed_array_tags::float64;
 2707|  5.23k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2708|  5.23k|                    read(array_buffer, ec);
 2709|  5.23k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.23k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.23k]
  |  |  ------------------
  ------------------
 2710|      0|                    {
 2711|      0|                        more_ = false;
 2712|      0|                        return;
 2713|      0|                    }
 2714|  5.23k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2715|  5.23k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2716|  5.23k|                    auto ta = typed_array_cast<double>(array_buffer);
 2717|  5.23k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2717:25): [True: 3.03k, False: 2.20k]
  ------------------
 2718|  3.03k|                    {
 2719|  20.7k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2719:49): [True: 17.7k, False: 3.03k]
  ------------------
 2720|  17.7k|                        {
 2721|  17.7k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2722|  17.7k|                        }
 2723|  3.03k|                    }
 2724|  5.23k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2724:25): [True: 3.45k, False: 1.78k]
  |  Branch (2724:42): [True: 0, False: 3.45k]
  ------------------
 2725|      0|                    {
 2726|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2726:29): [True: 0, False: 0]
  ------------------
 2727|      0|                        {
 2728|      0|                            ec = cbor_errc::bad_extents;
 2729|      0|                            more_ = false;
 2730|      0|                            return;
 2731|      0|                        }
 2732|      0|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2733|      0|                            typed_array_tags::float64, extents_, order_, alloc_);
 2734|      0|                        typed_array_stack_.push_back(iter);
 2735|      0|                        iter->next(visitor, *this, ec);
 2736|      0|                    }
 2737|  5.23k|                    else
 2738|  5.23k|                    {
 2739|  5.23k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2740|  5.23k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2741|  5.23k|                        typed_array_stack_.push_back(iter);
 2742|  5.23k|                        iter->next(visitor, *this, ec);
 2743|  5.23k|                    }
 2744|  5.23k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2745|  5.23k|                    more_ = !cursor_mode_;
 2746|  5.23k|                    break;
 2747|  5.23k|                }
 2748|  2.23k|                default:
  ------------------
  |  Branch (2748:17): [True: 2.23k, False: 71.2k]
  ------------------
 2749|  2.23k|                {
 2750|  2.23k|                    auto bytes = read.view(ec);
 2751|  2.23k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.23k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.23k]
  |  |  ------------------
  ------------------
 2752|      0|                    {
 2753|      0|                        more_ = false;
 2754|      0|                        return;
 2755|      0|                    }
 2756|  2.23k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2757|  2.23k|                    more_ = !cursor_mode_;
 2758|  2.23k|                    break;
 2759|  2.23k|                }
 2760|  73.4k|            }
 2761|  73.4k|            other_tags_[item_tag] = false;
 2762|  73.4k|        }
 2763|  13.9k|        else
 2764|  13.9k|        {
 2765|  13.9k|            auto bytes = read.view(ec);
 2766|  13.9k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 13.9k]
  |  |  ------------------
  ------------------
 2767|      0|            {
 2768|      0|                return;
 2769|      0|            }
 2770|  13.9k|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2771|  13.9k|            more_ = !cursor_mode_;
 2772|  13.9k|        }
 2773|  87.3k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_buffer4viewERNS3_10error_codeE:
  190|  25.8k|        {
  191|  25.8k|            return bytes;
  192|  25.8k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  180|  61.5k|        {
  181|  61.5k|            c.clear();
  182|  61.5k|            c.reserve(bytes.size());
  183|  61.5k|            for (auto b : bytes)
  ------------------
  |  Branch (183:25): [True: 13.3M, False: 61.5k]
  ------------------
  184|  13.3M|            {
  185|  13.3M|                c.push_back(b);
  186|  13.3M|            }
  187|  61.5k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26get_typed_array_endiannessEh:
 2170|   251k|    {
 2171|   251k|        return ((tag & detail::cbor_array_tags_e_mask) >> detail::cbor_array_tags_e_shift) == 0 ? jsoncons::endian::big : jsoncons::endian::little; 
  ------------------
  |  Branch (2171:16): [True: 122k, False: 128k]
  ------------------
 2172|   251k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_negative_integerEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1506|  14.2M|    {
 1507|  14.2M|        semantic_tag tag = semantic_tag::none;
 1508|  14.2M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (1508:13): [True: 43.8k, False: 14.2M]
  ------------------
 1509|  43.8k|        {
 1510|  43.8k|            if (raw_tag_ == 1)
  ------------------
  |  Branch (1510:17): [True: 1.08k, False: 42.7k]
  ------------------
 1511|  1.08k|            {
 1512|  1.08k|                tag = semantic_tag::epoch_second;
 1513|  1.08k|            }
 1514|  43.8k|            other_tags_[item_tag] = false;
 1515|  43.8k|        }
 1516|       |
 1517|  14.2M|        switch (info)
 1518|  14.2M|        {
 1519|  13.7M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  13.7M|    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.5k, False: 14.2M]
  |  |  |  Branch (18:20): [True: 51.3k, False: 14.2M]
  |  |  |  Branch (18:30): [True: 28.1k, False: 14.2M]
  |  |  |  Branch (18:40): [True: 55.6k, False: 14.2M]
  |  |  |  Branch (18:50): [True: 131k, False: 14.1M]
  |  |  |  Branch (18:60): [True: 15.4k, False: 14.2M]
  |  |  |  Branch (18:70): [True: 56.9k, False: 14.2M]
  |  |  |  Branch (18:80): [True: 193k, False: 14.0M]
  |  |  |  Branch (18:90): [True: 17.3k, False: 14.2M]
  |  |  |  Branch (18:100): [True: 32.2k, False: 14.2M]
  |  |  |  Branch (18:110): [True: 20.5k, False: 14.2M]
  |  |  |  Branch (18:120): [True: 16.7k, False: 14.2M]
  |  |  |  Branch (18:130): [True: 403k, False: 13.8M]
  |  |  |  Branch (18:140): [True: 219k, False: 14.0M]
  |  |  |  Branch (18:150): [True: 1.21M, False: 13.0M]
  |  |  |  Branch (18:160): [True: 9.16M, False: 5.12M]
  |  |  |  Branch (18:170): [True: 58.0k, False: 14.2M]
  |  |  |  Branch (18:180): [True: 300k, False: 13.9M]
  |  |  |  Branch (18:190): [True: 409k, False: 13.8M]
  |  |  |  Branch (18:200): [True: 280k, False: 14.0M]
  |  |  |  Branch (18:210): [True: 236k, False: 14.0M]
  |  |  |  Branch (18:220): [True: 192k, False: 14.0M]
  |  |  ------------------
  ------------------
  |  Branch (1519:13): [True: 79.6k, False: 14.2M]
  ------------------
 1520|  13.7M|            {
 1521|  13.7M|                int64_t val = static_cast<int8_t>(- 1 - info);
 1522|  13.7M|                visitor.int64_value(val, tag, *this, ec);
 1523|  13.7M|                more_ = !cursor_mode_;
 1524|  13.7M|                break;
 1525|  97.9M|            }
 1526|   262k|            case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1526:13): [True: 262k, False: 14.0M]
  ------------------
 1527|   262k|            {
 1528|   262k|                uint8_t b;
 1529|   262k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1529:21): [True: 62, False: 262k]
  ------------------
 1530|     62|                {
 1531|     62|                    ec = cbor_errc::unexpected_eof;
 1532|     62|                    more_ = false;
 1533|     62|                    return;
 1534|     62|                }
 1535|   262k|                int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1536|   262k|                visitor.int64_value(val, tag, *this, ec);
 1537|   262k|                more_ = !cursor_mode_;
 1538|   262k|                break;
 1539|   262k|            }
 1540|   257k|            case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1540:13): [True: 257k, False: 14.0M]
  ------------------
 1541|   257k|            {
 1542|   257k|                uint8_t buf[sizeof(uint16_t)];
 1543|   257k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1543:21): [True: 41, False: 257k]
  ------------------
 1544|     41|                {
 1545|     41|                    ec = cbor_errc::unexpected_eof;
 1546|     41|                    more_ = false;
 1547|     41|                    return;
 1548|     41|                }
 1549|   257k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1550|   257k|                int64_t val = static_cast<int64_t>(-1)- u;
 1551|   257k|                visitor.int64_value(val, tag, *this, ec);
 1552|   257k|                more_ = !cursor_mode_;
 1553|   257k|                break;
 1554|   257k|            }
 1555|  4.10k|            case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1555:13): [True: 4.10k, False: 14.2M]
  ------------------
 1556|  4.10k|            {
 1557|  4.10k|                uint8_t buf[sizeof(uint32_t)];
 1558|  4.10k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1558:21): [True: 80, False: 4.02k]
  ------------------
 1559|     80|                {
 1560|     80|                    ec = cbor_errc::unexpected_eof;
 1561|     80|                    more_ = false;
 1562|     80|                    return;
 1563|     80|                }
 1564|  4.02k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1565|  4.02k|                int64_t val = static_cast<int64_t>(-1)- u;
 1566|  4.02k|                visitor.int64_value(val, tag, *this, ec);
 1567|  4.02k|                more_ = !cursor_mode_;
 1568|  4.02k|                break;
 1569|  4.10k|            }
 1570|  20.6k|            case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1570:13): [True: 20.6k, False: 14.2M]
  ------------------
 1571|  20.6k|            {
 1572|  20.6k|                uint8_t buf[sizeof(uint64_t)];
 1573|  20.6k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1573:21): [True: 175, False: 20.5k]
  ------------------
 1574|    175|                {
 1575|    175|                    ec = cbor_errc::unexpected_eof;
 1576|    175|                    more_ = false;
 1577|    175|                    return;
 1578|    175|                }
 1579|  20.5k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1580|  20.5k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1580:21): [True: 11.7k, False: 8.77k]
  ------------------
 1581|  11.7k|                {
 1582|       |                    //ec = cbor_errc::invalid_negative_integer;
 1583|       |                    //more_ = false;
 1584|       |                    //return;
 1585|  11.7k|                    bigint b(u);
 1586|  11.7k|                    bigint b2 = -1 - b;
 1587|  11.7k|                    text_buffer_.clear();
 1588|  11.7k|                    b2.append_to_buffer(text_buffer_);
 1589|  11.7k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 1590|  11.7k|                }
 1591|  8.77k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  8.77k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 660, False: 8.11k]
  |  |  ------------------
  ------------------
 1592|    660|                {
 1593|    660|                    visitor.int64_value((std::numeric_limits<int64_t>::min)(), tag, *this, ec);
 1594|    660|                }
 1595|  8.11k|                else
 1596|  8.11k|                {
 1597|  8.11k|                    int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(u);
 1598|  8.11k|                    visitor.int64_value(val, tag, *this, ec);
 1599|  8.11k|                }
 1600|  20.5k|                more_ = !cursor_mode_;
 1601|  20.5k|                break;
 1602|  20.6k|            }
 1603|    146|            default:
  ------------------
  |  Branch (1603:13): [True: 146, False: 14.2M]
  ------------------
 1604|    146|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (1604:22): [True: 146, False: 0]
  ------------------
 1605|    146|                more_ = false;
 1606|    146|                return;
 1607|  14.2M|        }
 1608|  14.2M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceC2EPS8_:
  200|  12.5M|            : source(source)
  201|  12.5M|        {
  202|  12.5M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_sourceEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2184|  12.5M|    {
 2185|  12.5M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2185:13): [True: 596k, False: 11.9M]
  ------------------
 2186|   596k|        {
 2187|   596k|            switch (raw_tag_)
 2188|   596k|            {
 2189|  23.8k|                case 0x2:
  ------------------
  |  Branch (2189:17): [True: 23.8k, False: 572k]
  ------------------
 2190|  23.8k|                {
 2191|  23.8k|                    auto bytes = read.view(ec);
 2192|  23.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  23.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 47, False: 23.8k]
  |  |  ------------------
  ------------------
 2193|     47|                    {
 2194|     47|                        more_ = false;
 2195|     47|                        return;
 2196|     47|                    }
 2197|  23.8k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2198|  23.8k|                    text_buffer_.clear();
 2199|  23.8k|                    b.append_to_buffer(text_buffer_);
 2200|  23.8k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2201|  23.8k|                    more_ = !cursor_mode_;
 2202|  23.8k|                    break;
 2203|  23.8k|                }
 2204|  52.4k|                case 0x3:
  ------------------
  |  Branch (2204:17): [True: 52.4k, False: 544k]
  ------------------
 2205|  52.4k|                {
 2206|  52.4k|                    auto bytes = read.view(ec);
 2207|  52.4k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  52.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 65, False: 52.3k]
  |  |  ------------------
  ------------------
 2208|     65|                    {
 2209|     65|                        more_ = false;
 2210|     65|                        return;
 2211|     65|                    }
 2212|  52.3k|                    bigint b = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2213|  52.3k|                    b = -1 - b;
 2214|  52.3k|                    text_buffer_.clear();
 2215|  52.3k|                    b.append_to_buffer(text_buffer_);
 2216|  52.3k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2217|  52.3k|                    more_ = !cursor_mode_;
 2218|  52.3k|                    break;
 2219|  52.4k|                }
 2220|  36.6k|                case 0x15:
  ------------------
  |  Branch (2220:17): [True: 36.6k, False: 560k]
  ------------------
 2221|  44.4k|                case 0x16:
  ------------------
  |  Branch (2221:17): [True: 7.80k, False: 588k]
  ------------------
 2222|  52.2k|                case 0x17:
  ------------------
  |  Branch (2222:17): [True: 7.83k, False: 588k]
  ------------------
 2223|  52.2k|                {
 2224|  52.2k|                    auto bytes = read.view(ec);
 2225|  52.2k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  52.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 51, False: 52.2k]
  |  |  ------------------
  ------------------
 2226|     51|                    {
 2227|     51|                        more_ = false;
 2228|     51|                        return;
 2229|     51|                    }
 2230|  52.2k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2230:46): [True: 36.5k, False: 15.6k]
  ------------------
 2231|  52.2k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2231:27): [True: 7.78k, False: 7.81k]
  ------------------
 2232|  15.6k|                        : semantic_tag::base16;
 2233|  52.2k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2234|  52.2k|                    more_ = !cursor_mode_;
 2235|  52.2k|                    break;
 2236|  52.2k|                }
 2237|  8.65k|                case 0x40:
  ------------------
  |  Branch (2237:17): [True: 8.65k, False: 588k]
  ------------------
 2238|  8.65k|                {
 2239|  8.65k|                    array_tag_ = typed_array_tags::uint8;
 2240|  8.65k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2241|  8.65k|                    read(array_buffer, ec);
 2242|  8.65k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.65k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 22, False: 8.63k]
  |  |  ------------------
  ------------------
 2243|     22|                    {
 2244|     22|                        more_ = false;
 2245|     22|                        return;
 2246|     22|                    }
 2247|  8.63k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2248|  8.63k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2248:25): [True: 5.69k, False: 2.94k]
  |  Branch (2248:42): [True: 1.29k, False: 4.40k]
  ------------------
 2249|  1.29k|                    {
 2250|  1.29k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2250:29): [True: 318, False: 972]
  ------------------
 2251|    318|                        {
 2252|    318|                            ec = cbor_errc::bad_extents;
 2253|    318|                            more_ = false;
 2254|    318|                            return;
 2255|    318|                        }
 2256|    972|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2257|    972|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2258|    972|                        typed_array_stack_.push_back(iter);
 2259|    972|                        iter->next(visitor, *this, ec);
 2260|    972|                    }
 2261|  7.34k|                    else
 2262|  7.34k|                    {
 2263|  7.34k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2264|  7.34k|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2265|  7.34k|                        typed_array_stack_.push_back(iter);
 2266|  7.34k|                        iter->next(visitor, *this, ec);
 2267|  7.34k|                    }
 2268|  8.31k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2269|  8.31k|                    more_ = !cursor_mode_;
 2270|  8.31k|                    break;
 2271|  8.63k|                }
 2272|  11.5k|                case 0x44:
  ------------------
  |  Branch (2272:17): [True: 11.5k, False: 585k]
  ------------------
 2273|  11.5k|                {
 2274|  11.5k|                    array_tag_ = typed_array_tags::uint8;
 2275|  11.5k|                    typed_array_tag_ = semantic_tag::clamped;
 2276|  11.5k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2277|  11.5k|                    read(array_buffer, ec);
 2278|  11.5k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  11.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 26, False: 11.5k]
  |  |  ------------------
  ------------------
 2279|     26|                    {
 2280|     26|                        more_ = false;
 2281|     26|                        return;
 2282|     26|                    }
 2283|  11.5k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2284|  11.5k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2284:25): [True: 7.63k, False: 3.91k]
  |  Branch (2284:42): [True: 4.76k, False: 2.87k]
  ------------------
 2285|  4.76k|                    {
 2286|  4.76k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2286:29): [True: 224, False: 4.54k]
  ------------------
 2287|    224|                        {
 2288|    224|                            ec = cbor_errc::bad_extents;
 2289|    224|                            more_ = false;
 2290|    224|                            return;
 2291|    224|                        }
 2292|  4.54k|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2293|  4.54k|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2294|  4.54k|                        typed_array_stack_.push_back(iter);
 2295|  4.54k|                        iter->next(visitor, *this, ec);
 2296|  4.54k|                    }
 2297|  6.78k|                    else
 2298|  6.78k|                    {
 2299|  6.78k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2300|  6.78k|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2301|  6.78k|                        typed_array_stack_.push_back(iter);
 2302|  6.78k|                        iter->next(visitor, *this, ec);
 2303|  6.78k|                    }
 2304|  11.3k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2305|  11.3k|                    more_ = !cursor_mode_;
 2306|  11.3k|                    break;
 2307|  11.5k|                }
 2308|  18.5k|                case 0x41:
  ------------------
  |  Branch (2308:17): [True: 18.5k, False: 578k]
  ------------------
 2309|  19.7k|                case 0x45:
  ------------------
  |  Branch (2309:17): [True: 1.18k, False: 595k]
  ------------------
 2310|  19.7k|                {
 2311|  19.7k|                    array_tag_ = typed_array_tags::uint16;
 2312|  19.7k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2313|  19.7k|                    read(array_buffer, ec);
 2314|  19.7k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  19.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 77, False: 19.6k]
  |  |  ------------------
  ------------------
 2315|     77|                    {
 2316|     77|                        more_ = false;
 2317|     77|                        return;
 2318|     77|                    }
 2319|  19.6k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2320|  19.6k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2321|  19.6k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2322|  19.6k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2322:25): [True: 18.4k, False: 1.16k]
  ------------------
 2323|  18.4k|                    {
 2324|  93.7k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2324:49): [True: 75.2k, False: 18.4k]
  ------------------
 2325|  75.2k|                        {
 2326|  75.2k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2327|  75.2k|                        }
 2328|  18.4k|                    }
 2329|  19.6k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2329:25): [True: 12.9k, False: 6.67k]
  |  Branch (2329:42): [True: 2.48k, False: 10.4k]
  ------------------
 2330|  2.48k|                    {
 2331|  2.48k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2331:29): [True: 410, False: 2.07k]
  ------------------
 2332|    410|                        {
 2333|    410|                            ec = cbor_errc::bad_extents;
 2334|    410|                            more_ = false;
 2335|    410|                            return;
 2336|    410|                        }
 2337|  2.07k|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2338|  2.07k|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2339|  2.07k|                        typed_array_stack_.push_back(iter);
 2340|  2.07k|                        iter->next(visitor, *this, ec);
 2341|  2.07k|                    }
 2342|  17.1k|                    else
 2343|  17.1k|                    {
 2344|  17.1k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2345|  17.1k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2346|  17.1k|                        typed_array_stack_.push_back(iter);
 2347|  17.1k|                        iter->next(visitor, *this, ec);
 2348|  17.1k|                    }
 2349|  19.2k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2350|  19.2k|                    more_ = !cursor_mode_;
 2351|  19.2k|                    break;
 2352|  19.6k|                }
 2353|  12.2k|                case 0x42:
  ------------------
  |  Branch (2353:17): [True: 12.2k, False: 584k]
  ------------------
 2354|  15.3k|                case 0x46:
  ------------------
  |  Branch (2354:17): [True: 3.11k, False: 593k]
  ------------------
 2355|  15.3k|                {
 2356|  15.3k|                    array_tag_ = typed_array_tags::uint32;
 2357|  15.3k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2358|  15.3k|                    read(array_buffer, ec);
 2359|  15.3k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  15.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 35, False: 15.3k]
  |  |  ------------------
  ------------------
 2360|     35|                    {
 2361|     35|                        more_ = false;
 2362|     35|                        return;
 2363|     35|                    }
 2364|  15.3k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2365|  15.3k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2366|  15.3k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2367|  15.3k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2367:25): [True: 12.1k, False: 3.11k]
  ------------------
 2368|  12.1k|                    {
 2369|  24.6k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2369:49): [True: 12.4k, False: 12.1k]
  ------------------
 2370|  12.4k|                        {
 2371|  12.4k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2372|  12.4k|                        }
 2373|  12.1k|                    }
 2374|  15.3k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2374:25): [True: 10.0k, False: 5.22k]
  |  Branch (2374:42): [True: 4.47k, False: 5.60k]
  ------------------
 2375|  4.47k|                    {
 2376|  4.47k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2376:29): [True: 302, False: 4.17k]
  ------------------
 2377|    302|                        {
 2378|    302|                            ec = cbor_errc::bad_extents;
 2379|    302|                            more_ = false;
 2380|    302|                            return;
 2381|    302|                        }
 2382|  4.17k|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2383|  4.17k|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2384|  4.17k|                        typed_array_stack_.push_back(iter);
 2385|  4.17k|                        iter->next(visitor, *this, ec);
 2386|  4.17k|                    }
 2387|  10.8k|                    else
 2388|  10.8k|                    {
 2389|  10.8k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2390|  10.8k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2391|  10.8k|                        typed_array_stack_.push_back(iter);
 2392|  10.8k|                        iter->next(visitor, *this, ec);
 2393|  10.8k|                    }
 2394|  15.0k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2395|  15.0k|                    more_ = !cursor_mode_;
 2396|  15.0k|                    break;
 2397|  15.3k|                }
 2398|  6.31k|                case 0x43:
  ------------------
  |  Branch (2398:17): [True: 6.31k, False: 590k]
  ------------------
 2399|  12.8k|                case 0x47:
  ------------------
  |  Branch (2399:17): [True: 6.58k, False: 590k]
  ------------------
 2400|  12.8k|                {
 2401|  12.8k|                    array_tag_ = typed_array_tags::uint64;
 2402|  12.8k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2403|  12.8k|                    read(array_buffer, ec);
 2404|  12.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 40, False: 12.8k]
  |  |  ------------------
  ------------------
 2405|     40|                    {
 2406|     40|                        more_ = false;
 2407|     40|                        return;
 2408|     40|                    }
 2409|  12.8k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2410|  12.8k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2411|  12.8k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2412|  12.8k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2412:25): [True: 6.30k, False: 6.55k]
  ------------------
 2413|  6.30k|                    {
 2414|  13.7k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2414:49): [True: 7.49k, False: 6.30k]
  ------------------
 2415|  7.49k|                        {
 2416|  7.49k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2417|  7.49k|                        }
 2418|  6.30k|                    }
 2419|  12.8k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2419:25): [True: 8.38k, False: 4.47k]
  |  Branch (2419:42): [True: 3.38k, False: 4.99k]
  ------------------
 2420|  3.38k|                    {
 2421|  3.38k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2421:29): [True: 350, False: 3.03k]
  ------------------
 2422|    350|                        {
 2423|    350|                            ec = cbor_errc::bad_extents;
 2424|    350|                            more_ = false;
 2425|    350|                            return;
 2426|    350|                        }
 2427|  3.03k|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2428|  3.03k|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2429|  3.03k|                        typed_array_stack_.push_back(iter);
 2430|  3.03k|                        iter->next(visitor, *this, ec);
 2431|  3.03k|                    }
 2432|  9.46k|                    else
 2433|  9.46k|                    {
 2434|  9.46k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2435|  9.46k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2436|  9.46k|                        typed_array_stack_.push_back(iter);
 2437|  9.46k|                        iter->next(visitor, *this, ec);
 2438|  9.46k|                    }
 2439|  12.5k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2440|  12.5k|                    more_ = !cursor_mode_;
 2441|  12.5k|                    break;
 2442|  12.8k|                }
 2443|  9.51k|                case 0x48:
  ------------------
  |  Branch (2443:17): [True: 9.51k, False: 587k]
  ------------------
 2444|  9.51k|                {
 2445|  9.51k|                    array_tag_ = typed_array_tags::int8;
 2446|  9.51k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2447|  9.51k|                    read(array_buffer, ec);
 2448|  9.51k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.51k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 25, False: 9.49k]
  |  |  ------------------
  ------------------
 2449|     25|                    {
 2450|     25|                        more_ = false;
 2451|     25|                        return;
 2452|     25|                    }
 2453|  9.49k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2454|  9.49k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2454:25): [True: 6.15k, False: 3.34k]
  |  Branch (2454:42): [True: 3.42k, False: 2.73k]
  ------------------
 2455|  3.42k|                    {
 2456|  3.42k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2456:29): [True: 424, False: 2.99k]
  ------------------
 2457|    424|                        {
 2458|    424|                            ec = cbor_errc::bad_extents;
 2459|    424|                            more_ = false;
 2460|    424|                            return;
 2461|    424|                        }
 2462|  2.99k|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2463|  2.99k|                            typed_array_tags::int8, extents_, order_, alloc_);
 2464|  2.99k|                        typed_array_stack_.push_back(iter);
 2465|  2.99k|                        iter->next(visitor, *this, ec);
 2466|  2.99k|                    }
 2467|  6.07k|                    else
 2468|  6.07k|                    {
 2469|  6.07k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2470|  6.07k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2471|  6.07k|                        typed_array_stack_.push_back(iter);
 2472|  6.07k|                        iter->next(visitor, *this, ec);
 2473|  6.07k|                    }
 2474|  9.06k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2475|  9.06k|                    more_ = !cursor_mode_;
 2476|  9.06k|                    break;
 2477|  9.49k|                }
 2478|  14.3k|                case 0x49:
  ------------------
  |  Branch (2478:17): [True: 14.3k, False: 582k]
  ------------------
 2479|  15.4k|                case 0x4d:
  ------------------
  |  Branch (2479:17): [True: 1.13k, False: 595k]
  ------------------
 2480|  15.4k|                {
 2481|  15.4k|                    array_tag_ = typed_array_tags::int16;
 2482|  15.4k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2483|  15.4k|                    read(array_buffer, ec);
 2484|  15.4k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  15.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 23, False: 15.4k]
  |  |  ------------------
  ------------------
 2485|     23|                    {
 2486|     23|                        more_ = false;
 2487|     23|                        return;
 2488|     23|                    }
 2489|  15.4k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2490|  15.4k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2491|  15.4k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2492|  15.4k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2492:25): [True: 14.2k, False: 1.13k]
  ------------------
 2493|  14.2k|                    {
 2494|  51.7k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2494:49): [True: 37.4k, False: 14.2k]
  ------------------
 2495|  37.4k|                        {
 2496|  37.4k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2497|  37.4k|                        }
 2498|  14.2k|                    }
 2499|  15.4k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2499:25): [True: 10.1k, False: 5.30k]
  |  Branch (2499:42): [True: 4.16k, False: 5.94k]
  ------------------
 2500|  4.16k|                    {
 2501|  4.16k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2501:29): [True: 308, False: 3.85k]
  ------------------
 2502|    308|                        {
 2503|    308|                            ec = cbor_errc::bad_extents;
 2504|    308|                            more_ = false;
 2505|    308|                            return;
 2506|    308|                        }
 2507|  3.85k|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2508|  3.85k|                            typed_array_tags::int16, extents_, order_, alloc_);
 2509|  3.85k|                        typed_array_stack_.push_back(iter);
 2510|  3.85k|                        iter->next(visitor, *this, ec);
 2511|  3.85k|                    }
 2512|  11.2k|                    else
 2513|  11.2k|                    {
 2514|  11.2k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2515|  11.2k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2516|  11.2k|                        typed_array_stack_.push_back(iter);
 2517|  11.2k|                        iter->next(visitor, *this, ec);
 2518|  11.2k|                    }
 2519|  15.1k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2520|  15.1k|                    more_ = !cursor_mode_;
 2521|  15.1k|                    break;
 2522|  15.4k|                }
 2523|  12.9k|                case 0x4a:
  ------------------
  |  Branch (2523:17): [True: 12.9k, False: 583k]
  ------------------
 2524|  54.9k|                case 0x4e:
  ------------------
  |  Branch (2524:17): [True: 42.0k, False: 554k]
  ------------------
 2525|  54.9k|                {
 2526|  54.9k|                    array_tag_ = typed_array_tags::int32;
 2527|  54.9k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2528|  54.9k|                    read(array_buffer, ec);
 2529|  54.9k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  54.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 46, False: 54.9k]
  |  |  ------------------
  ------------------
 2530|     46|                    {
 2531|     46|                        more_ = false;
 2532|     46|                        return;
 2533|     46|                    }
 2534|  54.9k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2535|  54.9k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2536|  54.9k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2537|  54.9k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2537:25): [True: 12.9k, False: 42.0k]
  ------------------
 2538|  12.9k|                    {
 2539|  21.1k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2539:49): [True: 8.22k, False: 12.9k]
  ------------------
 2540|  8.22k|                        {
 2541|  8.22k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2542|  8.22k|                        }
 2543|  12.9k|                    }
 2544|  54.9k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2544:25): [True: 36.3k, False: 18.6k]
  |  Branch (2544:42): [True: 2.59k, False: 33.7k]
  ------------------
 2545|  2.59k|                    {
 2546|  2.59k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2546:29): [True: 402, False: 2.19k]
  ------------------
 2547|    402|                        {
 2548|    402|                            ec = cbor_errc::bad_extents;
 2549|    402|                            more_ = false;
 2550|    402|                            return;
 2551|    402|                        }
 2552|  2.19k|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2553|  2.19k|                            typed_array_tags::int32, extents_, order_, alloc_);
 2554|  2.19k|                        typed_array_stack_.push_back(iter);
 2555|  2.19k|                        iter->next(visitor, *this, ec);
 2556|  2.19k|                    }
 2557|  52.3k|                    else
 2558|  52.3k|                    {
 2559|  52.3k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2560|  52.3k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2561|  52.3k|                        typed_array_stack_.push_back(iter);
 2562|  52.3k|                        iter->next(visitor, *this, ec);
 2563|  52.3k|                    }
 2564|  54.5k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2565|  54.5k|                    more_ = !cursor_mode_;
 2566|  54.5k|                    break;
 2567|  54.9k|                }
 2568|  11.8k|                case 0x4b:
  ------------------
  |  Branch (2568:17): [True: 11.8k, False: 584k]
  ------------------
 2569|  13.0k|                case 0x4f:
  ------------------
  |  Branch (2569:17): [True: 1.16k, False: 595k]
  ------------------
 2570|  13.0k|                {
 2571|  13.0k|                    array_tag_ = typed_array_tags::int64;
 2572|  13.0k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2573|  13.0k|                    read(array_buffer, ec);
 2574|  13.0k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 31, False: 12.9k]
  |  |  ------------------
  ------------------
 2575|     31|                    {
 2576|     31|                        more_ = false;
 2577|     31|                        return;
 2578|     31|                    }
 2579|  12.9k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2580|  12.9k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2581|  12.9k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2582|  12.9k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2582:25): [True: 11.8k, False: 1.16k]
  ------------------
 2583|  11.8k|                    {
 2584|  24.1k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2584:49): [True: 12.2k, False: 11.8k]
  ------------------
 2585|  12.2k|                        {
 2586|  12.2k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2587|  12.2k|                        }
 2588|  11.8k|                    }
 2589|  12.9k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2589:25): [True: 8.38k, False: 4.61k]
  |  Branch (2589:42): [True: 4.10k, False: 4.28k]
  ------------------
 2590|  4.10k|                    {
 2591|  4.10k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2591:29): [True: 342, False: 3.75k]
  ------------------
 2592|    342|                        {
 2593|    342|                            ec = cbor_errc::bad_extents;
 2594|    342|                            more_ = false;
 2595|    342|                            return;
 2596|    342|                        }
 2597|  3.75k|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2598|  3.75k|                            typed_array_tags::int64, extents_, order_, alloc_);
 2599|  3.75k|                        typed_array_stack_.push_back(iter);
 2600|  3.75k|                        iter->next(visitor, *this, ec);
 2601|  3.75k|                    }
 2602|  8.89k|                    else
 2603|  8.89k|                    {
 2604|  8.89k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2605|  8.89k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2606|  8.89k|                        typed_array_stack_.push_back(iter);
 2607|  8.89k|                        iter->next(visitor, *this, ec);
 2608|  8.89k|                    }
 2609|  12.6k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2610|  12.6k|                    more_ = !cursor_mode_;
 2611|  12.6k|                    break;
 2612|  12.9k|                }
 2613|  4.93k|                case 0x50:
  ------------------
  |  Branch (2613:17): [True: 4.93k, False: 591k]
  ------------------
 2614|  30.6k|                case 0x54:
  ------------------
  |  Branch (2614:17): [True: 25.7k, False: 570k]
  ------------------
 2615|  30.6k|                {
 2616|  30.6k|                    array_tag_ = typed_array_tags::half_float;
 2617|  30.6k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2618|  30.6k|                    read(array_buffer, ec);
 2619|  30.6k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  30.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 162, False: 30.5k]
  |  |  ------------------
  ------------------
 2620|    162|                    {
 2621|    162|                        more_ = false;
 2622|    162|                        return;
 2623|    162|                    }
 2624|  30.5k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2625|  30.5k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2626|  30.5k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2627|  30.5k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2627:25): [True: 4.91k, False: 25.5k]
  ------------------
 2628|  4.91k|                    {
 2629|   177k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2629:49): [True: 172k, False: 4.91k]
  ------------------
 2630|   172k|                        {
 2631|   172k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2632|   172k|                        }
 2633|  4.91k|                    }
 2634|  30.5k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2634:25): [True: 20.0k, False: 10.4k]
  |  Branch (2634:42): [True: 8.34k, False: 11.6k]
  ------------------
 2635|  8.34k|                    {
 2636|  8.34k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2636:29): [True: 1.73k, False: 6.60k]
  ------------------
 2637|  1.73k|                        {
 2638|  1.73k|                            ec = cbor_errc::bad_extents;
 2639|  1.73k|                            more_ = false;
 2640|  1.73k|                            return;
 2641|  1.73k|                        }
 2642|  6.60k|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2643|  6.60k|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2644|  6.60k|                        typed_array_stack_.push_back(iter);
 2645|  6.60k|                        iter->next(visitor, *this, ec);
 2646|  6.60k|                    }
 2647|  22.1k|                    else
 2648|  22.1k|                    {
 2649|  22.1k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2650|  22.1k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2651|  22.1k|                        typed_array_stack_.push_back(iter);
 2652|  22.1k|                        iter->next(visitor, *this, ec);
 2653|  22.1k|                    }
 2654|  28.7k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2655|  28.7k|                    more_ = !cursor_mode_;
 2656|  28.7k|                    break;
 2657|  30.5k|                }
 2658|  2.95k|                case 0x51:
  ------------------
  |  Branch (2658:17): [True: 2.95k, False: 593k]
  ------------------
 2659|  20.3k|                case 0x55:
  ------------------
  |  Branch (2659:17): [True: 17.3k, False: 579k]
  ------------------
 2660|  20.3k|                {
 2661|  20.3k|                    array_tag_ = typed_array_tags::float32;
 2662|  20.3k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2663|  20.3k|                    read(array_buffer, ec);
 2664|  20.3k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 68, False: 20.2k]
  |  |  ------------------
  ------------------
 2665|     68|                    {
 2666|     68|                        more_ = false;
 2667|     68|                        return;
 2668|     68|                    }
 2669|  20.2k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2670|  20.2k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2671|  20.2k|                    auto ta = typed_array_cast<float>(array_buffer);
 2672|  20.2k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2672:25): [True: 2.92k, False: 17.3k]
  ------------------
 2673|  2.92k|                    {
 2674|  7.49k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2674:49): [True: 4.56k, False: 2.92k]
  ------------------
 2675|  4.56k|                        {
 2676|  4.56k|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2677|  4.56k|                        }
 2678|  2.92k|                    }
 2679|  20.2k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2679:25): [True: 13.3k, False: 6.87k]
  |  Branch (2679:42): [True: 4.87k, False: 8.51k]
  ------------------
 2680|  4.87k|                    {
 2681|  4.87k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2681:29): [True: 354, False: 4.51k]
  ------------------
 2682|    354|                        {
 2683|    354|                            ec = cbor_errc::bad_extents;
 2684|    354|                            more_ = false;
 2685|    354|                            return;
 2686|    354|                        }
 2687|  4.51k|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2688|  4.51k|                            typed_array_tags::float32, extents_, order_, alloc_);
 2689|  4.51k|                        typed_array_stack_.push_back(iter);
 2690|  4.51k|                        iter->next(visitor, *this, ec);
 2691|  4.51k|                    }
 2692|  15.3k|                    else
 2693|  15.3k|                    {
 2694|  15.3k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2695|  15.3k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2696|  15.3k|                        typed_array_stack_.push_back(iter);
 2697|  15.3k|                        iter->next(visitor, *this, ec);
 2698|  15.3k|                    }
 2699|  19.9k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2700|  19.9k|                    more_ = !cursor_mode_;
 2701|  19.9k|                    break;
 2702|  20.2k|                }
 2703|  5.27k|                case 0x52:
  ------------------
  |  Branch (2703:17): [True: 5.27k, False: 591k]
  ------------------
 2704|  14.1k|                case 0x56:
  ------------------
  |  Branch (2704:17): [True: 8.89k, False: 587k]
  ------------------
 2705|  14.1k|                {
 2706|  14.1k|                    array_tag_ = typed_array_tags::float64;
 2707|  14.1k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2708|  14.1k|                    read(array_buffer, ec);
 2709|  14.1k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  14.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 125, False: 14.0k]
  |  |  ------------------
  ------------------
 2710|    125|                    {
 2711|    125|                        more_ = false;
 2712|    125|                        return;
 2713|    125|                    }
 2714|  14.0k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2715|  14.0k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2716|  14.0k|                    auto ta = typed_array_cast<double>(array_buffer);
 2717|  14.0k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2717:25): [True: 5.18k, False: 8.86k]
  ------------------
 2718|  5.18k|                    {
 2719|   144k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2719:49): [True: 139k, False: 5.18k]
  ------------------
 2720|   139k|                        {
 2721|   139k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2722|   139k|                        }
 2723|  5.18k|                    }
 2724|  14.0k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2724:25): [True: 9.20k, False: 4.84k]
  |  Branch (2724:42): [True: 3.09k, False: 6.10k]
  ------------------
 2725|  3.09k|                    {
 2726|  3.09k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2726:29): [True: 420, False: 2.67k]
  ------------------
 2727|    420|                        {
 2728|    420|                            ec = cbor_errc::bad_extents;
 2729|    420|                            more_ = false;
 2730|    420|                            return;
 2731|    420|                        }
 2732|  2.67k|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2733|  2.67k|                            typed_array_tags::float64, extents_, order_, alloc_);
 2734|  2.67k|                        typed_array_stack_.push_back(iter);
 2735|  2.67k|                        iter->next(visitor, *this, ec);
 2736|  2.67k|                    }
 2737|  10.9k|                    else
 2738|  10.9k|                    {
 2739|  10.9k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2740|  10.9k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2741|  10.9k|                        typed_array_stack_.push_back(iter);
 2742|  10.9k|                        iter->next(visitor, *this, ec);
 2743|  10.9k|                    }
 2744|  13.6k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2745|  13.6k|                    more_ = !cursor_mode_;
 2746|  13.6k|                    break;
 2747|  14.0k|                }
 2748|   241k|                default:
  ------------------
  |  Branch (2748:17): [True: 241k, False: 354k]
  ------------------
 2749|   241k|                {
 2750|   241k|                    auto bytes = read.view(ec);
 2751|   241k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   241k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 239, False: 241k]
  |  |  ------------------
  ------------------
 2752|    239|                    {
 2753|    239|                        more_ = false;
 2754|    239|                        return;
 2755|    239|                    }
 2756|   241k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2757|   241k|                    more_ = !cursor_mode_;
 2758|   241k|                    break;
 2759|   241k|                }
 2760|   596k|            }
 2761|   590k|            other_tags_[item_tag] = false;
 2762|   590k|        }
 2763|  11.9M|        else
 2764|  11.9M|        {
 2765|  11.9M|            auto bytes = read.view(ec);
 2766|  11.9M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  11.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.37k, False: 11.9M]
  |  |  ------------------
  ------------------
 2767|  3.37k|            {
 2768|  3.37k|                return;
 2769|  3.37k|            }
 2770|  11.9M|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2771|  11.9M|            more_ = !cursor_mode_;
 2772|  11.9M|        }
 2773|  12.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_source4viewERNS3_10error_codeE:
  210|  12.3M|        {
  211|  12.3M|            return source->read_byte_string_view(ec);
  212|  12.3M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_byte_string_viewERNS3_10error_codeE:
 1143|  12.3M|    {
 1144|  12.3M|        auto c = source_.peek();
 1145|  12.3M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  12.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 12.3M]
  |  |  ------------------
  ------------------
 1146|      0|        {
 1147|      0|            ec = cbor_errc::unexpected_eof;
 1148|      0|            more_ = false;
 1149|      0|            return byte_string_view();
 1150|      0|        }
 1151|  12.3M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1152|  12.3M|        uint8_t info = get_additional_information(c.value);
 1153|  12.3M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  12.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 12.3M]
  |  |  |  Branch (79:50): [True: 4.04k, False: 12.3M]
  |  |  |  Branch (79:50): [True: 0, False: 4.04k]
  |  |  ------------------
  ------------------
 1154|      0|        {
 1155|      0|            ec = cbor_errc::reserved_additional_info;
 1156|      0|            more_ = false;
 1157|      0|            return byte_string_view();
 1158|      0|        }
 1159|       |
 1160|  12.3M|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   54|  12.3M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 12.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 ))); }
  ------------------
 1161|       |
 1162|  12.3M|        source_.ignore(1);
 1163|  12.3M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1163:13): [True: 4.04k, False: 12.3M]
  ------------------
 1164|  4.04k|        {
 1165|  4.04k|            bytes_buffer_.clear();
 1166|  4.04k|            iterate_byte_string_chunks(bytes_buffer_, ec);
 1167|  4.04k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.04k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 886, False: 3.16k]
  |  |  ------------------
  ------------------
 1168|    886|            {
 1169|    886|                return byte_string_view();
 1170|    886|            }
 1171|  3.16k|            return byte_string_view(bytes_buffer_.data(), bytes_buffer_.size());
 1172|  4.04k|        }
 1173|       |
 1174|  12.3M|        std::size_t length = read_size(info, ec);
 1175|  12.3M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 177, False: 12.3M]
  |  |  ------------------
  ------------------
 1176|    177|        {
 1177|    177|            return byte_string_view();
 1178|    177|        }
 1179|  12.3M|        auto data = source_.read_span(length, bytes_buffer_);
 1180|  12.3M|        if (data.size() != length)
  ------------------
  |  Branch (1180:13): [True: 2.71k, False: 12.3M]
  ------------------
 1181|  2.71k|        {
 1182|  2.71k|            ec = cbor_errc::unexpected_eof;
 1183|  2.71k|            more_ = false;
 1184|  2.71k|            return byte_string_view();
 1185|  2.71k|        }
 1186|       |        
 1187|  12.3M|        byte_string_view bytes(data.data(), data.size());
 1188|  12.3M|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1188:13): [True: 10.4M, False: 1.93M]
  ------------------
 1189|  10.4M|            bytes.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1189:13): [True: 10.1M, False: 302k]
  ------------------
 1190|  10.1M|        {
 1191|  10.1M|            stringref_map_stack_.back().emplace_back(mapped_string(bytes, alloc_));
 1192|  10.1M|        }
 1193|  12.3M|        return bytes;
 1194|  12.3M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26iterate_byte_string_chunksINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
 1327|  7.83k|    {
 1328|  7.83k|        bool done = false;
 1329|  31.3k|        while (!done)
  ------------------
  |  Branch (1329:16): [True: 24.4k, False: 6.87k]
  ------------------
 1330|  24.4k|        {
 1331|  24.4k|            auto c = source_.peek();
 1332|  24.4k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  24.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 140, False: 24.3k]
  |  |  ------------------
  ------------------
 1333|    140|            {
 1334|    140|                ec = cbor_errc::unexpected_eof;
 1335|    140|                more_ = false;
 1336|    140|                return;
 1337|    140|            }
 1338|  24.3k|            if (c.value == 0xff)
  ------------------
  |  Branch (1338:17): [True: 6.87k, False: 17.4k]
  ------------------
 1339|  6.87k|            {
 1340|  6.87k|                source_.ignore(1);
 1341|  6.87k|                done = true;
 1342|  6.87k|                continue;
 1343|  6.87k|            }
 1344|       |
 1345|  17.4k|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1346|  17.4k|            if (major_type != jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1346:17): [True: 151, False: 17.3k]
  ------------------
 1347|    151|            {
 1348|    151|                ec = cbor_errc::illegal_chunked_string;
 1349|    151|                more_ = false;
 1350|    151|                return;
 1351|    151|            }
 1352|  17.3k|            uint8_t info = get_additional_information(c.value);
 1353|  17.3k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1353:17): [True: 30, False: 17.2k]
  ------------------
 1354|     30|            {
 1355|     30|                ec = cbor_errc::illegal_chunked_string;
 1356|     30|                more_ = false;
 1357|     30|                return;
 1358|     30|            }
 1359|       |
 1360|  17.2k|            source_.ignore(1);
 1361|  17.2k|            std::size_t length = read_size(info, ec);
 1362|  17.2k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  17.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 36, False: 17.2k]
  |  |  ------------------
  ------------------
 1363|     36|            {
 1364|     36|                return;
 1365|     36|            }
 1366|  17.2k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1366:17): [True: 608, False: 16.6k]
  ------------------
 1367|    608|            {
 1368|    608|                ec = cbor_errc::unexpected_eof;
 1369|    608|            }
 1370|  17.2k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  17.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 608, False: 16.6k]
  |  |  ------------------
  ------------------
 1371|    608|            {
 1372|    608|                return;
 1373|    608|            }
 1374|  17.2k|        }
 1375|  7.83k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_sizeEhRNS3_10error_codeE:
 1197|  64.5M|    {
 1198|  64.5M|        uint64_t u = read_unsigned_integer(info, ec);
 1199|  64.5M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  64.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 824, False: 64.5M]
  |  |  ------------------
  ------------------
 1200|    824|        {
 1201|    824|            return 0;
 1202|    824|        }
 1203|  64.5M|        std::size_t len = static_cast<std::size_t>(u);
 1204|  64.5M|        if (len != u)
  ------------------
  |  Branch (1204:13): [True: 0, False: 64.5M]
  ------------------
 1205|      0|        {
 1206|      0|            ec = cbor_errc::number_too_large;
 1207|      0|            more_ = false;
 1208|      0|        }
 1209|  64.5M|        return len;
 1210|  64.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2EOS9_:
  121|  26.4M|        mapped_string(mapped_string&&) = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS_16byte_string_viewERKS7_:
  110|  10.1M|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes.begin(),bytes.end(),alloc)
  111|  10.1M|        {
  112|  10.1M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  205|   226k|        {
  206|   226k|            source->read_byte_string(cont,ec);
  207|   226k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringERNS3_6vectorIhS5_EERNS3_10error_codeE:
 1213|   393k|    {
 1214|   393k|        v.clear();
 1215|   393k|        auto c = source_.peek();
 1216|   393k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   393k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 393k]
  |  |  ------------------
  ------------------
 1217|      0|        {
 1218|      0|            ec = cbor_errc::unexpected_eof;
 1219|      0|            return;
 1220|      0|        }
 1221|   393k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1222|   393k|        uint8_t info = get_additional_information(c.value);
 1223|   393k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   397k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 11, False: 393k]
  |  |  |  Branch (79:50): [True: 3.79k, False: 389k]
  |  |  |  Branch (79:50): [True: 11, False: 3.78k]
  |  |  ------------------
  ------------------
 1224|     11|        {
 1225|     11|            ec = cbor_errc::reserved_additional_info;
 1226|     11|            more_ = false;
 1227|     11|            return;
 1228|     11|        }
 1229|       |
 1230|   393k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   54|   393k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 393k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1231|       |
 1232|   393k|        source_.ignore(1);
 1233|   393k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1233:13): [True: 3.78k, False: 389k]
  ------------------
 1234|  3.78k|        {
 1235|  3.78k|            iterate_byte_string_chunks(v, ec);
 1236|  3.78k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.78k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 79, False: 3.70k]
  |  |  ------------------
  ------------------
 1237|     79|            {
 1238|     79|                return;
 1239|     79|            }
 1240|  3.78k|        }
 1241|   389k|        else 
 1242|   389k|        {
 1243|   389k|            std::size_t length = read_size(info, ec);
 1244|   389k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   389k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 15, False: 389k]
  |  |  ------------------
  ------------------
 1245|     15|            {
 1246|     15|                return;
 1247|     15|            }
 1248|   389k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1248:17): [True: 880, False: 388k]
  ------------------
 1249|    880|            {
 1250|    880|                ec = cbor_errc::unexpected_eof;
 1251|    880|                return;
 1252|    880|            }
 1253|   388k|            if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1253:17): [True: 123k, False: 265k]
  ------------------
 1254|   123k|                v.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1254:17): [True: 66.0k, False: 57.1k]
  ------------------
 1255|  66.0k|            {
 1256|  66.0k|                stringref_map_stack_.back().emplace_back(mapped_string(v, alloc_));
 1257|  66.0k|            }
 1258|   388k|        }
 1259|   393k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_6vectorIhS5_EERKS7_:
  104|  66.0k|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes,alloc)
  105|  66.0k|        {
  106|  66.0k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_text_string_viewEhRNS3_10error_codeE:
 1109|   588k|    {
 1110|   588k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1110:13): [True: 4.71k, False: 583k]
  ------------------
 1111|  4.71k|        {
 1112|  4.71k|            text_buffer_.clear();
 1113|  4.71k|            iterate_text_string_chunks(text_buffer_, ec);
 1114|  4.71k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.71k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.04k, False: 3.67k]
  |  |  ------------------
  ------------------
 1115|  1.04k|            {
 1116|  1.04k|                return string_view_type();
 1117|  1.04k|            }
 1118|  3.67k|            return string_view_type(text_buffer_.data(), text_buffer_.size());
 1119|  4.71k|        }
 1120|       |
 1121|   583k|        std::size_t length = read_size(info, ec);
 1122|   583k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   583k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 81, False: 583k]
  |  |  ------------------
  ------------------
 1123|     81|        {
 1124|     81|            return string_view_type();
 1125|     81|        }
 1126|   583k|        auto data = source_.read_span(length, text_buffer_);
 1127|   583k|        if (data.size() != length)
  ------------------
  |  Branch (1127:13): [True: 1.84k, False: 581k]
  ------------------
 1128|  1.84k|        {
 1129|  1.84k|            ec = cbor_errc::unexpected_eof;
 1130|  1.84k|            more_ = false;
 1131|  1.84k|            return string_view_type();
 1132|  1.84k|        }
 1133|   581k|        string_view_type sv(reinterpret_cast<const char_type*>(data.data()), data.size());
 1134|   581k|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1134:13): [True: 139k, False: 442k]
  ------------------
 1135|   139k|            sv.length() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1135:13): [True: 57.7k, False: 81.7k]
  ------------------
 1136|  57.7k|        {
 1137|  57.7k|            stringref_map_stack_.back().emplace_back(mapped_string(sv,alloc_));
 1138|  57.7k|        }
 1139|   581k|        return sv;
 1140|   583k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26iterate_text_string_chunksINS3_12basic_stringIcNS3_11char_traitsIcEES7_EEEEvRT_RNS3_10error_codeE:
 1263|  4.71k|    {
 1264|  4.71k|        bool done = false;
 1265|  16.8k|        while (!done)
  ------------------
  |  Branch (1265:16): [True: 13.1k, False: 3.67k]
  ------------------
 1266|  13.1k|        {
 1267|  13.1k|            auto c = source_.peek();
 1268|  13.1k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  13.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 89, False: 13.0k]
  |  |  ------------------
  ------------------
 1269|     89|            {
 1270|     89|                ec = cbor_errc::unexpected_eof;
 1271|     89|                more_ = false;
 1272|     89|                return;
 1273|     89|            }
 1274|  13.0k|            if (c.value == 0xff)
  ------------------
  |  Branch (1274:17): [True: 3.67k, False: 9.38k]
  ------------------
 1275|  3.67k|            {
 1276|  3.67k|                source_.ignore(1);
 1277|  3.67k|                done = true;
 1278|  3.67k|                continue;
 1279|  3.67k|            }
 1280|       |
 1281|  9.38k|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1282|  9.38k|            if (major_type != jsoncons::cbor::detail::cbor_major_type::text_string)
  ------------------
  |  Branch (1282:17): [True: 201, False: 9.18k]
  ------------------
 1283|    201|            {
 1284|    201|                ec = cbor_errc::illegal_chunked_string;
 1285|    201|                more_ = false;
 1286|    201|                return;
 1287|    201|            }
 1288|  9.18k|            uint8_t info = get_additional_information(c.value);
 1289|  9.18k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1289:17): [True: 17, False: 9.16k]
  ------------------
 1290|     17|            {
 1291|     17|                ec = cbor_errc::illegal_chunked_string;
 1292|     17|                more_ = false;
 1293|     17|                return;
 1294|     17|            }
 1295|       |
 1296|  9.16k|            source_.ignore(1);
 1297|  9.16k|            std::size_t length = read_size(info, ec);
 1298|  9.16k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.16k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 22, False: 9.14k]
  |  |  ------------------
  ------------------
 1299|     22|            {
 1300|     22|                return;
 1301|     22|            }
 1302|  9.14k|            const std::size_t offset = v.size();
 1303|  9.14k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1303:17): [True: 619, False: 8.52k]
  ------------------
 1304|    619|            {
 1305|    619|                ec = cbor_errc::unexpected_eof;
 1306|    619|            }
 1307|  9.14k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.14k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 619, False: 8.52k]
  |  |  ------------------
  ------------------
 1308|    619|            {
 1309|    619|                return;
 1310|    619|            }
 1311|       |            // RFC 8949 3.2.3: each chunk of an indefinite-length text
 1312|       |            // string must itself be well-formed UTF-8, so a code point
 1313|       |            // may not be split across chunks.
 1314|  8.52k|            auto result = unicode_traits::validate(
 1315|  8.52k|                reinterpret_cast<const char*>(v.data()) + offset, length);
 1316|  8.52k|            if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (1316:17): [True: 100, False: 8.42k]
  ------------------
 1317|    100|            {
 1318|    100|                ec = cbor_errc::invalid_utf8_text_string;
 1319|    100|                more_ = false;
 1320|    100|                return;
 1321|    100|            }
 1322|  8.52k|        }
 1323|  4.71k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKS7_:
   93|  57.7k|            : type(jsoncons::cbor::detail::cbor_major_type::text_string), str(sv.data(), sv.size(), alloc), bytes(alloc)
   94|  57.7k|        {
   95|  57.7k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11read_doubleEhRNS3_10error_codeE:
 1668|   396k|    {
 1669|   396k|        double val = 0;
 1670|       |
 1671|   396k|        switch (info)
 1672|   396k|        {
 1673|   333k|            case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (1673:13): [True: 333k, False: 62.8k]
  ------------------
 1674|   333k|            {
 1675|   333k|                uint8_t buf[sizeof(float)];
 1676|   333k|                if (source_.read(buf, sizeof(float)) !=sizeof(float)) 
  ------------------
  |  Branch (1676:21): [True: 215, False: 333k]
  ------------------
 1677|    215|                {
 1678|    215|                    ec = cbor_errc::unexpected_eof;
 1679|    215|                    more_ = false;
 1680|    215|                    return 0;
 1681|    215|                }
 1682|   333k|                val = binary::big_to_native<float>(buf, sizeof(buf));
 1683|   333k|                break;
 1684|   333k|            }
 1685|       |
 1686|  62.8k|            case 0x1b: //  Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (1686:13): [True: 62.8k, False: 333k]
  ------------------
 1687|  62.8k|            {
 1688|  62.8k|                uint8_t buf[sizeof(double)];
 1689|  62.8k|                if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (1689:21): [True: 202, False: 62.5k]
  ------------------
 1690|    202|                {
 1691|    202|                    ec = cbor_errc::unexpected_eof;
 1692|    202|                    more_ = false;
 1693|    202|                    return 0;
 1694|    202|                }
 1695|  62.5k|                val = binary::big_to_native<double>(buf, sizeof(buf));
 1696|  62.5k|                break;
 1697|  62.8k|            }
 1698|      0|            default:
  ------------------
  |  Branch (1698:13): [True: 0, False: 396k]
  ------------------
 1699|      0|            {
 1700|      0|                ec = cbor_errc::unknown_type;
 1701|      0|                more_ = false;
 1702|      0|                return 0;
 1703|  62.8k|            }
 1704|   396k|        }
 1705|       |        
 1706|   395k|        return val;
 1707|   396k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE15read_bigdecimalEhRNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 1710|   131k|    {
 1711|   131k|        std::size_t size = read_unsigned_integer(container_info, ec);
 1712|   131k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   131k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 17, False: 131k]
  |  |  ------------------
  ------------------
 1713|     17|        {
 1714|     17|            return;
 1715|     17|        }
 1716|   131k|        if (size != 2)
  ------------------
  |  Branch (1716:13): [True: 313, False: 131k]
  ------------------
 1717|    313|        {
 1718|    313|            ec = cbor_errc::invalid_bigdecimal;
 1719|    313|            more_ = false;
 1720|    313|            return;
 1721|    313|        }
 1722|       |
 1723|   131k|        auto c = source_.peek();
 1724|   131k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   131k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 64, False: 131k]
  |  |  ------------------
  ------------------
 1725|     64|        {
 1726|     64|            ec = cbor_errc::unexpected_eof;
 1727|     64|            more_ = false;
 1728|     64|            return;
 1729|     64|        }
 1730|   131k|        int64_t exponent = 0;
 1731|   131k|        auto major_type = get_major_type(c.value);
 1732|   131k|        auto info = get_additional_information(c.value);
 1733|   131k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   132k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 16, False: 131k]
  |  |  |  Branch (79:50): [True: 1.40k, False: 129k]
  |  |  |  Branch (79:50): [True: 16, False: 1.38k]
  |  |  ------------------
  ------------------
 1734|     16|        {
 1735|     16|            ec = cbor_errc::reserved_additional_info;
 1736|     16|            more_ = false;
 1737|     16|            return;
 1738|     16|        }
 1739|       |
 1740|   131k|        switch (major_type)
 1741|   131k|        {
 1742|  47.8k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1742:13): [True: 47.8k, False: 83.3k]
  ------------------
 1743|  47.8k|            {
 1744|  47.8k|                source_.ignore(1);
 1745|  47.8k|                auto u = read_unsigned_integer(info, ec);
 1746|  47.8k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  47.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 14, False: 47.8k]
  |  |  ------------------
  ------------------
 1747|     14|                {
 1748|     14|                    more_ = false;
 1749|     14|                    return;
 1750|     14|                }
 1751|  47.8k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1751:21): [True: 220, False: 47.6k]
  ------------------
 1752|    220|                {
 1753|    220|                    ec = cbor_errc::invalid_bigdecimal;
 1754|    220|                    more_ = false;
 1755|    220|                    return;
 1756|    220|                }
 1757|  47.6k|                exponent = static_cast<int64_t>(u);
 1758|  47.6k|                break;
 1759|  47.8k|            }
 1760|  83.1k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1760:13): [True: 83.1k, False: 48.0k]
  ------------------
 1761|  83.1k|            {
 1762|  83.1k|                auto u = read_int64(ec);
 1763|  83.1k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  83.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 171, False: 82.9k]
  |  |  ------------------
  ------------------
 1764|    171|                {
 1765|    171|                    return;
 1766|    171|                }
 1767|  82.9k|                if (JSONCONS_UNLIKELY(u == (std::numeric_limits<int64_t>::min)()))
  ------------------
  |  |   79|  82.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 82.9k]
  |  |  ------------------
  ------------------
 1768|      4|                {
 1769|      4|                    ec = cbor_errc::invalid_bigdecimal;
 1770|      4|                    more_ = false;
 1771|      4|                    return;
 1772|      4|                }
 1773|  82.9k|                exponent = u;
 1774|  82.9k|                break;
 1775|  82.9k|            }
 1776|    177|            default:
  ------------------
  |  Branch (1776:13): [True: 177, False: 131k]
  ------------------
 1777|    177|            {
 1778|    177|                ec = cbor_errc::invalid_bigdecimal;
 1779|    177|                more_ = false;
 1780|    177|                return;
 1781|  82.9k|            }
 1782|   131k|        }
 1783|       |
 1784|   130k|        c = source_.peek();
 1785|   130k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   130k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 276, False: 130k]
  |  |  ------------------
  ------------------
 1786|    276|        {
 1787|    276|            ec = cbor_errc::unexpected_eof;
 1788|    276|            more_ = false;
 1789|    276|            return;
 1790|    276|        }
 1791|       |
 1792|   130k|        major_type = get_major_type(c.value);
 1793|   130k|        info = get_additional_information(c.value);
 1794|   130k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   131k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 21, False: 130k]
  |  |  |  Branch (79:50): [True: 752, False: 129k]
  |  |  |  Branch (79:50): [True: 21, False: 731]
  |  |  ------------------
  ------------------
 1795|     21|        {
 1796|     21|            ec = cbor_errc::reserved_additional_info;
 1797|     21|            more_ = false;
 1798|     21|            return;
 1799|     21|        }
 1800|       |
 1801|   130k|        bigint unscaled;
 1802|   130k|        switch (major_type)
 1803|   130k|        {
 1804|  56.1k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1804:13): [True: 56.1k, False: 74.2k]
  ------------------
 1805|  56.1k|            {
 1806|  56.1k|                source_.ignore(1);
 1807|  56.1k|                uint64_t u = read_unsigned_integer(info, ec);
 1808|  56.1k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  56.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 17, False: 56.1k]
  |  |  ------------------
  ------------------
 1809|     17|                {
 1810|     17|                    return;
 1811|     17|                }
 1812|  56.1k|                unscaled = bigint(u);
 1813|  56.1k|                break;
 1814|  56.1k|            }
 1815|  27.1k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1815:13): [True: 27.1k, False: 103k]
  ------------------
 1816|  27.1k|            {
 1817|  27.1k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  27.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 27.1k]
  |  |  |  Branch (79:50): [True: 7, False: 27.1k]
  |  |  |  Branch (79:50): [True: 0, False: 7]
  |  |  ------------------
  ------------------
 1818|      0|                {
 1819|      0|                    ec = cbor_errc::reserved_additional_info;
 1820|      0|                    more_ = false;
 1821|      0|                    return;
 1822|      0|                }
 1823|  27.1k|                source_.ignore(1);
 1824|  27.1k|                auto u = read_unsigned_integer(info, ec);
 1825|  27.1k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 21, False: 27.1k]
  |  |  ------------------
  ------------------
 1826|     21|                {
 1827|     21|                    return;
 1828|     21|                }
 1829|  27.1k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1829:21): [True: 9.09k, False: 18.0k]
  ------------------
 1830|  9.09k|                {
 1831|  9.09k|                    unscaled = -1 - bigint(u);
 1832|  9.09k|                }
 1833|  18.0k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  18.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 546, False: 17.4k]
  |  |  ------------------
  ------------------
 1834|    546|                {
 1835|    546|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 1836|    546|                }
 1837|  17.4k|                else
 1838|  17.4k|                {
 1839|  17.4k|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 1840|  17.4k|                }
 1841|  27.1k|                break;
 1842|  27.1k|            }
 1843|  46.9k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1843:13): [True: 46.9k, False: 83.3k]
  ------------------
 1844|  46.9k|            {
 1845|  46.9k|                uint8_t b;
 1846|  46.9k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1846:21): [True: 0, False: 46.9k]
  ------------------
 1847|      0|                {
 1848|      0|                    ec = cbor_errc::unexpected_eof;
 1849|      0|                    more_ = false;
 1850|      0|                    return;
 1851|      0|                }
 1852|  46.9k|                info = get_additional_information(b);
 1853|  46.9k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  47.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 46.9k]
  |  |  |  Branch (79:50): [True: 662, False: 46.2k]
  |  |  |  Branch (79:50): [True: 0, False: 662]
  |  |  ------------------
  ------------------
 1854|      0|                {
 1855|      0|                    ec = cbor_errc::reserved_additional_info;
 1856|      0|                    more_ = false;
 1857|      0|                    return;
 1858|      0|                }
 1859|  46.9k|                c = source_.peek();
 1860|  46.9k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  46.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 59, False: 46.9k]
  |  |  ------------------
  ------------------
 1861|     59|                {
 1862|     59|                    ec = cbor_errc::unexpected_eof;
 1863|     59|                    more_ = false;
 1864|     59|                    return;
 1865|     59|                }
 1866|       |
 1867|  46.9k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1867:21): [True: 26.1k, False: 20.7k]
  ------------------
 1868|  26.1k|                {
 1869|  26.1k|                    bytes_buffer_.clear();
 1870|  26.1k|                    read_byte_string(bytes_buffer_, ec);
 1871|  26.1k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  26.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 75, False: 26.0k]
  |  |  ------------------
  ------------------
 1872|     75|                    {
 1873|     75|                        more_ = false;
 1874|     75|                        return;
 1875|     75|                    }
 1876|  26.0k|                    if (info == 2)
  ------------------
  |  Branch (1876:25): [True: 4.85k, False: 21.1k]
  ------------------
 1877|  4.85k|                    {
 1878|  4.85k|                        unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1879|  4.85k|                    }
 1880|  21.1k|                    else if (info == 3)
  ------------------
  |  Branch (1880:30): [True: 19.2k, False: 1.95k]
  ------------------
 1881|  19.2k|                    {
 1882|  19.2k|                        unscaled = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1883|  19.2k|                        unscaled = -1 - unscaled;
 1884|  19.2k|                    }
 1885|  26.0k|                }
 1886|  46.8k|                break;
 1887|  46.9k|            }
 1888|  46.8k|            default:
  ------------------
  |  Branch (1888:13): [True: 129, False: 130k]
  ------------------
 1889|    129|            {
 1890|    129|                ec = cbor_errc::invalid_bigdecimal;
 1891|    129|                more_ = false;
 1892|    129|                return;
 1893|  46.9k|            }
 1894|   130k|        }
 1895|       |
 1896|   130k|        bigdec dec(std::move(unscaled), -exponent);
 1897|   130k|        append_to_buffer(dec, result);
 1898|   130k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10read_int64ERNS3_10error_codeE:
 1378|   256k|    {
 1379|   256k|        int64_t val = 0;
 1380|       |
 1381|   256k|        auto ch = source_.peek();
 1382|   256k|        if (ch.eof)
  ------------------
  |  Branch (1382:13): [True: 0, False: 256k]
  ------------------
 1383|      0|        {
 1384|      0|            ec = cbor_errc::unexpected_eof;
 1385|      0|            more_ = false;
 1386|      0|            return val;
 1387|      0|        }
 1388|       |
 1389|   256k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(ch.value);
 1390|   256k|        uint8_t info = get_additional_information(ch.value);
 1391|   256k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   260k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 256k]
  |  |  |  Branch (79:50): [True: 3.40k, False: 253k]
  |  |  |  Branch (79:50): [True: 0, False: 3.40k]
  |  |  ------------------
  ------------------
 1392|      0|        {
 1393|      0|            ec = cbor_errc::reserved_additional_info;
 1394|      0|            more_ = false;
 1395|      0|            return val;
 1396|      0|        }
 1397|   256k|        switch (major_type)
 1398|   256k|        {
 1399|   256k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1399:13): [True: 256k, False: 0]
  ------------------
 1400|   256k|                source_.ignore(1);
 1401|   256k|                switch (info)
  ------------------
  |  Branch (1401:25): [True: 253k, False: 3.40k]
  ------------------
 1402|   256k|                {
 1403|   229k|                    case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|   229k|    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.82k, False: 253k]
  |  |  |  Branch (18:20): [True: 832, False: 255k]
  |  |  |  Branch (18:30): [True: 975, False: 255k]
  |  |  |  Branch (18:40): [True: 23.3k, False: 233k]
  |  |  |  Branch (18:50): [True: 1.15k, False: 255k]
  |  |  |  Branch (18:60): [True: 670, False: 256k]
  |  |  |  Branch (18:70): [True: 15.9k, False: 240k]
  |  |  |  Branch (18:80): [True: 3.28k, False: 253k]
  |  |  |  Branch (18:90): [True: 2.33k, False: 254k]
  |  |  |  Branch (18:100): [True: 37.6k, False: 219k]
  |  |  |  Branch (18:110): [True: 19.3k, False: 237k]
  |  |  |  Branch (18:120): [True: 3.04k, False: 253k]
  |  |  |  Branch (18:130): [True: 4.40k, False: 252k]
  |  |  |  Branch (18:140): [True: 3.75k, False: 252k]
  |  |  |  Branch (18:150): [True: 82.1k, False: 174k]
  |  |  |  Branch (18:160): [True: 1.54k, False: 255k]
  |  |  |  Branch (18:170): [True: 7.65k, False: 249k]
  |  |  |  Branch (18:180): [True: 1.28k, False: 255k]
  |  |  |  Branch (18:190): [True: 1.29k, False: 255k]
  |  |  |  Branch (18:200): [True: 1.43k, False: 255k]
  |  |  |  Branch (18:210): [True: 1.41k, False: 255k]
  |  |  |  Branch (18:220): [True: 2.57k, False: 254k]
  |  |  ------------------
  ------------------
  |  Branch (1403:21): [True: 6.71k, False: 250k]
  ------------------
 1404|   229k|                    {
 1405|   229k|                        val = static_cast<int8_t>(- 1 - info);
 1406|   229k|                        break;
 1407|  2.62M|                    }
 1408|  17.3k|                    case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1408:21): [True: 17.3k, False: 239k]
  ------------------
 1409|  17.3k|                        {
 1410|  17.3k|                            uint8_t b;
 1411|  17.3k|                            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1411:33): [True: 9, False: 17.3k]
  ------------------
 1412|      9|                            {
 1413|      9|                                ec = cbor_errc::unexpected_eof;
 1414|      9|                                more_ = false;
 1415|      9|                                return val;
 1416|      9|                            }
 1417|  17.3k|                            val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1418|  17.3k|                            break;
 1419|  17.3k|                        }
 1420|       |
 1421|    751|                    case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1421:21): [True: 751, False: 255k]
  ------------------
 1422|    751|                        {
 1423|    751|                            uint8_t buf[sizeof(uint16_t)];
 1424|    751|                            if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1424:33): [True: 13, False: 738]
  ------------------
 1425|     13|                            {
 1426|     13|                                ec = cbor_errc::unexpected_eof;
 1427|     13|                                more_ = false;
 1428|     13|                                return val;
 1429|     13|                            }
 1430|    738|                            auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1431|    738|                            val = static_cast<int64_t>(-1)- u;
 1432|    738|                            break;
 1433|    751|                        }
 1434|       |
 1435|  2.61k|                    case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1435:21): [True: 2.61k, False: 254k]
  ------------------
 1436|  2.61k|                        {
 1437|  2.61k|                            uint8_t buf[sizeof(uint32_t)];
 1438|  2.61k|                            if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1438:33): [True: 13, False: 2.60k]
  ------------------
 1439|     13|                            {
 1440|     13|                                ec = cbor_errc::unexpected_eof;
 1441|     13|                                more_ = false;
 1442|     13|                                return val;
 1443|     13|                            }
 1444|  2.60k|                            auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1445|  2.60k|                            val = static_cast<int64_t>(-1)- u;
 1446|  2.60k|                            break;
 1447|  2.61k|                        }
 1448|       |
 1449|  2.91k|                    case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1449:21): [True: 2.91k, False: 253k]
  ------------------
 1450|  2.91k|                        {
 1451|  2.91k|                            uint8_t buf[sizeof(uint64_t)];
 1452|  2.91k|                            if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1452:33): [True: 27, False: 2.88k]
  ------------------
 1453|     27|                            {
 1454|     27|                                ec = cbor_errc::unexpected_eof;
 1455|     27|                                more_ = false;
 1456|     27|                                return val;
 1457|     27|                            }
 1458|  2.88k|                            auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1459|  2.88k|                            if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1459:33): [True: 211, False: 2.67k]
  ------------------
 1460|    211|                            {
 1461|    211|                                ec = cbor_errc::invalid_bigdecimal;
 1462|    211|                                more_ = false;
 1463|    211|                                return val;
 1464|    211|                            }
 1465|  2.67k|                            if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  2.67k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 574, False: 2.09k]
  |  |  ------------------
  ------------------
 1466|    574|                            {
 1467|    574|                                val = (std::numeric_limits<int64_t>::min)();
 1468|    574|                            }
 1469|  2.09k|                            else
 1470|  2.09k|                            {
 1471|  2.09k|                                val = static_cast<int64_t>(-1)- static_cast<int64_t>(u);
 1472|  2.09k|                            }
 1473|  2.67k|                            break;
 1474|  2.88k|                        }
 1475|   256k|                }
 1476|   256k|                break;
 1477|       |
 1478|   256k|                case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1478:17): [True: 0, False: 256k]
  ------------------
 1479|      0|                {
 1480|      0|                    source_.ignore(1);
 1481|      0|                    uint64_t u = read_unsigned_integer(info, ec);
 1482|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1483|      0|                    {
 1484|      0|                        return 0;
 1485|      0|                    }
 1486|      0|                    if (u <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1486:25): [True: 0, False: 0]
  ------------------
 1487|      0|                    {
 1488|      0|                        val = u;
 1489|      0|                    }
 1490|      0|                    else
 1491|      0|                    {
 1492|       |                        // error;
 1493|      0|                    }
 1494|       |                    
 1495|      0|                    break;
 1496|      0|                }
 1497|      0|                break;
 1498|      0|            default:
  ------------------
  |  Branch (1498:13): [True: 0, False: 256k]
  ------------------
 1499|      0|                break;
 1500|   256k|        }
 1501|       |
 1502|   256k|        return val;
 1503|   256k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13read_bigfloatEhRNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 1901|   219k|    {
 1902|   219k|        std::size_t size = read_unsigned_integer(container_info, ec);
 1903|   219k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   219k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 11, False: 219k]
  |  |  ------------------
  ------------------
 1904|     11|        {
 1905|     11|            return;
 1906|     11|        }
 1907|   219k|        if (size != 2)
  ------------------
  |  Branch (1907:13): [True: 322, False: 218k]
  ------------------
 1908|    322|        {
 1909|    322|            ec = cbor_errc::invalid_bigfloat;
 1910|    322|            more_ = false;
 1911|    322|            return;
 1912|    322|        }
 1913|       |
 1914|   218k|        auto c = source_.peek();
 1915|   218k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   218k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 38, False: 218k]
  |  |  ------------------
  ------------------
 1916|     38|        {
 1917|     38|            ec = cbor_errc::unexpected_eof;
 1918|     38|            more_ = false;
 1919|     38|            return;
 1920|     38|        }
 1921|   218k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1922|   218k|        uint8_t info = get_additional_information(c.value);
 1923|   218k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   220k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 8, False: 218k]
  |  |  |  Branch (79:50): [True: 1.75k, False: 216k]
  |  |  |  Branch (79:50): [True: 8, False: 1.74k]
  |  |  ------------------
  ------------------
 1924|      8|        {
 1925|      8|            ec = cbor_errc::reserved_additional_info;
 1926|      8|            more_ = false;
 1927|      8|            return;
 1928|      8|        }
 1929|       |
 1930|   218k|        int64_t exponent = 0;
 1931|   218k|        switch (major_type)
 1932|   218k|        {
 1933|  85.0k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1933:13): [True: 85.0k, False: 133k]
  ------------------
 1934|  85.0k|            {
 1935|  85.0k|                source_.ignore(1);
 1936|  85.0k|                exponent = read_unsigned_integer(info, ec);
 1937|  85.0k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  85.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 85.0k]
  |  |  ------------------
  ------------------
 1938|      7|                {
 1939|      7|                    return;
 1940|      7|                }
 1941|  85.0k|                break;
 1942|  85.0k|            }
 1943|   133k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1943:13): [True: 133k, False: 85.1k]
  ------------------
 1944|   133k|            {
 1945|   133k|                exponent = read_int64(ec);
 1946|   133k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   133k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 85, False: 133k]
  |  |  ------------------
  ------------------
 1947|     85|                {
 1948|     85|                    return;
 1949|     85|                }
 1950|   133k|                break;
 1951|   133k|            }
 1952|   133k|            default:
  ------------------
  |  Branch (1952:13): [True: 89, False: 218k]
  ------------------
 1953|     89|            {
 1954|     89|                ec = cbor_errc::invalid_bigfloat;
 1955|     89|                more_ = false;
 1956|     89|                return;
 1957|   133k|            }
 1958|   218k|        }
 1959|       |
 1960|   218k|        c = source_.peek();
 1961|   218k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   218k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 129, False: 218k]
  |  |  ------------------
  ------------------
 1962|    129|        {
 1963|    129|            ec = cbor_errc::unexpected_eof;
 1964|    129|            more_ = false;
 1965|    129|            return;
 1966|    129|        }
 1967|   218k|        major_type = get_major_type(c.value);
 1968|   218k|        info = get_additional_information(c.value);
 1969|   218k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   219k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 22, False: 218k]
  |  |  |  Branch (79:50): [True: 897, False: 217k]
  |  |  |  Branch (79:50): [True: 22, False: 875]
  |  |  ------------------
  ------------------
 1970|     22|        {
 1971|     22|            ec = cbor_errc::reserved_additional_info;
 1972|     22|            more_ = false;
 1973|     22|            return;
 1974|     22|        }
 1975|       |
 1976|   218k|        switch (major_type)
 1977|   218k|        {
 1978|  12.2k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1978:13): [True: 12.2k, False: 206k]
  ------------------
 1979|  12.2k|            {
 1980|  12.2k|                source_.ignore(1);
 1981|  12.2k|                uint64_t val = read_unsigned_integer(info, ec);
 1982|  12.2k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 12.2k]
  |  |  ------------------
  ------------------
 1983|      7|                {
 1984|      7|                    return;
 1985|      7|                }
 1986|  12.2k|                str.push_back('0');
 1987|  12.2k|                str.push_back('x');
 1988|  12.2k|                jsoncons::integer_to_hex(val, str);
 1989|  12.2k|                break;
 1990|  12.2k|            }
 1991|  40.0k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1991:13): [True: 40.0k, False: 178k]
  ------------------
 1992|  40.0k|            {
 1993|  40.0k|                int64_t val = read_int64(ec);
 1994|  40.0k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  40.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 17, False: 40.0k]
  |  |  ------------------
  ------------------
 1995|     17|                {
 1996|     17|                    return;
 1997|     17|                }
 1998|  40.0k|                str.push_back('-');
 1999|  40.0k|                str.push_back('0');
 2000|  40.0k|                str.push_back('x');
 2001|  40.0k|                jsoncons::integer_to_hex(static_cast<uint64_t>(-1 - val) + 1u, str);
 2002|  40.0k|                break;
 2003|  40.0k|            }
 2004|   165k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (2004:13): [True: 165k, False: 52.4k]
  ------------------
 2005|   165k|            {
 2006|   165k|                uint8_t x;
 2007|   165k|                if (source_.read(&x, 1) == 0)
  ------------------
  |  Branch (2007:21): [True: 0, False: 165k]
  ------------------
 2008|      0|                {
 2009|      0|                    ec = cbor_errc::unexpected_eof;
 2010|      0|                    more_ = false;
 2011|      0|                    return;
 2012|      0|                }
 2013|   165k|                uint8_t tag = get_additional_information(x);
 2014|   165k|                if (JSONCONS_UNLIKELY(tag >= 0x1C && tag <= 0x1E))
  ------------------
  |  |   79|   166k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 165k]
  |  |  |  Branch (79:50): [True: 525, False: 165k]
  |  |  |  Branch (79:50): [True: 0, False: 525]
  |  |  ------------------
  ------------------
 2015|      0|                {
 2016|      0|                    ec = cbor_errc::reserved_additional_info;
 2017|      0|                    more_ = false;
 2018|      0|                    return;
 2019|      0|                }
 2020|       |
 2021|   165k|                c = source_.peek();
 2022|   165k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   165k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 32, False: 165k]
  |  |  ------------------
  ------------------
 2023|     32|                {
 2024|     32|                    ec = cbor_errc::unexpected_eof;
 2025|     32|                    more_ = false;
 2026|     32|                    return;
 2027|     32|                }
 2028|       |
 2029|   165k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2029:21): [True: 140k, False: 24.9k]
  ------------------
 2030|   140k|                {
 2031|   140k|                    bytes_buffer_.clear(); 
 2032|   140k|                    read_byte_string(bytes_buffer_, ec);
 2033|   140k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   140k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 230, False: 140k]
  |  |  ------------------
  ------------------
 2034|    230|                    {
 2035|    230|                        more_ = false;
 2036|    230|                        return;
 2037|    230|                    }
 2038|   140k|                    if (tag == 2)
  ------------------
  |  Branch (2038:25): [True: 12.5k, False: 128k]
  ------------------
 2039|  12.5k|                    {
 2040|  12.5k|                        str.push_back('0');
 2041|  12.5k|                        str.push_back('x');
 2042|  12.5k|                        bigint b = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 2043|  12.5k|                        b.write_string_hex(str);
 2044|  12.5k|                    }
 2045|   128k|                    else if (tag == 3)
  ------------------
  |  Branch (2045:30): [True: 125k, False: 2.32k]
  ------------------
 2046|   125k|                    {
 2047|   125k|                        str.push_back('-');
 2048|   125k|                        str.push_back('0');
 2049|   125k|                        bigint b = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 2050|   125k|                        b = -1 - b;
 2051|   125k|                        b.write_string_hex(str);
 2052|   125k|                        str[2] = 'x'; // overwrite minus
 2053|   125k|                    }
 2054|   140k|                }
 2055|   165k|                break;
 2056|   165k|            }
 2057|   165k|            default:
  ------------------
  |  Branch (2057:13): [True: 122, False: 218k]
  ------------------
 2058|    122|            {
 2059|    122|                ec = cbor_errc::invalid_bigfloat;
 2060|    122|                more_ = false;
 2061|    122|                return;
 2062|   165k|            }
 2063|   218k|        }
 2064|       |
 2065|   217k|        str.push_back('p');
 2066|   217k|        if (exponent >=0)
  ------------------
  |  Branch (2066:13): [True: 86.5k, False: 131k]
  ------------------
 2067|  86.5k|        {
 2068|  86.5k|            jsoncons::integer_to_hex(static_cast<uint64_t>(exponent), str);
 2069|  86.5k|        }
 2070|   131k|        else
 2071|   131k|        {
 2072|   131k|            str.push_back('-');
 2073|   131k|            jsoncons::integer_to_hex(static_cast<uint64_t>(-1 - exponent) + 1u, str);
 2074|   131k|        }
 2075|   217k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE19read_mdarray_headerERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2776|   111k|    {
 2777|   111k|        uint8_t b;
 2778|   111k|        if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2778:13): [True: 0, False: 111k]
  ------------------
 2779|      0|        {
 2780|      0|            ec = cbor_errc::unexpected_eof;
 2781|      0|            more_ = false;
 2782|      0|            return;
 2783|      0|        }
 2784|   111k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(b);
 2785|   111k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::array);
  ------------------
  |  |   54|   111k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 111k]
  |  |  ------------------
  |  |   55|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   56|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 2786|   111k|        uint8_t info = get_additional_information(b);
 2787|   111k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   192k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 111k]
  |  |  |  Branch (79:50): [True: 81.4k, False: 29.9k]
  |  |  |  Branch (79:50): [True: 0, False: 81.4k]
  |  |  ------------------
  ------------------
 2788|      0|        {
 2789|      0|            ec = cbor_errc::reserved_additional_info;
 2790|      0|            more_ = false;
 2791|      0|            return;
 2792|      0|        }
 2793|       |       
 2794|   111k|        read_extents(ec);   
 2795|   111k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   111k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.17k, False: 110k]
  |  |  ------------------
  ------------------
 2796|  1.17k|        {
 2797|  1.17k|            return;
 2798|  1.17k|        }
 2799|       |
 2800|   110k|        read_tags(ec);
 2801|   110k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   110k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 151, False: 110k]
  |  |  ------------------
  ------------------
 2802|    151|        {
 2803|    151|            return;
 2804|    151|        }
 2805|   110k|        auto c = source_.peek();
 2806|   110k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   110k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 110k]
  |  |  ------------------
  ------------------
 2807|      0|        {
 2808|      0|            ec = cbor_errc::unexpected_eof;
 2809|      0|            more_ = false;
 2810|      0|            return;
 2811|      0|        }
 2812|   110k|        major_type = get_major_type(c.value);
 2813|   110k|        info = get_additional_information(c.value);
 2814|   110k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   126k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 110k]
  |  |  |  Branch (79:50): [True: 16.6k, False: 93.4k]
  |  |  |  Branch (79:50): [True: 7, False: 16.6k]
  |  |  ------------------
  ------------------
 2815|      7|        {
 2816|      7|            ec = cbor_errc::reserved_additional_info;
 2817|      7|            more_ = false;
 2818|      7|            return;
 2819|      7|        }
 2820|   110k|        state_stack_.emplace_back(parse_mode::multi_dim, 0);
 2821|   110k|        ++state_stack_.back().index;
 2822|       |
 2823|   110k|        if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::row_major) 
  ------------------
  |  Branch (2823:13): [True: 38.1k, False: 71.9k]
  |  Branch (2823:77): [True: 29.4k, False: 8.63k]
  ------------------
 2824|  29.4k|        {
 2825|  29.4k|            source_.ignore(1);
 2826|  29.4k|            begin_classical_array_storage(info, ec);
 2827|  29.4k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  29.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 19, False: 29.4k]
  |  |  ------------------
  ------------------
 2828|     19|            {
 2829|     19|                return;
 2830|     19|            }
 2831|  29.4k|            auto iter = std::make_shared<cbor_mdarray_row_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2832|  29.4k|            typed_array_stack_.push_back(iter);
 2833|  29.4k|            if (!iter->done())
  ------------------
  |  Branch (2833:17): [True: 29.4k, False: 0]
  ------------------
 2834|  29.4k|            {
 2835|  29.4k|                iter->next(visitor, *this, ec);
 2836|  29.4k|            }
 2837|  29.4k|        }
 2838|  80.6k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::column_major) 
  ------------------
  |  Branch (2838:18): [True: 8.63k, False: 71.9k]
  |  Branch (2838:82): [True: 8.63k, False: 0]
  ------------------
 2839|  8.63k|        {
 2840|  8.63k|            source_.ignore(1);
 2841|  8.63k|            begin_classical_array_storage(info, ec);
 2842|  8.63k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.63k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 8.62k]
  |  |  ------------------
  ------------------
 2843|      7|            {
 2844|      7|                return;
 2845|      7|            }
 2846|  8.62k|            auto iter = std::make_shared<cbor_mdarray_column_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2847|  8.62k|            typed_array_stack_.push_back(iter);
 2848|  8.62k|            if (!iter->done())
  ------------------
  |  Branch (2848:17): [True: 8.62k, False: 0]
  ------------------
 2849|  8.62k|            {
 2850|  8.62k|                iter->next(visitor, *this, ec);
 2851|  8.62k|            }
 2852|  8.62k|        }
 2853|  71.9k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2853:18): [True: 71.7k, False: 234]
  ------------------
 2854|  71.7k|        {
 2855|  71.7k|            std::size_t typed_array_count = typed_array_stack_.size();
 2856|  71.7k|            read_byte_string_from_source read(this);
 2857|  71.7k|            read_byte_string(read, visitor, ec);
 2858|  71.7k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  71.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5.69k, False: 66.0k]
  |  |  ------------------
  ------------------
 2859|  5.69k|            {
 2860|  5.69k|                return;
 2861|  5.69k|            }
 2862|  66.0k|            if (typed_array_stack_.size() == typed_array_count)
  ------------------
  |  Branch (2862:17): [True: 62, False: 66.0k]
  ------------------
 2863|     62|            {
 2864|       |                // Byte string storage must be a typed array
 2865|     62|                ec = cbor_errc::bad_mdarray;
 2866|     62|                return;
 2867|     62|            }
 2868|  66.0k|        }
 2869|    234|        else
 2870|    234|        {
 2871|    234|            ec = cbor_errc::bad_mdarray;
 2872|    234|            return;
 2873|    234|        }
 2874|       |        // cursor case
 2875|   110k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12read_extentsERNS3_10error_codeE:
 2878|   111k|    {
 2879|   111k|        extents_.clear();
 2880|       |
 2881|   111k|        auto b = source_.peek();
 2882|   111k|        if (JSONCONS_UNLIKELY(b.eof))
  ------------------
  |  |   79|   111k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 33, False: 111k]
  |  |  ------------------
  ------------------
 2883|     33|        {
 2884|     33|            ec = cbor_errc::unexpected_eof;
 2885|     33|            more_ = false;
 2886|     33|            return;
 2887|     33|        }
 2888|   111k|        if (get_major_type(b.value) != jsoncons::cbor::detail::cbor_major_type::array)
  ------------------
  |  Branch (2888:13): [True: 118, False: 111k]
  ------------------
 2889|    118|        {
 2890|    118|            ec = cbor_errc::bad_extents;
 2891|    118|            more_ = false;
 2892|    118|            return;
 2893|    118|        }
 2894|   111k|        uint8_t info = get_additional_information(b.value);
 2895|   111k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   202k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 10, False: 111k]
  |  |  |  Branch (79:50): [True: 91.1k, False: 20.1k]
  |  |  |  Branch (79:50): [True: 10, False: 91.1k]
  |  |  ------------------
  ------------------
 2896|     10|        {
 2897|     10|            ec = cbor_errc::reserved_additional_info;
 2898|     10|            more_ = false;
 2899|     10|            return;
 2900|     10|        }
 2901|       |
 2902|   111k|        source_.ignore(1);
 2903|   111k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (2903:13): [True: 91.1k, False: 20.1k]
  ------------------
 2904|  91.1k|        {
 2905|  91.1k|             bool done = false;
 2906|  21.9M|             while (!done)
  ------------------
  |  Branch (2906:21): [True: 21.8M, False: 90.7k]
  ------------------
 2907|  21.8M|             {
 2908|  21.8M|                 auto c = source_.peek();
 2909|  21.8M|                 if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  21.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 171, False: 21.8M]
  |  |  ------------------
  ------------------
 2910|    171|                 {
 2911|    171|                     ec = cbor_errc::unexpected_eof;
 2912|    171|                     more_ = false;
 2913|    171|                     return;
 2914|    171|                 }
 2915|  21.8M|                 if (c.value == 0xff)
  ------------------
  |  Branch (2915:22): [True: 90.7k, False: 21.7M]
  ------------------
 2916|  90.7k|                 {
 2917|  90.7k|                     source_.ignore(1);
 2918|  90.7k|                     done = true;
 2919|  90.7k|                 }
 2920|  21.7M|                 else
 2921|  21.7M|                 {
 2922|  21.7M|                     source_.ignore(1);
 2923|  21.7M|                     std::size_t extent = read_size(get_additional_information(c.value), ec);
 2924|  21.7M|                     if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  21.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 182, False: 21.7M]
  |  |  ------------------
  ------------------
 2925|    182|                     {
 2926|    182|                         more_ = false;
 2927|    182|                         return;
 2928|    182|                     }
 2929|  21.7M|                     extents_.push_back(extent);
 2930|  21.7M|                 }
 2931|  21.8M|             }
 2932|  91.1k|        }
 2933|  20.1k|        else 
 2934|  20.1k|        {
 2935|  20.1k|            std::size_t size = read_size(info, ec);
 2936|  20.1k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  20.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 8, False: 20.1k]
  |  |  ------------------
  ------------------
 2937|      8|            {
 2938|      8|                more_ = false;
 2939|      8|                return;
 2940|      8|            }
 2941|   376k|            for (std::size_t i = 0; more_ && i < size; ++i)
  ------------------
  |  Branch (2941:37): [True: 376k, False: 0]
  |  Branch (2941:46): [True: 356k, False: 19.6k]
  ------------------
 2942|   356k|            {
 2943|   356k|                uint8_t initial_byte;
 2944|   356k|                if (source_.read(&initial_byte, 1) == 0)
  ------------------
  |  Branch (2944:21): [True: 243, False: 356k]
  ------------------
 2945|    243|                {
 2946|    243|                    ec = cbor_errc::unexpected_eof;
 2947|    243|                    more_ = false;
 2948|    243|                    return;
 2949|    243|                }
 2950|   356k|                if (JSONCONS_UNLIKELY(get_major_type(initial_byte) != jsoncons::cbor::detail::cbor_major_type::unsigned_integer))
  ------------------
  |  |   79|   356k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 195, False: 356k]
  |  |  ------------------
  ------------------
 2951|    195|                {
 2952|    195|                    ec = cbor_errc::unknown_type;
 2953|    195|                    more_ = false;
 2954|    195|                    return;
 2955|    195|                }
 2956|   356k|                info = get_additional_information(initial_byte);
 2957|   356k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   356k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 356k]
  |  |  |  Branch (79:50): [True: 17, False: 356k]
  |  |  |  Branch (79:50): [True: 7, False: 10]
  |  |  ------------------
  ------------------
 2958|      7|                {
 2959|      7|                    ec = cbor_errc::reserved_additional_info;
 2960|      7|                    more_ = false;
 2961|      7|                    return;
 2962|      7|                }
 2963|   356k|                std::size_t extent = read_size(info, ec);
 2964|   356k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   356k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 17, False: 356k]
  |  |  ------------------
  ------------------
 2965|     17|                {
 2966|     17|                    more_ = false;
 2967|     17|                    return;
 2968|     17|                }
 2969|   356k|                extents_.push_back(extent);
 2970|   356k|            }
 2971|  20.1k|        }
 2972|   110k|        auto r = calculate_mdarray_size(extents_);
 2973|   110k|        if (!r || *r == 0)
  ------------------
  |  Branch (2973:13): [True: 152, False: 110k]
  |  Branch (2973:19): [True: 35, False: 110k]
  ------------------
 2974|    187|        {
 2975|    187|            ec = cbor_errc::bad_extents;
 2976|    187|            more_ = false;
 2977|    187|            return;
 2978|    187|        }
 2979|   110k|        mdarray_size_ = *r;
 2980|   110k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE29begin_classical_array_storageEhRNS3_10error_codeE:
 1001|  38.1k|    {
 1002|  38.1k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  38.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 38.0k]
  |  |  ------------------
  ------------------
 1003|      7|        {
 1004|      7|            ec = cbor_errc::max_nesting_depth_exceeded;
 1005|      7|            more_ = false;
 1006|      7|            return;
 1007|      7|        }
 1008|  38.0k|        bool pop_stringref_map_stack = false;
 1009|  38.0k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1009:13): [True: 5.18k, False: 32.9k]
  ------------------
 1010|  5.18k|        {
 1011|  5.18k|            stringref_map_stack_.emplace_back();
 1012|  5.18k|            other_tags_[stringref_namespace_tag] = false;
 1013|  5.18k|            pop_stringref_map_stack = true;
 1014|  5.18k|        }
 1015|  38.0k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1015:13): [True: 16.4k, False: 21.6k]
  ------------------
 1016|  16.4k|        {
 1017|  16.4k|            state_stack_.emplace_back(parse_mode::indefinite_array, 0, pop_stringref_map_stack);
 1018|  16.4k|        }
 1019|  21.6k|        else // definite length
 1020|  21.6k|        {
 1021|  21.6k|            std::size_t len = read_size(info, ec);
 1022|  21.6k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  21.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 19, False: 21.5k]
  |  |  ------------------
  ------------------
 1023|     19|            {
 1024|     19|                return;
 1025|     19|            }
 1026|  21.5k|            state_stack_.emplace_back(parse_mode::array, len, pop_stringref_map_stack);
 1027|  21.5k|        }
 1028|  38.0k|        more_ = !cursor_mode_;
 1029|  38.0k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  938|  1.09M|    {
  939|  1.09M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  1.09M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 52, False: 1.09M]
  |  |  ------------------
  ------------------
  940|     52|        {
  941|     52|            ec = cbor_errc::max_nesting_depth_exceeded;
  942|     52|            more_ = false;
  943|     52|            return;
  944|     52|        } 
  945|  1.09M|        semantic_tag tag = semantic_tag::none;
  946|  1.09M|        bool pop_stringref_map_stack = false;
  947|  1.09M|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (947:13): [True: 11.6k, False: 1.08M]
  ------------------
  948|  11.6k|        {
  949|  11.6k|            stringref_map_stack_.emplace_back();
  950|  11.6k|            other_tags_[stringref_namespace_tag] = false;
  951|  11.6k|            pop_stringref_map_stack = true;
  952|  11.6k|        }
  953|  1.09M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (953:13): [True: 183k, False: 916k]
  ------------------
  954|   183k|        {
  955|   183k|            state_stack_.emplace_back(parse_mode::indefinite_array,0,pop_stringref_map_stack);
  956|   183k|            visitor.begin_array(tag, *this, ec);
  957|   183k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   183k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 183k]
  |  |  ------------------
  ------------------
  958|      0|            {
  959|      0|                return;
  960|      0|            }
  961|   183k|        }
  962|   916k|        else // definite length
  963|   916k|        {
  964|   916k|            std::size_t len = read_size(info, ec);
  965|   916k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   916k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 184, False: 915k]
  |  |  ------------------
  ------------------
  966|    184|            {
  967|    184|                return;
  968|    184|            }
  969|   915k|            state_stack_.emplace_back(parse_mode::array,len,pop_stringref_map_stack);
  970|   915k|            visitor.begin_array(len, tag, *this, ec);
  971|   915k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   915k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 915k]
  |  |  ------------------
  ------------------
  972|      0|            {
  973|      0|                return;
  974|      0|            }
  975|   915k|        }
  976|  1.09M|        more_ = !cursor_mode_;
  977|  1.09M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1048|  28.2M|    {
 1049|  28.2M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  28.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 28, False: 28.2M]
  |  |  ------------------
  ------------------
 1050|     28|        {
 1051|     28|            ec = cbor_errc::max_nesting_depth_exceeded;
 1052|     28|            more_ = false;
 1053|     28|            return;
 1054|     28|        } 
 1055|  28.2M|        bool pop_stringref_map_stack = false;
 1056|  28.2M|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1056:13): [True: 17.4k, False: 28.2M]
  ------------------
 1057|  17.4k|        {
 1058|  17.4k|            stringref_map_stack_.emplace_back();
 1059|  17.4k|            other_tags_[stringref_namespace_tag] = false;
 1060|  17.4k|            pop_stringref_map_stack = true;
 1061|  17.4k|        }
 1062|  28.2M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1062:13): [True: 109k, False: 28.1M]
  ------------------
 1063|   109k|        {
 1064|   109k|            state_stack_.emplace_back(parse_mode::indefinite_map_key,0,pop_stringref_map_stack);
 1065|   109k|            visitor.begin_object(semantic_tag::none, *this, ec);
 1066|   109k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   109k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 109k]
  |  |  ------------------
  ------------------
 1067|      0|            {
 1068|      0|                return;
 1069|      0|            }
 1070|   109k|        }
 1071|  28.1M|        else // definite_length
 1072|  28.1M|        {
 1073|  28.1M|            std::size_t len = read_size(info, ec);
 1074|  28.1M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  28.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 83, False: 28.1M]
  |  |  ------------------
  ------------------
 1075|     83|            {
 1076|     83|                return;
 1077|     83|            }
 1078|  28.1M|            state_stack_.emplace_back(parse_mode::map_key,len,pop_stringref_map_stack);
 1079|  28.1M|            visitor.begin_object(len, semantic_tag::none, *this, ec);
 1080|  28.1M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  28.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 28.1M]
  |  |  ------------------
  ------------------
 1081|      0|            {
 1082|      0|                return;
 1083|      0|            }
 1084|  28.1M|        }
 1085|  28.2M|        more_ = !cursor_mode_;
 1086|  28.2M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  980|   669k|    {
  981|   669k|        --nesting_depth_;
  982|       |
  983|   669k|        visitor.end_array(*this, ec);
  984|   669k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   669k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 669k]
  |  |  ------------------
  ------------------
  985|      0|        {
  986|      0|            return;
  987|      0|        }
  988|   669k|        more_ = !cursor_mode_;
  989|   669k|        if (level() == mark_level_)
  ------------------
  |  Branch (989:13): [True: 0, False: 669k]
  ------------------
  990|      0|        {
  991|      0|            more_ = false;
  992|      0|        }
  993|   669k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (993:13): [True: 2.39k, False: 666k]
  ------------------
  994|  2.39k|        {
  995|  2.39k|            stringref_map_stack_.pop_back();
  996|  2.39k|        }
  997|   669k|        state_stack_.pop_back();
  998|   669k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1089|  27.8M|    {
 1090|  27.8M|        --nesting_depth_;
 1091|  27.8M|        visitor.end_object(*this, ec);
 1092|  27.8M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 27.8M]
  |  |  ------------------
  ------------------
 1093|      0|        {
 1094|      0|            return;
 1095|      0|        }
 1096|  27.8M|        more_ = !cursor_mode_;
 1097|  27.8M|        if (level() == mark_level_)
  ------------------
  |  Branch (1097:13): [True: 0, False: 27.8M]
  ------------------
 1098|      0|        {
 1099|      0|            more_ = false;
 1100|      0|        }
 1101|  27.8M|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1101:13): [True: 4.04k, False: 27.8M]
  ------------------
 1102|  4.04k|        {
 1103|  4.04k|            stringref_map_stack_.pop_back();
 1104|  4.04k|        }
 1105|  27.8M|        state_stack_.pop_back();
 1106|  27.8M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_13basic_istreamIcNS3_11char_traitsIcEEEEEEOT_RKNS0_19cbor_decode_optionsERKS7_:
  220|  17.4k|       : alloc_(alloc),
  221|  17.4k|         source_(std::forward<Sourceable>(source)),
  222|  17.4k|         max_nesting_depth_(options.max_nesting_depth()),
  223|  17.4k|         text_buffer_(alloc),
  224|  17.4k|         bytes_buffer_(alloc),
  225|  17.4k|         state_stack_(alloc),
  226|  17.4k|         stringref_map_stack_(alloc),
  227|  17.4k|         extents_(alloc)
  228|  17.4k|    {
  229|  17.4k|        state_stack_.emplace_back(parse_mode::root,0);
  230|  17.4k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_19basic_istringstreamIcNS3_11char_traitsIcEES7_EEEEOT_RKNS0_19cbor_decode_optionsERKS7_:
  220|  17.4k|       : alloc_(alloc),
  221|  17.4k|         source_(std::forward<Sourceable>(source)),
  222|  17.4k|         max_nesting_depth_(options.max_nesting_depth()),
  223|  17.4k|         text_buffer_(alloc),
  224|  17.4k|         bytes_buffer_(alloc),
  225|  17.4k|         state_stack_(alloc),
  226|  17.4k|         stringref_map_stack_(alloc),
  227|  17.4k|         extents_(alloc)
  228|  17.4k|    {
  229|  17.4k|        state_stack_.emplace_back(parse_mode::root,0);
  230|  17.4k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  245|  34.9k|    {
  246|  34.9k|        more_ = true;
  247|  34.9k|        done_ = false;
  248|  34.9k|        text_buffer_.clear();
  249|  34.9k|        bytes_buffer_.clear();
  250|  34.9k|        raw_tag_ = 0;
  251|  34.9k|        state_stack_.clear();
  252|  34.9k|        state_stack_.emplace_back(parse_mode::root,0);
  253|  34.9k|        stringref_map_stack_.clear();
  254|  34.9k|        nesting_depth_ = 0;
  255|  34.9k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEEC2IRNS_6nonstd4spanIKhLm18446744073709551615EEEEEOT_RKNS0_19cbor_decode_optionsERKS6_:
  220|  34.9k|       : alloc_(alloc),
  221|  34.9k|         source_(std::forward<Sourceable>(source)),
  222|  34.9k|         max_nesting_depth_(options.max_nesting_depth()),
  223|  34.9k|         text_buffer_(alloc),
  224|  34.9k|         bytes_buffer_(alloc),
  225|  34.9k|         state_stack_(alloc),
  226|  34.9k|         stringref_map_stack_(alloc),
  227|  34.9k|         extents_(alloc)
  228|  34.9k|    {
  229|  34.9k|        state_stack_.emplace_back(parse_mode::root,0);
  230|  34.9k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE11cursor_modeEb:
  298|  62.5k|    {
  299|  62.5k|        cursor_mode_ = value;
  300|  62.5k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE4doneEv:
  318|  56.8M|    {
  319|  56.8M|        return done_;
  320|  56.8M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_12chars_sourceIhEENSt3__19allocatorIcEEE10mark_levelEi:
  313|  27.5k|    {
  314|  27.5k|        mark_level_ = value;
  315|  27.5k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IS6_EEOT_RKNS0_19cbor_decode_optionsERKS7_:
  220|  17.4k|       : alloc_(alloc),
  221|  17.4k|         source_(std::forward<Sourceable>(source)),
  222|  17.4k|         max_nesting_depth_(options.max_nesting_depth()),
  223|  17.4k|         text_buffer_(alloc),
  224|  17.4k|         bytes_buffer_(alloc),
  225|  17.4k|         state_stack_(alloc),
  226|  17.4k|         stringref_map_stack_(alloc),
  227|  17.4k|         extents_(alloc)
  228|  17.4k|    {
  229|  17.4k|        state_stack_.emplace_back(parse_mode::root,0);
  230|  17.4k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  318|  56.7M|    {
  319|  56.7M|        return done_;
  320|  56.7M|    }

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

_ZN8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  8.24k|        : data_(std::move(data), alloc), 
  200|  8.24k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  8.24k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  8.24k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  8.24k|    {
  204|  8.24k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  8.24k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 3.47k, False: 4.77k]
  ------------------
  206|  3.47k|        {
  207|  3.47k|            std::size_t stride = 1;
  208|  3.47k|            const size_t num_extents = extents.size();
  209|  10.6k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 7.21k, False: 3.47k]
  ------------------
  210|  7.21k|            {
  211|  7.21k|                strides[i] = stride;
  212|  7.21k|                stride *= extents[i];
  213|  7.21k|            }
  214|  3.47k|        }
  215|  4.77k|        else
  216|  4.77k|        {
  217|  4.77k|            std::size_t stride = 1;
  218|  4.77k|            const size_t num_extents = extents.size();
  219|  24.8k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 20.1k, False: 4.77k]
  ------------------
  220|  20.1k|            {
  221|  20.1k|                strides[num_extents-i-1] = stride;
  222|  20.1k|                stride *= extents[num_extents-i-1];
  223|  20.1k|            }
  224|  4.77k|        }
  225|  35.5k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 27.3k, False: 8.24k]
  ------------------
  226|  27.3k|        {
  227|  27.3k|            dimensions_[i].extent = extents[i];
  228|  27.3k|            dimensions_[i].stride = strides[i];
  229|  27.3k|            dimensions_[i].index = 0;
  230|  27.3k|            dimensions_[i].end = strides[i]*extents[i];
  231|  27.3k|        }
  232|  8.24k|    }
_ZN8jsoncons4cbor20typed_array_iteratorD2Ev:
   43|   535k|    virtual ~typed_array_iterator() = default;
_ZNK8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|   355k|    {
  261|   355k|        return done_;
  262|   355k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   185k|    {
  267|   185k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   185k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 185k]
  |  |  ------------------
  |  |   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|   185k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 40.4k, False: 145k]
  ------------------
  270|  40.4k|        {
  271|  40.4k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 8.24k, False: 32.2k]
  ------------------
  272|  8.24k|            {
  273|  8.24k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  8.24k|                first_ = false;
  275|  8.24k|                return;
  276|  8.24k|            }
  277|  32.2k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 8.24k, False: 23.9k]
  ------------------
  278|  8.24k|            {
  279|  8.24k|                visitor.end_array(context, ec);
  280|  8.24k|                done_ = true;
  281|  8.24k|                return;
  282|  8.24k|            }
  283|  32.2k|        }
  284|   169k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 101k, False: 67.9k]
  |  Branch (284:44): [True: 61.9k, False: 39.3k]
  ------------------
  285|  61.9k|        {
  286|  61.9k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  61.9k|            ++dim_;
  288|  61.9k|            return;
  289|  61.9k|        }
  290|   107k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 45.2k, False: 61.9k]
  ------------------
  291|  45.2k|        {
  292|  45.2k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  45.2k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  45.2k|            ++count_;
  295|  45.2k|            return;
  296|  45.2k|        }
  297|  61.9k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 61.9k, False: 0]
  ------------------
  298|  61.9k|        {
  299|  61.9k|            visitor.end_array(context, ec);
  300|  61.9k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 61.9k, False: 0]
  ------------------
  301|  61.9k|            {
  302|  61.9k|                --dim_;
  303|  61.9k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  61.9k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 15.7k, False: 46.2k]
  ------------------
  305|  15.7k|                {
  306|  58.6k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 42.9k, False: 15.7k]
  ------------------
  307|  42.9k|                    {
  308|  42.9k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  42.9k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  42.9k|                    }
  311|  15.7k|                }
  312|  61.9k|            }
  313|  61.9k|        }
  314|  61.9k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIhEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   196k|    {
   73|   196k|        visitor.uint64_value(val, tag, context, ec);
   74|   196k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  29.6k|        : data_(std::move(data), alloc), 
  107|  29.6k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  29.6k|          array_tag_(array_tag), 
  109|  29.6k|          extent_(span_.size()), 
  110|  29.6k|          tag_(tag), 
  111|  29.6k|          func_(Func{})
  112|  29.6k|    {
  113|  29.6k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   362k|    {
  142|   362k|        return done_;
  143|   362k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   210k|    {
  148|   210k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   210k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 29.6k, False: 181k]
  |  |  ------------------
  ------------------
  149|  29.6k|        {
  150|  29.6k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  29.6k|            first_ = false;
  152|  29.6k|        }
  153|   181k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   181k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 151k, False: 29.6k]
  |  |  ------------------
  ------------------
  154|   151k|        {
  155|   151k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   151k|            ++index_;
  157|   151k|        }
  158|  29.6k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 29.6k, False: 0]
  ------------------
  159|  29.6k|        {
  160|  29.6k|            visitor.end_array(context, ec);
  161|  29.6k|            done_ = true;
  162|  29.6k|        }
  163|   210k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  3.08k|        : data_(std::move(data), alloc), 
  200|  3.08k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  3.08k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  3.08k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  3.08k|    {
  204|  3.08k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  3.08k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 330, False: 2.75k]
  ------------------
  206|    330|        {
  207|    330|            std::size_t stride = 1;
  208|    330|            const size_t num_extents = extents.size();
  209|  9.32k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 8.99k, False: 330]
  ------------------
  210|  8.99k|            {
  211|  8.99k|                strides[i] = stride;
  212|  8.99k|                stride *= extents[i];
  213|  8.99k|            }
  214|    330|        }
  215|  2.75k|        else
  216|  2.75k|        {
  217|  2.75k|            std::size_t stride = 1;
  218|  2.75k|            const size_t num_extents = extents.size();
  219|   567k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 564k, False: 2.75k]
  ------------------
  220|   564k|            {
  221|   564k|                strides[num_extents-i-1] = stride;
  222|   564k|                stride *= extents[num_extents-i-1];
  223|   564k|            }
  224|  2.75k|        }
  225|   576k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 573k, False: 3.08k]
  ------------------
  226|   573k|        {
  227|   573k|            dimensions_[i].extent = extents[i];
  228|   573k|            dimensions_[i].stride = strides[i];
  229|   573k|            dimensions_[i].index = 0;
  230|   573k|            dimensions_[i].end = strides[i]*extents[i];
  231|   573k|        }
  232|  3.08k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  6.79M|    {
  261|  6.79M|        return done_;
  262|  6.79M|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  3.40M|    {
  267|  3.40M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  3.40M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 3.40M]
  |  |  ------------------
  |  |   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.40M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 14.0k, False: 3.38M]
  ------------------
  270|  14.0k|        {
  271|  14.0k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 3.08k, False: 10.9k]
  ------------------
  272|  3.08k|            {
  273|  3.08k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  3.08k|                first_ = false;
  275|  3.08k|                return;
  276|  3.08k|            }
  277|  10.9k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 3.08k, False: 7.84k]
  ------------------
  278|  3.08k|            {
  279|  3.08k|                visitor.end_array(context, ec);
  280|  3.08k|                done_ = true;
  281|  3.08k|                return;
  282|  3.08k|            }
  283|  10.9k|        }
  284|  3.39M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 3.38M, False: 13.0k]
  |  Branch (284:44): [True: 1.69M, False: 1.68M]
  ------------------
  285|  1.69M|        {
  286|  1.69M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  1.69M|            ++dim_;
  288|  1.69M|            return;
  289|  1.69M|        }
  290|  1.70M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 9.95k, False: 1.69M]
  ------------------
  291|  9.95k|        {
  292|  9.95k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  9.95k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  9.95k|            ++count_;
  295|  9.95k|            return;
  296|  9.95k|        }
  297|  1.69M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 1.69M, False: 0]
  ------------------
  298|  1.69M|        {
  299|  1.69M|            visitor.end_array(context, ec);
  300|  1.69M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 1.69M, False: 0]
  ------------------
  301|  1.69M|            {
  302|  1.69M|                --dim_;
  303|  1.69M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  1.69M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 1.80k, False: 1.69M]
  ------------------
  305|  1.80k|                {
  306|  1.12M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 1.12M, False: 1.80k]
  ------------------
  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.80k|                }
  312|  1.69M|            }
  313|  1.69M|        }
  314|  1.69M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueItEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   248k|    {
   73|   248k|        visitor.uint64_value(val, tag, context, ec);
   74|   248k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  39.0k|        : data_(std::move(data), alloc), 
  107|  39.0k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  39.0k|          array_tag_(array_tag), 
  109|  39.0k|          extent_(span_.size()), 
  110|  39.0k|          tag_(tag), 
  111|  39.0k|          func_(Func{})
  112|  39.0k|    {
  113|  39.0k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   555k|    {
  142|   555k|        return done_;
  143|   555k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   316k|    {
  148|   316k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   316k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 39.0k, False: 277k]
  |  |  ------------------
  ------------------
  149|  39.0k|        {
  150|  39.0k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  39.0k|            first_ = false;
  152|  39.0k|        }
  153|   277k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   277k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 238k, False: 39.0k]
  |  |  ------------------
  ------------------
  154|   238k|        {
  155|   238k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   238k|            ++index_;
  157|   238k|        }
  158|  39.0k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 39.0k, False: 0]
  ------------------
  159|  39.0k|        {
  160|  39.0k|            visitor.end_array(context, ec);
  161|  39.0k|            done_ = true;
  162|  39.0k|        }
  163|   316k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  6.23k|        : data_(std::move(data), alloc), 
  200|  6.23k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  6.23k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  6.23k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  6.23k|    {
  204|  6.23k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  6.23k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 3.90k, False: 2.33k]
  ------------------
  206|  3.90k|        {
  207|  3.90k|            std::size_t stride = 1;
  208|  3.90k|            const size_t num_extents = extents.size();
  209|  4.56M|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 4.55M, False: 3.90k]
  ------------------
  210|  4.55M|            {
  211|  4.55M|                strides[i] = stride;
  212|  4.55M|                stride *= extents[i];
  213|  4.55M|            }
  214|  3.90k|        }
  215|  2.33k|        else
  216|  2.33k|        {
  217|  2.33k|            std::size_t stride = 1;
  218|  2.33k|            const size_t num_extents = extents.size();
  219|  20.5k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 18.1k, False: 2.33k]
  ------------------
  220|  18.1k|            {
  221|  18.1k|                strides[num_extents-i-1] = stride;
  222|  18.1k|                stride *= extents[num_extents-i-1];
  223|  18.1k|            }
  224|  2.33k|        }
  225|  4.58M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 4.57M, False: 6.23k]
  ------------------
  226|  4.57M|        {
  227|  4.57M|            dimensions_[i].extent = extents[i];
  228|  4.57M|            dimensions_[i].stride = strides[i];
  229|  4.57M|            dimensions_[i].index = 0;
  230|  4.57M|            dimensions_[i].end = strides[i]*extents[i];
  231|  4.57M|        }
  232|  6.23k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  18.3M|    {
  261|  18.3M|        return done_;
  262|  18.3M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  9.19M|    {
  267|  9.19M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  9.19M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 9.19M]
  |  |  ------------------
  |  |   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|  9.19M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 20.9k, False: 9.17M]
  ------------------
  270|  20.9k|        {
  271|  20.9k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 6.23k, False: 14.6k]
  ------------------
  272|  6.23k|            {
  273|  6.23k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  6.23k|                first_ = false;
  275|  6.23k|                return;
  276|  6.23k|            }
  277|  14.6k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 6.23k, False: 8.45k]
  ------------------
  278|  6.23k|            {
  279|  6.23k|                visitor.end_array(context, ec);
  280|  6.23k|                done_ = true;
  281|  6.23k|                return;
  282|  6.23k|            }
  283|  14.6k|        }
  284|  9.18M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 9.16M, False: 16.0k]
  |  Branch (284:44): [True: 4.58M, False: 4.57M]
  ------------------
  285|  4.58M|        {
  286|  4.58M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  4.58M|            ++dim_;
  288|  4.58M|            return;
  289|  4.58M|        }
  290|  4.59M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 8.51k, False: 4.58M]
  ------------------
  291|  8.51k|        {
  292|  8.51k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  8.51k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  8.51k|            ++count_;
  295|  8.51k|            return;
  296|  8.51k|        }
  297|  4.58M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 4.58M, False: 0]
  ------------------
  298|  4.58M|        {
  299|  4.58M|            visitor.end_array(context, ec);
  300|  4.58M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 4.58M, False: 0]
  ------------------
  301|  4.58M|            {
  302|  4.58M|                --dim_;
  303|  4.58M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  4.58M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 2.27k, False: 4.58M]
  ------------------
  305|  2.27k|                {
  306|  18.0k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 15.7k, False: 2.27k]
  ------------------
  307|  15.7k|                    {
  308|  15.7k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  15.7k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  15.7k|                    }
  311|  2.27k|                }
  312|  4.58M|            }
  313|  4.58M|        }
  314|  4.58M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIjEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|  74.6k|    {
   73|  74.6k|        visitor.uint64_value(val, tag, context, ec);
   74|  74.6k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  23.9k|        : data_(std::move(data), alloc), 
  107|  23.9k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  23.9k|          array_tag_(array_tag), 
  109|  23.9k|          extent_(span_.size()), 
  110|  23.9k|          tag_(tag), 
  111|  23.9k|          func_(Func{})
  112|  23.9k|    {
  113|  23.9k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   180k|    {
  142|   180k|        return done_;
  143|   180k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   114k|    {
  148|   114k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   114k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 23.9k, False: 90.0k]
  |  |  ------------------
  ------------------
  149|  23.9k|        {
  150|  23.9k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  23.9k|            first_ = false;
  152|  23.9k|        }
  153|  90.0k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  90.0k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 66.1k, False: 23.9k]
  |  |  ------------------
  ------------------
  154|  66.1k|        {
  155|  66.1k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  66.1k|            ++index_;
  157|  66.1k|        }
  158|  23.9k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 23.9k, False: 0]
  ------------------
  159|  23.9k|        {
  160|  23.9k|            visitor.end_array(context, ec);
  161|  23.9k|            done_ = true;
  162|  23.9k|        }
  163|   114k|    }
_ZN8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  4.53k|        : data_(std::move(data), alloc), 
  200|  4.53k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  4.53k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  4.53k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  4.53k|    {
  204|  4.53k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  4.53k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 327, False: 4.20k]
  ------------------
  206|    327|        {
  207|    327|            std::size_t stride = 1;
  208|    327|            const size_t num_extents = extents.size();
  209|  4.26k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 3.93k, False: 327]
  ------------------
  210|  3.93k|            {
  211|  3.93k|                strides[i] = stride;
  212|  3.93k|                stride *= extents[i];
  213|  3.93k|            }
  214|    327|        }
  215|  4.20k|        else
  216|  4.20k|        {
  217|  4.20k|            std::size_t stride = 1;
  218|  4.20k|            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: 4.20k]
  ------------------
  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|  4.20k|        }
  225|  1.08M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.07M, False: 4.53k]
  ------------------
  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|  4.53k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  4.39M|    {
  261|  4.39M|        return done_;
  262|  4.39M|    }
_ZN8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  2.20M|    {
  267|  2.20M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  2.20M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 2.20M]
  |  |  ------------------
  |  |   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.20M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 15.7k, False: 2.18M]
  ------------------
  270|  15.7k|        {
  271|  15.7k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 4.53k, False: 11.1k]
  ------------------
  272|  4.53k|            {
  273|  4.53k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  4.53k|                first_ = false;
  275|  4.53k|                return;
  276|  4.53k|            }
  277|  11.1k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 4.53k, False: 6.64k]
  ------------------
  278|  4.53k|            {
  279|  4.53k|                visitor.end_array(context, ec);
  280|  4.53k|                done_ = true;
  281|  4.53k|                return;
  282|  4.53k|            }
  283|  11.1k|        }
  284|  2.19M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 2.18M, False: 13.2k]
  |  Branch (284:44): [True: 1.09M, False: 1.08M]
  ------------------
  285|  1.09M|        {
  286|  1.09M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  1.09M|            ++dim_;
  288|  1.09M|            return;
  289|  1.09M|        }
  290|  1.10M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 6.66k, False: 1.09M]
  ------------------
  291|  6.66k|        {
  292|  6.66k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  6.66k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  6.66k|            ++count_;
  295|  6.66k|            return;
  296|  6.66k|        }
  297|  1.09M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 1.09M, False: 0]
  ------------------
  298|  1.09M|        {
  299|  1.09M|            visitor.end_array(context, ec);
  300|  1.09M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 1.09M, False: 0]
  ------------------
  301|  1.09M|            {
  302|  1.09M|                --dim_;
  303|  1.09M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  1.09M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 2.13k, False: 1.09M]
  ------------------
  305|  2.13k|                {
  306|  21.9k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 19.7k, False: 2.13k]
  ------------------
  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|  2.13k|                }
  312|  1.09M|            }
  313|  1.09M|        }
  314|  1.09M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueImEENSt3__19enable_ifIXsr6nonstd19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|  49.0k|    {
   73|  49.0k|        visitor.uint64_value(val, tag, context, ec);
   74|  49.0k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  38.0k|        : data_(std::move(data), alloc), 
  107|  38.0k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  38.0k|          array_tag_(array_tag), 
  109|  38.0k|          extent_(span_.size()), 
  110|  38.0k|          tag_(tag), 
  111|  38.0k|          func_(Func{})
  112|  38.0k|    {
  113|  38.0k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   160k|    {
  142|   160k|        return done_;
  143|   160k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   118k|    {
  148|   118k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   118k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 38.0k, False: 80.4k]
  |  |  ------------------
  ------------------
  149|  38.0k|        {
  150|  38.0k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  38.0k|            first_ = false;
  152|  38.0k|        }
  153|  80.4k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  80.4k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 42.3k, False: 38.0k]
  |  |  ------------------
  ------------------
  154|  42.3k|        {
  155|  42.3k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  42.3k|            ++index_;
  157|  42.3k|        }
  158|  38.0k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 38.0k, False: 0]
  ------------------
  159|  38.0k|        {
  160|  38.0k|            visitor.end_array(context, ec);
  161|  38.0k|            done_ = true;
  162|  38.0k|        }
  163|   118k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  4.46k|        : data_(std::move(data), alloc), 
  200|  4.46k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  4.46k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  4.46k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  4.46k|    {
  204|  4.46k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  4.46k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 296, False: 4.17k]
  ------------------
  206|    296|        {
  207|    296|            std::size_t stride = 1;
  208|    296|            const size_t num_extents = extents.size();
  209|   749k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 749k, False: 296]
  ------------------
  210|   749k|            {
  211|   749k|                strides[i] = stride;
  212|   749k|                stride *= extents[i];
  213|   749k|            }
  214|    296|        }
  215|  4.17k|        else
  216|  4.17k|        {
  217|  4.17k|            std::size_t stride = 1;
  218|  4.17k|            const size_t num_extents = extents.size();
  219|  23.1k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 18.9k, False: 4.17k]
  ------------------
  220|  18.9k|            {
  221|  18.9k|                strides[num_extents-i-1] = stride;
  222|  18.9k|                stride *= extents[num_extents-i-1];
  223|  18.9k|            }
  224|  4.17k|        }
  225|   772k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 768k, False: 4.46k]
  ------------------
  226|   768k|        {
  227|   768k|            dimensions_[i].extent = extents[i];
  228|   768k|            dimensions_[i].stride = strides[i];
  229|   768k|            dimensions_[i].index = 0;
  230|   768k|            dimensions_[i].end = strides[i]*extents[i];
  231|   768k|        }
  232|  4.46k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  12.0M|    {
  261|  12.0M|        return done_;
  262|  12.0M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  6.05M|    {
  267|  6.05M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  6.05M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 6.05M]
  |  |  ------------------
  |  |   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.05M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 34.5k, False: 6.01M]
  ------------------
  270|  34.5k|        {
  271|  34.5k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 4.46k, False: 30.0k]
  ------------------
  272|  4.46k|            {
  273|  4.46k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  4.46k|                first_ = false;
  275|  4.46k|                return;
  276|  4.46k|            }
  277|  30.0k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 4.46k, False: 25.6k]
  ------------------
  278|  4.46k|            {
  279|  4.46k|                visitor.end_array(context, ec);
  280|  4.46k|                done_ = true;
  281|  4.46k|                return;
  282|  4.46k|            }
  283|  30.0k|        }
  284|  6.04M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 5.98M, False: 55.7k]
  |  Branch (284:44): [True: 3.00M, False: 2.98M]
  ------------------
  285|  3.00M|        {
  286|  3.00M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  3.00M|            ++dim_;
  288|  3.00M|            return;
  289|  3.00M|        }
  290|  3.03M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 28.7k, False: 3.00M]
  ------------------
  291|  28.7k|        {
  292|  28.7k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  28.7k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  28.7k|            ++count_;
  295|  28.7k|            return;
  296|  28.7k|        }
  297|  3.00M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 3.00M, False: 0]
  ------------------
  298|  3.00M|        {
  299|  3.00M|            visitor.end_array(context, ec);
  300|  3.00M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 3.00M, False: 0]
  ------------------
  301|  3.00M|            {
  302|  3.00M|                --dim_;
  303|  3.00M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  3.00M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 22.5k, False: 2.98M]
  ------------------
  305|  22.5k|                {
  306|  2.26M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 2.24M, False: 22.5k]
  ------------------
  307|  2.24M|                    {
  308|  2.24M|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  2.24M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  2.24M|                    }
  311|  22.5k|                }
  312|  3.00M|            }
  313|  3.00M|        }
  314|  3.00M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIaEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|   397k|    {
   65|   397k|        visitor.int64_value(val, tag, context, ec);
   66|   397k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  15.8k|        : data_(std::move(data), alloc), 
  107|  15.8k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  15.8k|          array_tag_(array_tag), 
  109|  15.8k|          extent_(span_.size()), 
  110|  15.8k|          tag_(tag), 
  111|  15.8k|          func_(Func{})
  112|  15.8k|    {
  113|  15.8k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   769k|    {
  142|   769k|        return done_;
  143|   769k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   400k|    {
  148|   400k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   400k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 15.8k, False: 384k]
  |  |  ------------------
  ------------------
  149|  15.8k|        {
  150|  15.8k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  15.8k|            first_ = false;
  152|  15.8k|        }
  153|   384k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   384k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 368k, False: 15.8k]
  |  |  ------------------
  ------------------
  154|   368k|        {
  155|   368k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   368k|            ++index_;
  157|   368k|        }
  158|  15.8k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 15.8k, False: 0]
  ------------------
  159|  15.8k|        {
  160|  15.8k|            visitor.end_array(context, ec);
  161|  15.8k|            done_ = true;
  162|  15.8k|        }
  163|   400k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  5.76k|        : data_(std::move(data), alloc), 
  200|  5.76k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  5.76k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  5.76k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  5.76k|    {
  204|  5.76k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  5.76k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 1.12k, False: 4.64k]
  ------------------
  206|  1.12k|        {
  207|  1.12k|            std::size_t stride = 1;
  208|  1.12k|            const size_t num_extents = extents.size();
  209|  6.64k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 5.52k, False: 1.12k]
  ------------------
  210|  5.52k|            {
  211|  5.52k|                strides[i] = stride;
  212|  5.52k|                stride *= extents[i];
  213|  5.52k|            }
  214|  1.12k|        }
  215|  4.64k|        else
  216|  4.64k|        {
  217|  4.64k|            std::size_t stride = 1;
  218|  4.64k|            const size_t num_extents = extents.size();
  219|  13.7k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 9.07k, False: 4.64k]
  ------------------
  220|  9.07k|            {
  221|  9.07k|                strides[num_extents-i-1] = stride;
  222|  9.07k|                stride *= extents[num_extents-i-1];
  223|  9.07k|            }
  224|  4.64k|        }
  225|  20.3k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 14.5k, False: 5.76k]
  ------------------
  226|  14.5k|        {
  227|  14.5k|            dimensions_[i].extent = extents[i];
  228|  14.5k|            dimensions_[i].stride = strides[i];
  229|  14.5k|            dimensions_[i].index = 0;
  230|  14.5k|            dimensions_[i].end = strides[i]*extents[i];
  231|  14.5k|        }
  232|  5.76k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|   120k|    {
  261|   120k|        return done_;
  262|   120k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  66.1k|    {
  267|  66.1k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  66.1k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 66.1k]
  |  |  ------------------
  |  |   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|  66.1k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 26.5k, False: 39.6k]
  ------------------
  270|  26.5k|        {
  271|  26.5k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 5.76k, False: 20.7k]
  ------------------
  272|  5.76k|            {
  273|  5.76k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  5.76k|                first_ = false;
  275|  5.76k|                return;
  276|  5.76k|            }
  277|  20.7k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 5.76k, False: 14.9k]
  ------------------
  278|  5.76k|            {
  279|  5.76k|                visitor.end_array(context, ec);
  280|  5.76k|                done_ = true;
  281|  5.76k|                return;
  282|  5.76k|            }
  283|  20.7k|        }
  284|  54.5k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 21.7k, False: 32.8k]
  |  Branch (284:44): [True: 16.4k, False: 5.24k]
  ------------------
  285|  16.4k|        {
  286|  16.4k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  16.4k|            ++dim_;
  288|  16.4k|            return;
  289|  16.4k|        }
  290|  38.1k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 21.6k, False: 16.4k]
  ------------------
  291|  21.6k|        {
  292|  21.6k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  21.6k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  21.6k|            ++count_;
  295|  21.6k|            return;
  296|  21.6k|        }
  297|  16.4k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 16.4k, False: 0]
  ------------------
  298|  16.4k|        {
  299|  16.4k|            visitor.end_array(context, ec);
  300|  16.4k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 16.4k, False: 0]
  ------------------
  301|  16.4k|            {
  302|  16.4k|                --dim_;
  303|  16.4k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  16.4k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 6.73k, False: 9.74k]
  ------------------
  305|  6.73k|                {
  306|  14.3k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 7.64k, False: 6.73k]
  ------------------
  307|  7.64k|                    {
  308|  7.64k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  7.64k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  7.64k|                    }
  311|  6.73k|                }
  312|  16.4k|            }
  313|  16.4k|        }
  314|  16.4k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIsEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|   119k|    {
   65|   119k|        visitor.int64_value(val, tag, context, ec);
   66|   119k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  23.7k|        : data_(std::move(data), alloc), 
  107|  23.7k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  23.7k|          array_tag_(array_tag), 
  109|  23.7k|          extent_(span_.size()), 
  110|  23.7k|          tag_(tag), 
  111|  23.7k|          func_(Func{})
  112|  23.7k|    {
  113|  23.7k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   243k|    {
  142|   243k|        return done_;
  143|   243k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   145k|    {
  148|   145k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   145k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 23.7k, False: 121k]
  |  |  ------------------
  ------------------
  149|  23.7k|        {
  150|  23.7k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  23.7k|            first_ = false;
  152|  23.7k|        }
  153|   121k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   121k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 98.1k, False: 23.7k]
  |  |  ------------------
  ------------------
  154|  98.1k|        {
  155|  98.1k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  98.1k|            ++index_;
  157|  98.1k|        }
  158|  23.7k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 23.7k, False: 0]
  ------------------
  159|  23.7k|        {
  160|  23.7k|            visitor.end_array(context, ec);
  161|  23.7k|            done_ = true;
  162|  23.7k|        }
  163|   145k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  3.27k|        : data_(std::move(data), alloc), 
  200|  3.27k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  3.27k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  3.27k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  3.27k|    {
  204|  3.27k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  3.27k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 256, False: 3.01k]
  ------------------
  206|    256|        {
  207|    256|            std::size_t stride = 1;
  208|    256|            const size_t num_extents = extents.size();
  209|  1.84k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 1.58k, False: 256]
  ------------------
  210|  1.58k|            {
  211|  1.58k|                strides[i] = stride;
  212|  1.58k|                stride *= extents[i];
  213|  1.58k|            }
  214|    256|        }
  215|  3.01k|        else
  216|  3.01k|        {
  217|  3.01k|            std::size_t stride = 1;
  218|  3.01k|            const size_t num_extents = extents.size();
  219|  1.08M|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 1.08M, False: 3.01k]
  ------------------
  220|  1.08M|            {
  221|  1.08M|                strides[num_extents-i-1] = stride;
  222|  1.08M|                stride *= extents[num_extents-i-1];
  223|  1.08M|            }
  224|  3.01k|        }
  225|  1.08M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.08M, False: 3.27k]
  ------------------
  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.27k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  4.34M|    {
  261|  4.34M|        return done_;
  262|  4.34M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  2.17M|    {
  267|  2.17M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  2.17M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 2.17M]
  |  |  ------------------
  |  |   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.17M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 10.2k, False: 2.16M]
  ------------------
  270|  10.2k|        {
  271|  10.2k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 3.27k, False: 6.96k]
  ------------------
  272|  3.27k|            {
  273|  3.27k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  3.27k|                first_ = false;
  275|  3.27k|                return;
  276|  3.27k|            }
  277|  6.96k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 3.27k, False: 3.69k]
  ------------------
  278|  3.27k|            {
  279|  3.27k|                visitor.end_array(context, ec);
  280|  3.27k|                done_ = true;
  281|  3.27k|                return;
  282|  3.27k|            }
  283|  6.96k|        }
  284|  2.17M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 2.16M, False: 7.37k]
  |  Branch (284:44): [True: 1.08M, False: 1.07M]
  ------------------
  285|  1.08M|        {
  286|  1.08M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  1.08M|            ++dim_;
  288|  1.08M|            return;
  289|  1.08M|        }
  290|  1.08M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 3.71k, False: 1.08M]
  ------------------
  291|  3.71k|        {
  292|  3.71k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  3.71k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  3.71k|            ++count_;
  295|  3.71k|            return;
  296|  3.71k|        }
  297|  1.08M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 1.08M, False: 0]
  ------------------
  298|  1.08M|        {
  299|  1.08M|            visitor.end_array(context, ec);
  300|  1.08M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 1.08M, False: 0]
  ------------------
  301|  1.08M|            {
  302|  1.08M|                --dim_;
  303|  1.08M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  1.08M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 432, False: 1.08M]
  ------------------
  305|    432|                {
  306|  4.75k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 4.32k, False: 432]
  ------------------
  307|  4.32k|                    {
  308|  4.32k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  4.32k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  4.32k|                    }
  311|    432|                }
  312|  1.08M|            }
  313|  1.08M|        }
  314|  1.08M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIiEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|   146k|    {
   65|   146k|        visitor.int64_value(val, tag, context, ec);
   66|   146k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  98.7k|        : data_(std::move(data), alloc), 
  107|  98.7k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  98.7k|          array_tag_(array_tag), 
  109|  98.7k|          extent_(span_.size()), 
  110|  98.7k|          tag_(tag), 
  111|  98.7k|          func_(Func{})
  112|  98.7k|    {
  113|  98.7k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   482k|    {
  142|   482k|        return done_;
  143|   482k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   340k|    {
  148|   340k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   340k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 98.7k, False: 241k]
  |  |  ------------------
  ------------------
  149|  98.7k|        {
  150|  98.7k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  98.7k|            first_ = false;
  152|  98.7k|        }
  153|   241k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   241k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 142k, False: 98.7k]
  |  |  ------------------
  ------------------
  154|   142k|        {
  155|   142k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   142k|            ++index_;
  157|   142k|        }
  158|  98.7k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 98.7k, False: 0]
  ------------------
  159|  98.7k|        {
  160|  98.7k|            visitor.end_array(context, ec);
  161|  98.7k|            done_ = true;
  162|  98.7k|        }
  163|   340k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  5.61k|        : data_(std::move(data), alloc), 
  200|  5.61k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  5.61k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  5.61k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  5.61k|    {
  204|  5.61k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  5.61k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 225, False: 5.39k]
  ------------------
  206|    225|        {
  207|    225|            std::size_t stride = 1;
  208|    225|            const size_t num_extents = extents.size();
  209|  2.33M|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 2.33M, False: 225]
  ------------------
  210|  2.33M|            {
  211|  2.33M|                strides[i] = stride;
  212|  2.33M|                stride *= extents[i];
  213|  2.33M|            }
  214|    225|        }
  215|  5.39k|        else
  216|  5.39k|        {
  217|  5.39k|            std::size_t stride = 1;
  218|  5.39k|            const size_t num_extents = extents.size();
  219|  42.8k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 37.4k, False: 5.39k]
  ------------------
  220|  37.4k|            {
  221|  37.4k|                strides[num_extents-i-1] = stride;
  222|  37.4k|                stride *= extents[num_extents-i-1];
  223|  37.4k|            }
  224|  5.39k|        }
  225|  2.37M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 2.36M, False: 5.61k]
  ------------------
  226|  2.36M|        {
  227|  2.36M|            dimensions_[i].extent = extents[i];
  228|  2.36M|            dimensions_[i].stride = strides[i];
  229|  2.36M|            dimensions_[i].index = 0;
  230|  2.36M|            dimensions_[i].end = strides[i]*extents[i];
  231|  2.36M|        }
  232|  5.61k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  9.58M|    {
  261|  9.58M|        return done_;
  262|  9.58M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  4.79M|    {
  267|  4.79M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  4.79M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 4.79M]
  |  |  ------------------
  |  |   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|  4.79M|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 20.0k, False: 4.77M]
  ------------------
  270|  20.0k|        {
  271|  20.0k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 5.61k, False: 14.4k]
  ------------------
  272|  5.61k|            {
  273|  5.61k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  5.61k|                first_ = false;
  275|  5.61k|                return;
  276|  5.61k|            }
  277|  14.4k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 5.61k, False: 8.86k]
  ------------------
  278|  5.61k|            {
  279|  5.61k|                visitor.end_array(context, ec);
  280|  5.61k|                done_ = true;
  281|  5.61k|                return;
  282|  5.61k|            }
  283|  14.4k|        }
  284|  4.78M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 4.77M, False: 17.7k]
  |  Branch (284:44): [True: 2.38M, False: 2.38M]
  ------------------
  285|  2.38M|        {
  286|  2.38M|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  2.38M|            ++dim_;
  288|  2.38M|            return;
  289|  2.38M|        }
  290|  2.39M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 8.87k, False: 2.38M]
  ------------------
  291|  8.87k|        {
  292|  8.87k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  8.87k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  8.87k|            ++count_;
  295|  8.87k|            return;
  296|  8.87k|        }
  297|  2.38M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 2.38M, False: 0]
  ------------------
  298|  2.38M|        {
  299|  2.38M|            visitor.end_array(context, ec);
  300|  2.38M|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 2.38M, False: 0]
  ------------------
  301|  2.38M|            {
  302|  2.38M|                --dim_;
  303|  2.38M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  2.38M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 3.25k, False: 2.38M]
  ------------------
  305|  3.25k|                {
  306|  28.9k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 25.6k, False: 3.25k]
  ------------------
  307|  25.6k|                    {
  308|  25.6k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  25.6k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  25.6k|                    }
  311|  3.25k|                }
  312|  2.38M|            }
  313|  2.38M|        }
  314|  2.38M|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIlEENSt3__19enable_ifIXsr6nonstd17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|  30.7k|    {
   65|  30.7k|        visitor.int64_value(val, tag, context, ec);
   66|  30.7k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  20.5k|        : data_(std::move(data), alloc), 
  107|  20.5k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  20.5k|          array_tag_(array_tag), 
  109|  20.5k|          extent_(span_.size()), 
  110|  20.5k|          tag_(tag), 
  111|  20.5k|          func_(Func{})
  112|  20.5k|    {
  113|  20.5k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  84.8k|    {
  142|  84.8k|        return done_;
  143|  84.8k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  62.9k|    {
  148|  62.9k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  62.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 20.5k, False: 42.4k]
  |  |  ------------------
  ------------------
  149|  20.5k|        {
  150|  20.5k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  20.5k|            first_ = false;
  152|  20.5k|        }
  153|  42.4k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  42.4k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 21.9k, False: 20.5k]
  |  |  ------------------
  ------------------
  154|  21.9k|        {
  155|  21.9k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  21.9k|            ++index_;
  157|  21.9k|        }
  158|  20.5k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 20.5k, False: 0]
  ------------------
  159|  20.5k|        {
  160|  20.5k|            visitor.end_array(context, ec);
  161|  20.5k|            done_ = true;
  162|  20.5k|        }
  163|  62.9k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  9.88k|        : data_(std::move(data), alloc), 
  200|  9.88k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  9.88k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  9.88k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  9.88k|    {
  204|  9.88k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  9.88k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 480, False: 9.40k]
  ------------------
  206|    480|        {
  207|    480|            std::size_t stride = 1;
  208|    480|            const size_t num_extents = extents.size();
  209|  3.28k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 2.80k, False: 480]
  ------------------
  210|  2.80k|            {
  211|  2.80k|                strides[i] = stride;
  212|  2.80k|                stride *= extents[i];
  213|  2.80k|            }
  214|    480|        }
  215|  9.40k|        else
  216|  9.40k|        {
  217|  9.40k|            std::size_t stride = 1;
  218|  9.40k|            const size_t num_extents = extents.size();
  219|  56.2k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 46.8k, False: 9.40k]
  ------------------
  220|  46.8k|            {
  221|  46.8k|                strides[num_extents-i-1] = stride;
  222|  46.8k|                stride *= extents[num_extents-i-1];
  223|  46.8k|            }
  224|  9.40k|        }
  225|  59.5k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 49.6k, False: 9.88k]
  ------------------
  226|  49.6k|        {
  227|  49.6k|            dimensions_[i].extent = extents[i];
  228|  49.6k|            dimensions_[i].stride = strides[i];
  229|  49.6k|            dimensions_[i].index = 0;
  230|  49.6k|            dimensions_[i].end = strides[i]*extents[i];
  231|  49.6k|        }
  232|  9.88k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4doneEv:
  260|   321k|    {
  261|   321k|        return done_;
  262|   321k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   170k|    {
  267|   170k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   170k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 170k]
  |  |  ------------------
  |  |   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|   170k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 45.3k, False: 125k]
  ------------------
  270|  45.3k|        {
  271|  45.3k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 9.88k, False: 35.4k]
  ------------------
  272|  9.88k|            {
  273|  9.88k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  9.88k|                first_ = false;
  275|  9.88k|                return;
  276|  9.88k|            }
  277|  35.4k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 9.88k, False: 25.5k]
  ------------------
  278|  9.88k|            {
  279|  9.88k|                visitor.end_array(context, ec);
  280|  9.88k|                done_ = true;
  281|  9.88k|                return;
  282|  9.88k|            }
  283|  35.4k|        }
  284|   150k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 110k, False: 39.9k]
  |  Branch (284:44): [True: 58.8k, False: 51.9k]
  ------------------
  285|  58.8k|        {
  286|  58.8k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  58.8k|            ++dim_;
  288|  58.8k|            return;
  289|  58.8k|        }
  290|  91.8k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 33.0k, False: 58.8k]
  ------------------
  291|  33.0k|        {
  292|  33.0k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  33.0k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  33.0k|            ++count_;
  295|  33.0k|            return;
  296|  33.0k|        }
  297|  58.8k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 58.8k, False: 0]
  ------------------
  298|  58.8k|        {
  299|  58.8k|            visitor.end_array(context, ec);
  300|  58.8k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 58.8k, False: 0]
  ------------------
  301|  58.8k|            {
  302|  58.8k|                --dim_;
  303|  58.8k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  58.8k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 3.26k, False: 55.6k]
  ------------------
  305|  3.26k|                {
  306|  22.3k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 19.1k, False: 3.26k]
  ------------------
  307|  19.1k|                    {
  308|  19.1k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  19.1k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  19.1k|                    }
  311|  3.26k|                }
  312|  58.8k|            }
  313|  58.8k|        }
  314|  58.8k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIdEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   80|  4.34M|    {
   81|  4.34M|        visitor.double_value(val, tag, context, ec);
   82|  4.34M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  52.0k|        : data_(std::move(data), alloc), 
  107|  52.0k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  52.0k|          array_tag_(array_tag), 
  109|  52.0k|          extent_(span_.size()), 
  110|  52.0k|          tag_(tag), 
  111|  52.0k|          func_(Func{})
  112|  52.0k|    {
  113|  52.0k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4doneEv:
  141|  7.44M|    {
  142|  7.44M|        return done_;
  143|  7.44M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  3.77M|    {
  148|  3.77M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  3.77M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 52.0k, False: 3.72M]
  |  |  ------------------
  ------------------
  149|  52.0k|        {
  150|  52.0k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  52.0k|            first_ = false;
  152|  52.0k|        }
  153|  3.72M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  3.72M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 3.66M, False: 52.0k]
  |  |  ------------------
  ------------------
  154|  3.66M|        {
  155|  3.66M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  3.66M|            ++index_;
  157|  3.66M|        }
  158|  52.0k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 52.0k, False: 0]
  ------------------
  159|  52.0k|        {
  160|  52.0k|            visitor.end_array(context, ec);
  161|  52.0k|            done_ = true;
  162|  52.0k|        }
  163|  3.77M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  6.74k|        : data_(std::move(data), alloc), 
  200|  6.74k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  6.74k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  6.74k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  6.74k|    {
  204|  6.74k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  6.74k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 2.18k, False: 4.55k]
  ------------------
  206|  2.18k|        {
  207|  2.18k|            std::size_t stride = 1;
  208|  2.18k|            const size_t num_extents = extents.size();
  209|  6.95k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 4.76k, False: 2.18k]
  ------------------
  210|  4.76k|            {
  211|  4.76k|                strides[i] = stride;
  212|  4.76k|                stride *= extents[i];
  213|  4.76k|            }
  214|  2.18k|        }
  215|  4.55k|        else
  216|  4.55k|        {
  217|  4.55k|            std::size_t stride = 1;
  218|  4.55k|            const size_t num_extents = extents.size();
  219|   151k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 146k, False: 4.55k]
  ------------------
  220|   146k|            {
  221|   146k|                strides[num_extents-i-1] = stride;
  222|   146k|                stride *= extents[num_extents-i-1];
  223|   146k|            }
  224|  4.55k|        }
  225|   158k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 151k, False: 6.74k]
  ------------------
  226|   151k|        {
  227|   151k|            dimensions_[i].extent = extents[i];
  228|   151k|            dimensions_[i].stride = strides[i];
  229|   151k|            dimensions_[i].index = 0;
  230|   151k|            dimensions_[i].end = strides[i]*extents[i];
  231|   151k|        }
  232|  6.74k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  1.17M|    {
  261|  1.17M|        return done_;
  262|  1.17M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   592k|    {
  267|   592k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   592k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 592k]
  |  |  ------------------
  |  |   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|   592k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 20.5k, False: 571k]
  ------------------
  270|  20.5k|        {
  271|  20.5k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 6.74k, False: 13.7k]
  ------------------
  272|  6.74k|            {
  273|  6.74k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  6.74k|                first_ = false;
  275|  6.74k|                return;
  276|  6.74k|            }
  277|  13.7k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 6.74k, False: 7.02k]
  ------------------
  278|  6.74k|            {
  279|  6.74k|                visitor.end_array(context, ec);
  280|  6.74k|                done_ = true;
  281|  6.74k|                return;
  282|  6.74k|            }
  283|  13.7k|        }
  284|   578k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 568k, False: 10.1k]
  |  Branch (284:44): [True: 285k, False: 282k]
  ------------------
  285|   285k|        {
  286|   285k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|   285k|            ++dim_;
  288|   285k|            return;
  289|   285k|        }
  290|   292k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 7.36k, False: 285k]
  ------------------
  291|  7.36k|        {
  292|  7.36k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  7.36k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  7.36k|            ++count_;
  295|  7.36k|            return;
  296|  7.36k|        }
  297|   285k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 285k, False: 0]
  ------------------
  298|   285k|        {
  299|   285k|            visitor.end_array(context, ec);
  300|   285k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 285k, False: 0]
  ------------------
  301|   285k|            {
  302|   285k|                --dim_;
  303|   285k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|   285k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 320, False: 285k]
  ------------------
  305|    320|                {
  306|   141k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 140k, False: 320]
  ------------------
  307|   140k|                    {
  308|   140k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|   140k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|   140k|                    }
  311|    320|                }
  312|   285k|            }
  313|   285k|        }
  314|   285k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIfEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   80|  2.70M|    {
   81|  2.70M|        visitor.double_value(val, tag, context, ec);
   82|  2.70M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  40.6k|        : data_(std::move(data), alloc), 
  107|  40.6k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  40.6k|          array_tag_(array_tag), 
  109|  40.6k|          extent_(span_.size()), 
  110|  40.6k|          tag_(tag), 
  111|  40.6k|          func_(Func{})
  112|  40.6k|    {
  113|  40.6k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  5.48M|    {
  142|  5.48M|        return done_;
  143|  5.48M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  2.78M|    {
  148|  2.78M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  2.78M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 40.6k, False: 2.74M]
  |  |  ------------------
  ------------------
  149|  40.6k|        {
  150|  40.6k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  40.6k|            first_ = false;
  152|  40.6k|        }
  153|  2.74M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  2.74M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 2.70M, False: 40.6k]
  |  |  ------------------
  ------------------
  154|  2.70M|        {
  155|  2.70M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  2.70M|            ++index_;
  157|  2.70M|        }
  158|  40.6k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 40.6k, False: 0]
  ------------------
  159|  40.6k|        {
  160|  40.6k|            visitor.end_array(context, ec);
  161|  40.6k|            done_ = true;
  162|  40.6k|        }
  163|  2.78M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  3.98k|        : data_(std::move(data), alloc), 
  200|  3.98k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  3.98k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  3.98k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  3.98k|    {
  204|  3.98k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  3.98k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 564, False: 3.42k]
  ------------------
  206|    564|        {
  207|    564|            std::size_t stride = 1;
  208|    564|            const size_t num_extents = extents.size();
  209|  4.70k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 4.14k, False: 564]
  ------------------
  210|  4.14k|            {
  211|  4.14k|                strides[i] = stride;
  212|  4.14k|                stride *= extents[i];
  213|  4.14k|            }
  214|    564|        }
  215|  3.42k|        else
  216|  3.42k|        {
  217|  3.42k|            std::size_t stride = 1;
  218|  3.42k|            const size_t num_extents = extents.size();
  219|  40.1k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 36.6k, False: 3.42k]
  ------------------
  220|  36.6k|            {
  221|  36.6k|                strides[num_extents-i-1] = stride;
  222|  36.6k|                stride *= extents[num_extents-i-1];
  223|  36.6k|            }
  224|  3.42k|        }
  225|  44.8k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 40.8k, False: 3.98k]
  ------------------
  226|  40.8k|        {
  227|  40.8k|            dimensions_[i].extent = extents[i];
  228|  40.8k|            dimensions_[i].stride = strides[i];
  229|  40.8k|            dimensions_[i].index = 0;
  230|  40.8k|            dimensions_[i].end = strides[i]*extents[i];
  231|  40.8k|        }
  232|  3.98k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|   281k|    {
  261|   281k|        return done_;
  262|   281k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|   144k|    {
  267|   144k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|   144k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 144k]
  |  |  ------------------
  |  |   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|   144k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 12.4k, False: 132k]
  ------------------
  270|  12.4k|        {
  271|  12.4k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 3.98k, False: 8.43k]
  ------------------
  272|  3.98k|            {
  273|  3.98k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  3.98k|                first_ = false;
  275|  3.98k|                return;
  276|  3.98k|            }
  277|  8.43k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 3.98k, False: 4.45k]
  ------------------
  278|  3.98k|            {
  279|  3.98k|                visitor.end_array(context, ec);
  280|  3.98k|                done_ = true;
  281|  3.98k|                return;
  282|  3.98k|            }
  283|  8.43k|        }
  284|   136k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 128k, False: 8.41k]
  |  Branch (284:44): [True: 66.0k, False: 62.0k]
  ------------------
  285|  66.0k|        {
  286|  66.0k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  66.0k|            ++dim_;
  288|  66.0k|            return;
  289|  66.0k|        }
  290|  70.4k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 4.45k, False: 66.0k]
  ------------------
  291|  4.45k|        {
  292|  4.45k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  4.45k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  4.45k|            ++count_;
  295|  4.45k|            return;
  296|  4.45k|        }
  297|  66.0k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 66.0k, False: 0]
  ------------------
  298|  66.0k|        {
  299|  66.0k|            visitor.end_array(context, ec);
  300|  66.0k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 66.0k, False: 0]
  ------------------
  301|  66.0k|            {
  302|  66.0k|                --dim_;
  303|  66.0k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  66.0k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 465, False: 65.5k]
  ------------------
  305|    465|                {
  306|  29.6k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 29.2k, False: 465]
  ------------------
  307|  29.2k|                    {
  308|  29.2k|                        dimensions_[i].index = dimensions_[i-1].index;
  309|  29.2k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|  29.2k|                    }
  311|    465|                }
  312|  66.0k|            }
  313|  66.0k|        }
  314|  66.0k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  27.6k|        : data_(std::move(data), alloc), 
  107|  27.6k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  27.6k|          array_tag_(array_tag), 
  109|  27.6k|          extent_(span_.size()), 
  110|  27.6k|          tag_(tag), 
  111|  27.6k|          func_(Func{})
  112|  27.6k|    {
  113|  27.6k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  1.32M|    {
  142|  1.32M|        return done_;
  143|  1.32M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   691k|    {
  148|   691k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   691k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 27.6k, False: 664k]
  |  |  ------------------
  ------------------
  149|  27.6k|        {
  150|  27.6k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  27.6k|            first_ = false;
  152|  27.6k|        }
  153|   664k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   664k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 636k, False: 27.6k]
  |  |  ------------------
  ------------------
  154|   636k|        {
  155|   636k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   636k|            ++index_;
  157|   636k|        }
  158|  27.6k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 27.6k, False: 0]
  ------------------
  159|  27.6k|        {
  160|  27.6k|            visitor.end_array(context, ec);
  161|  27.6k|            done_ = true;
  162|  27.6k|        }
  163|   691k|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEEC2ERKNS4_6vectorImNS5_ImEEEEPNS0_17basic_cbor_parserIS3_S6_EEbRKS6_:
  337|  19.7k|        : extents_(extents, alloc), dimensions_(extents.size(), mdarray_dimension{}, alloc),
  338|  19.7k|          parser_(parser), cursor_mode_(cursor_mode)
  339|  19.7k|    {
  340|  19.7k|        std::vector<std::size_t> strides(extents.size(), 0);
  341|  19.7k|        std::size_t stride = 1;
  342|  19.7k|        const size_t num_extents = extents.size();
  343|   325k|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (343:28): [True: 305k, False: 19.7k]
  ------------------
  344|   305k|        {
  345|   305k|            strides[num_extents - i - 1] = stride;
  346|   305k|            stride *= extents[num_extents - i - 1];
  347|   305k|        }
  348|   325k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (348:33): [True: 305k, False: 19.7k]
  ------------------
  349|   305k|        {
  350|   305k|            dimensions_[i].extent = extents[i];
  351|   305k|            dimensions_[i].stride = strides[i];
  352|   305k|            dimensions_[i].index = 0;
  353|   305k|            dimensions_[i].end = strides[i] * extents[i];
  354|   305k|        }
  355|  19.7k|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE5countEv:
  383|  1.29k|    {
  384|  1.29k|        return count_;
  385|  1.29k|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE4doneEv:
  378|  6.28M|    {
  379|  6.28M|        return done_;
  380|  6.28M|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS4_10error_codeE:
  389|  6.27M|    {
  390|  6.27M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  6.27M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 6.27M]
  |  |  ------------------
  |  |   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|  6.27M|        if (dim_ == 0)
  ------------------
  |  Branch (392:13): [True: 53.7k, False: 6.22M]
  ------------------
  393|  53.7k|        {
  394|  53.7k|            if (first_)
  ------------------
  |  Branch (394:17): [True: 19.7k, False: 33.9k]
  ------------------
  395|  19.7k|            {
  396|  19.7k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  397|  19.7k|                first_ = false;
  398|  19.7k|                return;
  399|  19.7k|            }
  400|  33.9k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (400:17): [True: 6.31k, False: 27.6k]
  ------------------
  401|  6.31k|            {
  402|  6.31k|                visitor.end_array(context, ec);
  403|  6.31k|                done_ = true;
  404|  6.31k|                return;
  405|  6.31k|            }
  406|  33.9k|        }
  407|  6.25M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (407:13): [True: 4.40M, False: 1.84M]
  |  Branch (407:44): [True: 2.76M, False: 1.63M]
  ------------------
  408|  2.76M|        {
  409|  2.76M|            if (!cursor_mode_)
  ------------------
  |  Branch (409:17): [True: 1.26M, False: 1.50M]
  ------------------
  410|  1.26M|            {
  411|  1.26M|                visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  412|  1.26M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.26M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.26M]
  |  |  ------------------
  ------------------
  413|      0|                {
  414|      0|                    return;
  415|      0|                }
  416|  1.26M|            }
  417|  2.76M|            ++dim_;
  418|  2.76M|            return;
  419|  2.76M|        }
  420|  3.48M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (420:13): [True: 952k, False: 2.52M]
  ------------------
  421|   952k|        {
  422|   952k|            parser_->read_item(visitor, ec);
  423|   952k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  424|   952k|            ++count_;
  425|   952k|            return;
  426|   952k|        }
  427|  2.52M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (427:13): [True: 2.52M, False: 0]
  ------------------
  428|  2.52M|        {
  429|  2.52M|            if (!cursor_mode_)
  ------------------
  |  Branch (429:17): [True: 1.16M, False: 1.36M]
  ------------------
  430|  1.16M|            {
  431|  1.16M|                visitor.end_array(context, ec);
  432|  1.16M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.16M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.16M]
  |  |  ------------------
  ------------------
  433|      0|                {
  434|      0|                    return;
  435|      0|                }
  436|  1.16M|            }
  437|  2.52M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.52M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.52M]
  |  |  ------------------
  ------------------
  438|      0|            {
  439|      0|                return;
  440|      0|            }
  441|  2.52M|            if (dim_ > 0)
  ------------------
  |  Branch (441:17): [True: 2.52M, False: 0]
  ------------------
  442|  2.52M|            {
  443|  2.52M|                --dim_;
  444|  2.52M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  445|  2.52M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (445:21): [True: 895k, False: 1.63M]
  ------------------
  446|   895k|                {
  447|  3.37M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (447:50): [True: 2.48M, False: 895k]
  ------------------
  448|  2.48M|                    {
  449|  2.48M|                        dimensions_[i].index = dimensions_[i-1].index;
  450|  2.48M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  451|  2.48M|                    }
  452|   895k|                }
  453|  2.52M|            }
  454|  2.52M|        }
  455|  2.52M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEEC2ERKNS4_6vectorImNS5_ImEEEEPNS0_17basic_cbor_parserIS3_S6_EEbRKS6_:
  478|  5.77k|        : extents_(extents,alloc), dimensions_(extents.size(), mdarray_dimension{},alloc),
  479|  5.77k|          parser_(parser), cursor_mode_(cursor_mode)
  480|  5.77k|    {
  481|  5.77k|        std::vector<std::size_t> strides(extents.size(), 0);
  482|  5.77k|        std::size_t stride = 1;
  483|  5.77k|        const size_t num_extents = extents.size();
  484|   856k|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (484:28): [True: 850k, False: 5.77k]
  ------------------
  485|   850k|        {
  486|   850k|            strides[num_extents - i - 1] = stride;
  487|   850k|            stride *= extents[num_extents - i - 1];
  488|   850k|        }
  489|   856k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (489:33): [True: 850k, False: 5.77k]
  ------------------
  490|   850k|        {
  491|   850k|            dimensions_[i].extent = extents[i];
  492|   850k|            dimensions_[i].stride = strides[i];
  493|   850k|            dimensions_[i].index = 0;
  494|   850k|            dimensions_[i].end = strides[i] * extents[i];
  495|   850k|        }
  496|  5.77k|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE5countEv:
  524|  1.31k|    {
  525|  1.31k|        return count_;
  526|  1.31k|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE4doneEv:
  519|  25.3M|    {
  520|  25.3M|        return done_;
  521|  25.3M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_12chars_sourceIhEENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS4_10error_codeE:
  530|  25.3M|    {
  531|  25.3M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  25.3M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 25.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 ))); }
  ------------------
  532|       |
  533|  25.3M|        if (dim_ == 0)
  ------------------
  |  Branch (533:13): [True: 17.7k, False: 25.3M]
  ------------------
  534|  17.7k|        {
  535|  17.7k|            if (first_)
  ------------------
  |  Branch (535:17): [True: 5.77k, False: 11.9k]
  ------------------
  536|  5.77k|            {
  537|  5.77k|                if (!cursor_mode_)
  ------------------
  |  Branch (537:21): [True: 2.74k, False: 3.02k]
  ------------------
  538|  2.74k|                {
  539|  2.74k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::multi_dim_column_major, context, ec);
  540|  2.74k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  541|  2.74k|                    for (auto item : dimensions_)
  ------------------
  |  Branch (541:36): [True: 5.64k, False: 2.74k]
  ------------------
  542|  5.64k|                    {
  543|  5.64k|                        visitor.uint64_value(item.extent, semantic_tag::none, context, ec);
  544|  5.64k|                    }
  545|  2.74k|                    visitor.end_array(context, ec);
  546|  2.74k|                }
  547|  5.77k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  548|  5.77k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.77k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.77k]
  |  |  ------------------
  ------------------
  549|      0|                {
  550|      0|                    return;
  551|      0|                }
  552|  5.77k|                first_ = false;
  553|  5.77k|                return;
  554|  5.77k|            }
  555|  11.9k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (555:17): [True: 1.32k, False: 10.6k]
  ------------------
  556|  1.32k|            {
  557|  1.32k|                visitor.end_array(context, ec);
  558|  1.32k|                if (!cursor_mode_)
  ------------------
  |  Branch (558:21): [True: 648, False: 672]
  ------------------
  559|    648|                {
  560|    648|                    visitor.end_array(context, ec);
  561|    648|                }
  562|  1.32k|                done_ = true;
  563|  1.32k|                return;
  564|  1.32k|            }
  565|  11.9k|        }
  566|  25.3M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (566:13): [True: 20.1M, False: 5.20M]
  |  Branch (566:44): [True: 11.6M, False: 8.47M]
  ------------------
  567|  11.6M|        {
  568|  11.6M|            ++dim_;
  569|  11.6M|            return;
  570|  11.6M|        }
  571|  13.6M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (571:13): [True: 2.86M, False: 10.8M]
  ------------------
  572|  2.86M|        {
  573|  2.86M|            parser_->read_item(visitor, ec);
  574|  2.86M|            dimensions_[dim_].index += dimensions_[dim_].stride;
  575|  2.86M|            ++count_;
  576|  2.86M|            return;
  577|  2.86M|        }
  578|  10.8M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (578:13): [True: 10.8M, False: 0]
  ------------------
  579|  10.8M|        {
  580|  10.8M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  10.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 10.8M]
  |  |  ------------------
  ------------------
  581|      0|            {
  582|      0|                return;
  583|      0|            }
  584|  10.8M|            if (dim_ > 0)
  ------------------
  |  Branch (584:17): [True: 10.8M, False: 0]
  ------------------
  585|  10.8M|            {
  586|  10.8M|                --dim_;
  587|  10.8M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  588|  10.8M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (588:21): [True: 2.34M, False: 8.47M]
  ------------------
  589|  2.34M|                {
  590|  13.1M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (590:50): [True: 10.8M, False: 2.34M]
  ------------------
  591|  10.8M|                    {
  592|  10.8M|                        dimensions_[i].index = dimensions_[i-1].index;
  593|  10.8M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  594|  10.8M|                    }
  595|  2.34M|                }
  596|  10.8M|            }
  597|  10.8M|        }
  598|  10.8M|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2ERKNS3_6vectorImNS4_ImEEEEPNS0_17basic_cbor_parserIS6_S7_EEbRKS7_:
  337|  29.4k|        : extents_(extents, alloc), dimensions_(extents.size(), mdarray_dimension{}, alloc),
  338|  29.4k|          parser_(parser), cursor_mode_(cursor_mode)
  339|  29.4k|    {
  340|  29.4k|        std::vector<std::size_t> strides(extents.size(), 0);
  341|  29.4k|        std::size_t stride = 1;
  342|  29.4k|        const size_t num_extents = extents.size();
  343|   487k|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (343:28): [True: 457k, False: 29.4k]
  ------------------
  344|   457k|        {
  345|   457k|            strides[num_extents - i - 1] = stride;
  346|   457k|            stride *= extents[num_extents - i - 1];
  347|   457k|        }
  348|   487k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (348:33): [True: 457k, False: 29.4k]
  ------------------
  349|   457k|        {
  350|   457k|            dimensions_[i].extent = extents[i];
  351|   457k|            dimensions_[i].stride = strides[i];
  352|   457k|            dimensions_[i].index = 0;
  353|   457k|            dimensions_[i].end = strides[i] * extents[i];
  354|   457k|        }
  355|  29.4k|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5countEv:
  383|  1.92k|    {
  384|  1.92k|        return count_;
  385|  1.92k|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  378|  9.38M|    {
  379|  9.38M|        return done_;
  380|  9.38M|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  389|  9.37M|    {
  390|  9.37M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  9.37M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 9.37M]
  |  |  ------------------
  |  |   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|  9.37M|        if (dim_ == 0)
  ------------------
  |  Branch (392:13): [True: 80.1k, False: 9.29M]
  ------------------
  393|  80.1k|        {
  394|  80.1k|            if (first_)
  ------------------
  |  Branch (394:17): [True: 29.4k, False: 50.6k]
  ------------------
  395|  29.4k|            {
  396|  29.4k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  397|  29.4k|                first_ = false;
  398|  29.4k|                return;
  399|  29.4k|            }
  400|  50.6k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (400:17): [True: 9.43k, False: 41.2k]
  ------------------
  401|  9.43k|            {
  402|  9.43k|                visitor.end_array(context, ec);
  403|  9.43k|                done_ = true;
  404|  9.43k|                return;
  405|  9.43k|            }
  406|  50.6k|        }
  407|  9.34M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (407:13): [True: 6.58M, False: 2.75M]
  |  Branch (407:44): [True: 4.13M, False: 2.44M]
  ------------------
  408|  4.13M|        {
  409|  4.13M|            if (!cursor_mode_)
  ------------------
  |  Branch (409:17): [True: 2.74M, False: 1.39M]
  ------------------
  410|  2.74M|            {
  411|  2.74M|                visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  412|  2.74M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.74M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.74M]
  |  |  ------------------
  ------------------
  413|      0|                {
  414|      0|                    return;
  415|      0|                }
  416|  2.74M|            }
  417|  4.13M|            ++dim_;
  418|  4.13M|            return;
  419|  4.13M|        }
  420|  5.20M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (420:13): [True: 1.42M, False: 3.77M]
  ------------------
  421|  1.42M|        {
  422|  1.42M|            parser_->read_item(visitor, ec);
  423|  1.42M|            dimensions_[dim_].index += dimensions_[dim_].stride;
  424|  1.42M|            ++count_;
  425|  1.42M|            return;
  426|  1.42M|        }
  427|  3.77M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (427:13): [True: 3.77M, False: 0]
  ------------------
  428|  3.77M|        {
  429|  3.77M|            if (!cursor_mode_)
  ------------------
  |  Branch (429:17): [True: 2.50M, False: 1.27M]
  ------------------
  430|  2.50M|            {
  431|  2.50M|                visitor.end_array(context, ec);
  432|  2.50M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.50M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.50M]
  |  |  ------------------
  ------------------
  433|      0|                {
  434|      0|                    return;
  435|      0|                }
  436|  2.50M|            }
  437|  3.77M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.77M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.77M]
  |  |  ------------------
  ------------------
  438|      0|            {
  439|      0|                return;
  440|      0|            }
  441|  3.77M|            if (dim_ > 0)
  ------------------
  |  Branch (441:17): [True: 3.77M, False: 0]
  ------------------
  442|  3.77M|            {
  443|  3.77M|                --dim_;
  444|  3.77M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  445|  3.77M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (445:21): [True: 1.33M, False: 2.44M]
  ------------------
  446|  1.33M|                {
  447|  5.04M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (447:50): [True: 3.71M, False: 1.33M]
  ------------------
  448|  3.71M|                    {
  449|  3.71M|                        dimensions_[i].index = dimensions_[i-1].index;
  450|  3.71M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  451|  3.71M|                    }
  452|  1.33M|                }
  453|  3.77M|            }
  454|  3.77M|        }
  455|  3.77M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2ERKNS3_6vectorImNS4_ImEEEEPNS0_17basic_cbor_parserIS6_S7_EEbRKS7_:
  478|  8.62k|        : extents_(extents,alloc), dimensions_(extents.size(), mdarray_dimension{},alloc),
  479|  8.62k|          parser_(parser), cursor_mode_(cursor_mode)
  480|  8.62k|    {
  481|  8.62k|        std::vector<std::size_t> strides(extents.size(), 0);
  482|  8.62k|        std::size_t stride = 1;
  483|  8.62k|        const size_t num_extents = extents.size();
  484|  1.28M|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (484:28): [True: 1.27M, False: 8.62k]
  ------------------
  485|  1.27M|        {
  486|  1.27M|            strides[num_extents - i - 1] = stride;
  487|  1.27M|            stride *= extents[num_extents - i - 1];
  488|  1.27M|        }
  489|  1.28M|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (489:33): [True: 1.27M, False: 8.62k]
  ------------------
  490|  1.27M|        {
  491|  1.27M|            dimensions_[i].extent = extents[i];
  492|  1.27M|            dimensions_[i].stride = strides[i];
  493|  1.27M|            dimensions_[i].index = 0;
  494|  1.27M|            dimensions_[i].end = strides[i] * extents[i];
  495|  1.27M|        }
  496|  8.62k|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5countEv:
  524|  1.96k|    {
  525|  1.96k|        return count_;
  526|  1.96k|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  519|  37.7M|    {
  520|  37.7M|        return done_;
  521|  37.7M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  530|  37.7M|    {
  531|  37.7M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   54|  37.7M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (54:32): [True: 0, False: 37.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 ))); }
  ------------------
  532|       |
  533|  37.7M|        if (dim_ == 0)
  ------------------
  |  Branch (533:13): [True: 26.4k, False: 37.7M]
  ------------------
  534|  26.4k|        {
  535|  26.4k|            if (first_)
  ------------------
  |  Branch (535:17): [True: 8.62k, False: 17.8k]
  ------------------
  536|  8.62k|            {
  537|  8.62k|                if (!cursor_mode_)
  ------------------
  |  Branch (537:21): [True: 5.70k, False: 2.91k]
  ------------------
  538|  5.70k|                {
  539|  5.70k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::multi_dim_column_major, context, ec);
  540|  5.70k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  541|  5.70k|                    for (auto item : dimensions_)
  ------------------
  |  Branch (541:36): [True: 850k, False: 5.70k]
  ------------------
  542|   850k|                    {
  543|   850k|                        visitor.uint64_value(item.extent, semantic_tag::none, context, ec);
  544|   850k|                    }
  545|  5.70k|                    visitor.end_array(context, ec);
  546|  5.70k|                }
  547|  8.62k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  548|  8.62k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.62k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.62k]
  |  |  ------------------
  ------------------
  549|      0|                {
  550|      0|                    return;
  551|      0|                }
  552|  8.62k|                first_ = false;
  553|  8.62k|                return;
  554|  8.62k|            }
  555|  17.8k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (555:17): [True: 1.97k, False: 15.8k]
  ------------------
  556|  1.97k|            {
  557|  1.97k|                visitor.end_array(context, ec);
  558|  1.97k|                if (!cursor_mode_)
  ------------------
  |  Branch (558:21): [True: 1.30k, False: 666]
  ------------------
  559|  1.30k|                {
  560|  1.30k|                    visitor.end_array(context, ec);
  561|  1.30k|                }
  562|  1.97k|                done_ = true;
  563|  1.97k|                return;
  564|  1.97k|            }
  565|  17.8k|        }
  566|  37.7M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (566:13): [True: 29.9M, False: 7.76M]
  |  Branch (566:44): [True: 17.3M, False: 12.6M]
  ------------------
  567|  17.3M|        {
  568|  17.3M|            ++dim_;
  569|  17.3M|            return;
  570|  17.3M|        }
  571|  20.3M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (571:13): [True: 4.27M, False: 16.0M]
  ------------------
  572|  4.27M|        {
  573|  4.27M|            parser_->read_item(visitor, ec);
  574|  4.27M|            dimensions_[dim_].index += dimensions_[dim_].stride;
  575|  4.27M|            ++count_;
  576|  4.27M|            return;
  577|  4.27M|        }
  578|  16.0M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (578:13): [True: 16.0M, False: 0]
  ------------------
  579|  16.0M|        {
  580|  16.0M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  16.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 16.0M]
  |  |  ------------------
  ------------------
  581|      0|            {
  582|      0|                return;
  583|      0|            }
  584|  16.0M|            if (dim_ > 0)
  ------------------
  |  Branch (584:17): [True: 16.0M, False: 0]
  ------------------
  585|  16.0M|            {
  586|  16.0M|                --dim_;
  587|  16.0M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  588|  16.0M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (588:21): [True: 3.49M, False: 12.6M]
  ------------------
  589|  3.49M|                {
  590|  19.5M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (590:50): [True: 16.0M, False: 3.49M]
  ------------------
  591|  16.0M|                    {
  592|  16.0M|                        dimensions_[i].index = dimensions_[i-1].index;
  593|  16.0M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  594|  16.0M|                    }
  595|  3.49M|                }
  596|  16.0M|            }
  597|  16.0M|        }
  598|  16.0M|    }

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

