LLVMFuzzerTestOneInput:
   12|  11.0k|{
   13|  11.0k|        std::string input(reinterpret_cast<const char*>(data), size);
   14|  11.0k|        std::istringstream is(input);
   15|  11.0k|        try {
   16|  11.0k|                json j2 = decode_cbor<json>(is);
   17|  11.0k|        }
   18|  11.0k|        catch(const jsoncons::ser_error&) {}
   19|  11.0k|        catch(jsoncons::json_runtime_error<std::runtime_error> e2) {}
   20|       |
   21|  11.0k|        return 0;
   22|  11.0k|}

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

_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEED2Ev:
 2769|   130M|        {
 2770|   130M|             destroy();
 2771|   130M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE7destroyEv:
  893|   130M|        {
  894|   130M|            switch (storage_kind())
  895|   130M|            {
  896|  17.7k|                case json_storage_kind::long_str:
  ------------------
  |  Branch (896:17): [True: 17.7k, False: 130M]
  ------------------
  897|  17.7k|                {
  898|  17.7k|                    if (cast<long_string_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (898:25): [True: 17.7k, False: 0]
  ------------------
  899|  17.7k|                    {
  900|  17.7k|                        long_string_storage::heap_string_factory_type::destroy(cast<long_string_storage>().ptr_);
  901|  17.7k|                    }
  902|  17.7k|                    break;
  903|      0|                }
  904|  4.84M|                case json_storage_kind::byte_str:
  ------------------
  |  Branch (904:17): [True: 4.84M, False: 125M]
  ------------------
  905|  4.84M|                    if (cast<byte_string_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (905:25): [True: 4.84M, False: 0]
  ------------------
  906|  4.84M|                    {
  907|  4.84M|                        byte_string_storage::heap_string_factory_type::destroy(cast<byte_string_storage>().ptr_);
  908|  4.84M|                    }
  909|  4.84M|                    break;
  910|   296k|                case json_storage_kind::array:
  ------------------
  |  Branch (910:17): [True: 296k, False: 130M]
  ------------------
  911|   296k|                {
  912|   296k|                    if (cast<array_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (912:25): [True: 296k, False: 0]
  ------------------
  913|   296k|                    {
  914|   296k|                        auto& stor = cast<array_storage>();
  915|   296k|                        typename array_storage::allocator_type alloc{stor.ptr_->get_allocator()};
  916|   296k|                        std::allocator_traits<typename array_storage::allocator_type>::destroy(alloc, ext_traits::to_plain_pointer(stor.ptr_));
  917|   296k|                        std::allocator_traits<typename array_storage::allocator_type>::deallocate(alloc, stor.ptr_,1);
  918|   296k|                    }
  919|   296k|                    break;
  920|      0|                }
  921|  9.62M|                case json_storage_kind::object:
  ------------------
  |  Branch (921:17): [True: 9.62M, False: 121M]
  ------------------
  922|  9.62M|                {
  923|  9.62M|                    if (cast<object_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (923:25): [True: 9.62M, False: 0]
  ------------------
  924|  9.62M|                    {
  925|  9.62M|                        auto& stor = cast<object_storage>();
  926|  9.62M|                        typename object_storage::allocator_type alloc{stor.ptr_->get_allocator()};
  927|  9.62M|                        std::allocator_traits<typename object_storage::allocator_type>::destroy(alloc, ext_traits::to_plain_pointer(stor.ptr_));
  928|  9.62M|                        std::allocator_traits<typename object_storage::allocator_type>::deallocate(alloc, stor.ptr_,1);
  929|  9.62M|                    }
  930|  9.62M|                    break;
  931|      0|                }
  932|   116M|                default:
  ------------------
  |  Branch (932:17): [True: 116M, False: 14.7M]
  ------------------
  933|   116M|                    break;
  934|   130M|            }
  935|   130M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12storage_kindEv:
 1457|   420M|        {
 1458|       |            // It is legal to access 'common_.storage_kind_' even though 
 1459|       |            // common_ is not the active member of the union because 'storage_kind_' 
 1460|       |            // is a part of the common initial sequence of all union members
 1461|       |            // as defined in 11.4-25 of the Standard.
 1462|   420M|            return static_cast<json_storage_kind>(common_.storage_kind_);
 1463|   420M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_19long_string_storageEEERT_v:
  999|   161k|        {
 1000|   161k|            return cast(identity<T>());
 1001|   161k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_19long_string_storageEEE:
 1090|   161k|        {
 1091|   161k|            return long_str_;
 1092|   161k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_19byte_string_storageEEERT_v:
  999|  37.0M|        {
 1000|  37.0M|            return cast(identity<T>());
 1001|  37.0M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_19byte_string_storageEEE:
 1100|  37.0M|        {
 1101|  37.0M|            return byte_str_;
 1102|  37.0M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13array_storageEEERT_v:
  999|  20.0M|        {
 1000|  20.0M|            return cast(identity<T>());
 1001|  20.0M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13array_storageEEE:
 1120|  20.0M|        {
 1121|  20.0M|            return array_;
 1122|  20.0M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EOS5_:
 2302|  92.4M|        {
 2303|  92.4M|            uninitialized_move(std::move(other));
 2304|  92.4M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18uninitialized_moveEOS5_:
 1297|  92.4M|        {
 1298|  92.4M|            if (is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1298:17): [True: 46.4M, False: 45.9M]
  ------------------
 1299|  46.4M|            {
 1300|  46.4M|                std::memcpy(static_cast<void*>(this), &other, sizeof(basic_json));
 1301|  46.4M|            }
 1302|  45.9M|            else
 1303|  45.9M|            {
 1304|  45.9M|                switch (other.storage_kind())
 1305|  45.9M|                {
 1306|  35.8k|                    case json_storage_kind::long_str:
  ------------------
  |  Branch (1306:21): [True: 35.8k, False: 45.9M]
  ------------------
 1307|  35.8k|                        construct<long_string_storage>(other.cast<long_string_storage>());
 1308|  35.8k|                        other.construct<null_storage>();
 1309|  35.8k|                        break;
 1310|  8.19M|                    case json_storage_kind::byte_str:
  ------------------
  |  Branch (1310:21): [True: 8.19M, False: 37.7M]
  ------------------
 1311|  8.19M|                        construct<byte_string_storage>(other.cast<byte_string_storage>());
 1312|  8.19M|                        other.construct<null_storage>();
 1313|  8.19M|                        break;
 1314|   817k|                    case json_storage_kind::array:
  ------------------
  |  Branch (1314:21): [True: 817k, False: 45.1M]
  ------------------
 1315|   817k|                        construct<array_storage>(other.cast<array_storage>());
 1316|   817k|                        other.construct<null_storage>();
 1317|   817k|                        break;
 1318|  36.9M|                    case json_storage_kind::object:
  ------------------
  |  Branch (1318:21): [True: 36.9M, False: 9.04M]
  ------------------
 1319|  36.9M|                        construct<object_storage>(other.cast<object_storage>());
 1320|  36.9M|                        other.construct<null_storage>();
 1321|  36.9M|                        break;
 1322|      0|                    default:
  ------------------
  |  Branch (1322:21): [True: 0, False: 45.9M]
  ------------------
 1323|      0|                        JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1324|      0|                        break;
 1325|  45.9M|                }
 1326|  45.9M|            }
 1327|  92.4M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19long_string_storageEJRS7_EEEvDpOT0_:
  990|  53.9k|        {
  991|  53.9k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  53.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19long_string_storageC2ERKS6_:
  621|  72.1k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  622|  72.1k|            {
  623|  72.1k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJEEEvDpOT0_:
  990|  45.9M|        {
  991|  45.9M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  45.9M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12null_storageEEERT_v:
  999|  75.4M|        {
 1000|  75.4M|            return cast(identity<T>());
 1001|  75.4M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12null_storageEEE:
 1010|  75.4M|        {
 1011|  75.4M|            return null_;
 1012|  75.4M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12null_storageC2ENS_12semantic_tagE:
  445|  46.6M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::null)), short_str_length_(0), tag_(tag)
  446|  46.6M|            {
  447|  46.6M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRS7_EEEvDpOT0_:
  990|  11.2M|        {
  991|  11.2M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  11.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19byte_string_storageC2ERKS6_:
  670|  14.3M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  671|  14.3M|            {
  672|  14.3M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13array_storageEJRS7_EEEvDpOT0_:
  990|  1.36M|        {
  991|  1.36M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  1.36M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storageC2ERKS6_:
  722|  1.90M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  723|  1.90M|            {
  724|  1.90M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14object_storageEJRS7_EEEvDpOT0_:
  990|  48.0M|        {
  991|  48.0M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  48.0M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storageC2ERKS6_:
  772|  59.0M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  773|  59.0M|            {
  774|  59.0M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE11array_rangeEv:
 4754|  70.4k|        {
 4755|  70.4k|            switch (storage_kind())
 4756|  70.4k|            {
 4757|  70.4k|                case json_storage_kind::array:
  ------------------
  |  Branch (4757:17): [True: 70.4k, False: 0]
  ------------------
 4758|  70.4k|                    return array_range_type(cast<array_storage>().value().begin(),
 4759|  70.4k|                        cast<array_storage>().value().end());
 4760|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4760:17): [True: 0, False: 70.4k]
  ------------------
 4761|      0|                    return cast<json_ref_storage>().value().array_range();
 4762|      0|                default:
  ------------------
  |  Branch (4762:17): [True: 0, False: 70.4k]
  ------------------
 4763|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an array"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4764|  70.4k|            }
 4765|  70.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storage5valueEv:
  745|  16.4M|            {
  746|  16.4M|                return *ptr_;
  747|  16.4M|            }
_ZN8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEEC2ERKS9_SF_:
  343|  70.4k|            : first_(first), last_(last)
  344|  70.4k|        {
  345|  70.4k|        }
_ZNK8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEE5beginEv:
  348|  70.4k|        {
  349|  70.4k|            return first_;
  350|  70.4k|        }
_ZNK8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEE3endEv:
  352|  70.4k|        {
  353|  70.4k|            return last_;
  354|  70.4k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE5emptyEv:
 3420|  38.8k|        {
 3421|  38.8k|            switch (storage_kind())
 3422|  38.8k|            {
 3423|      0|                case json_storage_kind::byte_str:
  ------------------
  |  Branch (3423:17): [True: 0, False: 38.8k]
  ------------------
 3424|      0|                    return cast<byte_string_storage>().length() == 0;
 3425|      0|                    break;
 3426|      0|                case json_storage_kind::short_str:
  ------------------
  |  Branch (3426:17): [True: 0, False: 38.8k]
  ------------------
 3427|      0|                    return cast<short_string_storage>().length() == 0;
 3428|      0|                case json_storage_kind::long_str:
  ------------------
  |  Branch (3428:17): [True: 0, False: 38.8k]
  ------------------
 3429|      0|                    return cast<long_string_storage>().length() == 0;
 3430|  23.7k|                case json_storage_kind::array:
  ------------------
  |  Branch (3430:17): [True: 23.7k, False: 15.0k]
  ------------------
 3431|  23.7k|                    return cast<array_storage>().value().empty();
 3432|      0|                case json_storage_kind::empty_object:
  ------------------
  |  Branch (3432:17): [True: 0, False: 38.8k]
  ------------------
 3433|      0|                    return true;
 3434|  15.0k|                case json_storage_kind::object:
  ------------------
  |  Branch (3434:17): [True: 15.0k, False: 23.7k]
  ------------------
 3435|  15.0k|                    return cast<object_storage>().value().empty();
 3436|      0|                case json_storage_kind::const_json_ref:
  ------------------
  |  Branch (3436:17): [True: 0, False: 38.8k]
  ------------------
 3437|      0|                    return cast<const_json_ref_storage>().value().empty();
 3438|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (3438:17): [True: 0, False: 38.8k]
  ------------------
 3439|      0|                    return cast<json_ref_storage>().value().empty();
 3440|      0|                default:
  ------------------
  |  Branch (3440:17): [True: 0, False: 38.8k]
  ------------------
 3441|      0|                    return false;
 3442|  38.8k|            }
 3443|  38.8k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13array_storageEEERKT_v:
 1005|  23.7k|        {
 1006|  23.7k|            return cast(identity<T>());
 1007|  23.7k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13array_storageEEE:
 1125|  23.7k|        {
 1126|  23.7k|            return array_;
 1127|  23.7k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storage5valueEv:
  750|  23.7k|            {
  751|  23.7k|                return *ptr_;
  752|  23.7k|            }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14object_storageEEERKT_v:
 1005|  15.0k|        {
 1006|  15.0k|            return cast(identity<T>());
 1007|  15.0k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14object_storageEEE:
 1115|  15.0k|        {
 1116|  15.0k|            return object_;
 1117|  15.0k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storage5valueEv:
  796|  15.0k|            {
  797|  15.0k|                JSONCONS_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   49|  15.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 15.0k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  798|  15.0k|                return *ptr_;
  799|  15.0k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE5clearEv:
 4151|  5.41M|        {
 4152|  5.41M|            switch (storage_kind())
 4153|  5.41M|            {
 4154|  70.4k|                case json_storage_kind::array:
  ------------------
  |  Branch (4154:17): [True: 70.4k, False: 5.34M]
  ------------------
 4155|  70.4k|                    cast<array_storage>().value().clear();
 4156|  70.4k|                    break;
 4157|  5.34M|                case json_storage_kind::object:
  ------------------
  |  Branch (4157:17): [True: 5.34M, False: 70.4k]
  ------------------
 4158|  5.34M|                    cast<object_storage>().value().clear();
 4159|  5.34M|                    break;
 4160|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4160:17): [True: 0, False: 5.41M]
  ------------------
 4161|      0|                    cast<json_ref_storage>().value().clear();
 4162|      0|                    break;
 4163|      0|                default:
  ------------------
  |  Branch (4163:17): [True: 0, False: 5.41M]
  ------------------
 4164|      0|                    break;
 4165|  5.41M|            }
 4166|  5.41M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storage5valueEv:
  790|  16.0M|            {
  791|  16.0M|                JSONCONS_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   49|  16.0M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 16.0M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  792|  16.0M|                return *ptr_;
  793|  16.0M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12object_rangeEv:
 4720|  5.34M|        {
 4721|  5.34M|            switch (storage_kind())
 4722|  5.34M|            {
 4723|      0|                case json_storage_kind::empty_object:
  ------------------
  |  Branch (4723:17): [True: 0, False: 5.34M]
  ------------------
 4724|      0|                    return object_range_type(object_iterator(), object_iterator());
 4725|  5.34M|                case json_storage_kind::object:
  ------------------
  |  Branch (4725:17): [True: 5.34M, False: 0]
  ------------------
 4726|  5.34M|                    return object_range_type(object_iterator(cast<object_storage>().value().begin()),
 4727|  5.34M|                                                  object_iterator(cast<object_storage>().value().end()));
 4728|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4728:17): [True: 0, False: 5.34M]
  ------------------
 4729|      0|                    return cast<json_ref_storage>().value().object_range();
 4730|      0|                default:
  ------------------
  |  Branch (4730:17): [True: 0, False: 5.34M]
  ------------------
 4731|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an object"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4732|  5.34M|            }
 4733|  5.34M|        }
_ZN8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEEC2ERKSI_SP_:
  343|  5.34M|            : first_(first), last_(last)
  344|  5.34M|        {
  345|  5.34M|        }
_ZN8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEC2ESG_:
  118|  10.6M|            explicit json_object_iterator_adaptor(Iterator ptr) : current_(ptr), has_value_(true)  
  119|  10.6M|            {
  120|  10.6M|            }
_ZNK8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEE5beginEv:
  348|  5.34M|        {
  349|  5.34M|            return first_;
  350|  5.34M|        }
_ZNK8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEE3endEv:
  352|  5.34M|        {
  353|  5.34M|            return last_;
  354|  5.34M|        }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEneERKSH_:
  218|  5.36M|            {
  219|  5.36M|                return !(*this == rhs);
  220|  5.36M|            }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEeqERKSH_:
  209|  5.36M|            {
  210|  5.36M|                if (JSONCONS_LIKELY(has_value_ && rhs.has_value_))
  ------------------
  |  |   77|  10.7M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 5.36M, False: 0]
  |  |  |  Branch (77:48): [True: 5.36M, False: 0]
  |  |  |  Branch (77:48): [True: 5.36M, False: 0]
  |  |  ------------------
  ------------------
  211|  5.36M|                {
  212|  5.36M|                    return current_ == rhs.current_;
  213|  5.36M|                }
  214|      0|                return !has_value_ && !rhs.has_value_;
  ------------------
  |  Branch (214:24): [True: 0, False: 0]
  |  Branch (214:39): [True: 0, False: 0]
  ------------------
  215|  5.36M|            }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEdeEv:
  140|  18.5k|            {
  141|  18.5k|                return *current_;
  142|  18.5k|            }
_ZN8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEppEv:
  150|  18.5k|            {
  151|  18.5k|                ++current_;
  152|  18.5k|                return *this;
  153|  18.5k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14object_storageEEERT_v:
  999|   140M|        {
 1000|   140M|            return cast(identity<T>());
 1001|   140M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14object_storageEEE:
 1110|   140M|        {
 1111|   140M|            return object_;
 1112|   140M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2Ev:
 2270|  11.0k|        {
 2271|  11.0k|            construct<empty_object_storage>(semantic_tag::none);
 2272|  11.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20empty_object_storageEJNS_12semantic_tagEEEEvDpOT0_:
  990|  11.0k|        {
  991|  11.0k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  11.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_20empty_object_storageEEERT_v:
  999|  15.9k|        {
 1000|  15.9k|            return cast(identity<T>());
 1001|  15.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_20empty_object_storageEEE:
 1020|  15.9k|        {
 1021|  15.9k|            return empty_object_;
 1022|  15.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20empty_object_storageC2ENS_12semantic_tagE:
  457|  11.0k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::empty_object)), short_str_length_(0), tag_(tag)
  458|  11.0k|            {
  459|  11.0k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE7reserveEm:
 3479|  68.1k|        {
 3480|  68.1k|            if (n > 0)
  ------------------
  |  Branch (3480:17): [True: 68.1k, False: 0]
  ------------------
 3481|  68.1k|            {
 3482|  68.1k|                switch (storage_kind())
 3483|  68.1k|                {
 3484|  68.1k|                    case json_storage_kind::array:
  ------------------
  |  Branch (3484:21): [True: 68.1k, False: 0]
  ------------------
 3485|  68.1k|                        cast<array_storage>().value().reserve(n);
 3486|  68.1k|                        break;
 3487|      0|                    case json_storage_kind::empty_object:
  ------------------
  |  Branch (3487:21): [True: 0, False: 68.1k]
  ------------------
 3488|      0|                        create_object_implicitly();
 3489|      0|                        cast<object_storage>().value().reserve(n);
 3490|      0|                        break;
 3491|      0|                    case json_storage_kind::object:
  ------------------
  |  Branch (3491:21): [True: 0, False: 68.1k]
  ------------------
 3492|      0|                        cast<object_storage>().value().reserve(n);
 3493|      0|                        break;
 3494|      0|                    case json_storage_kind::json_ref:
  ------------------
  |  Branch (3494:21): [True: 0, False: 68.1k]
  ------------------
 3495|      0|                        cast<json_ref_storage>().value().reserve(n);
 3496|      0|                        break;
 3497|      0|                    default:
  ------------------
  |  Branch (3497:21): [True: 0, False: 68.1k]
  ------------------
 3498|      0|                        break;
 3499|  68.1k|                }
 3500|  68.1k|            }
 3501|  68.1k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_17json_object_arg_tENS_12semantic_tagERKS4_:
 2315|  9.62M|        {
 2316|  9.62M|            auto ptr = create_object(alloc);
 2317|  9.62M|            construct<object_storage>(ptr, tag);
 2318|  9.62M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13create_objectIJEEEPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEERKS4_DpOT_:
  971|  9.62M|        {
  972|  9.62M|            using stor_allocator_type = typename object_storage::allocator_type;
  973|  9.62M|            stor_allocator_type stor_alloc(alloc);
  974|  9.62M|            auto ptr = std::allocator_traits<stor_allocator_type>::allocate(stor_alloc, 1);
  975|  9.62M|            JSONCONS_TRY
  ------------------
  |  |   37|  9.62M|    #define JSONCONS_TRY try
  ------------------
  976|  9.62M|            {
  977|  9.62M|                std::allocator_traits<stor_allocator_type>::construct(stor_alloc, ext_traits::to_plain_pointer(ptr), 
  978|  9.62M|                    std::forward<Args>(args)...);
  979|  9.62M|            }
  980|  9.62M|            JSONCONS_CATCH(...)
  981|  9.62M|            {
  982|      0|                std::allocator_traits<stor_allocator_type>::deallocate(stor_alloc, ptr,1);
  983|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  984|      0|            }
  985|  9.62M|            return ptr;
  986|  9.62M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14object_storageEJRPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEERNS_12semantic_tagEEEEvDpOT0_:
  990|  9.62M|        {
  991|  9.62M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  9.62M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storageC2EPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEENS_12semantic_tagE:
  767|  9.62M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::object)), short_str_length_(0), tag_(tag), ptr_(ptr)
  768|  9.62M|            {
  769|  9.62M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9push_backEOS5_:
 4696|  16.1M|        {
 4697|  16.1M|            switch (storage_kind())
 4698|  16.1M|            {
 4699|  16.1M|                case json_storage_kind::array:
  ------------------
  |  Branch (4699:17): [True: 16.1M, False: 0]
  ------------------
 4700|  16.1M|                    cast<array_storage>().value().push_back(std::move(val));
 4701|  16.1M|                    break;
 4702|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4702:17): [True: 0, False: 16.1M]
  ------------------
 4703|      0|                    cast<json_ref_storage>().value().push_back(std::move(val));
 4704|      0|                    break;
 4705|      0|                default:
  ------------------
  |  Branch (4705:17): [True: 0, False: 16.1M]
  ------------------
 4706|      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
  ------------------
 4707|  16.1M|            }
 4708|  16.1M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEaSEOS5_:
 1448|  24.2M|        {
 1449|  24.2M|            if (this != &other)
  ------------------
  |  Branch (1449:17): [True: 24.2M, False: 0]
  ------------------
 1450|  24.2M|            {
 1451|  24.2M|                move_assignment(std::move(other));
 1452|  24.2M|            }
 1453|  24.2M|            return *this;
 1454|  24.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE15move_assignmentEOS5_:
 1410|  24.2M|        {
 1411|  24.2M|            if (is_trivial_storage(storage_kind()) && is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1411:17): [True: 24.2M, False: 0]
  |  Branch (1411:55): [True: 9.48M, False: 14.7M]
  ------------------
 1412|  9.48M|            {
 1413|  9.48M|                std::memcpy(static_cast<void*>(this), &other, sizeof(basic_json));
 1414|  9.48M|            }
 1415|  14.7M|            else
 1416|  14.7M|            {
 1417|  14.7M|                swap(other);
 1418|  14.7M|            }
 1419|  24.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4swapERS5_:
 1929|  14.7M|        {
 1930|  14.7M|            if (this == &other)
  ------------------
  |  Branch (1930:17): [True: 0, False: 14.7M]
  ------------------
 1931|      0|            {
 1932|      0|                return;
 1933|      0|            }
 1934|  14.7M|            if (is_trivial_storage(storage_kind()) && is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1934:17): [True: 14.7M, False: 0]
  |  Branch (1934:55): [True: 0, False: 14.7M]
  ------------------
 1935|      0|            {
 1936|      0|                basic_json temp;               
 1937|      0|                std::memcpy(static_cast<void*>(&temp), static_cast<void*>(&other), sizeof(basic_json));
 1938|      0|                std::memcpy(static_cast<void*>(&other), static_cast<void*>(this), sizeof(basic_json));
 1939|      0|                std::memcpy(static_cast<void*>(this), static_cast<void*>(&temp), sizeof(basic_json));
 1940|      0|            }
 1941|  14.7M|            else
 1942|  14.7M|            {
 1943|  14.7M|                switch (storage_kind())
 1944|  14.7M|                {
 1945|  14.3M|                    case json_storage_kind::null: swap_l<null_storage>(other); break;
  ------------------
  |  Branch (1945:21): [True: 14.3M, False: 361k]
  ------------------
 1946|  2.44k|                    case json_storage_kind::empty_object : swap_l<empty_object_storage>(other); break;
  ------------------
  |  Branch (1946:21): [True: 2.44k, False: 14.7M]
  ------------------
 1947|  29.5k|                    case json_storage_kind::boolean: swap_l<bool_storage>(other); break;
  ------------------
  |  Branch (1947:21): [True: 29.5k, False: 14.6M]
  ------------------
 1948|  70.7k|                    case json_storage_kind::int64: swap_l<int64_storage>(other); break;
  ------------------
  |  Branch (1948:21): [True: 70.7k, False: 14.6M]
  ------------------
 1949|   168k|                    case json_storage_kind::uint64: swap_l<uint64_storage>(other); break;
  ------------------
  |  Branch (1949:21): [True: 168k, False: 14.5M]
  ------------------
 1950|  1.12k|                    case json_storage_kind::half_float: swap_l<half_storage>(other); break;
  ------------------
  |  Branch (1950:21): [True: 1.12k, False: 14.7M]
  ------------------
 1951|  1.85k|                    case json_storage_kind::float64: swap_l<double_storage>(other); break;
  ------------------
  |  Branch (1951:21): [True: 1.85k, False: 14.7M]
  ------------------
 1952|  88.0k|                    case json_storage_kind::short_str: swap_l<short_string_storage>(other); break;
  ------------------
  |  Branch (1952:21): [True: 88.0k, False: 14.6M]
  ------------------
 1953|      0|                    case json_storage_kind::long_str: swap_l<long_string_storage>(other); break;
  ------------------
  |  Branch (1953:21): [True: 0, False: 14.7M]
  ------------------
 1954|      0|                    case json_storage_kind::byte_str: swap_l<byte_string_storage>(other); break;
  ------------------
  |  Branch (1954:21): [True: 0, False: 14.7M]
  ------------------
 1955|      0|                    case json_storage_kind::array: swap_l<array_storage>(other); break;
  ------------------
  |  Branch (1955:21): [True: 0, False: 14.7M]
  ------------------
 1956|      0|                    case json_storage_kind::object: swap_l<object_storage>(other); break;
  ------------------
  |  Branch (1956:21): [True: 0, False: 14.7M]
  ------------------
 1957|      0|                    case json_storage_kind::const_json_ref: swap_l<const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1957:21): [True: 0, False: 14.7M]
  ------------------
 1958|      0|                    case json_storage_kind::json_ref: swap_l<json_ref_storage>(other); break;
  ------------------
  |  Branch (1958:21): [True: 0, False: 14.7M]
  ------------------
 1959|      0|                    default:
  ------------------
  |  Branch (1959:21): [True: 0, False: 14.7M]
  ------------------
 1960|      0|                        JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1961|      0|                        break;
 1962|  14.7M|                }
 1963|  14.7M|            }
 1964|  14.7M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12null_storageEEEvRS5_:
 1165|  14.3M|        {
 1166|  14.3M|            switch (other.storage_kind())
 1167|  14.3M|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 14.3M]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 14.3M]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 14.3M]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 14.3M]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 14.3M]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 14.3M]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 14.3M]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 14.3M]
  ------------------
 1176|  9.53k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 9.53k, False: 14.3M]
  ------------------
 1177|  2.89M|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 2.89M, False: 11.4M]
  ------------------
 1178|   438k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 438k, False: 13.9M]
  ------------------
 1179|  11.0M|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 11.0M, False: 3.33M]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 14.3M]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 14.3M]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 14.3M]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  14.3M|            }
 1186|  14.3M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJRS7_EEEvDpOT0_:
  990|  14.3M|        {
  991|  14.3M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  14.3M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20empty_object_storageEJRS7_EEEvDpOT0_:
  990|  2.44k|        {
  991|  2.44k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  2.44k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12bool_storageEEERT_v:
  999|  2.43M|        {
 1000|  2.43M|            return cast(identity<T>());
 1001|  2.43M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12bool_storageEEE:
 1030|  2.43M|        {
 1031|  2.43M|            return boolean_;
 1032|  2.43M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12bool_storageEJRS7_EEEvDpOT0_:
  990|  29.5k|        {
  991|  29.5k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  29.5k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13int64_storageEEERT_v:
  999|  4.44M|        {
 1000|  4.44M|            return cast(identity<T>());
 1001|  4.44M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13int64_storageEEE:
 1040|  4.44M|        {
 1041|  4.44M|            return int64_;
 1042|  4.44M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13int64_storageEJRS7_EEEvDpOT0_:
  990|  70.7k|        {
  991|  70.7k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  70.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14uint64_storageEEERT_v:
  999|  8.40M|        {
 1000|  8.40M|            return cast(identity<T>());
 1001|  8.40M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14uint64_storageEEE:
 1050|  8.40M|        {
 1051|  8.40M|            return uint64_;
 1052|  8.40M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14uint64_storageEJRS7_EEEvDpOT0_:
  990|   168k|        {
  991|   168k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|   168k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12half_storageEEERT_v:
  999|  13.0k|        {
 1000|  13.0k|            return cast(identity<T>());
 1001|  13.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12half_storageEEE:
 1060|  13.0k|        {
 1061|  13.0k|            return half_float_;
 1062|  13.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12half_storageEJRS7_EEEvDpOT0_:
  990|  1.12k|        {
  991|  1.12k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  1.12k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14double_storageEEERT_v:
  999|  6.25M|        {
 1000|  6.25M|            return cast(identity<T>());
 1001|  6.25M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14double_storageEEE:
 1070|  6.25M|        {
 1071|  6.25M|            return float64_;
 1072|  6.25M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14double_storageEJRS7_EEEvDpOT0_:
  990|  1.85k|        {
  991|  1.85k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  1.85k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_20short_string_storageEEERT_v:
  999|  2.07M|        {
 1000|  2.07M|            return cast(identity<T>());
 1001|  2.07M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_20short_string_storageEEE:
 1080|  2.07M|        {
 1081|  2.07M|            return short_str_;
 1082|  2.07M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20short_string_storageC2ERKS6_:
  580|  88.0k|                : storage_kind_(other.storage_kind_), short_str_length_(other.short_str_length_), tag_(other.tag_)
  581|  88.0k|            {
  582|  88.0k|                std::memcpy(data_,other.data_,other.short_str_length_*sizeof(char_type));
  583|  88.0k|                data_[short_str_length_] = 0;
  584|  88.0k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20short_string_storageEJRS7_EEEvDpOT0_:
  990|  88.0k|        {
  991|  88.0k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  88.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19long_string_storageEEEvRS5_:
 1151|  9.53k|        {
 1152|  9.53k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  9.53k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  9.53k|        {
 1158|  9.53k|            TypeR temp{other.cast<TypeR>()};
 1159|  9.53k|            other.construct<TypeL>(cast<TypeL>());
 1160|  9.53k|            construct<TypeR>(temp);
 1161|  9.53k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19byte_string_storageEEEvRS5_:
 1151|  2.89M|        {
 1152|  2.89M|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  2.89M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  2.89M|        {
 1158|  2.89M|            TypeR temp{other.cast<TypeR>()};
 1159|  2.89M|            other.construct<TypeL>(cast<TypeL>());
 1160|  2.89M|            construct<TypeR>(temp);
 1161|  2.89M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_13array_storageEEEvRS5_:
 1151|   438k|        {
 1152|   438k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|   438k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|   438k|        {
 1158|   438k|            TypeR temp{other.cast<TypeR>()};
 1159|   438k|            other.construct<TypeL>(cast<TypeL>());
 1160|   438k|            construct<TypeR>(temp);
 1161|   438k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_14object_storageEEEvRS5_:
 1151|  11.0M|        {
 1152|  11.0M|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  11.0M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  11.0M|        {
 1158|  11.0M|            TypeR temp{other.cast<TypeR>()};
 1159|  11.0M|            other.construct<TypeL>(cast<TypeL>());
 1160|  11.0M|            construct<TypeR>(temp);
 1161|  11.0M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_20empty_object_storageEEEvRS5_:
 1165|  2.44k|        {
 1166|  2.44k|            switch (other.storage_kind())
 1167|  2.44k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 2.44k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 2.44k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 2.44k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 2.44k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 2.44k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 2.44k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 2.44k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 2.44k]
  ------------------
 1176|    828|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 828, False: 1.61k]
  ------------------
 1177|     18|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 18, False: 2.42k]
  ------------------
 1178|    423|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 423, False: 2.02k]
  ------------------
 1179|  1.17k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 1.17k, False: 1.26k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 2.44k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 2.44k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 2.44k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  2.44k|            }
 1186|  2.44k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19long_string_storageEEEvRS5_:
 1151|    828|        {
 1152|    828|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    828|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    828|        {
 1158|    828|            TypeR temp{other.cast<TypeR>()};
 1159|    828|            other.construct<TypeL>(cast<TypeL>());
 1160|    828|            construct<TypeR>(temp);
 1161|    828|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19byte_string_storageEEEvRS5_:
 1151|     18|        {
 1152|     18|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|     18|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|     18|        {
 1158|     18|            TypeR temp{other.cast<TypeR>()};
 1159|     18|            other.construct<TypeL>(cast<TypeL>());
 1160|     18|            construct<TypeR>(temp);
 1161|     18|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_13array_storageEEEvRS5_:
 1151|    423|        {
 1152|    423|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    423|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    423|        {
 1158|    423|            TypeR temp{other.cast<TypeR>()};
 1159|    423|            other.construct<TypeL>(cast<TypeL>());
 1160|    423|            construct<TypeR>(temp);
 1161|    423|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_14object_storageEEEvRS5_:
 1151|  1.17k|        {
 1152|  1.17k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  1.17k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  1.17k|        {
 1158|  1.17k|            TypeR temp{other.cast<TypeR>()};
 1159|  1.17k|            other.construct<TypeL>(cast<TypeL>());
 1160|  1.17k|            construct<TypeR>(temp);
 1161|  1.17k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12bool_storageEEEvRS5_:
 1165|  29.5k|        {
 1166|  29.5k|            switch (other.storage_kind())
 1167|  29.5k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 29.5k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 29.5k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 29.5k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 29.5k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 29.5k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 29.5k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 29.5k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 29.5k]
  ------------------
 1176|    539|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 539, False: 29.0k]
  ------------------
 1177|  6.46k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 6.46k, False: 23.1k]
  ------------------
 1178|  19.3k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 19.3k, False: 10.2k]
  ------------------
 1179|  3.23k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 3.23k, False: 26.3k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 29.5k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 29.5k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 29.5k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  29.5k|            }
 1186|  29.5k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19long_string_storageEEEvRS5_:
 1151|    539|        {
 1152|    539|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    539|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    539|        {
 1158|    539|            TypeR temp{other.cast<TypeR>()};
 1159|    539|            other.construct<TypeL>(cast<TypeL>());
 1160|    539|            construct<TypeR>(temp);
 1161|    539|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19byte_string_storageEEEvRS5_:
 1151|  6.46k|        {
 1152|  6.46k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  6.46k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  6.46k|        {
 1158|  6.46k|            TypeR temp{other.cast<TypeR>()};
 1159|  6.46k|            other.construct<TypeL>(cast<TypeL>());
 1160|  6.46k|            construct<TypeR>(temp);
 1161|  6.46k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_13array_storageEEEvRS5_:
 1151|  19.3k|        {
 1152|  19.3k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  19.3k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  19.3k|        {
 1158|  19.3k|            TypeR temp{other.cast<TypeR>()};
 1159|  19.3k|            other.construct<TypeL>(cast<TypeL>());
 1160|  19.3k|            construct<TypeR>(temp);
 1161|  19.3k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_14object_storageEEEvRS5_:
 1151|  3.23k|        {
 1152|  3.23k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  3.23k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  3.23k|        {
 1158|  3.23k|            TypeR temp{other.cast<TypeR>()};
 1159|  3.23k|            other.construct<TypeL>(cast<TypeL>());
 1160|  3.23k|            construct<TypeR>(temp);
 1161|  3.23k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_13int64_storageEEEvRS5_:
 1165|  70.7k|        {
 1166|  70.7k|            switch (other.storage_kind())
 1167|  70.7k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 70.7k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 70.7k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 70.7k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 70.7k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 70.7k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 70.7k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 70.7k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 70.7k]
  ------------------
 1176|  1.41k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 1.41k, False: 69.3k]
  ------------------
 1177|  37.9k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 37.9k, False: 32.7k]
  ------------------
 1178|  17.4k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 17.4k, False: 53.2k]
  ------------------
 1179|  13.8k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 13.8k, False: 56.8k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 70.7k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 70.7k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 70.7k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  70.7k|            }
 1186|  70.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19long_string_storageEEEvRS5_:
 1151|  1.41k|        {
 1152|  1.41k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  1.41k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  1.41k|        {
 1158|  1.41k|            TypeR temp{other.cast<TypeR>()};
 1159|  1.41k|            other.construct<TypeL>(cast<TypeL>());
 1160|  1.41k|            construct<TypeR>(temp);
 1161|  1.41k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19byte_string_storageEEEvRS5_:
 1151|  37.9k|        {
 1152|  37.9k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  37.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  37.9k|        {
 1158|  37.9k|            TypeR temp{other.cast<TypeR>()};
 1159|  37.9k|            other.construct<TypeL>(cast<TypeL>());
 1160|  37.9k|            construct<TypeR>(temp);
 1161|  37.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_13array_storageEEEvRS5_:
 1151|  17.4k|        {
 1152|  17.4k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  17.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  17.4k|        {
 1158|  17.4k|            TypeR temp{other.cast<TypeR>()};
 1159|  17.4k|            other.construct<TypeL>(cast<TypeL>());
 1160|  17.4k|            construct<TypeR>(temp);
 1161|  17.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_14object_storageEEEvRS5_:
 1151|  13.8k|        {
 1152|  13.8k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  13.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  13.8k|        {
 1158|  13.8k|            TypeR temp{other.cast<TypeR>()};
 1159|  13.8k|            other.construct<TypeL>(cast<TypeL>());
 1160|  13.8k|            construct<TypeR>(temp);
 1161|  13.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_14uint64_storageEEEvRS5_:
 1165|   168k|        {
 1166|   168k|            switch (other.storage_kind())
 1167|   168k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 168k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 168k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 168k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 168k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 168k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 168k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 168k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 168k]
  ------------------
 1176|  5.03k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 5.03k, False: 163k]
  ------------------
 1177|  81.6k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 81.6k, False: 86.4k]
  ------------------
 1178|  56.0k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 56.0k, False: 112k]
  ------------------
 1179|  25.3k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 25.3k, False: 142k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 168k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 168k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 168k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|   168k|            }
 1186|   168k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19long_string_storageEEEvRS5_:
 1151|  5.03k|        {
 1152|  5.03k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  5.03k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  5.03k|        {
 1158|  5.03k|            TypeR temp{other.cast<TypeR>()};
 1159|  5.03k|            other.construct<TypeL>(cast<TypeL>());
 1160|  5.03k|            construct<TypeR>(temp);
 1161|  5.03k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19byte_string_storageEEEvRS5_:
 1151|  81.6k|        {
 1152|  81.6k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  81.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  81.6k|        {
 1158|  81.6k|            TypeR temp{other.cast<TypeR>()};
 1159|  81.6k|            other.construct<TypeL>(cast<TypeL>());
 1160|  81.6k|            construct<TypeR>(temp);
 1161|  81.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_13array_storageEEEvRS5_:
 1151|  56.0k|        {
 1152|  56.0k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  56.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  56.0k|        {
 1158|  56.0k|            TypeR temp{other.cast<TypeR>()};
 1159|  56.0k|            other.construct<TypeL>(cast<TypeL>());
 1160|  56.0k|            construct<TypeR>(temp);
 1161|  56.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_14object_storageEEEvRS5_:
 1151|  25.3k|        {
 1152|  25.3k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  25.3k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  25.3k|        {
 1158|  25.3k|            TypeR temp{other.cast<TypeR>()};
 1159|  25.3k|            other.construct<TypeL>(cast<TypeL>());
 1160|  25.3k|            construct<TypeR>(temp);
 1161|  25.3k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12half_storageEEEvRS5_:
 1165|  1.12k|        {
 1166|  1.12k|            switch (other.storage_kind())
 1167|  1.12k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 1.12k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 1.12k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 1.12k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 1.12k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 1.12k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 1.12k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 1.12k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 1.12k]
  ------------------
 1176|    216|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 216, False: 913]
  ------------------
 1177|    267|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 267, False: 862]
  ------------------
 1178|    302|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 302, False: 827]
  ------------------
 1179|    344|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 344, False: 785]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 1.12k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 1.12k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 1.12k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  1.12k|            }
 1186|  1.12k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19long_string_storageEEEvRS5_:
 1151|    216|        {
 1152|    216|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    216|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    216|        {
 1158|    216|            TypeR temp{other.cast<TypeR>()};
 1159|    216|            other.construct<TypeL>(cast<TypeL>());
 1160|    216|            construct<TypeR>(temp);
 1161|    216|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19byte_string_storageEEEvRS5_:
 1151|    267|        {
 1152|    267|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    267|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    267|        {
 1158|    267|            TypeR temp{other.cast<TypeR>()};
 1159|    267|            other.construct<TypeL>(cast<TypeL>());
 1160|    267|            construct<TypeR>(temp);
 1161|    267|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_13array_storageEEEvRS5_:
 1151|    302|        {
 1152|    302|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    302|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    302|        {
 1158|    302|            TypeR temp{other.cast<TypeR>()};
 1159|    302|            other.construct<TypeL>(cast<TypeL>());
 1160|    302|            construct<TypeR>(temp);
 1161|    302|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_14object_storageEEEvRS5_:
 1151|    344|        {
 1152|    344|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    344|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    344|        {
 1158|    344|            TypeR temp{other.cast<TypeR>()};
 1159|    344|            other.construct<TypeL>(cast<TypeL>());
 1160|    344|            construct<TypeR>(temp);
 1161|    344|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_14double_storageEEEvRS5_:
 1165|  1.85k|        {
 1166|  1.85k|            switch (other.storage_kind())
 1167|  1.85k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 1.85k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 1.85k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 1.85k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 1.85k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 1.85k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 1.85k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 1.85k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 1.85k]
  ------------------
 1176|    198|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 198, False: 1.65k]
  ------------------
 1177|    839|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 839, False: 1.01k]
  ------------------
 1178|    311|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 311, False: 1.54k]
  ------------------
 1179|    507|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 507, False: 1.34k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 1.85k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 1.85k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 1.85k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  1.85k|            }
 1186|  1.85k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19long_string_storageEEEvRS5_:
 1151|    198|        {
 1152|    198|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    198|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    198|        {
 1158|    198|            TypeR temp{other.cast<TypeR>()};
 1159|    198|            other.construct<TypeL>(cast<TypeL>());
 1160|    198|            construct<TypeR>(temp);
 1161|    198|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19byte_string_storageEEEvRS5_:
 1151|    839|        {
 1152|    839|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    839|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    839|        {
 1158|    839|            TypeR temp{other.cast<TypeR>()};
 1159|    839|            other.construct<TypeL>(cast<TypeL>());
 1160|    839|            construct<TypeR>(temp);
 1161|    839|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_13array_storageEEEvRS5_:
 1151|    311|        {
 1152|    311|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    311|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    311|        {
 1158|    311|            TypeR temp{other.cast<TypeR>()};
 1159|    311|            other.construct<TypeL>(cast<TypeL>());
 1160|    311|            construct<TypeR>(temp);
 1161|    311|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_14object_storageEEEvRS5_:
 1151|    507|        {
 1152|    507|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    507|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    507|        {
 1158|    507|            TypeR temp{other.cast<TypeR>()};
 1159|    507|            other.construct<TypeL>(cast<TypeL>());
 1160|    507|            construct<TypeR>(temp);
 1161|    507|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_20short_string_storageEEEvRS5_:
 1165|  88.0k|        {
 1166|  88.0k|            switch (other.storage_kind())
 1167|  88.0k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 88.0k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 88.0k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 88.0k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 88.0k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 88.0k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 88.0k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 88.0k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 88.0k]
  ------------------
 1176|    361|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 361, False: 87.7k]
  ------------------
 1177|  71.0k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 71.0k, False: 17.0k]
  ------------------
 1178|  12.8k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 12.8k, False: 75.2k]
  ------------------
 1179|  3.86k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 3.86k, False: 84.2k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 88.0k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 88.0k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 88.0k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  88.0k|            }
 1186|  88.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19long_string_storageEEEvRS5_:
 1151|    361|        {
 1152|    361|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    361|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    361|        {
 1158|    361|            TypeR temp{other.cast<TypeR>()};
 1159|    361|            other.construct<TypeL>(cast<TypeL>());
 1160|    361|            construct<TypeR>(temp);
 1161|    361|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19byte_string_storageEEEvRS5_:
 1151|  71.0k|        {
 1152|  71.0k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  71.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  71.0k|        {
 1158|  71.0k|            TypeR temp{other.cast<TypeR>()};
 1159|  71.0k|            other.construct<TypeL>(cast<TypeL>());
 1160|  71.0k|            construct<TypeR>(temp);
 1161|  71.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_13array_storageEEEvRS5_:
 1151|  12.8k|        {
 1152|  12.8k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  12.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  12.8k|        {
 1158|  12.8k|            TypeR temp{other.cast<TypeR>()};
 1159|  12.8k|            other.construct<TypeL>(cast<TypeL>());
 1160|  12.8k|            construct<TypeR>(temp);
 1161|  12.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_14object_storageEEEvRS5_:
 1151|  3.86k|        {
 1152|  3.86k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  3.86k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  3.86k|        {
 1158|  3.86k|            TypeR temp{other.cast<TypeR>()};
 1159|  3.86k|            other.construct<TypeL>(cast<TypeL>());
 1160|  3.86k|            construct<TypeR>(temp);
 1161|  3.86k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ImEET_NS_12semantic_tagENS2_9enable_ifIXaasr10ext_traits19is_unsigned_integerIS7_EE5valuelestS7_Lm8EEiE4typeE:
 2609|  8.07M|        {
 2610|  8.07M|            construct<uint64_storage>(val, tag);
 2611|  8.07M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14uint64_storageEJRmRNS_12semantic_tagEEEEvDpOT0_:
  990|  8.07M|        {
  991|  8.07M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  8.07M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14uint64_storageC2EmNS_12semantic_tagE:
  511|  8.07M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::uint64)), short_str_length_(0), tag_(tag),
  512|  8.07M|                  val_(val)
  513|  8.07M|            {
  514|  8.07M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2IlEET_NS_12semantic_tagENS2_9enable_ifIXaasr10ext_traits17is_signed_integerIS7_EE5valuelestS7_Lm8EEiE4typeE:
 2640|  4.30M|        {
 2641|  4.30M|            construct<int64_storage>(val, tag);
 2642|  4.30M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13int64_storageEJRlRNS_12semantic_tagEEEEvDpOT0_:
  990|  4.30M|        {
  991|  4.30M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  4.30M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13int64_storageC2ElNS_12semantic_tagE:
  491|  4.30M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::int64)), short_str_length_(0), tag_(tag),
  492|  4.30M|                  val_(val)
  493|  4.30M|            {
  494|  4.30M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EdNS_12semantic_tagE:
 2597|  6.25M|        {
 2598|  6.25M|            construct<double_storage>(val, tag);
 2599|  6.25M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14double_storageEJRdRNS_12semantic_tagEEEEvDpOT0_:
  990|  6.25M|        {
  991|  6.25M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  6.25M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14double_storageC2EdNS_12semantic_tagE:
  550|  6.25M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::float64)), short_str_length_(0), tag_(tag),
  551|  6.25M|                  val_(val)
  552|  6.25M|            {
  553|  6.25M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_16json_array_arg_tENS_12semantic_tagE:
 2396|   296k|        {
 2397|   296k|            auto ptr = create_array(Allocator());
 2398|   296k|            construct<array_storage>(ptr, tag);
 2399|   296k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12create_arrayIJEEEPNS_10json_arrayIS5_NS2_6vectorEEERKS4_DpOT_:
  952|   296k|        {
  953|   296k|            using stor_allocator_type = typename array_storage::allocator_type;
  954|   296k|            stor_allocator_type stor_alloc(alloc);
  955|   296k|            auto ptr = std::allocator_traits<stor_allocator_type>::allocate(stor_alloc, 1);
  956|   296k|            JSONCONS_TRY
  ------------------
  |  |   37|   296k|    #define JSONCONS_TRY try
  ------------------
  957|   296k|            {
  958|   296k|                std::allocator_traits<stor_allocator_type>::construct(stor_alloc, ext_traits::to_plain_pointer(ptr), 
  959|   296k|                    std::forward<Args>(args)...);
  960|   296k|            }
  961|   296k|            JSONCONS_CATCH(...)
  962|   296k|            {
  963|      0|                std::allocator_traits<stor_allocator_type>::deallocate(stor_alloc, ptr,1);
  964|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  965|      0|            }
  966|   296k|            return ptr;
  967|   296k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13array_storageEJRPNS_10json_arrayIS5_NS2_6vectorEEERNS_12semantic_tagEEEEvDpOT0_:
  990|   296k|        {
  991|   296k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|   296k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storageC2EPNS_10json_arrayIS5_NS2_6vectorEEENS_12semantic_tagE:
  717|   296k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::array)), short_str_length_(0), tag_(tag), ptr_(ptr)
  718|   296k|            {
  719|   296k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_9null_typeENS_12semantic_tagE:
 2686|   694k|        {
 2687|   694k|            construct<null_storage>(tag);
 2688|   694k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJRNS_12semantic_tagEEEEvDpOT0_:
  990|   694k|        {
  991|   694k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|   694k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EbNS_12semantic_tagE:
 2696|  2.38M|        {
 2697|  2.38M|            construct<bool_storage>(val,tag);
 2698|  2.38M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12bool_storageEJRbRNS_12semantic_tagEEEEvDpOT0_:
  990|  2.38M|        {
  991|  2.38M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  2.38M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12bool_storageC2EbNS_12semantic_tagE:
  470|  2.38M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::boolean)), short_str_length_(0), tag_(tag),
  471|  2.38M|                  val_(val)
  472|  2.38M|            {
  473|  2.38M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ERKNS2_17basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagE:
 2544|  1.91M|            : basic_json(s.data(), s.size(), tag, allocator_type())
 2545|  1.91M|        {
 2546|  1.91M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EPKcmNS_12semantic_tagERKS4_:
 2574|  1.92M|        {
 2575|  1.92M|            if (length <= short_string_storage::max_length)
  ------------------
  |  Branch (2575:17): [True: 1.90M, False: 17.7k]
  ------------------
 2576|  1.90M|            {
 2577|  1.90M|                construct<short_string_storage>(s, static_cast<uint8_t>(length), tag);
 2578|  1.90M|            }
 2579|  17.7k|            else
 2580|  17.7k|            {
 2581|  17.7k|                auto ptr = create_long_string(alloc, s, length);
 2582|  17.7k|                construct<long_string_storage>(ptr, tag);
 2583|  17.7k|            }
 2584|  1.92M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20short_string_storageEJRPKchRNS_12semantic_tagEEEEvDpOT0_:
  990|  1.90M|        {
  991|  1.90M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  1.90M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20short_string_storageC2EPKchNS_12semantic_tagE:
  572|  1.90M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::short_str)), short_str_length_(length), tag_(tag)
  573|  1.90M|            {
  574|  1.90M|                JSONCONS_ASSERT(length <= max_length);
  ------------------
  |  |   49|  1.90M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 1.90M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  575|  1.90M|                std::memcpy(data_,p,length*sizeof(char_type));
  576|  1.90M|                data_[length] = 0;
  577|  1.90M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18create_long_stringERKS4_PKcm:
  938|  17.7k|        {
  939|  17.7k|            using heap_string_factory_type = jsoncons::heap::heap_string_factory<char_type,null_type,Allocator>;
  940|  17.7k|            return heap_string_factory_type::create(data, length, null_type(), alloc); 
  941|  17.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19long_string_storageEJRPNS_4heap11heap_stringIcNS_9null_typeES4_EERNS_12semantic_tagEEEEvDpOT0_:
  990|  17.7k|        {
  991|  17.7k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  17.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19long_string_storageC2EPNS_4heap11heap_stringIcNS_9null_typeES4_EENS_12semantic_tagE:
  616|  17.7k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(tag), ptr_(ptr)
  617|  17.7k|            {
  618|  17.7k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ERKNS2_17basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKS4_:
 2706|  1.08k|            : basic_json(sv.data(), sv.length(), tag, alloc)
 2707|  1.08k|        {
 2708|  1.08k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_NS_12semantic_tagENS2_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2714|  4.83M|        {
 2715|  4.83M|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2716|       |            
 2717|  4.83M|            auto ptr = create_byte_string(Allocator(), bytes.data(), bytes.size(), 0);
 2718|  4.83M|            construct<byte_string_storage>(ptr, tag);
 2719|  4.83M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18create_byte_stringERKS4_PKhmm:
  945|  4.84M|        {
  946|  4.84M|            using heap_string_factory_type = jsoncons::heap::heap_string_factory<uint8_t,uint64_t,Allocator>;
  947|  4.84M|            return heap_string_factory_type::create(data, length, raw_tag, alloc); 
  948|  4.84M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRPNS_4heap11heap_stringIhmS4_EERNS_12semantic_tagEEEEvDpOT0_:
  990|  4.83M|        {
  991|  4.83M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  4.83M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19byte_string_storageC2EPNS_4heap11heap_stringIhmS4_EENS_12semantic_tagE:
  665|  4.84M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::byte_str)), short_str_length_(0), tag_(tag), ptr_(ptr)
  666|  4.84M|            {
  667|  4.84M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_NS_12semantic_tagERKS4_NS2_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2726|     16|        {
 2727|     16|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2728|       |
 2729|     16|            auto ptr = create_byte_string(alloc, bytes.data(), bytes.size(), 0);
 2730|     16|            construct<byte_string_storage>(ptr, tag);
 2731|     16|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_mNS2_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2737|  7.54k|        {
 2738|  7.54k|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2739|       |
 2740|  7.54k|            auto ptr = create_byte_string(Allocator(), bytes.data(), bytes.size(), raw_tag);
 2741|  7.54k|            construct<byte_string_storage>(ptr, semantic_tag::ext);
 2742|  7.54k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRPNS_4heap11heap_stringIhmS4_EENS_12semantic_tagEEEEvDpOT0_:
  990|  7.54k|        {
  991|  7.54k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  7.54k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_mRKS4_NS2_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2749|      2|        {
 2750|      2|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2751|       |
 2752|      2|            auto ptr = create_byte_string(alloc, bytes.data(), bytes.size(), raw_tag);
 2753|      2|            construct<byte_string_storage>(ptr, semantic_tag::ext);
 2754|      2|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_10half_arg_tEtNS_12semantic_tagE:
 2587|  10.8k|        {
 2588|  10.8k|            construct<half_storage>(val, tag);
 2589|  10.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12half_storageEJRtRNS_12semantic_tagEEEEvDpOT0_:
  990|  10.8k|        {
  991|  10.8k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  10.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12half_storageC2EtNS_12semantic_tagE:
  530|  10.8k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::half_float)), short_str_length_(0), tag_(tag),
  531|  10.8k|                  val_(val)
  532|  10.8k|            {
  533|  10.8k|            }

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

_ZN8jsoncons12launder_castIPcNS_4heap11heap_stringIcNS_9null_typeENSt3__19allocatorIcEEEEEET_PT0_:
  243|  17.7k|    {
  244|  17.7k|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  245|  17.7k|        return std::launder(reinterpret_cast<T>(u));
  246|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  247|       |        return __builtin_launder(reinterpret_cast<T>(u));
  248|       |    #else
  249|       |        return reinterpret_cast<T>(u);
  250|       |    #endif
  251|  17.7k|    }
_ZN8jsoncons12launder_castIPcNS_4heap11heap_stringIhmNSt3__19allocatorIcEEEEEET_PT0_:
  243|  4.84M|    {
  244|  4.84M|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  245|  4.84M|        return std::launder(reinterpret_cast<T>(u));
  246|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  247|       |        return __builtin_launder(reinterpret_cast<T>(u));
  248|       |    #else
  249|       |        return reinterpret_cast<T>(u);
  250|       |    #endif
  251|  4.84M|    }
_ZN8jsoncons12launder_castIPNS_4heap19heap_string_factoryIcNS_9null_typeENSt3__19allocatorIcEEE9storage_tEcEET_PT0_:
  243|  17.7k|    {
  244|  17.7k|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  245|  17.7k|        return std::launder(reinterpret_cast<T>(u));
  246|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  247|       |        return __builtin_launder(reinterpret_cast<T>(u));
  248|       |    #else
  249|       |        return reinterpret_cast<T>(u);
  250|       |    #endif
  251|  17.7k|    }
_ZN8jsoncons12launder_castIPNS_4heap19heap_string_factoryIhmNSt3__19allocatorIcEEE9storage_tEcEET_PT0_:
  243|  4.84M|    {
  244|  4.84M|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  245|  4.84M|        return std::launder(reinterpret_cast<T>(u));
  246|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  247|       |        return __builtin_launder(reinterpret_cast<T>(u));
  248|       |    #else
  249|       |        return reinterpret_cast<T>(u);
  250|       |    #endif
  251|  4.84M|    }

_ZN8jsoncons6detail8expectedImNSt3__14errcEEC2EOm:
   52|  11.9k|        : has_value_(true)
   53|  11.9k|    {
   54|  11.9k|        construct(std::move(value));
   55|  11.9k|    }
_ZN8jsoncons6detail8expectedImNSt3__14errcEE9constructEOm:
  274|  11.9k|    {
  275|  11.9k|        ::new (&value_) T(std::move(value));
  276|  11.9k|        has_value_ = true;
  277|  11.9k|    }
_ZN8jsoncons6detail8expectedImNSt3__14errcEEC2IJS3_EEENS0_10unexpect_tEDpOT_:
   66|     36|        : has_value_(false)
   67|     36|    {
   68|     36|        ::new (&error_) E(std::forward<Args>(args)...);
   69|     36|    }
_ZNK8jsoncons6detail8expectedImNSt3__14errcEEcvbEv:
  146|  12.0k|    {
  147|  12.0k|        return has_value_;
  148|  12.0k|    }
_ZNR8jsoncons6detail8expectedImNSt3__14errcEEdeEv:
  231|  23.9k|    {
  232|  23.9k|        return this->value_;
  233|  23.9k|    }
_ZN8jsoncons6detail8expectedImNSt3__14errcEED2Ev:
  100|  12.0k|    {
  101|  12.0k|        destroy();
  102|  12.0k|    }
_ZN8jsoncons6detail8expectedImNSt3__14errcEE7destroyEv:
  280|  12.0k|    {
  281|  12.0k|        if (has_value_) 
  ------------------
  |  Branch (281:13): [True: 11.9k, False: 36]
  ------------------
  282|  11.9k|        {
  283|  11.9k|            value_.~T();
  284|  11.9k|            has_value_ = false;
  285|  11.9k|        }
  286|     36|        else
  287|     36|        {
  288|     36|            error_.~E();
  289|     36|        }
  290|  12.0k|    }
_ZN8jsoncons6detail8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEEC2IJRNS4_10error_codeEmmEEENS0_10unexpect_tEDpOT_:
   66|  8.13k|        : has_value_(false)
   67|  8.13k|    {
   68|  8.13k|        ::new (&error_) E(std::forward<Args>(args)...);
   69|  8.13k|    }
_ZN8jsoncons6detail8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEEC2EOS7_:
   52|  2.89k|        : has_value_(true)
   53|  2.89k|    {
   54|  2.89k|        construct(std::move(value));
   55|  2.89k|    }
_ZN8jsoncons6detail8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEE9constructEOS7_:
  274|  2.89k|    {
  275|  2.89k|        ::new (&value_) T(std::move(value));
  276|  2.89k|        has_value_ = true;
  277|  2.89k|    }
_ZNK8jsoncons6detail8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEEcvbEv:
  146|  11.0k|    {
  147|  11.0k|        return has_value_;
  148|  11.0k|    }
_ZNR8jsoncons6detail8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEE5errorEv:
  192|  24.4k|    {
  193|  24.4k|        assert(!has_value_);
  ------------------
  |  Branch (193:9): [True: 24.4k, False: 0]
  ------------------
  194|  24.4k|        return this->error_;
  195|  24.4k|    }
_ZNR8jsoncons6detail8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEEdeEv:
  231|  2.89k|    {
  232|  2.89k|        return this->value_;
  233|  2.89k|    }
_ZN8jsoncons6detail8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEED2Ev:
  100|  11.0k|    {
  101|  11.0k|        destroy();
  102|  11.0k|    }
_ZN8jsoncons6detail8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEE7destroyEv:
  280|  11.0k|    {
  281|  11.0k|        if (has_value_) 
  ------------------
  |  Branch (281:13): [True: 2.89k, False: 8.13k]
  ------------------
  282|  2.89k|        {
  283|  2.89k|            value_.~T();
  284|  2.89k|            has_value_ = false;
  285|  2.89k|        }
  286|  8.13k|        else
  287|  8.13k|        {
  288|  8.13k|            error_.~E();
  289|  8.13k|        }
  290|  11.0k|    }

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

_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|  8.72M|            : data_(data), size_(size)
   62|  8.72M|        {
   63|  8.72M|        }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4dataEv:
  111|  20.6M|        {
  112|  20.6M|            return data_;
  113|  20.6M|        }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4sizeEv:
  116|  39.2M|        {
  117|  39.2M|            return size_;
  118|  39.2M|        }
_ZNK8jsoncons6detail4spanIKtLm18446744073709551615EE4sizeEv:
  116|  34.5M|        {
  117|  34.5M|            return size_;
  118|  34.5M|        }
_ZNK8jsoncons6detail4spanIKjLm18446744073709551615EE4sizeEv:
  116|   386k|        {
  117|   386k|            return size_;
  118|   386k|        }
_ZNK8jsoncons6detail4spanIKmLm18446744073709551615EE4sizeEv:
  116|   181k|        {
  117|   181k|            return size_;
  118|   181k|        }
_ZNK8jsoncons6detail4spanIKaLm18446744073709551615EE4sizeEv:
  116|  3.12M|        {
  117|  3.12M|            return size_;
  118|  3.12M|        }
_ZNK8jsoncons6detail4spanIKsLm18446744073709551615EE4sizeEv:
  116|  1.36M|        {
  117|  1.36M|            return size_;
  118|  1.36M|        }
_ZNK8jsoncons6detail4spanIKiLm18446744073709551615EE4sizeEv:
  116|  1.97M|        {
  117|  1.97M|            return size_;
  118|  1.97M|        }
_ZNK8jsoncons6detail4spanIKlLm18446744073709551615EE4sizeEv:
  116|  1.07M|        {
  117|  1.07M|            return size_;
  118|  1.07M|        }
_ZNK8jsoncons6detail4spanIKfLm18446744073709551615EE4sizeEv:
  116|   273k|        {
  117|   273k|            return size_;
  118|   273k|        }
_ZNK8jsoncons6detail4spanIKdLm18446744073709551615EE4sizeEv:
  116|  74.0k|        {
  117|  74.0k|            return size_;
  118|  74.0k|        }
_ZNK8jsoncons6detail4spanIhLm18446744073709551615EE4dataEv:
  111|   264k|        {
  112|   264k|            return data_;
  113|   264k|        }
_ZNK8jsoncons6detail4spanIhLm18446744073709551615EE4sizeEv:
  116|   264k|        {
  117|   264k|            return size_;
  118|   264k|        }
_ZN8jsoncons6detail4spanIhLm18446744073709551615EEC2INSt3__16vectorIhNS4_9allocatorIhEEEEEERT_PNS4_9enable_ifIXaaaaaantsr7is_spanIS9_EE5valuentsr10ext_traits12is_std_arrayIS9_EE5valuesr10ext_traits21is_compatible_elementIS9_hEE5valuesr10ext_traits17has_data_and_sizeIS9_EE5valueEvE4typeE:
   68|   264k|            : data_(c.data()), size_(c.size())
   69|   264k|        {
   70|   264k|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2IhLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  4.73k|            : data_(s.data()), size_(s.size())
  103|  4.73k|        {
  104|  4.73k|        }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EEixEm:
  126|  2.78M|         {
  127|  2.78M|             return data_[index];
  128|  2.78M|         }
_ZN8jsoncons6detail4spanItLm18446744073709551615EEC2EPtm:
   61|   118k|            : data_(data), size_(size)
   62|   118k|        {
   63|   118k|        }
_ZNK8jsoncons6detail4spanItLm18446744073709551615EE4sizeEv:
  116|  23.9M|        {
  117|  23.9M|            return size_;
  118|  23.9M|        }
_ZNK8jsoncons6detail4spanItLm18446744073709551615EEixEm:
  126|  47.6M|         {
  127|  47.6M|             return data_[index];
  128|  47.6M|         }
_ZN8jsoncons6detail4spanIKtLm18446744073709551615EEC2ItLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  59.0k|            : data_(s.data()), size_(s.size())
  103|  59.0k|        {
  104|  59.0k|        }
_ZNK8jsoncons6detail4spanItLm18446744073709551615EE4dataEv:
  111|  59.0k|        {
  112|  59.0k|            return data_;
  113|  59.0k|        }
_ZNK8jsoncons6detail4spanIKtLm18446744073709551615EEixEm:
  126|  34.4M|         {
  127|  34.4M|             return data_[index];
  128|  34.4M|         }
_ZN8jsoncons6detail4spanIjLm18446744073709551615EEC2EPjm:
   61|  12.0k|            : data_(data), size_(size)
   62|  12.0k|        {
   63|  12.0k|        }
_ZNK8jsoncons6detail4spanIjLm18446744073709551615EE4sizeEv:
  116|   384k|        {
  117|   384k|            return size_;
  118|   384k|        }
_ZNK8jsoncons6detail4spanIjLm18446744073709551615EEixEm:
  126|   736k|         {
  127|   736k|             return data_[index];
  128|   736k|         }
_ZN8jsoncons6detail4spanIKjLm18446744073709551615EEC2IjLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  6.04k|            : data_(s.data()), size_(s.size())
  103|  6.04k|        {
  104|  6.04k|        }
_ZNK8jsoncons6detail4spanIjLm18446744073709551615EE4dataEv:
  111|  6.04k|        {
  112|  6.04k|            return data_;
  113|  6.04k|        }
_ZNK8jsoncons6detail4spanIKjLm18446744073709551615EEixEm:
  126|   370k|         {
  127|   370k|             return data_[index];
  128|   370k|         }
_ZN8jsoncons6detail4spanImLm18446744073709551615EEC2EPmm:
   61|  28.1k|            : data_(data), size_(size)
   62|  28.1k|        {
   63|  28.1k|        }
_ZNK8jsoncons6detail4spanImLm18446744073709551615EE4sizeEv:
  116|   142k|        {
  117|   142k|            return size_;
  118|   142k|        }
_ZNK8jsoncons6detail4spanImLm18446744073709551615EEixEm:
  126|   217k|         {
  127|   217k|             return data_[index];
  128|   217k|         }
_ZN8jsoncons6detail4spanIKmLm18446744073709551615EEC2ImLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  14.0k|            : data_(s.data()), size_(s.size())
  103|  14.0k|        {
  104|  14.0k|        }
_ZNK8jsoncons6detail4spanImLm18446744073709551615EE4dataEv:
  111|  14.0k|        {
  112|  14.0k|            return data_;
  113|  14.0k|        }
_ZNK8jsoncons6detail4spanIKmLm18446744073709551615EEixEm:
  126|   180k|         {
  127|   180k|             return data_[index];
  128|   180k|         }
_ZN8jsoncons6detail4spanIaLm18446744073709551615EEC2EPam:
   61|  7.89k|            : data_(data), size_(size)
   62|  7.89k|        {
   63|  7.89k|        }
_ZNK8jsoncons6detail4spanIaLm18446744073709551615EE4sizeEv:
  116|  8.30k|        {
  117|  8.30k|            return size_;
  118|  8.30k|        }
_ZN8jsoncons6detail4spanIKaLm18446744073709551615EEC2IaLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  3.94k|            : data_(s.data()), size_(s.size())
  103|  3.94k|        {
  104|  3.94k|        }
_ZNK8jsoncons6detail4spanIaLm18446744073709551615EE4dataEv:
  111|  3.94k|        {
  112|  3.94k|            return data_;
  113|  3.94k|        }
_ZNK8jsoncons6detail4spanIKaLm18446744073709551615EEixEm:
  126|  3.11M|         {
  127|  3.11M|             return data_[index];
  128|  3.11M|         }
_ZN8jsoncons6detail4spanIsLm18446744073709551615EEC2EPsm:
   61|  29.2k|            : data_(data), size_(size)
   62|  29.2k|        {
   63|  29.2k|        }
_ZNK8jsoncons6detail4spanIsLm18446744073709551615EE4sizeEv:
  116|  1.36M|        {
  117|  1.36M|            return size_;
  118|  1.36M|        }
_ZNK8jsoncons6detail4spanIsLm18446744073709551615EEixEm:
  126|  2.64M|         {
  127|  2.64M|             return data_[index];
  128|  2.64M|         }
_ZN8jsoncons6detail4spanIKsLm18446744073709551615EEC2IsLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  14.6k|            : data_(s.data()), size_(s.size())
  103|  14.6k|        {
  104|  14.6k|        }
_ZNK8jsoncons6detail4spanIsLm18446744073709551615EE4dataEv:
  111|  14.6k|        {
  112|  14.6k|            return data_;
  113|  14.6k|        }
_ZNK8jsoncons6detail4spanIKsLm18446744073709551615EEixEm:
  126|  1.32M|         {
  127|  1.32M|             return data_[index];
  128|  1.32M|         }
_ZN8jsoncons6detail4spanIiLm18446744073709551615EEC2EPim:
   61|  8.63k|            : data_(data), size_(size)
   62|  8.63k|        {
   63|  8.63k|        }
_ZNK8jsoncons6detail4spanIiLm18446744073709551615EE4sizeEv:
  116|  1.97M|        {
  117|  1.97M|            return size_;
  118|  1.97M|        }
_ZNK8jsoncons6detail4spanIiLm18446744073709551615EEixEm:
  126|  3.92M|         {
  127|  3.92M|             return data_[index];
  128|  3.92M|         }
_ZN8jsoncons6detail4spanIKiLm18446744073709551615EEC2IiLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  4.31k|            : data_(s.data()), size_(s.size())
  103|  4.31k|        {
  104|  4.31k|        }
_ZNK8jsoncons6detail4spanIiLm18446744073709551615EE4dataEv:
  111|  4.31k|        {
  112|  4.31k|            return data_;
  113|  4.31k|        }
_ZNK8jsoncons6detail4spanIKiLm18446744073709551615EEixEm:
  126|  1.96M|         {
  127|  1.96M|             return data_[index];
  128|  1.96M|         }
_ZN8jsoncons6detail4spanIlLm18446744073709551615EEC2EPlm:
   61|  22.8k|            : data_(data), size_(size)
   62|  22.8k|        {
   63|  22.8k|        }
_ZNK8jsoncons6detail4spanIlLm18446744073709551615EE4sizeEv:
  116|  1.07M|        {
  117|  1.07M|            return size_;
  118|  1.07M|        }
_ZNK8jsoncons6detail4spanIlLm18446744073709551615EEixEm:
  126|  2.07M|         {
  127|  2.07M|             return data_[index];
  128|  2.07M|         }
_ZN8jsoncons6detail4spanIKlLm18446744073709551615EEC2IlLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  11.4k|            : data_(s.data()), size_(s.size())
  103|  11.4k|        {
  104|  11.4k|        }
_ZNK8jsoncons6detail4spanIlLm18446744073709551615EE4dataEv:
  111|  11.4k|        {
  112|  11.4k|            return data_;
  113|  11.4k|        }
_ZNK8jsoncons6detail4spanIKlLm18446744073709551615EEixEm:
  126|  1.03M|         {
  127|  1.03M|             return data_[index];
  128|  1.03M|         }
_ZN8jsoncons6detail4spanIfLm18446744073709551615EEC2EPfm:
   61|  18.2k|            : data_(data), size_(size)
   62|  18.2k|        {
   63|  18.2k|        }
_ZNK8jsoncons6detail4spanIfLm18446744073709551615EE4sizeEv:
  116|   216k|        {
  117|   216k|            return size_;
  118|   216k|        }
_ZNK8jsoncons6detail4spanIfLm18446744073709551615EEixEm:
  126|   379k|         {
  127|   379k|             return data_[index];
  128|   379k|         }
_ZN8jsoncons6detail4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  9.13k|            : data_(s.data()), size_(s.size())
  103|  9.13k|        {
  104|  9.13k|        }
_ZNK8jsoncons6detail4spanIfLm18446744073709551615EE4dataEv:
  111|  9.13k|        {
  112|  9.13k|            return data_;
  113|  9.13k|        }
_ZNK8jsoncons6detail4spanIKfLm18446744073709551615EEixEm:
  126|   248k|         {
  127|   248k|             return data_[index];
  128|   248k|         }
_ZN8jsoncons6detail4spanIdLm18446744073709551615EEC2EPdm:
   61|  10.2k|            : data_(data), size_(size)
   62|  10.2k|        {
   63|  10.2k|        }
_ZNK8jsoncons6detail4spanIdLm18446744073709551615EE4sizeEv:
  116|  63.7k|        {
  117|  63.7k|            return size_;
  118|  63.7k|        }
_ZNK8jsoncons6detail4spanIdLm18446744073709551615EEixEm:
  126|  97.6k|         {
  127|  97.6k|             return data_[index];
  128|  97.6k|         }
_ZN8jsoncons6detail4spanIKdLm18446744073709551615EEC2IdLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  102|  5.12k|            : data_(s.data()), size_(s.size())
  103|  5.12k|        {
  104|  5.12k|        }
_ZNK8jsoncons6detail4spanIdLm18446744073709551615EE4dataEv:
  111|  5.12k|        {
  112|  5.12k|            return data_;
  113|  5.12k|        }
_ZNK8jsoncons6detail4spanIKdLm18446744073709551615EEixEm:
  126|  61.0k|         {
  127|  61.0k|             return data_[index];
  128|  61.0k|         }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2Ev:
   58|  11.9M|        {
   59|  11.9M|        }
_ZNK8jsoncons6detail4spanIKmLm18446744073709551615EE5emptyEv:
  121|  12.0k|        { 
  122|  12.0k|            return size_ == 0; 
  123|  12.0k|        }
_ZN8jsoncons6detail4spanIKmLm18446744073709551615EEC2INSt3__16vectorImNS5_9allocatorImEEEEEERT_PNS5_9enable_ifIXaaaaaantsr7is_spanISA_EE5valuentsr10ext_traits12is_std_arrayISA_EE5valuesr10ext_traits21is_compatible_elementISA_S2_EE5valuesr10ext_traits17has_data_and_sizeISA_EE5valueEvE4typeE:
   68|  12.0k|            : data_(c.data()), size_(c.size())
   69|  12.0k|        {
   70|  12.0k|        }

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  11.0k|            : destination_(std::addressof(visitor)), 
  856|  11.0k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  11.0k|        {
  858|  11.0k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  11.0k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|  11.0k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|   646k|    {
  295|   646k|        visit_begin_array(length, tag, context, ec);
  296|   646k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   646k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|   646k|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|  23.5M|    {
  364|  23.5M|        visit_uint64(value, tag, context, ec);
  365|  23.5M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  23.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  23.5M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|   953k|    {
  301|   953k|        visit_end_array(context, ec);
  302|   953k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   953k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|   953k|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  12.1M|    {
  373|  12.1M|        visit_int64(value, tag, context, ec);
  374|  12.1M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  12.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  12.1M|    }
_ZN8jsoncons21basic_generic_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  381|  81.3k|    {
  382|  81.3k|        visit_half(value, tag, context, ec);
  383|  81.3k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  81.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  384|  81.3k|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|  34.3M|    {
  391|  34.3M|        visit_double(value, tag, context, ec);
  392|  34.3M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  34.3M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|  34.3M|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|  14.5M|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 13.5M, False: 1.03M]
  ------------------
  799|  14.5M|            {
  800|  14.5M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|   646k|        {
 1009|   646k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 162k, False: 483k]
  ------------------
 1010|   162k|            {
 1011|   162k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 52.6k, False: 109k]
  |  Branch (1011:86): [True: 48.8k, False: 3.82k]
  ------------------
 1012|  48.8k|                {
 1013|  48.8k|                    key_buffer_.push_back(',');
 1014|  48.8k|                }
 1015|   162k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|   162k|                key_buffer_.push_back('[');
 1017|   162k|            }
 1018|   483k|            else
 1019|   483k|            {
 1020|   483k|                switch (level_stack_.back().target_kind())
 1021|   483k|                {
 1022|   199k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 199k, False: 284k]
  ------------------
 1023|   199k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 147k, False: 51.7k]
  |  Branch (1023:65): [True: 95.1k, False: 52.6k]
  ------------------
 1024|  95.1k|                        {
 1025|  95.1k|                            key_buffer_.push_back(',');
 1026|  95.1k|                        }
 1027|   199k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|   199k|                        key_buffer_.push_back('[');
 1029|   199k|                        break;
 1030|   284k|                    default:
  ------------------
  |  Branch (1030:21): [True: 284k, False: 199k]
  ------------------
 1031|   284k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|   284k|                        destination_->begin_array(length, tag, context, ec);
 1033|   284k|                        break;
 1034|   483k|                }
 1035|   483k|            }
 1036|   646k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   646k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|   646k|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|   304M|            {
  816|   304M|                return even_odd_ == 0;
  817|   304M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|   205M|            {
  826|   205M|                return target_kind_;
  827|   205M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  54.3M|            {
  831|  54.3M|                return count_;
  832|  54.3M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|   161M|            {
  821|   161M|                return structure_kind_ == json_structure_kind::object;
  822|   161M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|   953k|        {
 1041|   953k|            switch (level_stack_.back().target_kind())
 1042|   953k|            {
 1043|   683k|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 683k, False: 269k]
  ------------------
 1044|   683k|                    key_buffer_.push_back(']');
 1045|   683k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   683k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 683k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1046|   683k|                    level_stack_.pop_back();
 1047|   683k|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 109k, False: 573k]
  ------------------
 1048|   109k|                    {
 1049|   109k|                        destination_->key(key_buffer_, context, ec);
 1050|   109k|                        key_buffer_.clear();
 1051|   109k|                    }
 1052|   573k|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 66.7k, False: 506k]
  ------------------
 1053|  66.7k|                    {
 1054|  66.7k|                        key_buffer_.push_back(':');
 1055|  66.7k|                    }
 1056|   683k|                    level_stack_.back().advance();
 1057|   683k|                    break;
 1058|   269k|                default:
  ------------------
  |  Branch (1058:17): [True: 269k, False: 683k]
  ------------------
 1059|   269k|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|   269k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 269k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1060|   269k|                    level_stack_.pop_back();
 1061|   269k|                    level_stack_.back().advance();
 1062|   269k|                    destination_->end_array(context, ec);
 1063|   269k|                    break;
 1064|   953k|            }
 1065|   953k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   953k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|   953k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|   106M|            {
  804|   106M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 92.9M, False: 13.8M]
  ------------------
  805|  92.9M|                {
  806|  92.9M|                    ++count_;
  807|  92.9M|                }
  808|   106M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 27.6M, False: 79.1M]
  ------------------
  809|  27.6M|                {
  810|  27.6M|                    even_odd_ = !even_odd_;
  811|  27.6M|                }
  812|   106M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  23.5M|        {
 1234|  23.5M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 4.74M, False: 18.8M]
  |  Branch (1234:49): [True: 10.7M, False: 8.07M]
  ------------------
 1235|  15.5M|            {
 1236|  15.5M|                key_.clear();
 1237|  15.5M|                jsoncons::from_integer(value,key_);
 1238|  15.5M|            }
 1239|       |
 1240|  23.5M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 4.74M, False: 18.8M]
  ------------------
 1241|  4.74M|            {
 1242|  4.74M|                switch (level_stack_.back().target_kind())
 1243|  4.74M|                {
 1244|  2.07M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 2.07M, False: 2.67M]
  ------------------
 1245|  2.07M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 2.06M, False: 6.53k]
  ------------------
 1246|  2.06M|                        {
 1247|  2.06M|                            key_buffer_.push_back(',');
 1248|  2.06M|                        }
 1249|  2.07M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  2.07M|                        key_buffer_.push_back(':');
 1251|  2.07M|                        break;
 1252|  2.67M|                    default:
  ------------------
  |  Branch (1252:21): [True: 2.67M, False: 2.07M]
  ------------------
 1253|  2.67M|                        destination_->key(key_, context, ec);
 1254|  2.67M|                        break;
 1255|  4.74M|                }
 1256|  4.74M|            }
 1257|  18.8M|            else
 1258|  18.8M|            {
 1259|  18.8M|                switch (level_stack_.back().target_kind())
 1260|  18.8M|                {
 1261|  10.7M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 10.7M, False: 8.07M]
  ------------------
 1262|  10.7M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 8.68M, False: 2.07M]
  |  Branch (1262:65): [True: 8.66M, False: 29.3k]
  ------------------
 1263|  8.66M|                        {
 1264|  8.66M|                            key_buffer_.push_back(',');
 1265|  8.66M|                        }
 1266|  10.7M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  10.7M|                        break;
 1268|  8.07M|                    default:
  ------------------
  |  Branch (1268:21): [True: 8.07M, False: 10.7M]
  ------------------
 1269|  8.07M|                        destination_->uint64_value(value, tag, context, ec);
 1270|  8.07M|                        break;
 1271|  18.8M|                }
 1272|  18.8M|            }
 1273|       |
 1274|  23.5M|            level_stack_.back().advance();
 1275|  23.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  23.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  23.5M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  12.1M|        {
 1280|  12.1M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 1.17M, False: 10.9M]
  |  Branch (1280:49): [True: 6.63M, False: 4.30M]
  ------------------
 1281|  7.80M|            {
 1282|  7.80M|                key_.clear();
 1283|  7.80M|                jsoncons::from_integer(value,key_);
 1284|  7.80M|            }
 1285|       |
 1286|  12.1M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 1.17M, False: 10.9M]
  ------------------
 1287|  1.17M|            {
 1288|  1.17M|                switch (level_stack_.back().target_kind())
 1289|  1.17M|                {
 1290|   326k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 326k, False: 849k]
  ------------------
 1291|   326k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 321k, False: 4.22k]
  ------------------
 1292|   321k|                        {
 1293|   321k|                            key_buffer_.push_back(',');
 1294|   321k|                        }
 1295|   326k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|   326k|                        key_buffer_.push_back(':');
 1297|   326k|                        break;
 1298|   849k|                    default:
  ------------------
  |  Branch (1298:21): [True: 849k, False: 326k]
  ------------------
 1299|   849k|                        destination_->key(key_, context, ec);
 1300|   849k|                        break;
 1301|  1.17M|                }
 1302|  1.17M|            }
 1303|  10.9M|            else
 1304|  10.9M|            {
 1305|  10.9M|                switch (level_stack_.back().target_kind())
 1306|  10.9M|                {
 1307|  6.63M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 6.63M, False: 4.30M]
  ------------------
 1308|  6.63M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 6.30M, False: 327k]
  |  Branch (1308:65): [True: 6.25M, False: 51.8k]
  ------------------
 1309|  6.25M|                        {
 1310|  6.25M|                            key_buffer_.push_back(',');
 1311|  6.25M|                        }
 1312|  6.63M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  6.63M|                        break;
 1314|  4.30M|                    default:
  ------------------
  |  Branch (1314:21): [True: 4.30M, False: 6.63M]
  ------------------
 1315|  4.30M|                        destination_->int64_value(value, tag, context, ec);
 1316|  4.30M|                        break;
 1317|  10.9M|                }
 1318|  10.9M|            }
 1319|       |
 1320|  12.1M|            level_stack_.back().advance();
 1321|  12.1M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  12.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  12.1M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|  34.3M|        {
 1375|  34.3M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 7.80k, False: 34.3M]
  |  Branch (1375:49): [True: 28.0M, False: 6.25M]
  ------------------
 1376|  28.0M|            {
 1377|  28.0M|                key_.clear();
 1378|  28.0M|                string_sink<string_type> sink(key_);
 1379|  28.0M|                jsoncons::write_double f{float_chars_format::general,0};
 1380|  28.0M|                f(value, sink);
 1381|  28.0M|            }
 1382|       |
 1383|  34.3M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 7.80k, False: 34.3M]
  ------------------
 1384|  7.80k|            {
 1385|  7.80k|                switch (level_stack_.back().target_kind())
 1386|  7.80k|                {
 1387|  5.08k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 5.08k, False: 2.72k]
  ------------------
 1388|  5.08k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 3.43k, False: 1.65k]
  ------------------
 1389|  3.43k|                        {
 1390|  3.43k|                            key_buffer_.push_back(',');
 1391|  3.43k|                        }
 1392|  5.08k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|  5.08k|                        key_buffer_.push_back(':');
 1394|  5.08k|                        break;
 1395|  2.72k|                    default:
  ------------------
  |  Branch (1395:21): [True: 2.72k, False: 5.08k]
  ------------------
 1396|  2.72k|                        destination_->key(key_, context, ec);
 1397|  2.72k|                        break;
 1398|  7.80k|                }
 1399|  7.80k|            }
 1400|  34.3M|            else
 1401|  34.3M|            {
 1402|  34.3M|                switch (level_stack_.back().target_kind())
 1403|  34.3M|                {
 1404|  28.0M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 28.0M, False: 6.25M]
  ------------------
 1405|  28.0M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 28.0M, False: 3.78k]
  |  Branch (1405:65): [True: 28.0M, False: 30.9k]
  ------------------
 1406|  28.0M|                        {
 1407|  28.0M|                            key_buffer_.push_back(',');
 1408|  28.0M|                        }
 1409|  28.0M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|  28.0M|                        break;
 1411|  6.25M|                    default:
  ------------------
  |  Branch (1411:21): [True: 6.25M, False: 28.0M]
  ------------------
 1412|  6.25M|                        destination_->double_value(value, tag, context, ec);
 1413|  6.25M|                        break;
 1414|  34.3M|                }
 1415|  34.3M|            }
 1416|       |
 1417|  34.3M|            level_stack_.back().advance();
 1418|  34.3M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  34.3M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|  34.3M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|  2.89k|        {
  882|  2.89k|            destination_->flush();
  883|  2.89k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  886|   295k|        {
  887|   295k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (887:17): [True: 145k, False: 149k]
  ------------------
  888|   145k|            {
  889|   145k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (889:21): [True: 144k, False: 1.55k]
  |  Branch (889:86): [True: 137k, False: 6.79k]
  ------------------
  890|   137k|                {
  891|   137k|                    key_buffer_.push_back(',');
  892|   137k|                }
  893|   145k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  894|   145k|                key_buffer_.push_back('{');
  895|   145k|            }
  896|   149k|            else
  897|   149k|            {
  898|   149k|                switch (level_stack_.back().target_kind())
  899|   149k|                {
  900|   142k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (900:21): [True: 142k, False: 7.08k]
  ------------------
  901|   142k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  902|   142k|                        key_buffer_.push_back('{');
  903|   142k|                        break;
  904|  7.08k|                    default:
  ------------------
  |  Branch (904:21): [True: 7.08k, False: 142k]
  ------------------
  905|  7.08k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  906|  7.08k|                        destination_->begin_object(tag, context, ec);
  907|  7.08k|                        break;
  908|   149k|                }
  909|   149k|            }
  910|   295k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   295k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  911|   295k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|  13.2M|        {
  915|  13.2M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 3.01M, False: 10.2M]
  ------------------
  916|  3.01M|            {
  917|  3.01M|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 266k, False: 2.74M]
  |  Branch (917:86): [True: 252k, False: 14.6k]
  ------------------
  918|   252k|                {
  919|   252k|                    key_buffer_.push_back(',');
  920|   252k|                }
  921|  3.01M|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|  3.01M|                key_buffer_.push_back('{');
  923|  3.01M|            }
  924|  10.2M|            else
  925|  10.2M|            {
  926|  10.2M|                switch (level_stack_.back().target_kind())
  927|  10.2M|                {
  928|   596k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 596k, False: 9.61M]
  ------------------
  929|   596k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 337k, False: 258k]
  |  Branch (929:65): [True: 334k, False: 3.37k]
  ------------------
  930|   334k|                        {
  931|   334k|                            key_buffer_.push_back(',');
  932|   334k|                        }
  933|   596k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|   596k|                        key_buffer_.push_back('{');
  935|   596k|                        break;
  936|  9.61M|                    default:
  ------------------
  |  Branch (936:21): [True: 9.61M, False: 596k]
  ------------------
  937|  9.61M|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  9.61M|                        destination_->begin_object(length, tag, context, ec);
  939|  9.61M|                        break;
  940|  10.2M|                }
  941|  10.2M|            }
  942|  13.2M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|  13.2M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|  13.4M|        {
  947|  13.4M|            switch (level_stack_.back().target_kind())
  948|  13.4M|            {
  949|  3.86M|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 3.86M, False: 9.61M]
  ------------------
  950|  3.86M|                    key_buffer_.push_back('}');
  951|  3.86M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|  3.86M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 3.86M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  952|  3.86M|                    level_stack_.pop_back();
  953|       |                    
  954|  3.86M|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 2.74M, False: 1.11M]
  ------------------
  955|  2.74M|                    {
  956|  2.74M|                        destination_->key(key_buffer_,context, ec);
  957|  2.74M|                        key_buffer_.clear();
  958|  2.74M|                    }
  959|  1.11M|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 391k, False: 725k]
  ------------------
  960|   391k|                    {
  961|   391k|                        key_buffer_.push_back(':');
  962|   391k|                    }
  963|  3.86M|                    level_stack_.back().advance();
  964|  3.86M|                    break;
  965|  9.61M|                default:
  ------------------
  |  Branch (965:17): [True: 9.61M, False: 3.86M]
  ------------------
  966|  9.61M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   49|  9.61M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 9.61M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  967|  9.61M|                    level_stack_.pop_back();
  968|  9.61M|                    level_stack_.back().advance();
  969|  9.61M|                    destination_->end_object(context, ec);
  970|  9.61M|                    break;
  971|  13.4M|            }
  972|  13.4M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|  13.4M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  976|   377k|        {
  977|   377k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (977:17): [True: 18.6k, False: 359k]
  ------------------
  978|  18.6k|            {
  979|  18.6k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (979:21): [True: 17.6k, False: 979]
  |  Branch (979:86): [True: 16.0k, False: 1.57k]
  ------------------
  980|  16.0k|                {
  981|  16.0k|                    key_buffer_.push_back(',');
  982|  16.0k|                }
  983|  18.6k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
  984|  18.6k|                key_buffer_.push_back('[');
  985|  18.6k|            }
  986|   359k|            else
  987|   359k|            {
  988|   359k|                switch (level_stack_.back().target_kind())
  989|   359k|                {
  990|   346k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (990:21): [True: 346k, False: 12.5k]
  ------------------
  991|   346k|                        if (level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (991:29): [True: 18.2k, False: 328k]
  |  Branch (991:64): [True: 17.4k, False: 718]
  ------------------
  992|  17.4k|                        {
  993|  17.4k|                            key_buffer_.push_back(',');
  994|  17.4k|                        }
  995|   346k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
  996|   346k|                        key_buffer_.push_back('[');
  997|   346k|                        break;
  998|  12.5k|                    default:
  ------------------
  |  Branch (998:21): [True: 12.5k, False: 346k]
  ------------------
  999|  12.5k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1000|  12.5k|                        destination_->begin_array(tag, context, ec);
 1001|  12.5k|                        break;
 1002|   359k|                }
 1003|   359k|            }
 1004|   377k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   377k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1005|   377k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|  1.46M|        {
 1476|  1.46M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 113k, False: 1.35M]
  |  Branch (1476:49): [True: 660k, False: 694k]
  ------------------
 1477|   773k|            {
 1478|   773k|                key_.clear(); 
 1479|   773k|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|   773k|            }
 1481|       |
 1482|  1.46M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 113k, False: 1.35M]
  ------------------
 1483|   113k|            {
 1484|   113k|                switch (level_stack_.back().target_kind())
 1485|   113k|                {
 1486|  77.7k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 77.7k, False: 35.8k]
  ------------------
 1487|  77.7k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 75.4k, False: 2.28k]
  ------------------
 1488|  75.4k|                        {
 1489|  75.4k|                            key_buffer_.push_back(',');
 1490|  75.4k|                        }
 1491|  77.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|  77.7k|                        key_buffer_.push_back(':');
 1493|  77.7k|                        break;
 1494|  35.8k|                    default:
  ------------------
  |  Branch (1494:21): [True: 35.8k, False: 77.7k]
  ------------------
 1495|  35.8k|                        destination_->key(key_, context, ec);
 1496|  35.8k|                        break;
 1497|   113k|                }
 1498|   113k|            }
 1499|  1.35M|            else
 1500|  1.35M|            {
 1501|  1.35M|                switch (level_stack_.back().target_kind())
 1502|  1.35M|                {
 1503|   660k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 660k, False: 694k]
  ------------------
 1504|   660k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 583k, False: 77.2k]
  |  Branch (1504:65): [True: 582k, False: 443]
  ------------------
 1505|   582k|                        {
 1506|   582k|                            key_buffer_.push_back(',');
 1507|   582k|                        }
 1508|   660k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|   660k|                        break;
 1510|   694k|                    default:
  ------------------
  |  Branch (1510:21): [True: 694k, False: 660k]
  ------------------
 1511|   694k|                        destination_->null_value(tag, context, ec);
 1512|   694k|                        break;
 1513|  1.35M|                }
 1514|  1.35M|            }
 1515|       |
 1516|  1.46M|            level_stack_.back().advance();
 1517|  1.46M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.46M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|  1.46M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  3.96M|        {
 1423|  3.96M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 636k, False: 3.33M]
  |  Branch (1423:49): [True: 949k, False: 2.38M]
  ------------------
 1424|  1.58M|            {
 1425|  1.58M|                key_.clear(); 
 1426|  1.58M|                if (value)
  ------------------
  |  Branch (1426:21): [True: 576k, False: 1.00M]
  ------------------
 1427|   576k|                {
 1428|   576k|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|   576k|                }
 1430|  1.00M|                else
 1431|  1.00M|                {
 1432|  1.00M|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|  1.00M|                }
 1434|  1.58M|            }
 1435|       |
 1436|  3.96M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 636k, False: 3.33M]
  ------------------
 1437|   636k|            {
 1438|   636k|                switch (level_stack_.back().target_kind())
 1439|   636k|                {
 1440|   496k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 496k, False: 139k]
  ------------------
 1441|   496k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 495k, False: 734]
  ------------------
 1442|   495k|                        {
 1443|   495k|                            key_buffer_.push_back(',');
 1444|   495k|                        }
 1445|   496k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|   496k|                        key_buffer_.push_back(':');
 1447|   496k|                        break;
 1448|   139k|                    default:
  ------------------
  |  Branch (1448:21): [True: 139k, False: 496k]
  ------------------
 1449|   139k|                        destination_->key(key_, context, ec);
 1450|   139k|                        break;
 1451|   636k|                }
 1452|   636k|            }
 1453|  3.33M|            else
 1454|  3.33M|            {
 1455|  3.33M|                switch (level_stack_.back().target_kind())
 1456|  3.33M|                {
 1457|   949k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 949k, False: 2.38M]
  ------------------
 1458|   949k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 454k, False: 495k]
  |  Branch (1458:65): [True: 454k, False: 423]
  ------------------
 1459|   454k|                        {
 1460|   454k|                            key_buffer_.push_back(',');
 1461|   454k|                        }
 1462|   949k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|   949k|                        break;
 1464|  2.38M|                    default:
  ------------------
  |  Branch (1464:21): [True: 2.38M, False: 949k]
  ------------------
 1465|  2.38M|                        destination_->bool_value(value, tag, context, ec);
 1466|  2.38M|                        break;
 1467|  3.33M|                }
 1468|  3.33M|            }
 1469|       |
 1470|  3.96M|            level_stack_.back().advance();
 1471|  3.96M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.96M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  3.96M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|  3.63M|        {
 1073|  3.63M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 1.07M, False: 2.55M]
  ------------------
 1074|  1.07M|            {
 1075|  1.07M|                switch (level_stack_.back().target_kind())
 1076|  1.07M|                {
 1077|   504k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 504k, False: 572k]
  ------------------
 1078|   504k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 503k, False: 1.46k]
  ------------------
 1079|   503k|                        {
 1080|   503k|                            key_buffer_.push_back(',');
 1081|   503k|                        }
 1082|   504k|                        key_buffer_.push_back('\"');
 1083|   504k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|   504k|                        key_buffer_.push_back('\"');
 1085|   504k|                        key_buffer_.push_back(':');
 1086|   504k|                        break;
 1087|   572k|                    default:
  ------------------
  |  Branch (1087:21): [True: 572k, False: 504k]
  ------------------
 1088|   572k|                        destination_->key(value, context, ec);
 1089|   572k|                        break;
 1090|  1.07M|                }
 1091|  1.07M|            }
 1092|  2.55M|            else
 1093|  2.55M|            {
 1094|  2.55M|                switch (level_stack_.back().target_kind())
 1095|  2.55M|                {
 1096|   638k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 638k, False: 1.92M]
  ------------------
 1097|   638k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 132k, False: 506k]
  |  Branch (1097:65): [True: 131k, False: 925]
  ------------------
 1098|   131k|                        {
 1099|   131k|                            key_buffer_.push_back(',');
 1100|   131k|                        }
 1101|   638k|                        key_buffer_.push_back('\"');
 1102|   638k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|   638k|                        key_buffer_.push_back('\"');
 1104|   638k|                        break;
 1105|  1.92M|                    default:
  ------------------
  |  Branch (1105:21): [True: 1.92M, False: 638k]
  ------------------
 1106|  1.92M|                        destination_->string_value(value, tag, context, ec);
 1107|  1.92M|                        break;
 1108|  2.55M|                }
 1109|  2.55M|            }
 1110|       |
 1111|  3.63M|            level_stack_.back().advance();
 1112|  3.63M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.63M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|  3.63M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  13.1M|        {
 1120|  13.1M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 2.73M, False: 10.3M]
  |  Branch (1120:49): [True: 5.55M, False: 4.83M]
  ------------------
 1121|  8.28M|            {
 1122|  8.28M|                key_.clear();
 1123|  8.28M|                switch (tag)
 1124|  8.28M|                {
 1125|    925|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 925, False: 8.28M]
  ------------------
 1126|    925|                        bytes_to_base64(value.begin(), value.end(), key_);
 1127|    925|                        break;
 1128|    771|                    case semantic_tag::base16:
  ------------------
  |  Branch (1128:21): [True: 771, False: 8.28M]
  ------------------
 1129|    771|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|    771|                        break;
 1131|  8.28M|                    default:
  ------------------
  |  Branch (1131:21): [True: 8.28M, False: 1.69k]
  ------------------
 1132|  8.28M|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  8.28M|                        break;
 1134|  8.28M|                }
 1135|  8.28M|            }
 1136|       |
 1137|  13.1M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 2.73M, False: 10.3M]
  ------------------
 1138|  2.73M|            {
 1139|  2.73M|                switch (level_stack_.back().target_kind())
 1140|  2.73M|                {
 1141|  1.77M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 1.77M, False: 958k]
  ------------------
 1142|  1.77M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 1.76M, False: 5.87k]
  ------------------
 1143|  1.76M|                        {
 1144|  1.76M|                            key_buffer_.push_back(',');
 1145|  1.76M|                        }
 1146|  1.77M|                        key_buffer_.push_back('\"');
 1147|  1.77M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|  1.77M|                        key_buffer_.push_back('\"');
 1149|  1.77M|                        key_buffer_.push_back(':');
 1150|  1.77M|                        break;
 1151|   958k|                    default:
  ------------------
  |  Branch (1151:21): [True: 958k, False: 1.77M]
  ------------------
 1152|   958k|                        destination_->key(key_, context, ec);
 1153|   958k|                        break;
 1154|  2.73M|                }
 1155|  2.73M|            }
 1156|  10.3M|            else
 1157|  10.3M|            {
 1158|  10.3M|                switch (level_stack_.back().target_kind())
 1159|  10.3M|                {
 1160|  5.55M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 5.55M, False: 4.83M]
  ------------------
 1161|  5.55M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 3.78M, False: 1.76M]
  |  Branch (1161:65): [True: 3.77M, False: 7.03k]
  ------------------
 1162|  3.77M|                        {
 1163|  3.77M|                            key_buffer_.push_back(',');
 1164|  3.77M|                        }
 1165|  5.55M|                        key_buffer_.push_back('\"');
 1166|  5.55M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  5.55M|                        key_buffer_.push_back('\"');
 1168|  5.55M|                        break;
 1169|  4.83M|                    default:
  ------------------
  |  Branch (1169:21): [True: 4.83M, False: 5.55M]
  ------------------
 1170|  4.83M|                        destination_->byte_string_value(value, tag, context, ec);
 1171|  4.83M|                        break;
 1172|  10.3M|                }
 1173|  10.3M|            }
 1174|       |
 1175|  13.1M|            level_stack_.back().advance();
 1176|  13.1M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  13.1M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|  28.6k|        {
 1184|  28.6k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 7.62k, False: 21.0k]
  |  Branch (1184:49): [True: 13.4k, False: 7.54k]
  ------------------
 1185|  21.0k|            {
 1186|  21.0k|                key_.clear();
 1187|  21.0k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|  21.0k|            }
 1189|       |
 1190|  28.6k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 7.62k, False: 21.0k]
  ------------------
 1191|  7.62k|            {
 1192|  7.62k|                switch (level_stack_.back().target_kind())
 1193|  7.62k|                {
 1194|  3.82k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 3.82k, False: 3.80k]
  ------------------
 1195|  3.82k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 3.33k, False: 489]
  ------------------
 1196|  3.33k|                        {
 1197|  3.33k|                            key_buffer_.push_back(',');
 1198|  3.33k|                        }
 1199|  3.82k|                        key_buffer_.push_back('\"');
 1200|  3.82k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|  3.82k|                        key_buffer_.push_back('\"');
 1202|  3.82k|                        key_buffer_.push_back(':');
 1203|  3.82k|                        break;
 1204|  3.80k|                    default:
  ------------------
  |  Branch (1204:21): [True: 3.80k, False: 3.82k]
  ------------------
 1205|  3.80k|                        destination_->key(key_, context, ec);
 1206|  3.80k|                        break;
 1207|  7.62k|                }
 1208|  7.62k|            }
 1209|  21.0k|            else
 1210|  21.0k|            {
 1211|  21.0k|                switch (level_stack_.back().target_kind())
 1212|  21.0k|                {
 1213|  13.4k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 13.4k, False: 7.54k]
  ------------------
 1214|  13.4k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 11.2k, False: 2.23k]
  |  Branch (1214:65): [True: 10.5k, False: 717]
  ------------------
 1215|  10.5k|                        {
 1216|  10.5k|                            key_buffer_.push_back(',');
 1217|  10.5k|                        }
 1218|  13.4k|                        key_buffer_.push_back('\"');
 1219|  13.4k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|  13.4k|                        key_buffer_.push_back('\"');
 1221|  13.4k|                        break;
 1222|  7.54k|                    default:
  ------------------
  |  Branch (1222:21): [True: 7.54k, False: 13.4k]
  ------------------
 1223|  7.54k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|  7.54k|                        break;
 1225|  21.0k|                }
 1226|  21.0k|            }
 1227|       |
 1228|  28.6k|            level_stack_.back().advance();
 1229|  28.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  28.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|  28.6k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1325|  81.3k|        {
 1326|  81.3k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1326:17): [True: 28.3k, False: 52.9k]
  |  Branch (1326:49): [True: 42.1k, False: 10.8k]
  ------------------
 1327|  70.5k|            {
 1328|  70.5k|                key_.clear();
 1329|  70.5k|                jsoncons::string_sink<string_type> sink(key_);
 1330|  70.5k|                jsoncons::write_double f{float_chars_format::general,0};
 1331|  70.5k|                double x = binary::decode_half(value);
 1332|  70.5k|                f(x, sink);
 1333|  70.5k|            }
 1334|       |
 1335|  81.3k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1335:17): [True: 28.3k, False: 52.9k]
  ------------------
 1336|  28.3k|            {
 1337|  28.3k|                switch (level_stack_.back().target_kind())
 1338|  28.3k|                {
 1339|  23.7k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1339:21): [True: 23.7k, False: 4.58k]
  ------------------
 1340|  23.7k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1340:29): [True: 22.1k, False: 1.64k]
  ------------------
 1341|  22.1k|                        {
 1342|  22.1k|                            key_buffer_.push_back(',');
 1343|  22.1k|                        }
 1344|  23.7k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1345|  23.7k|                        key_buffer_.push_back(':');
 1346|  23.7k|                        break;
 1347|  4.58k|                    default:
  ------------------
  |  Branch (1347:21): [True: 4.58k, False: 23.7k]
  ------------------
 1348|  4.58k|                        destination_->key(key_, context, ec);
 1349|  4.58k|                        break;
 1350|  28.3k|                }
 1351|  28.3k|            }
 1352|  52.9k|            else
 1353|  52.9k|            {
 1354|  52.9k|                switch (level_stack_.back().target_kind())
 1355|  52.9k|                {
 1356|  42.1k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1356:21): [True: 42.1k, False: 10.8k]
  ------------------
 1357|  42.1k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1357:29): [True: 22.2k, False: 19.9k]
  |  Branch (1357:65): [True: 21.4k, False: 726]
  ------------------
 1358|  21.4k|                        {
 1359|  21.4k|                            key_buffer_.push_back(',');
 1360|  21.4k|                        }
 1361|  42.1k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1362|  42.1k|                        break;
 1363|  10.8k|                    default:
  ------------------
  |  Branch (1363:21): [True: 10.8k, False: 42.1k]
  ------------------
 1364|  10.8k|                        destination_->half_value(value, tag, context, ec);
 1365|  10.8k|                        break;
 1366|  52.9k|                }
 1367|  52.9k|            }
 1368|       |
 1369|  81.3k|            level_stack_.back().advance();
 1370|  81.3k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  81.3k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1371|  81.3k|        }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  13.1M|    {
  344|  13.1M|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  13.1M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  13.1M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|  28.6k|    {
  355|  28.6k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|  28.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  28.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|  28.6k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  3.96M|    {
  324|  3.96M|        visit_bool(value, tag, context, ec);
  325|  3.96M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.96M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  3.96M|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|  1.46M|    {
  315|  1.46M|        visit_null(tag, context, ec);
  316|  1.46M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.46M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|  1.46M|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|  3.63M|    {
  333|  3.63M|        visit_string(value, tag, context, ec);
  334|  3.63M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.63M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|  3.63M|    }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  288|   377k|    {
  289|   377k|        visit_begin_array(tag, context, ec);
  290|   377k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   377k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  291|   377k|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  267|   295k|    {
  268|   295k|        visit_begin_object(tag, context, ec);
  269|   295k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   295k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  270|   295k|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|  13.2M|    {
  277|  13.2M|        visit_begin_object(length, tag, context, ec);
  278|  13.2M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|  13.2M|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|  13.4M|    {
  283|  13.4M|        visit_end_object(context, ec);
  284|  13.4M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  13.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|  13.4M|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|  2.89k|    {
   58|  2.89k|        visit_flush();
   59|  2.89k|    }

_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEED2Ev:
  105|   316k|        {
  106|   316k|            flatten_and_destroy();
  107|   316k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE19flatten_and_destroyEv:
  248|   316k|        {
  249|  16.1M|            while (!data_.empty())
  ------------------
  |  Branch (249:20): [True: 15.8M, False: 316k]
  ------------------
  250|  15.8M|            {
  251|  15.8M|                value_type current = std::move(data_.back());
  252|  15.8M|                data_.pop_back();
  253|  15.8M|                switch (current.storage_kind())
  254|  15.8M|                {
  255|  70.4k|                    case json_storage_kind::array:
  ------------------
  |  Branch (255:21): [True: 70.4k, False: 15.7M]
  ------------------
  256|  70.4k|                    {
  257|  70.4k|                        for (auto&& item : current.array_range())
  ------------------
  |  Branch (257:42): [True: 376k, False: 70.4k]
  ------------------
  258|   376k|                        {
  259|   376k|                            if ((item.storage_kind() == json_storage_kind::array || item.storage_kind() == json_storage_kind::object)
  ------------------
  |  Branch (259:34): [True: 16.1k, False: 360k]
  |  Branch (259:85): [True: 4.20k, False: 355k]
  ------------------
  260|  20.4k|                                && !item.empty()) // non-empty object or array
  ------------------
  |  Branch (260:36): [True: 15.0k, False: 5.31k]
  ------------------
  261|  15.0k|                            {
  262|  15.0k|                                data_.push_back(std::move(item));
  263|  15.0k|                            }
  264|   376k|                        }
  265|  70.4k|                        current.clear();                           
  266|  70.4k|                        break;
  267|      0|                    }
  268|  5.34M|                    case json_storage_kind::object:
  ------------------
  |  Branch (268:21): [True: 5.34M, False: 10.4M]
  ------------------
  269|  5.34M|                    {
  270|  5.34M|                        for (auto&& kv : current.object_range())
  ------------------
  |  Branch (270:40): [True: 18.5k, False: 5.34M]
  ------------------
  271|  18.5k|                        {
  272|  18.5k|                            if ((kv.value().storage_kind() == json_storage_kind::array || kv.value().storage_kind() == json_storage_kind::object)
  ------------------
  |  Branch (272:34): [True: 1.94k, False: 16.6k]
  |  Branch (272:91): [True: 5.79k, False: 10.8k]
  ------------------
  273|  7.74k|                                && !kv.value().empty()) // non-empty object or array
  ------------------
  |  Branch (273:36): [True: 5.42k, False: 2.31k]
  ------------------
  274|  5.42k|                            {
  275|  5.42k|                                data_.push_back(std::move(kv.value()));
  276|  5.42k|                            }
  277|  18.5k|                        }
  278|  5.34M|                        current.clear();                           
  279|  5.34M|                        break;
  280|      0|                    }
  281|  10.3M|                    default:
  ------------------
  |  Branch (281:21): [True: 10.3M, False: 5.41M]
  ------------------
  282|  10.3M|                        break;
  283|  15.8M|                }
  284|  15.8M|            }
  285|   316k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5beginEv:
  222|  70.4k|        iterator begin() {return data_.begin();}
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE3endEv:
  224|  70.4k|        iterator end() {return data_.end();}
_ZNK8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5emptyEv:
  125|  23.7k|        {
  126|  23.7k|            return data_.empty();
  127|  23.7k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5clearEv:
  142|  70.4k|        void clear() {data_.clear();}
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEEC2ERKS5_:
   49|  19.5k|            : allocator_holder<allocator_type>(alloc), 
   50|  19.5k|              data_(value_allocator_type(alloc))
   51|  19.5k|        {
   52|  19.5k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE12emplace_backIJS6_EEERS6_DpOT_:
  217|  3.35k|        {
  218|  3.35k|            data_.emplace_back(std::forward<Args>(args)...);
  219|  3.35k|            return data_.back();
  220|  3.35k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE7reserveEm:
  153|  68.1k|        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|  16.1M|        {
  179|  16.1M|            data_.emplace_back(std::forward<T>(value));
  180|  16.1M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEEC2Ev:
   46|   296k|        json_array() = default;

_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_EC2ERKS5_S9_:
   74|  11.0k|        : alloc_(alloc),
   75|  11.0k|          result_(),
   76|  11.0k|          name_(alloc),
   77|  11.0k|          item_stack_(alloc),
   78|  11.0k|          structure_stack_(temp_alloc)
   79|  11.0k|    {
   80|       |        //item_stack_.reserve(1000);
   81|       |        //structure_stack_.reserve(100);
   82|  11.0k|        structure_stack_.emplace_back(json_structure_kind::root_kind, 0);
   83|  11.0k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E14json_structureC2ENS7_19json_structure_kindEm:
   51|  9.93M|            : structure_kind(type), structure_index(offset)
   52|  9.93M|        {
   53|  9.93M|        }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E15visit_end_arrayERKNS_11ser_contextERNS3_10error_codeE:
  186|   269k|    {
  187|   269k|        JSONCONS_ASSERT(structure_stack_.size() > 1);
  ------------------
  |  |   49|   269k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 269k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  188|   269k|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::array_kind);
  ------------------
  |  |   49|   269k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 269k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  189|   269k|        const size_t structure_index = structure_stack_.back().structure_index;
  190|   269k|        JSONCONS_ASSERT(item_stack_.size() > structure_index);
  ------------------
  |  |   49|   269k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 269k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  191|       |
  192|   269k|        auto& structure = structure_stack_[structure_stack_.size()-2];
  193|   269k|        auto& arr = item_stack_[structure_index].value;
  194|   269k|        const size_t size = item_stack_.size() - (structure_index + 1);
  195|       |
  196|   269k|        if (size > 0)
  ------------------
  |  Branch (196:13): [True: 68.1k, False: 201k]
  ------------------
  197|  68.1k|        {
  198|  68.1k|            arr.reserve(size);
  199|  68.1k|            auto first = item_stack_.begin() + (structure_index+1);
  200|  68.1k|            auto last = first + size;
  201|  16.2M|            for (auto it = first; it != last; ++it)
  ------------------
  |  Branch (201:35): [True: 16.1M, False: 68.1k]
  ------------------
  202|  16.1M|            {
  203|  16.1M|                arr.push_back(std::move((*it).value));
  204|  16.1M|            }
  205|  68.1k|            item_stack_.erase(first, item_stack_.end());
  206|  68.1k|        }
  207|       |
  208|   269k|        if (structure.structure_kind == json_structure_kind::root_kind)
  ------------------
  |  Branch (208:13): [True: 423, False: 269k]
  ------------------
  209|    423|        {
  210|    423|            result_ = std::move(item_stack_.front().value);
  211|    423|            item_stack_.pop_back();
  212|    423|            is_valid_ = true;
  213|    423|        }
  214|       |
  215|   269k|        structure_stack_.pop_back();
  216|   269k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   269k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  217|   269k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  311|  8.07M|    {
  312|  8.07M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (312:17): [True: 8.07M, False: 0]
  ------------------
  313|  8.07M|        {
  314|  2.66M|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (314:13): [True: 2.66M, False: 5.40M]
  ------------------
  315|  2.66M|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  316|  2.66M|                break;
  317|  5.40M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (317:13): [True: 5.40M, False: 2.66M]
  ------------------
  318|  5.40M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  319|  5.40M|                break;
  320|     71|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (320:13): [True: 71, False: 8.07M]
  ------------------
  321|     71|                result_ = Json(value,tag);
  322|     71|                is_valid_ = true;
  323|     71|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|     71|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  324|  8.07M|        }
  325|  8.07M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  8.07M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  8.07M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  290|  4.30M|    {
  291|  4.30M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (291:17): [True: 4.30M, False: 0]
  ------------------
  292|  4.30M|        {
  293|   842k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (293:13): [True: 842k, False: 3.46M]
  ------------------
  294|   842k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  295|   842k|                break;
  296|  3.46M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (296:13): [True: 3.46M, False: 842k]
  ------------------
  297|  3.46M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  298|  3.46M|                break;
  299|     96|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (299:13): [True: 96, False: 4.30M]
  ------------------
  300|     96|                result_ = Json(value,tag);
  301|     96|                is_valid_ = true;
  302|     96|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|     96|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|  4.30M|        }
  304|  4.30M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  4.30M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  305|  4.30M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  353|  6.25M|    {
  354|  6.25M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (354:17): [True: 6.25M, False: 0]
  ------------------
  355|  6.25M|        {
  356|  1.95k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (356:13): [True: 1.95k, False: 6.24M]
  ------------------
  357|  1.95k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  358|  1.95k|                break;
  359|  6.24M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (359:13): [True: 6.24M, False: 1.97k]
  ------------------
  360|  6.24M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  361|  6.24M|                break;
  362|     24|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (362:13): [True: 24, False: 6.25M]
  ------------------
  363|     24|                result_ = Json(value, tag);
  364|     24|                is_valid_ = true;
  365|     24|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|     24|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  6.25M|        }
  367|  6.25M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  6.25M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  6.25M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E11visit_flushEv:
  122|  2.89k|    {
  123|  2.89k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  126|  9.62M|    {
  127|  9.62M|        if (structure_stack_.back().structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (127:13): [True: 2.75M, False: 6.86M]
  ------------------
  128|  2.75M|        {
  129|  2.75M|            structure_stack_.emplace_back(json_structure_kind::object_kind, item_stack_.size());
  130|  2.75M|            item_stack_.emplace_back(std::move(name_), index_++, json_object_arg, tag);
  131|  2.75M|        }
  132|  6.86M|        else
  133|  6.86M|        {
  134|  6.86M|            structure_stack_.emplace_back(json_structure_kind::object_kind, item_stack_.size());
  135|  6.86M|            item_stack_.emplace_back(key_type(alloc_), 0, json_object_arg, tag);
  136|  6.86M|        }
  137|  9.62M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  9.62M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  138|  9.62M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E16visit_end_objectERKNS_11ser_contextERNS3_10error_codeE:
  141|  9.61M|    {
  142|  9.61M|        JSONCONS_ASSERT(structure_stack_.size() > 0);
  ------------------
  |  |   49|  9.61M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 9.61M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  143|  9.61M|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::object_kind);
  ------------------
  |  |   49|  9.61M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 9.61M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  144|  9.61M|        const size_t structure_index = structure_stack_.back().structure_index;
  145|  9.61M|        JSONCONS_ASSERT(item_stack_.size() > structure_index);
  ------------------
  |  |   49|  9.61M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 9.61M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  146|       |
  147|  9.61M|        const size_t size = item_stack_.size() - (structure_index + 1);
  148|  9.61M|        auto first = item_stack_.begin() + (structure_index+1);
  149|  9.61M|        auto& structure = structure_stack_[structure_stack_.size()-2];
  150|  9.61M|        auto& obj = item_stack_[structure_index].value;
  151|       |
  152|  9.61M|        if (size > 0)
  ------------------
  |  Branch (152:13): [True: 26.5k, False: 9.58M]
  ------------------
  153|  26.5k|        {
  154|  26.5k|            obj.template cast<typename Json::object_storage>().value().uninitialized_init(
  155|  26.5k|                &item_stack_[structure_index+1], size);
  156|  26.5k|            item_stack_.erase(first, item_stack_.end());
  157|  26.5k|        }
  158|       |
  159|  9.61M|        if (structure.structure_kind == json_structure_kind::root_kind)
  ------------------
  |  Branch (159:13): [True: 1.17k, False: 9.61M]
  ------------------
  160|  1.17k|        {
  161|  1.17k|            result_ = std::move(item_stack_.front().value);
  162|  1.17k|            item_stack_.pop_back();
  163|  1.17k|            is_valid_ = true;
  164|  1.17k|        }
  165|       |
  166|  9.61M|        structure_stack_.pop_back();
  167|  9.61M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  9.61M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  168|  9.61M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  171|   296k|    {
  172|   296k|        if (structure_stack_.back().structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (172:13): [True: 114k, False: 182k]
  ------------------
  173|   114k|        {
  174|   114k|            structure_stack_.emplace_back(json_structure_kind::array_kind, item_stack_.size());
  175|   114k|            item_stack_.emplace_back(std::move(name_), index_++, json_array_arg, tag);
  176|   114k|        }
  177|   182k|        else
  178|   182k|        {
  179|   182k|            structure_stack_.emplace_back(json_structure_kind::array_kind, item_stack_.size());
  180|   182k|            item_stack_.emplace_back(key_type(alloc_), 0, json_array_arg, tag);
  181|   182k|        }
  182|   296k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   296k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  183|   296k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E9visit_keyERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  220|  8.09M|    {
  221|  8.09M|        name_ = key_type(name.data(),name.length(),alloc_);
  222|  8.09M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  8.09M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  223|  8.09M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  389|   694k|    {
  390|   694k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (390:17): [True: 694k, False: 0]
  ------------------
  391|   694k|        {
  392|  34.8k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (392:13): [True: 34.8k, False: 659k]
  ------------------
  393|  34.8k|                item_stack_.emplace_back(std::move(name_), index_++, null_type(), tag);
  394|  34.8k|                break;
  395|   659k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (395:13): [True: 659k, False: 34.8k]
  ------------------
  396|   659k|                item_stack_.emplace_back(key_type(alloc_), 0, null_type(), tag);
  397|   659k|                break;
  398|      3|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (398:13): [True: 3, False: 694k]
  ------------------
  399|      3|                result_ = Json(null_type(), tag);
  400|      3|                is_valid_ = true;
  401|      3|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  402|   694k|        }
  403|   694k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   694k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  404|   694k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  371|  2.38M|    {
  372|  2.38M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (372:17): [True: 2.38M, False: 0]
  ------------------
  373|  2.38M|        {
  374|   138k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (374:13): [True: 138k, False: 2.24M]
  ------------------
  375|   138k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  376|   138k|                break;
  377|  2.24M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (377:13): [True: 2.24M, False: 138k]
  ------------------
  378|  2.24M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  379|  2.24M|                break;
  380|      4|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (380:13): [True: 4, False: 2.38M]
  ------------------
  381|      4|                result_ = Json(value, tag);
  382|      4|                is_valid_ = true;
  383|      4|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      4|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  384|  2.38M|        }
  385|  2.38M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  2.38M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  2.38M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  226|  1.92M|    {
  227|  1.92M|        auto& structure = structure_stack_.back();
  228|  1.92M|        switch (structure.structure_kind)
  ------------------
  |  Branch (228:17): [True: 1.92M, False: 0]
  ------------------
  229|  1.92M|        {
  230|   576k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (230:13): [True: 576k, False: 1.34M]
  ------------------
  231|   576k|                item_stack_.emplace_back(std::move(name_), index_++, sv, tag);
  232|   576k|                break;
  233|  1.34M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (233:13): [True: 1.34M, False: 577k]
  ------------------
  234|  1.34M|                item_stack_.emplace_back(key_type(alloc_), 0, sv, tag);
  235|  1.34M|                break;
  236|  1.08k|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (236:13): [True: 1.08k, False: 1.91M]
  ------------------
  237|  1.08k|                result_ = Json(sv, tag, alloc_);
  238|  1.08k|                is_valid_ = true;
  239|  1.08k|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.08k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  240|  1.92M|        }
  241|  1.91M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.91M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  242|  1.92M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  248|  4.83M|    {
  249|  4.83M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (249:17): [True: 4.83M, False: 0]
  ------------------
  250|  4.83M|        {
  251|   961k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (251:13): [True: 961k, False: 3.87M]
  ------------------
  252|   961k|                item_stack_.emplace_back(std::move(name_), index_++, byte_string_arg, b, tag);
  253|   961k|                break;
  254|  3.87M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (254:13): [True: 3.87M, False: 961k]
  ------------------
  255|  3.87M|                item_stack_.emplace_back(key_type(alloc_), 0, byte_string_arg, b, tag);
  256|  3.87M|                break;
  257|     16|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (257:13): [True: 16, False: 4.83M]
  ------------------
  258|     16|                result_ = Json(byte_string_arg, b, tag, alloc_);
  259|     16|                is_valid_ = true;
  260|     16|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|     16|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  261|  4.83M|        }
  262|  4.83M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  4.83M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  263|  4.83M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS3_10error_codeE:
  269|  7.54k|    {
  270|  7.54k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (270:17): [True: 7.54k, False: 0]
  ------------------
  271|  7.54k|        {
  272|  3.69k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (272:13): [True: 3.69k, False: 3.85k]
  ------------------
  273|  3.69k|                item_stack_.emplace_back(std::move(name_), index_++, byte_string_arg, b, raw_tag);
  274|  3.69k|                break;
  275|  3.84k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (275:13): [True: 3.84k, False: 3.70k]
  ------------------
  276|  3.84k|                item_stack_.emplace_back(key_type(alloc_), 0, byte_string_arg, b, raw_tag);
  277|  3.84k|                break;
  278|      2|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (278:13): [True: 2, False: 7.54k]
  ------------------
  279|      2|                result_ = Json(byte_string_arg, b, raw_tag, alloc_);
  280|      2|                is_valid_ = true;
  281|      2|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  282|  7.54k|        }
  283|  7.54k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  7.54k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  284|  7.54k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  332|  10.8k|    {
  333|  10.8k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (333:17): [True: 10.8k, False: 0]
  ------------------
  334|  10.8k|        {
  335|  2.97k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (335:13): [True: 2.97k, False: 7.83k]
  ------------------
  336|  2.97k|                item_stack_.emplace_back(std::move(name_), index_++, half_arg, value, tag);
  337|  2.97k|                break;
  338|  7.83k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (338:13): [True: 7.83k, False: 2.97k]
  ------------------
  339|  7.83k|                item_stack_.emplace_back(key_type(alloc_), 0, half_arg, value, tag);
  340|  7.83k|                break;
  341|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (341:13): [True: 0, False: 10.8k]
  ------------------
  342|      0|                result_ = Json(half_arg, value, tag);
  343|      0|                is_valid_ = true;
  344|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  345|  10.8k|        }
  346|  10.8k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  10.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  347|  10.8k|    }
_ZNK8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E8is_validEv:
  108|  2.89k|    {
  109|  2.89k|        return is_valid_;
  110|  2.89k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10get_resultEv:
  113|  2.89k|    {
  114|  2.89k|        JSONCONS_ASSERT(is_valid_);
  ------------------
  |  |   49|  2.89k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.89k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  115|  2.89k|        is_valid_ = false;
  116|  2.89k|        return std::move(result_);
  117|  2.89k|    }

_ZN8jsoncons14json_exceptionD2Ev:
   27|  8.13k|        virtual ~json_exception() = default;
_ZN8jsoncons9ser_errorC1ENSt3__110error_codeEmm:
  194|  8.13k|            : ec_(ec), line_(line), column_(column)
  195|  8.13k|        {
  196|  8.13k|            err_ = to_what_arg(ec, "", line, column); 
  197|  8.13k|        }
_ZN8jsoncons9ser_error11to_what_argENSt3__110error_codeEPKcmm:
  233|  8.13k|        {
  234|  8.13k|            std::string what_arg(s);
  235|  8.13k|            if (!what_arg.empty())
  ------------------
  |  Branch (235:17): [True: 0, False: 8.13k]
  ------------------
  236|      0|            {
  237|      0|                what_arg.append(": ");
  238|      0|            }
  239|  8.13k|            what_arg.append(ec.message());
  240|  8.13k|            if (line != 0 && column != 0)
  ------------------
  |  Branch (240:17): [True: 0, False: 8.13k]
  |  Branch (240:30): [True: 0, False: 0]
  ------------------
  241|      0|            {
  242|      0|                what_arg.append(" at line ");
  243|      0|                what_arg.append(std::to_string(line));
  244|      0|                what_arg.append(" and column ");
  245|      0|                what_arg.append(std::to_string(column));
  246|      0|            }
  247|  8.13k|            else if (column != 0)
  ------------------
  |  Branch (247:22): [True: 8.13k, False: 4]
  ------------------
  248|  8.13k|            {
  249|  8.13k|                what_arg.append(" at position ");
  250|  8.13k|                what_arg.append(std::to_string(column));
  251|  8.13k|            }
  252|  8.13k|            return what_arg; 
  253|  8.13k|        }

_ZN8jsoncons25make_json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEEENS_20json_visitor_adaptorIT_T0_vEERSD_:
 1064|  11.0k|{
 1065|  11.0k|    return json_visitor_adaptor<From, To>(to);
 1066|  11.0k|}
_ZN8jsoncons20json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEvEC2ERSA_:
  983|  11.0k|        : supertype(visitor)
  984|  11.0k|    {
  985|  11.0k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEEC2ERSA_:
  721|  11.0k|        : destination1_(std::addressof(visitor))
  722|  11.0k|    {
  723|  11.0k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  777|   284k|    {
  778|   284k|        destination1_->begin_array(length, tag, context, ec);
  779|   284k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   284k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  780|   284k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE15visit_end_arrayERKNS_11ser_contextERNS6_10error_codeE:
  783|   269k|    {
  784|   269k|        destination1_->end_array(context, ec);
  785|   269k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   269k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  786|   269k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  825|  8.07M|    {
  826|  8.07M|        destination1_->uint64_value(value, tag, context, ec);
  827|  8.07M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  8.07M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  828|  8.07M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  819|  4.30M|    {
  820|  4.30M|        destination1_->int64_value(value, tag, context, ec);
  821|  4.30M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  4.30M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  822|  4.30M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  813|  6.25M|    {
  814|  6.25M|        destination1_->double_value(value, tag, context, ec);
  815|  6.25M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  6.25M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  816|  6.25M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11visit_flushEv:
  738|  2.89k|    {
  739|  2.89k|        destination1_->flush();
  740|  2.89k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  745|  7.08k|    {
  746|  7.08k|        destination1_->begin_object(tag, context, ec);
  747|  7.08k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  7.08k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  748|  7.08k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  754|  9.61M|    {
  755|  9.61M|        destination1_->begin_object(length, tag, context, ec);
  756|  9.61M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  9.61M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  757|  9.61M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE16visit_end_objectERKNS_11ser_contextERNS6_10error_codeE:
  760|  9.61M|    {
  761|  9.61M|        destination1_->end_object(context, ec);
  762|  9.61M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  9.61M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  763|  9.61M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  768|  12.5k|    {
  769|  12.5k|        destination1_->begin_array(tag, context, ec);
  770|  12.5k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  12.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  771|  12.5k|    }
_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|  8.09M|    {
  996|  8.09M|        return destination().key(string_view_type(reinterpret_cast<const to_char_type*>(key.data()),key.size()), context, ec);
  997|  8.09M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11destinationEv:
  732|  10.0M|    {
  733|  10.0M|        return *destination1_;
  734|  10.0M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  837|   694k|    {
  838|   694k|        destination1_->null_value(tag, context, ec);
  839|   694k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   694k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|   694k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  831|  2.38M|    {
  832|  2.38M|        destination1_->bool_value(value, tag, context, ec);
  833|  2.38M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  2.38M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  834|  2.38M|    }
_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|  1.92M|    {
 1004|  1.92M|        return destination().string_value(string_view_type(reinterpret_cast<const to_char_type*>(value.data()),value.size()), tag, context, ec);
 1005|  1.92M|    }
_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|  4.83M|    {
  793|  4.83M|        destination1_->byte_string_value(b, tag, context, ec);
  794|  4.83M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  4.83M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  795|  4.83M|    }
_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|  7.54k|    {
  802|  7.54k|        destination1_->byte_string_value(b, raw_tag, context, ec);
  803|  7.54k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  7.54k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  804|  7.54k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  807|  10.8k|    {
  808|  10.8k|        destination1_->half_value(value, tag, context, ec);
  809|  10.8k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  10.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  810|  10.8k|    }

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

_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  33.0k|        basic_json_visitor() = default;
_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  44.1k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  560|   284k|        {
  561|   284k|            visit_begin_array(tag, context, ec);
  562|   284k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   284k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  563|   284k|        }
_ZN8jsoncons18basic_json_visitorIcE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  544|  9.61M|        {
  545|  9.61M|            visit_begin_object(tag, context, ec);
  546|  9.61M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  9.61M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  547|  9.61M|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|   568k|        {
  346|   568k|            visit_begin_array(length, tag, context, ec);
  347|   568k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   568k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|   568k|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|  16.1M|        {
  415|  16.1M|            visit_uint64(value, tag, context, ec);
  416|  16.1M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  16.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|  16.1M|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|   539k|        {
  352|   539k|            visit_end_array(context, ec);
  353|   539k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   539k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|   539k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|  8.61M|        {
  424|  8.61M|            visit_int64(value, tag, context, ec);
  425|  8.61M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  8.61M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|  8.61M|        }
_ZN8jsoncons18basic_json_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  432|  21.6k|        {
  433|  21.6k|            visit_half(value, tag, context, ec);
  434|  21.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  21.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  435|  21.6k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  12.5M|        {
  442|  12.5M|            visit_double(value, tag, context, ec);
  443|  12.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  12.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|  12.5M|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  5.78k|        {
  109|  5.78k|            visit_flush();
  110|  5.78k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|  14.1k|        {
  319|  14.1k|            visit_begin_object(tag, context, ec);
  320|  14.1k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  14.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|  14.1k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  19.2M|        {
  328|  19.2M|            visit_begin_object(length, tag, context, ec);
  329|  19.2M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  19.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  19.2M|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  19.2M|        {
  334|  19.2M|            visit_end_object(context, ec);
  335|  19.2M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  19.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  19.2M|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|  25.1k|        {
  340|  25.1k|            visit_begin_array(tag, context, ec);
  341|  25.1k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  25.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|  25.1k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|  16.1M|        {
  358|  16.1M|            visit_key(name, context, ec);
  359|  16.1M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  16.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|  16.1M|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  1.38M|        {
  366|  1.38M|            visit_null(tag, context, ec);
  367|  1.38M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  1.38M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  1.38M|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|  4.76M|        {
  375|  4.76M|            visit_bool(value, tag, context, ec);
  376|  4.76M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  4.76M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|  4.76M|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|  3.84M|        {
  384|  3.84M|            visit_string(value, tag, context, ec);
  385|  3.84M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  3.84M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  3.84M|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|  9.67M|        {
  395|  9.67M|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|  9.67M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  9.67M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|  9.67M|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|  15.0k|        {
  406|  15.0k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|  15.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  15.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|  15.0k|        }
_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  11.0k|        basic_default_json_visitor() = default;

_ZN8jsoncons9key_valueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EEE5valueEv:
  120|   126k|    {
  121|   126k|        return value_;
  122|   126k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEaSEOS7_:
   60|  24.2M|    index_key_value& operator=(index_key_value&&) = default;
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRmRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  8.07M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  8.07M|    {
   45|  8.07M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2EOS7_:
   49|  53.8M|    index_key_value(index_key_value&&) = default;
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRlRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  4.30M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  4.30M|    {
   45|  4.30M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRdRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  6.25M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  6.25M|    {
   45|  6.25M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17json_object_arg_tERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  9.62M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  9.62M|    {
   45|  9.62M|    }
_ZN8jsoncons9key_valueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EEEC2IJSA_EEEOS7_DpOT_:
   86|  82.9k|        : key_(std::move(name)), value_(std::forward<Args>(args)...)
   87|  82.9k|    {
   88|  82.9k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_16json_array_arg_tERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|   296k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|   296k|    {
   45|   296k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJNS_9null_typeERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|   694k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|   694k|    {
   45|   694k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRbRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  2.38M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  2.38M|    {
   45|  2.38M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS_12semantic_tagEEEEONS3_12basic_stringIcSB_S5_EElDpOT_:
   43|  1.91M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  1.91M|    {
   45|  1.91M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17byte_string_arg_tERKNS_16byte_string_viewERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  4.83M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  4.83M|    {
   45|  4.83M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17byte_string_arg_tERKNS_16byte_string_viewERmEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  7.54k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  7.54k|    {
   45|  7.54k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_10half_arg_tERtRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  10.8k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  10.8k|    {
   45|  10.8k|    }

_ZN8jsoncons11ser_contextD2Ev:
   21|  11.0k|    virtual ~ser_context() = default;
_ZN8jsoncons10read_errorC2ENSt3__110error_codeEmm:
   68|  8.13k|        : ec_{ec}, line_{line}, column_{column}
   69|  8.13k|    {
   70|  8.13k|    }
_ZNK8jsoncons10read_error4codeEv:
   86|  8.13k|    {
   87|  8.13k|        return ec_;
   88|  8.13k|    }
_ZNK8jsoncons10read_error4lineEv:
   94|  8.13k|    {
   95|  8.13k|        return line_;
   96|  8.13k|    }
_ZNK8jsoncons10read_error6columnEv:
   98|  8.13k|    {
   99|  8.13k|        return column_;
  100|  8.13k|    }

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

_ZNK8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5emptyEv:
  158|  15.0k|        {
  159|  15.0k|            return data_.empty();
  160|  15.0k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5clearEv:
  195|  5.34M|        void clear() {data_.clear();}
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5beginEv:
  168|  5.34M|        {
  169|  5.34M|            return data_.begin();
  170|  5.34M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE3endEv:
  173|  5.34M|        {
  174|  5.34M|            return data_.end();
  175|  5.34M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEED2Ev:
  153|  9.62M|        {
  154|  9.62M|            flatten_and_destroy();
  155|  9.62M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE19flatten_and_destroyEv:
  724|  9.62M|        {
  725|  9.62M|            if (!data_.empty())
  ------------------
  |  Branch (725:17): [True: 19.5k, False: 9.60M]
  ------------------
  726|  19.5k|            {
  727|  19.5k|                json_array<Json> temp(get_allocator());
  728|       |
  729|  19.5k|                for (auto& kv : data_)
  ------------------
  |  Branch (729:31): [True: 64.3k, False: 19.5k]
  ------------------
  730|  64.3k|                {
  731|  64.3k|                    switch (kv.value().storage_kind())
  732|  64.3k|                    {
  733|  5.65k|                        case json_storage_kind::array:
  ------------------
  |  Branch (733:25): [True: 5.65k, False: 58.7k]
  ------------------
  734|  10.6k|                        case json_storage_kind::object:
  ------------------
  |  Branch (734:25): [True: 5.03k, False: 59.3k]
  ------------------
  735|  10.6k|                            if (!kv.value().empty())
  ------------------
  |  Branch (735:33): [True: 3.35k, False: 7.34k]
  ------------------
  736|  3.35k|                            {
  737|  3.35k|                                temp.emplace_back(std::move(kv.value()));
  738|  3.35k|                            }
  739|  10.6k|                            break;
  740|  53.7k|                        default:
  ------------------
  |  Branch (740:25): [True: 53.7k, False: 10.6k]
  ------------------
  741|  53.7k|                            break;
  742|  64.3k|                    }
  743|  64.3k|                }
  744|  19.5k|            }
  745|  9.62M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEEC2Ev:
   61|  9.62M|        sorted_json_object() = default;
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE18uninitialized_initEPNS_15index_key_valueISA_EEm:
  277|  26.5k|        {
  278|  26.5k|            if (count > 0)
  ------------------
  |  Branch (278:17): [True: 26.5k, False: 0]
  ------------------
  279|  26.5k|            {
  280|  26.5k|                data_.reserve(count);
  281|       |
  282|  26.5k|                std::sort(items, items+count, compare);
  283|  26.5k|                data_.emplace_back(key_type(items[0].name.data(), items[0].name.size(), get_allocator()), std::move(items[0].value));
  284|       |                
  285|  4.44M|                for (std::size_t i = 1; i < count; ++i)
  ------------------
  |  Branch (285:41): [True: 4.41M, False: 26.5k]
  ------------------
  286|  4.41M|                {
  287|  4.41M|                    auto& item = items[i];
  288|  4.41M|                    if (item.name != items[i-1].name)
  ------------------
  |  Branch (288:25): [True: 56.3k, False: 4.36M]
  ------------------
  289|  56.3k|                    {
  290|  56.3k|                        data_.emplace_back(key_type(item.name.data(), item.name.size(), get_allocator()), std::move(item.value));
  291|  56.3k|                    }
  292|  4.41M|                }
  293|  26.5k|            }
  294|  26.5k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE7compareERKNS_15index_key_valueISA_EESG_:
  268|   100M|        {
  269|   100M|            int comp = item1.name.compare(item2.name); 
  270|   100M|            if (comp < 0) return true;
  ------------------
  |  Branch (270:17): [True: 1.94M, False: 98.4M]
  ------------------
  271|  98.4M|            if (comp == 0) return item1.index < item2.index;
  ------------------
  |  Branch (271:17): [True: 95.8M, False: 2.60M]
  ------------------
  272|       |
  273|  2.60M|            return false;
  274|  98.4M|        }

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  11.0k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  11.0k|          chunk_size_(default_max_chunk_size)
  178|  11.0k|    {
  179|  11.0k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  11.0k|        data_end_ = chunk_;
  181|  11.0k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  11.0k|      : std::basic_istream<CharT>(&nb_)
   58|  11.0k|    {
   59|  11.0k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  11.0k|        null_buffer() = default;
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  11.0k|    {
  194|  11.0k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 11.0k, False: 0]
  ------------------
  195|  11.0k|        {
  196|  11.0k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  11.0k|        }
  198|  11.0k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8positionEv:
  281|  8.13k|    {
  282|  8.13k|        return position_;
  283|  8.13k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  55.5M|    {
  378|  55.5M|        std::size_t len = 0;
  379|  55.5M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 55.5M, False: 422]
  ------------------
  380|  55.5M|        {
  381|  55.5M|            len = (std::min)(remaining_, length);
  382|  55.5M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  55.5M|            data_end_ += len;
  384|  55.5M|            remaining_ -= len;
  385|  55.5M|            position_ += len;
  386|  55.5M|        }
  387|  55.5M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 55.5M, False: 3.83k]
  ------------------
  388|  55.5M|        {
  389|  55.5M|            return len;
  390|  55.5M|        }
  391|  3.83k|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 3.83k, False: 0]
  ------------------
  392|  3.83k|        {
  393|  3.83k|            data_end_ = chunk_;
  394|  3.83k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|  3.83k|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 1.68k, False: 2.14k]
  ------------------
  396|  1.68k|            {
  397|  1.68k|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|  1.68k|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|  1.68k|                data_end_ += len2;
  400|  1.68k|                remaining_ -= len2;
  401|  1.68k|                position_ += len2;
  402|  1.68k|                len += len2;
  403|  1.68k|            }
  404|  3.83k|            return len;
  405|  3.83k|        }
  406|      0|        else
  407|      0|        {
  408|      0|            if (stream_ptr_->eof())
  ------------------
  |  Branch (408:17): [True: 0, False: 0]
  ------------------
  409|      0|            {
  410|      0|                remaining_ = 0;
  411|      0|                return 0;
  412|      0|            }
  413|      0|            JSONCONS_TRY
  ------------------
  |  |   37|      0|    #define JSONCONS_TRY try
  ------------------
  414|      0|            {
  415|      0|                std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(p+len), length-len);
  416|      0|                std::size_t len2 = static_cast<std::size_t>(count);
  417|      0|                if (len2 < length-len)
  ------------------
  |  Branch (417:21): [True: 0, False: 0]
  ------------------
  418|      0|                {
  419|      0|                    stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  420|      0|                }
  421|      0|                len += len2;
  422|      0|                position_ += len2;
  423|      0|                return len;
  424|      0|            }
  425|      0|            JSONCONS_CATCH(const std::exception&)     
  426|      0|            {
  427|      0|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  428|      0|                return 0;
  429|      0|            }
  430|      0|        }
  431|  55.5M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  24.1k|    {
  443|  24.1k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 6.90k, False: 17.2k]
  ------------------
  444|  6.90k|        {
  445|  6.90k|            return 0;
  446|  6.90k|        }
  447|       |
  448|  17.2k|        JSONCONS_TRY
  ------------------
  |  |   37|  17.2k|    #define JSONCONS_TRY try
  ------------------
  449|  17.2k|        {
  450|  17.2k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  17.2k|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  17.2k|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 10.9k, False: 6.29k]
  ------------------
  454|  10.9k|            {
  455|  10.9k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  10.9k|            }
  457|  17.2k|            return length;
  458|  17.2k|        }
  459|  17.2k|        JSONCONS_CATCH(const std::exception&)     
  460|  17.2k|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  17.2k|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  746|   374k|    {
  747|   374k|        std::size_t unread = length;
  748|       |
  749|   668k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 295k, False: 373k]
  |  Branch (749:30): [True: 294k, False: 605]
  ------------------
  750|   294k|        {
  751|   294k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 252, False: 294k]
  |  Branch (751:44): [True: 249, False: 3]
  ------------------
  752|    249|            {
  753|    249|                std::size_t n = source.chunk_size();
  754|    249|                std::size_t offset = buffer.size();
  755|    249|                buffer.resize(offset+n);
  756|    249|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|    249|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|    249|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 17, False: 232]
  |  |  ------------------
  ------------------
  758|     17|                {
  759|     17|                    buffer.resize(offset+actual);
  760|     17|                }
  761|    249|                unread -= actual;
  762|    249|            }
  763|   294k|            else
  764|   294k|            {
  765|   294k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|   294k|                std::size_t offset = buffer.size();
  767|   294k|                buffer.resize(offset+n);
  768|   294k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|   294k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|   294k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 461, False: 293k]
  |  |  ------------------
  ------------------
  770|    461|                {
  771|    461|                    buffer.resize(offset + actual);
  772|    461|                }
  773|   294k|                unread -= actual;
  774|   294k|            }
  775|   294k|        }
  776|   374k|        return length - unread;
  777|   374k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|   298k|    {
  272|   298k|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 1.42k, False: 296k]
  |  Branch (272:35): [True: 990, False: 430]
  ------------------
  273|   298k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|   297k|    {
  347|   297k|        return remaining_;
  348|   297k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|   297k|    {
  262|   297k|        return chunk_size_;
  263|   297k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|    424|    {
  436|    424|        auto len = fill_buffer(chunk, chunk_size);
  437|    424|        position_ += len;
  438|    424|        return len;
  439|    424|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6detail4spanIKhLm18446744073709551615EEEmOT_:
  352|  13.1M|    {
  353|  13.1M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  13.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 9.78M, False: 3.38M]
  |  |  ------------------
  ------------------
  354|  9.78M|        {
  355|  9.78M|            return span<const value_type>{};
  356|  9.78M|        }
  357|  3.38M|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 327, False: 3.38M]
  |  Branch (357:32): [True: 289, False: 38]
  ------------------
  358|    289|        {
  359|    289|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|    289|            data_end_ = chunk_;
  361|    289|        }
  362|  3.38M|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 1.30k, False: 3.38M]
  ------------------
  363|  1.30k|        {
  364|  1.30k|            buffer.clear();
  365|  1.30k|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|  1.30k|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|  1.30k|        }
  368|       |
  369|  3.38M|        const value_type* data = data_end_;
  370|  3.38M|        data_end_ += length;
  371|  3.38M|        remaining_ -= length;
  372|  3.38M|        position_ += length;
  373|  3.38M|        return span<const value_type>(data, length);
  374|  3.38M|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSG_m:
  746|   272k|    {
  747|   272k|        std::size_t unread = length;
  748|       |
  749|   275k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 3.10k, False: 272k]
  |  Branch (749:30): [True: 2.72k, False: 385]
  ------------------
  750|  2.72k|        {
  751|  2.72k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 178, False: 2.54k]
  |  Branch (751:44): [True: 175, False: 3]
  ------------------
  752|    175|            {
  753|    175|                std::size_t n = source.chunk_size();
  754|    175|                std::size_t offset = buffer.size();
  755|    175|                buffer.resize(offset+n);
  756|    175|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|    175|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|    175|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 9, False: 166]
  |  |  ------------------
  ------------------
  758|      9|                {
  759|      9|                    buffer.resize(offset+actual);
  760|      9|                }
  761|    175|                unread -= actual;
  762|    175|            }
  763|  2.54k|            else
  764|  2.54k|            {
  765|  2.54k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  2.54k|                std::size_t offset = buffer.size();
  767|  2.54k|                buffer.resize(offset+n);
  768|  2.54k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  2.54k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|  2.54k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 320, False: 2.22k]
  |  |  ------------------
  ------------------
  770|    320|                {
  771|    320|                    buffer.resize(offset + actual);
  772|    320|                }
  773|  2.54k|                unread -= actual;
  774|  2.54k|            }
  775|  2.72k|        }
  776|   272k|        return length - unread;
  777|   272k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_12basic_stringIcNS1_11char_traitsIcEENS2_IcEEEEEENS_6detail4spanIKhLm18446744073709551615EEEmOT_:
  352|  2.65M|    {
  353|  2.65M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  2.65M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2.15M, False: 492k]
  |  |  ------------------
  ------------------
  354|  2.15M|        {
  355|  2.15M|            return span<const value_type>{};
  356|  2.15M|        }
  357|   492k|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 100, False: 492k]
  |  Branch (357:32): [True: 74, False: 26]
  ------------------
  358|     74|        {
  359|     74|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|     74|            data_end_ = chunk_;
  361|     74|        }
  362|   492k|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 348, False: 492k]
  ------------------
  363|    348|        {
  364|    348|            buffer.clear();
  365|    348|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|    348|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|    348|        }
  368|       |
  369|   492k|        const value_type* data = data_end_;
  370|   492k|        data_end_ += length;
  371|   492k|        remaining_ -= length;
  372|   492k|        position_ += length;
  373|   492k|        return span<const value_type>(data, length);
  374|   492k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4peekEv:
  312|   184M|    {
  313|   184M|        if (remaining_ == 0)
  ------------------
  |  Branch (313:13): [True: 19.5k, False: 184M]
  ------------------
  314|  19.5k|        {
  315|  19.5k|            data_end_ = chunk_;
  316|  19.5k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  317|  19.5k|        }
  318|   184M|        if (remaining_ > 0)
  ------------------
  |  Branch (318:13): [True: 184M, False: 4.67k]
  ------------------
  319|   184M|        {
  320|   184M|            value_type c = *data_end_;
  321|   184M|            return char_result<value_type>{c, false};
  322|   184M|        }
  323|  4.67k|        else
  324|  4.67k|        {
  325|  4.67k|            return char_result<value_type>{0, true};
  326|  4.67k|        }
  327|   184M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE6ignoreEm:
  286|  12.9M|    {
  287|  12.9M|        std::size_t len = 0;
  288|  12.9M|        if (remaining_ > 0)
  ------------------
  |  Branch (288:13): [True: 12.9M, False: 0]
  ------------------
  289|  12.9M|        {
  290|  12.9M|            len = (std::min)(remaining_, length);
  291|  12.9M|            position_ += len;
  292|  12.9M|            data_end_ += len;
  293|  12.9M|            remaining_ -= len;
  294|  12.9M|        }
  295|  12.9M|        while (len < length)
  ------------------
  |  Branch (295:16): [True: 0, False: 12.9M]
  ------------------
  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|  12.9M|    }

_ZN8jsoncons16typed_array_castIKhEENS_6detail4spanIT_Lm18446744073709551615EEENS3_IhLm18446744073709551615EEE:
  141|  4.73k|{
  142|  4.73k|    return jsoncons::span<const uint8_t>{reinterpret_cast<const uint8_t*>(bytes.data()), bytes.size()};
  143|  4.73k|}
_ZN8jsoncons16typed_array_castIhEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   81|  4.73k|{
   82|  4.73k|    return bytes;
   83|  4.73k|}
_ZN8jsoncons16typed_array_castItEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   87|   118k|{
   88|   118k|    return jsoncons::span<uint16_t>{reinterpret_cast<uint16_t*>(bytes.data()), bytes.size()/sizeof(uint16_t)};
   89|   118k|}
_ZN8jsoncons16typed_array_castIjEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   93|  12.0k|{
   94|  12.0k|    return jsoncons::span<uint32_t>{reinterpret_cast<uint32_t*>(bytes.data()), bytes.size()/sizeof(uint32_t)};
   95|  12.0k|}
_ZN8jsoncons16typed_array_castImEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   99|  28.1k|{
  100|  28.1k|    return jsoncons::span<uint64_t>{reinterpret_cast<uint64_t*>(bytes.data()), bytes.size()/sizeof(uint64_t)};
  101|  28.1k|}
_ZN8jsoncons16typed_array_castIaEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  105|  7.89k|{
  106|  7.89k|    return jsoncons::span<int8_t>{reinterpret_cast<int8_t*>(bytes.data()), bytes.size()};
  107|  7.89k|}
_ZN8jsoncons16typed_array_castIsEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  111|  29.2k|{
  112|  29.2k|    return jsoncons::span<int16_t>{reinterpret_cast<int16_t*>(bytes.data()), bytes.size()/sizeof(int16_t)};
  113|  29.2k|}
_ZN8jsoncons16typed_array_castIiEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  117|  8.63k|{
  118|  8.63k|    return jsoncons::span<int32_t>{reinterpret_cast<int32_t*>(bytes.data()), bytes.size()/sizeof(int32_t)};
  119|  8.63k|}
_ZN8jsoncons16typed_array_castIlEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  123|  22.8k|{
  124|  22.8k|    return jsoncons::span<int64_t>{reinterpret_cast<int64_t*>(bytes.data()), bytes.size()/sizeof(int64_t)};
  125|  22.8k|}
_ZN8jsoncons16typed_array_castIfEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  129|  18.2k|{
  130|  18.2k|    return jsoncons::span<float>{reinterpret_cast<float*>(bytes.data()), bytes.size()/sizeof(float)};
  131|  18.2k|}
_ZN8jsoncons16typed_array_castIdEENS_6detail4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  135|  10.2k|{
  136|  10.2k|    return jsoncons::span<double>{reinterpret_cast<double*>(bytes.data()), bytes.size()/sizeof(double)};
  137|  10.2k|}
_ZN8jsoncons22calculate_mdarray_sizeENS_6detail4spanIKmLm18446744073709551615EEE:
  247|  12.0k|{
  248|  12.0k|    using result_type = jsoncons::expected<std::size_t,std::errc>;
  249|       |
  250|  12.0k|    if (extents.empty())
  ------------------
  |  Branch (250:9): [True: 0, False: 12.0k]
  ------------------
  251|      0|    {
  252|      0|        return result_type(0);
  253|      0|    }
  254|  12.0k|    std::size_t n = extents[0];
  255|  31.5k|    for (std::size_t i = 1; i < extents.size(); ++i)
  ------------------
  |  Branch (255:29): [True: 19.5k, False: 11.9k]
  ------------------
  256|  19.5k|    {
  257|  19.5k|        if (extents[i] == 0 || JSONCONS_UNLIKELY(n > (std::numeric_limits<std::size_t>::max)()/extents[i]))
  ------------------
  |  |   78|  19.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 6, False: 19.5k]
  |  |  ------------------
  ------------------
  |  Branch (257:13): [True: 30, False: 19.5k]
  ------------------
  258|     36|        {
  259|     36|            return result_type(jsoncons::unexpect, std::errc::value_too_large);
  260|     36|        }
  261|  19.5k|        n *= extents[i];
  262|  19.5k|    }
  263|  11.9k|    return n;
  264|  12.0k|}

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE13from_bytes_beEiPKhm:
  792|   177k|    {
  793|   177k|        static const double radix_log2 = std::log2(next_power_of_two(256));
  794|       |        // Estimate how big the result will be, so we can pre-allocate it.
  795|   177k|        double bits = radix_log2 * n;
  796|   177k|        double big_digits = std::ceil(bits / 64.0);
  797|       |        //std::cout << "ESTIMATED: " << big_digits << "\n";
  798|       |
  799|   177k|        basic_bigint<Allocator> v = 0;
  800|   177k|        v.reserve(static_cast<size_type>(big_digits));
  801|       |
  802|  2.96M|        for (size_type i = 0; i < n; i++)
  ------------------
  |  Branch (802:31): [True: 2.78M, False: 177k]
  ------------------
  803|  2.78M|        {
  804|  2.78M|            v *= 256;
  805|  2.78M|            v += (word_type)(bytes[i]);
  806|  2.78M|        }
  807|       |        //std::cout << "ACTUAL: " << v.size() << "\n";
  808|       |
  809|   177k|        if (signum < 0)
  ------------------
  |  Branch (809:13): [True: 0, False: 177k]
  ------------------
  810|      0|        {
  811|      0|            v.set_negative(true);
  812|      0|        }
  813|       |
  814|   177k|        return v;
  815|   177k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE17next_power_of_twoEm:
 1921|      1|    static word_type next_power_of_two(word_type n) {
 1922|      1|        n = n - 1;
 1923|      1|        n |= n >> 1u;
 1924|      1|        n |= n >> 2u;
 1925|      1|        n |= n >> 4u;
 1926|      1|        n |= n >> 8u;
 1927|      1|        n |= n >> 16u;
 1928|      1|        n |= n >> 32u;
 1929|      1|        return n + 1;
 1930|      1|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  823|   177k|    {
  824|   177k|        storage_.reserve(n);
  825|   177k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  452|  6.91M|    {
  453|  6.91M|       if (capacity() < n)
  ------------------
  |  Branch (453:12): [True: 39.0k, False: 6.87M]
  ------------------
  454|  39.0k|       {
  455|  39.0k|           if (!is_allocated())
  ------------------
  |  Branch (455:16): [True: 39.0k, False: 0]
  ------------------
  456|  39.0k|           {
  457|  39.0k|               size_type size = inlined_.size_;
  458|  39.0k|               size_type is_neg = inlined_.is_negative_;
  459|  39.0k|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  460|       |
  461|  39.0k|               ::new (&allocated_) allocated_storage();
  462|  39.0k|               allocated_.reserve(n, get_allocator());
  463|  39.0k|               allocated_.size_ = size;
  464|  39.0k|               allocated_.is_negative_ = is_neg;
  465|  39.0k|               if (n >= 1)
  ------------------
  |  Branch (465:20): [True: 39.0k, False: 0]
  ------------------
  466|  39.0k|               {
  467|  39.0k|                   allocated_.data_[0] = values[0];
  468|  39.0k|               }
  469|  39.0k|               if (n >= 2)
  ------------------
  |  Branch (469:20): [True: 39.0k, False: 0]
  ------------------
  470|  39.0k|               {
  471|  39.0k|                   allocated_.data_[1] = values[1];
  472|  39.0k|               }
  473|  39.0k|           }
  474|      0|           else
  475|      0|           {
  476|      0|               allocated_.reserve(n, get_allocator());
  477|      0|           }
  478|  39.0k|       }
  479|  6.91M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  505|  6.91M|    {
  506|  6.91M|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (506:16): [True: 5.65M, False: 1.25M]
  ------------------
  507|  6.91M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  500|  17.7M|    {
  501|  17.7M|        return common_.is_allocated_;
  502|  17.7M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  203|  39.0k|            : is_allocated_(true),
  204|  39.0k|            is_negative_(false)
  205|  39.0k|        {
  206|  39.0k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  255|  39.0k|        {
  256|  39.0k|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   49|  39.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 39.0k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  257|  39.0k|            size_type capacity_new = round_up(n);
  258|       |
  259|  39.0k|            real_allocator_type alloc(a);
  260|  39.0k|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  261|  39.0k|            if (size_ > 0)
  ------------------
  |  Branch (261:17): [True: 0, False: 39.0k]
  ------------------
  262|      0|            {
  263|      0|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  264|      0|            }
  265|  39.0k|            if (data_ != nullptr)
  ------------------
  |  Branch (265:17): [True: 0, False: 39.0k]
  ------------------
  266|      0|            {
  267|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  268|      0|            }
  269|  39.0k|            capacity_ = capacity_new;
  270|  39.0k|            data_ = data_new;
  271|  39.0k|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  275|  39.0k|        {
  276|  39.0k|            size_type remainder = i % mem_unit;
  277|  39.0k|            size_type off = mem_unit - remainder;
  278|  39.0k|            bool testoff = i < max_size - off;
  279|  39.0k|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   49|  39.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 39.0k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  280|       |
  281|  39.0k|            return i + off;
  282|  39.0k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  482|  2.85M|    {
  483|  2.85M|        return static_cast<const word_allocator_type&>(*this);
  484|  2.85M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIiEENS1_9enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueERS4_E4typeES7_:
  988|  2.78M|    {
  989|  2.78M|        *this *= word_type(y < 0 ? -y : y);
  ------------------
  |  Branch (989:28): [True: 0, False: 2.78M]
  ------------------
  990|  2.78M|        if ( y < 0 )
  ------------------
  |  Branch (990:14): [True: 0, False: 2.78M]
  ------------------
  991|      0|            set_negative(!is_negative());
  992|  2.78M|        return *this;
  993|  2.78M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
  998|  2.78M|    {
  999|  2.78M|        auto this_view = get_storage_view();
 1000|  2.78M|        size_type len0 = this_view.size();
 1001|  2.78M|        word_type dig = this_view[0];
 1002|  2.78M|        word_type carry = 0;
 1003|       |
 1004|  2.78M|        resize(this_view.size() + 1);
 1005|  2.78M|        this_view = get_storage_view();
 1006|       |
 1007|  2.78M|        size_type i = 0;
 1008|  2.22G|        for (; i < len0; i++ )
  ------------------
  |  Branch (1008:16): [True: 2.22G, False: 2.78M]
  ------------------
 1009|  2.22G|        {
 1010|  2.22G|            word_type hi;
 1011|  2.22G|            word_type lo;
 1012|  2.22G|            DDproduct( dig, y, hi, lo );
 1013|  2.22G|            this_view[i] = lo + carry;
 1014|  2.22G|            dig = this_view[i+1];
 1015|  2.22G|            carry = hi + (this_view[i] < lo);
 1016|  2.22G|        }
 1017|  2.78M|        this_view[i] = carry;
 1018|  2.78M|        reduce();
 1019|  2.78M|        return *this;
 1020|  2.78M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  718|  16.2M|    {
  719|  16.2M|        return storage_.get_storage_view();
  720|  16.2M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  520|  23.7M|    {
  521|  23.7M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (521:16): [True: 18.8M, False: 4.93M]
  ------------------
  522|  18.8M|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  523|  23.7M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  524|  23.7M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   64|  23.7M|            : data_(data), size_(size)
   65|  23.7M|        {
   66|  23.7M|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   84|  22.3M|        {
   85|  22.3M|            return size_;
   86|  22.3M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   69|  7.89G|        {
   70|  7.89G|            return data_[i];
   71|  7.89G|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  818|  6.01M|    {
  819|  6.01M|        storage_.resize(new_length);
  820|  6.01M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  534|  6.73M|    {
  535|  6.73M|        size_type old_length = common_.size_;
  536|  6.73M|        reserve(new_length);
  537|  6.73M|        common_.size_ = new_length;
  538|       |
  539|  6.73M|        if (old_length < new_length)
  ------------------
  |  Branch (539:13): [True: 6.21M, False: 520k]
  ------------------
  540|  6.21M|        {
  541|  6.21M|            if (is_allocated())
  ------------------
  |  Branch (541:17): [True: 5.32M, False: 889k]
  ------------------
  542|  5.32M|            {
  543|  5.32M|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  544|  5.32M|            }
  545|   889k|            else
  546|   889k|            {
  547|   889k|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   49|   889k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 889k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  548|  2.23M|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (548:48): [True: 1.34M, False: 889k]
  ------------------
  549|  1.34M|                {
  550|  1.34M|                    inlined_.values_[i] = 0;
  551|  1.34M|                }
  552|   889k|            }
  553|  6.21M|        }
  554|  6.73M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1781|  2.50G|    {
 1782|  2.50G|        word_type hiA = A >> word_type_half_bits, loA = A & r_mask,
 1783|  2.50G|                   hiB = B >> word_type_half_bits, loB = B & r_mask;
 1784|       |
 1785|  2.50G|        lo = loA * loB;
 1786|  2.50G|        hi = hiA * hiB;
 1787|  2.50G|        word_type mid1 = loA * hiB;
 1788|  2.50G|        word_type mid2 = hiA * loB;
 1789|  2.50G|        word_type old = lo;
 1790|  2.50G|        lo += mid1 << word_type_half_bits;
 1791|  2.50G|            hi += (lo < old) + (mid1 >> word_type_half_bits);
 1792|  2.50G|        old = lo;
 1793|  2.50G|        lo += mid2 << word_type_half_bits;
 1794|  2.50G|            hi += (lo < old) + (mid2 >> word_type_half_bits);
 1795|  2.50G|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 1917|  6.87M|    {
 1918|  6.87M|        storage_.reduce();
 1919|  6.87M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  429|  6.87M|    {
  430|  6.87M|        if (common_.size_ > 0)
  ------------------
  |  Branch (430:13): [True: 6.87M, False: 0]
  ------------------
  431|  6.87M|        {
  432|  6.87M|            auto this_view = get_storage_view();
  433|  6.87M|            word_type* p = this_view.end() - 1;
  434|  6.87M|            word_type* first = this_view.begin();
  435|   294M|            while ( p >= first )
  ------------------
  |  Branch (435:21): [True: 294M, False: 157k]
  ------------------
  436|   294M|            {
  437|   294M|                if ( *p )
  ------------------
  |  Branch (437:22): [True: 6.71M, False: 287M]
  ------------------
  438|  6.71M|                {
  439|  6.71M|                    break;
  440|  6.71M|                }
  441|   287M|                --common_.size_;
  442|   287M|                --p;
  443|   287M|            }
  444|  6.87M|        }
  445|  6.87M|        if (common_.size_ == 0)
  ------------------
  |  Branch (445:13): [True: 157k, False: 6.71M]
  ------------------
  446|   157k|        {
  447|   157k|            common_.is_negative_ = false;
  448|   157k|        }
  449|  6.87M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
   93|  6.87M|        {
   94|  6.87M|            return data_ + size_;
   95|  6.87M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
   88|  6.87M|        {
   89|  6.87M|            return data_;
   90|  6.87M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  728|  6.15M|    {
  729|  6.15M|        return storage_.is_negative();
  730|  6.15M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  510|  6.15M|    {
  511|  6.15M|        return common_.is_negative_;
  512|  6.15M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  889|  2.78M|    {
  890|  2.78M|        if ( is_negative())
  ------------------
  |  Branch (890:14): [True: 0, False: 2.78M]
  ------------------
  891|      0|            return *this -= -basic_bigint<Allocator>(y);
  892|       |
  893|  2.78M|        word_type d;
  894|  2.78M|        word_type carry = 0;
  895|       |
  896|  2.78M|        auto this_view = get_storage_view();
  897|  2.78M|        resize(this_view.size() + 1);
  898|       |
  899|  2.78M|        this_view = get_storage_view();
  900|  2.78M|        const size_type this_size = this_view.size();
  901|  2.78M|        size_type y_size = 1;
  902|       |
  903|  2.78M|        d = this_view[0] + carry;
  904|  2.78M|        carry = d < carry;
  905|  2.78M|        this_view[0] = d + y;
  906|  2.78M|        if (this_view[0] < d)
  ------------------
  |  Branch (906:13): [True: 0, False: 2.78M]
  ------------------
  907|      0|            carry = 1;
  908|       |
  909|  2.78M|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (909:36): [True: 2.63M, False: 143k]
  |  Branch (909:53): [True: 0, False: 2.63M]
  ------------------
  910|      0|        {
  911|      0|            d = this_view[i] + carry;
  912|      0|            carry = d < carry;
  913|      0|            this_view[i] = d;
  914|      0|        }
  915|  2.78M|        reduce();
  916|  2.78M|        return *this;
  917|  2.78M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|   354k|        : storage_(n, alloc)
  694|   354k|    {
  695|   354k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|   354k|        : word_allocator_type(alloc)
  361|   354k|    {
  362|   354k|        ::new (&inlined_) inlined_storage(n);
  363|   354k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  138|   354k|            : is_allocated_(false),
  139|   354k|            is_negative_(false),
  140|   354k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 176k, False: 178k]
  ------------------
  141|   354k|        {
  142|   354k|            values_[0] = n;
  143|   354k|            values_[1] = 0;
  144|   354k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  835|  48.1k|    {
  836|  48.1k|        basic_bigint<Allocator> v(*this);
  837|  48.1k|        v.set_negative(!v.is_negative());
  838|  48.1k|        return v;
  839|  48.1k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  671|   273k|        : storage_(other.storage_)
  672|   273k|    {
  673|   273k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  299|   273k|        : word_allocator_type(other.get_allocator())
  300|   273k|    {
  301|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  302|       |# pragma GCC diagnostic push
  303|       |# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  304|       |#endif
  305|   273k|        if (!other.is_allocated())
  ------------------
  |  Branch (305:13): [True: 243k, False: 30.0k]
  ------------------
  306|   243k|        {
  307|   243k|            ::new (&inlined_) inlined_storage(other.inlined_);
  308|   243k|        }
  309|  30.0k|        else
  310|  30.0k|        {
  311|  30.0k|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  312|  30.0k|        }
  313|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  314|       |# pragma GCC diagnostic pop
  315|       |#endif
  316|   273k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  178|  1.20M|            : is_allocated_(false),
  179|  1.20M|            is_negative_(stor.is_negative_),
  180|  1.20M|            size_(stor.size_)
  181|  1.20M|        {
  182|  1.20M|            values_[0] = stor.values_[0];
  183|  1.20M|            values_[1] = stor.values_[1];
  184|  1.20M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  209|   682k|            : is_allocated_(true),
  210|   682k|              is_negative_(stor.is_negative_),
  211|   682k|              size_(stor.size_),
  212|   682k|              capacity_(stor.capacity_)
  213|   682k|        {
  214|   682k|            real_allocator_type alloc(a);
  215|       |
  216|   682k|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  217|   682k|            JSONCONS_TRY
  ------------------
  |  |   37|   682k|    #define JSONCONS_TRY try
  ------------------
  218|   682k|            {
  219|   682k|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  220|   682k|            }
  221|   682k|            JSONCONS_CATCH(...)
  222|   682k|            {
  223|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  224|      0|                data_ = nullptr;
  225|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  226|      0|            }
  227|   682k|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   49|   682k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 682k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  228|   682k|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  229|   682k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  954|  48.1k|    {
  955|  48.1k|        auto y_view = y.get_storage_view();
  956|       |
  957|  48.1k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (957:14): [True: 48.1k, False: 0]
  ------------------
  958|  48.1k|            return *this += -y;
  959|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (959:15): [True: 0, False: 0]
  |  Branch (959:33): [True: 0, False: 0]
  |  Branch (959:48): [True: 0, False: 0]
  |  Branch (959:65): [True: 0, False: 0]
  ------------------
  960|      0|            return *this = -(y - *this);
  961|      0|        word_type borrow = 0;
  962|      0|        word_type d;
  963|      0|        auto this_view = get_storage_view();
  964|      0|        const size_type this_size = this_view.size();
  965|      0|        const size_type y_size = y_view.size();
  966|       |
  967|      0|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (967:31): [True: 0, False: 0]
  ------------------
  968|      0|        {
  969|      0|            d = this_view[i] - borrow;
  970|      0|            borrow = d > this_view[i];
  971|      0|            this_view[i] = d - y_view[i];
  972|      0|            if ( this_view[i] > d )
  ------------------
  |  Branch (972:18): [True: 0, False: 0]
  ------------------
  973|      0|                borrow = 1;
  974|      0|        }
  975|      0|        for (size_type i = y_size; i < this_size && borrow != 0; i++ )
  ------------------
  |  Branch (975:36): [True: 0, False: 0]
  |  Branch (975:53): [True: 0, False: 0]
  ------------------
  976|      0|        {
  977|      0|            d = this_view[i] - borrow;
  978|      0|            borrow = d > this_view[i];
  979|      0|            this_view[i] = d;
  980|      0|        }
  981|      0|        reduce();
  982|      0|        return *this;
  983|      0|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16get_storage_viewEv:
  723|  1.39M|    {
  724|  1.39M|        return storage_.get_storage_view();
  725|  1.39M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE16get_storage_viewEv:
  527|  2.11M|    {
  528|  2.11M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (528:16): [True: 1.00M, False: 1.11M]
  ------------------
  529|  1.00M|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  530|  2.11M|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  531|  2.11M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   64|  2.11M|            : data_(data), size_(size)
   65|  2.11M|        {
   66|  2.11M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  920|  48.1k|    {
  921|  48.1k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (921:14): [True: 0, False: 48.1k]
  ------------------
  922|      0|            return *this -= -y;
  923|       |
  924|  48.1k|        auto y_view = y.get_storage_view();
  925|       |        
  926|  48.1k|        word_type d;
  927|  48.1k|        word_type carry = 0;
  928|       |
  929|  48.1k|        auto this_view = get_storage_view();
  930|  48.1k|        resize( (std::max)(y_view.size(), this_view.size()) + 1 );
  931|  48.1k|        this_view = get_storage_view();
  932|       |
  933|  48.1k|        const size_t this_size = this_view.size();
  934|  48.1k|        const size_t y_size = y_view.size();
  935|   223k|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (935:31): [True: 175k, False: 48.1k]
  ------------------
  936|   175k|        {
  937|   175k|            d = this_view[i] + carry;
  938|   175k|            carry = d < carry;
  939|   175k|            this_view[i] = d + y_view[i];
  940|   175k|            if (this_view[i] < d)
  ------------------
  |  Branch (940:17): [True: 581, False: 175k]
  ------------------
  941|    581|                carry = 1;
  942|   175k|        }
  943|  48.4k|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (943:36): [True: 48.1k, False: 288]
  |  Branch (943:53): [True: 288, False: 47.8k]
  ------------------
  944|    288|        {
  945|    288|            d = this_view[i] + carry;
  946|    288|            carry = d < carry;
  947|    288|            this_view[i] = d;
  948|    288|        }
  949|  48.1k|        reduce();
  950|  48.1k|        return *this;
  951|  48.1k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1641|   493k|    {
 1642|   493k|        auto this_view = get_storage_view();
 1643|   493k|        auto y_view = y.get_storage_view();
 1644|       |
 1645|   493k|        const size_type y_size = y_view.size();
 1646|   493k|        if ( this_view.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1646:14): [True: 0, False: 493k]
  |  Branch (1646:39): [True: 0, False: 0]
  ------------------
 1647|      0|            return 0;
 1648|   493k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1648:14): [True: 0, False: 493k]
  ------------------
 1649|      0|            return y.is_negative() - is_negative();
 1650|   493k|        int code = 0;
 1651|   493k|        if ( this_view.size() < y_size)
  ------------------
  |  Branch (1651:14): [True: 0, False: 493k]
  ------------------
 1652|      0|            code = -1;
 1653|   493k|        else if ( this_view.size() > y_size)
  ------------------
  |  Branch (1653:19): [True: 315k, False: 177k]
  ------------------
 1654|   315k|            code = +1;
 1655|   177k|        else
 1656|   177k|        {
 1657|   177k|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1657:50): [True: 177k, False: 281]
  ------------------
 1658|   177k|            {
 1659|   177k|                if (this_view[i] > y_view[i])
  ------------------
  |  Branch (1659:21): [True: 1.24k, False: 176k]
  ------------------
 1660|  1.24k|                {
 1661|  1.24k|                    code = 1;
 1662|  1.24k|                    break;
 1663|  1.24k|                }
 1664|   176k|                else if (this_view[i] < y_view[i])
  ------------------
  |  Branch (1664:26): [True: 175k, False: 281]
  ------------------
 1665|   175k|                {
 1666|   175k|                    code = -1;
 1667|   175k|                    break;
 1668|   175k|                }
 1669|   177k|            }
 1670|   177k|        }
 1671|   493k|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1671:16): [True: 0, False: 493k]
  ------------------
 1672|   493k|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1476|   493k|    {
 1477|   493k|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1477:15): [True: 175k, False: 317k]
  ------------------
 1478|   493k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   84|  4.22M|        {
   85|  4.22M|            return size_;
   86|  4.22M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   69|   882k|        {
   70|   882k|            return data_[i];
   71|   882k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  733|  2.02M|    {
  734|  2.02M|        storage_.set_negative(value);
  735|  2.02M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  515|  2.02M|    {
  516|  2.02M|        common_.is_negative_ = value;
  517|  2.02M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12write_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1359|  86.6k|    {
 1360|  86.6k|        basic_bigint<Allocator> v(*this);
 1361|  86.6k|        auto v_view = v.get_storage_view();
 1362|       |
 1363|  86.6k|        size_type len = (v_view.size() * word_type_bits / 3) + 2;
 1364|  86.6k|        data.reserve(len);
 1365|       |
 1366|  86.6k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1366:14): [True: 1.54k, False: 85.1k]
  ------------------
 1367|  1.54k|        {
 1368|  1.54k|            data.push_back('0');
 1369|  1.54k|        }
 1370|  85.1k|        else
 1371|  85.1k|        {
 1372|  85.1k|            word_type r;
 1373|  85.1k|            basic_bigint<Allocator> R(get_allocator());
 1374|  85.1k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1375|       |
 1376|  85.1k|            do
 1377|   365k|            {
 1378|   365k|                v.divide( LP10, v, R, true );
 1379|   365k|                v_view = v.get_storage_view();
 1380|       |
 1381|   365k|                auto R_view = R.get_storage_view();
 1382|   365k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1382:22): [True: 364k, False: 495]
  ------------------
 1383|  5.86M|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1383:38): [True: 5.58M, False: 279k]
  ------------------
 1384|  5.58M|                {
 1385|  5.58M|                    data.push_back(char(r % 10u + '0'));
 1386|  5.58M|                    r /= 10u;
 1387|  5.58M|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1387:26): [True: 85.1k, False: 5.49M]
  ------------------
 1388|  85.1k|                        break;
 1389|  5.58M|                }
 1390|   365k|            } 
 1391|   365k|            while ( v_view.size() > 0);
  ------------------
  |  Branch (1391:21): [True: 279k, False: 85.1k]
  ------------------
 1392|       |
 1393|  85.1k|            if (is_negative())
  ------------------
  |  Branch (1393:17): [True: 47.1k, False: 38.0k]
  ------------------
 1394|  47.1k|            {
 1395|  47.1k|                data.push_back('-');
 1396|  47.1k|            }
 1397|  85.1k|            std::reverse(data.begin(),data.end());
 1398|  85.1k|        }
 1399|  86.6k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  713|  1.78M|    {
  714|  1.78M|        return storage_.get_allocator();
  715|  1.78M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  644|  85.1k|        : storage_(alloc)
  645|  85.1k|    {
  646|  85.1k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  293|   175k|        : word_allocator_type(alloc)
  294|   175k|    {
  295|   175k|        ::new (&inlined_) inlined_storage();
  296|   175k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  113|   175k|            : is_allocated_(false),
  114|   175k|            is_negative_(false),
  115|   175k|            size_(0),
  116|   175k|            values_{0, 0}
  117|   175k|        {
  118|   175k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1675|   493k|    {
 1676|   493k|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1677|   493k|        auto denom_view = denom.get_storage_view();
 1678|       |
 1679|   493k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1679:13): [True: 0, False: 493k]
  ------------------
 1680|      0|        {
 1681|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1682|      0|        }
 1683|   493k|        bool quot_neg = is_negative() ^ denom.is_negative();
 1684|   493k|        bool rem_neg = is_negative();
 1685|   493k|        basic_bigint<Allocator> num(*this, get_allocator());
 1686|   493k|        num.set_negative(false);
 1687|   493k|        denom.set_negative(false);
 1688|   493k|        if ( num < denom )
  ------------------
  |  Branch (1688:14): [True: 175k, False: 317k]
  ------------------
 1689|   175k|        {
 1690|   175k|            quot = word_type(0);
 1691|   175k|            quot.set_negative(quot_neg);
 1692|   175k|            rem = num;
 1693|   175k|            rem.set_negative(rem_neg);
 1694|   175k|            return;
 1695|   175k|        }
 1696|       |
 1697|   317k|        auto num_view = num.get_storage_view();
 1698|   317k|        auto quot_view = quot.get_storage_view();
 1699|   317k|        auto this_view = get_storage_view();
 1700|       |
 1701|   317k|        if ( denom_view.size() == 1 && num_view.size() == 1 )
  ------------------
  |  Branch (1701:14): [True: 317k, False: 0]
  |  Branch (1701:40): [True: 1.52k, False: 315k]
  ------------------
 1702|  1.52k|        {
 1703|  1.52k|            quot = word_type( num_view[0]/denom_view[0] );
 1704|  1.52k|            rem = word_type( num_view[0]%denom_view[0] );
 1705|  1.52k|            quot.set_negative(quot_neg);
 1706|  1.52k|            rem.set_negative(rem_neg);
 1707|  1.52k|            return;
 1708|  1.52k|        }
 1709|   315k|        if (denom_view.size() == 1 && (denom_view[0] & l_mask) == 0 )
  ------------------
  |  Branch (1709:13): [True: 315k, False: 0]
  |  Branch (1709:39): [True: 0, False: 315k]
  ------------------
 1710|      0|        {
 1711|       |            // Denominator fits into a half word
 1712|      0|            word_type divisor = denom_view[0], dHi = 0, q1, r, q2, dividend;
 1713|      0|            quot.resize(this_view.size());
 1714|      0|            quot_view = quot.get_storage_view();
 1715|      0|            for (size_type i=this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1715:48): [True: 0, False: 0]
  ------------------
 1716|      0|            {
 1717|      0|                dividend = (dHi << word_type_half_bits) | (this_view[i] >> word_type_half_bits);
 1718|      0|                q1 = dividend/divisor;
 1719|      0|                r = dividend % divisor;
 1720|      0|                dividend = (r << word_type_half_bits) | (this_view[i] & r_mask);
 1721|      0|                q2 = dividend/divisor;
 1722|      0|                dHi = dividend % divisor;
 1723|      0|                quot_view[i] = (q1 << word_type_half_bits) | q2;
 1724|      0|            }
 1725|      0|            quot.reduce();
 1726|      0|            rem = dHi;
 1727|      0|            quot.set_negative(quot_neg);
 1728|      0|            rem.set_negative(rem_neg);
 1729|      0|            return;
 1730|      0|        }
 1731|   315k|        basic_bigint<Allocator> num0(num, get_allocator());
 1732|   315k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1733|   315k|        int x = 0;
 1734|   315k|        bool second_done = normalize(denom, num, x);
 1735|   315k|        denom_view = denom.get_storage_view();
 1736|   315k|        num_view = num.get_storage_view();
 1737|       |
 1738|   315k|        size_type l = denom_view.size() - 1;
 1739|   315k|        size_type n = num_view.size() - 1;
 1740|   315k|        quot.resize(n - l);
 1741|   315k|        quot_view = quot.get_storage_view();
 1742|   282M|        for (size_type i = quot_view.size(); i-- > 0; )
  ------------------
  |  Branch (1742:46): [True: 282M, False: 315k]
  ------------------
 1743|   282M|        {
 1744|   282M|            quot_view[i] = 0;
 1745|   282M|        }
 1746|   315k|        rem = num;
 1747|   315k|        auto rem_view = rem.get_storage_view();
 1748|   315k|        if ( rem_view[n] >= denom_view[l] )
  ------------------
  |  Branch (1748:14): [True: 6.73k, False: 308k]
  ------------------
 1749|  6.73k|        {
 1750|  6.73k|            rem.resize(rem_view.size() + 1);
 1751|  6.73k|            rem_view = rem.get_storage_view();
 1752|  6.73k|            n++;
 1753|  6.73k|            quot.resize(quot_view.size() + 1);
 1754|  6.73k|            quot_view = quot.get_storage_view();
 1755|  6.73k|        }
 1756|   315k|        word_type d = denom_view[l];
 1757|       |
 1758|   282M|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1758:32): [True: 282M, False: 315k]
  ------------------
 1759|   282M|        {
 1760|   282M|            word_type q = DDquotient(rem_view[k], rem_view[k-1], d);
 1761|   282M|            subtractmul( rem_view.data() + (k - l - 1), denom_view.data(), l + 1, q );
 1762|   282M|            quot_view[k - l - 1] = q;
 1763|   282M|        }
 1764|   315k|        quot.reduce();
 1765|   315k|        quot.set_negative(quot_neg);
 1766|   315k|        if (remDesired)
  ------------------
  |  Branch (1766:13): [True: 315k, False: 0]
  ------------------
 1767|   315k|        {
 1768|   315k|            unnormalize(rem, x, second_done);
 1769|   315k|            rem.set_negative(rem_neg);
 1770|   315k|        }
 1771|   315k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  676|  1.61M|        : storage_(other.storage_, alloc)
  677|  1.61M|    {
  678|  1.61M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  319|  1.61M|        : word_allocator_type(alloc)
  320|  1.61M|    {
  321|  1.61M|        if (!other.is_allocated())
  ------------------
  |  Branch (321:13): [True: 964k, False: 652k]
  ------------------
  322|   964k|        {
  323|   964k|            ::new (&inlined_) inlined_storage(other.inlined_);
  324|   964k|        }
  325|   652k|        else
  326|   652k|        {
  327|   652k|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  328|   652k|        }
  329|  1.61M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 1872|   315k|    {
 1873|   315k|        auto denom_view = denom.get_storage_view();
 1874|   315k|        if (denom_view.size() == 0)
  ------------------
  |  Branch (1874:13): [True: 0, False: 315k]
  ------------------
 1875|      0|        {
 1876|      0|            return false;
 1877|      0|        }
 1878|   315k|        size_type r = denom_view.size() - 1;
 1879|   315k|        word_type y = denom_view[r];
 1880|       |
 1881|   315k|        x = 0;
 1882|   426k|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (1882:17): [True: 110k, False: 315k]
  ------------------
 1883|   110k|        {
 1884|   110k|            y <<= 1;
 1885|   110k|            x++;
 1886|   110k|        }
 1887|   315k|        denom <<= x;
 1888|   315k|        num <<= x;
 1889|       |
 1890|   315k|        denom_view = denom.get_storage_view();
 1891|   315k|        if ( r > 0 && denom_view[r] < denom_view[r-1] )
  ------------------
  |  Branch (1891:14): [True: 0, False: 315k]
  |  Branch (1891:23): [True: 0, False: 0]
  ------------------
 1892|      0|        {
 1893|      0|            denom *= max_word;
 1894|      0|            num *= max_word;
 1895|      0|            return true;
 1896|      0|        }
 1897|   315k|        return false;
 1898|   315k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1117|   631k|    {
 1118|   631k|        auto this_view = get_storage_view();
 1119|   631k|        size_type q = k / word_type_bits;
 1120|   631k|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1120:14): [True: 0, False: 631k]
  ------------------
 1121|      0|        {
 1122|      0|            resize(this_view.size() + q);
 1123|      0|            this_view = get_storage_view();
 1124|      0|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1124:50): [True: 0, False: 0]
  ------------------
 1125|      0|                this_view[i] = ( i < q ? 0 : this_view[i - q]);
  ------------------
  |  Branch (1125:34): [True: 0, False: 0]
  ------------------
 1126|      0|            k %= word_type_bits;
 1127|      0|        }
 1128|   631k|        if ( k )  // 0 < k < word_type_bits:
  ------------------
  |  Branch (1128:14): [True: 73.6k, False: 557k]
  ------------------
 1129|  73.6k|        {
 1130|  73.6k|            size_type k1 = word_type_bits - k;
 1131|  73.6k|            word_type mask = (word_type(1) << k) - word_type(1);
 1132|  73.6k|            resize( this_view.size() + 1 );
 1133|  73.6k|            this_view = get_storage_view();
 1134|  13.6M|            for (size_type i = this_view.size(); i-- > 0; )
  ------------------
  |  Branch (1134:50): [True: 13.5M, False: 73.6k]
  ------------------
 1135|  13.5M|            {
 1136|  13.5M|                this_view[i] <<= k;
 1137|  13.5M|                if ( i > 0 )
  ------------------
  |  Branch (1137:22): [True: 13.4M, False: 73.6k]
  ------------------
 1138|  13.4M|                    this_view[i] |= (this_view[i-1] >> k1) & mask;
 1139|  13.5M|            }
 1140|  73.6k|        }
 1141|   631k|        reduce();
 1142|   631k|        return *this;
 1143|   631k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1799|   282M|    {
 1800|   282M|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1801|   282M|                   dHi = d >> word_type_half_bits, dLo = d & r_mask;
 1802|   282M|        qHi = A/(dHi + 1);
 1803|       |        // This initial guess of qHi may be too small.
 1804|   282M|        middle = qHi * dLo;
 1805|   282M|        left = qHi * dHi;
 1806|   282M|        x = B - (middle << word_type_half_bits);
 1807|   282M|        A -= (middle >> word_type_half_bits) + left + (x > B);
 1808|   282M|        B = x;
 1809|   282M|        dLo1 = dLo << word_type_half_bits;
 1810|       |        // Increase qHi if necessary:
 1811|   405M|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1811:17): [True: 122M, False: 282M]
  |  Branch (1811:29): [True: 272k, False: 282M]
  |  Branch (1811:41): [True: 272k, False: 0]
  ------------------
 1812|   123M|        {
 1813|   123M|            x = B - dLo1;
 1814|   123M|            A -= dHi + (x > B);
 1815|   123M|            B = x;
 1816|   123M|            qHi++;
 1817|   123M|        }
 1818|   282M|        qLo = ((A << word_type_half_bits) | (B >> word_type_half_bits))/(dHi + 1);
 1819|       |        // This initial guess of qLo may be too small.
 1820|   282M|        right = qLo * dLo;
 1821|   282M|        middle = qLo * dHi;
 1822|   282M|        x = B - right;
 1823|   282M|        A -= (x > B);
 1824|   282M|        B = x;
 1825|   282M|        x = B - (middle << word_type_half_bits);
 1826|   282M|            A -= (middle >> word_type_half_bits) + (x > B);
 1827|   282M|        B = x;
 1828|       |        // Increase qLo if necessary:
 1829|   405M|        while ( A || B >= d )
  ------------------
  |  Branch (1829:17): [True: 439k, False: 404M]
  |  Branch (1829:22): [True: 122M, False: 282M]
  ------------------
 1830|   123M|        {
 1831|   123M|            x = B - d;
 1832|   123M|            A -= (x > B);
 1833|   123M|            B = x;
 1834|   123M|            qLo++;
 1835|   123M|        }
 1836|   282M|        return (qHi << word_type_half_bits) + qLo;
 1837|   282M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1841|   282M|    {
 1842|   282M|        word_type hi, lo, d, carry = 0;
 1843|   282M|        size_type i;
 1844|   564M|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1844:22): [True: 282M, False: 282M]
  ------------------
 1845|   282M|        {
 1846|   282M|            DDproduct( b[i], q, hi, lo );
 1847|   282M|            d = a[i];
 1848|   282M|            a[i] -= lo;
 1849|   282M|            if ( a[i] > d )
  ------------------
  |  Branch (1849:18): [True: 72.8M, False: 209M]
  ------------------
 1850|  72.8M|                carry++;
 1851|   282M|            d = a[i + 1];
 1852|   282M|            a[i + 1] -= hi + carry;
 1853|   282M|            carry = a[i + 1] > d;
 1854|   282M|        }
 1855|   282M|        if ( carry ) // q was too large
  ------------------
  |  Branch (1855:14): [True: 0, False: 282M]
  ------------------
 1856|      0|        {
 1857|      0|            q--;
 1858|      0|            carry = 0;
 1859|      0|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1859:26): [True: 0, False: 0]
  ------------------
 1860|      0|            {
 1861|      0|                d = a[i] + carry;
 1862|      0|                carry = d < carry;
 1863|      0|                a[i] = d + b[i];
 1864|      0|                if ( a[i] < d )
  ------------------
  |  Branch (1864:22): [True: 0, False: 0]
  ------------------
 1865|      0|                    carry = 1;
 1866|      0|            }
 1867|      0|            a[n] = 0;
 1868|      0|        }
 1869|   282M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   79|   564M|        {
   80|   564M|            return data_;
   81|   564M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 1901|   315k|    {
 1902|   315k|        if (secondDone)
  ------------------
  |  Branch (1902:13): [True: 0, False: 315k]
  ------------------
 1903|      0|        {
 1904|      0|            rem /= max_word;
 1905|      0|        }
 1906|   315k|        if ( x > 0 )
  ------------------
  |  Branch (1906:14): [True: 36.8k, False: 278k]
  ------------------
 1907|  36.8k|        {
 1908|  36.8k|            rem >>= x;
 1909|  36.8k|        }
 1910|   278k|        else
 1911|   278k|        {
 1912|   278k|            rem.reduce();
 1913|   278k|        }
 1914|   315k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  641|  90.6k|    basic_bigint() = default;
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErSEm:
 1146|  36.8k|    {
 1147|  36.8k|        auto this_view = get_storage_view();
 1148|  36.8k|        size_type q = k / word_type_bits;
 1149|  36.8k|        if ( q >= this_view.size())
  ------------------
  |  Branch (1149:14): [True: 0, False: 36.8k]
  ------------------
 1150|      0|        {
 1151|      0|            resize( 0 );
 1152|      0|            return *this;
 1153|      0|        }
 1154|  36.8k|        if (q > 0)
  ------------------
  |  Branch (1154:13): [True: 0, False: 36.8k]
  ------------------
 1155|      0|        {
 1156|      0|            memmove( this_view.data(), this_view.data()+q, size_type((this_view.size() - q)*sizeof(word_type)) );
 1157|      0|            resize( size_type(this_view.size() - q) );
 1158|      0|            k %= word_type_bits;
 1159|      0|            if ( k == 0 )
  ------------------
  |  Branch (1159:18): [True: 0, False: 0]
  ------------------
 1160|      0|            {
 1161|      0|                reduce();
 1162|      0|                return *this;
 1163|      0|            }
 1164|      0|        }
 1165|       |
 1166|  36.8k|        this_view = get_storage_view();
 1167|  36.8k|        size_type n = size_type(this_view.size() - 1);
 1168|  36.8k|        ssize_type k1 = word_type_bits - k;
 1169|  36.8k|        word_type mask = (word_type(1) << k) - 1;
 1170|  13.4M|        for (size_type i = 0; i <= n; i++)
  ------------------
  |  Branch (1170:31): [True: 13.4M, False: 36.8k]
  ------------------
 1171|  13.4M|        {
 1172|  13.4M|            this_view[i] >>= k;
 1173|  13.4M|            if ( i < n )
  ------------------
  |  Branch (1173:18): [True: 13.3M, False: 36.8k]
  ------------------
 1174|  13.3M|                this_view[i] |= ((this_view[i+1] & mask) << k1);
 1175|  13.4M|        }
 1176|  36.8k|        reduce();
 1177|  36.8k|        return *this;
 1178|  36.8k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  708|  2.64M|    {
  709|  2.64M|        storage_.destroy();
  710|  2.64M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  487|  2.64M|    {
  488|  2.64M|        if (is_allocated())
  ------------------
  |  Branch (488:13): [True: 721k, False: 1.92M]
  ------------------
  489|   721k|        {
  490|   721k|            allocated_.destroy(get_allocator());
  491|   721k|            allocated_.~allocated_storage();
  492|   721k|        }
  493|  1.92M|        else
  494|  1.92M|        {
  495|  1.92M|            inlined_.~inlined_storage();
  496|  1.92M|        }
  497|  2.64M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  246|   721k|        {
  247|   721k|            if (data_ != nullptr)
  ------------------
  |  Branch (247:17): [True: 721k, False: 0]
  ------------------
  248|   721k|            {
  249|   721k|                real_allocator_type alloc(a);
  250|   721k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  251|   721k|            }
  252|   721k|        }
_ZN8jsonconsmiENS_12basic_bigintINSt3__19allocatorImEEEERKS4_:
 1526|  48.1k|    {
 1527|  48.1k|        return x -= y;
 1528|  48.1k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  693|   225k|        : storage_(n, alloc)
  694|   225k|    {
  695|   225k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  360|   225k|        : word_allocator_type(alloc)
  361|   225k|    {
  362|   225k|        ::new (&inlined_) inlined_storage(n);
  363|   225k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  125|   225k|            : is_allocated_(false),
  126|   225k|            is_negative_(n < 0),
  127|   225k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (127:19): [True: 177k, False: 48.1k]
  ------------------
  128|   225k|        {
  129|   225k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (129:26): [True: 48.1k, False: 177k]
  ------------------
  130|   225k|            values_[1] = 0;
  131|   225k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  842|   718k|    {
  843|   718k|        storage_ = y.storage_;
  844|   718k|        return *this;
  845|   718k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  366|   718k|    {
  367|   718k|        if (this != &other)
  ------------------
  |  Branch (367:13): [True: 718k, False: 0]
  ------------------
  368|   718k|        {
  369|   718k|            auto other_view = other.get_storage_view();
  370|   718k|            resize(other_view.size());
  371|   718k|            auto this_view = get_storage_view();
  372|   718k|            if (other_view.size() > 0)
  ------------------
  |  Branch (372:17): [True: 542k, False: 176k]
  ------------------
  373|   542k|            {
  374|   542k|                common_.is_negative_ = other.common_.is_negative_;
  375|   542k|                std::memcpy(this_view.data(), other_view.data(), size_type(other_view.size()*sizeof(word_type)));
  376|   542k|            }
  377|   718k|        }
  378|   718k|        return *this;
  379|   718k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   79|   542k|        {
   80|   542k|            return data_;
   81|   542k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16write_string_hexIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1410|  90.9k|    {
 1411|       |
 1412|       |
 1413|  90.9k|        basic_bigint<Allocator> v(*this);
 1414|  90.9k|        auto v_view = v.get_storage_view();
 1415|       |
 1416|  90.9k|        size_type len = (v_view.size() * basic_bigint<Allocator>::word_type_bits / 3) + 2;
 1417|  90.9k|        data.reserve(len);
 1418|       |
 1419|  90.9k|        if ( v_view.size() == 0 )
  ------------------
  |  Branch (1419:14): [True: 246, False: 90.6k]
  ------------------
 1420|    246|        {
 1421|    246|            data.push_back('0');
 1422|    246|        }
 1423|  90.6k|        else
 1424|  90.6k|        {
 1425|  90.6k|            word_type r;
 1426|  90.6k|            basic_bigint<Allocator> R;
 1427|  90.6k|            basic_bigint<Allocator> LP10 = max_unsigned_power_16; // LP10 = max_unsigned_power_16 = ::pow(16, imax_unsigned_power_16)
 1428|  90.6k|            do
 1429|   127k|            {
 1430|   127k|                v.divide( LP10, v, R, true );
 1431|   127k|                v_view = v.get_storage_view();
 1432|   127k|                auto R_view = R.get_storage_view();
 1433|   127k|                r = (R_view.size() ? R_view[0] : 0);
  ------------------
  |  Branch (1433:22): [True: 124k, False: 3.68k]
  ------------------
 1434|   985k|                for ( size_type j=0; j < imax_unsigned_power_16; j++ )
  ------------------
  |  Branch (1434:38): [True: 947k, False: 37.2k]
  ------------------
 1435|   947k|                {
 1436|   947k|                    uint8_t c = r % 16u;
 1437|   947k|                    data.push_back((c < 10u) ? ('0' + c) : ('A' - 10u + c));
  ------------------
  |  Branch (1437:36): [True: 835k, False: 112k]
  ------------------
 1438|   947k|                    r /= 16u;
 1439|   947k|                    if ( r + v_view.size() == 0 )
  ------------------
  |  Branch (1439:26): [True: 90.6k, False: 857k]
  ------------------
 1440|  90.6k|                        break;
 1441|   947k|                }
 1442|   127k|            } 
 1443|   127k|            while (v_view.size() > 0);
  ------------------
  |  Branch (1443:20): [True: 37.2k, False: 90.6k]
  ------------------
 1444|       |
 1445|  90.6k|            if (is_negative())
  ------------------
  |  Branch (1445:17): [True: 1.03k, False: 89.6k]
  ------------------
 1446|  1.03k|            {
 1447|  1.03k|                data.push_back('-');
 1448|  1.03k|            }
 1449|  90.6k|            std::reverse(data.begin(),data.end());
 1450|  90.6k|        }
 1451|  90.9k|    }

_ZN8jsoncons6binary13big_to_nativeItNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   126k|    {
  183|   126k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 126k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   126k|        T val;
  188|   126k|        std::memcpy(&val,first,sizeof(T));
  189|   126k|        return byte_swap(val);
  190|   126k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  23.9M|    {
   29|  23.9M|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  23.9M|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  23.9M|#      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|  23.9M|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  7.53k|    {
  183|  7.53k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 7.53k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  7.53k|        T val;
  188|  7.53k|        std::memcpy(&val,first,sizeof(T));
  189|  7.53k|        return byte_swap(val);
  190|  7.53k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   579k|    {
   40|   579k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   579k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|   579k|#  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|   579k|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  7.19k|    {
  183|  7.19k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 7.19k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  7.19k|        T val;
  188|  7.19k|        std::memcpy(&val,first,sizeof(T));
  189|  7.19k|        return byte_swap(val);
  190|  7.19k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   168k|    {
   52|   168k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   168k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|   168k|#  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|   168k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  1.32M|    {
   29|  1.32M|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  1.32M|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  466|  1.32M|#      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|  1.32M|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  1.96M|    {
   40|  1.96M|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  1.96M|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  462|  1.96M|#  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|  1.96M|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  1.03M|    {
   52|  1.03M|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  1.03M|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  461|  1.03M|#  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|  1.03M|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|   204k|    {
   65|   204k|        uint32_t x;
   66|   204k|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|   204k|        uint32_t y = byte_swap(x);
   68|   204k|        T val2;
   69|   204k|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|   204k|        return val2;
   71|   204k|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|  52.6k|    {
   77|  52.6k|        uint64_t x;
   78|  52.6k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|  52.6k|        uint64_t y = byte_swap(x);
   80|  52.6k|        T val2;
   81|  52.6k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|  52.6k|        return val2;
   83|  52.6k|    }
_ZN8jsoncons6binary13big_to_nativeIfNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  14.0k|    {
  183|  14.0k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 14.0k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  14.0k|        T val;
  188|  14.0k|        std::memcpy(&val,first,sizeof(T));
  189|  14.0k|        return byte_swap(val);
  190|  14.0k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  3.80k|    {
  183|  3.80k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 3.80k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  3.80k|        T val;
  188|  3.80k|        std::memcpy(&val,first,sizeof(T));
  189|  3.80k|        return byte_swap(val);
  190|  3.80k|    }

_ZNK8jsoncons16byte_string_view4dataEv:
  399|  27.7M|        {
  400|  27.7M|            return data_;
  401|  27.7M|        }
_ZNK8jsoncons16byte_string_view4sizeEv:
  403|  34.4M|        {
  404|  34.4M|            return size_;
  405|  34.4M|        }
_ZN8jsoncons16byte_string_viewC2EPKhm:
  362|  36.0M|            : data_(data), size_(length)
  363|  36.0M|        {
  364|  36.0M|        }
_ZN8jsoncons15bytes_to_base64IPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  188|    925|    {
  189|    925|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  190|    925|                                                   "abcdefghijklmnopqrstuvwxyz"
  191|    925|                                                   "0123456789+/"
  192|    925|                                                   "=";
  193|    925|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  194|    925|    }
_ZN8jsoncons6detail23bytes_to_base64_genericIPKhNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEENS4_9enable_ifIXsr3std7is_sameINS4_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESD_SD_PKcRT0_:
   44|  8.30M|    {
   45|  8.30M|        std::size_t count = 0;
   46|  8.30M|        unsigned char a3[3];
   47|  8.30M|        unsigned char a4[4];
   48|  8.30M|        unsigned char fill = alphabet[64];
   49|  8.30M|        int i = 0;
   50|  8.30M|        int j = 0;
   51|       |
   52|  45.2M|        while (first != last)
  ------------------
  |  Branch (52:16): [True: 36.9M, False: 8.30M]
  ------------------
   53|  36.9M|        {
   54|  36.9M|            a3[i++] = *first++;
   55|  36.9M|            if (i == 3)
  ------------------
  |  Branch (55:17): [True: 11.6M, False: 25.3M]
  ------------------
   56|  11.6M|            {
   57|  11.6M|                a4[0] = (a3[0] & 0xfc) >> 2;
   58|  11.6M|                a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   59|  11.6M|                a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   60|  11.6M|                a4[3] = a3[2] & 0x3f;
   61|       |
   62|  58.1M|                for (i = 0; i < 4; i++) 
  ------------------
  |  Branch (62:29): [True: 46.5M, False: 11.6M]
  ------------------
   63|  46.5M|                {
   64|  46.5M|                    result.push_back(alphabet[a4[i]]);
   65|  46.5M|                    ++count;
   66|  46.5M|                }
   67|  11.6M|                i = 0;
   68|  11.6M|            }
   69|  36.9M|        }
   70|       |
   71|  8.30M|        if (i > 0)
  ------------------
  |  Branch (71:13): [True: 1.03M, False: 7.26M]
  ------------------
   72|  1.03M|        {
   73|  2.09M|            for (j = i; j < 3; ++j) 
  ------------------
  |  Branch (73:25): [True: 1.06M, False: 1.03M]
  ------------------
   74|  1.06M|            {
   75|  1.06M|                a3[j] = 0;
   76|  1.06M|            }
   77|       |
   78|  1.03M|            a4[0] = (a3[0] & 0xfc) >> 2;
   79|  1.03M|            a4[1] = ((a3[0] & 0x03) << 4) + ((a3[1] & 0xf0) >> 4);
   80|  1.03M|            a4[2] = ((a3[1] & 0x0f) << 2) + ((a3[2] & 0xc0) >> 6);
   81|       |
   82|  4.12M|            for (j = 0; j < i + 1; ++j) 
  ------------------
  |  Branch (82:25): [True: 3.08M, False: 1.03M]
  ------------------
   83|  3.08M|            {
   84|  3.08M|                result.push_back(alphabet[a4[j]]);
   85|  3.08M|                ++count;
   86|  3.08M|            }
   87|       |
   88|  1.03M|            if (fill != 0)
  ------------------
  |  Branch (88:17): [True: 443, False: 1.03M]
  ------------------
   89|    443|            {
   90|  1.32k|                while (i++ < 3) 
  ------------------
  |  Branch (90:24): [True: 879, False: 443]
  ------------------
   91|    879|                {
   92|    879|                    result.push_back(fill);
   93|    879|                    ++count;
   94|    879|                }
   95|    443|            }
   96|  1.03M|        }
   97|       |
   98|  8.30M|        return count;
   99|  8.30M|    }
_ZNK8jsoncons16byte_string_view5beginEv:
  409|  11.2M|        {
  410|  11.2M|            return data_;
  411|  11.2M|        }
_ZNK8jsoncons16byte_string_view3endEv:
  413|  11.2M|        {
  414|  11.2M|            return data_ + size_;
  415|  11.2M|        }
_ZN8jsoncons15bytes_to_base16IPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  162|    771|    {
  163|    771|        static constexpr char characters[] = "0123456789ABCDEF";
  164|       |
  165|   418k|        for (auto it = first; it != last; ++it)
  ------------------
  |  Branch (165:31): [True: 417k, False: 771]
  ------------------
  166|   417k|        {
  167|   417k|            uint8_t c = *it;
  168|   417k|            result.push_back(characters[c >> 4]);
  169|   417k|            result.push_back(characters[c & 0xf]);
  170|   417k|        }
  171|    771|        return (last-first)*2;
  172|    771|    }
_ZN8jsoncons18bytes_to_base64urlIPKhNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEENS3_9enable_ifIXsr3std7is_sameINS3_15iterator_traitsIT_E10value_typeEhEE5valueEmE4typeESC_SC_RT0_:
  177|  8.30M|    {
  178|  8.30M|        static constexpr char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  179|  8.30M|                                                      "abcdefghijklmnopqrstuvwxyz"
  180|  8.30M|                                                      "0123456789-_"
  181|  8.30M|                                                      "\0";
  182|  8.30M|        return detail::bytes_to_base64_generic(first, last, alphabet, result);
  183|  8.30M|    }
_ZN8jsoncons16byte_string_viewC2INSt3__16vectorIhNS2_9allocatorIhEEEEEERKT_NS2_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS7_EE5valueEiE4typeE:
  369|  89.5k|            : data_(reinterpret_cast<const uint8_t*>(cont.data())), size_(cont.size())
  370|  89.5k|        {
  371|  89.5k|        }
_ZN8jsoncons16byte_string_viewC2Ev:
  358|    661|        {
  359|    661|        }

_ZNK8jsoncons8identityclIRKhEEOT_S5_:
   19|  2.78M|    {
   20|  2.78M|        return std::forward<T>(val);
   21|  2.78M|    }
_ZNK8jsoncons8identityclIRKtEEOT_S5_:
   19|   430k|    {
   20|   430k|        return std::forward<T>(val);
   21|   430k|    }
_ZNK8jsoncons8identityclIRKjEEOT_S5_:
   19|   370k|    {
   20|   370k|        return std::forward<T>(val);
   21|   370k|    }
_ZNK8jsoncons8identityclIRKmEEOT_S5_:
   19|   109k|    {
   20|   109k|        return std::forward<T>(val);
   21|   109k|    }
_ZNK8jsoncons8identityclIRKaEEOT_S5_:
   19|  3.11M|    {
   20|  3.11M|        return std::forward<T>(val);
   21|  3.11M|    }
_ZNK8jsoncons8identityclIRKsEEOT_S5_:
   19|  1.32M|    {
   20|  1.32M|        return std::forward<T>(val);
   21|  1.32M|    }
_ZNK8jsoncons8identityclIRKiEEOT_S5_:
   19|  1.96M|    {
   20|  1.96M|        return std::forward<T>(val);
   21|  1.96M|    }
_ZNK8jsoncons8identityclIRKlEEOT_S5_:
   19|  1.03M|    {
   20|  1.03M|        return std::forward<T>(val);
   21|  1.03M|    }
_ZNK8jsoncons11decode_halfclEt:
   36|  34.0M|    {
   37|  34.0M|        return binary::decode_half(val);
   38|  34.0M|    }
_ZNK8jsoncons8identityclIRKfEEOT_S5_:
   19|   248k|    {
   20|   248k|        return std::forward<T>(val);
   21|   248k|    }
_ZNK8jsoncons8identityclIRKdEEOT_S5_:
   19|  61.0k|    {
   20|  61.0k|        return std::forward<T>(val);
   21|  61.0k|    }

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

_ZN8jsoncons10ext_traits16to_plain_pointerINS_4heap11heap_stringIcNS_9null_typeENSt3__19allocatorIcEEEEEEPT_SA_:
  241|  17.7k|    {       
  242|  17.7k|        return (ptr);
  243|  17.7k|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerINS_4heap11heap_stringIhmNSt3__19allocatorIcEEEEEEPT_S9_:
  241|  4.84M|    {       
  242|  4.84M|        return (ptr);
  243|  4.84M|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerINS_10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS5_6vectorEEEEEPT_SC_:
  241|   593k|    {       
  242|   593k|        return (ptr);
  243|   593k|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerINS_18sorted_json_objectINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES8_EENS3_6vectorEEEEEPT_SG_:
  241|  19.2M|    {       
  242|  19.2M|        return (ptr);
  243|  19.2M|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerIcEEPT_S3_:
  241|  4.86M|    {       
  242|  4.86M|        return (ptr);
  243|  4.86M|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerImEEPT_S3_:
  241|   682k|    {       
  242|   682k|        return (ptr);
  243|   682k|    }  

_ZN8jsoncons16decstr_to_doubleEPKcmRd:
  866|   194k|{
  867|   194k|    const char* cur = s+length;
  868|   194k|    char *end = nullptr;
  869|   194k|    val = strtod(s, &end);
  870|   194k|    const char* str_end = end;
  871|   194k|    if (JSONCONS_UNLIKELY(end < cur))
  ------------------
  |  |   78|   194k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 194k]
  |  |  ------------------
  ------------------
  872|      0|    {
  873|      0|        if (*end == '.')
  ------------------
  |  Branch (873:13): [True: 0, False: 0]
  ------------------
  874|      0|        {
  875|      0|            std::string buf{s, length};
  876|      0|            char* dot_ptr = &buf[0] + (cur - end - 1);
  877|      0|            *dot_ptr = ',';
  878|      0|            end = nullptr;
  879|      0|            val = strtod(buf.c_str(), &end);
  880|      0|            str_end = s + (end - &buf[0]);
  881|      0|        }
  882|      0|        if (JSONCONS_UNLIKELY(str_end != cur))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  883|      0|        {
  884|      0|            return to_number_result<char>{str_end,std::errc::invalid_argument};
  885|      0|        }
  886|      0|    }
  887|   194k|    if (JSONCONS_UNLIKELY(val <= -HUGE_VAL || val >= HUGE_VAL))
  ------------------
  |  |   78|   388k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 194k]
  |  |  |  Branch (78:50): [True: 0, False: 194k]
  |  |  |  Branch (78:50): [True: 0, False: 194k]
  |  |  ------------------
  ------------------
  888|      0|    {
  889|      0|        return to_number_result<char>{str_end, std::errc::result_out_of_range};
  890|      0|    }
  891|   194k|    return to_number_result<char>{str_end};
  892|   194k|}
_ZN8jsoncons16to_number_resultIcEC2EPKc:
  137|   194k|        : ptr(ptr_), ec(std::errc{})
  138|   194k|    {
  139|   194k|    }

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|  2.92M|    {
 1148|  2.92M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|  2.92M|        const uint8_t* end = it + length;
 1150|       |
 1151|  2.92M|        unicode_errc  result{};
 1152|  4.15M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 1.22M, False: 2.92M]
  ------------------
 1153|  1.22M|        {
 1154|  1.22M|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 209k, False: 1.02M]
  ------------------
 1155|   209k|            {
 1156|  1.45M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|   418k|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 208k, False: 268]
  |  |  |  Branch (281:34): [True: 208k, False: 420]
  |  |  |  Branch (281:36): [True: 207k, False: 536]
  |  |  |  Branch (281:38): [True: 207k, False: 138]
  |  |  |  Branch (281:40): [True: 207k, False: 38]
  |  |  |  Branch (281:42): [True: 207k, False: 52]
  |  |  |  Branch (281:44): [True: 207k, False: 45]
  |  |  |  Branch (281:46): [True: 207k, False: 40]
  |  |  ------------------
  ------------------
 1157|   207k|                continue;
 1158|  1.45M|            }
 1159|  1.02M|    non_ascii:
 1160|  1.02M|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  1.02M|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 22, False: 1.02M]
  ------------------
 1162|     22|            {
 1163|     22|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     22|            }
 1165|  1.02M|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 151, False: 1.02M]
  ------------------
 1166|    151|            {
 1167|    151|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    151|            }
 1169|  1.02M|            it += len;
 1170|  1.02M|        }
 1171|  2.92M|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|  2.92M|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  1.02M|    {
  306|  1.02M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  1.02M|        const uint8_t* end = it+length;
  308|       |
  309|  1.02M|        uint8_t byte;
  310|  1.02M|        switch (length) {
  311|     26|        default:
  ------------------
  |  Branch (311:9): [True: 26, False: 1.02M]
  ------------------
  312|     26|            return unicode_errc::over_long_utf8_sequence;
  313|    493|        case 4:
  ------------------
  |  Branch (313:9): [True: 493, False: 1.02M]
  ------------------
  314|    493|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 8, False: 485]
  ------------------
  315|      8|                return unicode_errc::bad_continuation_byte;
  316|    485|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|    485|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  1.73k|        case 3:
  ------------------
  |  Branch (317:9): [True: 1.24k, False: 1.02M]
  ------------------
  318|  1.73k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 11, False: 1.71k]
  ------------------
  319|     11|                return unicode_errc::bad_continuation_byte;
  320|  1.71k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  1.71k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  3.20k|        case 2:
  ------------------
  |  Branch (321:9): [True: 1.49k, False: 1.02M]
  ------------------
  322|  3.20k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 39, False: 3.17k]
  ------------------
  323|     39|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  3.17k|            switch (*it) 
  326|  3.17k|            {
  327|       |                // no fall-through in this inner switch
  328|    584|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 584, False: 2.58k]
  |  Branch (328:32): [True: 3, False: 581]
  ------------------
  329|    581|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 442, False: 2.72k]
  |  Branch (329:32): [True: 5, False: 437]
  ------------------
  330|    437|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 198, False: 2.97k]
  |  Branch (330:32): [True: 3, False: 195]
  ------------------
  331|    210|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 210, False: 2.96k]
  |  Branch (331:32): [True: 3, False: 207]
  ------------------
  332|  1.73k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 1.73k, False: 1.43k]
  |  Branch (332:32): [True: 0, False: 1.73k]
  ------------------
  333|  3.17k|            }
  334|       |
  335|  3.15k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  3.15k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  1.02M|        case 1:
  ------------------
  |  Branch (336:9): [True: 1.01M, False: 3.25k]
  ------------------
  337|  1.02M|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 3.20k, False: 1.01M]
  |  Branch (337:32): [True: 52, False: 3.15k]
  ------------------
  338|     52|                return unicode_errc::source_illegal;
  339|  1.02M|            break;
  340|  1.02M|        }
  341|  1.02M|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 1, False: 1.02M]
  ------------------
  342|      1|            return unicode_errc::source_illegal;
  343|       |
  344|  1.02M|        return unicode_errc();
  345|  1.02M|    }

_ZN8jsoncons12from_integerImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  15.5M|{
   43|  15.5M|    using char_type = typename Result::value_type;
   44|       |
   45|  15.5M|    char_type buf[255];
   46|  15.5M|    char_type *p = buf;
   47|  15.5M|    const char_type* last = buf+255;
   48|       |
   49|  15.5M|    bool is_negative = value < 0;
   50|       |
   51|  15.5M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 15.5M]
  ------------------
   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|  15.5M|    else
   60|  15.5M|    {
   61|       |
   62|  15.5M|        do
   63|  25.2M|        {
   64|  25.2M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  25.2M|        }
   66|  25.2M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 9.70M, False: 15.5M]
  |  Branch (66:33): [True: 9.70M, False: 0]
  ------------------
   67|  15.5M|    }
   68|  15.5M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  15.5M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 15.5M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  15.5M|    std::size_t count = (p - buf);
   71|  15.5M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 15.5M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  40.7M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 25.2M, False: 15.5M]
  ------------------
   77|  25.2M|    {
   78|  25.2M|        result.push_back(*p);
   79|  25.2M|    }
   80|       |
   81|  15.5M|    return count;
   82|  15.5M|}
_ZN8jsoncons12from_integerIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  8.58M|{
   43|  8.58M|    using char_type = typename Result::value_type;
   44|       |
   45|  8.58M|    char_type buf[255];
   46|  8.58M|    char_type *p = buf;
   47|  8.58M|    const char_type* last = buf+255;
   48|       |
   49|  8.58M|    bool is_negative = value < 0;
   50|       |
   51|  8.58M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 6.49M, False: 2.08M]
  ------------------
   52|  6.49M|    {
   53|  6.49M|        do
   54|  25.2M|        {
   55|  25.2M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  25.2M|        }
   57|  25.2M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 18.7M, False: 6.49M]
  |  Branch (57:33): [True: 18.7M, False: 0]
  ------------------
   58|  6.49M|    }
   59|  2.08M|    else
   60|  2.08M|    {
   61|       |
   62|  2.08M|        do
   63|  11.4M|        {
   64|  11.4M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  11.4M|        }
   66|  11.4M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 9.38M, False: 2.08M]
  |  Branch (66:33): [True: 9.38M, False: 0]
  ------------------
   67|  2.08M|    }
   68|  8.58M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  8.58M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 8.58M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  8.58M|    std::size_t count = (p - buf);
   71|  8.58M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 6.49M, False: 2.08M]
  ------------------
   72|  6.49M|    {
   73|  6.49M|        result.push_back('-');
   74|  6.49M|        ++count;
   75|  6.49M|    }
   76|  45.3M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 36.7M, False: 8.58M]
  ------------------
   77|  36.7M|    {
   78|  36.7M|        result.push_back(*p);
   79|  36.7M|    }
   80|       |
   81|  8.58M|    return count;
   82|  8.58M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  28.1M|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  28.1M|    {
  489|  28.1M|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  28.1M|        struct lconv *lc = localeconv();
  491|  28.1M|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 28.1M, False: 0]
  |  Branch (491:30): [True: 28.1M, False: 0]
  ------------------
  492|  28.1M|        {
  493|  28.1M|            decimal_point_ = lc->decimal_point[0];
  494|  28.1M|        }
  495|  28.1M|#endif
  496|  28.1M|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  28.1M|    {
  504|  28.1M|        std::size_t count = 0;
  505|       |
  506|  28.1M|        char number_buffer[200];
  507|  28.1M|        int length = 0;
  508|       |
  509|  28.1M|        switch (float_format_)
  510|  28.1M|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 28.1M]
  ------------------
  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: 28.1M]
  ------------------
  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|  28.1M|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 28.1M, False: 0]
  ------------------
  552|  28.1M|            {
  553|  28.1M|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 28.1M]
  ------------------
  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|  28.1M|                else
  563|  28.1M|                {
  564|  28.1M|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 28.1M]
  ------------------
  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|  28.1M|                }             
  569|  28.1M|                break;
  570|  28.1M|            }
  571|  28.1M|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 28.1M]
  ------------------
  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|  28.1M|        }
  575|  28.1M|        return count;
  576|  28.1M|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|   194k|{
  244|   194k|    const char *sbeg = buffer;
  245|   194k|    const char *send = sbeg + length;
  246|       |
  247|   194k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 194k, False: 0]
  ------------------
  248|   194k|    {
  249|   194k|        bool needs_dot = true;
  250|  4.34M|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 4.15M, False: 194k]
  ------------------
  251|  4.15M|        {
  252|  4.15M|            switch (*q)
  253|  4.15M|            {
  254|  62.6k|            case '-':
  ------------------
  |  Branch (254:13): [True: 62.6k, False: 4.08M]
  ------------------
  255|   829k|            case '0':
  ------------------
  |  Branch (255:13): [True: 766k, False: 3.38M]
  ------------------
  256|  1.25M|            case '1':
  ------------------
  |  Branch (256:13): [True: 429k, False: 3.72M]
  ------------------
  257|  1.53M|            case '2':
  ------------------
  |  Branch (257:13): [True: 278k, False: 3.87M]
  ------------------
  258|  2.01M|            case '3':
  ------------------
  |  Branch (258:13): [True: 474k, False: 3.67M]
  ------------------
  259|  2.37M|            case '4':
  ------------------
  |  Branch (259:13): [True: 364k, False: 3.78M]
  ------------------
  260|  2.54M|            case '5':
  ------------------
  |  Branch (260:13): [True: 172k, False: 3.97M]
  ------------------
  261|  2.69M|            case '6':
  ------------------
  |  Branch (261:13): [True: 147k, False: 4.00M]
  ------------------
  262|  3.13M|            case '7':
  ------------------
  |  Branch (262:13): [True: 434k, False: 3.71M]
  ------------------
  263|  3.70M|            case '8':
  ------------------
  |  Branch (263:13): [True: 569k, False: 3.58M]
  ------------------
  264|  3.91M|            case '9':
  ------------------
  |  Branch (264:13): [True: 218k, False: 3.93M]
  ------------------
  265|  3.92M|            case '+':
  ------------------
  |  Branch (265:13): [True: 676, False: 4.14M]
  ------------------
  266|  3.92M|                result.push_back(*q);
  267|  3.92M|                break;
  268|  35.2k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 35.2k, False: 4.11M]
  ------------------
  269|  35.2k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 4.15M]
  ------------------
  270|  35.2k|                result.push_back('e');
  271|  35.2k|                needs_dot = false;
  272|  35.2k|                break;
  273|   194k|            default:
  ------------------
  |  Branch (273:13): [True: 194k, False: 3.95M]
  ------------------
  274|   194k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 192k, False: 1.53k]
  ------------------
  275|   192k|                {
  276|   192k|                    needs_dot = false;
  277|   192k|                    result.push_back('.');
  278|   192k|                }
  279|   194k|                break;
  280|  4.15M|            }
  281|  4.15M|        }
  282|   194k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 1.32k, False: 192k]
  ------------------
  283|  1.32k|        {
  284|  1.32k|            result.push_back('.');
  285|  1.32k|            result.push_back('0');
  286|  1.32k|        }
  287|   194k|    }
  288|   194k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKciiiiRT_:
  171|  26.5M|{
  172|  26.5M|    int nb_digits = length;
  173|  26.5M|    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|  26.5M|    int kk = nb_digits + k;
  179|       |
  180|  26.5M|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 3.83M, False: 22.6M]
  |  Branch (180:28): [True: 2.34M, False: 1.48M]
  ------------------
  181|  2.34M|    {
  182|       |        /* the first digits are already in. Add some 0s and call it a day. */
  183|       |        /* the max_exp is a personal choice. Only 16 digits could possibly be relevant.
  184|       |         * Basically we want to print 12340000000 rather than 1234.0e7 or 1.234e10 */
  185|  10.3M|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 8.02M, False: 2.34M]
  ------------------
  186|  8.02M|        {
  187|  8.02M|            result.push_back(buffer[i]);
  188|  8.02M|        }
  189|  2.72M|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 382k, False: 2.34M]
  ------------------
  190|   382k|        {
  191|   382k|            result.push_back('0');
  192|   382k|        }
  193|  2.34M|        result.push_back('.');
  194|  2.34M|        result.push_back('0');
  195|  2.34M|    } 
  196|  24.1M|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 5.41M, False: 18.7M]
  |  Branch (196:24): [True: 3.92M, False: 1.48M]
  ------------------
  197|  3.92M|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  11.7M|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 7.86M, False: 3.92M]
  ------------------
  200|  7.86M|        {
  201|  7.86M|            result.push_back(buffer[i]);
  202|  7.86M|        }
  203|  3.92M|        result.push_back('.');
  204|  17.9M|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 13.9M, False: 3.92M]
  ------------------
  205|  13.9M|        {
  206|  13.9M|            result.push_back(buffer[i]);
  207|  13.9M|        }
  208|  3.92M|    } 
  209|  20.2M|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 18.0M, False: 2.22M]
  |  Branch (209:30): [True: 16.5M, False: 1.48M]
  ------------------
  210|  16.5M|    {
  211|  16.5M|        offset = 2 - kk;
  212|       |
  213|  16.5M|        result.push_back('0');
  214|  16.5M|        result.push_back('.');
  215|  61.4M|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 44.9M, False: 16.5M]
  ------------------
  216|  44.9M|            result.push_back('0');
  217|   284M|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 267M, False: 16.5M]
  ------------------
  218|   267M|        {
  219|   267M|            result.push_back(buffer[i]);
  220|   267M|        }
  221|  16.5M|    } 
  222|  3.71M|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 474, False: 3.71M]
  ------------------
  223|    474|    {
  224|    474|        result.push_back(buffer[0]);
  225|    474|        result.push_back('e');
  226|    474|        fill_exponent(kk - 1, result);
  227|    474|    } 
  228|  3.71M|    else
  229|  3.71M|    {
  230|  3.71M|        result.push_back(buffer[0]);
  231|  3.71M|        result.push_back('.');
  232|  57.6M|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 53.9M, False: 3.71M]
  ------------------
  233|  53.9M|        {
  234|  53.9M|            result.push_back(buffer[i]);
  235|  53.9M|        }
  236|  3.71M|        result.push_back('e');
  237|  3.71M|        fill_exponent(kk - 1, result);
  238|  3.71M|    }
  239|  26.5M|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  3.71M|{
  137|  3.71M|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 2.22M, False: 1.48M]
  ------------------
  138|  2.22M|    {
  139|  2.22M|        result.push_back('-');
  140|  2.22M|        K = -K;
  141|  2.22M|    }
  142|  1.48M|    else
  143|  1.48M|    {
  144|  1.48M|        result.push_back('+'); // compatibility with sprintf
  145|  1.48M|    }
  146|       |
  147|  3.71M|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 2.11M, False: 1.60M]
  ------------------
  148|  2.11M|    {
  149|  2.11M|        result.push_back('0'); // compatibility with sprintf
  150|  2.11M|        result.push_back((char)('0' + K));
  151|  2.11M|    }
  152|  1.60M|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 153k, False: 1.45M]
  ------------------
  153|   153k|    {
  154|   153k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|   153k|        result.push_back((char)('0' + K));
  156|   153k|    }
  157|  1.45M|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 1.45M, False: 0]
  ------------------
  158|  1.45M|    {
  159|  1.45M|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|  1.45M|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|  1.45M|        result.push_back((char)('0' + K));
  162|  1.45M|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::from_integer(K, result);
  166|      0|    }
  167|  3.71M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  28.1M|{
  476|  28.1M|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  28.1M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  28.1M|{
  367|  28.1M|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 1.45M, False: 26.6M]
  ------------------
  368|  1.45M|    {
  369|  1.45M|        result.push_back('0');
  370|  1.45M|        result.push_back('.');
  371|  1.45M|        result.push_back('0');
  372|  1.45M|        return true;
  373|  1.45M|    }
  374|       |
  375|  26.6M|    int length = 0;
  376|  26.6M|    int k;
  377|       |
  378|  26.6M|    char buffer[100];
  379|       |
  380|  26.6M|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 20.1M, False: 6.51M]
  ------------------
  381|  26.6M|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 26.5M, False: 194k]
  ------------------
  382|  26.5M|    {
  383|  26.5M|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 20.1M, False: 6.34M]
  ------------------
  384|  20.1M|        {
  385|  20.1M|            result.push_back('-');
  386|  20.1M|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  26.5M|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  26.5M|        return true;
  391|  26.5M|    }
  392|   194k|    else
  393|   194k|    {
  394|   194k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|   194k|    }
  396|  26.6M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|   194k|{
  330|   194k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 194k]
  ------------------
  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|   194k|    char buffer[100];
  339|   194k|    int precision = std::numeric_limits<double>::digits10;
  340|   194k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|   194k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 194k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|   194k|    double x{0};
  346|   194k|    auto res = decstr_to_double(buffer, length, x);
  347|   194k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 194k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|   194k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 193k, False: 385]
  ------------------
  352|   193k|    {
  353|   193k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|   193k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|   193k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 193k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|   193k|    }
  360|   194k|    dump_buffer(buffer, length, decimal_point, result);
  361|   194k|    return true;
  362|   194k|}
_ZN8jsoncons15prettify_stringINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvPKciiiiRT_:
  171|   827k|{
  172|   827k|    int nb_digits = length;
  173|   827k|    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|   827k|    int kk = nb_digits + k;
  179|       |
  180|   827k|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 46.3k, False: 780k]
  |  Branch (180:28): [True: 45.1k, False: 1.26k]
  ------------------
  181|  45.1k|    {
  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|   240k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 195k, False: 45.1k]
  ------------------
  186|   195k|        {
  187|   195k|            result.push_back(buffer[i]);
  188|   195k|        }
  189|   114k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 69.5k, False: 45.1k]
  ------------------
  190|  69.5k|        {
  191|  69.5k|            result.push_back('0');
  192|  69.5k|        }
  193|  45.1k|        result.push_back('.');
  194|  45.1k|        result.push_back('0');
  195|  45.1k|    } 
  196|   781k|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 779k, False: 2.35k]
  |  Branch (196:24): [True: 778k, False: 1.46k]
  ------------------
  197|   778k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  1.56M|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 786k, False: 778k]
  ------------------
  200|   786k|        {
  201|   786k|            result.push_back(buffer[i]);
  202|   786k|        }
  203|   778k|        result.push_back('.');
  204|  1.55M|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 780k, False: 778k]
  ------------------
  205|   780k|        {
  206|   780k|            result.push_back(buffer[i]);
  207|   780k|        }
  208|   778k|    } 
  209|  3.82k|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 2.79k, False: 1.02k]
  |  Branch (209:30): [True: 1.33k, False: 1.46k]
  ------------------
  210|  1.33k|    {
  211|  1.33k|        offset = 2 - kk;
  212|       |
  213|  1.33k|        result.push_back('0');
  214|  1.33k|        result.push_back('.');
  215|  3.04k|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 1.71k, False: 1.33k]
  ------------------
  216|  1.71k|            result.push_back('0');
  217|  3.08k|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 1.74k, False: 1.33k]
  ------------------
  218|  1.74k|        {
  219|  1.74k|            result.push_back(buffer[i]);
  220|  1.74k|        }
  221|  1.33k|    } 
  222|  2.48k|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 1.26k, False: 1.21k]
  ------------------
  223|  1.26k|    {
  224|  1.26k|        result.push_back(buffer[0]);
  225|  1.26k|        result.push_back('e');
  226|  1.26k|        fill_exponent(kk - 1, result);
  227|  1.26k|    } 
  228|  1.21k|    else
  229|  1.21k|    {
  230|  1.21k|        result.push_back(buffer[0]);
  231|  1.21k|        result.push_back('.');
  232|   410k|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 409k, False: 1.21k]
  ------------------
  233|   409k|        {
  234|   409k|            result.push_back(buffer[i]);
  235|   409k|        }
  236|  1.21k|        result.push_back('e');
  237|  1.21k|        fill_exponent(kk - 1, result);
  238|  1.21k|    }
  239|   827k|}
_ZN8jsoncons13fill_exponentINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEviRT_:
  136|  2.48k|{
  137|  2.48k|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 1.02k, False: 1.46k]
  ------------------
  138|  1.02k|    {
  139|  1.02k|        result.push_back('-');
  140|  1.02k|        K = -K;
  141|  1.02k|    }
  142|  1.46k|    else
  143|  1.46k|    {
  144|  1.46k|        result.push_back('+'); // compatibility with sprintf
  145|  1.46k|    }
  146|       |
  147|  2.48k|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 706, False: 1.78k]
  ------------------
  148|    706|    {
  149|    706|        result.push_back('0'); // compatibility with sprintf
  150|    706|        result.push_back((char)('0' + K));
  151|    706|    }
  152|  1.78k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 794, False: 987]
  ------------------
  153|    794|    {
  154|    794|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|    794|        result.push_back((char)('0' + K));
  156|    794|    }
  157|    987|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 218, False: 769]
  ------------------
  158|    218|    {
  159|    218|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|    218|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|    218|        result.push_back((char)('0' + K));
  162|    218|    }
  163|    769|    else
  164|    769|    {
  165|    769|        jsoncons::from_integer(K, result);
  166|    769|    }
  167|  2.48k|}
_ZN8jsoncons12from_integerIiNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|    769|{
   43|    769|    using char_type = typename Result::value_type;
   44|       |
   45|    769|    char_type buf[255];
   46|    769|    char_type *p = buf;
   47|    769|    const char_type* last = buf+255;
   48|       |
   49|    769|    bool is_negative = value < 0;
   50|       |
   51|    769|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 769]
  ------------------
   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|    769|    else
   60|    769|    {
   61|       |
   62|    769|        do
   63|  4.88k|        {
   64|  4.88k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  4.88k|        }
   66|  4.88k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 4.11k, False: 769]
  |  Branch (66:33): [True: 4.11k, False: 0]
  ------------------
   67|    769|    }
   68|    769|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|    769|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 769]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|    769|    std::size_t count = (p - buf);
   71|    769|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 769]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  5.65k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 4.88k, False: 769]
  ------------------
   77|  4.88k|    {
   78|  4.88k|        result.push_back(*p);
   79|  4.88k|    }
   80|       |
   81|    769|    return count;
   82|    769|}
_ZN8jsoncons14integer_to_hexImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   89|   116k|{
   90|   116k|    using char_type = typename Result::value_type;
   91|       |
   92|   116k|    char_type buf[255];
   93|   116k|    char_type *p = buf;
   94|   116k|    const char_type* last = buf+255;
   95|       |
   96|   116k|    bool is_negative = value < 0;
   97|       |
   98|   116k|    if (value < 0)
  ------------------
  |  Branch (98:9): [True: 0, False: 116k]
  ------------------
   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|   116k|    else
  107|   116k|    {
  108|       |
  109|   116k|        do
  110|   226k|        {
  111|   226k|            *p++ = to_hex_character(value % 16);
  112|   226k|        }
  113|   226k|        while ((value /= 16) && (p < last));
  ------------------
  |  Branch (113:16): [True: 109k, False: 116k]
  |  Branch (113:33): [True: 109k, False: 0]
  ------------------
  114|   116k|    }
  115|   116k|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|   116k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 116k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  116|       |
  117|   116k|    std::size_t count = (p - buf);
  118|   116k|    if (is_negative)
  ------------------
  |  Branch (118:9): [True: 0, False: 116k]
  ------------------
  119|      0|    {
  120|      0|        result.push_back('-');
  121|      0|        ++count;
  122|      0|    }
  123|   342k|    while (--p >= buf)
  ------------------
  |  Branch (123:12): [True: 226k, False: 116k]
  ------------------
  124|   226k|    {
  125|   226k|        result.push_back(*p);
  126|   226k|    }
  127|       |
  128|   116k|    return count;
  129|   116k|}
_ZN8jsoncons16to_hex_characterEh:
   33|   226k|{
   34|   226k|    return (char)((c < 10) ? ('0' + c) : ('A' - 10 + c));
  ------------------
  |  Branch (34:19): [True: 223k, False: 2.67k]
  ------------------
   35|   226k|}

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

_ZN8jsoncons4cbor15make_error_codeENS0_9cbor_errcE:
   93|  8.13k|{
   94|  8.13k|    return std::error_code(static_cast<int>(e),cbor_error_category());
   95|  8.13k|}
_ZN8jsoncons4cbor19cbor_error_categoryEv:
   86|  8.13k|{
   87|  8.13k|  static cbor_error_category_impl instance;
   88|  8.13k|  return instance;
   89|  8.13k|}
_ZNK8jsoncons4cbor24cbor_error_category_impl7messageEi:
   47|  8.13k|    {
   48|  8.13k|        switch (static_cast<cbor_errc>(ev))
   49|  8.13k|        {
   50|  7.04k|            case cbor_errc::unexpected_eof:
  ------------------
  |  Branch (50:13): [True: 7.04k, False: 1.09k]
  ------------------
   51|  7.04k|                return "Unexpected end of file";
   52|      0|            case cbor_errc::source_error:
  ------------------
  |  Branch (52:13): [True: 0, False: 8.13k]
  ------------------
   53|      0|                return "Source error";
   54|    134|            case cbor_errc::invalid_decimal_fraction:
  ------------------
  |  Branch (54:13): [True: 134, False: 8.00k]
  ------------------
   55|    134|                return "Invalid decimal fraction";
   56|     37|            case cbor_errc::invalid_bigfloat:
  ------------------
  |  Branch (56:13): [True: 37, False: 8.10k]
  ------------------
   57|     37|                return "Invalid bigfloat";
   58|    173|            case cbor_errc::invalid_utf8_text_string:
  ------------------
  |  Branch (58:13): [True: 173, False: 7.96k]
  ------------------
   59|    173|                return "Illegal UTF-8 encoding in text string";
   60|      0|            case cbor_errc::too_many_items:
  ------------------
  |  Branch (60:13): [True: 0, False: 8.13k]
  ------------------
   61|      0|                return "Too many items were added to a CBOR map or array of known length";
   62|      0|            case cbor_errc::too_few_items:
  ------------------
  |  Branch (62:13): [True: 0, False: 8.13k]
  ------------------
   63|      0|                return "Too few items were added to a CBOR map or array of known length";
   64|      0|            case cbor_errc::number_too_large:
  ------------------
  |  Branch (64:13): [True: 0, False: 8.13k]
  ------------------
   65|      0|                return "Number exceeds implementation limits";
   66|     74|            case cbor_errc::stringref_too_large:
  ------------------
  |  Branch (66:13): [True: 74, False: 8.06k]
  ------------------
   67|     74|                return "stringref exceeds stringref map size";
   68|     14|            case cbor_errc::max_nesting_depth_exceeded:
  ------------------
  |  Branch (68:13): [True: 14, False: 8.12k]
  ------------------
   69|     14|                return "Data item nesting exceeds limit in options";
   70|    405|            case cbor_errc::unknown_type:
  ------------------
  |  Branch (70:13): [True: 405, False: 7.73k]
  ------------------
   71|    405|                return "Unknown type in input";
   72|     88|            case cbor_errc::illegal_chunked_string:
  ------------------
  |  Branch (72:13): [True: 88, False: 8.05k]
  ------------------
   73|     88|                return "An illegal type was found while parsing an indefinite length string";
   74|     73|            case cbor_errc::bad_mdarray:
  ------------------
  |  Branch (74:13): [True: 73, False: 8.06k]
  ------------------
   75|     73|                return "Invalid multi-dimensional array.";
   76|     97|            case cbor_errc::bad_extents:
  ------------------
  |  Branch (76:13): [True: 97, False: 8.04k]
  ------------------
   77|     97|                return "Product of extents does not match number of elements.";
   78|      0|            default:
  ------------------
  |  Branch (78:13): [True: 0, False: 8.13k]
  ------------------
   79|      0|                return "Unknown CBOR parser error";
   80|  8.13k|        }
   81|  8.13k|    }

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

_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_13basic_istreamIcNS3_11char_traitsIcEEEEEEOT_RKNS0_19cbor_decode_optionsERKS7_:
  219|  11.0k|       : alloc_(alloc),
  220|  11.0k|         source_(std::forward<Sourceable>(source)),
  221|  11.0k|         max_nesting_depth_(options.max_nesting_depth()),
  222|  11.0k|         text_buffer_(alloc),
  223|  11.0k|         bytes_buffer_(alloc),
  224|  11.0k|         state_stack_(alloc),
  225|  11.0k|         stringref_map_stack_(alloc),
  226|  11.0k|         extents_(alloc)
  227|  11.0k|    {
  228|  11.0k|        state_stack_.emplace_back(parse_mode::root,0);
  229|  11.0k|    }
_ZN8jsoncons4cbor11parse_stateC2ENS0_10parse_modeEmb:
   51|  14.5M|        : mode(mode), length(length), pop_stringref_map_stack(pop_stringref_map_stack)
   52|  14.5M|    {
   53|  14.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringD2Ev:
  135|  10.0M|        ~mapped_string() = default;
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4lineEv:
  327|  8.13k|    {
  328|  8.13k|        return 0;
  329|  8.13k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE6columnEv:
  332|  8.13k|    {
  333|  8.13k|        return source_.position();
  334|  8.13k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEED2Ev:
  236|  11.0k|    ~basic_cbor_parser() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  244|  11.0k|    {
  245|  11.0k|        more_ = true;
  246|  11.0k|        done_ = false;
  247|  11.0k|        text_buffer_.clear();
  248|  11.0k|        bytes_buffer_.clear();
  249|  11.0k|        raw_tag_ = 0;
  250|  11.0k|        state_stack_.clear();
  251|  11.0k|        state_stack_.emplace_back(parse_mode::root,0);
  252|  11.0k|        stringref_map_stack_.clear();
  253|  11.0k|        nesting_depth_ = 0;
  254|  11.0k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  347|  11.0k|    {
  348|   121M|        while (!done_ && more_)
  ------------------
  |  Branch (348:16): [True: 121M, False: 2.89k]
  |  Branch (348:26): [True: 121M, False: 0]
  ------------------
  349|   121M|        {
  350|   121M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (350:21): [True: 121M, False: 0]
  ------------------
  351|   121M|            {
  352|  8.52k|                case parse_mode::multi_dim:
  ------------------
  |  Branch (352:17): [True: 8.52k, False: 121M]
  ------------------
  353|  8.52k|                {
  354|  8.52k|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   49|  8.52k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 8.52k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  355|  8.52k|                    typed_array_stack_.pop_back();
  356|  8.52k|                    state_stack_.pop_back();
  357|  8.52k|                    break;
  358|  8.52k|                }
  359|  45.6M|                case parse_mode::typed_array:
  ------------------
  |  Branch (359:17): [True: 45.6M, False: 75.7M]
  ------------------
  360|  45.6M|                {
  361|  45.6M|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   49|  45.6M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 45.6M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  362|  45.6M|                    read_typed_array_item(visitor, ec);
  363|  45.6M|                    auto iter = typed_array_stack_.back();
  364|  45.6M|                    if (iter->done())
  ------------------
  |  Branch (364:25): [True: 132k, False: 45.4M]
  ------------------
  365|   132k|                    {
  366|   132k|                        if (!is_multi_dim())
  ------------------
  |  Branch (366:29): [True: 124k, False: 7.86k]
  ------------------
  367|   124k|                        {
  368|   124k|                            typed_array_stack_.pop_back();
  369|   124k|                        }
  370|   132k|                        state_stack_.pop_back();
  371|   132k|                    }
  372|  45.6M|                    break;
  373|  45.6M|                }
  374|  10.0M|                case parse_mode::array:
  ------------------
  |  Branch (374:17): [True: 10.0M, False: 111M]
  ------------------
  375|  10.0M|                {
  376|  10.0M|                    if (is_multi_dim())
  ------------------
  |  Branch (376:25): [True: 67.0k, False: 10.0M]
  ------------------
  377|  67.0k|                    {
  378|  67.0k|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   49|  67.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 67.0k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  379|  67.0k|                        auto iter = typed_array_stack_.back();
  380|  67.0k|                        if (!iter->done())
  ------------------
  |  Branch (380:29): [True: 66.5k, False: 558]
  ------------------
  381|  66.5k|                        {
  382|  66.5k|                            iter->next(visitor, *this, ec);
  383|  66.5k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  66.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 53, False: 66.4k]
  |  |  ------------------
  ------------------
  384|     53|                            {
  385|     53|                                return;
  386|     53|                            }
  387|  66.5k|                        }
  388|    558|                        else
  389|    558|                        {
  390|    558|                            if (iter->count() != state_stack_.back().length)
  ------------------
  |  Branch (390:33): [True: 10, False: 548]
  ------------------
  391|     10|                            {
  392|       |                                //std::cout << state_stack_.back().index << "!=" << state_stack_.back().length << "\n";
  393|     10|                                ec = cbor_errc::bad_mdarray;
  394|     10|                                return;
  395|     10|                            }
  396|    548|                            end_classical_array_storage(ec);
  397|    548|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    548|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 548]
  |  |  ------------------
  ------------------
  398|      0|                            {
  399|      0|                                return;
  400|      0|                            }
  401|    548|                        }
  402|  67.0k|                    }
  403|  10.0M|                    else
  404|  10.0M|                    {
  405|  10.0M|                        if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (405:29): [True: 9.56M, False: 437k]
  ------------------
  406|  9.56M|                        {
  407|  9.56M|                            ++state_stack_.back().index;
  408|  9.56M|                            read_item(visitor, ec);
  409|  9.56M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  9.56M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.10k, False: 9.56M]
  |  |  ------------------
  ------------------
  410|  1.10k|                            {
  411|  1.10k|                                return;
  412|  1.10k|                            }
  413|  9.56M|                        }
  414|   437k|                        else
  415|   437k|                        {
  416|   437k|                            end_array(visitor, ec);
  417|   437k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   437k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 437k]
  |  |  ------------------
  ------------------
  418|      0|                            {
  419|      0|                                return;
  420|      0|                            }
  421|   437k|                        }
  422|  10.0M|                    }
  423|  10.0M|                    break;
  424|  10.0M|                }
  425|  24.4M|                case parse_mode::indefinite_array:
  ------------------
  |  Branch (425:17): [True: 24.4M, False: 96.8M]
  ------------------
  426|  24.4M|                {
  427|  24.4M|                    if (is_multi_dim()) 
  ------------------
  |  Branch (427:25): [True: 57.1k, False: 24.3M]
  ------------------
  428|  57.1k|                    {
  429|  57.1k|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   49|  57.1k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 57.1k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  430|  57.1k|                        auto iter = typed_array_stack_.back();
  431|  57.1k|                        if (!iter->done())
  ------------------
  |  Branch (431:29): [True: 56.9k, False: 126]
  ------------------
  432|  56.9k|                        {
  433|  56.9k|                            iter->next(visitor, *this, ec);
  434|  56.9k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  56.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 27, False: 56.9k]
  |  |  ------------------
  ------------------
  435|     27|                            {
  436|     27|                                return;
  437|     27|                            }
  438|  56.9k|                        }
  439|    126|                        else
  440|    126|                        {
  441|    126|                            auto c = source_.peek();
  442|    126|                            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|    126|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 125]
  |  |  ------------------
  ------------------
  443|      1|                            {
  444|      1|                                ec = cbor_errc::unexpected_eof;
  445|      1|                                more_ = false;
  446|      1|                                return;
  447|      1|                            }
  448|    125|                            if (c.value == 0xff)
  ------------------
  |  Branch (448:33): [True: 115, False: 10]
  ------------------
  449|    115|                            {
  450|    115|                                source_.ignore(1);
  451|    115|                            }
  452|     10|                            else
  453|     10|                            {
  454|     10|                                ec = cbor_errc::bad_mdarray;
  455|     10|                                return;
  456|     10|                            }
  457|    115|                            end_classical_array_storage(ec);
  458|    115|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    115|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 115]
  |  |  ------------------
  ------------------
  459|      0|                            {
  460|      0|                                return;
  461|      0|                            }
  462|    115|                        }
  463|  57.1k|                    }
  464|  24.3M|                    else
  465|  24.3M|                    {
  466|  24.3M|                        auto c = source_.peek();
  467|  24.3M|                        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  24.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.08k, False: 24.3M]
  |  |  ------------------
  ------------------
  468|  1.08k|                        {
  469|  1.08k|                            ec = cbor_errc::unexpected_eof;
  470|  1.08k|                            more_ = false;
  471|  1.08k|                            return;
  472|  1.08k|                        }
  473|  24.3M|                        if (c.value == 0xff)
  ------------------
  |  Branch (473:29): [True: 350k, False: 24.0M]
  ------------------
  474|   350k|                        {
  475|   350k|                            source_.ignore(1);
  476|   350k|                            end_array(visitor, ec);
  477|   350k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   350k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 350k]
  |  |  ------------------
  ------------------
  478|      0|                            {
  479|      0|                                return;
  480|      0|                            }
  481|   350k|                        }
  482|  24.0M|                        else
  483|  24.0M|                        {
  484|  24.0M|                            read_item(visitor, ec);
  485|  24.0M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  24.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 567, False: 24.0M]
  |  |  ------------------
  ------------------
  486|    567|                            {
  487|    567|                                return;
  488|    567|                            }
  489|  24.0M|                        }
  490|  24.3M|                    }
  491|  24.4M|                    break;
  492|  24.4M|                }
  493|  24.4M|                case parse_mode::map_key:
  ------------------
  |  Branch (493:17): [True: 17.5M, False: 103M]
  ------------------
  494|  17.5M|                {
  495|  17.5M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (495:25): [True: 4.36M, False: 13.2M]
  ------------------
  496|  4.36M|                    {
  497|  4.36M|                        ++state_stack_.back().index;
  498|  4.36M|                        state_stack_.back().mode = parse_mode::map_value;
  499|  4.36M|                        read_item(visitor, ec);
  500|  4.36M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  4.36M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 901, False: 4.36M]
  |  |  ------------------
  ------------------
  501|    901|                        {
  502|    901|                            return;
  503|    901|                        }
  504|  4.36M|                    }
  505|  13.2M|                    else
  506|  13.2M|                    {
  507|  13.2M|                        end_object(visitor, ec);
  508|  13.2M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  13.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 13.2M]
  |  |  ------------------
  ------------------
  509|      0|                        {
  510|      0|                            return;
  511|      0|                        }
  512|  13.2M|                    }
  513|  17.5M|                    break;
  514|  17.5M|                }
  515|  17.5M|                case parse_mode::map_value:
  ------------------
  |  Branch (515:17): [True: 4.34M, False: 116M]
  ------------------
  516|  4.34M|                {
  517|  4.34M|                    state_stack_.back().mode = parse_mode::map_key;
  518|  4.34M|                    read_item(visitor, ec);
  519|  4.34M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  4.34M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.13k, False: 4.34M]
  |  |  ------------------
  ------------------
  520|  1.13k|                    {
  521|  1.13k|                        return;
  522|  1.13k|                    }
  523|  4.34M|                    break;
  524|  4.34M|                }
  525|  9.78M|                case parse_mode::indefinite_map_key:
  ------------------
  |  Branch (525:17): [True: 9.78M, False: 111M]
  ------------------
  526|  9.78M|                {
  527|  9.78M|                    auto c = source_.peek();
  528|  9.78M|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  9.78M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 555, False: 9.78M]
  |  |  ------------------
  ------------------
  529|    555|                    {
  530|    555|                        ec = cbor_errc::unexpected_eof;
  531|    555|                        more_ = false;
  532|    555|                        return;
  533|    555|                    }
  534|  9.78M|                    if (c.value == 0xff)
  ------------------
  |  Branch (534:25): [True: 278k, False: 9.50M]
  ------------------
  535|   278k|                    {
  536|   278k|                        source_.ignore(1);
  537|   278k|                        end_object(visitor, ec);
  538|   278k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   278k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 278k]
  |  |  ------------------
  ------------------
  539|      0|                        {
  540|      0|                            return;
  541|      0|                        }
  542|   278k|                    }
  543|  9.50M|                    else
  544|  9.50M|                    {
  545|  9.50M|                        state_stack_.back().mode = parse_mode::indefinite_map_value;
  546|  9.50M|                        read_item(visitor, ec);
  547|  9.50M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  9.50M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 276, False: 9.50M]
  |  |  ------------------
  ------------------
  548|    276|                        {
  549|    276|                            return;
  550|    276|                        }
  551|  9.50M|                    }
  552|  9.78M|                    break;
  553|  9.78M|                }
  554|  9.78M|                case parse_mode::indefinite_map_value:
  ------------------
  |  Branch (554:17): [True: 9.49M, False: 111M]
  ------------------
  555|  9.49M|                {
  556|  9.49M|                    state_stack_.back().mode = parse_mode::indefinite_map_key;
  557|  9.49M|                    read_item(visitor, ec);
  558|  9.49M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  9.49M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 999, False: 9.49M]
  |  |  ------------------
  ------------------
  559|    999|                    {
  560|    999|                        return;
  561|    999|                    }
  562|  9.49M|                    break;
  563|  9.49M|                }
  564|  9.49M|                case parse_mode::root:
  ------------------
  |  Branch (564:17): [True: 11.0k, False: 121M]
  ------------------
  565|  11.0k|                {
  566|  11.0k|                    state_stack_.back().mode = parse_mode::accept;
  567|  11.0k|                    read_item(visitor, ec);
  568|  11.0k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  11.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.41k, False: 9.61k]
  |  |  ------------------
  ------------------
  569|  1.41k|                    {
  570|  1.41k|                        return;
  571|  1.41k|                    }
  572|  9.61k|                    break;
  573|  11.0k|                }
  574|  9.61k|                case parse_mode::accept:
  ------------------
  |  Branch (574:17): [True: 2.89k, False: 121M]
  ------------------
  575|  2.89k|                {
  576|  2.89k|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   49|  2.89k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.89k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  577|  2.89k|                    state_stack_.clear();
  578|  2.89k|                    more_ = false;
  579|  2.89k|                    done_ = true;
  580|  2.89k|                    visitor.flush();
  581|  2.89k|                    break;
  582|  2.89k|                }
  583|   121M|            }
  584|   121M|        }
  585|  11.0k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_typed_array_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  588|  45.6M|    {
  589|  45.6M|        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   49|  45.6M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 45.6M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  590|  45.6M|        auto iter = typed_array_stack_.back();
  591|  45.6M|        if (!iter->done())
  ------------------
  |  Branch (591:13): [True: 45.6M, False: 0]
  ------------------
  592|  45.6M|        {
  593|  45.6M|            iter->next(visitor, *this, ec);
  594|  45.6M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  45.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 45.6M]
  |  |  ------------------
  ------------------
  595|      0|            {
  596|      0|                return;
  597|      0|            }
  598|  45.6M|            more_ = !cursor_mode_;
  599|  45.6M|        }
  600|  45.6M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12is_multi_dimEv:
  262|  34.6M|    {
  263|  34.6M|        return state_stack_.size() >=2 && state_stack_[state_stack_.size()-2].mode == parse_mode::multi_dim;
  ------------------
  |  Branch (263:16): [True: 34.6M, False: 0]
  |  Branch (263:43): [True: 132k, False: 34.5M]
  ------------------
  264|  34.6M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE27end_classical_array_storageERNS3_10error_codeE:
 1035|    663|    {
 1036|    663|        --nesting_depth_;
 1037|       |
 1038|    663|        more_ = !cursor_mode_;
 1039|    663|        if (level() == mark_level_)
  ------------------
  |  Branch (1039:13): [True: 0, False: 663]
  ------------------
 1040|      0|        {
 1041|      0|            more_ = false;
 1042|      0|        }
 1043|    663|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1043:13): [True: 71, False: 592]
  ------------------
 1044|     71|        {
 1045|     71|            stringref_map_stack_.pop_back();
 1046|     71|        }
 1047|    663|        state_stack_.pop_back();
 1048|    663|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5levelEv:
  302|  14.2M|    {
  303|  14.2M|        return static_cast<int>(state_stack_.size());
  304|  14.2M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  603|  61.4M|    {
  604|  61.4M|        read_tags(ec);
  605|  61.4M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  61.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3.09k, False: 61.4M]
  |  |  ------------------
  ------------------
  606|  3.09k|        {
  607|  3.09k|            return;
  608|  3.09k|        }
  609|  61.4M|        auto c = source_.peek();
  610|  61.4M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  61.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 61.4M]
  |  |  ------------------
  ------------------
  611|      0|        {
  612|      0|            ec = cbor_errc::unexpected_eof;
  613|      0|            more_ = false;
  614|      0|            return;
  615|      0|        }
  616|  61.4M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
  617|  61.4M|        uint8_t info = get_additional_information_value(c.value);
  618|       |
  619|  61.4M|        switch (major_type)
  620|  61.4M|        {
  621|  19.9M|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (621:13): [True: 19.9M, False: 41.4M]
  ------------------
  622|  19.9M|            {
  623|  19.9M|                uint64_t val = read_uint64(ec);
  624|  19.9M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  19.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 135, False: 19.9M]
  |  |  ------------------
  ------------------
  625|    135|                {
  626|    135|                    return;
  627|    135|                }
  628|  19.9M|                if (!stringref_map_stack_.empty() && other_tags_[stringref_tag])
  ------------------
  |  Branch (628:21): [True: 8.11M, False: 11.8M]
  |  Branch (628:21): [True: 90.4k, False: 19.8M]
  |  Branch (628:54): [True: 90.4k, False: 8.02M]
  ------------------
  629|  90.4k|                {
  630|  90.4k|                    other_tags_[stringref_tag] = false;
  631|  90.4k|                    if (val >= stringref_map_stack_.back().size())
  ------------------
  |  Branch (631:25): [True: 74, False: 90.3k]
  ------------------
  632|     74|                    {
  633|     74|                        ec = cbor_errc::stringref_too_large;
  634|     74|                        more_ = false;
  635|     74|                        return;
  636|     74|                    }
  637|  90.3k|                    auto index = static_cast<typename stringref_map::size_type>(val);
  638|  90.3k|                    if (index != val)
  ------------------
  |  Branch (638:25): [True: 0, False: 90.3k]
  ------------------
  639|      0|                    {
  640|      0|                        ec = cbor_errc::number_too_large;
  641|      0|                        more_ = false;
  642|      0|                        return;
  643|      0|                    }
  644|  90.3k|                    auto& str = stringref_map_stack_.back().at(index);
  645|  90.3k|                    switch (str.type)
  646|  90.3k|                    {
  647|    840|                        case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (647:25): [True: 840, False: 89.5k]
  ------------------
  648|    840|                        {
  649|    840|                            handle_string(visitor, jsoncons::string_view(str.str.data(),str.str.length()),ec);
  650|    840|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    840|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 840]
  |  |  ------------------
  ------------------
  651|      0|                            {
  652|      0|                                return;
  653|      0|                            }
  654|    840|                            break;
  655|    840|                        }
  656|  89.5k|                        case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (656:25): [True: 89.5k, False: 840]
  ------------------
  657|  89.5k|                        {
  658|  89.5k|                            read_byte_string_from_buffer read(byte_string_view(str.bytes));
  659|  89.5k|                            read_byte_string(read, visitor, ec);
  660|  89.5k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  89.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 89.5k]
  |  |  ------------------
  ------------------
  661|      0|                            {
  662|      0|                                return;
  663|      0|                            }
  664|  89.5k|                            break;
  665|  89.5k|                        }
  666|  89.5k|                        default:
  ------------------
  |  Branch (666:25): [True: 0, False: 90.3k]
  ------------------
  667|      0|                            JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
  668|      0|                            break;
  669|  90.3k|                    }
  670|  90.3k|                }
  671|  19.8M|                else
  672|  19.8M|                {
  673|  19.8M|                    semantic_tag tag = semantic_tag::none;
  674|  19.8M|                    if (other_tags_[item_tag])
  ------------------
  |  Branch (674:25): [True: 79.9k, False: 19.8M]
  ------------------
  675|  79.9k|                    {
  676|  79.9k|                        if (raw_tag_ == 1)
  ------------------
  |  Branch (676:29): [True: 1.49k, False: 78.4k]
  ------------------
  677|  1.49k|                        {
  678|  1.49k|                            tag = semantic_tag::epoch_second;
  679|  1.49k|                        }
  680|  79.9k|                        other_tags_[item_tag] = false;
  681|  79.9k|                    }
  682|  19.8M|                    visitor.uint64_value(val, tag, *this, ec);
  683|  19.8M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  19.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 19.8M]
  |  |  ------------------
  ------------------
  684|      0|                    {
  685|      0|                        return;
  686|      0|                    }
  687|  19.8M|                    more_ = !cursor_mode_;
  688|  19.8M|                }
  689|  19.9M|                break;
  690|  19.9M|            }
  691|  19.9M|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (691:13): [True: 4.67M, False: 56.7M]
  ------------------
  692|  4.67M|            {
  693|  4.67M|                int64_t val = read_int64(ec);
  694|  4.67M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  4.67M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 35, False: 4.67M]
  |  |  ------------------
  ------------------
  695|     35|                {
  696|     35|                    return;
  697|     35|                }
  698|  4.67M|                semantic_tag tag = semantic_tag::none;
  699|  4.67M|                if (other_tags_[item_tag])
  ------------------
  |  Branch (699:21): [True: 15.8k, False: 4.65M]
  ------------------
  700|  15.8k|                {
  701|  15.8k|                    if (raw_tag_ == 1)
  ------------------
  |  Branch (701:25): [True: 387, False: 15.4k]
  ------------------
  702|    387|                    {
  703|    387|                        tag = semantic_tag::epoch_second;
  704|    387|                    }
  705|  15.8k|                    other_tags_[item_tag] = false;
  706|  15.8k|                }
  707|  4.67M|                visitor.int64_value(val, tag, *this, ec);
  708|  4.67M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  4.67M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 4.67M]
  |  |  ------------------
  ------------------
  709|      0|                {
  710|      0|                    return;
  711|      0|                }
  712|  4.67M|                more_ = !cursor_mode_;
  713|  4.67M|                break;
  714|  4.67M|            }
  715|  13.2M|            case jsoncons::cbor::detail::cbor_major_type::byte_string:
  ------------------
  |  Branch (715:13): [True: 13.2M, False: 48.1M]
  ------------------
  716|  13.2M|            {
  717|  13.2M|                read_byte_string_from_source read(this);
  718|  13.2M|                read_byte_string(read, visitor, ec);
  719|  13.2M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  13.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 759, False: 13.2M]
  |  |  ------------------
  ------------------
  720|    759|                {
  721|    759|                    return;
  722|    759|                }
  723|  13.2M|                break;
  724|  13.2M|            }
  725|  13.2M|            case jsoncons::cbor::detail::cbor_major_type::text_string:
  ------------------
  |  Branch (725:13): [True: 2.65M, False: 58.7M]
  ------------------
  726|  2.65M|            {
  727|  2.65M|                auto sv = read_text_string_view(ec);
  728|  2.65M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.65M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 575, False: 2.65M]
  |  |  ------------------
  ------------------
  729|    575|                {
  730|    575|                    return;
  731|    575|                }
  732|  2.65M|                auto result = unicode_traits::validate(sv.data(),sv.size());
  733|  2.65M|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (733:21): [True: 160, False: 2.65M]
  ------------------
  734|    160|                {
  735|    160|                    ec = cbor_errc::invalid_utf8_text_string;
  736|    160|                    more_ = false;
  737|    160|                    return;
  738|    160|                }
  739|  2.65M|                handle_string(visitor, sv, ec);
  740|  2.65M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.65M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.65M]
  |  |  ------------------
  ------------------
  741|      0|                {
  742|      0|                    return;
  743|      0|                }
  744|  2.65M|                break;
  745|  2.65M|            }
  746|  2.65M|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (746:13): [True: 0, False: 61.4M]
  ------------------
  747|      0|            {
  748|      0|                JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
  749|      0|                break;
  750|  2.65M|            }
  751|  5.53M|            case jsoncons::cbor::detail::cbor_major_type::simple:
  ------------------
  |  Branch (751:13): [True: 5.53M, False: 55.8M]
  ------------------
  752|  5.53M|            {
  753|  5.53M|                switch (info)
  754|  5.53M|                {
  755|  3.13M|                    case 0x14:
  ------------------
  |  Branch (755:21): [True: 3.13M, False: 2.40M]
  ------------------
  756|  3.13M|                        visitor.bool_value(false, semantic_tag::none, *this, ec);
  757|  3.13M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  3.13M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 3.13M]
  |  |  ------------------
  ------------------
  758|      0|                        {
  759|      0|                            return;
  760|      0|                        }
  761|  3.13M|                        more_ = !cursor_mode_;
  762|  3.13M|                        source_.ignore(1);
  763|  3.13M|                        break;
  764|   832k|                    case 0x15:
  ------------------
  |  Branch (764:21): [True: 832k, False: 4.70M]
  ------------------
  765|   832k|                        visitor.bool_value(true, semantic_tag::none, *this, ec);
  766|   832k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   832k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 832k]
  |  |  ------------------
  ------------------
  767|      0|                        {
  768|      0|                            return;
  769|      0|                        }
  770|   832k|                        more_ = !cursor_mode_;
  771|   832k|                        source_.ignore(1);
  772|   832k|                        break;
  773|  1.32M|                    case 0x16:
  ------------------
  |  Branch (773:21): [True: 1.32M, False: 4.21M]
  ------------------
  774|  1.32M|                        visitor.null_value(semantic_tag::none, *this, ec);
  775|  1.32M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.32M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.32M]
  |  |  ------------------
  ------------------
  776|      0|                        {
  777|      0|                            return;
  778|      0|                        }
  779|  1.32M|                        more_ = !cursor_mode_;
  780|  1.32M|                        source_.ignore(1);
  781|  1.32M|                        break;
  782|   145k|                    case 0x17:
  ------------------
  |  Branch (782:21): [True: 145k, False: 5.38M]
  ------------------
  783|   145k|                        visitor.null_value(semantic_tag::undefined, *this, ec);
  784|   145k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   145k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 145k]
  |  |  ------------------
  ------------------
  785|      0|                        {
  786|      0|                            return;
  787|      0|                        }
  788|   145k|                        more_ = !cursor_mode_;
  789|   145k|                        source_.ignore(1);
  790|   145k|                        break;
  791|  81.5k|                    case 0x19: // Half-Precision Float (two-byte IEEE 754)
  ------------------
  |  Branch (791:21): [True: 81.5k, False: 5.45M]
  ------------------
  792|  81.5k|                    {
  793|  81.5k|                        uint64_t val = read_uint64(ec);
  794|  81.5k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  81.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 198, False: 81.3k]
  |  |  ------------------
  ------------------
  795|    198|                        {
  796|    198|                            return;
  797|    198|                        }
  798|  81.3k|                        visitor.half_value(static_cast<uint16_t>(val), semantic_tag::none, *this, ec);
  799|  81.3k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  81.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 81.3k]
  |  |  ------------------
  ------------------
  800|      0|                        {
  801|      0|                            return;
  802|      0|                        }
  803|  81.3k|                        more_ = !cursor_mode_;
  804|  81.3k|                        break;
  805|  81.3k|                    }
  806|  14.1k|                    case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (806:21): [True: 14.1k, False: 5.52M]
  ------------------
  807|  17.9k|                    case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (807:21): [True: 3.84k, False: 5.53M]
  ------------------
  808|  17.9k|                    {
  809|  17.9k|                        double val = read_double(ec);
  810|  17.9k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  17.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 74, False: 17.8k]
  |  |  ------------------
  ------------------
  811|     74|                        {
  812|     74|                            return;
  813|     74|                        }
  814|  17.8k|                        semantic_tag tag = semantic_tag::none;
  815|  17.8k|                        if (other_tags_[item_tag])
  ------------------
  |  Branch (815:29): [True: 2.91k, False: 14.9k]
  ------------------
  816|  2.91k|                        {
  817|  2.91k|                            if (raw_tag_ == 1)
  ------------------
  |  Branch (817:33): [True: 1.89k, False: 1.01k]
  ------------------
  818|  1.89k|                            {
  819|  1.89k|                                tag = semantic_tag::epoch_second;
  820|  1.89k|                            }
  821|  2.91k|                            other_tags_[item_tag] = false;
  822|  2.91k|                        }
  823|  17.8k|                        visitor.double_value(val, tag, *this, ec);
  824|  17.8k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  17.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 17.8k]
  |  |  ------------------
  ------------------
  825|      0|                        {
  826|      0|                            return;
  827|      0|                        }
  828|  17.8k|                        more_ = !cursor_mode_;
  829|  17.8k|                        break;
  830|  17.8k|                    }
  831|    405|                    default:
  ------------------
  |  Branch (831:21): [True: 405, False: 5.53M]
  ------------------
  832|    405|                    {
  833|    405|                        ec = cbor_errc::unknown_type;
  834|    405|                        more_ = false;
  835|    405|                        return;
  836|  17.8k|                    }
  837|  5.53M|                }
  838|  5.53M|                break;
  839|  5.53M|            }
  840|  5.53M|            case jsoncons::cbor::detail::cbor_major_type::array:
  ------------------
  |  Branch (840:13): [True: 1.80M, False: 59.5M]
  ------------------
  841|  1.80M|            {
  842|  1.80M|                if (other_tags_[item_tag])
  ------------------
  |  Branch (842:21): [True: 982k, False: 819k]
  ------------------
  843|   982k|                {
  844|   982k|                    switch (raw_tag_)
  845|   982k|                    {
  846|   827k|                        case 0x04:
  ------------------
  |  Branch (846:25): [True: 827k, False: 155k]
  ------------------
  847|   827k|                            text_buffer_.clear();
  848|   827k|                            read_decimal_fraction(text_buffer_, ec);
  849|   827k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   827k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 317, False: 827k]
  |  |  ------------------
  ------------------
  850|    317|                            {
  851|    317|                                return;
  852|    317|                            }
  853|   827k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
  854|   827k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   827k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 827k]
  |  |  ------------------
  ------------------
  855|      0|                            {
  856|      0|                                return;
  857|      0|                            }
  858|   827k|                            more_ = !cursor_mode_;
  859|   827k|                            break;
  860|   110k|                        case 0x05:
  ------------------
  |  Branch (860:25): [True: 110k, False: 872k]
  ------------------
  861|   110k|                            text_buffer_.clear();
  862|   110k|                            read_bigfloat(text_buffer_, ec);
  863|   110k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   110k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 223, False: 110k]
  |  |  ------------------
  ------------------
  864|    223|                            {
  865|    223|                                return;
  866|    223|                            }
  867|   110k|                            visitor.string_value(text_buffer_, semantic_tag::bigfloat, *this, ec);
  868|   110k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   110k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 110k]
  |  |  ------------------
  ------------------
  869|      0|                            {
  870|      0|                                return;
  871|      0|                            }
  872|   110k|                            more_ = !cursor_mode_;
  873|   110k|                            break;
  874|  12.0k|                        case 40: // row-major storage
  ------------------
  |  Branch (874:25): [True: 12.0k, False: 970k]
  ------------------
  875|  12.0k|                            order_ = mdarray_order::row_major;
  876|  12.0k|                            read_mdarray_header(visitor, ec);
  877|  12.0k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  12.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 219, False: 11.8k]
  |  |  ------------------
  ------------------
  878|    219|                            {
  879|    219|                                return;
  880|    219|                            }
  881|  11.8k|                            break;
  882|  11.8k|                        case 1040: // column-major storage
  ------------------
  |  Branch (882:25): [True: 65, False: 982k]
  ------------------
  883|     65|                            order_ = mdarray_order::column_major;
  884|     65|                            read_mdarray_header(visitor, ec);
  885|     65|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     65|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 31, False: 34]
  |  |  ------------------
  ------------------
  886|     31|                            {
  887|     31|                                return;
  888|     31|                            }
  889|     34|                            break;
  890|  32.5k|                        default:
  ------------------
  |  Branch (890:25): [True: 32.5k, False: 950k]
  ------------------
  891|  32.5k|                            begin_array(visitor, info, ec);
  892|  32.5k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  32.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 25, False: 32.4k]
  |  |  ------------------
  ------------------
  893|     25|                            {
  894|     25|                                return;
  895|     25|                            }
  896|  32.4k|                            break;
  897|   982k|                    }
  898|   981k|                    other_tags_[item_tag] = false;
  899|   981k|                }
  900|   819k|                else
  901|   819k|                {
  902|   819k|                    begin_array(visitor, info, ec);
  903|   819k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   819k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 83, False: 819k]
  |  |  ------------------
  ------------------
  904|     83|                    {
  905|     83|                        return;
  906|     83|                    }
  907|   819k|                }
  908|  1.80M|                break;
  909|  1.80M|            }
  910|  13.5M|            case jsoncons::cbor::detail::cbor_major_type::map:
  ------------------
  |  Branch (910:13): [True: 13.5M, False: 47.8M]
  ------------------
  911|  13.5M|            {
  912|  13.5M|                begin_object(visitor, info, ec);
  913|  13.5M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  13.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 73, False: 13.5M]
  |  |  ------------------
  ------------------
  914|     73|                {
  915|     73|                    return;
  916|     73|                }
  917|  13.5M|                break;
  918|  13.5M|            }
  919|  13.5M|            default:
  ------------------
  |  Branch (919:13): [True: 0, False: 61.4M]
  ------------------
  920|      0|                break;
  921|  61.4M|        }
  922|  61.3M|        other_tags_[item_tag] = false;
  923|  61.3M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_tagsERNS3_10error_codeE:
 1949|  61.4M|    {
 1950|  61.4M|        auto c = source_.peek();
 1951|  61.4M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  61.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2.67k, False: 61.4M]
  |  |  ------------------
  ------------------
 1952|  2.67k|        {
 1953|  2.67k|            ec = cbor_errc::unexpected_eof;
 1954|  2.67k|            more_ = false;
 1955|  2.67k|            return;
 1956|  2.67k|        }
 1957|  61.4M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1958|       |
 1959|  64.1M|        while (major_type == jsoncons::cbor::detail::cbor_major_type::semantic_tag)
  ------------------
  |  Branch (1959:16): [True: 2.74M, False: 61.4M]
  ------------------
 1960|  2.74M|        {
 1961|  2.74M|            uint64_t val = read_uint64(ec);
 1962|  2.74M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.74M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 217, False: 2.74M]
  |  |  ------------------
  ------------------
 1963|    217|            {
 1964|    217|                return;
 1965|    217|            }
 1966|  2.74M|            switch(val)
 1967|  2.74M|            {
 1968|   117k|                case 25: // stringref
  ------------------
  |  Branch (1968:17): [True: 117k, False: 2.62M]
  ------------------
 1969|   117k|                    other_tags_[stringref_tag] = true;
 1970|   117k|                    break;
 1971|  7.20k|                case 256: // stringref-namespace
  ------------------
  |  Branch (1971:17): [True: 7.20k, False: 2.73M]
  ------------------
 1972|  7.20k|                    other_tags_[stringref_namespace_tag] = true;
 1973|  7.20k|                    break;
 1974|  2.61M|                default:
  ------------------
  |  Branch (1974:17): [True: 2.61M, False: 125k]
  ------------------
 1975|  2.61M|                    other_tags_[item_tag] = true;
 1976|  2.61M|                    raw_tag_ = val;
 1977|  2.61M|                    break;
 1978|  2.74M|            }
 1979|  2.74M|            c = source_.peek();
 1980|  2.74M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  2.74M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 205, False: 2.74M]
  |  |  ------------------
  ------------------
 1981|    205|            {
 1982|    205|                ec = cbor_errc::unexpected_eof;
 1983|    205|                more_ = false;
 1984|    205|                return;
 1985|    205|            }
 1986|  2.74M|            major_type = get_major_type(c.value);
 1987|  2.74M|        }
 1988|  61.4M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE14get_major_typeEh:
 1935|   150M|    {
 1936|   150M|        static constexpr uint8_t major_type_shift = 0x05;
 1937|   150M|        uint8_t value = type >> major_type_shift;
 1938|   150M|        return static_cast<jsoncons::cbor::detail::cbor_major_type>(value);
 1939|   150M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE32get_additional_information_valueEh:
 1942|   138M|    {
 1943|   138M|        static constexpr uint8_t additional_information_mask = (1U << 5) - 1;
 1944|   138M|        uint8_t value = type & additional_information_mask;
 1945|   138M|        return value;
 1946|   138M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11read_uint64ERNS3_10error_codeE:
 1381|  54.4M|    {
 1382|  54.4M|        uint64_t val = 0;
 1383|       |
 1384|  54.4M|        uint8_t initial_b;
 1385|  54.4M|        if (source_.read(&initial_b, 1) == 0)
  ------------------
  |  Branch (1385:13): [True: 26, False: 54.4M]
  ------------------
 1386|     26|        {
 1387|     26|            ec = cbor_errc::unexpected_eof;
 1388|     26|            more_ = false;
 1389|     26|            return 0;
 1390|     26|        }
 1391|  54.4M|        uint8_t info = get_additional_information_value(initial_b);
 1392|  54.4M|        switch (info)
 1393|  54.4M|        {
 1394|  32.1M|            case JSONCONS_EXT_CBOR_0x00_0x17: // Integer 0x00..0x17 (0..23)
  ------------------
  |  |   18|  32.1M|    0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06:case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14:case 0x15:case 0x16:case 0x17
  |  |  ------------------
  |  |  |  Branch (18:10): [True: 1.14M, False: 53.3M]
  |  |  |  Branch (18:20): [True: 1.17M, False: 53.2M]
  |  |  |  Branch (18:30): [True: 48.7k, False: 54.4M]
  |  |  |  Branch (18:40): [True: 879k, False: 53.5M]
  |  |  |  Branch (18:50): [True: 4.62M, False: 49.8M]
  |  |  |  Branch (18:60): [True: 39.6k, False: 54.4M]
  |  |  |  Branch (18:70): [True: 22.6k, False: 54.4M]
  |  |  |  Branch (18:80): [True: 20.2k, False: 54.4M]
  |  |  |  Branch (18:90): [True: 300k, False: 54.1M]
  |  |  |  Branch (18:100): [True: 138k, False: 54.3M]
  |  |  |  Branch (18:110): [True: 51.4k, False: 54.4M]
  |  |  |  Branch (18:120): [True: 23.7k, False: 54.4M]
  |  |  |  Branch (18:130): [True: 10.8k, False: 54.4M]
  |  |  |  Branch (18:140): [True: 8.05k, False: 54.4M]
  |  |  |  Branch (18:150): [True: 14.0k, False: 54.4M]
  |  |  |  Branch (18:160): [True: 22.5k, False: 54.4M]
  |  |  |  Branch (18:170): [True: 34.6k, False: 54.4M]
  |  |  |  Branch (18:180): [True: 16.6k, False: 54.4M]
  |  |  |  Branch (18:190): [True: 12.4k, False: 54.4M]
  |  |  |  Branch (18:200): [True: 7.74k, False: 54.4M]
  |  |  |  Branch (18:210): [True: 400k, False: 54.0M]
  |  |  |  Branch (18:220): [True: 21.7k, False: 54.4M]
  |  |  ------------------
  ------------------
  |  Branch (1394:13): [True: 23.1M, False: 31.3M]
  ------------------
 1395|  32.1M|            {
 1396|  32.1M|                val = info;
 1397|  32.1M|                break;
 1398|   669M|            }
 1399|       |
 1400|   412k|            case 0x18: // Unsigned integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1400:13): [True: 412k, False: 54.0M]
  ------------------
 1401|   412k|            {
 1402|   412k|                uint8_t b;
 1403|   412k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1403:21): [True: 111, False: 412k]
  ------------------
 1404|    111|                {
 1405|    111|                    ec = cbor_errc::unexpected_eof;
 1406|    111|                    more_ = false;
 1407|    111|                    return val;
 1408|    111|                }
 1409|   412k|                val = b;
 1410|   412k|                break;
 1411|   412k|            }
 1412|       |
 1413|   121k|            case 0x19: // Unsigned integer (two-byte uint16_t follows)
  ------------------
  |  Branch (1413:13): [True: 121k, False: 54.3M]
  ------------------
 1414|   121k|            {
 1415|   121k|                uint8_t buf[sizeof(uint16_t)];
 1416|   121k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1416:21): [True: 287, False: 121k]
  ------------------
 1417|    287|                {
 1418|    287|                    ec = cbor_errc::unexpected_eof;
 1419|    287|                    more_ = false;
 1420|    287|                    return val;
 1421|    287|                }
 1422|   121k|                val = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1423|   121k|                break;
 1424|   121k|            }
 1425|       |
 1426|  4.72k|            case 0x1a: // Unsigned integer (four-byte uint32_t follows)
  ------------------
  |  Branch (1426:13): [True: 4.72k, False: 54.4M]
  ------------------
 1427|  4.72k|            {
 1428|  4.72k|                uint8_t buf[sizeof(uint32_t)];
 1429|  4.72k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1429:21): [True: 98, False: 4.62k]
  ------------------
 1430|     98|                {
 1431|     98|                    ec = cbor_errc::unexpected_eof;
 1432|     98|                    more_ = false;
 1433|     98|                    return val;
 1434|     98|                }
 1435|  4.62k|                val = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1436|  4.62k|                break;
 1437|  4.72k|            }
 1438|       |
 1439|  4.36k|            case 0x1b: // Unsigned integer (eight-byte uint64_t follows)
  ------------------
  |  Branch (1439:13): [True: 4.36k, False: 54.4M]
  ------------------
 1440|  4.36k|            {
 1441|  4.36k|                uint8_t buf[sizeof(uint64_t)];
 1442|  4.36k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1442:21): [True: 745, False: 3.62k]
  ------------------
 1443|    745|                {
 1444|    745|                    ec = cbor_errc::unexpected_eof;
 1445|    745|                    more_ = false;
 1446|    745|                    return val;
 1447|    745|                }
 1448|  3.62k|                val = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1449|  3.62k|                break;
 1450|  4.36k|            }
 1451|  21.7M|            default:
  ------------------
  |  Branch (1451:13): [True: 21.7M, False: 32.7M]
  ------------------
 1452|  21.7M|                break;
 1453|  54.4M|        }
 1454|  54.4M|        return val;
 1455|  54.4M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13handle_stringERNS_21basic_generic_visitorIcEERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS3_10error_codeE:
 1991|  2.65M|    {
 1992|  2.65M|        semantic_tag tag = semantic_tag::none;
 1993|  2.65M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (1993:13): [True: 3.20k, False: 2.65M]
  ------------------
 1994|  3.20k|        {
 1995|  3.20k|            switch (raw_tag_)
 1996|  3.20k|            {
 1997|    287|                case 0:
  ------------------
  |  Branch (1997:17): [True: 287, False: 2.91k]
  ------------------
 1998|    287|                    tag = semantic_tag::datetime;
 1999|    287|                    break;
 2000|    395|                case 32:
  ------------------
  |  Branch (2000:17): [True: 395, False: 2.80k]
  ------------------
 2001|    395|                    tag = semantic_tag::uri;
 2002|    395|                    break;
 2003|    415|                case 33:
  ------------------
  |  Branch (2003:17): [True: 415, False: 2.78k]
  ------------------
 2004|    415|                    tag = semantic_tag::base64url;
 2005|    415|                    break;
 2006|    272|                case 34:
  ------------------
  |  Branch (2006:17): [True: 272, False: 2.92k]
  ------------------
 2007|    272|                    tag = semantic_tag::base64;
 2008|    272|                    break;
 2009|  1.83k|                default:
  ------------------
  |  Branch (2009:17): [True: 1.83k, False: 1.36k]
  ------------------
 2010|  1.83k|                    break;
 2011|  3.20k|            }
 2012|  3.20k|            other_tags_[item_tag] = false;
 2013|  3.20k|        }
 2014|  2.65M|        visitor.string_value(v, tag, *this, ec);
 2015|  2.65M|        more_ = !cursor_mode_;
 2016|  2.65M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferC2ERKNS_16byte_string_viewE:
  174|  89.5k|            : bytes(b)
  175|  89.5k|        {
  176|  89.5k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_bufferEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2033|  89.5k|    {
 2034|  89.5k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2034:13): [True: 75.4k, False: 14.0k]
  ------------------
 2035|  75.4k|        {
 2036|  75.4k|            switch (raw_tag_)
 2037|  75.4k|            {
 2038|  5.12k|                case 0x2:
  ------------------
  |  Branch (2038:17): [True: 5.12k, False: 70.3k]
  ------------------
 2039|  5.12k|                {
 2040|  5.12k|                    auto bytes = read.view(ec);
 2041|  5.12k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  5.12k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5.12k]
  |  |  ------------------
  ------------------
 2042|      0|                    {
 2043|      0|                        more_ = false;
 2044|      0|                        return;
 2045|      0|                    }
 2046|  5.12k|                    bigint n = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2047|  5.12k|                    text_buffer_.clear();
 2048|  5.12k|                    n.write_string(text_buffer_);
 2049|  5.12k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2050|  5.12k|                    more_ = !cursor_mode_;
 2051|  5.12k|                    break;
 2052|  5.12k|                }
 2053|  1.82k|                case 0x3:
  ------------------
  |  Branch (2053:17): [True: 1.82k, False: 73.6k]
  ------------------
 2054|  1.82k|                {
 2055|  1.82k|                    auto bytes = read.view(ec);
 2056|  1.82k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.82k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.82k]
  |  |  ------------------
  ------------------
 2057|      0|                    {
 2058|      0|                        more_ = false;
 2059|      0|                        return;
 2060|      0|                    }
 2061|  1.82k|                    bigint n = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2062|  1.82k|                    n = -1 - n;
 2063|  1.82k|                    text_buffer_.clear();
 2064|  1.82k|                    n.write_string(text_buffer_);
 2065|  1.82k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2066|  1.82k|                    more_ = !cursor_mode_;
 2067|  1.82k|                    break;
 2068|  1.82k|                }
 2069|    358|                case 0x15:
  ------------------
  |  Branch (2069:17): [True: 358, False: 75.0k]
  ------------------
 2070|    826|                case 0x16:
  ------------------
  |  Branch (2070:17): [True: 468, False: 74.9k]
  ------------------
 2071|  1.09k|                case 0x17:
  ------------------
  |  Branch (2071:17): [True: 268, False: 75.1k]
  ------------------
 2072|  1.09k|                {
 2073|  1.09k|                    auto bytes = read.view(ec);
 2074|  1.09k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.09k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.09k]
  |  |  ------------------
  ------------------
 2075|      0|                    {
 2076|      0|                        more_ = false;
 2077|      0|                        return;
 2078|      0|                    }
 2079|  1.09k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2079:46): [True: 358, False: 736]
  ------------------
 2080|  1.09k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2080:27): [True: 468, False: 268]
  ------------------
 2081|    736|                        : semantic_tag::base16;
 2082|  1.09k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2083|  1.09k|                    more_ = !cursor_mode_;
 2084|  1.09k|                    break;
 2085|  1.09k|                }
 2086|    688|                case 0x40:
  ------------------
  |  Branch (2086:17): [True: 688, False: 74.7k]
  ------------------
 2087|    688|                {
 2088|    688|                    array_tag_ = typed_array_tags::uint8;
 2089|    688|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2090|    688|                    read(array_buffer, ec);
 2091|    688|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    688|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 688]
  |  |  ------------------
  ------------------
 2092|      0|                    {
 2093|      0|                        more_ = false;
 2094|      0|                        return;
 2095|      0|                    }
 2096|    688|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2097|    688|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2097:25): [True: 688, False: 0]
  |  Branch (2097:42): [True: 0, False: 688]
  ------------------
 2098|      0|                    {
 2099|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2099:29): [True: 0, False: 0]
  ------------------
 2100|      0|                        {
 2101|      0|                            ec = cbor_errc::bad_extents;
 2102|      0|                            more_ = false;
 2103|      0|                            return;
 2104|      0|                        }
 2105|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2106|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2107|      0|                        typed_array_stack_.push_back(iter);
 2108|      0|                        iter->next(visitor, *this, ec);
 2109|      0|                    }
 2110|    688|                    else
 2111|    688|                    {
 2112|    688|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2113|    688|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2114|    688|                        typed_array_stack_.push_back(iter);
 2115|    688|                        iter->next(visitor, *this, ec);
 2116|    688|                    }
 2117|    688|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2118|    688|                    more_ = !cursor_mode_;
 2119|    688|                    break;
 2120|    688|                }
 2121|    971|                case 0x44:
  ------------------
  |  Branch (2121:17): [True: 971, False: 74.4k]
  ------------------
 2122|    971|                {
 2123|    971|                    array_tag_ = typed_array_tags::uint8;
 2124|    971|                    typed_array_tag_ = semantic_tag::clamped;
 2125|    971|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2126|    971|                    read(array_buffer, ec);
 2127|    971|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    971|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 971]
  |  |  ------------------
  ------------------
 2128|      0|                    {
 2129|      0|                        more_ = false;
 2130|      0|                        return;
 2131|      0|                    }
 2132|    971|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2133|    971|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2133:25): [True: 971, False: 0]
  |  Branch (2133:42): [True: 0, False: 971]
  ------------------
 2134|      0|                    {
 2135|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2135:29): [True: 0, False: 0]
  ------------------
 2136|      0|                        {
 2137|      0|                            ec = cbor_errc::bad_extents;
 2138|      0|                            more_ = false;
 2139|      0|                            return;
 2140|      0|                        }
 2141|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2142|      0|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2143|      0|                        typed_array_stack_.push_back(iter);
 2144|      0|                        iter->next(visitor, *this, ec);
 2145|      0|                    }
 2146|    971|                    else
 2147|    971|                    {
 2148|    971|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2149|    971|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2150|    971|                        typed_array_stack_.push_back(iter);
 2151|    971|                        iter->next(visitor, *this, ec);
 2152|    971|                    }
 2153|    971|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2154|    971|                    more_ = !cursor_mode_;
 2155|    971|                    break;
 2156|    971|                }
 2157|    329|                case 0x41:
  ------------------
  |  Branch (2157:17): [True: 329, False: 75.1k]
  ------------------
 2158|  1.57k|                case 0x45:
  ------------------
  |  Branch (2158:17): [True: 1.24k, False: 74.2k]
  ------------------
 2159|  1.57k|                {
 2160|  1.57k|                    array_tag_ = typed_array_tags::uint16;
 2161|  1.57k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2162|  1.57k|                    read(array_buffer, ec);
 2163|  1.57k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.57k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.57k]
  |  |  ------------------
  ------------------
 2164|      0|                    {
 2165|      0|                        more_ = false;
 2166|      0|                        return;
 2167|      0|                    }
 2168|  1.57k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2169|  1.57k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2170|  1.57k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2171|  1.57k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2171:25): [True: 329, False: 1.24k]
  ------------------
 2172|    329|                    {
 2173|  52.2k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2173:49): [True: 51.9k, False: 329]
  ------------------
 2174|  51.9k|                        {
 2175|  51.9k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2176|  51.9k|                        }
 2177|    329|                    }
 2178|  1.57k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2178:25): [True: 1.57k, False: 0]
  |  Branch (2178:42): [True: 0, False: 1.57k]
  ------------------
 2179|      0|                    {
 2180|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2180:29): [True: 0, False: 0]
  ------------------
 2181|      0|                        {
 2182|      0|                            ec = cbor_errc::bad_extents;
 2183|      0|                            more_ = false;
 2184|      0|                            return;
 2185|      0|                        }
 2186|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2187|      0|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2188|      0|                        typed_array_stack_.push_back(iter);
 2189|      0|                        iter->next(visitor, *this, ec);
 2190|      0|                    }
 2191|  1.57k|                    else
 2192|  1.57k|                    {
 2193|  1.57k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2194|  1.57k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2195|  1.57k|                        typed_array_stack_.push_back(iter);
 2196|  1.57k|                        iter->next(visitor, *this, ec);
 2197|  1.57k|                    }
 2198|  1.57k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2199|  1.57k|                    more_ = !cursor_mode_;
 2200|  1.57k|                    break;
 2201|  1.57k|                }
 2202|    928|                case 0x42:
  ------------------
  |  Branch (2202:17): [True: 928, False: 74.5k]
  ------------------
 2203|  1.52k|                case 0x46:
  ------------------
  |  Branch (2203:17): [True: 598, False: 74.8k]
  ------------------
 2204|  1.52k|                {
 2205|  1.52k|                    array_tag_ = typed_array_tags::uint32;
 2206|  1.52k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2207|  1.52k|                    read(array_buffer, ec);
 2208|  1.52k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.52k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.52k]
  |  |  ------------------
  ------------------
 2209|      0|                    {
 2210|      0|                        more_ = false;
 2211|      0|                        return;
 2212|      0|                    }
 2213|  1.52k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2214|  1.52k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2215|  1.52k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2216|  1.52k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2216:25): [True: 928, False: 598]
  ------------------
 2217|    928|                    {
 2218|   367k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2218:49): [True: 366k, False: 928]
  ------------------
 2219|   366k|                        {
 2220|   366k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2221|   366k|                        }
 2222|    928|                    }
 2223|  1.52k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2223:25): [True: 1.52k, False: 0]
  |  Branch (2223:42): [True: 0, False: 1.52k]
  ------------------
 2224|      0|                    {
 2225|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2225:29): [True: 0, False: 0]
  ------------------
 2226|      0|                        {
 2227|      0|                            ec = cbor_errc::bad_extents;
 2228|      0|                            more_ = false;
 2229|      0|                            return;
 2230|      0|                        }
 2231|      0|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2232|      0|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2233|      0|                        typed_array_stack_.push_back(iter);
 2234|      0|                        iter->next(visitor, *this, ec);
 2235|      0|                    }
 2236|  1.52k|                    else
 2237|  1.52k|                    {
 2238|  1.52k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2239|  1.52k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2240|  1.52k|                        typed_array_stack_.push_back(iter);
 2241|  1.52k|                        iter->next(visitor, *this, ec);
 2242|  1.52k|                    }
 2243|  1.52k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2244|  1.52k|                    more_ = !cursor_mode_;
 2245|  1.52k|                    break;
 2246|  1.52k|                }
 2247|  2.95k|                case 0x43:
  ------------------
  |  Branch (2247:17): [True: 2.95k, False: 72.5k]
  ------------------
 2248|  3.23k|                case 0x47:
  ------------------
  |  Branch (2248:17): [True: 283, False: 75.1k]
  ------------------
 2249|  3.23k|                {
 2250|  3.23k|                    array_tag_ = typed_array_tags::uint64;
 2251|  3.23k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2252|  3.23k|                    read(array_buffer, ec);
 2253|  3.23k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  3.23k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 3.23k]
  |  |  ------------------
  ------------------
 2254|      0|                    {
 2255|      0|                        more_ = false;
 2256|      0|                        return;
 2257|      0|                    }
 2258|  3.23k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2259|  3.23k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2260|  3.23k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2261|  3.23k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2261:25): [True: 2.95k, False: 283]
  ------------------
 2262|  2.95k|                    {
 2263|  57.8k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2263:49): [True: 54.9k, False: 2.95k]
  ------------------
 2264|  54.9k|                        {
 2265|  54.9k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2266|  54.9k|                        }
 2267|  2.95k|                    }
 2268|  3.23k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2268:25): [True: 3.23k, False: 0]
  |  Branch (2268:42): [True: 0, False: 3.23k]
  ------------------
 2269|      0|                    {
 2270|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2270:29): [True: 0, False: 0]
  ------------------
 2271|      0|                        {
 2272|      0|                            ec = cbor_errc::bad_extents;
 2273|      0|                            more_ = false;
 2274|      0|                            return;
 2275|      0|                        }
 2276|      0|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2277|      0|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2278|      0|                        typed_array_stack_.push_back(iter);
 2279|      0|                        iter->next(visitor, *this, ec);
 2280|      0|                    }
 2281|  3.23k|                    else
 2282|  3.23k|                    {
 2283|  3.23k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2284|  3.23k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2285|  3.23k|                        typed_array_stack_.push_back(iter);
 2286|  3.23k|                        iter->next(visitor, *this, ec);
 2287|  3.23k|                    }
 2288|  3.23k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2289|  3.23k|                    more_ = !cursor_mode_;
 2290|  3.23k|                    break;
 2291|  3.23k|                }
 2292|    605|                case 0x48:
  ------------------
  |  Branch (2292:17): [True: 605, False: 74.8k]
  ------------------
 2293|    605|                {
 2294|    605|                    array_tag_ = typed_array_tags::int8;
 2295|    605|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2296|    605|                    read(array_buffer, ec);
 2297|    605|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    605|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 605]
  |  |  ------------------
  ------------------
 2298|      0|                    {
 2299|      0|                        more_ = false;
 2300|      0|                        return;
 2301|      0|                    }
 2302|    605|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2303|    605|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2303:25): [True: 605, False: 0]
  |  Branch (2303:42): [True: 0, False: 605]
  ------------------
 2304|      0|                    {
 2305|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2305:29): [True: 0, False: 0]
  ------------------
 2306|      0|                        {
 2307|      0|                            ec = cbor_errc::bad_extents;
 2308|      0|                            more_ = false;
 2309|      0|                            return;
 2310|      0|                        }
 2311|      0|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2312|      0|                            typed_array_tags::int8, extents_, order_, alloc_);
 2313|      0|                        typed_array_stack_.push_back(iter);
 2314|      0|                        iter->next(visitor, *this, ec);
 2315|      0|                    }
 2316|    605|                    else
 2317|    605|                    {
 2318|    605|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2319|    605|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2320|    605|                        typed_array_stack_.push_back(iter);
 2321|    605|                        iter->next(visitor, *this, ec);
 2322|    605|                    }
 2323|    605|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2324|    605|                    more_ = !cursor_mode_;
 2325|    605|                    break;
 2326|    605|                }
 2327|  5.07k|                case 0x49:
  ------------------
  |  Branch (2327:17): [True: 5.07k, False: 70.3k]
  ------------------
 2328|  5.28k|                case 0x4d:
  ------------------
  |  Branch (2328:17): [True: 208, False: 75.2k]
  ------------------
 2329|  5.28k|                {
 2330|  5.28k|                    array_tag_ = typed_array_tags::int16;
 2331|  5.28k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2332|  5.28k|                    read(array_buffer, ec);
 2333|  5.28k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  5.28k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 5.28k]
  |  |  ------------------
  ------------------
 2334|      0|                    {
 2335|      0|                        more_ = false;
 2336|      0|                        return;
 2337|      0|                    }
 2338|  5.28k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2339|  5.28k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2340|  5.28k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2341|  5.28k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2341:25): [True: 5.07k, False: 208]
  ------------------
 2342|  5.07k|                    {
 2343|  1.31M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2343:49): [True: 1.30M, False: 5.07k]
  ------------------
 2344|  1.30M|                        {
 2345|  1.30M|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2346|  1.30M|                        }
 2347|  5.07k|                    }
 2348|  5.28k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2348:25): [True: 5.28k, False: 0]
  |  Branch (2348:42): [True: 0, False: 5.28k]
  ------------------
 2349|      0|                    {
 2350|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2350:29): [True: 0, False: 0]
  ------------------
 2351|      0|                        {
 2352|      0|                            ec = cbor_errc::bad_extents;
 2353|      0|                            more_ = false;
 2354|      0|                            return;
 2355|      0|                        }
 2356|      0|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2357|      0|                            typed_array_tags::int16, extents_, order_, alloc_);
 2358|      0|                        typed_array_stack_.push_back(iter);
 2359|      0|                        iter->next(visitor, *this, ec);
 2360|      0|                    }
 2361|  5.28k|                    else
 2362|  5.28k|                    {
 2363|  5.28k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2364|  5.28k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2365|  5.28k|                        typed_array_stack_.push_back(iter);
 2366|  5.28k|                        iter->next(visitor, *this, ec);
 2367|  5.28k|                    }
 2368|  5.28k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2369|  5.28k|                    more_ = !cursor_mode_;
 2370|  5.28k|                    break;
 2371|  5.28k|                }
 2372|    937|                case 0x4a:
  ------------------
  |  Branch (2372:17): [True: 937, False: 74.5k]
  ------------------
 2373|  1.18k|                case 0x4e:
  ------------------
  |  Branch (2373:17): [True: 249, False: 75.2k]
  ------------------
 2374|  1.18k|                {
 2375|  1.18k|                    array_tag_ = typed_array_tags::int32;
 2376|  1.18k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2377|  1.18k|                    read(array_buffer, ec);
 2378|  1.18k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.18k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.18k]
  |  |  ------------------
  ------------------
 2379|      0|                    {
 2380|      0|                        more_ = false;
 2381|      0|                        return;
 2382|      0|                    }
 2383|  1.18k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2384|  1.18k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2385|  1.18k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2386|  1.18k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2386:25): [True: 937, False: 249]
  ------------------
 2387|    937|                    {
 2388|  1.92M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2388:49): [True: 1.91M, False: 937]
  ------------------
 2389|  1.91M|                        {
 2390|  1.91M|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2391|  1.91M|                        }
 2392|    937|                    }
 2393|  1.18k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2393:25): [True: 1.18k, False: 0]
  |  Branch (2393:42): [True: 0, False: 1.18k]
  ------------------
 2394|      0|                    {
 2395|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2395:29): [True: 0, False: 0]
  ------------------
 2396|      0|                        {
 2397|      0|                            ec = cbor_errc::bad_extents;
 2398|      0|                            more_ = false;
 2399|      0|                            return;
 2400|      0|                        }
 2401|      0|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2402|      0|                            typed_array_tags::int32, extents_, order_, alloc_);
 2403|      0|                        typed_array_stack_.push_back(iter);
 2404|      0|                        iter->next(visitor, *this, ec);
 2405|      0|                    }
 2406|  1.18k|                    else
 2407|  1.18k|                    {
 2408|  1.18k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2409|  1.18k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2410|  1.18k|                        typed_array_stack_.push_back(iter);
 2411|  1.18k|                        iter->next(visitor, *this, ec);
 2412|  1.18k|                    }
 2413|  1.18k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2414|  1.18k|                    more_ = !cursor_mode_;
 2415|  1.18k|                    break;
 2416|  1.18k|                }
 2417|  9.28k|                case 0x4b:
  ------------------
  |  Branch (2417:17): [True: 9.28k, False: 66.1k]
  ------------------
 2418|  9.68k|                case 0x4f:
  ------------------
  |  Branch (2418:17): [True: 404, False: 75.0k]
  ------------------
 2419|  9.68k|                {
 2420|  9.68k|                    array_tag_ = typed_array_tags::int64;
 2421|  9.68k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2422|  9.68k|                    read(array_buffer, ec);
 2423|  9.68k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  9.68k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 9.68k]
  |  |  ------------------
  ------------------
 2424|      0|                    {
 2425|      0|                        more_ = false;
 2426|      0|                        return;
 2427|      0|                    }
 2428|  9.68k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2429|  9.68k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2430|  9.68k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2431|  9.68k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2431:25): [True: 9.28k, False: 404]
  ------------------
 2432|  9.28k|                    {
 2433|  1.03M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2433:49): [True: 1.02M, False: 9.28k]
  ------------------
 2434|  1.02M|                        {
 2435|  1.02M|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2436|  1.02M|                        }
 2437|  9.28k|                    }
 2438|  9.68k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2438:25): [True: 9.68k, False: 0]
  |  Branch (2438:42): [True: 0, False: 9.68k]
  ------------------
 2439|      0|                    {
 2440|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2440:29): [True: 0, False: 0]
  ------------------
 2441|      0|                        {
 2442|      0|                            ec = cbor_errc::bad_extents;
 2443|      0|                            more_ = false;
 2444|      0|                            return;
 2445|      0|                        }
 2446|      0|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2447|      0|                            typed_array_tags::int64, extents_, order_, alloc_);
 2448|      0|                        typed_array_stack_.push_back(iter);
 2449|      0|                        iter->next(visitor, *this, ec);
 2450|      0|                    }
 2451|  9.68k|                    else
 2452|  9.68k|                    {
 2453|  9.68k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2454|  9.68k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2455|  9.68k|                        typed_array_stack_.push_back(iter);
 2456|  9.68k|                        iter->next(visitor, *this, ec);
 2457|  9.68k|                    }
 2458|  9.68k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2459|  9.68k|                    more_ = !cursor_mode_;
 2460|  9.68k|                    break;
 2461|  9.68k|                }
 2462|  13.3k|                case 0x50:
  ------------------
  |  Branch (2462:17): [True: 13.3k, False: 62.1k]
  ------------------
 2463|  35.8k|                case 0x54:
  ------------------
  |  Branch (2463:17): [True: 22.5k, False: 52.9k]
  ------------------
 2464|  35.8k|                {
 2465|  35.8k|                    array_tag_ = typed_array_tags::half_float;
 2466|  35.8k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2467|  35.8k|                    read(array_buffer, ec);
 2468|  35.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  35.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 35.8k]
  |  |  ------------------
  ------------------
 2469|      0|                    {
 2470|      0|                        more_ = false;
 2471|      0|                        return;
 2472|      0|                    }
 2473|  35.8k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2474|  35.8k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2475|  35.8k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2476|  35.8k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2476:25): [True: 13.3k, False: 22.5k]
  ------------------
 2477|  13.3k|                    {
 2478|  23.6M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2478:49): [True: 23.6M, False: 13.3k]
  ------------------
 2479|  23.6M|                        {
 2480|  23.6M|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2481|  23.6M|                        }
 2482|  13.3k|                    }
 2483|  35.8k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2483:25): [True: 35.8k, False: 0]
  |  Branch (2483:42): [True: 0, False: 35.8k]
  ------------------
 2484|      0|                    {
 2485|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2485:29): [True: 0, False: 0]
  ------------------
 2486|      0|                        {
 2487|      0|                            ec = cbor_errc::bad_extents;
 2488|      0|                            more_ = false;
 2489|      0|                            return;
 2490|      0|                        }
 2491|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2492|      0|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2493|      0|                        typed_array_stack_.push_back(iter);
 2494|      0|                        iter->next(visitor, *this, ec);
 2495|      0|                    }
 2496|  35.8k|                    else
 2497|  35.8k|                    {
 2498|  35.8k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2499|  35.8k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2500|  35.8k|                        typed_array_stack_.push_back(iter);
 2501|  35.8k|                        iter->next(visitor, *this, ec);
 2502|  35.8k|                    }
 2503|  35.8k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2504|  35.8k|                    more_ = !cursor_mode_;
 2505|  35.8k|                    break;
 2506|  35.8k|                }
 2507|  1.49k|                case 0x51:
  ------------------
  |  Branch (2507:17): [True: 1.49k, False: 73.9k]
  ------------------
 2508|  2.19k|                case 0x55:
  ------------------
  |  Branch (2508:17): [True: 699, False: 74.7k]
  ------------------
 2509|  2.19k|                {
 2510|  2.19k|                    array_tag_ = typed_array_tags::float32;
 2511|  2.19k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2512|  2.19k|                    read(array_buffer, ec);
 2513|  2.19k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.19k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.19k]
  |  |  ------------------
  ------------------
 2514|      0|                    {
 2515|      0|                        more_ = false;
 2516|      0|                        return;
 2517|      0|                    }
 2518|  2.19k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2519|  2.19k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2520|  2.19k|                    auto ta = typed_array_cast<float>(array_buffer);
 2521|  2.19k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2521:25): [True: 1.49k, False: 699]
  ------------------
 2522|  1.49k|                    {
 2523|  91.5k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2523:49): [True: 90.0k, False: 1.49k]
  ------------------
 2524|  90.0k|                        {
 2525|  90.0k|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2526|  90.0k|                        }
 2527|  1.49k|                    }
 2528|  2.19k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2528:25): [True: 2.19k, False: 0]
  |  Branch (2528:42): [True: 0, False: 2.19k]
  ------------------
 2529|      0|                    {
 2530|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2530:29): [True: 0, False: 0]
  ------------------
 2531|      0|                        {
 2532|      0|                            ec = cbor_errc::bad_extents;
 2533|      0|                            more_ = false;
 2534|      0|                            return;
 2535|      0|                        }
 2536|      0|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2537|      0|                            typed_array_tags::float32, extents_, order_, alloc_);
 2538|      0|                        typed_array_stack_.push_back(iter);
 2539|      0|                        iter->next(visitor, *this, ec);
 2540|      0|                    }
 2541|  2.19k|                    else
 2542|  2.19k|                    {
 2543|  2.19k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2544|  2.19k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2545|  2.19k|                        typed_array_stack_.push_back(iter);
 2546|  2.19k|                        iter->next(visitor, *this, ec);
 2547|  2.19k|                    }
 2548|  2.19k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2549|  2.19k|                    more_ = !cursor_mode_;
 2550|  2.19k|                    break;
 2551|  2.19k|                }
 2552|  1.12k|                case 0x52:
  ------------------
  |  Branch (2552:17): [True: 1.12k, False: 74.3k]
  ------------------
 2553|  1.84k|                case 0x56:
  ------------------
  |  Branch (2553:17): [True: 715, False: 74.7k]
  ------------------
 2554|  1.84k|                {
 2555|  1.84k|                    array_tag_ = typed_array_tags::float64;
 2556|  1.84k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2557|  1.84k|                    read(array_buffer, ec);
 2558|  1.84k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.84k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 1.84k]
  |  |  ------------------
  ------------------
 2559|      0|                    {
 2560|      0|                        more_ = false;
 2561|      0|                        return;
 2562|      0|                    }
 2563|  1.84k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2564|  1.84k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2565|  1.84k|                    auto ta = typed_array_cast<double>(array_buffer);
 2566|  1.84k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2566:25): [True: 1.12k, False: 715]
  ------------------
 2567|  1.12k|                    {
 2568|  42.7k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2568:49): [True: 41.6k, False: 1.12k]
  ------------------
 2569|  41.6k|                        {
 2570|  41.6k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2571|  41.6k|                        }
 2572|  1.12k|                    }
 2573|  1.84k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2573:25): [True: 1.84k, False: 0]
  |  Branch (2573:42): [True: 0, False: 1.84k]
  ------------------
 2574|      0|                    {
 2575|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2575:29): [True: 0, False: 0]
  ------------------
 2576|      0|                        {
 2577|      0|                            ec = cbor_errc::bad_extents;
 2578|      0|                            more_ = false;
 2579|      0|                            return;
 2580|      0|                        }
 2581|      0|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2582|      0|                            typed_array_tags::float64, extents_, order_, alloc_);
 2583|      0|                        typed_array_stack_.push_back(iter);
 2584|      0|                        iter->next(visitor, *this, ec);
 2585|      0|                    }
 2586|  1.84k|                    else
 2587|  1.84k|                    {
 2588|  1.84k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2589|  1.84k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2590|  1.84k|                        typed_array_stack_.push_back(iter);
 2591|  1.84k|                        iter->next(visitor, *this, ec);
 2592|  1.84k|                    }
 2593|  1.84k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2594|  1.84k|                    more_ = !cursor_mode_;
 2595|  1.84k|                    break;
 2596|  1.84k|                }
 2597|  2.75k|                default:
  ------------------
  |  Branch (2597:17): [True: 2.75k, False: 72.7k]
  ------------------
 2598|  2.75k|                {
 2599|  2.75k|                    auto bytes = read.view(ec);
 2600|  2.75k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.75k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.75k]
  |  |  ------------------
  ------------------
 2601|      0|                    {
 2602|      0|                        more_ = false;
 2603|      0|                        return;
 2604|      0|                    }
 2605|  2.75k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2606|  2.75k|                    more_ = !cursor_mode_;
 2607|  2.75k|                    break;
 2608|  2.75k|                }
 2609|  75.4k|            }
 2610|  75.4k|            other_tags_[item_tag] = false;
 2611|  75.4k|        }
 2612|  14.0k|        else
 2613|  14.0k|        {
 2614|  14.0k|            auto bytes = read.view(ec);
 2615|  14.0k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  14.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 14.0k]
  |  |  ------------------
  ------------------
 2616|      0|            {
 2617|      0|                return;
 2618|      0|            }
 2619|  14.0k|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2620|  14.0k|            more_ = !cursor_mode_;
 2621|  14.0k|        }
 2622|  89.5k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_buffer4viewERNS3_10error_codeE:
  189|  24.8k|        {
  190|  24.8k|            return bytes;
  191|  24.8k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  179|  64.6k|        {
  180|  64.6k|            c.clear();
  181|  64.6k|            c.reserve(bytes.size());
  182|  64.6k|            for (auto b : bytes)
  ------------------
  |  Branch (182:25): [True: 95.9M, False: 64.6k]
  ------------------
  183|  95.9M|            {
  184|  95.9M|                c.push_back(b);
  185|  95.9M|            }
  186|  64.6k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26get_typed_array_endiannessEh:
 2019|   123k|    {
 2020|   123k|        return ((tag & detail::cbor_array_tags_e_mask) >> detail::cbor_array_tags_e_shift) == 0 ? jsoncons::endian::big : jsoncons::endian::little; 
  ------------------
  |  Branch (2020:16): [True: 76.1k, False: 47.5k]
  ------------------
 2021|   123k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10read_int64ERNS3_10error_codeE:
 1458|  6.24M|    {
 1459|  6.24M|        int64_t val = 0;
 1460|       |
 1461|  6.24M|        auto ch = source_.peek();
 1462|  6.24M|        if (ch.eof)
  ------------------
  |  Branch (1462:13): [True: 0, False: 6.24M]
  ------------------
 1463|      0|        {
 1464|      0|            ec = cbor_errc::unexpected_eof;
 1465|      0|            more_ = false;
 1466|      0|            return val;
 1467|      0|        }
 1468|       |
 1469|  6.24M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(ch.value);
 1470|  6.24M|        uint8_t info = get_additional_information_value(ch.value);
 1471|  6.24M|        switch (major_type)
 1472|  6.24M|        {
 1473|  6.24M|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1473:13): [True: 6.24M, False: 0]
  ------------------
 1474|  6.24M|                source_.ignore(1);
 1475|  6.24M|                switch (info)
  ------------------
  |  Branch (1475:25): [True: 6.22M, False: 21.3k]
  ------------------
 1476|  6.24M|                {
 1477|  6.21M|                    case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  6.21M|    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: 12.2k, False: 6.23M]
  |  |  |  Branch (18:20): [True: 7.55k, False: 6.24M]
  |  |  |  Branch (18:30): [True: 49.8k, False: 6.20M]
  |  |  |  Branch (18:40): [True: 11.0k, False: 6.23M]
  |  |  |  Branch (18:50): [True: 14.9k, False: 6.23M]
  |  |  |  Branch (18:60): [True: 5.93k, False: 6.24M]
  |  |  |  Branch (18:70): [True: 21.8k, False: 6.22M]
  |  |  |  Branch (18:80): [True: 4.15M, False: 2.09M]
  |  |  |  Branch (18:90): [True: 13.8k, False: 6.23M]
  |  |  |  Branch (18:100): [True: 12.0k, False: 6.23M]
  |  |  |  Branch (18:110): [True: 4.80k, False: 6.24M]
  |  |  |  Branch (18:120): [True: 37.5k, False: 6.21M]
  |  |  |  Branch (18:130): [True: 851k, False: 5.39M]
  |  |  |  Branch (18:140): [True: 24.6k, False: 6.22M]
  |  |  |  Branch (18:150): [True: 19.5k, False: 6.23M]
  |  |  |  Branch (18:160): [True: 28.6k, False: 6.22M]
  |  |  |  Branch (18:170): [True: 19.5k, False: 6.23M]
  |  |  |  Branch (18:180): [True: 12.9k, False: 6.23M]
  |  |  |  Branch (18:190): [True: 6.71k, False: 6.24M]
  |  |  |  Branch (18:200): [True: 12.3k, False: 6.23M]
  |  |  |  Branch (18:210): [True: 11.2k, False: 6.23M]
  |  |  |  Branch (18:220): [True: 20.8k, False: 6.22M]
  |  |  ------------------
  ------------------
  |  Branch (1477:21): [True: 835k, False: 5.41M]
  ------------------
 1478|  6.21M|                    {
 1479|  6.21M|                        val = static_cast<int8_t>(- 1 - info);
 1480|  6.21M|                        break;
 1481|  93.2M|                    }
 1482|  6.75k|                    case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (1482:21): [True: 6.75k, False: 6.24M]
  ------------------
 1483|  6.75k|                        {
 1484|  6.75k|                            uint8_t b;
 1485|  6.75k|                            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1485:33): [True: 6, False: 6.74k]
  ------------------
 1486|      6|                            {
 1487|      6|                                ec = cbor_errc::unexpected_eof;
 1488|      6|                                more_ = false;
 1489|      6|                                return val;
 1490|      6|                            }
 1491|  6.74k|                            val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 1492|  6.74k|                            break;
 1493|  6.75k|                        }
 1494|       |
 1495|  4.89k|                    case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (1495:21): [True: 4.89k, False: 6.24M]
  ------------------
 1496|  4.89k|                        {
 1497|  4.89k|                            uint8_t buf[sizeof(uint16_t)];
 1498|  4.89k|                            if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (1498:33): [True: 5, False: 4.88k]
  ------------------
 1499|      5|                            {
 1500|      5|                                ec = cbor_errc::unexpected_eof;
 1501|      5|                                more_ = false;
 1502|      5|                                return val;
 1503|      5|                            }
 1504|  4.88k|                            auto x = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 1505|  4.88k|                            val = static_cast<int64_t>(-1)- x;
 1506|  4.88k|                            break;
 1507|  4.89k|                        }
 1508|       |
 1509|  2.92k|                    case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (1509:21): [True: 2.92k, False: 6.24M]
  ------------------
 1510|  2.92k|                        {
 1511|  2.92k|                            uint8_t buf[sizeof(uint32_t)];
 1512|  2.92k|                            if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (1512:33): [True: 11, False: 2.90k]
  ------------------
 1513|     11|                            {
 1514|     11|                                ec = cbor_errc::unexpected_eof;
 1515|     11|                                more_ = false;
 1516|     11|                                return val;
 1517|     11|                            }
 1518|  2.90k|                            auto x = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 1519|  2.90k|                            val = static_cast<int64_t>(-1)- x;
 1520|  2.90k|                            break;
 1521|  2.92k|                        }
 1522|       |
 1523|  3.58k|                    case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (1523:21): [True: 3.58k, False: 6.24M]
  ------------------
 1524|  3.58k|                        {
 1525|  3.58k|                            uint8_t buf[sizeof(uint64_t)];
 1526|  3.58k|                            if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (1526:33): [True: 18, False: 3.56k]
  ------------------
 1527|     18|                            {
 1528|     18|                                ec = cbor_errc::unexpected_eof;
 1529|     18|                                more_ = false;
 1530|     18|                                return val;
 1531|     18|                            }
 1532|  3.56k|                            auto x = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 1533|  3.56k|                            val = static_cast<int64_t>(-1)- static_cast<int64_t>(x);
 1534|  3.56k|                            break;
 1535|  3.58k|                        }
 1536|  6.24M|                }
 1537|  6.24M|                break;
 1538|       |
 1539|  6.24M|                case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1539:17): [True: 0, False: 6.24M]
  ------------------
 1540|      0|                {
 1541|      0|                    uint64_t x = read_uint64(ec);
 1542|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1543|      0|                    {
 1544|      0|                        return 0;
 1545|      0|                    }
 1546|      0|                    if (x <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (1546:25): [True: 0, False: 0]
  ------------------
 1547|      0|                    {
 1548|      0|                        val = x;
 1549|      0|                    }
 1550|      0|                    else
 1551|      0|                    {
 1552|       |                        // error;
 1553|      0|                    }
 1554|       |                    
 1555|      0|                    break;
 1556|      0|                }
 1557|      0|                break;
 1558|      0|            default:
  ------------------
  |  Branch (1558:13): [True: 0, False: 6.24M]
  ------------------
 1559|      0|                break;
 1560|  6.24M|        }
 1561|       |
 1562|  6.24M|        return val;
 1563|  6.24M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceC2EPS8_:
  199|  13.2M|            : source(source)
  200|  13.2M|        {
  201|  13.2M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_sourceEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2033|  13.2M|    {
 2034|  13.2M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2034:13): [True: 134k, False: 13.1M]
  ------------------
 2035|   134k|        {
 2036|   134k|            switch (raw_tag_)
 2037|   134k|            {
 2038|  33.8k|                case 0x2:
  ------------------
  |  Branch (2038:17): [True: 33.8k, False: 100k]
  ------------------
 2039|  33.8k|                {
 2040|  33.8k|                    auto bytes = read.view(ec);
 2041|  33.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  33.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 33.8k]
  |  |  ------------------
  ------------------
 2042|      7|                    {
 2043|      7|                        more_ = false;
 2044|      7|                        return;
 2045|      7|                    }
 2046|  33.8k|                    bigint n = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2047|  33.8k|                    text_buffer_.clear();
 2048|  33.8k|                    n.write_string(text_buffer_);
 2049|  33.8k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2050|  33.8k|                    more_ = !cursor_mode_;
 2051|  33.8k|                    break;
 2052|  33.8k|                }
 2053|  5.12k|                case 0x3:
  ------------------
  |  Branch (2053:17): [True: 5.12k, False: 129k]
  ------------------
 2054|  5.12k|                {
 2055|  5.12k|                    auto bytes = read.view(ec);
 2056|  5.12k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  5.12k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 13, False: 5.11k]
  |  |  ------------------
  ------------------
 2057|     13|                    {
 2058|     13|                        more_ = false;
 2059|     13|                        return;
 2060|     13|                    }
 2061|  5.11k|                    bigint n = bigint::from_bytes_be(1, bytes.data(), bytes.size());
 2062|  5.11k|                    n = -1 - n;
 2063|  5.11k|                    text_buffer_.clear();
 2064|  5.11k|                    n.write_string(text_buffer_);
 2065|  5.11k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2066|  5.11k|                    more_ = !cursor_mode_;
 2067|  5.11k|                    break;
 2068|  5.12k|                }
 2069|    267|                case 0x15:
  ------------------
  |  Branch (2069:17): [True: 267, False: 134k]
  ------------------
 2070|    960|                case 0x16:
  ------------------
  |  Branch (2070:17): [True: 693, False: 133k]
  ------------------
 2071|  1.67k|                case 0x17:
  ------------------
  |  Branch (2071:17): [True: 714, False: 133k]
  ------------------
 2072|  1.67k|                {
 2073|  1.67k|                    auto bytes = read.view(ec);
 2074|  1.67k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.67k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5, False: 1.66k]
  |  |  ------------------
  ------------------
 2075|      5|                    {
 2076|      5|                        more_ = false;
 2077|      5|                        return;
 2078|      5|                    }
 2079|  1.66k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2079:46): [True: 266, False: 1.40k]
  ------------------
 2080|  1.66k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2080:27): [True: 692, False: 711]
  ------------------
 2081|  1.40k|                        : semantic_tag::base16;
 2082|  1.66k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2083|  1.66k|                    more_ = !cursor_mode_;
 2084|  1.66k|                    break;
 2085|  1.67k|                }
 2086|  1.63k|                case 0x40:
  ------------------
  |  Branch (2086:17): [True: 1.63k, False: 132k]
  ------------------
 2087|  1.63k|                {
 2088|  1.63k|                    array_tag_ = typed_array_tags::uint8;
 2089|  1.63k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2090|  1.63k|                    read(array_buffer, ec);
 2091|  1.63k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.63k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 1.63k]
  |  |  ------------------
  ------------------
 2092|      1|                    {
 2093|      1|                        more_ = false;
 2094|      1|                        return;
 2095|      1|                    }
 2096|  1.63k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2097|  1.63k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2097:25): [True: 1.63k, False: 0]
  |  Branch (2097:42): [True: 373, False: 1.25k]
  ------------------
 2098|    373|                    {
 2099|    373|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2099:29): [True: 2, False: 371]
  ------------------
 2100|      2|                        {
 2101|      2|                            ec = cbor_errc::bad_extents;
 2102|      2|                            more_ = false;
 2103|      2|                            return;
 2104|      2|                        }
 2105|    371|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2106|    371|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2107|    371|                        typed_array_stack_.push_back(iter);
 2108|    371|                        iter->next(visitor, *this, ec);
 2109|    371|                    }
 2110|  1.25k|                    else
 2111|  1.25k|                    {
 2112|  1.25k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2113|  1.25k|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2114|  1.25k|                        typed_array_stack_.push_back(iter);
 2115|  1.25k|                        iter->next(visitor, *this, ec);
 2116|  1.25k|                    }
 2117|  1.62k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2118|  1.62k|                    more_ = !cursor_mode_;
 2119|  1.62k|                    break;
 2120|  1.63k|                }
 2121|  1.45k|                case 0x44:
  ------------------
  |  Branch (2121:17): [True: 1.45k, False: 132k]
  ------------------
 2122|  1.45k|                {
 2123|  1.45k|                    array_tag_ = typed_array_tags::uint8;
 2124|  1.45k|                    typed_array_tag_ = semantic_tag::clamped;
 2125|  1.45k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2126|  1.45k|                    read(array_buffer, ec);
 2127|  1.45k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.45k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 12, False: 1.44k]
  |  |  ------------------
  ------------------
 2128|     12|                    {
 2129|     12|                        more_ = false;
 2130|     12|                        return;
 2131|     12|                    }
 2132|  1.44k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2133|  1.44k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2133:25): [True: 1.44k, False: 0]
  |  Branch (2133:42): [True: 108, False: 1.33k]
  ------------------
 2134|    108|                    {
 2135|    108|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2135:29): [True: 1, False: 107]
  ------------------
 2136|      1|                        {
 2137|      1|                            ec = cbor_errc::bad_extents;
 2138|      1|                            more_ = false;
 2139|      1|                            return;
 2140|      1|                        }
 2141|    107|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2142|    107|                            typed_array_tags::uint8, extents_, order_, alloc_);
 2143|    107|                        typed_array_stack_.push_back(iter);
 2144|    107|                        iter->next(visitor, *this, ec);
 2145|    107|                    }
 2146|  1.33k|                    else
 2147|  1.33k|                    {
 2148|  1.33k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2149|  1.33k|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 2150|  1.33k|                        typed_array_stack_.push_back(iter);
 2151|  1.33k|                        iter->next(visitor, *this, ec);
 2152|  1.33k|                    }
 2153|  1.44k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2154|  1.44k|                    more_ = !cursor_mode_;
 2155|  1.44k|                    break;
 2156|  1.44k|                }
 2157|  13.6k|                case 0x41:
  ------------------
  |  Branch (2157:17): [True: 13.6k, False: 120k]
  ------------------
 2158|  13.9k|                case 0x45:
  ------------------
  |  Branch (2158:17): [True: 299, False: 134k]
  ------------------
 2159|  13.9k|                {
 2160|  13.9k|                    array_tag_ = typed_array_tags::uint16;
 2161|  13.9k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2162|  13.9k|                    read(array_buffer, ec);
 2163|  13.9k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  13.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5, False: 13.9k]
  |  |  ------------------
  ------------------
 2164|      5|                    {
 2165|      5|                        more_ = false;
 2166|      5|                        return;
 2167|      5|                    }
 2168|  13.9k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2169|  13.9k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2170|  13.9k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2171|  13.9k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2171:25): [True: 13.6k, False: 295]
  ------------------
 2172|  13.6k|                    {
 2173|  19.8k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2173:49): [True: 6.21k, False: 13.6k]
  ------------------
 2174|  6.21k|                        {
 2175|  6.21k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2176|  6.21k|                        }
 2177|  13.6k|                    }
 2178|  13.9k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2178:25): [True: 13.9k, False: 0]
  |  Branch (2178:42): [True: 447, False: 13.4k]
  ------------------
 2179|    447|                    {
 2180|    447|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2180:29): [True: 3, False: 444]
  ------------------
 2181|      3|                        {
 2182|      3|                            ec = cbor_errc::bad_extents;
 2183|      3|                            more_ = false;
 2184|      3|                            return;
 2185|      3|                        }
 2186|    444|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2187|    444|                            typed_array_tags::uint16, extents_, order_, alloc_);
 2188|    444|                        typed_array_stack_.push_back(iter);
 2189|    444|                        iter->next(visitor, *this, ec);
 2190|    444|                    }
 2191|  13.4k|                    else
 2192|  13.4k|                    {
 2193|  13.4k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2194|  13.4k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 2195|  13.4k|                        typed_array_stack_.push_back(iter);
 2196|  13.4k|                        iter->next(visitor, *this, ec);
 2197|  13.4k|                    }
 2198|  13.9k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2199|  13.9k|                    more_ = !cursor_mode_;
 2200|  13.9k|                    break;
 2201|  13.9k|                }
 2202|  3.10k|                case 0x42:
  ------------------
  |  Branch (2202:17): [True: 3.10k, False: 131k]
  ------------------
 2203|  4.53k|                case 0x46:
  ------------------
  |  Branch (2203:17): [True: 1.42k, False: 133k]
  ------------------
 2204|  4.53k|                {
 2205|  4.53k|                    array_tag_ = typed_array_tags::uint32;
 2206|  4.53k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2207|  4.53k|                    read(array_buffer, ec);
 2208|  4.53k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  4.53k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 4.52k]
  |  |  ------------------
  ------------------
 2209|      7|                    {
 2210|      7|                        more_ = false;
 2211|      7|                        return;
 2212|      7|                    }
 2213|  4.52k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2214|  4.52k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 2215|  4.52k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 2216|  4.52k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2216:25): [True: 3.09k, False: 1.42k]
  ------------------
 2217|  3.09k|                    {
 2218|  4.16k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2218:49): [True: 1.06k, False: 3.09k]
  ------------------
 2219|  1.06k|                        {
 2220|  1.06k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 2221|  1.06k|                        }
 2222|  3.09k|                    }
 2223|  4.52k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2223:25): [True: 4.52k, False: 0]
  |  Branch (2223:42): [True: 400, False: 4.12k]
  ------------------
 2224|    400|                    {
 2225|    400|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2225:29): [True: 1, False: 399]
  ------------------
 2226|      1|                        {
 2227|      1|                            ec = cbor_errc::bad_extents;
 2228|      1|                            more_ = false;
 2229|      1|                            return;
 2230|      1|                        }
 2231|    399|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2232|    399|                            typed_array_tags::uint32, extents_, order_, alloc_);
 2233|    399|                        typed_array_stack_.push_back(iter);
 2234|    399|                        iter->next(visitor, *this, ec);
 2235|    399|                    }
 2236|  4.12k|                    else
 2237|  4.12k|                    {
 2238|  4.12k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2239|  4.12k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 2240|  4.12k|                        typed_array_stack_.push_back(iter);
 2241|  4.12k|                        iter->next(visitor, *this, ec);
 2242|  4.12k|                    }
 2243|  4.52k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2244|  4.52k|                    more_ = !cursor_mode_;
 2245|  4.52k|                    break;
 2246|  4.52k|                }
 2247|  2.21k|                case 0x43:
  ------------------
  |  Branch (2247:17): [True: 2.21k, False: 132k]
  ------------------
 2248|  10.8k|                case 0x47:
  ------------------
  |  Branch (2248:17): [True: 8.61k, False: 125k]
  ------------------
 2249|  10.8k|                {
 2250|  10.8k|                    array_tag_ = typed_array_tags::uint64;
 2251|  10.8k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2252|  10.8k|                    read(array_buffer, ec);
 2253|  10.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  10.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 10.8k]
  |  |  ------------------
  ------------------
 2254|      1|                    {
 2255|      1|                        more_ = false;
 2256|      1|                        return;
 2257|      1|                    }
 2258|  10.8k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2259|  10.8k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2260|  10.8k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 2261|  10.8k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2261:25): [True: 2.21k, False: 8.61k]
  ------------------
 2262|  2.21k|                    {
 2263|  55.9k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2263:49): [True: 53.6k, False: 2.21k]
  ------------------
 2264|  53.6k|                        {
 2265|  53.6k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 2266|  53.6k|                        }
 2267|  2.21k|                    }
 2268|  10.8k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2268:25): [True: 10.8k, False: 0]
  |  Branch (2268:42): [True: 338, False: 10.4k]
  ------------------
 2269|    338|                    {
 2270|    338|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2270:29): [True: 1, False: 337]
  ------------------
 2271|      1|                        {
 2272|      1|                            ec = cbor_errc::bad_extents;
 2273|      1|                            more_ = false;
 2274|      1|                            return;
 2275|      1|                        }
 2276|    337|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2277|    337|                            typed_array_tags::uint64, extents_, order_, alloc_);
 2278|    337|                        typed_array_stack_.push_back(iter);
 2279|    337|                        iter->next(visitor, *this, ec);
 2280|    337|                    }
 2281|  10.4k|                    else
 2282|  10.4k|                    {
 2283|  10.4k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2284|  10.4k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 2285|  10.4k|                        typed_array_stack_.push_back(iter);
 2286|  10.4k|                        iter->next(visitor, *this, ec);
 2287|  10.4k|                    }
 2288|  10.8k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2289|  10.8k|                    more_ = !cursor_mode_;
 2290|  10.8k|                    break;
 2291|  10.8k|                }
 2292|  3.35k|                case 0x48:
  ------------------
  |  Branch (2292:17): [True: 3.35k, False: 131k]
  ------------------
 2293|  3.35k|                {
 2294|  3.35k|                    array_tag_ = typed_array_tags::int8;
 2295|  3.35k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2296|  3.35k|                    read(array_buffer, ec);
 2297|  3.35k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  3.35k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 3.34k]
  |  |  ------------------
  ------------------
 2298|      7|                    {
 2299|      7|                        more_ = false;
 2300|      7|                        return;
 2301|      7|                    }
 2302|  3.34k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 2303|  3.34k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2303:25): [True: 3.34k, False: 0]
  |  Branch (2303:42): [True: 409, False: 2.93k]
  ------------------
 2304|    409|                    {
 2305|    409|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2305:29): [True: 2, False: 407]
  ------------------
 2306|      2|                        {
 2307|      2|                            ec = cbor_errc::bad_extents;
 2308|      2|                            more_ = false;
 2309|      2|                            return;
 2310|      2|                        }
 2311|    407|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2312|    407|                            typed_array_tags::int8, extents_, order_, alloc_);
 2313|    407|                        typed_array_stack_.push_back(iter);
 2314|    407|                        iter->next(visitor, *this, ec);
 2315|    407|                    }
 2316|  2.93k|                    else
 2317|  2.93k|                    {
 2318|  2.93k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2319|  2.93k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 2320|  2.93k|                        typed_array_stack_.push_back(iter);
 2321|  2.93k|                        iter->next(visitor, *this, ec);
 2322|  2.93k|                    }
 2323|  3.34k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2324|  3.34k|                    more_ = !cursor_mode_;
 2325|  3.34k|                    break;
 2326|  3.34k|                }
 2327|  7.84k|                case 0x49:
  ------------------
  |  Branch (2327:17): [True: 7.84k, False: 126k]
  ------------------
 2328|  9.35k|                case 0x4d:
  ------------------
  |  Branch (2328:17): [True: 1.51k, False: 132k]
  ------------------
 2329|  9.35k|                {
 2330|  9.35k|                    array_tag_ = typed_array_tags::int16;
 2331|  9.35k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2332|  9.35k|                    read(array_buffer, ec);
 2333|  9.35k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  9.35k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 12, False: 9.34k]
  |  |  ------------------
  ------------------
 2334|     12|                    {
 2335|     12|                        more_ = false;
 2336|     12|                        return;
 2337|     12|                    }
 2338|  9.34k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2339|  9.34k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2340|  9.34k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 2341|  9.34k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2341:25): [True: 7.83k, False: 1.51k]
  ------------------
 2342|  7.83k|                    {
 2343|  23.5k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2343:49): [True: 15.7k, False: 7.83k]
  ------------------
 2344|  15.7k|                        {
 2345|  15.7k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 2346|  15.7k|                        }
 2347|  7.83k|                    }
 2348|  9.34k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2348:25): [True: 9.34k, False: 0]
  |  Branch (2348:42): [True: 211, False: 9.13k]
  ------------------
 2349|    211|                    {
 2350|    211|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2350:29): [True: 2, False: 209]
  ------------------
 2351|      2|                        {
 2352|      2|                            ec = cbor_errc::bad_extents;
 2353|      2|                            more_ = false;
 2354|      2|                            return;
 2355|      2|                        }
 2356|    209|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2357|    209|                            typed_array_tags::int16, extents_, order_, alloc_);
 2358|    209|                        typed_array_stack_.push_back(iter);
 2359|    209|                        iter->next(visitor, *this, ec);
 2360|    209|                    }
 2361|  9.13k|                    else
 2362|  9.13k|                    {
 2363|  9.13k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2364|  9.13k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 2365|  9.13k|                        typed_array_stack_.push_back(iter);
 2366|  9.13k|                        iter->next(visitor, *this, ec);
 2367|  9.13k|                    }
 2368|  9.34k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2369|  9.34k|                    more_ = !cursor_mode_;
 2370|  9.34k|                    break;
 2371|  9.34k|                }
 2372|  1.96k|                case 0x4a:
  ------------------
  |  Branch (2372:17): [True: 1.96k, False: 132k]
  ------------------
 2373|  3.13k|                case 0x4e:
  ------------------
  |  Branch (2373:17): [True: 1.17k, False: 133k]
  ------------------
 2374|  3.13k|                {
 2375|  3.13k|                    array_tag_ = typed_array_tags::int32;
 2376|  3.13k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2377|  3.13k|                    read(array_buffer, ec);
 2378|  3.13k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  3.13k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 3.13k]
  |  |  ------------------
  ------------------
 2379|      7|                    {
 2380|      7|                        more_ = false;
 2381|      7|                        return;
 2382|      7|                    }
 2383|  3.13k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2384|  3.13k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2385|  3.13k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 2386|  3.13k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2386:25): [True: 1.96k, False: 1.17k]
  ------------------
 2387|  1.96k|                    {
 2388|  43.3k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2388:49): [True: 41.3k, False: 1.96k]
  ------------------
 2389|  41.3k|                        {
 2390|  41.3k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 2391|  41.3k|                        }
 2392|  1.96k|                    }
 2393|  3.13k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2393:25): [True: 3.13k, False: 0]
  |  Branch (2393:42): [True: 406, False: 2.72k]
  ------------------
 2394|    406|                    {
 2395|    406|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2395:29): [True: 1, False: 405]
  ------------------
 2396|      1|                        {
 2397|      1|                            ec = cbor_errc::bad_extents;
 2398|      1|                            more_ = false;
 2399|      1|                            return;
 2400|      1|                        }
 2401|    405|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2402|    405|                            typed_array_tags::int32, extents_, order_, alloc_);
 2403|    405|                        typed_array_stack_.push_back(iter);
 2404|    405|                        iter->next(visitor, *this, ec);
 2405|    405|                    }
 2406|  2.72k|                    else
 2407|  2.72k|                    {
 2408|  2.72k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2409|  2.72k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 2410|  2.72k|                        typed_array_stack_.push_back(iter);
 2411|  2.72k|                        iter->next(visitor, *this, ec);
 2412|  2.72k|                    }
 2413|  3.13k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2414|  3.13k|                    more_ = !cursor_mode_;
 2415|  3.13k|                    break;
 2416|  3.13k|                }
 2417|    646|                case 0x4b:
  ------------------
  |  Branch (2417:17): [True: 646, False: 133k]
  ------------------
 2418|  1.73k|                case 0x4f:
  ------------------
  |  Branch (2418:17): [True: 1.09k, False: 133k]
  ------------------
 2419|  1.73k|                {
 2420|  1.73k|                    array_tag_ = typed_array_tags::int64;
 2421|  1.73k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2422|  1.73k|                    read(array_buffer, ec);
 2423|  1.73k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.73k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 10, False: 1.72k]
  |  |  ------------------
  ------------------
 2424|     10|                    {
 2425|     10|                        more_ = false;
 2426|     10|                        return;
 2427|     10|                    }
 2428|  1.72k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2429|  1.72k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2430|  1.72k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 2431|  1.72k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2431:25): [True: 640, False: 1.08k]
  ------------------
 2432|    640|                    {
 2433|  16.1k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2433:49): [True: 15.4k, False: 640]
  ------------------
 2434|  15.4k|                        {
 2435|  15.4k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 2436|  15.4k|                        }
 2437|    640|                    }
 2438|  1.72k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2438:25): [True: 1.72k, False: 0]
  |  Branch (2438:42): [True: 508, False: 1.21k]
  ------------------
 2439|    508|                    {
 2440|    508|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2440:29): [True: 3, False: 505]
  ------------------
 2441|      3|                        {
 2442|      3|                            ec = cbor_errc::bad_extents;
 2443|      3|                            more_ = false;
 2444|      3|                            return;
 2445|      3|                        }
 2446|    505|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2447|    505|                            typed_array_tags::int64, extents_, order_, alloc_);
 2448|    505|                        typed_array_stack_.push_back(iter);
 2449|    505|                        iter->next(visitor, *this, ec);
 2450|    505|                    }
 2451|  1.21k|                    else
 2452|  1.21k|                    {
 2453|  1.21k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2454|  1.21k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 2455|  1.21k|                        typed_array_stack_.push_back(iter);
 2456|  1.21k|                        iter->next(visitor, *this, ec);
 2457|  1.21k|                    }
 2458|  1.72k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2459|  1.72k|                    more_ = !cursor_mode_;
 2460|  1.72k|                    break;
 2461|  1.72k|                }
 2462|  2.43k|                case 0x50:
  ------------------
  |  Branch (2462:17): [True: 2.43k, False: 132k]
  ------------------
 2463|  7.68k|                case 0x54:
  ------------------
  |  Branch (2463:17): [True: 5.24k, False: 129k]
  ------------------
 2464|  7.68k|                {
 2465|  7.68k|                    array_tag_ = typed_array_tags::half_float;
 2466|  7.68k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2467|  7.68k|                    read(array_buffer, ec);
 2468|  7.68k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  7.68k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 27, False: 7.65k]
  |  |  ------------------
  ------------------
 2469|     27|                    {
 2470|     27|                        more_ = false;
 2471|     27|                        return;
 2472|     27|                    }
 2473|  7.65k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2474|  7.65k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2475|  7.65k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 2476|  7.65k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2476:25): [True: 2.41k, False: 5.24k]
  ------------------
 2477|  2.41k|                    {
 2478|   155k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2478:49): [True: 153k, False: 2.41k]
  ------------------
 2479|   153k|                        {
 2480|   153k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 2481|   153k|                        }
 2482|  2.41k|                    }
 2483|  7.65k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2483:25): [True: 7.65k, False: 0]
  |  Branch (2483:42): [True: 3.46k, False: 4.19k]
  ------------------
 2484|  3.46k|                    {
 2485|  3.46k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2485:29): [True: 5, False: 3.45k]
  ------------------
 2486|      5|                        {
 2487|      5|                            ec = cbor_errc::bad_extents;
 2488|      5|                            more_ = false;
 2489|      5|                            return;
 2490|      5|                        }
 2491|  3.45k|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 2492|  3.45k|                            typed_array_tags::half_float, extents_, order_, alloc_);
 2493|  3.45k|                        typed_array_stack_.push_back(iter);
 2494|  3.45k|                        iter->next(visitor, *this, ec);
 2495|  3.45k|                    }
 2496|  4.19k|                    else
 2497|  4.19k|                    {
 2498|  4.19k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 2499|  4.19k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 2500|  4.19k|                        typed_array_stack_.push_back(iter);
 2501|  4.19k|                        iter->next(visitor, *this, ec);
 2502|  4.19k|                    }
 2503|  7.65k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2504|  7.65k|                    more_ = !cursor_mode_;
 2505|  7.65k|                    break;
 2506|  7.65k|                }
 2507|  6.00k|                case 0x51:
  ------------------
  |  Branch (2507:17): [True: 6.00k, False: 128k]
  ------------------
 2508|  6.95k|                case 0x55:
  ------------------
  |  Branch (2508:17): [True: 950, False: 133k]
  ------------------
 2509|  6.95k|                {
 2510|  6.95k|                    array_tag_ = typed_array_tags::float32;
 2511|  6.95k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2512|  6.95k|                    read(array_buffer, ec);
 2513|  6.95k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  6.95k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 6.94k]
  |  |  ------------------
  ------------------
 2514|      7|                    {
 2515|      7|                        more_ = false;
 2516|      7|                        return;
 2517|      7|                    }
 2518|  6.94k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2519|  6.94k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2520|  6.94k|                    auto ta = typed_array_cast<float>(array_buffer);
 2521|  6.94k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2521:25): [True: 5.99k, False: 947]
  ------------------
 2522|  5.99k|                    {
 2523|   105k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2523:49): [True: 99.9k, False: 5.99k]
  ------------------
 2524|  99.9k|                        {
 2525|  99.9k|                            ta[i] = binary::byte_swap<float>(ta[i]);
 2526|  99.9k|                        }
 2527|  5.99k|                    }
 2528|  6.94k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2528:25): [True: 6.94k, False: 0]
  |  Branch (2528:42): [True: 650, False: 6.29k]
  ------------------
 2529|    650|                    {
 2530|    650|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2530:29): [True: 2, False: 648]
  ------------------
 2531|      2|                        {
 2532|      2|                            ec = cbor_errc::bad_extents;
 2533|      2|                            more_ = false;
 2534|      2|                            return;
 2535|      2|                        }
 2536|    648|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2537|    648|                            typed_array_tags::float32, extents_, order_, alloc_);
 2538|    648|                        typed_array_stack_.push_back(iter);
 2539|    648|                        iter->next(visitor, *this, ec);
 2540|    648|                    }
 2541|  6.29k|                    else
 2542|  6.29k|                    {
 2543|  6.29k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2544|  6.29k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 2545|  6.29k|                        typed_array_stack_.push_back(iter);
 2546|  6.29k|                        iter->next(visitor, *this, ec);
 2547|  6.29k|                    }
 2548|  6.94k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2549|  6.94k|                    more_ = !cursor_mode_;
 2550|  6.94k|                    break;
 2551|  6.94k|                }
 2552|  2.96k|                case 0x52:
  ------------------
  |  Branch (2552:17): [True: 2.96k, False: 131k]
  ------------------
 2553|  3.30k|                case 0x56:
  ------------------
  |  Branch (2553:17): [True: 340, False: 134k]
  ------------------
 2554|  3.30k|                {
 2555|  3.30k|                    array_tag_ = typed_array_tags::float64;
 2556|  3.30k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2557|  3.30k|                    read(array_buffer, ec);
 2558|  3.30k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  3.30k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 12, False: 3.29k]
  |  |  ------------------
  ------------------
 2559|     12|                    {
 2560|     12|                        more_ = false;
 2561|     12|                        return;
 2562|     12|                    }
 2563|  3.29k|                    const uint8_t tag = (uint8_t)raw_tag_;
 2564|  3.29k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 2565|  3.29k|                    auto ta = typed_array_cast<double>(array_buffer);
 2566|  3.29k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (2566:25): [True: 2.95k, False: 339]
  ------------------
 2567|  2.95k|                    {
 2568|  10.1k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (2568:49): [True: 7.19k, False: 2.95k]
  ------------------
 2569|  7.19k|                        {
 2570|  7.19k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 2571|  7.19k|                        }
 2572|  2.95k|                    }
 2573|  3.29k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2573:25): [True: 3.29k, False: 0]
  |  Branch (2573:42): [True: 580, False: 2.71k]
  ------------------
 2574|    580|                    {
 2575|    580|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2575:29): [True: 3, False: 577]
  ------------------
 2576|      3|                        {
 2577|      3|                            ec = cbor_errc::bad_extents;
 2578|      3|                            more_ = false;
 2579|      3|                            return;
 2580|      3|                        }
 2581|    577|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2582|    577|                            typed_array_tags::float64, extents_, order_, alloc_);
 2583|    577|                        typed_array_stack_.push_back(iter);
 2584|    577|                        iter->next(visitor, *this, ec);
 2585|    577|                    }
 2586|  2.71k|                    else
 2587|  2.71k|                    {
 2588|  2.71k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 2589|  2.71k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 2590|  2.71k|                        typed_array_stack_.push_back(iter);
 2591|  2.71k|                        iter->next(visitor, *this, ec);
 2592|  2.71k|                    }
 2593|  3.28k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 2594|  3.28k|                    more_ = !cursor_mode_;
 2595|  3.28k|                    break;
 2596|  3.29k|                }
 2597|  25.9k|                default:
  ------------------
  |  Branch (2597:17): [True: 25.9k, False: 108k]
  ------------------
 2598|  25.9k|                {
 2599|  25.9k|                    auto bytes = read.view(ec);
 2600|  25.9k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  25.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 49, False: 25.8k]
  |  |  ------------------
  ------------------
 2601|     49|                    {
 2602|     49|                        more_ = false;
 2603|     49|                        return;
 2604|     49|                    }
 2605|  25.8k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 2606|  25.8k|                    more_ = !cursor_mode_;
 2607|  25.8k|                    break;
 2608|  25.9k|                }
 2609|   134k|            }
 2610|   134k|            other_tags_[item_tag] = false;
 2611|   134k|        }
 2612|  13.1M|        else
 2613|  13.1M|        {
 2614|  13.1M|            auto bytes = read.view(ec);
 2615|  13.1M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  13.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 587, False: 13.1M]
  |  |  ------------------
  ------------------
 2616|    587|            {
 2617|    587|                return;
 2618|    587|            }
 2619|  13.1M|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 2620|  13.1M|            more_ = !cursor_mode_;
 2621|  13.1M|        }
 2622|  13.2M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_source4viewERNS3_10error_codeE:
  209|  13.1M|        {
  210|  13.1M|            return source->read_byte_string_view(ec);
  211|  13.1M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_byte_string_viewERNS3_10error_codeE:
 1208|  13.1M|    {
 1209|  13.1M|        auto c = source_.peek();
 1210|  13.1M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  13.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 13.1M]
  |  |  ------------------
  ------------------
 1211|      0|        {
 1212|      0|            ec = cbor_errc::unexpected_eof;
 1213|      0|            more_ = false;
 1214|      0|            return byte_string_view();
 1215|      0|        }
 1216|  13.1M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1217|  13.1M|        uint8_t info = get_additional_information_value(c.value);
 1218|       |
 1219|  13.1M|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   49|  13.1M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 13.1M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1220|       |
 1221|  13.1M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1221:13): [True: 1.59k, False: 13.1M]
  ------------------
 1222|  1.59k|        {
 1223|  1.59k|            bytes_buffer_.clear();
 1224|  1.59k|            source_.ignore(1);
 1225|  1.59k|            iterate_string_chunks(bytes_buffer_, major_type, ec);
 1226|  1.59k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.59k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 121, False: 1.47k]
  |  |  ------------------
  ------------------
 1227|    121|            {
 1228|    121|                return byte_string_view();
 1229|    121|            }
 1230|  1.47k|            return byte_string_view(bytes_buffer_.data(), bytes_buffer_.size());
 1231|  1.59k|        }
 1232|       |
 1233|  13.1M|        std::size_t length = read_size(ec);
 1234|  13.1M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  13.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 97, False: 13.1M]
  |  |  ------------------
  ------------------
 1235|     97|        {
 1236|     97|            return byte_string_view();
 1237|     97|        }
 1238|  13.1M|        auto data = source_.read_span(length, bytes_buffer_);
 1239|  13.1M|        if (data.size() != length)
  ------------------
  |  Branch (1239:13): [True: 443, False: 13.1M]
  ------------------
 1240|    443|        {
 1241|    443|            ec = cbor_errc::unexpected_eof;
 1242|    443|            more_ = false;
 1243|    443|            return byte_string_view();
 1244|    443|        }
 1245|       |        
 1246|  13.1M|        byte_string_view bytes(data.data(), data.size());
 1247|  13.1M|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1247:13): [True: 6.68M, False: 6.48M]
  ------------------
 1248|  6.68M|            bytes.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1248:13): [True: 2.92M, False: 3.75M]
  ------------------
 1249|  2.92M|        {
 1250|  2.92M|            stringref_map_stack_.back().emplace_back(mapped_string(bytes, alloc_));
 1251|  2.92M|        }
 1252|  13.1M|        return bytes;
 1253|  13.1M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21iterate_string_chunksINS3_6vectorIhS5_EEEEvRT_NS0_6detail15cbor_major_typeERNS3_10error_codeE:
 1316|  1.65k|    {
 1317|  1.65k|        bool done = false;
 1318|   175k|        while (!done)
  ------------------
  |  Branch (1318:16): [True: 174k, False: 1.51k]
  ------------------
 1319|   174k|        {
 1320|   174k|            auto c = source_.peek();
 1321|   174k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   174k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 29, False: 174k]
  |  |  ------------------
  ------------------
 1322|     29|            {
 1323|     29|                ec = cbor_errc::unexpected_eof;
 1324|     29|                more_ = false;
 1325|     29|                return;
 1326|     29|            }
 1327|   174k|            if (c.value == 0xff)
  ------------------
  |  Branch (1327:17): [True: 1.51k, False: 172k]
  ------------------
 1328|  1.51k|            {
 1329|  1.51k|                done = true;
 1330|  1.51k|                source_.ignore(1);
 1331|  1.51k|                continue;
 1332|  1.51k|            }
 1333|       |
 1334|   172k|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1335|   172k|            if (major_type != type)
  ------------------
  |  Branch (1335:17): [True: 30, False: 172k]
  ------------------
 1336|     30|            {
 1337|     30|                ec = cbor_errc::illegal_chunked_string;
 1338|     30|                more_ = false;
 1339|     30|                return;
 1340|     30|            }
 1341|   172k|            uint8_t info = get_additional_information_value(c.value);
 1342|   172k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1342:17): [True: 8, False: 172k]
  ------------------
 1343|      8|            {
 1344|      8|                ec = cbor_errc::illegal_chunked_string;
 1345|      8|                more_ = false;
 1346|      8|                return;
 1347|      8|            }
 1348|       |
 1349|   172k|            std::size_t length = read_size(ec);
 1350|   172k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   172k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 26, False: 172k]
  |  |  ------------------
  ------------------
 1351|     26|            {
 1352|     26|                return;
 1353|     26|            }
 1354|   172k|            const std::size_t offset = v.size();
 1355|   172k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1355:17): [True: 54, False: 172k]
  ------------------
 1356|     54|            {
 1357|     54|                ec = cbor_errc::unexpected_eof;
 1358|     54|            }
 1359|   172k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   172k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 54, False: 172k]
  |  |  ------------------
  ------------------
 1360|     54|            {
 1361|     54|                return;
 1362|     54|            }
 1363|   172k|            if (type == jsoncons::cbor::detail::cbor_major_type::text_string)
  ------------------
  |  Branch (1363:17): [True: 0, False: 172k]
  ------------------
 1364|      0|            {
 1365|       |                // RFC 8949 3.2.3: each chunk of an indefinite-length text
 1366|       |                // string must itself be well-formed UTF-8, so a code point
 1367|       |                // may not be split across chunks.
 1368|      0|                auto result = unicode_traits::validate(
 1369|      0|                    reinterpret_cast<const char*>(v.data()) + offset, length);
 1370|      0|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (1370:21): [True: 0, False: 0]
  ------------------
 1371|      0|                {
 1372|      0|                    ec = cbor_errc::invalid_utf8_text_string;
 1373|      0|                    more_ = false;
 1374|      0|                    return;
 1375|      0|                }
 1376|      0|            }
 1377|   172k|        }
 1378|  1.65k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_sizeERNS3_10error_codeE:
 1256|  31.5M|    {
 1257|  31.5M|        uint64_t u = read_uint64(ec);
 1258|  31.5M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  31.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 602, False: 31.5M]
  |  |  ------------------
  ------------------
 1259|    602|        {
 1260|    602|            return 0;
 1261|    602|        }
 1262|  31.5M|        std::size_t len = static_cast<std::size_t>(u);
 1263|  31.5M|        if (len != u)
  ------------------
  |  Branch (1263:13): [True: 0, False: 31.5M]
  ------------------
 1264|      0|        {
 1265|      0|            ec = cbor_errc::number_too_large;
 1266|      0|            more_ = false;
 1267|      0|        }
 1268|  31.5M|        return len;
 1269|  31.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2EOS9_:
  120|  7.01M|        mapped_string(mapped_string&&) = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS_16byte_string_viewERKS7_:
  109|  2.92M|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes.begin(),bytes.end(),alloc)
  110|  2.92M|        {
  111|  2.92M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  204|  67.8k|        {
  205|  67.8k|            source->read_byte_string(cont,ec);
  206|  67.8k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringERNS3_6vectorIhS5_EERNS3_10error_codeE:
 1272|   200k|    {
 1273|   200k|        v.clear();
 1274|   200k|        auto c = source_.peek();
 1275|   200k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   200k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 200k]
  |  |  ------------------
  ------------------
 1276|      0|        {
 1277|      0|            ec = cbor_errc::unexpected_eof;
 1278|      0|            return;
 1279|      0|        }
 1280|   200k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1281|   200k|        uint8_t info = get_additional_information_value(c.value);
 1282|       |
 1283|   200k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::byte_string);
  ------------------
  |  |   49|   200k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 200k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1284|       |
 1285|   200k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1285:13): [True: 63, False: 200k]
  ------------------
 1286|     63|        {
 1287|     63|            source_.ignore(1);
 1288|     63|            iterate_string_chunks(v, major_type, ec);
 1289|     63|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     63|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 26, False: 37]
  |  |  ------------------
  ------------------
 1290|     26|            {
 1291|     26|                return;
 1292|     26|            }
 1293|     63|        }
 1294|   200k|        else 
 1295|   200k|        {
 1296|   200k|            std::size_t length = read_size(ec);
 1297|   200k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   200k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 9, False: 200k]
  |  |  ------------------
  ------------------
 1298|      9|            {
 1299|      9|                return;
 1300|      9|            }
 1301|   200k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1301:17): [True: 108, False: 200k]
  ------------------
 1302|    108|            {
 1303|    108|                ec = cbor_errc::unexpected_eof;
 1304|    108|                return;
 1305|    108|            }
 1306|   200k|            if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1306:17): [True: 67.7k, False: 132k]
  ------------------
 1307|  67.7k|                v.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1307:17): [True: 5.63k, False: 62.1k]
  ------------------
 1308|  5.63k|            {
 1309|  5.63k|                stringref_map_stack_.back().emplace_back(mapped_string(v, alloc_));
 1310|  5.63k|            }
 1311|   200k|        }
 1312|   200k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_6vectorIhS5_EERKS7_:
  103|  5.63k|            : type(jsoncons::cbor::detail::cbor_major_type::byte_string), str(alloc), bytes(bytes,alloc)
  104|  5.63k|        {
  105|  5.63k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_text_string_viewERNS3_10error_codeE:
 1119|  2.65M|    {
 1120|  2.65M|        auto c = source_.peek();
 1121|  2.65M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  2.65M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.65M]
  |  |  ------------------
  ------------------
 1122|      0|        {
 1123|      0|            ec = cbor_errc::unexpected_eof;
 1124|      0|            more_ = false;
 1125|      0|            return string_view_type();
 1126|      0|        }
 1127|  2.65M|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1128|  2.65M|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::text_string);
  ------------------
  |  |   49|  2.65M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.65M]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1129|  2.65M|        uint8_t info = get_additional_information_value(c.value);
 1130|       |
 1131|  2.65M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1131:13): [True: 1.46k, False: 2.65M]
  ------------------
 1132|  1.46k|        {
 1133|  1.46k|            text_buffer_.clear();
 1134|  1.46k|            source_.ignore(1);
 1135|  1.46k|            iterate_string_chunks(text_buffer_, major_type, ec);
 1136|  1.46k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.46k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 202, False: 1.26k]
  |  |  ------------------
  ------------------
 1137|    202|            {
 1138|    202|                return string_view_type();
 1139|    202|            }
 1140|  1.26k|            return string_view_type(text_buffer_.data(), text_buffer_.size());
 1141|  1.46k|        }
 1142|       |
 1143|  2.65M|        std::size_t length = read_size(ec);
 1144|  2.65M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.65M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 99, False: 2.65M]
  |  |  ------------------
  ------------------
 1145|     99|        {
 1146|     99|            return string_view_type();
 1147|     99|        }
 1148|  2.65M|        auto data = source_.read_span(length, text_buffer_);
 1149|  2.65M|        if (data.size() != length)
  ------------------
  |  Branch (1149:13): [True: 274, False: 2.65M]
  ------------------
 1150|    274|        {
 1151|    274|            ec = cbor_errc::unexpected_eof;
 1152|    274|            more_ = false;
 1153|    274|            return string_view_type();
 1154|    274|        }
 1155|  2.65M|        string_view_type sv(reinterpret_cast<const char_type*>(data.data()), data.size());
 1156|  2.65M|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1156:13): [True: 1.33M, False: 1.32M]
  ------------------
 1157|  1.33M|            sv.length() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1157:13): [True: 81.2k, False: 1.24M]
  ------------------
 1158|  81.2k|        {
 1159|  81.2k|            stringref_map_stack_.back().emplace_back(mapped_string(sv,alloc_));
 1160|  81.2k|        }
 1161|  2.65M|        return sv;
 1162|  2.65M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21iterate_string_chunksINS3_12basic_stringIcNS3_11char_traitsIcEES7_EEEEvRT_NS0_6detail15cbor_major_typeERNS3_10error_codeE:
 1316|  1.46k|    {
 1317|  1.46k|        bool done = false;
 1318|   275k|        while (!done)
  ------------------
  |  Branch (1318:16): [True: 273k, False: 1.26k]
  ------------------
 1319|   273k|        {
 1320|   273k|            auto c = source_.peek();
 1321|   273k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   273k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 18, False: 273k]
  |  |  ------------------
  ------------------
 1322|     18|            {
 1323|     18|                ec = cbor_errc::unexpected_eof;
 1324|     18|                more_ = false;
 1325|     18|                return;
 1326|     18|            }
 1327|   273k|            if (c.value == 0xff)
  ------------------
  |  Branch (1327:17): [True: 1.26k, False: 272k]
  ------------------
 1328|  1.26k|            {
 1329|  1.26k|                done = true;
 1330|  1.26k|                source_.ignore(1);
 1331|  1.26k|                continue;
 1332|  1.26k|            }
 1333|       |
 1334|   272k|            jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(c.value);
 1335|   272k|            if (major_type != type)
  ------------------
  |  Branch (1335:17): [True: 31, False: 272k]
  ------------------
 1336|     31|            {
 1337|     31|                ec = cbor_errc::illegal_chunked_string;
 1338|     31|                more_ = false;
 1339|     31|                return;
 1340|     31|            }
 1341|   272k|            uint8_t info = get_additional_information_value(c.value);
 1342|   272k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1342:17): [True: 19, False: 272k]
  ------------------
 1343|     19|            {
 1344|     19|                ec = cbor_errc::illegal_chunked_string;
 1345|     19|                more_ = false;
 1346|     19|                return;
 1347|     19|            }
 1348|       |
 1349|   272k|            std::size_t length = read_size(ec);
 1350|   272k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   272k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 10, False: 272k]
  |  |  ------------------
  ------------------
 1351|     10|            {
 1352|     10|                return;
 1353|     10|            }
 1354|   272k|            const std::size_t offset = v.size();
 1355|   272k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1355:17): [True: 111, False: 272k]
  ------------------
 1356|    111|            {
 1357|    111|                ec = cbor_errc::unexpected_eof;
 1358|    111|            }
 1359|   272k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   272k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 111, False: 272k]
  |  |  ------------------
  ------------------
 1360|    111|            {
 1361|    111|                return;
 1362|    111|            }
 1363|   272k|            if (type == jsoncons::cbor::detail::cbor_major_type::text_string)
  ------------------
  |  Branch (1363:17): [True: 272k, False: 0]
  ------------------
 1364|   272k|            {
 1365|       |                // RFC 8949 3.2.3: each chunk of an indefinite-length text
 1366|       |                // string must itself be well-formed UTF-8, so a code point
 1367|       |                // may not be split across chunks.
 1368|   272k|                auto result = unicode_traits::validate(
 1369|   272k|                    reinterpret_cast<const char*>(v.data()) + offset, length);
 1370|   272k|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (1370:21): [True: 13, False: 272k]
  ------------------
 1371|     13|                {
 1372|     13|                    ec = cbor_errc::invalid_utf8_text_string;
 1373|     13|                    more_ = false;
 1374|     13|                    return;
 1375|     13|                }
 1376|   272k|            }
 1377|   272k|        }
 1378|  1.46k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKS7_:
   92|  81.2k|            : type(jsoncons::cbor::detail::cbor_major_type::text_string), str(sv.data(), sv.size(), alloc), bytes(alloc)
   93|  81.2k|        {
   94|  81.2k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11read_doubleERNS3_10error_codeE:
 1566|  17.9k|    {
 1567|  17.9k|        double val = 0;
 1568|       |
 1569|  17.9k|        uint8_t b;
 1570|  17.9k|        if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1570:13): [True: 0, False: 17.9k]
  ------------------
 1571|      0|        {
 1572|      0|            ec = cbor_errc::unexpected_eof;
 1573|      0|            more_ = false;
 1574|      0|            return 0;
 1575|      0|        }
 1576|  17.9k|        uint8_t info = get_additional_information_value(b);
 1577|  17.9k|        switch (info)
 1578|  17.9k|        {
 1579|  14.1k|        case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (1579:9): [True: 14.1k, False: 3.84k]
  ------------------
 1580|  14.1k|            {
 1581|  14.1k|                uint8_t buf[sizeof(float)];
 1582|  14.1k|                if (source_.read(buf, sizeof(float)) !=sizeof(float)) 
  ------------------
  |  Branch (1582:21): [True: 33, False: 14.0k]
  ------------------
 1583|     33|                {
 1584|     33|                    ec = cbor_errc::unexpected_eof;
 1585|     33|                    more_ = false;
 1586|     33|                    return 0;
 1587|     33|                }
 1588|  14.0k|                val = binary::big_to_native<float>(buf, sizeof(buf));
 1589|  14.0k|                break;
 1590|  14.1k|            }
 1591|       |
 1592|  3.84k|        case 0x1b: //  Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (1592:9): [True: 3.84k, False: 14.1k]
  ------------------
 1593|  3.84k|            {
 1594|  3.84k|                uint8_t buf[sizeof(double)];
 1595|  3.84k|                if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (1595:21): [True: 41, False: 3.80k]
  ------------------
 1596|     41|                {
 1597|     41|                    ec = cbor_errc::unexpected_eof;
 1598|     41|                    more_ = false;
 1599|     41|                    return 0;
 1600|     41|                }
 1601|  3.80k|                val = binary::big_to_native<double>(buf, sizeof(buf));
 1602|  3.80k|                break;
 1603|  3.84k|            }
 1604|      0|            default:
  ------------------
  |  Branch (1604:13): [True: 0, False: 17.9k]
  ------------------
 1605|      0|                break;
 1606|  17.9k|        }
 1607|       |        
 1608|  17.8k|        return val;
 1609|  17.9k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_decimal_fractionERNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 1612|   827k|    {
 1613|   827k|        std::size_t size = read_size(ec);
 1614|   827k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   827k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 65, False: 827k]
  |  |  ------------------
  ------------------
 1615|     65|        {
 1616|     65|            return;
 1617|     65|        }
 1618|   827k|        if (size != 2)
  ------------------
  |  Branch (1618:13): [True: 32, False: 827k]
  ------------------
 1619|     32|        {
 1620|     32|            ec = cbor_errc::invalid_decimal_fraction;
 1621|     32|            more_ = false;
 1622|     32|            return;
 1623|     32|        }
 1624|       |
 1625|   827k|        auto c = source_.peek();
 1626|   827k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   827k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 13, False: 827k]
  |  |  ------------------
  ------------------
 1627|     13|        {
 1628|     13|            ec = cbor_errc::unexpected_eof;
 1629|     13|            more_ = false;
 1630|     13|            return;
 1631|     13|        }
 1632|   827k|        int32_t exponent = 0;
 1633|   827k|        switch (get_major_type(c.value))
 1634|   827k|        {
 1635|  46.4k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1635:13): [True: 46.4k, False: 780k]
  ------------------
 1636|  46.4k|            {
 1637|  46.4k|                auto u = read_uint64(ec);
 1638|  46.4k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  46.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 46.4k]
  |  |  ------------------
  ------------------
 1639|      2|                {
 1640|      2|                    return;
 1641|      2|                }
 1642|  46.4k|                if (u > static_cast<uint64_t>((std::numeric_limits<int>::max)()))
  ------------------
  |  Branch (1642:21): [True: 11, False: 46.4k]
  ------------------
 1643|     11|                {
 1644|     11|                    ec = cbor_errc::invalid_decimal_fraction;
 1645|     11|                    more_ = false;
 1646|     11|                    return;
 1647|     11|                }
 1648|  46.4k|                exponent = static_cast<int>(u);
 1649|  46.4k|                break;
 1650|  46.4k|            }
 1651|   780k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1651:13): [True: 780k, False: 46.4k]
  ------------------
 1652|   780k|            {
 1653|   780k|                auto u = read_int64(ec);
 1654|   780k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   780k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 780k]
  |  |  ------------------
  ------------------
 1655|      1|                {
 1656|      1|                    return;
 1657|      1|                }
 1658|   780k|                if (u < static_cast<int64_t>((std::numeric_limits<int>::min)()) || u > static_cast<int64_t>((std::numeric_limits<int>::max)()))
  ------------------
  |  Branch (1658:21): [True: 51, False: 780k]
  |  Branch (1658:84): [True: 0, False: 780k]
  ------------------
 1659|     51|                {
 1660|     51|                    ec = cbor_errc::invalid_decimal_fraction;
 1661|     51|                    more_ = false;
 1662|     51|                    return;
 1663|     51|                }
 1664|   780k|                exponent = static_cast<int>(u);
 1665|   780k|                break;
 1666|   780k|            }
 1667|     13|            default:
  ------------------
  |  Branch (1667:13): [True: 13, False: 827k]
  ------------------
 1668|     13|            {
 1669|     13|                ec = cbor_errc::invalid_decimal_fraction;
 1670|     13|                more_ = false;
 1671|     13|                return;
 1672|   780k|            }
 1673|   827k|        }
 1674|       |
 1675|   827k|        string_type str(alloc_);
 1676|       |
 1677|   827k|        c = source_.peek();
 1678|   827k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   827k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 27, False: 827k]
  |  |  ------------------
  ------------------
 1679|     27|        {
 1680|     27|            ec = cbor_errc::unexpected_eof;
 1681|     27|            more_ = false;
 1682|     27|            return;
 1683|     27|        }
 1684|       |
 1685|   827k|        switch (get_major_type(c.value))
 1686|   827k|        {
 1687|  7.00k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1687:13): [True: 7.00k, False: 820k]
  ------------------
 1688|  7.00k|            {
 1689|  7.00k|                uint64_t val = read_uint64(ec);
 1690|  7.00k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  7.00k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 52, False: 6.94k]
  |  |  ------------------
  ------------------
 1691|     52|                {
 1692|     52|                    return;
 1693|     52|                }
 1694|  6.94k|                jsoncons::from_integer(val, str);
 1695|  6.94k|                break;
 1696|  7.00k|            }
 1697|   779k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1697:13): [True: 779k, False: 47.8k]
  ------------------
 1698|   779k|            {
 1699|   779k|                int64_t val = read_int64(ec);
 1700|   779k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   779k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 779k]
  |  |  ------------------
  ------------------
 1701|      1|                {
 1702|      1|                    return;
 1703|      1|                }
 1704|   779k|                jsoncons::from_integer(val, str);
 1705|   779k|                break;
 1706|   779k|            }
 1707|  40.8k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1707:13): [True: 40.8k, False: 786k]
  ------------------
 1708|  40.8k|            {
 1709|  40.8k|                uint8_t b;
 1710|  40.8k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1710:21): [True: 0, False: 40.8k]
  ------------------
 1711|      0|                {
 1712|      0|                    ec = cbor_errc::unexpected_eof;
 1713|      0|                    more_ = false;
 1714|      0|                    return;
 1715|      0|                }
 1716|  40.8k|                uint8_t tag = get_additional_information_value(b);
 1717|  40.8k|                c = source_.peek();
 1718|  40.8k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  40.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5, False: 40.8k]
  |  |  ------------------
  ------------------
 1719|      5|                {
 1720|      5|                    ec = cbor_errc::unexpected_eof;
 1721|      5|                    more_ = false;
 1722|      5|                    return;
 1723|      5|                }
 1724|       |
 1725|  40.8k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1725:21): [True: 40.8k, False: 12]
  ------------------
 1726|  40.8k|                {
 1727|  40.8k|                    bytes_buffer_.clear();
 1728|  40.8k|                    read_byte_string(bytes_buffer_, ec);
 1729|  40.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  40.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 17, False: 40.8k]
  |  |  ------------------
  ------------------
 1730|     17|                    {
 1731|     17|                        more_ = false;
 1732|     17|                        return;
 1733|     17|                    }
 1734|  40.8k|                    if (tag == 2)
  ------------------
  |  Branch (1734:25): [True: 645, False: 40.1k]
  ------------------
 1735|    645|                    {
 1736|    645|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1737|    645|                        n.write_string(str);
 1738|    645|                    }
 1739|  40.1k|                    else if (tag == 3)
  ------------------
  |  Branch (1739:30): [True: 40.1k, False: 7]
  ------------------
 1740|  40.1k|                    {
 1741|  40.1k|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1742|  40.1k|                        n = -1 - n;
 1743|  40.1k|                        n.write_string(str);
 1744|  40.1k|                    }
 1745|  40.8k|                }
 1746|  40.8k|                break;
 1747|  40.8k|            }
 1748|  40.8k|            default:
  ------------------
  |  Branch (1748:13): [True: 8, False: 827k]
  ------------------
 1749|      8|            {
 1750|      8|                ec = cbor_errc::invalid_decimal_fraction;
 1751|      8|                more_ = false;
 1752|      8|                return;
 1753|  40.8k|            }
 1754|   827k|        }
 1755|       |
 1756|   827k|        if (str.size() > static_cast<std::size_t>((std::numeric_limits<int>::max)()))
  ------------------
  |  Branch (1756:13): [True: 0, False: 827k]
  ------------------
 1757|      0|        {
 1758|      0|            ec = cbor_errc::invalid_decimal_fraction;
 1759|      0|            more_ = false;
 1760|      0|            return;
 1761|      0|        }
 1762|   827k|        int length = static_cast<int>(str.size());
 1763|   827k|        if (length > 0)
  ------------------
  |  Branch (1763:13): [True: 827k, False: 19]
  ------------------
 1764|   827k|        {
 1765|   827k|            if (str[0] == '-')
  ------------------
  |  Branch (1765:17): [True: 819k, False: 7.67k]
  ------------------
 1766|   819k|            {
 1767|   819k|                result.push_back('-');
 1768|   819k|                jsoncons::prettify_string(str.data()+1, length-1, exponent, -4, 17, result);
 1769|   819k|            }
 1770|  7.67k|            else
 1771|  7.67k|            {
 1772|  7.67k|                jsoncons::prettify_string(str.data(), length, exponent, -4, 17, result);
 1773|  7.67k|            }
 1774|   827k|        }
 1775|     19|        else
 1776|     19|        {
 1777|     19|            ec = cbor_errc::invalid_decimal_fraction;
 1778|     19|            more_ = false;
 1779|     19|            return;
 1780|     19|        }
 1781|   827k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13read_bigfloatERNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 1784|   110k|    {
 1785|   110k|        std::size_t size = read_size(ec);
 1786|   110k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   110k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 66, False: 110k]
  |  |  ------------------
  ------------------
 1787|     66|        {
 1788|     66|            return;
 1789|     66|        }
 1790|   110k|        if (size != 2)
  ------------------
  |  Branch (1790:13): [True: 15, False: 110k]
  ------------------
 1791|     15|        {
 1792|     15|            ec = cbor_errc::invalid_bigfloat;
 1793|     15|            more_ = false;
 1794|     15|            return;
 1795|     15|        }
 1796|       |
 1797|   110k|        auto c = source_.peek();
 1798|   110k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   110k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 9, False: 110k]
  |  |  ------------------
  ------------------
 1799|      9|        {
 1800|      9|            ec = cbor_errc::unexpected_eof;
 1801|      9|            more_ = false;
 1802|      9|            return;
 1803|      9|        }
 1804|   110k|        int64_t exponent = 0;
 1805|   110k|        switch (get_major_type(c.value))
 1806|   110k|        {
 1807|  97.2k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1807:13): [True: 97.2k, False: 13.4k]
  ------------------
 1808|  97.2k|            {
 1809|  97.2k|                exponent = read_uint64(ec);
 1810|  97.2k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  97.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 97.2k]
  |  |  ------------------
  ------------------
 1811|      1|                {
 1812|      1|                    return;
 1813|      1|                }
 1814|  97.2k|                break;
 1815|  97.2k|            }
 1816|  97.2k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1816:13): [True: 13.4k, False: 97.2k]
  ------------------
 1817|  13.4k|            {
 1818|  13.4k|                exponent = read_int64(ec);
 1819|  13.4k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  13.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 13.4k]
  |  |  ------------------
  ------------------
 1820|      2|                {
 1821|      2|                    return;
 1822|      2|                }
 1823|  13.4k|                break;
 1824|  13.4k|            }
 1825|  13.4k|            default:
  ------------------
  |  Branch (1825:13): [True: 15, False: 110k]
  ------------------
 1826|     15|            {
 1827|     15|                ec = cbor_errc::invalid_bigfloat;
 1828|     15|                more_ = false;
 1829|     15|                return;
 1830|  13.4k|            }
 1831|   110k|        }
 1832|       |
 1833|   110k|        c = source_.peek();
 1834|   110k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   110k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 19, False: 110k]
  |  |  ------------------
  ------------------
 1835|     19|        {
 1836|     19|            ec = cbor_errc::unexpected_eof;
 1837|     19|            more_ = false;
 1838|     19|            return;
 1839|     19|        }
 1840|   110k|        switch (get_major_type(c.value))
 1841|   110k|        {
 1842|  3.04k|            case jsoncons::cbor::detail::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1842:13): [True: 3.04k, False: 107k]
  ------------------
 1843|  3.04k|            {
 1844|  3.04k|                uint64_t val = read_uint64(ec);
 1845|  3.04k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  3.04k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 60, False: 2.98k]
  |  |  ------------------
  ------------------
 1846|     60|                {
 1847|     60|                    return;
 1848|     60|                }
 1849|  2.98k|                str.push_back('0');
 1850|  2.98k|                str.push_back('x');
 1851|  2.98k|                jsoncons::integer_to_hex(val, str);
 1852|  2.98k|                break;
 1853|  3.04k|            }
 1854|  2.99k|            case jsoncons::cbor::detail::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1854:13): [True: 2.99k, False: 107k]
  ------------------
 1855|  2.99k|            {
 1856|  2.99k|                int64_t val = read_int64(ec);
 1857|  2.99k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  2.99k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 2.99k]
  |  |  ------------------
  ------------------
 1858|      1|                {
 1859|      1|                    return;
 1860|      1|                }
 1861|  2.99k|                str.push_back('-');
 1862|  2.99k|                str.push_back('0');
 1863|  2.99k|                str.push_back('x');
 1864|  2.99k|                jsoncons::integer_to_hex(static_cast<uint64_t>(-1 - val) + 1u, str);
 1865|  2.99k|                break;
 1866|  2.99k|            }
 1867|   104k|            case jsoncons::cbor::detail::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1867:13): [True: 104k, False: 6.04k]
  ------------------
 1868|   104k|            {
 1869|   104k|                uint8_t b;
 1870|   104k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (1870:21): [True: 0, False: 104k]
  ------------------
 1871|      0|                {
 1872|      0|                    ec = cbor_errc::unexpected_eof;
 1873|      0|                    more_ = false;
 1874|      0|                    return;
 1875|      0|                }
 1876|   104k|                uint8_t tag = get_additional_information_value(b);
 1877|       |
 1878|   104k|                c = source_.peek();
 1879|   104k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   104k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 10, False: 104k]
  |  |  ------------------
  ------------------
 1880|     10|                {
 1881|     10|                    ec = cbor_errc::unexpected_eof;
 1882|     10|                    more_ = false;
 1883|     10|                    return;
 1884|     10|                }
 1885|       |
 1886|   104k|                if (get_major_type(c.value) == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (1886:21): [True: 91.5k, False: 13.0k]
  ------------------
 1887|  91.5k|                {
 1888|  91.5k|                    bytes_buffer_.clear(); 
 1889|  91.5k|                    read_byte_string(bytes_buffer_, ec);
 1890|  91.5k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  91.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 18, False: 91.4k]
  |  |  ------------------
  ------------------
 1891|     18|                    {
 1892|     18|                        more_ = false;
 1893|     18|                        return;
 1894|     18|                    }
 1895|  91.4k|                    if (tag == 2)
  ------------------
  |  Branch (1895:25): [True: 89.8k, False: 1.60k]
  ------------------
 1896|  89.8k|                    {
 1897|  89.8k|                        str.push_back('0');
 1898|  89.8k|                        str.push_back('x');
 1899|  89.8k|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1900|  89.8k|                        n.write_string_hex(str);
 1901|  89.8k|                    }
 1902|  1.60k|                    else if (tag == 3)
  ------------------
  |  Branch (1902:30): [True: 1.03k, False: 564]
  ------------------
 1903|  1.03k|                    {
 1904|  1.03k|                        str.push_back('-');
 1905|  1.03k|                        str.push_back('0');
 1906|  1.03k|                        bigint n = bigint::from_bytes_be(1, bytes_buffer_.data(), bytes_buffer_.size());
 1907|  1.03k|                        n = -1 - n;
 1908|  1.03k|                        n.write_string_hex(str);
 1909|  1.03k|                        str[2] = 'x'; // overwrite minus
 1910|  1.03k|                    }
 1911|  91.4k|                }
 1912|   104k|                break;
 1913|   104k|            }
 1914|   104k|            default:
  ------------------
  |  Branch (1914:13): [True: 7, False: 110k]
  ------------------
 1915|      7|            {
 1916|      7|                ec = cbor_errc::invalid_bigfloat;
 1917|      7|                more_ = false;
 1918|      7|                return;
 1919|   104k|            }
 1920|   110k|        }
 1921|       |
 1922|   110k|        str.push_back('p');
 1923|   110k|        if (exponent >=0)
  ------------------
  |  Branch (1923:13): [True: 97.9k, False: 12.5k]
  ------------------
 1924|  97.9k|        {
 1925|  97.9k|            jsoncons::integer_to_hex(static_cast<uint64_t>(exponent), str);
 1926|  97.9k|        }
 1927|  12.5k|        else
 1928|  12.5k|        {
 1929|  12.5k|            str.push_back('-');
 1930|  12.5k|            jsoncons::integer_to_hex(static_cast<uint64_t>(-1 - exponent) + 1u, str);
 1931|  12.5k|        }
 1932|   110k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE19read_mdarray_headerERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2625|  12.1k|    {
 2626|  12.1k|        uint8_t b;
 2627|  12.1k|        if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2627:13): [True: 0, False: 12.1k]
  ------------------
 2628|      0|        {
 2629|      0|            ec = cbor_errc::unexpected_eof;
 2630|      0|            more_ = false;
 2631|      0|            return;
 2632|      0|        }
 2633|  12.1k|        jsoncons::cbor::detail::cbor_major_type major_type = get_major_type(b);
 2634|  12.1k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::detail::cbor_major_type::array);
  ------------------
  |  |   49|  12.1k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 12.1k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 2635|  12.1k|        uint8_t info = get_additional_information_value(b);
 2636|       |       
 2637|  12.1k|        read_extents(ec);   
 2638|  12.1k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  12.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 153, False: 11.9k]
  |  |  ------------------
  ------------------
 2639|    153|        {
 2640|    153|            return;
 2641|    153|        }
 2642|       |
 2643|  11.9k|        read_tags(ec);
 2644|  11.9k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  11.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5, False: 11.9k]
  |  |  ------------------
  ------------------
 2645|      5|        {
 2646|      5|            return;
 2647|      5|        }
 2648|  11.9k|        auto c = source_.peek();
 2649|  11.9k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|  11.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 11.9k]
  |  |  ------------------
  ------------------
 2650|      0|        {
 2651|      0|            ec = cbor_errc::unexpected_eof;
 2652|      0|            more_ = false;
 2653|      0|            return;
 2654|      0|        }
 2655|  11.9k|        major_type = get_major_type(c.value);
 2656|  11.9k|        info = get_additional_information_value(c.value);
 2657|  11.9k|        state_stack_.emplace_back(parse_mode::multi_dim, 0);
 2658|  11.9k|        ++state_stack_.back().index;
 2659|       |
 2660|  11.9k|        if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::row_major) 
  ------------------
  |  Branch (2660:13): [True: 4.01k, False: 7.95k]
  |  Branch (2660:77): [True: 3.98k, False: 34]
  ------------------
 2661|  3.98k|        {
 2662|  3.98k|            begin_classical_array_storage(info, ec);
 2663|  3.98k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  3.98k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3, False: 3.98k]
  |  |  ------------------
  ------------------
 2664|      3|            {
 2665|      3|                return;
 2666|      3|            }
 2667|  3.98k|            auto iter = std::make_shared<cbor_mdarray_row_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2668|  3.98k|            typed_array_stack_.push_back(iter);
 2669|  3.98k|            if (!iter->done())
  ------------------
  |  Branch (2669:17): [True: 3.98k, False: 0]
  ------------------
 2670|  3.98k|            {
 2671|  3.98k|                iter->next(visitor, *this, ec);
 2672|  3.98k|            }
 2673|  3.98k|        }
 2674|  7.98k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::array && order_ == mdarray_order::column_major) 
  ------------------
  |  Branch (2674:18): [True: 34, False: 7.95k]
  |  Branch (2674:82): [True: 34, False: 0]
  ------------------
 2675|     34|        {
 2676|     34|            begin_classical_array_storage(info, ec);
 2677|     34|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     34|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 34]
  |  |  ------------------
  ------------------
 2678|      0|            {
 2679|      0|                return;
 2680|      0|            }
 2681|     34|            auto iter = std::make_shared<cbor_mdarray_column_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, alloc_);
 2682|     34|            typed_array_stack_.push_back(iter);
 2683|     34|            if (!iter->done())
  ------------------
  |  Branch (2683:17): [True: 34, False: 0]
  ------------------
 2684|     34|            {
 2685|     34|                iter->next(visitor, *this, ec);
 2686|     34|            }
 2687|     34|        }
 2688|  7.95k|        else if (major_type == jsoncons::cbor::detail::cbor_major_type::byte_string)
  ------------------
  |  Branch (2688:18): [True: 7.91k, False: 40]
  ------------------
 2689|  7.91k|        {
 2690|  7.91k|            std::size_t typed_array_count = typed_array_stack_.size();
 2691|  7.91k|            read_byte_string_from_source read(this);
 2692|  7.91k|            read_byte_string(read, visitor, ec);
 2693|  7.91k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  7.91k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 36, False: 7.87k]
  |  |  ------------------
  ------------------
 2694|     36|            {
 2695|     36|                return;
 2696|     36|            }
 2697|  7.87k|            if (typed_array_stack_.size() == typed_array_count)
  ------------------
  |  Branch (2697:17): [True: 13, False: 7.86k]
  ------------------
 2698|     13|            {
 2699|       |                // Byte string storage must be a typed array
 2700|     13|                ec = cbor_errc::bad_mdarray;
 2701|     13|                return;
 2702|     13|            }
 2703|  7.87k|        }
 2704|     40|        else
 2705|     40|        {
 2706|     40|            ec = cbor_errc::bad_mdarray;
 2707|     40|            return;
 2708|     40|        }
 2709|       |        // cursor case
 2710|  11.9k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12read_extentsERNS3_10error_codeE:
 2713|  12.1k|    {
 2714|  12.1k|        extents_.clear();
 2715|       |
 2716|  12.1k|        auto b = source_.peek();
 2717|  12.1k|        if (JSONCONS_UNLIKELY(b.eof))
  ------------------
  |  |   78|  12.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 6, False: 12.1k]
  |  |  ------------------
  ------------------
 2718|      6|        {
 2719|      6|            ec = cbor_errc::unexpected_eof;
 2720|      6|            more_ = false;
 2721|      6|            return;
 2722|      6|        }
 2723|  12.1k|        if (get_major_type(b.value) != jsoncons::cbor::detail::cbor_major_type::array)
  ------------------
  |  Branch (2723:13): [True: 31, False: 12.0k]
  ------------------
 2724|     31|        {
 2725|     31|            ec = cbor_errc::bad_extents;
 2726|     31|            more_ = false;
 2727|     31|            return;
 2728|     31|        }
 2729|  12.0k|        uint8_t info = get_additional_information_value(b.value);
 2730|       |
 2731|  12.0k|        switch (info)
 2732|  12.0k|        {
 2733|     47|            case jsoncons::cbor::detail::additional_info::indefinite_length:
  ------------------
  |  Branch (2733:13): [True: 47, False: 12.0k]
  ------------------
 2734|     47|            {
 2735|     47|                source_.ignore(1);
 2736|     47|                bool done = false;
 2737|   357k|                while (!done)
  ------------------
  |  Branch (2737:24): [True: 357k, False: 29]
  ------------------
 2738|   357k|                {
 2739|   357k|                    auto c = source_.peek();
 2740|   357k|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   78|   357k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 16, False: 356k]
  |  |  ------------------
  ------------------
 2741|     16|                    {
 2742|     16|                        ec = cbor_errc::unexpected_eof;
 2743|     16|                        more_ = false;
 2744|     16|                        return;
 2745|     16|                    }
 2746|   356k|                    if (c.value == 0xff)
  ------------------
  |  Branch (2746:25): [True: 29, False: 356k]
  ------------------
 2747|     29|                    {
 2748|     29|                        source_.ignore(1);
 2749|     29|                        done = true;
 2750|     29|                    }
 2751|   356k|                    else
 2752|   356k|                    {
 2753|   356k|                        std::size_t extent = read_size(ec);
 2754|   356k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   356k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 356k]
  |  |  ------------------
  ------------------
 2755|      2|                        {
 2756|      2|                            more_ = false;
 2757|      2|                            return;
 2758|      2|                        }
 2759|   356k|                        extents_.push_back(extent);
 2760|   356k|                    }
 2761|   356k|                }
 2762|     29|                break;
 2763|     47|            }
 2764|  12.0k|            default:
  ------------------
  |  Branch (2764:13): [True: 12.0k, False: 47]
  ------------------
 2765|  12.0k|            {
 2766|  12.0k|                std::size_t size = read_size(ec);
 2767|  12.0k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  12.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 24, False: 12.0k]
  |  |  ------------------
  ------------------
 2768|     24|                {
 2769|     24|                    more_ = false;
 2770|     24|                    return;
 2771|     24|                }
 2772|  44.0k|                for (std::size_t i = 0; more_ && i < size; ++i)
  ------------------
  |  Branch (2772:41): [True: 44.0k, False: 0]
  |  Branch (2772:50): [True: 32.0k, False: 11.9k]
  ------------------
 2773|  32.0k|                {
 2774|  32.0k|                    std::size_t extent = read_size(ec);
 2775|  32.0k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  32.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 34, False: 32.0k]
  |  |  ------------------
  ------------------
 2776|     34|                    {
 2777|     34|                        more_ = false;
 2778|     34|                        return;
 2779|     34|                    }
 2780|  32.0k|                    extents_.push_back(extent);
 2781|  32.0k|                }
 2782|  11.9k|                break;
 2783|  12.0k|            }
 2784|  12.0k|        }
 2785|  12.0k|        auto r = calculate_mdarray_size(extents_);
 2786|  12.0k|        if (!r || *r == 0)
  ------------------
  |  Branch (2786:13): [True: 36, False: 11.9k]
  |  Branch (2786:19): [True: 4, False: 11.9k]
  ------------------
 2787|     40|        {
 2788|     40|            ec = cbor_errc::bad_extents;
 2789|     40|            more_ = false;
 2790|     40|            return;
 2791|     40|        }
 2792|  11.9k|        mdarray_size_ = *r;
 2793|  11.9k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE29begin_classical_array_storageEhRNS3_10error_codeE:
  997|  4.01k|    {
  998|  4.01k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|  4.01k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 4.01k]
  |  |  ------------------
  ------------------
  999|      2|        {
 1000|      2|            ec = cbor_errc::max_nesting_depth_exceeded;
 1001|      2|            more_ = false;
 1002|      2|            return;
 1003|      2|        }
 1004|  4.01k|        bool pop_stringref_map_stack = false;
 1005|  4.01k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1005:13): [True: 129, False: 3.88k]
  ------------------
 1006|    129|        {
 1007|    129|            stringref_map_stack_.emplace_back();
 1008|    129|            other_tags_[stringref_namespace_tag] = false;
 1009|    129|            pop_stringref_map_stack = true;
 1010|    129|        }
 1011|  4.01k|        switch (info)
 1012|  4.01k|        {
 1013|  2.18k|            case jsoncons::cbor::detail::additional_info::indefinite_length:
  ------------------
  |  Branch (1013:13): [True: 2.18k, False: 1.83k]
  ------------------
 1014|  2.18k|            {
 1015|  2.18k|                state_stack_.emplace_back(parse_mode::indefinite_array, 0, pop_stringref_map_stack);
 1016|  2.18k|                more_ = !cursor_mode_;
 1017|  2.18k|                source_.ignore(1);
 1018|  2.18k|                break;
 1019|      0|            }
 1020|  1.83k|            default: // definite length
  ------------------
  |  Branch (1020:13): [True: 1.83k, False: 2.18k]
  ------------------
 1021|  1.83k|            {
 1022|  1.83k|                std::size_t len = read_size(ec);
 1023|  1.83k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.83k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 1.83k]
  |  |  ------------------
  ------------------
 1024|      1|                {
 1025|      1|                    return;
 1026|      1|                }
 1027|  1.83k|                state_stack_.emplace_back(parse_mode::array, len, pop_stringref_map_stack);
 1028|  1.83k|                more_ = !cursor_mode_;
 1029|  1.83k|                break;
 1030|  1.83k|            }
 1031|  4.01k|        }
 1032|  4.01k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayERNS_21basic_generic_visitorIcEEhRNS3_10error_codeE:
  927|   852k|    {
  928|   852k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|   852k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 10, False: 852k]
  |  |  ------------------
  ------------------
  929|     10|        {
  930|     10|            ec = cbor_errc::max_nesting_depth_exceeded;
  931|     10|            more_ = false;
  932|     10|            return;
  933|     10|        } 
  934|   852k|        semantic_tag tag = semantic_tag::none;
  935|   852k|        bool pop_stringref_map_stack = false;
  936|   852k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (936:13): [True: 3.31k, False: 848k]
  ------------------
  937|  3.31k|        {
  938|  3.31k|            stringref_map_stack_.emplace_back();
  939|  3.31k|            other_tags_[stringref_namespace_tag] = false;
  940|  3.31k|            pop_stringref_map_stack = true;
  941|  3.31k|        }
  942|   852k|        switch (info)
  943|   852k|        {
  944|   377k|            case jsoncons::cbor::detail::additional_info::indefinite_length:
  ------------------
  |  Branch (944:13): [True: 377k, False: 474k]
  ------------------
  945|   377k|            {
  946|   377k|                state_stack_.emplace_back(parse_mode::indefinite_array,0,pop_stringref_map_stack);
  947|   377k|                visitor.begin_array(tag, *this, ec);
  948|   377k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   377k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 377k]
  |  |  ------------------
  ------------------
  949|      0|                {
  950|      0|                    return;
  951|      0|                }
  952|   377k|                more_ = !cursor_mode_;
  953|   377k|                source_.ignore(1);
  954|   377k|                break;
  955|   377k|            }
  956|   474k|            default: // definite length
  ------------------
  |  Branch (956:13): [True: 474k, False: 377k]
  ------------------
  957|   474k|            {
  958|   474k|                std::size_t len = read_size(ec);
  959|   474k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   474k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 98, False: 474k]
  |  |  ------------------
  ------------------
  960|     98|                {
  961|     98|                    return;
  962|     98|                }
  963|   474k|                state_stack_.emplace_back(parse_mode::array,len,pop_stringref_map_stack);
  964|   474k|                visitor.begin_array(len, tag, *this, ec);
  965|   474k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   474k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 474k]
  |  |  ------------------
  ------------------
  966|      0|                {
  967|      0|                    return;
  968|      0|                }
  969|   474k|                more_ = !cursor_mode_;
  970|   474k|                break;
  971|   474k|            }
  972|   852k|        }
  973|   852k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectERNS_21basic_generic_visitorIcEEhRNS3_10error_codeE:
 1051|  13.5M|    {
 1052|  13.5M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   78|  13.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 13.5M]
  |  |  ------------------
  ------------------
 1053|      2|        {
 1054|      2|            ec = cbor_errc::max_nesting_depth_exceeded;
 1055|      2|            more_ = false;
 1056|      2|            return;
 1057|      2|        } 
 1058|  13.5M|        bool pop_stringref_map_stack = false;
 1059|  13.5M|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1059:13): [True: 3.40k, False: 13.5M]
  ------------------
 1060|  3.40k|        {
 1061|  3.40k|            stringref_map_stack_.emplace_back();
 1062|  3.40k|            other_tags_[stringref_namespace_tag] = false;
 1063|  3.40k|            pop_stringref_map_stack = true;
 1064|  3.40k|        }
 1065|  13.5M|        switch (info)
 1066|  13.5M|        {
 1067|   295k|            case jsoncons::cbor::detail::additional_info::indefinite_length: 
  ------------------
  |  Branch (1067:13): [True: 295k, False: 13.2M]
  ------------------
 1068|   295k|            {
 1069|   295k|                state_stack_.emplace_back(parse_mode::indefinite_map_key,0,pop_stringref_map_stack);
 1070|   295k|                visitor.begin_object(semantic_tag::none, *this, ec);
 1071|   295k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   295k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 295k]
  |  |  ------------------
  ------------------
 1072|      0|                {
 1073|      0|                    return;
 1074|      0|                }
 1075|   295k|                more_ = !cursor_mode_;
 1076|   295k|                source_.ignore(1);
 1077|   295k|                break;
 1078|   295k|            }
 1079|  13.2M|            default: // definite_length
  ------------------
  |  Branch (1079:13): [True: 13.2M, False: 295k]
  ------------------
 1080|  13.2M|            {
 1081|  13.2M|                std::size_t len = read_size(ec);
 1082|  13.2M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  13.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 71, False: 13.2M]
  |  |  ------------------
  ------------------
 1083|     71|                {
 1084|     71|                    return;
 1085|     71|                }
 1086|  13.2M|                state_stack_.emplace_back(parse_mode::map_key,len,pop_stringref_map_stack);
 1087|  13.2M|                visitor.begin_object(len, semantic_tag::none, *this, ec);
 1088|  13.2M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  13.2M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 13.2M]
  |  |  ------------------
  ------------------
 1089|      0|                {
 1090|      0|                    return;
 1091|      0|                }
 1092|  13.2M|                more_ = !cursor_mode_;
 1093|  13.2M|                break;
 1094|  13.2M|            }
 1095|  13.5M|        }
 1096|  13.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
  976|   788k|    {
  977|   788k|        --nesting_depth_;
  978|       |
  979|   788k|        visitor.end_array(*this, ec);
  980|   788k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   788k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 788k]
  |  |  ------------------
  ------------------
  981|      0|        {
  982|      0|            return;
  983|      0|        }
  984|   788k|        more_ = !cursor_mode_;
  985|   788k|        if (level() == mark_level_)
  ------------------
  |  Branch (985:13): [True: 0, False: 788k]
  ------------------
  986|      0|        {
  987|      0|            more_ = false;
  988|      0|        }
  989|   788k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (989:13): [True: 602, False: 788k]
  ------------------
  990|    602|        {
  991|    602|            stringref_map_stack_.pop_back();
  992|    602|        }
  993|   788k|        state_stack_.pop_back();
  994|   788k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1099|  13.4M|    {
 1100|  13.4M|        --nesting_depth_;
 1101|  13.4M|        visitor.end_object(*this, ec);
 1102|  13.4M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  13.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 13.4M]
  |  |  ------------------
  ------------------
 1103|      0|        {
 1104|      0|            return;
 1105|      0|        }
 1106|  13.4M|        more_ = !cursor_mode_;
 1107|  13.4M|        if (level() == mark_level_)
  ------------------
  |  Branch (1107:13): [True: 0, False: 13.4M]
  ------------------
 1108|      0|        {
 1109|      0|            more_ = false;
 1110|      0|        }
 1111|  13.4M|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1111:13): [True: 696, False: 13.4M]
  ------------------
 1112|    696|        {
 1113|    696|            stringref_map_stack_.pop_back();
 1114|    696|        }
 1115|  13.4M|        state_stack_.pop_back();
 1116|  13.4M|    }

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

_ZN8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    478|        : data_(std::move(data), alloc), 
  200|    478|          span_(typed_array_cast<ValueType>(data_)), 
  201|    478|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    478|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    478|    {
  204|    478|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    478|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 0, False: 478]
  ------------------
  206|      0|        {
  207|      0|            std::size_t stride = 1;
  208|      0|            const size_t num_extents = extents.size();
  209|      0|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 0, False: 0]
  ------------------
  210|      0|            {
  211|      0|                strides[i] = stride;
  212|      0|                stride *= extents[i];
  213|      0|            }
  214|      0|        }
  215|    478|        else
  216|    478|        {
  217|    478|            std::size_t stride = 1;
  218|    478|            const size_t num_extents = extents.size();
  219|  1.91k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 1.43k, False: 478]
  ------------------
  220|  1.43k|            {
  221|  1.43k|                strides[num_extents-i-1] = stride;
  222|  1.43k|                stride *= extents[num_extents-i-1];
  223|  1.43k|            }
  224|    478|        }
  225|  1.91k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.43k, False: 478]
  ------------------
  226|  1.43k|        {
  227|  1.43k|            dimensions_[i].extent = extents[i];
  228|  1.43k|            dimensions_[i].stride = strides[i];
  229|  1.43k|            dimensions_[i].index = 0;
  230|  1.43k|            dimensions_[i].end = strides[i]*extents[i];
  231|  1.43k|        }
  232|    478|    }
_ZN8jsoncons4cbor20typed_array_iteratorD2Ev:
   43|   136k|    virtual ~typed_array_iterator() = default;
_ZNK8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  5.72k|    {
  261|  5.72k|        return done_;
  262|  5.72k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  3.34k|    {
  267|  3.34k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  3.34k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 3.34k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  3.34k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 1.43k, False: 1.90k]
  ------------------
  270|  1.43k|        {
  271|  1.43k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 478, False: 956]
  ------------------
  272|    478|            {
  273|    478|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    478|                first_ = false;
  275|    478|                return;
  276|    478|            }
  277|    956|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 478, False: 478]
  ------------------
  278|    478|            {
  279|    478|                visitor.end_array(context, ec);
  280|    478|                done_ = true;
  281|    478|                return;
  282|    478|            }
  283|    956|        }
  284|  2.38k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 1.43k, False: 955]
  |  Branch (284:44): [True: 954, False: 477]
  ------------------
  285|    954|        {
  286|    954|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|    954|            ++dim_;
  288|    954|            return;
  289|    954|        }
  290|  1.43k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 478, False: 954]
  ------------------
  291|    478|        {
  292|    478|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|    478|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|    478|            ++count_;
  295|    478|            return;
  296|    478|        }
  297|    954|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 954, False: 0]
  ------------------
  298|    954|        {
  299|    954|            visitor.end_array(context, ec);
  300|    954|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 954, False: 0]
  ------------------
  301|    954|            {
  302|    954|                --dim_;
  303|    954|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|    954|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 0, False: 954]
  ------------------
  305|      0|                {
  306|      0|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 0, False: 0]
  ------------------
  307|      0|                    {
  308|      0|                        dimensions_[i].index = dimensions_[i-1].index;
  309|      0|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|      0|                    }
  311|      0|                }
  312|    954|            }
  313|    954|        }
  314|    954|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIhEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|  2.78M|    {
   73|  2.78M|        visitor.uint64_value(val, tag, context, ec);
   74|  2.78M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  4.25k|        : data_(std::move(data), alloc), 
  107|  4.25k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  4.25k|          array_tag_(array_tag), 
  109|  4.25k|          extent_(span_.size()), 
  110|  4.25k|          tag_(tag), 
  111|  4.25k|          func_(Func{})
  112|  4.25k|    {
  113|  4.25k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  5.57M|    {
  142|  5.57M|        return done_;
  143|  5.57M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  2.79M|    {
  148|  2.79M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  2.79M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4.25k, False: 2.78M]
  |  |  ------------------
  ------------------
  149|  4.25k|        {
  150|  4.25k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  4.25k|            first_ = false;
  152|  4.25k|        }
  153|  2.78M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|  2.78M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 2.78M, False: 4.25k]
  |  |  ------------------
  ------------------
  154|  2.78M|        {
  155|  2.78M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  2.78M|            ++index_;
  157|  2.78M|        }
  158|  4.25k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 4.25k, False: 0]
  ------------------
  159|  4.25k|        {
  160|  4.25k|            visitor.end_array(context, ec);
  161|  4.25k|            done_ = true;
  162|  4.25k|        }
  163|  2.79M|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    444|        : data_(std::move(data), alloc), 
  200|    444|          span_(typed_array_cast<ValueType>(data_)), 
  201|    444|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    444|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    444|    {
  204|    444|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    444|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 0, False: 444]
  ------------------
  206|      0|        {
  207|      0|            std::size_t stride = 1;
  208|      0|            const size_t num_extents = extents.size();
  209|      0|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 0, False: 0]
  ------------------
  210|      0|            {
  211|      0|                strides[i] = stride;
  212|      0|                stride *= extents[i];
  213|      0|            }
  214|      0|        }
  215|    444|        else
  216|    444|        {
  217|    444|            std::size_t stride = 1;
  218|    444|            const size_t num_extents = extents.size();
  219|  1.73k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 1.29k, False: 444]
  ------------------
  220|  1.29k|            {
  221|  1.29k|                strides[num_extents-i-1] = stride;
  222|  1.29k|                stride *= extents[num_extents-i-1];
  223|  1.29k|            }
  224|    444|        }
  225|  1.73k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.29k, False: 444]
  ------------------
  226|  1.29k|        {
  227|  1.29k|            dimensions_[i].extent = extents[i];
  228|  1.29k|            dimensions_[i].stride = strides[i];
  229|  1.29k|            dimensions_[i].index = 0;
  230|  1.29k|            dimensions_[i].end = strides[i]*extents[i];
  231|  1.29k|        }
  232|    444|    }
_ZNK8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  5.17k|    {
  261|  5.17k|        return done_;
  262|  5.17k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  3.03k|    {
  267|  3.03k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  3.03k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 3.03k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  3.03k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 1.33k, False: 1.70k]
  ------------------
  270|  1.33k|        {
  271|  1.33k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 444, False: 888]
  ------------------
  272|    444|            {
  273|    444|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    444|                first_ = false;
  275|    444|                return;
  276|    444|            }
  277|    888|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 444, False: 444]
  ------------------
  278|    444|            {
  279|    444|                visitor.end_array(context, ec);
  280|    444|                done_ = true;
  281|    444|                return;
  282|    444|            }
  283|    888|        }
  284|  2.14k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 1.27k, False: 869]
  |  Branch (284:44): [True: 850, False: 425]
  ------------------
  285|    850|        {
  286|    850|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|    850|            ++dim_;
  288|    850|            return;
  289|    850|        }
  290|  1.29k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 444, False: 850]
  ------------------
  291|    444|        {
  292|    444|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|    444|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|    444|            ++count_;
  295|    444|            return;
  296|    444|        }
  297|    850|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 850, False: 0]
  ------------------
  298|    850|        {
  299|    850|            visitor.end_array(context, ec);
  300|    850|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 850, False: 0]
  ------------------
  301|    850|            {
  302|    850|                --dim_;
  303|    850|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|    850|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 0, False: 850]
  ------------------
  305|      0|                {
  306|      0|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 0, False: 0]
  ------------------
  307|      0|                    {
  308|      0|                        dimensions_[i].index = dimensions_[i-1].index;
  309|      0|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|      0|                    }
  311|      0|                }
  312|    850|            }
  313|    850|        }
  314|    850|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueItEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   430k|    {
   73|   430k|        visitor.uint64_value(val, tag, context, ec);
   74|   430k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  15.0k|        : data_(std::move(data), alloc), 
  107|  15.0k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  15.0k|          array_tag_(array_tag), 
  109|  15.0k|          extent_(span_.size()), 
  110|  15.0k|          tag_(tag), 
  111|  15.0k|          func_(Func{})
  112|  15.0k|    {
  113|  15.0k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   890k|    {
  142|   890k|        return done_;
  143|   890k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   460k|    {
  148|   460k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|   460k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 15.0k, False: 445k]
  |  |  ------------------
  ------------------
  149|  15.0k|        {
  150|  15.0k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  15.0k|            first_ = false;
  152|  15.0k|        }
  153|   445k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|   445k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 430k, False: 15.0k]
  |  |  ------------------
  ------------------
  154|   430k|        {
  155|   430k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   430k|            ++index_;
  157|   430k|        }
  158|  15.0k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 15.0k, False: 0]
  ------------------
  159|  15.0k|        {
  160|  15.0k|            visitor.end_array(context, ec);
  161|  15.0k|            done_ = true;
  162|  15.0k|        }
  163|   460k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    399|        : data_(std::move(data), alloc), 
  200|    399|          span_(typed_array_cast<ValueType>(data_)), 
  201|    399|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    399|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    399|    {
  204|    399|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    399|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 0, False: 399]
  ------------------
  206|      0|        {
  207|      0|            std::size_t stride = 1;
  208|      0|            const size_t num_extents = extents.size();
  209|      0|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 0, False: 0]
  ------------------
  210|      0|            {
  211|      0|                strides[i] = stride;
  212|      0|                stride *= extents[i];
  213|      0|            }
  214|      0|        }
  215|    399|        else
  216|    399|        {
  217|    399|            std::size_t stride = 1;
  218|    399|            const size_t num_extents = extents.size();
  219|  1.48k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 1.08k, False: 399]
  ------------------
  220|  1.08k|            {
  221|  1.08k|                strides[num_extents-i-1] = stride;
  222|  1.08k|                stride *= extents[num_extents-i-1];
  223|  1.08k|            }
  224|    399|        }
  225|  1.48k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.08k, False: 399]
  ------------------
  226|  1.08k|        {
  227|  1.08k|            dimensions_[i].extent = extents[i];
  228|  1.08k|            dimensions_[i].stride = strides[i];
  229|  1.08k|            dimensions_[i].index = 0;
  230|  1.08k|            dimensions_[i].end = strides[i]*extents[i];
  231|  1.08k|        }
  232|    399|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  4.32k|    {
  261|  4.32k|        return done_;
  262|  4.32k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  2.56k|    {
  267|  2.56k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  2.56k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.56k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  2.56k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 1.19k, False: 1.36k]
  ------------------
  270|  1.19k|        {
  271|  1.19k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 399, False: 798]
  ------------------
  272|    399|            {
  273|    399|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    399|                first_ = false;
  275|    399|                return;
  276|    399|            }
  277|    798|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 399, False: 399]
  ------------------
  278|    399|            {
  279|    399|                visitor.end_array(context, ec);
  280|    399|                done_ = true;
  281|    399|                return;
  282|    399|            }
  283|    798|        }
  284|  1.76k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 1.02k, False: 742]
  |  Branch (284:44): [True: 682, False: 339]
  ------------------
  285|    682|        {
  286|    682|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|    682|            ++dim_;
  288|    682|            return;
  289|    682|        }
  290|  1.08k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 399, False: 682]
  ------------------
  291|    399|        {
  292|    399|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|    399|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|    399|            ++count_;
  295|    399|            return;
  296|    399|        }
  297|    682|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 682, False: 0]
  ------------------
  298|    682|        {
  299|    682|            visitor.end_array(context, ec);
  300|    682|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 682, False: 0]
  ------------------
  301|    682|            {
  302|    682|                --dim_;
  303|    682|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|    682|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 0, False: 682]
  ------------------
  305|      0|                {
  306|      0|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 0, False: 0]
  ------------------
  307|      0|                    {
  308|      0|                        dimensions_[i].index = dimensions_[i-1].index;
  309|      0|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|      0|                    }
  311|      0|                }
  312|    682|            }
  313|    682|        }
  314|    682|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIjEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   370k|    {
   73|   370k|        visitor.uint64_value(val, tag, context, ec);
   74|   370k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  5.65k|        : data_(std::move(data), alloc), 
  107|  5.65k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  5.65k|          array_tag_(array_tag), 
  109|  5.65k|          extent_(span_.size()), 
  110|  5.65k|          tag_(tag), 
  111|  5.65k|          func_(Func{})
  112|  5.65k|    {
  113|  5.65k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   751k|    {
  142|   751k|        return done_;
  143|   751k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   381k|    {
  148|   381k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|   381k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 5.65k, False: 375k]
  |  |  ------------------
  ------------------
  149|  5.65k|        {
  150|  5.65k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  5.65k|            first_ = false;
  152|  5.65k|        }
  153|   375k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|   375k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 369k, False: 5.65k]
  |  |  ------------------
  ------------------
  154|   369k|        {
  155|   369k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   369k|            ++index_;
  157|   369k|        }
  158|  5.65k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 5.65k, False: 0]
  ------------------
  159|  5.65k|        {
  160|  5.65k|            visitor.end_array(context, ec);
  161|  5.65k|            done_ = true;
  162|  5.65k|        }
  163|   381k|    }
_ZN8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    337|        : data_(std::move(data), alloc), 
  200|    337|          span_(typed_array_cast<ValueType>(data_)), 
  201|    337|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    337|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    337|    {
  204|    337|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    337|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 0, False: 337]
  ------------------
  206|      0|        {
  207|      0|            std::size_t stride = 1;
  208|      0|            const size_t num_extents = extents.size();
  209|      0|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 0, False: 0]
  ------------------
  210|      0|            {
  211|      0|                strides[i] = stride;
  212|      0|                stride *= extents[i];
  213|      0|            }
  214|      0|        }
  215|    337|        else
  216|    337|        {
  217|    337|            std::size_t stride = 1;
  218|    337|            const size_t num_extents = extents.size();
  219|  1.34k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 1.00k, False: 337]
  ------------------
  220|  1.00k|            {
  221|  1.00k|                strides[num_extents-i-1] = stride;
  222|  1.00k|                stride *= extents[num_extents-i-1];
  223|  1.00k|            }
  224|    337|        }
  225|  1.34k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.00k, False: 337]
  ------------------
  226|  1.00k|        {
  227|  1.00k|            dimensions_[i].extent = extents[i];
  228|  1.00k|            dimensions_[i].stride = strides[i];
  229|  1.00k|            dimensions_[i].index = 0;
  230|  1.00k|            dimensions_[i].end = strides[i]*extents[i];
  231|  1.00k|        }
  232|    337|    }
_ZNK8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  4.02k|    {
  261|  4.02k|        return done_;
  262|  4.02k|    }
_ZN8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  2.35k|    {
  267|  2.35k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  2.35k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.35k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  2.35k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 1.01k, False: 1.34k]
  ------------------
  270|  1.01k|        {
  271|  1.01k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 337, False: 674]
  ------------------
  272|    337|            {
  273|    337|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    337|                first_ = false;
  275|    337|                return;
  276|    337|            }
  277|    674|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 337, False: 337]
  ------------------
  278|    337|            {
  279|    337|                visitor.end_array(context, ec);
  280|    337|                done_ = true;
  281|    337|                return;
  282|    337|            }
  283|    674|        }
  284|  1.67k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 1.00k, False: 672]
  |  Branch (284:44): [True: 670, False: 335]
  ------------------
  285|    670|        {
  286|    670|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|    670|            ++dim_;
  288|    670|            return;
  289|    670|        }
  290|  1.00k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 337, False: 670]
  ------------------
  291|    337|        {
  292|    337|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|    337|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|    337|            ++count_;
  295|    337|            return;
  296|    337|        }
  297|    670|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 670, False: 0]
  ------------------
  298|    670|        {
  299|    670|            visitor.end_array(context, ec);
  300|    670|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 670, False: 0]
  ------------------
  301|    670|            {
  302|    670|                --dim_;
  303|    670|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|    670|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 0, False: 670]
  ------------------
  305|      0|                {
  306|      0|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 0, False: 0]
  ------------------
  307|      0|                    {
  308|      0|                        dimensions_[i].index = dimensions_[i-1].index;
  309|      0|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|      0|                    }
  311|      0|                }
  312|    670|            }
  313|    670|        }
  314|    670|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueImEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   109k|    {
   73|   109k|        visitor.uint64_value(val, tag, context, ec);
   74|   109k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  13.7k|        : data_(std::move(data), alloc), 
  107|  13.7k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  13.7k|          array_tag_(array_tag), 
  109|  13.7k|          extent_(span_.size()), 
  110|  13.7k|          tag_(tag), 
  111|  13.7k|          func_(Func{})
  112|  13.7k|    {
  113|  13.7k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   245k|    {
  142|   245k|        return done_;
  143|   245k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   136k|    {
  148|   136k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|   136k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 13.7k, False: 122k]
  |  |  ------------------
  ------------------
  149|  13.7k|        {
  150|  13.7k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  13.7k|            first_ = false;
  152|  13.7k|        }
  153|   122k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|   122k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 109k, False: 13.7k]
  |  |  ------------------
  ------------------
  154|   109k|        {
  155|   109k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   109k|            ++index_;
  157|   109k|        }
  158|  13.7k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 13.7k, False: 0]
  ------------------
  159|  13.7k|        {
  160|  13.7k|            visitor.end_array(context, ec);
  161|  13.7k|            done_ = true;
  162|  13.7k|        }
  163|   136k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    407|        : data_(std::move(data), alloc), 
  200|    407|          span_(typed_array_cast<ValueType>(data_)), 
  201|    407|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    407|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    407|    {
  204|    407|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    407|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 0, False: 407]
  ------------------
  206|      0|        {
  207|      0|            std::size_t stride = 1;
  208|      0|            const size_t num_extents = extents.size();
  209|      0|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 0, False: 0]
  ------------------
  210|      0|            {
  211|      0|                strides[i] = stride;
  212|      0|                stride *= extents[i];
  213|      0|            }
  214|      0|        }
  215|    407|        else
  216|    407|        {
  217|    407|            std::size_t stride = 1;
  218|    407|            const size_t num_extents = extents.size();
  219|  1.62k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 1.21k, False: 407]
  ------------------
  220|  1.21k|            {
  221|  1.21k|                strides[num_extents-i-1] = stride;
  222|  1.21k|                stride *= extents[num_extents-i-1];
  223|  1.21k|            }
  224|    407|        }
  225|  1.62k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.21k, False: 407]
  ------------------
  226|  1.21k|        {
  227|  1.21k|            dimensions_[i].extent = extents[i];
  228|  1.21k|            dimensions_[i].stride = strides[i];
  229|  1.21k|            dimensions_[i].index = 0;
  230|  1.21k|            dimensions_[i].end = strides[i]*extents[i];
  231|  1.21k|        }
  232|    407|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  4.86k|    {
  261|  4.86k|        return done_;
  262|  4.86k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  2.83k|    {
  267|  2.83k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  2.83k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 2.83k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  2.83k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 1.22k, False: 1.61k]
  ------------------
  270|  1.22k|        {
  271|  1.22k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 407, False: 814]
  ------------------
  272|    407|            {
  273|    407|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    407|                first_ = false;
  275|    407|                return;
  276|    407|            }
  277|    814|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 407, False: 407]
  ------------------
  278|    407|            {
  279|    407|                visitor.end_array(context, ec);
  280|    407|                done_ = true;
  281|    407|                return;
  282|    407|            }
  283|    814|        }
  284|  2.02k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 1.21k, False: 813]
  |  Branch (284:44): [True: 808, False: 402]
  ------------------
  285|    808|        {
  286|    808|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|    808|            ++dim_;
  288|    808|            return;
  289|    808|        }
  290|  1.21k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 407, False: 808]
  ------------------
  291|    407|        {
  292|    407|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|    407|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|    407|            ++count_;
  295|    407|            return;
  296|    407|        }
  297|    808|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 808, False: 0]
  ------------------
  298|    808|        {
  299|    808|            visitor.end_array(context, ec);
  300|    808|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 808, False: 0]
  ------------------
  301|    808|            {
  302|    808|                --dim_;
  303|    808|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|    808|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 0, False: 808]
  ------------------
  305|      0|                {
  306|      0|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 0, False: 0]
  ------------------
  307|      0|                    {
  308|      0|                        dimensions_[i].index = dimensions_[i-1].index;
  309|      0|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|      0|                    }
  311|      0|                }
  312|    808|            }
  313|    808|        }
  314|    808|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIaEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|  3.11M|    {
   65|  3.11M|        visitor.int64_value(val, tag, context, ec);
   66|  3.11M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  3.53k|        : data_(std::move(data), alloc), 
  107|  3.53k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  3.53k|          array_tag_(array_tag), 
  109|  3.53k|          extent_(span_.size()), 
  110|  3.53k|          tag_(tag), 
  111|  3.53k|          func_(Func{})
  112|  3.53k|    {
  113|  3.53k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  6.23M|    {
  142|  6.23M|        return done_;
  143|  6.23M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  3.12M|    {
  148|  3.12M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  3.12M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3.53k, False: 3.11M]
  |  |  ------------------
  ------------------
  149|  3.53k|        {
  150|  3.53k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  3.53k|            first_ = false;
  152|  3.53k|        }
  153|  3.11M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|  3.11M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 3.11M, False: 3.53k]
  |  |  ------------------
  ------------------
  154|  3.11M|        {
  155|  3.11M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  3.11M|            ++index_;
  157|  3.11M|        }
  158|  3.53k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 3.53k, False: 0]
  ------------------
  159|  3.53k|        {
  160|  3.53k|            visitor.end_array(context, ec);
  161|  3.53k|            done_ = true;
  162|  3.53k|        }
  163|  3.12M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    209|        : data_(std::move(data), alloc), 
  200|    209|          span_(typed_array_cast<ValueType>(data_)), 
  201|    209|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    209|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    209|    {
  204|    209|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    209|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 0, False: 209]
  ------------------
  206|      0|        {
  207|      0|            std::size_t stride = 1;
  208|      0|            const size_t num_extents = extents.size();
  209|      0|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 0, False: 0]
  ------------------
  210|      0|            {
  211|      0|                strides[i] = stride;
  212|      0|                stride *= extents[i];
  213|      0|            }
  214|      0|        }
  215|    209|        else
  216|    209|        {
  217|    209|            std::size_t stride = 1;
  218|    209|            const size_t num_extents = extents.size();
  219|    792|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 583, False: 209]
  ------------------
  220|    583|            {
  221|    583|                strides[num_extents-i-1] = stride;
  222|    583|                stride *= extents[num_extents-i-1];
  223|    583|            }
  224|    209|        }
  225|    792|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 583, False: 209]
  ------------------
  226|    583|        {
  227|    583|            dimensions_[i].extent = extents[i];
  228|    583|            dimensions_[i].stride = strides[i];
  229|    583|            dimensions_[i].index = 0;
  230|    583|            dimensions_[i].end = strides[i]*extents[i];
  231|    583|        }
  232|    209|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  2.36k|    {
  261|  2.36k|        return done_;
  262|  2.36k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  1.39k|    {
  267|  1.39k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  1.39k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 1.39k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  1.39k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 632, False: 758]
  ------------------
  270|    632|        {
  271|    632|            if (first_)
  ------------------
  |  Branch (271:17): [True: 209, False: 423]
  ------------------
  272|    209|            {
  273|    209|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    209|                first_ = false;
  275|    209|                return;
  276|    209|            }
  277|    423|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 209, False: 214]
  ------------------
  278|    209|            {
  279|    209|                visitor.end_array(context, ec);
  280|    209|                done_ = true;
  281|    209|                return;
  282|    209|            }
  283|    423|        }
  284|    972|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 565, False: 407]
  |  Branch (284:44): [True: 379, False: 186]
  ------------------
  285|    379|        {
  286|    379|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|    379|            ++dim_;
  288|    379|            return;
  289|    379|        }
  290|    593|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 214, False: 379]
  ------------------
  291|    214|        {
  292|    214|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|    214|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|    214|            ++count_;
  295|    214|            return;
  296|    214|        }
  297|    379|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 379, False: 0]
  ------------------
  298|    379|        {
  299|    379|            visitor.end_array(context, ec);
  300|    379|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 379, False: 0]
  ------------------
  301|    379|            {
  302|    379|                --dim_;
  303|    379|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|    379|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 5, False: 374]
  ------------------
  305|      5|                {
  306|     10|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 5, False: 5]
  ------------------
  307|      5|                    {
  308|      5|                        dimensions_[i].index = dimensions_[i-1].index;
  309|      5|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|      5|                    }
  311|      5|                }
  312|    379|            }
  313|    379|        }
  314|    379|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIsEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|  1.32M|    {
   65|  1.32M|        visitor.int64_value(val, tag, context, ec);
   66|  1.32M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  14.4k|        : data_(std::move(data), alloc), 
  107|  14.4k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  14.4k|          array_tag_(array_tag), 
  109|  14.4k|          extent_(span_.size()), 
  110|  14.4k|          tag_(tag), 
  111|  14.4k|          func_(Func{})
  112|  14.4k|    {
  113|  14.4k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  2.67M|    {
  142|  2.67M|        return done_;
  143|  2.67M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  1.35M|    {
  148|  1.35M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  1.35M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 14.4k, False: 1.33M]
  |  |  ------------------
  ------------------
  149|  14.4k|        {
  150|  14.4k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  14.4k|            first_ = false;
  152|  14.4k|        }
  153|  1.33M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|  1.33M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 1.32M, False: 14.4k]
  |  |  ------------------
  ------------------
  154|  1.32M|        {
  155|  1.32M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  1.32M|            ++index_;
  157|  1.32M|        }
  158|  14.4k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 14.4k, False: 0]
  ------------------
  159|  14.4k|        {
  160|  14.4k|            visitor.end_array(context, ec);
  161|  14.4k|            done_ = true;
  162|  14.4k|        }
  163|  1.35M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    405|        : data_(std::move(data), alloc), 
  200|    405|          span_(typed_array_cast<ValueType>(data_)), 
  201|    405|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    405|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    405|    {
  204|    405|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    405|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 0, False: 405]
  ------------------
  206|      0|        {
  207|      0|            std::size_t stride = 1;
  208|      0|            const size_t num_extents = extents.size();
  209|      0|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 0, False: 0]
  ------------------
  210|      0|            {
  211|      0|                strides[i] = stride;
  212|      0|                stride *= extents[i];
  213|      0|            }
  214|      0|        }
  215|    405|        else
  216|    405|        {
  217|    405|            std::size_t stride = 1;
  218|    405|            const size_t num_extents = extents.size();
  219|    852|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 447, False: 405]
  ------------------
  220|    447|            {
  221|    447|                strides[num_extents-i-1] = stride;
  222|    447|                stride *= extents[num_extents-i-1];
  223|    447|            }
  224|    405|        }
  225|    852|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 447, False: 405]
  ------------------
  226|    447|        {
  227|    447|            dimensions_[i].extent = extents[i];
  228|    447|            dimensions_[i].stride = strides[i];
  229|    447|            dimensions_[i].index = 0;
  230|    447|            dimensions_[i].end = strides[i]*extents[i];
  231|    447|        }
  232|    405|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  1.78k|    {
  261|  1.78k|        return done_;
  262|  1.78k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  1.29k|    {
  267|  1.29k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  1.29k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 1.29k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  1.29k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 1.21k, False: 84]
  ------------------
  270|  1.21k|        {
  271|  1.21k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 405, False: 810]
  ------------------
  272|    405|            {
  273|    405|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    405|                first_ = false;
  275|    405|                return;
  276|    405|            }
  277|    810|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 405, False: 405]
  ------------------
  278|    405|            {
  279|    405|                visitor.end_array(context, ec);
  280|    405|                done_ = true;
  281|    405|                return;
  282|    405|            }
  283|    810|        }
  284|    489|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 63, False: 426]
  |  Branch (284:44): [True: 42, False: 21]
  ------------------
  285|     42|        {
  286|     42|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|     42|            ++dim_;
  288|     42|            return;
  289|     42|        }
  290|    447|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 405, False: 42]
  ------------------
  291|    405|        {
  292|    405|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|    405|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|    405|            ++count_;
  295|    405|            return;
  296|    405|        }
  297|     42|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 42, False: 0]
  ------------------
  298|     42|        {
  299|     42|            visitor.end_array(context, ec);
  300|     42|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 42, False: 0]
  ------------------
  301|     42|            {
  302|     42|                --dim_;
  303|     42|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|     42|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 0, False: 42]
  ------------------
  305|      0|                {
  306|      0|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 0, False: 0]
  ------------------
  307|      0|                    {
  308|      0|                        dimensions_[i].index = dimensions_[i-1].index;
  309|      0|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|      0|                    }
  311|      0|                }
  312|     42|            }
  313|     42|        }
  314|     42|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIiEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|  1.96M|    {
   65|  1.96M|        visitor.int64_value(val, tag, context, ec);
   66|  1.96M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  3.91k|        : data_(std::move(data), alloc), 
  107|  3.91k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  3.91k|          array_tag_(array_tag), 
  109|  3.91k|          extent_(span_.size()), 
  110|  3.91k|          tag_(tag), 
  111|  3.91k|          func_(Func{})
  112|  3.91k|    {
  113|  3.91k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  3.93M|    {
  142|  3.93M|        return done_;
  143|  3.93M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  1.97M|    {
  148|  1.97M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  1.97M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3.91k, False: 1.96M]
  |  |  ------------------
  ------------------
  149|  3.91k|        {
  150|  3.91k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  3.91k|            first_ = false;
  152|  3.91k|        }
  153|  1.96M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|  1.96M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 1.96M, False: 3.91k]
  |  |  ------------------
  ------------------
  154|  1.96M|        {
  155|  1.96M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  1.96M|            ++index_;
  157|  1.96M|        }
  158|  3.91k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 3.91k, False: 0]
  ------------------
  159|  3.91k|        {
  160|  3.91k|            visitor.end_array(context, ec);
  161|  3.91k|            done_ = true;
  162|  3.91k|        }
  163|  1.97M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    505|        : data_(std::move(data), alloc), 
  200|    505|          span_(typed_array_cast<ValueType>(data_)), 
  201|    505|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    505|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    505|    {
  204|    505|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    505|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 0, False: 505]
  ------------------
  206|      0|        {
  207|      0|            std::size_t stride = 1;
  208|      0|            const size_t num_extents = extents.size();
  209|      0|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 0, False: 0]
  ------------------
  210|      0|            {
  211|      0|                strides[i] = stride;
  212|      0|                stride *= extents[i];
  213|      0|            }
  214|      0|        }
  215|    505|        else
  216|    505|        {
  217|    505|            std::size_t stride = 1;
  218|    505|            const size_t num_extents = extents.size();
  219|  2.51k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 2.00k, False: 505]
  ------------------
  220|  2.00k|            {
  221|  2.00k|                strides[num_extents-i-1] = stride;
  222|  2.00k|                stride *= extents[num_extents-i-1];
  223|  2.00k|            }
  224|    505|        }
  225|  2.51k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 2.00k, False: 505]
  ------------------
  226|  2.00k|        {
  227|  2.00k|            dimensions_[i].extent = extents[i];
  228|  2.00k|            dimensions_[i].stride = strides[i];
  229|  2.00k|            dimensions_[i].index = 0;
  230|  2.00k|            dimensions_[i].end = strides[i]*extents[i];
  231|  2.00k|        }
  232|    505|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  8.02k|    {
  261|  8.02k|        return done_;
  262|  8.02k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  4.51k|    {
  267|  4.51k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  4.51k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 4.51k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  4.51k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 1.51k, False: 3.00k]
  ------------------
  270|  1.51k|        {
  271|  1.51k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 505, False: 1.01k]
  ------------------
  272|    505|            {
  273|    505|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    505|                first_ = false;
  275|    505|                return;
  276|    505|            }
  277|  1.01k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 505, False: 505]
  ------------------
  278|    505|            {
  279|    505|                visitor.end_array(context, ec);
  280|    505|                done_ = true;
  281|    505|                return;
  282|    505|            }
  283|  1.01k|        }
  284|  3.50k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 2.50k, False: 1.00k]
  |  Branch (284:44): [True: 1.50k, False: 1.00k]
  ------------------
  285|  1.50k|        {
  286|  1.50k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  1.50k|            ++dim_;
  288|  1.50k|            return;
  289|  1.50k|        }
  290|  2.00k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 505, False: 1.50k]
  ------------------
  291|    505|        {
  292|    505|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|    505|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|    505|            ++count_;
  295|    505|            return;
  296|    505|        }
  297|  1.50k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 1.50k, False: 0]
  ------------------
  298|  1.50k|        {
  299|  1.50k|            visitor.end_array(context, ec);
  300|  1.50k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 1.50k, False: 0]
  ------------------
  301|  1.50k|            {
  302|  1.50k|                --dim_;
  303|  1.50k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  1.50k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 0, False: 1.50k]
  ------------------
  305|      0|                {
  306|      0|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 0, False: 0]
  ------------------
  307|      0|                    {
  308|      0|                        dimensions_[i].index = dimensions_[i-1].index;
  309|      0|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|      0|                    }
  311|      0|                }
  312|  1.50k|            }
  313|  1.50k|        }
  314|  1.50k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIlEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|  1.03M|    {
   65|  1.03M|        visitor.int64_value(val, tag, context, ec);
   66|  1.03M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  10.9k|        : data_(std::move(data), alloc), 
  107|  10.9k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  10.9k|          array_tag_(array_tag), 
  109|  10.9k|          extent_(span_.size()), 
  110|  10.9k|          tag_(tag), 
  111|  10.9k|          func_(Func{})
  112|  10.9k|    {
  113|  10.9k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  2.09M|    {
  142|  2.09M|        return done_;
  143|  2.09M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  1.06M|    {
  148|  1.06M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  1.06M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 10.9k, False: 1.04M]
  |  |  ------------------
  ------------------
  149|  10.9k|        {
  150|  10.9k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  10.9k|            first_ = false;
  152|  10.9k|        }
  153|  1.04M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|  1.04M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 1.03M, False: 10.9k]
  |  |  ------------------
  ------------------
  154|  1.03M|        {
  155|  1.03M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  1.03M|            ++index_;
  157|  1.03M|        }
  158|  10.9k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 10.9k, False: 0]
  ------------------
  159|  10.9k|        {
  160|  10.9k|            visitor.end_array(context, ec);
  161|  10.9k|            done_ = true;
  162|  10.9k|        }
  163|  1.06M|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|  3.45k|        : data_(std::move(data), alloc), 
  200|  3.45k|          span_(typed_array_cast<ValueType>(data_)), 
  201|  3.45k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|  3.45k|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|  3.45k|    {
  204|  3.45k|        std::vector<std::size_t> strides(extents.size(), 0);
  205|  3.45k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 0, False: 3.45k]
  ------------------
  206|      0|        {
  207|      0|            std::size_t stride = 1;
  208|      0|            const size_t num_extents = extents.size();
  209|      0|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 0, False: 0]
  ------------------
  210|      0|            {
  211|      0|                strides[i] = stride;
  212|      0|                stride *= extents[i];
  213|      0|            }
  214|      0|        }
  215|  3.45k|        else
  216|  3.45k|        {
  217|  3.45k|            std::size_t stride = 1;
  218|  3.45k|            const size_t num_extents = extents.size();
  219|  13.8k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 10.3k, False: 3.45k]
  ------------------
  220|  10.3k|            {
  221|  10.3k|                strides[num_extents-i-1] = stride;
  222|  10.3k|                stride *= extents[num_extents-i-1];
  223|  10.3k|            }
  224|  3.45k|        }
  225|  13.8k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 10.3k, False: 3.45k]
  ------------------
  226|  10.3k|        {
  227|  10.3k|            dimensions_[i].extent = extents[i];
  228|  10.3k|            dimensions_[i].stride = strides[i];
  229|  10.3k|            dimensions_[i].index = 0;
  230|  10.3k|            dimensions_[i].end = strides[i]*extents[i];
  231|  10.3k|        }
  232|  3.45k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4doneEv:
  260|  41.4k|    {
  261|  41.4k|        return done_;
  262|  41.4k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  24.1k|    {
  267|  24.1k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  24.1k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 24.1k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  24.1k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 10.3k, False: 13.8k]
  ------------------
  270|  10.3k|        {
  271|  10.3k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 3.45k, False: 6.91k]
  ------------------
  272|  3.45k|            {
  273|  3.45k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|  3.45k|                first_ = false;
  275|  3.45k|                return;
  276|  3.45k|            }
  277|  6.91k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 3.45k, False: 3.45k]
  ------------------
  278|  3.45k|            {
  279|  3.45k|                visitor.end_array(context, ec);
  280|  3.45k|                done_ = true;
  281|  3.45k|                return;
  282|  3.45k|            }
  283|  6.91k|        }
  284|  17.2k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 10.3k, False: 6.90k]
  |  Branch (284:44): [True: 6.90k, False: 3.45k]
  ------------------
  285|  6.90k|        {
  286|  6.90k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  6.90k|            ++dim_;
  288|  6.90k|            return;
  289|  6.90k|        }
  290|  10.3k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 3.45k, False: 6.90k]
  ------------------
  291|  3.45k|        {
  292|  3.45k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|  3.45k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|  3.45k|            ++count_;
  295|  3.45k|            return;
  296|  3.45k|        }
  297|  6.90k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 6.90k, False: 0]
  ------------------
  298|  6.90k|        {
  299|  6.90k|            visitor.end_array(context, ec);
  300|  6.90k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 6.90k, False: 0]
  ------------------
  301|  6.90k|            {
  302|  6.90k|                --dim_;
  303|  6.90k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  6.90k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 0, False: 6.90k]
  ------------------
  305|      0|                {
  306|      0|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 0, False: 0]
  ------------------
  307|      0|                    {
  308|      0|                        dimensions_[i].index = dimensions_[i-1].index;
  309|      0|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|      0|                    }
  311|      0|                }
  312|  6.90k|            }
  313|  6.90k|        }
  314|  6.90k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIdEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   80|  34.0M|    {
   81|  34.0M|        visitor.double_value(val, tag, context, ec);
   82|  34.0M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  40.0k|        : data_(std::move(data), alloc), 
  107|  40.0k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  40.0k|          array_tag_(array_tag), 
  109|  40.0k|          extent_(span_.size()), 
  110|  40.0k|          tag_(tag), 
  111|  40.0k|          func_(Func{})
  112|  40.0k|    {
  113|  40.0k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4doneEv:
  141|  68.0M|    {
  142|  68.0M|        return done_;
  143|  68.0M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  34.0M|    {
  148|  34.0M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  34.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 40.0k, False: 34.0M]
  |  |  ------------------
  ------------------
  149|  40.0k|        {
  150|  40.0k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  40.0k|            first_ = false;
  152|  40.0k|        }
  153|  34.0M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|  34.0M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 34.0M, False: 40.0k]
  |  |  ------------------
  ------------------
  154|  34.0M|        {
  155|  34.0M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  34.0M|            ++index_;
  157|  34.0M|        }
  158|  40.0k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 40.0k, False: 0]
  ------------------
  159|  40.0k|        {
  160|  40.0k|            visitor.end_array(context, ec);
  161|  40.0k|            done_ = true;
  162|  40.0k|        }
  163|  34.0M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    648|        : data_(std::move(data), alloc), 
  200|    648|          span_(typed_array_cast<ValueType>(data_)), 
  201|    648|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    648|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    648|    {
  204|    648|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    648|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 0, False: 648]
  ------------------
  206|      0|        {
  207|      0|            std::size_t stride = 1;
  208|      0|            const size_t num_extents = extents.size();
  209|      0|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 0, False: 0]
  ------------------
  210|      0|            {
  211|      0|                strides[i] = stride;
  212|      0|                stride *= extents[i];
  213|      0|            }
  214|      0|        }
  215|    648|        else
  216|    648|        {
  217|    648|            std::size_t stride = 1;
  218|    648|            const size_t num_extents = extents.size();
  219|  2.21k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 1.56k, False: 648]
  ------------------
  220|  1.56k|            {
  221|  1.56k|                strides[num_extents-i-1] = stride;
  222|  1.56k|                stride *= extents[num_extents-i-1];
  223|  1.56k|            }
  224|    648|        }
  225|  2.21k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.56k, False: 648]
  ------------------
  226|  1.56k|        {
  227|  1.56k|            dimensions_[i].extent = extents[i];
  228|  1.56k|            dimensions_[i].stride = strides[i];
  229|  1.56k|            dimensions_[i].index = 0;
  230|  1.56k|            dimensions_[i].end = strides[i]*extents[i];
  231|  1.56k|        }
  232|    648|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  6.24k|    {
  261|  6.24k|        return done_;
  262|  6.24k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  3.77k|    {
  267|  3.77k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  3.77k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 3.77k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  3.77k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 1.94k, False: 1.82k]
  ------------------
  270|  1.94k|        {
  271|  1.94k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 648, False: 1.29k]
  ------------------
  272|    648|            {
  273|    648|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    648|                first_ = false;
  275|    648|                return;
  276|    648|            }
  277|  1.29k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 648, False: 648]
  ------------------
  278|    648|            {
  279|    648|                visitor.end_array(context, ec);
  280|    648|                done_ = true;
  281|    648|                return;
  282|    648|            }
  283|  1.29k|        }
  284|  2.47k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 1.37k, False: 1.10k]
  |  Branch (284:44): [True: 914, False: 457]
  ------------------
  285|    914|        {
  286|    914|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|    914|            ++dim_;
  288|    914|            return;
  289|    914|        }
  290|  1.56k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 648, False: 914]
  ------------------
  291|    648|        {
  292|    648|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|    648|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|    648|            ++count_;
  295|    648|            return;
  296|    648|        }
  297|    914|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 914, False: 0]
  ------------------
  298|    914|        {
  299|    914|            visitor.end_array(context, ec);
  300|    914|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 914, False: 0]
  ------------------
  301|    914|            {
  302|    914|                --dim_;
  303|    914|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|    914|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 0, False: 914]
  ------------------
  305|      0|                {
  306|      0|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 0, False: 0]
  ------------------
  307|      0|                    {
  308|      0|                        dimensions_[i].index = dimensions_[i-1].index;
  309|      0|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|      0|                    }
  311|      0|                }
  312|    914|            }
  313|    914|        }
  314|    914|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIfEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   80|   248k|    {
   81|   248k|        visitor.double_value(val, tag, context, ec);
   82|   248k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  8.49k|        : data_(std::move(data), alloc), 
  107|  8.49k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  8.49k|          array_tag_(array_tag), 
  109|  8.49k|          extent_(span_.size()), 
  110|  8.49k|          tag_(tag), 
  111|  8.49k|          func_(Func{})
  112|  8.49k|    {
  113|  8.49k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   512k|    {
  142|   512k|        return done_;
  143|   512k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   264k|    {
  148|   264k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|   264k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 8.49k, False: 256k]
  |  |  ------------------
  ------------------
  149|  8.49k|        {
  150|  8.49k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  8.49k|            first_ = false;
  152|  8.49k|        }
  153|   256k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|   256k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 247k, False: 8.49k]
  |  |  ------------------
  ------------------
  154|   247k|        {
  155|   247k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   247k|            ++index_;
  157|   247k|        }
  158|  8.49k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 8.49k, False: 0]
  ------------------
  159|  8.49k|        {
  160|  8.49k|            visitor.end_array(context, ec);
  161|  8.49k|            done_ = true;
  162|  8.49k|        }
  163|   264k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderERKS5_:
  199|    577|        : data_(std::move(data), alloc), 
  200|    577|          span_(typed_array_cast<ValueType>(data_)), 
  201|    577|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}), 
  202|    577|        dimensions_(extents.size(), mdarray_dimension{}, alloc)
  203|    577|    {
  204|    577|        std::vector<std::size_t> strides(extents.size(), 0);
  205|    577|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (205:13): [True: 0, False: 577]
  ------------------
  206|      0|        {
  207|      0|            std::size_t stride = 1;
  208|      0|            const size_t num_extents = extents.size();
  209|      0|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (209:32): [True: 0, False: 0]
  ------------------
  210|      0|            {
  211|      0|                strides[i] = stride;
  212|      0|                stride *= extents[i];
  213|      0|            }
  214|      0|        }
  215|    577|        else
  216|    577|        {
  217|    577|            std::size_t stride = 1;
  218|    577|            const size_t num_extents = extents.size();
  219|  2.30k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (219:32): [True: 1.73k, False: 577]
  ------------------
  220|  1.73k|            {
  221|  1.73k|                strides[num_extents-i-1] = stride;
  222|  1.73k|                stride *= extents[num_extents-i-1];
  223|  1.73k|            }
  224|    577|        }
  225|  2.30k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (225:33): [True: 1.73k, False: 577]
  ------------------
  226|  1.73k|        {
  227|  1.73k|            dimensions_[i].extent = extents[i];
  228|  1.73k|            dimensions_[i].stride = strides[i];
  229|  1.73k|            dimensions_[i].index = 0;
  230|  1.73k|            dimensions_[i].end = strides[i]*extents[i];
  231|  1.73k|        }
  232|    577|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEE4doneEv:
  260|  6.92k|    {
  261|  6.92k|        return done_;
  262|  6.92k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  266|  4.04k|    {
  267|  4.04k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  4.04k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 4.04k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  268|       |
  269|  4.04k|        if (dim_ == 0)
  ------------------
  |  Branch (269:13): [True: 1.73k, False: 2.31k]
  ------------------
  270|  1.73k|        {
  271|  1.73k|            if (first_)
  ------------------
  |  Branch (271:17): [True: 577, False: 1.15k]
  ------------------
  272|    577|            {
  273|    577|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  274|    577|                first_ = false;
  275|    577|                return;
  276|    577|            }
  277|  1.15k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (277:17): [True: 577, False: 577]
  ------------------
  278|    577|            {
  279|    577|                visitor.end_array(context, ec);
  280|    577|                done_ = true;
  281|    577|                return;
  282|    577|            }
  283|  1.15k|        }
  284|  2.88k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (284:13): [True: 1.73k, False: 1.15k]
  |  Branch (284:44): [True: 1.15k, False: 578]
  ------------------
  285|  1.15k|        {
  286|  1.15k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  287|  1.15k|            ++dim_;
  288|  1.15k|            return;
  289|  1.15k|        }
  290|  1.73k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (290:13): [True: 577, False: 1.15k]
  ------------------
  291|    577|        {
  292|    577|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  293|    577|            dimensions_[dim_].index += dimensions_[dim_].stride;
  294|    577|            ++count_;
  295|    577|            return;
  296|    577|        }
  297|  1.15k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (297:13): [True: 1.15k, False: 0]
  ------------------
  298|  1.15k|        {
  299|  1.15k|            visitor.end_array(context, ec);
  300|  1.15k|            if (dim_ > 0)
  ------------------
  |  Branch (300:17): [True: 1.15k, False: 0]
  ------------------
  301|  1.15k|            {
  302|  1.15k|                --dim_;
  303|  1.15k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  304|  1.15k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (304:21): [True: 0, False: 1.15k]
  ------------------
  305|      0|                {
  306|      0|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (306:50): [True: 0, False: 0]
  ------------------
  307|      0|                    {
  308|      0|                        dimensions_[i].index = dimensions_[i-1].index;
  309|      0|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  310|      0|                    }
  311|      0|                }
  312|  1.15k|            }
  313|  1.15k|        }
  314|  1.15k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  4.55k|        : data_(std::move(data), alloc), 
  107|  4.55k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  4.55k|          array_tag_(array_tag), 
  109|  4.55k|          extent_(span_.size()), 
  110|  4.55k|          tag_(tag), 
  111|  4.55k|          func_(Func{})
  112|  4.55k|    {
  113|  4.55k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   129k|    {
  142|   129k|        return done_;
  143|   129k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  69.5k|    {
  148|  69.5k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   78|  69.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4.55k, False: 64.9k]
  |  |  ------------------
  ------------------
  149|  4.55k|        {
  150|  4.55k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  4.55k|            first_ = false;
  152|  4.55k|        }
  153|  64.9k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   77|  64.9k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 60.4k, False: 4.55k]
  |  |  ------------------
  ------------------
  154|  60.4k|        {
  155|  60.4k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  60.4k|            ++index_;
  157|  60.4k|        }
  158|  4.55k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 4.55k, False: 0]
  ------------------
  159|  4.55k|        {
  160|  4.55k|            visitor.end_array(context, ec);
  161|  4.55k|            done_ = true;
  162|  4.55k|        }
  163|  69.5k|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2ERKNS3_6vectorImNS4_ImEEEEPNS0_17basic_cbor_parserIS6_S7_EEbRKS7_:
  337|  3.98k|        : extents_(extents, alloc), dimensions_(extents.size(), mdarray_dimension{}, alloc),
  338|  3.98k|          parser_(parser), cursor_mode_(cursor_mode)
  339|  3.98k|    {
  340|  3.98k|        std::vector<std::size_t> strides(extents.size(), 0);
  341|  3.98k|        std::size_t stride = 1;
  342|  3.98k|        const size_t num_extents = extents.size();
  343|  12.2k|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (343:28): [True: 8.28k, False: 3.98k]
  ------------------
  344|  8.28k|        {
  345|  8.28k|            strides[num_extents - i - 1] = stride;
  346|  8.28k|            stride *= extents[num_extents - i - 1];
  347|  8.28k|        }
  348|  12.2k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (348:33): [True: 8.28k, False: 3.98k]
  ------------------
  349|  8.28k|        {
  350|  8.28k|            dimensions_[i].extent = extents[i];
  351|  8.28k|            dimensions_[i].stride = strides[i];
  352|  8.28k|            dimensions_[i].index = 0;
  353|  8.28k|            dimensions_[i].end = strides[i] * extents[i];
  354|  8.28k|        }
  355|  3.98k|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5countEv:
  383|    557|    {
  384|    557|        return count_;
  385|    557|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  378|   110k|    {
  379|   110k|        return done_;
  380|   110k|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  389|   110k|    {
  390|   110k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|   110k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 110k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  391|       |
  392|   110k|        if (dim_ == 0)
  ------------------
  |  Branch (392:13): [True: 9.88k, False: 100k]
  ------------------
  393|  9.88k|        {
  394|  9.88k|            if (first_)
  ------------------
  |  Branch (394:17): [True: 3.98k, False: 5.90k]
  ------------------
  395|  3.98k|            {
  396|  3.98k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  397|  3.98k|                first_ = false;
  398|  3.98k|                return;
  399|  3.98k|            }
  400|  5.90k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (400:17): [True: 683, False: 5.22k]
  ------------------
  401|    683|            {
  402|    683|                visitor.end_array(context, ec);
  403|    683|                done_ = true;
  404|    683|                return;
  405|    683|            }
  406|  5.90k|        }
  407|   105k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (407:13): [True: 28.2k, False: 77.0k]
  |  Branch (407:44): [True: 20.6k, False: 7.64k]
  ------------------
  408|  20.6k|        {
  409|  20.6k|            if (!cursor_mode_)
  ------------------
  |  Branch (409:17): [True: 20.6k, False: 0]
  ------------------
  410|  20.6k|            {
  411|  20.6k|                visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  412|  20.6k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  20.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 20.6k]
  |  |  ------------------
  ------------------
  413|      0|                {
  414|      0|                    return;
  415|      0|                }
  416|  20.6k|            }
  417|  20.6k|            ++dim_;
  418|  20.6k|            return;
  419|  20.6k|        }
  420|  84.7k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (420:13): [True: 68.1k, False: 16.6k]
  ------------------
  421|  68.1k|        {
  422|  68.1k|            parser_->read_item(visitor, ec);
  423|  68.1k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  424|  68.1k|            ++count_;
  425|  68.1k|            return;
  426|  68.1k|        }
  427|  16.6k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (427:13): [True: 16.6k, False: 0]
  ------------------
  428|  16.6k|        {
  429|  16.6k|            if (!cursor_mode_)
  ------------------
  |  Branch (429:17): [True: 16.6k, False: 0]
  ------------------
  430|  16.6k|            {
  431|  16.6k|                visitor.end_array(context, ec);
  432|  16.6k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  16.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 16.6k]
  |  |  ------------------
  ------------------
  433|      0|                {
  434|      0|                    return;
  435|      0|                }
  436|  16.6k|            }
  437|  16.6k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  16.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 16.6k]
  |  |  ------------------
  ------------------
  438|      0|            {
  439|      0|                return;
  440|      0|            }
  441|  16.6k|            if (dim_ > 0)
  ------------------
  |  Branch (441:17): [True: 16.6k, False: 0]
  ------------------
  442|  16.6k|            {
  443|  16.6k|                --dim_;
  444|  16.6k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  445|  16.6k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (445:21): [True: 8.82k, False: 7.78k]
  ------------------
  446|  8.82k|                {
  447|  25.1k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (447:50): [True: 16.3k, False: 8.82k]
  ------------------
  448|  16.3k|                    {
  449|  16.3k|                        dimensions_[i].index = dimensions_[i-1].index;
  450|  16.3k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  451|  16.3k|                    }
  452|  8.82k|                }
  453|  16.6k|            }
  454|  16.6k|        }
  455|  16.6k|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2ERKNS3_6vectorImNS4_ImEEEEPNS0_17basic_cbor_parserIS6_S7_EEbRKS7_:
  478|     34|        : extents_(extents,alloc), dimensions_(extents.size(), mdarray_dimension{},alloc),
  479|     34|          parser_(parser), cursor_mode_(cursor_mode)
  480|     34|    {
  481|     34|        std::vector<std::size_t> strides(extents.size(), 0);
  482|     34|        std::size_t stride = 1;
  483|     34|        const size_t num_extents = extents.size();
  484|    142|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (484:28): [True: 108, False: 34]
  ------------------
  485|    108|        {
  486|    108|            strides[num_extents - i - 1] = stride;
  487|    108|            stride *= extents[num_extents - i - 1];
  488|    108|        }
  489|    142|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (489:33): [True: 108, False: 34]
  ------------------
  490|    108|        {
  491|    108|            dimensions_[i].extent = extents[i];
  492|    108|            dimensions_[i].stride = strides[i];
  493|    108|            dimensions_[i].index = 0;
  494|    108|            dimensions_[i].end = strides[i] * extents[i];
  495|    108|        }
  496|     34|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5countEv:
  524|      1|    {
  525|      1|        return count_;
  526|      1|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  519|  17.5k|    {
  520|  17.5k|        return done_;
  521|  17.5k|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  530|  17.5k|    {
  531|  17.5k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   49|  17.5k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 17.5k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  532|       |
  533|  17.5k|        if (dim_ == 0)
  ------------------
  |  Branch (533:13): [True: 81, False: 17.4k]
  ------------------
  534|     81|        {
  535|     81|            if (first_)
  ------------------
  |  Branch (535:17): [True: 34, False: 47]
  ------------------
  536|     34|            {
  537|     34|                if (!cursor_mode_)
  ------------------
  |  Branch (537:21): [True: 34, False: 0]
  ------------------
  538|     34|                {
  539|     34|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::multi_dim_column_major, context, ec);
  540|     34|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  541|     34|                    for (auto item : dimensions_)
  ------------------
  |  Branch (541:36): [True: 108, False: 34]
  ------------------
  542|    108|                    {
  543|    108|                        visitor.uint64_value(item.extent, semantic_tag::none, context, ec);
  544|    108|                    }
  545|     34|                    visitor.end_array(context, ec);
  546|     34|                }
  547|     34|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  548|     34|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|     34|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 34]
  |  |  ------------------
  ------------------
  549|      0|                {
  550|      0|                    return;
  551|      0|                }
  552|     34|                first_ = false;
  553|     34|                return;
  554|     34|            }
  555|     47|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (555:17): [True: 1, False: 46]
  ------------------
  556|      1|            {
  557|      1|                visitor.end_array(context, ec);
  558|      1|                if (!cursor_mode_)
  ------------------
  |  Branch (558:21): [True: 1, False: 0]
  ------------------
  559|      1|                {
  560|      1|                    visitor.end_array(context, ec);
  561|      1|                }
  562|      1|                done_ = true;
  563|      1|                return;
  564|      1|            }
  565|     47|        }
  566|  17.4k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (566:13): [True: 1.04k, False: 16.4k]
  |  Branch (566:44): [True: 964, False: 78]
  ------------------
  567|    964|        {
  568|    964|            ++dim_;
  569|    964|            return;
  570|    964|        }
  571|  16.5k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (571:13): [True: 15.6k, False: 890]
  ------------------
  572|  15.6k|        {
  573|  15.6k|            parser_->read_item(visitor, ec);
  574|  15.6k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  575|  15.6k|            ++count_;
  576|  15.6k|            return;
  577|  15.6k|        }
  578|    890|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (578:13): [True: 890, False: 0]
  ------------------
  579|    890|        {
  580|    890|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|    890|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 890]
  |  |  ------------------
  ------------------
  581|      0|            {
  582|      0|                return;
  583|      0|            }
  584|    890|            if (dim_ > 0)
  ------------------
  |  Branch (584:17): [True: 890, False: 0]
  ------------------
  585|    890|            {
  586|    890|                --dim_;
  587|    890|                dimensions_[dim_].index += dimensions_[dim_].stride;
  588|    890|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (588:21): [True: 812, False: 78]
  ------------------
  589|    812|                {
  590|  1.70k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (590:50): [True: 890, False: 812]
  ------------------
  591|    890|                    {
  592|    890|                        dimensions_[i].index = dimensions_[i-1].index;
  593|    890|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  594|    890|                    }
  595|    812|                }
  596|    890|            }
  597|    890|        }
  598|    890|    }

_ZN8jsoncons4cbor11decode_cborINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEJRNS4_19basic_istringstreamIcNS4_11char_traitsIcEES6_EEEEET_DpOT0_:
  255|  11.0k|{
  256|  11.0k|    auto result = try_decode_cbor<T>(std::forward<Args>(args)...); 
  257|  11.0k|    if (!result)
  ------------------
  |  Branch (257:9): [True: 8.13k, False: 2.89k]
  ------------------
  258|  8.13k|    {
  259|  8.13k|        JSONCONS_THROW(ser_error(result.error().code(), result.error().line(), result.error().column()));
  ------------------
  |  |   35|  8.13k|    #define JSONCONS_THROW(exception) throw exception
  ------------------
  260|  8.13k|    }
  261|  2.89k|    return std::move(*result);
  262|  11.0k|}
_ZN8jsoncons4cbor15try_decode_cborINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEENS4_9enable_ifIXsr10ext_traits13is_basic_jsonIT_EE5valueENS_6detail8expectedIS9_NS_10read_errorEEEE4typeERNS4_13basic_istreamIcNS4_11char_traitsIcEEEERKNS0_19cbor_decode_optionsE:
   78|  11.0k|{
   79|  11.0k|    using value_type = T;
   80|  11.0k|    using result_type = read_result<value_type>;
   81|       |
   82|  11.0k|    std::error_code ec;   
   83|  11.0k|    jsoncons::json_decoder<T> decoder;
   84|  11.0k|    auto adaptor = make_json_visitor_adaptor<json_visitor>(decoder);
   85|  11.0k|    cbor_stream_reader reader(is, adaptor, options);
   86|  11.0k|    reader.read(ec);
   87|  11.0k|    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  11.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 8.13k, False: 2.89k]
  |  |  ------------------
  ------------------
   88|  8.13k|    {
   89|  8.13k|        return result_type{jsoncons::unexpect, ec, reader.line(), reader.column()};
   90|  8.13k|    }
   91|  2.89k|    if (JSONCONS_UNLIKELY(!decoder.is_valid()))
  ------------------
  |  |   78|  2.89k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 2.89k]
  |  |  ------------------
  ------------------
   92|      0|    {
   93|      0|        return result_type{jsoncons::unexpect, conv_errc::conversion_failed, reader.line(), reader.column()};
   94|      0|    }
   95|  2.89k|    return result_type{decoder.get_result()};
   96|  2.89k|}

