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

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

_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEED2Ev:
 2777|   148M|        {
 2778|   148M|             destroy();
 2779|   148M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE7destroyEv:
  901|   148M|        {
  902|   148M|            switch (storage_kind())
  903|   148M|            {
  904|   361k|                case json_storage_kind::long_str:
  ------------------
  |  Branch (904:17): [True: 361k, False: 148M]
  ------------------
  905|   361k|                {
  906|   361k|                    if (cast<long_string_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (906:25): [True: 361k, False: 0]
  ------------------
  907|   361k|                    {
  908|   361k|                        long_string_storage::heap_string_factory_type::destroy(cast<long_string_storage>().ptr_);
  909|   361k|                    }
  910|   361k|                    break;
  911|      0|                }
  912|  5.34M|                case json_storage_kind::byte_str:
  ------------------
  |  Branch (912:17): [True: 5.34M, False: 143M]
  ------------------
  913|  5.34M|                    if (cast<byte_string_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (913:25): [True: 5.34M, False: 0]
  ------------------
  914|  5.34M|                    {
  915|  5.34M|                        byte_string_storage::heap_string_factory_type::destroy(cast<byte_string_storage>().ptr_);
  916|  5.34M|                    }
  917|  5.34M|                    break;
  918|  5.42M|                case json_storage_kind::array:
  ------------------
  |  Branch (918:17): [True: 5.42M, False: 143M]
  ------------------
  919|  5.42M|                {
  920|  5.42M|                    if (cast<array_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (920:25): [True: 5.42M, False: 0]
  ------------------
  921|  5.42M|                    {
  922|  5.42M|                        auto& stor = cast<array_storage>();
  923|  5.42M|                        typename array_storage::allocator_type alloc{stor.ptr_->get_allocator()};
  924|  5.42M|                        std::allocator_traits<typename array_storage::allocator_type>::destroy(alloc, ext_traits::to_plain_pointer(stor.ptr_));
  925|  5.42M|                        std::allocator_traits<typename array_storage::allocator_type>::deallocate(alloc, stor.ptr_,1);
  926|  5.42M|                    }
  927|  5.42M|                    break;
  928|      0|                }
  929|  4.07M|                case json_storage_kind::object:
  ------------------
  |  Branch (929:17): [True: 4.07M, False: 144M]
  ------------------
  930|  4.07M|                {
  931|  4.07M|                    if (cast<object_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (931:25): [True: 4.07M, False: 0]
  ------------------
  932|  4.07M|                    {
  933|  4.07M|                        auto& stor = cast<object_storage>();
  934|  4.07M|                        typename object_storage::allocator_type alloc{stor.ptr_->get_allocator()};
  935|  4.07M|                        std::allocator_traits<typename object_storage::allocator_type>::destroy(alloc, ext_traits::to_plain_pointer(stor.ptr_));
  936|  4.07M|                        std::allocator_traits<typename object_storage::allocator_type>::deallocate(alloc, stor.ptr_,1);
  937|  4.07M|                    }
  938|  4.07M|                    break;
  939|      0|                }
  940|   133M|                default:
  ------------------
  |  Branch (940:17): [True: 133M, False: 15.2M]
  ------------------
  941|   133M|                    break;
  942|   148M|            }
  943|   148M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12storage_kindEv:
 1465|   432M|        {
 1466|       |            // It is legal to access 'common_.storage_kind_' even though 
 1467|       |            // common_ is not the active member of the union because 'storage_kind_' 
 1468|       |            // is a part of the common initial sequence of all union members
 1469|       |            // as defined in 11.4-25 of the Standard.
 1470|   432M|            return static_cast<json_storage_kind>(common_.storage_kind_);
 1471|   432M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_19long_string_storageEEERT_v:
 1007|  2.52M|        {
 1008|  2.52M|            return cast(identity<T>());
 1009|  2.52M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_19long_string_storageEEE:
 1098|  2.52M|        {
 1099|  2.52M|            return long_str_;
 1100|  2.52M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_19byte_string_storageEEERT_v:
 1007|  46.7M|        {
 1008|  46.7M|            return cast(identity<T>());
 1009|  46.7M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_19byte_string_storageEEE:
 1108|  46.7M|        {
 1109|  46.7M|            return byte_str_;
 1110|  46.7M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13array_storageEEERT_v:
 1007|  67.8M|        {
 1008|  67.8M|            return cast(identity<T>());
 1009|  67.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13array_storageEEE:
 1128|  67.8M|        {
 1129|  67.8M|            return array_;
 1130|  67.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EOS5_:
 2310|   104M|        {
 2311|   104M|            uninitialized_move(std::move(other));
 2312|   104M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18uninitialized_moveEOS5_:
 1305|   104M|        {
 1306|   104M|            if (is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1306:17): [True: 69.6M, False: 34.4M]
  ------------------
 1307|  69.6M|            {
 1308|  69.6M|                std::memcpy(static_cast<void*>(this), &other, sizeof(basic_json));
 1309|  69.6M|            }
 1310|  34.4M|            else
 1311|  34.4M|            {
 1312|  34.4M|                switch (other.storage_kind())
 1313|  34.4M|                {
 1314|   627k|                    case json_storage_kind::long_str:
  ------------------
  |  Branch (1314:21): [True: 627k, False: 33.8M]
  ------------------
 1315|   627k|                        construct<long_string_storage>(other.cast<long_string_storage>());
 1316|   627k|                        other.construct<null_storage>();
 1317|   627k|                        break;
 1318|  12.5M|                    case json_storage_kind::byte_str:
  ------------------
  |  Branch (1318:21): [True: 12.5M, False: 21.9M]
  ------------------
 1319|  12.5M|                        construct<byte_string_storage>(other.cast<byte_string_storage>());
 1320|  12.5M|                        other.construct<null_storage>();
 1321|  12.5M|                        break;
 1322|  12.6M|                    case json_storage_kind::array:
  ------------------
  |  Branch (1322:21): [True: 12.6M, False: 21.8M]
  ------------------
 1323|  12.6M|                        construct<array_storage>(other.cast<array_storage>());
 1324|  12.6M|                        other.construct<null_storage>();
 1325|  12.6M|                        break;
 1326|  8.67M|                    case json_storage_kind::object:
  ------------------
  |  Branch (1326:21): [True: 8.67M, False: 25.8M]
  ------------------
 1327|  8.67M|                        construct<object_storage>(other.cast<object_storage>());
 1328|  8.67M|                        other.construct<null_storage>();
 1329|  8.67M|                        break;
 1330|      0|                    default:
  ------------------
  |  Branch (1330:21): [True: 0, False: 34.4M]
  ------------------
 1331|      0|                        JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1332|      0|                        break;
 1333|  34.4M|                }
 1334|  34.4M|            }
 1335|   104M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19long_string_storageEJRS7_EEEvDpOT0_:
  998|   718k|        {
  999|   718k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|   718k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19long_string_storageC2ERKS6_:
  629|   808k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  630|   808k|            {
  631|   808k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJEEEvDpOT0_:
  998|  34.4M|        {
  999|  34.4M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  34.4M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12null_storageEEERT_v:
 1007|  51.1M|        {
 1008|  51.1M|            return cast(identity<T>());
 1009|  51.1M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12null_storageEEE:
 1018|  51.1M|        {
 1019|  51.1M|            return null_;
 1020|  51.1M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12null_storageC2ENS_12semantic_tagE:
  450|  35.5M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::null)), short_str_length_(0), tag_(tag)
  451|  35.5M|            {
  452|  35.5M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRS7_EEEvDpOT0_:
  998|  15.3M|        {
  999|  15.3M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  15.3M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19byte_string_storageC2ERKS6_:
  678|  18.2M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  679|  18.2M|            {
  680|  18.2M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13array_storageEJRS7_EEEvDpOT0_:
  998|  15.7M|        {
  999|  15.7M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  15.7M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storageC2ERKS6_:
  730|  18.8M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  731|  18.8M|            {
  732|  18.8M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14object_storageEJRS7_EEEvDpOT0_:
  998|  11.1M|        {
  999|  11.1M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  11.1M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storageC2ERKS6_:
  780|  13.5M|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  781|  13.5M|            {
  782|  13.5M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE11array_rangeEv:
 4762|  1.77M|        {
 4763|  1.77M|            switch (storage_kind())
 4764|  1.77M|            {
 4765|  1.77M|                case json_storage_kind::array:
  ------------------
  |  Branch (4765:17): [True: 1.77M, False: 0]
  ------------------
 4766|  1.77M|                    return array_range_type(cast<array_storage>().value().begin(),
 4767|  1.77M|                        cast<array_storage>().value().end());
 4768|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4768:17): [True: 0, False: 1.77M]
  ------------------
 4769|      0|                    return cast<json_ref_storage>().value().array_range();
 4770|      0|                default:
  ------------------
  |  Branch (4770:17): [True: 0, False: 1.77M]
  ------------------
 4771|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an array"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4772|  1.77M|            }
 4773|  1.77M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storage5valueEv:
  753|  20.0M|            {
  754|  20.0M|                return *ptr_;
  755|  20.0M|            }
_ZN8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEEC2ERKS9_SF_:
  348|  1.77M|            : first_(first), last_(last)
  349|  1.77M|        {
  350|  1.77M|        }
_ZNK8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEE5beginEv:
  353|  1.77M|        {
  354|  1.77M|            return first_;
  355|  1.77M|        }
_ZNK8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEE3endEv:
  357|  1.77M|        {
  358|  1.77M|            return last_;
  359|  1.77M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE5emptyEv:
 3428|  1.34M|        {
 3429|  1.34M|            switch (storage_kind())
 3430|  1.34M|            {
 3431|      0|                case json_storage_kind::byte_str:
  ------------------
  |  Branch (3431:17): [True: 0, False: 1.34M]
  ------------------
 3432|      0|                    return cast<byte_string_storage>().length() == 0;
 3433|      0|                    break;
 3434|      0|                case json_storage_kind::short_str:
  ------------------
  |  Branch (3434:17): [True: 0, False: 1.34M]
  ------------------
 3435|      0|                    return cast<short_string_storage>().length() == 0;
 3436|      0|                case json_storage_kind::long_str:
  ------------------
  |  Branch (3436:17): [True: 0, False: 1.34M]
  ------------------
 3437|      0|                    return cast<long_string_storage>().length() == 0;
 3438|  1.16M|                case json_storage_kind::array:
  ------------------
  |  Branch (3438:17): [True: 1.16M, False: 180k]
  ------------------
 3439|  1.16M|                    return cast<array_storage>().value().empty();
 3440|      0|                case json_storage_kind::empty_object:
  ------------------
  |  Branch (3440:17): [True: 0, False: 1.34M]
  ------------------
 3441|      0|                    return true;
 3442|   180k|                case json_storage_kind::object:
  ------------------
  |  Branch (3442:17): [True: 180k, False: 1.16M]
  ------------------
 3443|   180k|                    return cast<object_storage>().value().empty();
 3444|      0|                case json_storage_kind::const_json_ref:
  ------------------
  |  Branch (3444:17): [True: 0, False: 1.34M]
  ------------------
 3445|      0|                    return cast<const_json_ref_storage>().value().empty();
 3446|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (3446:17): [True: 0, False: 1.34M]
  ------------------
 3447|      0|                    return cast<json_ref_storage>().value().empty();
 3448|      0|                default:
  ------------------
  |  Branch (3448:17): [True: 0, False: 1.34M]
  ------------------
 3449|      0|                    return false;
 3450|  1.34M|            }
 3451|  1.34M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13array_storageEEERKT_v:
 1013|  1.16M|        {
 1014|  1.16M|            return cast(identity<T>());
 1015|  1.16M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13array_storageEEE:
 1133|  1.16M|        {
 1134|  1.16M|            return array_;
 1135|  1.16M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storage5valueEv:
  758|  1.16M|            {
  759|  1.16M|                return *ptr_;
  760|  1.16M|            }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14object_storageEEERKT_v:
 1013|   180k|        {
 1014|   180k|            return cast(identity<T>());
 1015|   180k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14object_storageEEE:
 1123|   180k|        {
 1124|   180k|            return object_;
 1125|   180k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storage5valueEv:
  804|   180k|            {
  805|   180k|                JSONCONS_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   67|   180k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 180k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  806|   180k|                return *ptr_;
  807|   180k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE5clearEv:
 4159|  2.01M|        {
 4160|  2.01M|            switch (storage_kind())
 4161|  2.01M|            {
 4162|  1.77M|                case json_storage_kind::array:
  ------------------
  |  Branch (4162:17): [True: 1.77M, False: 240k]
  ------------------
 4163|  1.77M|                    cast<array_storage>().value().clear();
 4164|  1.77M|                    break;
 4165|   240k|                case json_storage_kind::object:
  ------------------
  |  Branch (4165:17): [True: 240k, False: 1.77M]
  ------------------
 4166|   240k|                    cast<object_storage>().value().clear();
 4167|   240k|                    break;
 4168|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4168:17): [True: 0, False: 2.01M]
  ------------------
 4169|      0|                    cast<json_ref_storage>().value().clear();
 4170|      0|                    break;
 4171|      0|                default:
  ------------------
  |  Branch (4171:17): [True: 0, False: 2.01M]
  ------------------
 4172|      0|                    break;
 4173|  2.01M|            }
 4174|  2.01M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storage5valueEv:
  798|   752k|            {
  799|   752k|                JSONCONS_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   67|   752k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 752k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  800|   752k|                return *ptr_;
  801|   752k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12object_rangeEv:
 4728|   240k|        {
 4729|   240k|            switch (storage_kind())
 4730|   240k|            {
 4731|      0|                case json_storage_kind::empty_object:
  ------------------
  |  Branch (4731:17): [True: 0, False: 240k]
  ------------------
 4732|      0|                    return object_range_type(object_iterator(), object_iterator());
 4733|   240k|                case json_storage_kind::object:
  ------------------
  |  Branch (4733:17): [True: 240k, False: 0]
  ------------------
 4734|   240k|                    return object_range_type(object_iterator(cast<object_storage>().value().begin()),
 4735|   240k|                                                  object_iterator(cast<object_storage>().value().end()));
 4736|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4736:17): [True: 0, False: 240k]
  ------------------
 4737|      0|                    return cast<json_ref_storage>().value().object_range();
 4738|      0|                default:
  ------------------
  |  Branch (4738:17): [True: 0, False: 240k]
  ------------------
 4739|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an object"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4740|   240k|            }
 4741|   240k|        }
_ZN8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEEC2ERKSI_SP_:
  348|   240k|            : first_(first), last_(last)
  349|   240k|        {
  350|   240k|        }
_ZN8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEC2ESG_:
  118|   480k|            explicit json_object_iterator_adaptor(Iterator ptr) : current_(ptr), has_value_(true)  
  119|   480k|            {
  120|   480k|            }
_ZNK8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEE5beginEv:
  353|   240k|        {
  354|   240k|            return first_;
  355|   240k|        }
_ZNK8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEE3endEv:
  357|   240k|        {
  358|   240k|            return last_;
  359|   240k|        }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEneERKSH_:
  218|   277k|            {
  219|   277k|                return !(*this == rhs);
  220|   277k|            }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEeqERKSH_:
  209|   277k|            {
  210|   277k|                if (JSONCONS_LIKELY(has_value_ && rhs.has_value_))
  ------------------
  |  |   78|   554k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 277k, False: 0]
  |  |  |  Branch (78:48): [True: 277k, False: 0]
  |  |  |  Branch (78:48): [True: 277k, False: 0]
  |  |  ------------------
  ------------------
  211|   277k|                {
  212|   277k|                    return current_ == rhs.current_;
  213|   277k|                }
  214|      0|                return !has_value_ && !rhs.has_value_;
  ------------------
  |  Branch (214:24): [True: 0, False: 0]
  |  Branch (214:39): [True: 0, False: 0]
  ------------------
  215|   277k|            }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEdeEv:
  140|  37.4k|            {
  141|  37.4k|                return *current_;
  142|  37.4k|            }
_ZN8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEppEv:
  150|  37.4k|            {
  151|  37.4k|                ++current_;
  152|  37.4k|                return *this;
  153|  37.4k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14object_storageEEERT_v:
 1007|  35.2M|        {
 1008|  35.2M|            return cast(identity<T>());
 1009|  35.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14object_storageEEE:
 1118|  35.2M|        {
 1119|  35.2M|            return object_;
 1120|  35.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2Ev:
 2278|  15.8k|        {
 2279|  15.8k|            construct<empty_object_storage>(semantic_tag::none);
 2280|  15.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20empty_object_storageEJNS_12semantic_tagEEEEvDpOT0_:
  998|  15.8k|        {
  999|  15.8k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  15.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_20empty_object_storageEEERT_v:
 1007|  24.9k|        {
 1008|  24.9k|            return cast(identity<T>());
 1009|  24.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_20empty_object_storageEEE:
 1028|  24.9k|        {
 1029|  24.9k|            return empty_object_;
 1030|  24.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20empty_object_storageC2ENS_12semantic_tagE:
  462|  15.8k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::empty_object)), short_str_length_(0), tag_(tag)
  463|  15.8k|            {
  464|  15.8k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE7reserveEm:
 3487|  1.76M|        {
 3488|  1.76M|            if (n > 0)
  ------------------
  |  Branch (3488:17): [True: 1.76M, False: 0]
  ------------------
 3489|  1.76M|            {
 3490|  1.76M|                switch (storage_kind())
 3491|  1.76M|                {
 3492|  1.76M|                    case json_storage_kind::array:
  ------------------
  |  Branch (3492:21): [True: 1.76M, False: 0]
  ------------------
 3493|  1.76M|                        cast<array_storage>().value().reserve(n);
 3494|  1.76M|                        break;
 3495|      0|                    case json_storage_kind::empty_object:
  ------------------
  |  Branch (3495:21): [True: 0, False: 1.76M]
  ------------------
 3496|      0|                        create_object_implicitly();
 3497|      0|                        cast<object_storage>().value().reserve(n);
 3498|      0|                        break;
 3499|      0|                    case json_storage_kind::object:
  ------------------
  |  Branch (3499:21): [True: 0, False: 1.76M]
  ------------------
 3500|      0|                        cast<object_storage>().value().reserve(n);
 3501|      0|                        break;
 3502|      0|                    case json_storage_kind::json_ref:
  ------------------
  |  Branch (3502:21): [True: 0, False: 1.76M]
  ------------------
 3503|      0|                        cast<json_ref_storage>().value().reserve(n);
 3504|      0|                        break;
 3505|      0|                    default:
  ------------------
  |  Branch (3505:21): [True: 0, False: 1.76M]
  ------------------
 3506|      0|                        break;
 3507|  1.76M|                }
 3508|  1.76M|            }
 3509|  1.76M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_17json_object_arg_tENS_12semantic_tagERKS4_:
 2323|  4.07M|        {
 2324|  4.07M|            auto ptr = create_object(alloc);
 2325|  4.07M|            construct<object_storage>(ptr, tag);
 2326|  4.07M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13create_objectIJEEEPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEERKS4_DpOT_:
  979|  4.07M|        {
  980|  4.07M|            using stor_allocator_type = typename object_storage::allocator_type;
  981|  4.07M|            stor_allocator_type stor_alloc(alloc);
  982|  4.07M|            auto ptr = std::allocator_traits<stor_allocator_type>::allocate(stor_alloc, 1);
  983|  4.07M|            JSONCONS_TRY
  ------------------
  |  |   37|  4.07M|    #define JSONCONS_TRY try
  ------------------
  984|  4.07M|            {
  985|  4.07M|                std::allocator_traits<stor_allocator_type>::construct(stor_alloc, ext_traits::to_plain_pointer(ptr), 
  986|  4.07M|                    std::forward<Args>(args)...);
  987|  4.07M|            }
  988|  4.07M|            JSONCONS_CATCH(...)
  989|  4.07M|            {
  990|      0|                std::allocator_traits<stor_allocator_type>::deallocate(stor_alloc, ptr,1);
  991|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  992|      0|            }
  993|  4.07M|            return ptr;
  994|  4.07M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14object_storageEJRPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEERNS_12semantic_tagEEEEvDpOT0_:
  998|  4.07M|        {
  999|  4.07M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  4.07M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storageC2EPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEENS_12semantic_tagE:
  775|  4.07M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::object)), short_str_length_(0), tag_(tag), ptr_(ptr)
  776|  4.07M|            {
  777|  4.07M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9push_backEOS5_:
 4704|  12.9M|        {
 4705|  12.9M|            switch (storage_kind())
 4706|  12.9M|            {
 4707|  12.9M|                case json_storage_kind::array:
  ------------------
  |  Branch (4707:17): [True: 12.9M, False: 0]
  ------------------
 4708|  12.9M|                    cast<array_storage>().value().push_back(std::move(val));
 4709|  12.9M|                    break;
 4710|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4710:17): [True: 0, False: 12.9M]
  ------------------
 4711|      0|                    cast<json_ref_storage>().value().push_back(std::move(val));
 4712|      0|                    break;
 4713|      0|                default:
  ------------------
  |  Branch (4713:17): [True: 0, False: 12.9M]
  ------------------
 4714|      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
  ------------------
 4715|  12.9M|            }
 4716|  12.9M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEaSEOS5_:
 1456|  37.2M|        {
 1457|  37.2M|            if (this != &other)
  ------------------
  |  Branch (1457:17): [True: 37.2M, False: 0]
  ------------------
 1458|  37.2M|            {
 1459|  37.2M|                move_assignment(std::move(other));
 1460|  37.2M|            }
 1461|  37.2M|            return *this;
 1462|  37.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE15move_assignmentEOS5_:
 1418|  37.2M|        {
 1419|  37.2M|            if (is_trivial_storage(storage_kind()) && is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1419:17): [True: 37.2M, False: 0]
  |  Branch (1419:55): [True: 28.7M, False: 8.48M]
  ------------------
 1420|  28.7M|            {
 1421|  28.7M|                std::memcpy(static_cast<void*>(this), &other, sizeof(basic_json));
 1422|  28.7M|            }
 1423|  8.48M|            else
 1424|  8.48M|            {
 1425|  8.48M|                swap(other);
 1426|  8.48M|            }
 1427|  37.2M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4swapERS5_:
 1937|  8.48M|        {
 1938|  8.48M|            if (this == &other)
  ------------------
  |  Branch (1938:17): [True: 0, False: 8.48M]
  ------------------
 1939|      0|            {
 1940|      0|                return;
 1941|      0|            }
 1942|  8.48M|            if (is_trivial_storage(storage_kind()) && is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1942:17): [True: 8.48M, False: 0]
  |  Branch (1942:55): [True: 0, False: 8.48M]
  ------------------
 1943|      0|            {
 1944|      0|                basic_json temp;               
 1945|      0|                std::memcpy(static_cast<void*>(&temp), static_cast<void*>(&other), sizeof(basic_json));
 1946|      0|                std::memcpy(static_cast<void*>(&other), static_cast<void*>(this), sizeof(basic_json));
 1947|      0|                std::memcpy(static_cast<void*>(this), static_cast<void*>(&temp), sizeof(basic_json));
 1948|      0|            }
 1949|  8.48M|            else
 1950|  8.48M|            {
 1951|  8.48M|                switch (storage_kind())
 1952|  8.48M|                {
 1953|  7.78M|                    case json_storage_kind::null: swap_l<null_storage>(other); break;
  ------------------
  |  Branch (1953:21): [True: 7.78M, False: 702k]
  ------------------
 1954|  4.50k|                    case json_storage_kind::empty_object : swap_l<empty_object_storage>(other); break;
  ------------------
  |  Branch (1954:21): [True: 4.50k, False: 8.48M]
  ------------------
 1955|  30.5k|                    case json_storage_kind::boolean: swap_l<bool_storage>(other); break;
  ------------------
  |  Branch (1955:21): [True: 30.5k, False: 8.45M]
  ------------------
 1956|   233k|                    case json_storage_kind::int64: swap_l<int64_storage>(other); break;
  ------------------
  |  Branch (1956:21): [True: 233k, False: 8.25M]
  ------------------
 1957|   294k|                    case json_storage_kind::uint64: swap_l<uint64_storage>(other); break;
  ------------------
  |  Branch (1957:21): [True: 294k, False: 8.19M]
  ------------------
 1958|   109k|                    case json_storage_kind::half_float: swap_l<half_storage>(other); break;
  ------------------
  |  Branch (1958:21): [True: 109k, False: 8.37M]
  ------------------
 1959|  2.81k|                    case json_storage_kind::float64: swap_l<double_storage>(other); break;
  ------------------
  |  Branch (1959:21): [True: 2.81k, False: 8.48M]
  ------------------
 1960|  26.5k|                    case json_storage_kind::short_str: swap_l<short_string_storage>(other); break;
  ------------------
  |  Branch (1960:21): [True: 26.5k, False: 8.46M]
  ------------------
 1961|      0|                    case json_storage_kind::long_str: swap_l<long_string_storage>(other); break;
  ------------------
  |  Branch (1961:21): [True: 0, False: 8.48M]
  ------------------
 1962|      0|                    case json_storage_kind::byte_str: swap_l<byte_string_storage>(other); break;
  ------------------
  |  Branch (1962:21): [True: 0, False: 8.48M]
  ------------------
 1963|      0|                    case json_storage_kind::array: swap_l<array_storage>(other); break;
  ------------------
  |  Branch (1963:21): [True: 0, False: 8.48M]
  ------------------
 1964|      0|                    case json_storage_kind::object: swap_l<object_storage>(other); break;
  ------------------
  |  Branch (1964:21): [True: 0, False: 8.48M]
  ------------------
 1965|      0|                    case json_storage_kind::const_json_ref: swap_l<const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1965:21): [True: 0, False: 8.48M]
  ------------------
 1966|      0|                    case json_storage_kind::json_ref: swap_l<json_ref_storage>(other); break;
  ------------------
  |  Branch (1966:21): [True: 0, False: 8.48M]
  ------------------
 1967|      0|                    default:
  ------------------
  |  Branch (1967:21): [True: 0, False: 8.48M]
  ------------------
 1968|      0|                        JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1969|      0|                        break;
 1970|  8.48M|                }
 1971|  8.48M|            }
 1972|  8.48M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12null_storageEEEvRS5_:
 1173|  7.78M|        {
 1174|  7.78M|            switch (other.storage_kind())
 1175|  7.78M|            {
 1176|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 7.78M]
  ------------------
 1177|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 7.78M]
  ------------------
 1178|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 7.78M]
  ------------------
 1179|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 7.78M]
  ------------------
 1180|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 7.78M]
  ------------------
 1181|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 7.78M]
  ------------------
 1182|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 0, False: 7.78M]
  ------------------
 1183|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 0, False: 7.78M]
  ------------------
 1184|  67.8k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 67.8k, False: 7.71M]
  ------------------
 1185|  2.35M|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 2.35M, False: 5.42M]
  ------------------
 1186|  3.02M|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 3.02M, False: 4.76M]
  ------------------
 1187|  2.34M|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1187:17): [True: 2.34M, False: 5.44M]
  ------------------
 1188|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1188:17): [True: 0, False: 7.78M]
  ------------------
 1189|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1189:17): [True: 0, False: 7.78M]
  ------------------
 1190|      0|                default:
  ------------------
  |  Branch (1190:17): [True: 0, False: 7.78M]
  ------------------
 1191|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1192|      0|                    break;
 1193|  7.78M|            }
 1194|  7.78M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJRS7_EEEvDpOT0_:
  998|  7.78M|        {
  999|  7.78M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  7.78M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20empty_object_storageEJRS7_EEEvDpOT0_:
  998|  4.50k|        {
  999|  4.50k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  4.50k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12bool_storageEEERT_v:
 1007|  3.13M|        {
 1008|  3.13M|            return cast(identity<T>());
 1009|  3.13M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12bool_storageEEE:
 1038|  3.13M|        {
 1039|  3.13M|            return boolean_;
 1040|  3.13M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12bool_storageEJRS7_EEEvDpOT0_:
  998|  30.5k|        {
  999|  30.5k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  30.5k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13int64_storageEEERT_v:
 1007|  5.27M|        {
 1008|  5.27M|            return cast(identity<T>());
 1009|  5.27M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13int64_storageEEE:
 1048|  5.27M|        {
 1049|  5.27M|            return int64_;
 1050|  5.27M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13int64_storageEJRS7_EEEvDpOT0_:
  998|   233k|        {
  999|   233k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|   233k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14uint64_storageEEERT_v:
 1007|  18.7M|        {
 1008|  18.7M|            return cast(identity<T>());
 1009|  18.7M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14uint64_storageEEE:
 1058|  18.7M|        {
 1059|  18.7M|            return uint64_;
 1060|  18.7M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14uint64_storageEJRS7_EEEvDpOT0_:
  998|   294k|        {
  999|   294k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|   294k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12half_storageEEERT_v:
 1007|   460k|        {
 1008|   460k|            return cast(identity<T>());
 1009|   460k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12half_storageEEE:
 1068|   460k|        {
 1069|   460k|            return half_float_;
 1070|   460k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12half_storageEJRS7_EEEvDpOT0_:
  998|   109k|        {
  999|   109k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|   109k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14double_storageEEERT_v:
 1007|  1.13M|        {
 1008|  1.13M|            return cast(identity<T>());
 1009|  1.13M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14double_storageEEE:
 1078|  1.13M|        {
 1079|  1.13M|            return float64_;
 1080|  1.13M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14double_storageEJRS7_EEEvDpOT0_:
  998|  2.81k|        {
  999|  2.81k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  2.81k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_20short_string_storageEEERT_v:
 1007|   808k|        {
 1008|   808k|            return cast(identity<T>());
 1009|   808k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_20short_string_storageEEE:
 1088|   808k|        {
 1089|   808k|            return short_str_;
 1090|   808k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20short_string_storageC2ERKS6_:
  588|  26.5k|                : storage_kind_(other.storage_kind_), short_str_length_(other.short_str_length_), tag_(other.tag_)
  589|  26.5k|            {
  590|  26.5k|                std::memcpy(data_,other.data_,other.short_str_length_*sizeof(char_type));
  591|  26.5k|                data_[short_str_length_] = 0;
  592|  26.5k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20short_string_storageEJRS7_EEEvDpOT0_:
  998|  26.5k|        {
  999|  26.5k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  26.5k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19long_string_storageEEEvRS5_:
 1159|  67.8k|        {
 1160|  67.8k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  67.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  67.8k|        {
 1166|  67.8k|            TypeR temp{other.cast<TypeR>()};
 1167|  67.8k|            other.construct<TypeL>(cast<TypeL>());
 1168|  67.8k|            construct<TypeR>(temp);
 1169|  67.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19byte_string_storageEEEvRS5_:
 1159|  2.35M|        {
 1160|  2.35M|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  2.35M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  2.35M|        {
 1166|  2.35M|            TypeR temp{other.cast<TypeR>()};
 1167|  2.35M|            other.construct<TypeL>(cast<TypeL>());
 1168|  2.35M|            construct<TypeR>(temp);
 1169|  2.35M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_13array_storageEEEvRS5_:
 1159|  3.02M|        {
 1160|  3.02M|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  3.02M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  3.02M|        {
 1166|  3.02M|            TypeR temp{other.cast<TypeR>()};
 1167|  3.02M|            other.construct<TypeL>(cast<TypeL>());
 1168|  3.02M|            construct<TypeR>(temp);
 1169|  3.02M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_14object_storageEEEvRS5_:
 1159|  2.34M|        {
 1160|  2.34M|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  2.34M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  2.34M|        {
 1166|  2.34M|            TypeR temp{other.cast<TypeR>()};
 1167|  2.34M|            other.construct<TypeL>(cast<TypeL>());
 1168|  2.34M|            construct<TypeR>(temp);
 1169|  2.34M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_20empty_object_storageEEEvRS5_:
 1173|  4.50k|        {
 1174|  4.50k|            switch (other.storage_kind())
 1175|  4.50k|            {
 1176|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 4.50k]
  ------------------
 1177|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 4.50k]
  ------------------
 1178|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 4.50k]
  ------------------
 1179|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 4.50k]
  ------------------
 1180|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 4.50k]
  ------------------
 1181|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 4.50k]
  ------------------
 1182|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 0, False: 4.50k]
  ------------------
 1183|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 0, False: 4.50k]
  ------------------
 1184|  2.30k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 2.30k, False: 2.20k]
  ------------------
 1185|     13|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 13, False: 4.49k]
  ------------------
 1186|    717|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 717, False: 3.78k]
  ------------------
 1187|  1.47k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1187:17): [True: 1.47k, False: 3.03k]
  ------------------
 1188|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1188:17): [True: 0, False: 4.50k]
  ------------------
 1189|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1189:17): [True: 0, False: 4.50k]
  ------------------
 1190|      0|                default:
  ------------------
  |  Branch (1190:17): [True: 0, False: 4.50k]
  ------------------
 1191|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1192|      0|                    break;
 1193|  4.50k|            }
 1194|  4.50k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19long_string_storageEEEvRS5_:
 1159|  2.30k|        {
 1160|  2.30k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  2.30k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  2.30k|        {
 1166|  2.30k|            TypeR temp{other.cast<TypeR>()};
 1167|  2.30k|            other.construct<TypeL>(cast<TypeL>());
 1168|  2.30k|            construct<TypeR>(temp);
 1169|  2.30k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19byte_string_storageEEEvRS5_:
 1159|     13|        {
 1160|     13|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|     13|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|     13|        {
 1166|     13|            TypeR temp{other.cast<TypeR>()};
 1167|     13|            other.construct<TypeL>(cast<TypeL>());
 1168|     13|            construct<TypeR>(temp);
 1169|     13|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_13array_storageEEEvRS5_:
 1159|    717|        {
 1160|    717|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|    717|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|    717|        {
 1166|    717|            TypeR temp{other.cast<TypeR>()};
 1167|    717|            other.construct<TypeL>(cast<TypeL>());
 1168|    717|            construct<TypeR>(temp);
 1169|    717|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_14object_storageEEEvRS5_:
 1159|  1.47k|        {
 1160|  1.47k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  1.47k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  1.47k|        {
 1166|  1.47k|            TypeR temp{other.cast<TypeR>()};
 1167|  1.47k|            other.construct<TypeL>(cast<TypeL>());
 1168|  1.47k|            construct<TypeR>(temp);
 1169|  1.47k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12bool_storageEEEvRS5_:
 1173|  30.5k|        {
 1174|  30.5k|            switch (other.storage_kind())
 1175|  30.5k|            {
 1176|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 30.5k]
  ------------------
 1177|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 30.5k]
  ------------------
 1178|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 30.5k]
  ------------------
 1179|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 30.5k]
  ------------------
 1180|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 30.5k]
  ------------------
 1181|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 30.5k]
  ------------------
 1182|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 0, False: 30.5k]
  ------------------
 1183|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 0, False: 30.5k]
  ------------------
 1184|    533|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 533, False: 29.9k]
  ------------------
 1185|  9.88k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 9.88k, False: 20.6k]
  ------------------
 1186|  7.27k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 7.27k, False: 23.2k]
  ------------------
 1187|  12.8k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1187:17): [True: 12.8k, False: 17.6k]
  ------------------
 1188|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1188:17): [True: 0, False: 30.5k]
  ------------------
 1189|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1189:17): [True: 0, False: 30.5k]
  ------------------
 1190|      0|                default:
  ------------------
  |  Branch (1190:17): [True: 0, False: 30.5k]
  ------------------
 1191|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1192|      0|                    break;
 1193|  30.5k|            }
 1194|  30.5k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19long_string_storageEEEvRS5_:
 1159|    533|        {
 1160|    533|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|    533|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|    533|        {
 1166|    533|            TypeR temp{other.cast<TypeR>()};
 1167|    533|            other.construct<TypeL>(cast<TypeL>());
 1168|    533|            construct<TypeR>(temp);
 1169|    533|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19byte_string_storageEEEvRS5_:
 1159|  9.88k|        {
 1160|  9.88k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  9.88k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  9.88k|        {
 1166|  9.88k|            TypeR temp{other.cast<TypeR>()};
 1167|  9.88k|            other.construct<TypeL>(cast<TypeL>());
 1168|  9.88k|            construct<TypeR>(temp);
 1169|  9.88k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_13array_storageEEEvRS5_:
 1159|  7.27k|        {
 1160|  7.27k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  7.27k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  7.27k|        {
 1166|  7.27k|            TypeR temp{other.cast<TypeR>()};
 1167|  7.27k|            other.construct<TypeL>(cast<TypeL>());
 1168|  7.27k|            construct<TypeR>(temp);
 1169|  7.27k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_14object_storageEEEvRS5_:
 1159|  12.8k|        {
 1160|  12.8k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  12.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  12.8k|        {
 1166|  12.8k|            TypeR temp{other.cast<TypeR>()};
 1167|  12.8k|            other.construct<TypeL>(cast<TypeL>());
 1168|  12.8k|            construct<TypeR>(temp);
 1169|  12.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_13int64_storageEEEvRS5_:
 1173|   233k|        {
 1174|   233k|            switch (other.storage_kind())
 1175|   233k|            {
 1176|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 233k]
  ------------------
 1177|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 233k]
  ------------------
 1178|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 233k]
  ------------------
 1179|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 233k]
  ------------------
 1180|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 233k]
  ------------------
 1181|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 233k]
  ------------------
 1182|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 0, False: 233k]
  ------------------
 1183|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 0, False: 233k]
  ------------------
 1184|  5.52k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 5.52k, False: 227k]
  ------------------
 1185|   188k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 188k, False: 44.9k]
  ------------------
 1186|  22.2k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 22.2k, False: 210k]
  ------------------
 1187|  17.2k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1187:17): [True: 17.2k, False: 215k]
  ------------------
 1188|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1188:17): [True: 0, False: 233k]
  ------------------
 1189|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1189:17): [True: 0, False: 233k]
  ------------------
 1190|      0|                default:
  ------------------
  |  Branch (1190:17): [True: 0, False: 233k]
  ------------------
 1191|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1192|      0|                    break;
 1193|   233k|            }
 1194|   233k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19long_string_storageEEEvRS5_:
 1159|  5.52k|        {
 1160|  5.52k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  5.52k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  5.52k|        {
 1166|  5.52k|            TypeR temp{other.cast<TypeR>()};
 1167|  5.52k|            other.construct<TypeL>(cast<TypeL>());
 1168|  5.52k|            construct<TypeR>(temp);
 1169|  5.52k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19byte_string_storageEEEvRS5_:
 1159|   188k|        {
 1160|   188k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|   188k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|   188k|        {
 1166|   188k|            TypeR temp{other.cast<TypeR>()};
 1167|   188k|            other.construct<TypeL>(cast<TypeL>());
 1168|   188k|            construct<TypeR>(temp);
 1169|   188k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_13array_storageEEEvRS5_:
 1159|  22.2k|        {
 1160|  22.2k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  22.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  22.2k|        {
 1166|  22.2k|            TypeR temp{other.cast<TypeR>()};
 1167|  22.2k|            other.construct<TypeL>(cast<TypeL>());
 1168|  22.2k|            construct<TypeR>(temp);
 1169|  22.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_14object_storageEEEvRS5_:
 1159|  17.2k|        {
 1160|  17.2k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  17.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  17.2k|        {
 1166|  17.2k|            TypeR temp{other.cast<TypeR>()};
 1167|  17.2k|            other.construct<TypeL>(cast<TypeL>());
 1168|  17.2k|            construct<TypeR>(temp);
 1169|  17.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_14uint64_storageEEEvRS5_:
 1173|   294k|        {
 1174|   294k|            switch (other.storage_kind())
 1175|   294k|            {
 1176|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 294k]
  ------------------
 1177|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 294k]
  ------------------
 1178|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 294k]
  ------------------
 1179|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 294k]
  ------------------
 1180|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 294k]
  ------------------
 1181|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 294k]
  ------------------
 1182|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 0, False: 294k]
  ------------------
 1183|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 0, False: 294k]
  ------------------
 1184|  12.2k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 12.2k, False: 282k]
  ------------------
 1185|   158k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 158k, False: 136k]
  ------------------
 1186|  58.2k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 58.2k, False: 236k]
  ------------------
 1187|  65.9k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1187:17): [True: 65.9k, False: 228k]
  ------------------
 1188|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1188:17): [True: 0, False: 294k]
  ------------------
 1189|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1189:17): [True: 0, False: 294k]
  ------------------
 1190|      0|                default:
  ------------------
  |  Branch (1190:17): [True: 0, False: 294k]
  ------------------
 1191|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1192|      0|                    break;
 1193|   294k|            }
 1194|   294k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19long_string_storageEEEvRS5_:
 1159|  12.2k|        {
 1160|  12.2k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  12.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  12.2k|        {
 1166|  12.2k|            TypeR temp{other.cast<TypeR>()};
 1167|  12.2k|            other.construct<TypeL>(cast<TypeL>());
 1168|  12.2k|            construct<TypeR>(temp);
 1169|  12.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19byte_string_storageEEEvRS5_:
 1159|   158k|        {
 1160|   158k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|   158k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|   158k|        {
 1166|   158k|            TypeR temp{other.cast<TypeR>()};
 1167|   158k|            other.construct<TypeL>(cast<TypeL>());
 1168|   158k|            construct<TypeR>(temp);
 1169|   158k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_13array_storageEEEvRS5_:
 1159|  58.2k|        {
 1160|  58.2k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  58.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  58.2k|        {
 1166|  58.2k|            TypeR temp{other.cast<TypeR>()};
 1167|  58.2k|            other.construct<TypeL>(cast<TypeL>());
 1168|  58.2k|            construct<TypeR>(temp);
 1169|  58.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_14object_storageEEEvRS5_:
 1159|  65.9k|        {
 1160|  65.9k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  65.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  65.9k|        {
 1166|  65.9k|            TypeR temp{other.cast<TypeR>()};
 1167|  65.9k|            other.construct<TypeL>(cast<TypeL>());
 1168|  65.9k|            construct<TypeR>(temp);
 1169|  65.9k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12half_storageEEEvRS5_:
 1173|   109k|        {
 1174|   109k|            switch (other.storage_kind())
 1175|   109k|            {
 1176|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 109k]
  ------------------
 1177|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 109k]
  ------------------
 1178|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 109k]
  ------------------
 1179|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 109k]
  ------------------
 1180|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 109k]
  ------------------
 1181|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 109k]
  ------------------
 1182|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 0, False: 109k]
  ------------------
 1183|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 0, False: 109k]
  ------------------
 1184|    265|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 265, False: 109k]
  ------------------
 1185|   105k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 105k, False: 4.29k]
  ------------------
 1186|  3.66k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 3.66k, False: 106k]
  ------------------
 1187|    361|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1187:17): [True: 361, False: 109k]
  ------------------
 1188|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1188:17): [True: 0, False: 109k]
  ------------------
 1189|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1189:17): [True: 0, False: 109k]
  ------------------
 1190|      0|                default:
  ------------------
  |  Branch (1190:17): [True: 0, False: 109k]
  ------------------
 1191|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1192|      0|                    break;
 1193|   109k|            }
 1194|   109k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19long_string_storageEEEvRS5_:
 1159|    265|        {
 1160|    265|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|    265|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|    265|        {
 1166|    265|            TypeR temp{other.cast<TypeR>()};
 1167|    265|            other.construct<TypeL>(cast<TypeL>());
 1168|    265|            construct<TypeR>(temp);
 1169|    265|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19byte_string_storageEEEvRS5_:
 1159|   105k|        {
 1160|   105k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|   105k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|   105k|        {
 1166|   105k|            TypeR temp{other.cast<TypeR>()};
 1167|   105k|            other.construct<TypeL>(cast<TypeL>());
 1168|   105k|            construct<TypeR>(temp);
 1169|   105k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_13array_storageEEEvRS5_:
 1159|  3.66k|        {
 1160|  3.66k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  3.66k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  3.66k|        {
 1166|  3.66k|            TypeR temp{other.cast<TypeR>()};
 1167|  3.66k|            other.construct<TypeL>(cast<TypeL>());
 1168|  3.66k|            construct<TypeR>(temp);
 1169|  3.66k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_14object_storageEEEvRS5_:
 1159|    361|        {
 1160|    361|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|    361|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12half_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|    361|        {
 1166|    361|            TypeR temp{other.cast<TypeR>()};
 1167|    361|            other.construct<TypeL>(cast<TypeL>());
 1168|    361|            construct<TypeR>(temp);
 1169|    361|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_14double_storageEEEvRS5_:
 1173|  2.81k|        {
 1174|  2.81k|            switch (other.storage_kind())
 1175|  2.81k|            {
 1176|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 2.81k]
  ------------------
 1177|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 2.81k]
  ------------------
 1178|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 2.81k]
  ------------------
 1179|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 2.81k]
  ------------------
 1180|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 2.81k]
  ------------------
 1181|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 2.81k]
  ------------------
 1182|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 0, False: 2.81k]
  ------------------
 1183|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 0, False: 2.81k]
  ------------------
 1184|    274|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 274, False: 2.54k]
  ------------------
 1185|    451|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 451, False: 2.36k]
  ------------------
 1186|  1.31k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 1.31k, False: 1.50k]
  ------------------
 1187|    780|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1187:17): [True: 780, False: 2.03k]
  ------------------
 1188|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1188:17): [True: 0, False: 2.81k]
  ------------------
 1189|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1189:17): [True: 0, False: 2.81k]
  ------------------
 1190|      0|                default:
  ------------------
  |  Branch (1190:17): [True: 0, False: 2.81k]
  ------------------
 1191|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1192|      0|                    break;
 1193|  2.81k|            }
 1194|  2.81k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19long_string_storageEEEvRS5_:
 1159|    274|        {
 1160|    274|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|    274|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|    274|        {
 1166|    274|            TypeR temp{other.cast<TypeR>()};
 1167|    274|            other.construct<TypeL>(cast<TypeL>());
 1168|    274|            construct<TypeR>(temp);
 1169|    274|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19byte_string_storageEEEvRS5_:
 1159|    451|        {
 1160|    451|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|    451|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|    451|        {
 1166|    451|            TypeR temp{other.cast<TypeR>()};
 1167|    451|            other.construct<TypeL>(cast<TypeL>());
 1168|    451|            construct<TypeR>(temp);
 1169|    451|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_13array_storageEEEvRS5_:
 1159|  1.31k|        {
 1160|  1.31k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  1.31k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  1.31k|        {
 1166|  1.31k|            TypeR temp{other.cast<TypeR>()};
 1167|  1.31k|            other.construct<TypeL>(cast<TypeL>());
 1168|  1.31k|            construct<TypeR>(temp);
 1169|  1.31k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_14object_storageEEEvRS5_:
 1159|    780|        {
 1160|    780|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|    780|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|    780|        {
 1166|    780|            TypeR temp{other.cast<TypeR>()};
 1167|    780|            other.construct<TypeL>(cast<TypeL>());
 1168|    780|            construct<TypeR>(temp);
 1169|    780|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_20short_string_storageEEEvRS5_:
 1173|  26.5k|        {
 1174|  26.5k|            switch (other.storage_kind())
 1175|  26.5k|            {
 1176|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 26.5k]
  ------------------
 1177|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 26.5k]
  ------------------
 1178|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 26.5k]
  ------------------
 1179|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 0, False: 26.5k]
  ------------------
 1180|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 26.5k]
  ------------------
 1181|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 26.5k]
  ------------------
 1182|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1182:17): [True: 0, False: 26.5k]
  ------------------
 1183|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1183:17): [True: 0, False: 26.5k]
  ------------------
 1184|  1.41k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1184:17): [True: 1.41k, False: 25.1k]
  ------------------
 1185|  17.0k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1185:17): [True: 17.0k, False: 9.58k]
  ------------------
 1186|  4.48k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1186:17): [True: 4.48k, False: 22.1k]
  ------------------
 1187|  3.68k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1187:17): [True: 3.68k, False: 22.9k]
  ------------------
 1188|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1188:17): [True: 0, False: 26.5k]
  ------------------
 1189|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1189:17): [True: 0, False: 26.5k]
  ------------------
 1190|      0|                default:
  ------------------
  |  Branch (1190:17): [True: 0, False: 26.5k]
  ------------------
 1191|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1192|      0|                    break;
 1193|  26.5k|            }
 1194|  26.5k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19long_string_storageEEEvRS5_:
 1159|  1.41k|        {
 1160|  1.41k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  1.41k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  1.41k|        {
 1166|  1.41k|            TypeR temp{other.cast<TypeR>()};
 1167|  1.41k|            other.construct<TypeL>(cast<TypeL>());
 1168|  1.41k|            construct<TypeR>(temp);
 1169|  1.41k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19byte_string_storageEEEvRS5_:
 1159|  17.0k|        {
 1160|  17.0k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  17.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  17.0k|        {
 1166|  17.0k|            TypeR temp{other.cast<TypeR>()};
 1167|  17.0k|            other.construct<TypeL>(cast<TypeL>());
 1168|  17.0k|            construct<TypeR>(temp);
 1169|  17.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_13array_storageEEEvRS5_:
 1159|  4.48k|        {
 1160|  4.48k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  4.48k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  4.48k|        {
 1166|  4.48k|            TypeR temp{other.cast<TypeR>()};
 1167|  4.48k|            other.construct<TypeL>(cast<TypeL>());
 1168|  4.48k|            construct<TypeR>(temp);
 1169|  4.48k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_14object_storageEEEvRS5_:
 1159|  3.68k|        {
 1160|  3.68k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1161|  3.68k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1165|  3.68k|        {
 1166|  3.68k|            TypeR temp{other.cast<TypeR>()};
 1167|  3.68k|            other.construct<TypeL>(cast<TypeL>());
 1168|  3.68k|            construct<TypeR>(temp);
 1169|  3.68k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ImEET_NS_12semantic_tagENS2_9enable_ifIXaasr10ext_traits19is_unsigned_integerIS7_EE5valuelestS7_Lm8EEiE4typeE:
 2617|  18.1M|        {
 2618|  18.1M|            construct<uint64_storage>(val, tag);
 2619|  18.1M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14uint64_storageEJRmRNS_12semantic_tagEEEEvDpOT0_:
  998|  18.1M|        {
  999|  18.1M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  18.1M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14uint64_storageC2EmNS_12semantic_tagE:
  516|  18.1M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::uint64)), short_str_length_(0), tag_(tag),
  517|  18.1M|                  val_(val)
  518|  18.1M|            {
  519|  18.1M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2IlEET_NS_12semantic_tagENS2_9enable_ifIXaasr10ext_traits17is_signed_integerIS7_EE5valuelestS7_Lm8EEiE4typeE:
 2648|  4.80M|        {
 2649|  4.80M|            construct<int64_storage>(val, tag);
 2650|  4.80M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13int64_storageEJRlRNS_12semantic_tagEEEEvDpOT0_:
  998|  4.80M|        {
  999|  4.80M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  4.80M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13int64_storageC2ElNS_12semantic_tagE:
  496|  4.80M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::int64)), short_str_length_(0), tag_(tag),
  497|  4.80M|                  val_(val)
  498|  4.80M|            {
  499|  4.80M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EdNS_12semantic_tagE:
 2605|  1.13M|        {
 2606|  1.13M|            construct<double_storage>(val, tag);
 2607|  1.13M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14double_storageEJRdRNS_12semantic_tagEEEEvDpOT0_:
  998|  1.13M|        {
  999|  1.13M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  1.13M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14double_storageC2EdNS_12semantic_tagE:
  555|  1.13M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::float64)), short_str_length_(0), tag_(tag),
  556|  1.13M|                  val_(val)
  557|  1.13M|            {
  558|  1.13M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_16json_array_arg_tENS_12semantic_tagE:
 2404|  5.42M|        {
 2405|  5.42M|            auto ptr = create_array(Allocator());
 2406|  5.42M|            construct<array_storage>(ptr, tag);
 2407|  5.42M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12create_arrayIJEEEPNS_10json_arrayIS5_NS2_6vectorEEERKS4_DpOT_:
  960|  5.42M|        {
  961|  5.42M|            using stor_allocator_type = typename array_storage::allocator_type;
  962|  5.42M|            stor_allocator_type stor_alloc(alloc);
  963|  5.42M|            auto ptr = std::allocator_traits<stor_allocator_type>::allocate(stor_alloc, 1);
  964|  5.42M|            JSONCONS_TRY
  ------------------
  |  |   37|  5.42M|    #define JSONCONS_TRY try
  ------------------
  965|  5.42M|            {
  966|  5.42M|                std::allocator_traits<stor_allocator_type>::construct(stor_alloc, ext_traits::to_plain_pointer(ptr), 
  967|  5.42M|                    std::forward<Args>(args)...);
  968|  5.42M|            }
  969|  5.42M|            JSONCONS_CATCH(...)
  970|  5.42M|            {
  971|      0|                std::allocator_traits<stor_allocator_type>::deallocate(stor_alloc, ptr,1);
  972|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  973|      0|            }
  974|  5.42M|            return ptr;
  975|  5.42M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13array_storageEJRPNS_10json_arrayIS5_NS2_6vectorEEERNS_12semantic_tagEEEEvDpOT0_:
  998|  5.42M|        {
  999|  5.42M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  5.42M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storageC2EPNS_10json_arrayIS5_NS2_6vectorEEENS_12semantic_tagE:
  725|  5.42M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::array)), short_str_length_(0), tag_(tag), ptr_(ptr)
  726|  5.42M|            {
  727|  5.42M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_9null_typeENS_12semantic_tagE:
 2694|  1.04M|        {
 2695|  1.04M|            construct<null_storage>(tag);
 2696|  1.04M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJRNS_12semantic_tagEEEEvDpOT0_:
  998|  1.04M|        {
  999|  1.04M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  1.04M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EbNS_12semantic_tagE:
 2704|  3.07M|        {
 2705|  3.07M|            construct<bool_storage>(val,tag);
 2706|  3.07M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12bool_storageEJRbRNS_12semantic_tagEEEEvDpOT0_:
  998|  3.07M|        {
  999|  3.07M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  3.07M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12bool_storageC2EbNS_12semantic_tagE:
  475|  3.07M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::boolean)), short_str_length_(0), tag_(tag),
  476|  3.07M|                  val_(val)
  477|  3.07M|            {
  478|  3.07M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ERKNS2_17basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagE:
 2552|  1.11M|            : basic_json(s.data(), s.size(), tag, allocator_type())
 2553|  1.11M|        {
 2554|  1.11M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EPKcmNS_12semantic_tagERKS4_:
 2582|  1.11M|        {
 2583|  1.11M|            if (length <= short_string_storage::max_length)
  ------------------
  |  Branch (2583:17): [True: 755k, False: 361k]
  ------------------
 2584|   755k|            {
 2585|   755k|                construct<short_string_storage>(s, static_cast<uint8_t>(length), tag);
 2586|   755k|            }
 2587|   361k|            else
 2588|   361k|            {
 2589|   361k|                auto ptr = create_long_string(alloc, s, length);
 2590|   361k|                construct<long_string_storage>(ptr, tag);
 2591|   361k|            }
 2592|  1.11M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20short_string_storageEJRPKchRNS_12semantic_tagEEEEvDpOT0_:
  998|   755k|        {
  999|   755k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|   755k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20short_string_storageC2EPKchNS_12semantic_tagE:
  577|   755k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::short_str)), short_str_length_(length), tag_(tag)
  578|   755k|            {
  579|   755k|                JSONCONS_ASSERT(length <= max_length);
  ------------------
  |  |   67|   755k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 755k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  580|   755k|                if (length > 0)
  ------------------
  |  Branch (580:21): [True: 430k, False: 325k]
  ------------------
  581|   430k|                {
  582|   430k|                    std::memcpy(data_,p,length*sizeof(char_type));
  583|   430k|                }
  584|   755k|                data_[length] = 0;
  585|   755k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18create_long_stringERKS4_PKcm:
  946|   361k|        {
  947|   361k|            using heap_string_factory_type = jsoncons::heap::heap_string_factory<char_type,null_type,Allocator>;
  948|   361k|            return heap_string_factory_type::create(data, length, null_type(), alloc); 
  949|   361k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19long_string_storageEJRPNS_4heap11heap_stringIcNS_9null_typeES4_EERNS_12semantic_tagEEEEvDpOT0_:
  998|   361k|        {
  999|   361k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|   361k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19long_string_storageC2EPNS_4heap11heap_stringIcNS_9null_typeES4_EENS_12semantic_tagE:
  624|   361k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(tag), ptr_(ptr)
  625|   361k|            {
  626|   361k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ERKNS2_17basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKS4_:
 2714|  2.74k|            : basic_json(sv.data(), sv.length(), tag, alloc)
 2715|  2.74k|        {
 2716|  2.74k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_NS_12semantic_tagENS2_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2722|  5.29M|        {
 2723|  5.29M|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2724|       |            
 2725|  5.29M|            auto ptr = create_byte_string(Allocator(), bytes.data(), bytes.size(), 0);
 2726|  5.29M|            construct<byte_string_storage>(ptr, tag);
 2727|  5.29M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18create_byte_stringERKS4_PKhmm:
  953|  5.34M|        {
  954|  5.34M|            using heap_string_factory_type = jsoncons::heap::heap_string_factory<uint8_t,uint64_t,Allocator>;
  955|  5.34M|            return heap_string_factory_type::create(data, length, raw_tag, alloc); 
  956|  5.34M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRPNS_4heap11heap_stringIhmS4_EERNS_12semantic_tagEEEEvDpOT0_:
  998|  5.29M|        {
  999|  5.29M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  5.29M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19byte_string_storageC2EPNS_4heap11heap_stringIhmS4_EENS_12semantic_tagE:
  673|  5.34M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::byte_str)), short_str_length_(0), tag_(tag), ptr_(ptr)
  674|  5.34M|            {
  675|  5.34M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_NS_12semantic_tagERKS4_NS2_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2734|     11|        {
 2735|     11|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2736|       |
 2737|     11|            auto ptr = create_byte_string(alloc, bytes.data(), bytes.size(), 0);
 2738|     11|            construct<byte_string_storage>(ptr, tag);
 2739|     11|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_mNS2_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2745|  52.6k|        {
 2746|  52.6k|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2747|       |
 2748|  52.6k|            auto ptr = create_byte_string(Allocator(), bytes.data(), bytes.size(), raw_tag);
 2749|  52.6k|            construct<byte_string_storage>(ptr, semantic_tag::ext);
 2750|  52.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRPNS_4heap11heap_stringIhmS4_EENS_12semantic_tagEEEEvDpOT0_:
  998|  52.7k|        {
  999|  52.7k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|  52.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_mRKS4_NS2_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2757|      2|        {
 2758|      2|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2759|       |
 2760|      2|            auto ptr = create_byte_string(alloc, bytes.data(), bytes.size(), raw_tag);
 2761|      2|            construct<byte_string_storage>(ptr, semantic_tag::ext);
 2762|      2|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_10half_arg_tEtNS_12semantic_tagE:
 2595|   241k|        {
 2596|   241k|            construct<half_storage>(val, tag);
 2597|   241k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12half_storageEJRtRNS_12semantic_tagEEEEvDpOT0_:
  998|   241k|        {
  999|   241k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
 1000|   241k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12half_storageC2EtNS_12semantic_tagE:
  535|   241k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::half_float)), short_str_length_(0), tag_(tag),
  536|   241k|                  val_(val)
  537|   241k|            {
  538|   241k|            }

_ZN8jsoncons12launder_castIPcNS_4heap11heap_stringIcNS_9null_typeENSt3__19allocatorIcEEEEEET_PT0_:
  264|   361k|    {
  265|   361k|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  266|   361k|        return std::launder(reinterpret_cast<T>(u));
  267|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  268|       |        return __builtin_launder(reinterpret_cast<T>(u));
  269|       |    #else
  270|       |        return reinterpret_cast<T>(u);
  271|       |    #endif
  272|   361k|    }
_ZN8jsoncons12launder_castIPcNS_4heap11heap_stringIhmNSt3__19allocatorIcEEEEEET_PT0_:
  264|  5.34M|    {
  265|  5.34M|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  266|  5.34M|        return std::launder(reinterpret_cast<T>(u));
  267|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  268|       |        return __builtin_launder(reinterpret_cast<T>(u));
  269|       |    #else
  270|       |        return reinterpret_cast<T>(u);
  271|       |    #endif
  272|  5.34M|    }
_ZN8jsoncons12launder_castIPNS_4heap19heap_string_factoryIcNS_9null_typeENSt3__19allocatorIcEEE9storage_tEcEET_PT0_:
  264|   361k|    {
  265|   361k|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  266|   361k|        return std::launder(reinterpret_cast<T>(u));
  267|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  268|       |        return __builtin_launder(reinterpret_cast<T>(u));
  269|       |    #else
  270|       |        return reinterpret_cast<T>(u);
  271|       |    #endif
  272|   361k|    }
_ZN8jsoncons12launder_castIPNS_4heap19heap_string_factoryIhmNSt3__19allocatorIcEEE9storage_tEcEET_PT0_:
  264|  5.34M|    {
  265|  5.34M|    #if defined(__cpp_lib_launder) && __cpp_lib_launder >= 201606
  266|  5.34M|        return std::launder(reinterpret_cast<T>(u));
  267|       |    #elif defined(__GNUC__) &&  (__GNUC__ * 100 + __GNUC_MINOR__) > 800
  268|       |        return __builtin_launder(reinterpret_cast<T>(u));
  269|       |    #else
  270|       |        return reinterpret_cast<T>(u);
  271|       |    #endif
  272|  5.34M|    }
_ZN8jsoncons11countl_zeroImEEiT_:
  305|  9.98M|{
  306|  9.98M|    return jsoncons::nonstd::countl_zero(x);
  307|  9.98M|}
_ZN8jsoncons11countr_zeroImEEiT_:
  310|   176k|{
  311|   176k|    return jsoncons::nonstd::countr_zero(x);
  312|   176k|}

_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEEC2ERNS_18basic_json_visitorIcEERKS3_:
  855|  15.8k|            : destination_(std::addressof(visitor)), 
  856|  15.8k|              key_(alloc), key_buffer_(alloc), level_stack_(alloc)
  857|  15.8k|        {
  858|  15.8k|            level_stack_.emplace_back(json_target_kind::destination,json_structure_kind::root); // root
  859|  15.8k|        }
_ZN8jsoncons21basic_generic_visitorIcEC2Ev:
   52|  15.8k|    basic_generic_visitor() = default;
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  294|  10.8M|    {
  295|  10.8M|        visit_begin_array(length, tag, context, ec);
  296|  10.8M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  10.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  297|  10.8M|    }
_ZN8jsoncons21basic_generic_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  363|  40.4M|    {
  364|  40.4M|        visit_uint64(value, tag, context, ec);
  365|  40.4M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  40.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  40.4M|    }
_ZN8jsoncons21basic_generic_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  300|  10.7M|    {
  301|  10.7M|        visit_end_array(context, ec);
  302|  10.7M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  10.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|  10.7M|    }
_ZN8jsoncons21basic_generic_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  372|  72.5M|    {
  373|  72.5M|        visit_int64(value, tag, context, ec);
  374|  72.5M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  72.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  375|  72.5M|    }
_ZN8jsoncons21basic_generic_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  381|   495k|    {
  382|   495k|        visit_half(value, tag, context, ec);
  383|   495k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   495k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  384|   495k|    }
_ZN8jsoncons21basic_generic_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  390|  4.08M|    {
  391|  4.08M|        visit_double(value, tag, context, ec);
  392|  4.08M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  4.08M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  393|  4.08M|    }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structureC2ENS4_16json_target_kindENS4_19json_structure_kindE:
  798|  18.9M|                : target_kind_(state), structure_kind_(type), even_odd_(type == json_structure_kind::object ? 0 : 1)
  ------------------
  |  Branch (798:73): [True: 8.03M, False: 10.8M]
  ------------------
  799|  18.9M|            {
  800|  18.9M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1008|  10.8M|        {
 1009|  10.8M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1009:17): [True: 2.32M, False: 8.50M]
  ------------------
 1010|  2.32M|            {
 1011|  2.32M|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1011:21): [True: 829k, False: 1.49M]
  |  Branch (1011:86): [True: 823k, False: 5.42k]
  ------------------
 1012|   823k|                {
 1013|   823k|                    key_buffer_.push_back(',');
 1014|   823k|                }
 1015|  2.32M|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1016|  2.32M|                key_buffer_.push_back('[');
 1017|  2.32M|            }
 1018|  8.50M|            else
 1019|  8.50M|            {
 1020|  8.50M|                switch (level_stack_.back().target_kind())
 1021|  8.50M|                {
 1022|  3.10M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1022:21): [True: 3.10M, False: 5.40M]
  ------------------
 1023|  3.10M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1023:29): [True: 2.28M, False: 825k]
  |  Branch (1023:65): [True: 2.16M, False: 119k]
  ------------------
 1024|  2.16M|                        {
 1025|  2.16M|                            key_buffer_.push_back(',');
 1026|  2.16M|                        }
 1027|  3.10M|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
 1028|  3.10M|                        key_buffer_.push_back('[');
 1029|  3.10M|                        break;
 1030|  5.40M|                    default:
  ------------------
  |  Branch (1030:21): [True: 5.40M, False: 3.10M]
  ------------------
 1031|  5.40M|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1032|  5.40M|                        destination_->begin_array(length, tag, context, ec);
 1033|  5.40M|                        break;
 1034|  8.50M|                }
 1035|  8.50M|            }
 1036|  10.8M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  10.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1037|  10.8M|        }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure6is_keyEv:
  815|   461M|            {
  816|   461M|                return even_odd_ == 0;
  817|   461M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure11target_kindEv:
  825|   305M|            {
  826|   305M|                return target_kind_;
  827|   305M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure5countEv:
  830|  90.8M|            {
  831|  90.8M|                return count_;
  832|  90.8M|            }
_ZNK8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure9is_objectEv:
  820|   249M|            {
  821|   249M|                return structure_kind_ == json_structure_kind::object;
  822|   249M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE15visit_end_arrayERKNS_11ser_contextERNS1_10error_codeE:
 1040|  10.7M|        {
 1041|  10.7M|            switch (level_stack_.back().target_kind())
 1042|  10.7M|            {
 1043|  5.41M|                case json_target_kind::buffer:
  ------------------
  |  Branch (1043:17): [True: 5.41M, False: 5.38M]
  ------------------
 1044|  5.41M|                    key_buffer_.push_back(']');
 1045|  5.41M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   67|  5.41M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 5.41M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1046|  5.41M|                    level_stack_.pop_back();
 1047|  5.41M|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (1047:25): [True: 1.49M, False: 3.91M]
  ------------------
 1048|  1.49M|                    {
 1049|  1.49M|                        destination_->key(key_buffer_, context, ec);
 1050|  1.49M|                        key_buffer_.clear();
 1051|  1.49M|                    }
 1052|  3.91M|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (1052:30): [True: 830k, False: 3.08M]
  ------------------
 1053|   830k|                    {
 1054|   830k|                        key_buffer_.push_back(':');
 1055|   830k|                    }
 1056|  5.41M|                    level_stack_.back().advance();
 1057|  5.41M|                    break;
 1058|  5.38M|                default:
  ------------------
  |  Branch (1058:17): [True: 5.38M, False: 5.41M]
  ------------------
 1059|  5.38M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   67|  5.38M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 5.38M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1060|  5.38M|                    level_stack_.pop_back();
 1061|  5.38M|                    level_stack_.back().advance();
 1062|  5.38M|                    destination_->end_array(context, ec);
 1063|  5.38M|                    break;
 1064|  10.7M|            }
 1065|  10.7M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  10.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1066|  10.7M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE14json_structure7advanceEv:
  803|   158M|            {
  804|   158M|                if (!is_key())
  ------------------
  |  Branch (804:21): [True: 135M, False: 23.6M]
  ------------------
  805|   135M|                {
  806|   135M|                    ++count_;
  807|   135M|                }
  808|   158M|                if (is_object())
  ------------------
  |  Branch (808:21): [True: 47.1M, False: 111M]
  ------------------
  809|  47.1M|                {
  810|  47.1M|                    even_odd_ = !even_odd_;
  811|  47.1M|                }
  812|   158M|            }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1233|  40.4M|        {
 1234|  40.4M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1234:17): [True: 11.8M, False: 28.6M]
  |  Branch (1234:49): [True: 10.4M, False: 18.1M]
  ------------------
 1235|  22.2M|            {
 1236|  22.2M|                key_.clear();
 1237|  22.2M|                jsoncons::append_to_string(value,key_);
 1238|  22.2M|            }
 1239|       |
 1240|  40.4M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1240:17): [True: 11.8M, False: 28.6M]
  ------------------
 1241|  11.8M|            {
 1242|  11.8M|                switch (level_stack_.back().target_kind())
 1243|  11.8M|                {
 1244|  2.22M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1244:21): [True: 2.22M, False: 9.58M]
  ------------------
 1245|  2.22M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1245:29): [True: 2.20M, False: 25.4k]
  ------------------
 1246|  2.20M|                        {
 1247|  2.20M|                            key_buffer_.push_back(',');
 1248|  2.20M|                        }
 1249|  2.22M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1250|  2.22M|                        key_buffer_.push_back(':');
 1251|  2.22M|                        break;
 1252|  9.58M|                    default:
  ------------------
  |  Branch (1252:21): [True: 9.58M, False: 2.22M]
  ------------------
 1253|  9.58M|                        destination_->key(key_, context, ec);
 1254|  9.58M|                        break;
 1255|  11.8M|                }
 1256|  11.8M|            }
 1257|  28.6M|            else
 1258|  28.6M|            {
 1259|  28.6M|                switch (level_stack_.back().target_kind())
 1260|  28.6M|                {
 1261|  10.4M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1261:21): [True: 10.4M, False: 18.1M]
  ------------------
 1262|  10.4M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1262:29): [True: 8.18M, False: 2.22M]
  |  Branch (1262:65): [True: 8.12M, False: 61.9k]
  ------------------
 1263|  8.12M|                        {
 1264|  8.12M|                            key_buffer_.push_back(',');
 1265|  8.12M|                        }
 1266|  10.4M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1267|  10.4M|                        break;
 1268|  18.1M|                    default:
  ------------------
  |  Branch (1268:21): [True: 18.1M, False: 10.4M]
  ------------------
 1269|  18.1M|                        destination_->uint64_value(value, tag, context, ec);
 1270|  18.1M|                        break;
 1271|  28.6M|                }
 1272|  28.6M|            }
 1273|       |
 1274|  40.4M|            level_stack_.back().advance();
 1275|  40.4M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  40.4M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1276|  40.4M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1279|  72.5M|        {
 1280|  72.5M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1280:17): [True: 2.76M, False: 69.8M]
  |  Branch (1280:49): [True: 65.0M, False: 4.80M]
  ------------------
 1281|  67.7M|            {
 1282|  67.7M|                key_.clear();
 1283|  67.7M|                jsoncons::append_to_string(value,key_);
 1284|  67.7M|            }
 1285|       |
 1286|  72.5M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1286:17): [True: 2.76M, False: 69.8M]
  ------------------
 1287|  2.76M|            {
 1288|  2.76M|                switch (level_stack_.back().target_kind())
 1289|  2.76M|                {
 1290|   773k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1290:21): [True: 773k, False: 1.99M]
  ------------------
 1291|   773k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1291:29): [True: 765k, False: 8.01k]
  ------------------
 1292|   765k|                        {
 1293|   765k|                            key_buffer_.push_back(',');
 1294|   765k|                        }
 1295|   773k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1296|   773k|                        key_buffer_.push_back(':');
 1297|   773k|                        break;
 1298|  1.99M|                    default:
  ------------------
  |  Branch (1298:21): [True: 1.99M, False: 773k]
  ------------------
 1299|  1.99M|                        destination_->key(key_, context, ec);
 1300|  1.99M|                        break;
 1301|  2.76M|                }
 1302|  2.76M|            }
 1303|  69.8M|            else
 1304|  69.8M|            {
 1305|  69.8M|                switch (level_stack_.back().target_kind())
 1306|  69.8M|                {
 1307|  65.0M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1307:21): [True: 65.0M, False: 4.80M]
  ------------------
 1308|  65.0M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1308:29): [True: 64.2M, False: 778k]
  |  Branch (1308:65): [True: 64.1M, False: 131k]
  ------------------
 1309|  64.1M|                        {
 1310|  64.1M|                            key_buffer_.push_back(',');
 1311|  64.1M|                        }
 1312|  65.0M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1313|  65.0M|                        break;
 1314|  4.80M|                    default:
  ------------------
  |  Branch (1314:21): [True: 4.80M, False: 65.0M]
  ------------------
 1315|  4.80M|                        destination_->int64_value(value, tag, context, ec);
 1316|  4.80M|                        break;
 1317|  69.8M|                }
 1318|  69.8M|            }
 1319|       |
 1320|  72.5M|            level_stack_.back().advance();
 1321|  72.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  72.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1322|  72.5M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1374|  4.08M|        {
 1375|  4.08M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1375:17): [True: 38.1k, False: 4.04M]
  |  Branch (1375:49): [True: 2.91M, False: 1.13M]
  ------------------
 1376|  2.94M|            {
 1377|  2.94M|                key_.clear();
 1378|  2.94M|                string_sink<string_type> sink(key_);
 1379|  2.94M|                jsoncons::write_double f{float_chars_format::general,0};
 1380|  2.94M|                f(value, sink);
 1381|  2.94M|            }
 1382|       |
 1383|  4.08M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1383:17): [True: 38.1k, False: 4.04M]
  ------------------
 1384|  38.1k|            {
 1385|  38.1k|                switch (level_stack_.back().target_kind())
 1386|  38.1k|                {
 1387|  7.39k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1387:21): [True: 7.39k, False: 30.7k]
  ------------------
 1388|  7.39k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1388:29): [True: 5.61k, False: 1.77k]
  ------------------
 1389|  5.61k|                        {
 1390|  5.61k|                            key_buffer_.push_back(',');
 1391|  5.61k|                        }
 1392|  7.39k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1393|  7.39k|                        key_buffer_.push_back(':');
 1394|  7.39k|                        break;
 1395|  30.7k|                    default:
  ------------------
  |  Branch (1395:21): [True: 30.7k, False: 7.39k]
  ------------------
 1396|  30.7k|                        destination_->key(key_, context, ec);
 1397|  30.7k|                        break;
 1398|  38.1k|                }
 1399|  38.1k|            }
 1400|  4.04M|            else
 1401|  4.04M|            {
 1402|  4.04M|                switch (level_stack_.back().target_kind())
 1403|  4.04M|                {
 1404|  2.91M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1404:21): [True: 2.91M, False: 1.13M]
  ------------------
 1405|  2.91M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1405:29): [True: 2.90M, False: 6.47k]
  |  Branch (1405:65): [True: 2.89M, False: 14.0k]
  ------------------
 1406|  2.89M|                        {
 1407|  2.89M|                            key_buffer_.push_back(',');
 1408|  2.89M|                        }
 1409|  2.91M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1410|  2.91M|                        break;
 1411|  1.13M|                    default:
  ------------------
  |  Branch (1411:21): [True: 1.13M, False: 2.91M]
  ------------------
 1412|  1.13M|                        destination_->double_value(value, tag, context, ec);
 1413|  1.13M|                        break;
 1414|  4.04M|                }
 1415|  4.04M|            }
 1416|       |
 1417|  4.08M|            level_stack_.back().advance();
 1418|  4.08M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  4.08M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1419|  4.08M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE11visit_flushEv:
  881|  5.16k|        {
  882|  5.16k|            destination_->flush();
  883|  5.16k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  886|  54.6k|        {
  887|  54.6k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (887:17): [True: 22.1k, False: 32.4k]
  ------------------
  888|  22.1k|            {
  889|  22.1k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (889:21): [True: 13.1k, False: 8.98k]
  |  Branch (889:86): [True: 7.70k, False: 5.46k]
  ------------------
  890|  7.70k|                {
  891|  7.70k|                    key_buffer_.push_back(',');
  892|  7.70k|                }
  893|  22.1k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  894|  22.1k|                key_buffer_.push_back('{');
  895|  22.1k|            }
  896|  32.4k|            else
  897|  32.4k|            {
  898|  32.4k|                switch (level_stack_.back().target_kind())
  899|  32.4k|                {
  900|  14.9k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (900:21): [True: 14.9k, False: 17.5k]
  ------------------
  901|  14.9k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  902|  14.9k|                        key_buffer_.push_back('{');
  903|  14.9k|                        break;
  904|  17.5k|                    default:
  ------------------
  |  Branch (904:21): [True: 17.5k, False: 14.9k]
  ------------------
  905|  17.5k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  906|  17.5k|                        destination_->begin_object(tag, context, ec);
  907|  17.5k|                        break;
  908|  32.4k|                }
  909|  32.4k|            }
  910|  54.6k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  54.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  911|  54.6k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  914|  7.97M|        {
  915|  7.97M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (915:17): [True: 1.89M, False: 6.08M]
  ------------------
  916|  1.89M|            {
  917|  1.89M|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (917:21): [True: 635k, False: 1.25M]
  |  Branch (917:86): [True: 597k, False: 38.9k]
  ------------------
  918|   597k|                {
  919|   597k|                    key_buffer_.push_back(',');
  920|   597k|                }
  921|  1.89M|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  922|  1.89M|                key_buffer_.push_back('{');
  923|  1.89M|            }
  924|  6.08M|            else
  925|  6.08M|            {
  926|  6.08M|                switch (level_stack_.back().target_kind())
  927|  6.08M|                {
  928|  2.02M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (928:21): [True: 2.02M, False: 4.05M]
  ------------------
  929|  2.02M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (929:29): [True: 1.42M, False: 605k]
  |  Branch (929:65): [True: 1.42M, False: 3.62k]
  ------------------
  930|  1.42M|                        {
  931|  1.42M|                            key_buffer_.push_back(',');
  932|  1.42M|                        }
  933|  2.02M|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::object);
  934|  2.02M|                        key_buffer_.push_back('{');
  935|  2.02M|                        break;
  936|  4.05M|                    default:
  ------------------
  |  Branch (936:21): [True: 4.05M, False: 2.02M]
  ------------------
  937|  4.05M|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::object);
  938|  4.05M|                        destination_->begin_object(length, tag, context, ec);
  939|  4.05M|                        break;
  940|  6.08M|                }
  941|  6.08M|            }
  942|  7.97M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  7.97M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  943|  7.97M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE16visit_end_objectERKNS_11ser_contextERNS1_10error_codeE:
  946|  7.95M|        {
  947|  7.95M|            switch (level_stack_.back().target_kind())
  948|  7.95M|            {
  949|  3.89M|                case json_target_kind::buffer:
  ------------------
  |  Branch (949:17): [True: 3.89M, False: 4.06M]
  ------------------
  950|  3.89M|                    key_buffer_.push_back('}');
  951|  3.89M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   67|  3.89M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 3.89M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  952|  3.89M|                    level_stack_.pop_back();
  953|       |                    
  954|  3.89M|                    if (level_stack_.back().target_kind() == json_target_kind::destination)
  ------------------
  |  Branch (954:25): [True: 1.26M, False: 2.63M]
  ------------------
  955|  1.26M|                    {
  956|  1.26M|                        destination_->key(key_buffer_,context, ec);
  957|  1.26M|                        key_buffer_.clear();
  958|  1.26M|                    }
  959|  2.63M|                    else if (level_stack_.back().is_key())
  ------------------
  |  Branch (959:30): [True: 610k, False: 2.02M]
  ------------------
  960|   610k|                    {
  961|   610k|                        key_buffer_.push_back(':');
  962|   610k|                    }
  963|  3.89M|                    level_stack_.back().advance();
  964|  3.89M|                    break;
  965|  4.06M|                default:
  ------------------
  |  Branch (965:17): [True: 4.06M, False: 3.89M]
  ------------------
  966|  4.06M|                    JSONCONS_ASSERT(level_stack_.size() > 1);
  ------------------
  |  |   67|  4.06M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 4.06M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  967|  4.06M|                    level_stack_.pop_back();
  968|  4.06M|                    level_stack_.back().advance();
  969|  4.06M|                    destination_->end_object(context, ec);
  970|  4.06M|                    break;
  971|  7.95M|            }
  972|  7.95M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  7.95M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  973|  7.95M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
  976|  43.1k|        {
  977|  43.1k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (977:17): [True: 10.2k, False: 32.8k]
  ------------------
  978|  10.2k|            {
  979|  10.2k|                if (level_stack_.back().target_kind() == json_target_kind::buffer && level_stack_.back().count() > 0)
  ------------------
  |  Branch (979:21): [True: 8.67k, False: 1.57k]
  |  Branch (979:86): [True: 5.43k, False: 3.24k]
  ------------------
  980|  5.43k|                {
  981|  5.43k|                    key_buffer_.push_back(',');
  982|  5.43k|                }
  983|  10.2k|                level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
  984|  10.2k|                key_buffer_.push_back('[');
  985|  10.2k|            }
  986|  32.8k|            else
  987|  32.8k|            {
  988|  32.8k|                switch (level_stack_.back().target_kind())
  989|  32.8k|                {
  990|  16.4k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (990:21): [True: 16.4k, False: 16.4k]
  ------------------
  991|  16.4k|                        if (level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (991:29): [True: 4.68k, False: 11.7k]
  |  Branch (991:64): [True: 3.68k, False: 995]
  ------------------
  992|  3.68k|                        {
  993|  3.68k|                            key_buffer_.push_back(',');
  994|  3.68k|                        }
  995|  16.4k|                        level_stack_.emplace_back(json_target_kind::buffer, json_structure_kind::array);
  996|  16.4k|                        key_buffer_.push_back('[');
  997|  16.4k|                        break;
  998|  16.4k|                    default:
  ------------------
  |  Branch (998:21): [True: 16.4k, False: 16.4k]
  ------------------
  999|  16.4k|                        level_stack_.emplace_back(json_target_kind::destination, json_structure_kind::array);
 1000|  16.4k|                        destination_->begin_array(tag, context, ec);
 1001|  16.4k|                        break;
 1002|  32.8k|                }
 1003|  32.8k|            }
 1004|  43.1k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  43.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1005|  43.1k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1475|  3.18M|        {
 1476|  3.18M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1476:17): [True: 621k, False: 2.56M]
  |  Branch (1476:49): [True: 1.51M, False: 1.04M]
  ------------------
 1477|  2.13M|            {
 1478|  2.13M|                key_.clear(); 
 1479|  2.13M|                key_.insert(key_.begin(), json_literals<char_type>::null_literal.begin(), json_literals<char_type>::null_literal.end());
 1480|  2.13M|            }
 1481|       |
 1482|  3.18M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1482:17): [True: 621k, False: 2.56M]
  ------------------
 1483|   621k|            {
 1484|   621k|                switch (level_stack_.back().target_kind())
 1485|   621k|                {
 1486|   554k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1486:21): [True: 554k, False: 66.2k]
  ------------------
 1487|   554k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1487:29): [True: 553k, False: 1.65k]
  ------------------
 1488|   553k|                        {
 1489|   553k|                            key_buffer_.push_back(',');
 1490|   553k|                        }
 1491|   554k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1492|   554k|                        key_buffer_.push_back(':');
 1493|   554k|                        break;
 1494|  66.2k|                    default:
  ------------------
  |  Branch (1494:21): [True: 66.2k, False: 554k]
  ------------------
 1495|  66.2k|                        destination_->key(key_, context, ec);
 1496|  66.2k|                        break;
 1497|   621k|                }
 1498|   621k|            }
 1499|  2.56M|            else
 1500|  2.56M|            {
 1501|  2.56M|                switch (level_stack_.back().target_kind())
 1502|  2.56M|                {
 1503|  1.51M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1503:21): [True: 1.51M, False: 1.04M]
  ------------------
 1504|  1.51M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1504:29): [True: 958k, False: 557k]
  |  Branch (1504:65): [True: 958k, False: 430]
  ------------------
 1505|   958k|                        {
 1506|   958k|                            key_buffer_.push_back(',');
 1507|   958k|                        }
 1508|  1.51M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1509|  1.51M|                        break;
 1510|  1.04M|                    default:
  ------------------
  |  Branch (1510:21): [True: 1.04M, False: 1.51M]
  ------------------
 1511|  1.04M|                        destination_->null_value(tag, context, ec);
 1512|  1.04M|                        break;
 1513|  2.56M|                }
 1514|  2.56M|            }
 1515|       |
 1516|  3.18M|            level_stack_.back().advance();
 1517|  3.18M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  3.18M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1518|  3.18M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1422|  5.08M|        {
 1423|  5.08M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1423:17): [True: 844k, False: 4.23M]
  |  Branch (1423:49): [True: 1.16M, False: 3.07M]
  ------------------
 1424|  2.00M|            {
 1425|  2.00M|                key_.clear(); 
 1426|  2.00M|                if (value)
  ------------------
  |  Branch (1426:21): [True: 176k, False: 1.83M]
  ------------------
 1427|   176k|                {
 1428|   176k|                    key_.insert(key_.begin(), json_literals<char_type>::true_literal.begin(), json_literals<char_type>::true_literal.end());
 1429|   176k|                }
 1430|  1.83M|                else
 1431|  1.83M|                {
 1432|  1.83M|                    key_.insert(key_.begin(), json_literals<char_type>::false_literal.begin(), json_literals<char_type>::false_literal.end());
 1433|  1.83M|                }
 1434|  2.00M|            }
 1435|       |
 1436|  5.08M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1436:17): [True: 844k, False: 4.23M]
  ------------------
 1437|   844k|            {
 1438|   844k|                switch (level_stack_.back().target_kind())
 1439|   844k|                {
 1440|   156k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1440:21): [True: 156k, False: 688k]
  ------------------
 1441|   156k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1441:29): [True: 152k, False: 3.37k]
  ------------------
 1442|   152k|                        {
 1443|   152k|                            key_buffer_.push_back(',');
 1444|   152k|                        }
 1445|   156k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1446|   156k|                        key_buffer_.push_back(':');
 1447|   156k|                        break;
 1448|   688k|                    default:
  ------------------
  |  Branch (1448:21): [True: 688k, False: 156k]
  ------------------
 1449|   688k|                        destination_->key(key_, context, ec);
 1450|   688k|                        break;
 1451|   844k|                }
 1452|   844k|            }
 1453|  4.23M|            else
 1454|  4.23M|            {
 1455|  4.23M|                switch (level_stack_.back().target_kind())
 1456|  4.23M|                {
 1457|  1.16M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1457:21): [True: 1.16M, False: 3.07M]
  ------------------
 1458|  1.16M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1458:29): [True: 1.00M, False: 156k]
  |  Branch (1458:65): [True: 1.00M, False: 1.22k]
  ------------------
 1459|  1.00M|                        {
 1460|  1.00M|                            key_buffer_.push_back(',');
 1461|  1.00M|                        }
 1462|  1.16M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1463|  1.16M|                        break;
 1464|  3.07M|                    default:
  ------------------
  |  Branch (1464:21): [True: 3.07M, False: 1.16M]
  ------------------
 1465|  3.07M|                        destination_->bool_value(value, tag, context, ec);
 1466|  3.07M|                        break;
 1467|  4.23M|                }
 1468|  4.23M|            }
 1469|       |
 1470|  5.08M|            level_stack_.back().advance();
 1471|  5.08M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  5.08M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1472|  5.08M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE12visit_stringERKNS1_17basic_string_viewIcNS1_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1072|  2.40M|        {
 1073|  2.40M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1073:17): [True: 660k, False: 1.74M]
  ------------------
 1074|   660k|            {
 1075|   660k|                switch (level_stack_.back().target_kind())
 1076|   660k|                {
 1077|   139k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1077:21): [True: 139k, False: 521k]
  ------------------
 1078|   139k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1078:29): [True: 129k, False: 9.52k]
  ------------------
 1079|   129k|                        {
 1080|   129k|                            key_buffer_.push_back(',');
 1081|   129k|                        }
 1082|   139k|                        key_buffer_.push_back('\"');
 1083|   139k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1084|   139k|                        key_buffer_.push_back('\"');
 1085|   139k|                        key_buffer_.push_back(':');
 1086|   139k|                        break;
 1087|   521k|                    default:
  ------------------
  |  Branch (1087:21): [True: 521k, False: 139k]
  ------------------
 1088|   521k|                        destination_->key(value, context, ec);
 1089|   521k|                        break;
 1090|   660k|                }
 1091|   660k|            }
 1092|  1.74M|            else
 1093|  1.74M|            {
 1094|  1.74M|                switch (level_stack_.back().target_kind())
 1095|  1.74M|                {
 1096|   624k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1096:21): [True: 624k, False: 1.11M]
  ------------------
 1097|   624k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1097:29): [True: 492k, False: 131k]
  |  Branch (1097:65): [True: 482k, False: 9.56k]
  ------------------
 1098|   482k|                        {
 1099|   482k|                            key_buffer_.push_back(',');
 1100|   482k|                        }
 1101|   624k|                        key_buffer_.push_back('\"');
 1102|   624k|                        key_buffer_.insert(key_buffer_.end(), value.begin(), value.end());
 1103|   624k|                        key_buffer_.push_back('\"');
 1104|   624k|                        break;
 1105|  1.11M|                    default:
  ------------------
  |  Branch (1105:21): [True: 1.11M, False: 624k]
  ------------------
 1106|  1.11M|                        destination_->string_value(value, tag, context, ec);
 1107|  1.11M|                        break;
 1108|  1.74M|                }
 1109|  1.74M|            }
 1110|       |
 1111|  2.40M|            level_stack_.back().advance();
 1112|  2.40M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.40M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1113|  2.40M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1119|  11.6M|        {
 1120|  11.6M|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1120:17): [True: 2.54M, False: 9.12M]
  |  Branch (1120:49): [True: 3.82M, False: 5.29M]
  ------------------
 1121|  6.37M|            {
 1122|  6.37M|                key_.clear();
 1123|  6.37M|                switch (tag)
 1124|  6.37M|                {
 1125|  1.51k|                    case semantic_tag::base64:
  ------------------
  |  Branch (1125:21): [True: 1.51k, False: 6.37M]
  ------------------
 1126|  1.51k|                        bytes_to_base64(value.begin(), value.end(), key_);
 1127|  1.51k|                        break;
 1128|    775|                    case semantic_tag::base16:
  ------------------
  |  Branch (1128:21): [True: 775, False: 6.37M]
  ------------------
 1129|    775|                        bytes_to_base16(value.begin(), value.end(),key_);
 1130|    775|                        break;
 1131|  6.37M|                    default:
  ------------------
  |  Branch (1131:21): [True: 6.37M, False: 2.29k]
  ------------------
 1132|  6.37M|                        bytes_to_base64url(value.begin(), value.end(),key_);
 1133|  6.37M|                        break;
 1134|  6.37M|                }
 1135|  6.37M|            }
 1136|       |
 1137|  11.6M|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1137:17): [True: 2.54M, False: 9.12M]
  ------------------
 1138|  2.54M|            {
 1139|  2.54M|                switch (level_stack_.back().target_kind())
 1140|  2.54M|                {
 1141|  1.00M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1141:21): [True: 1.00M, False: 1.53M]
  ------------------
 1142|  1.00M|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1142:29): [True: 997k, False: 12.8k]
  ------------------
 1143|   997k|                        {
 1144|   997k|                            key_buffer_.push_back(',');
 1145|   997k|                        }
 1146|  1.00M|                        key_buffer_.push_back('\"');
 1147|  1.00M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1148|  1.00M|                        key_buffer_.push_back('\"');
 1149|  1.00M|                        key_buffer_.push_back(':');
 1150|  1.00M|                        break;
 1151|  1.53M|                    default:
  ------------------
  |  Branch (1151:21): [True: 1.53M, False: 1.00M]
  ------------------
 1152|  1.53M|                        destination_->key(key_, context, ec);
 1153|  1.53M|                        break;
 1154|  2.54M|                }
 1155|  2.54M|            }
 1156|  9.12M|            else
 1157|  9.12M|            {
 1158|  9.12M|                switch (level_stack_.back().target_kind())
 1159|  9.12M|                {
 1160|  3.82M|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1160:21): [True: 3.82M, False: 5.29M]
  ------------------
 1161|  3.82M|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1161:29): [True: 2.81M, False: 1.01M]
  |  Branch (1161:65): [True: 2.79M, False: 16.6k]
  ------------------
 1162|  2.79M|                        {
 1163|  2.79M|                            key_buffer_.push_back(',');
 1164|  2.79M|                        }
 1165|  3.82M|                        key_buffer_.push_back('\"');
 1166|  3.82M|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1167|  3.82M|                        key_buffer_.push_back('\"');
 1168|  3.82M|                        break;
 1169|  5.29M|                    default:
  ------------------
  |  Branch (1169:21): [True: 5.29M, False: 3.82M]
  ------------------
 1170|  5.29M|                        destination_->byte_string_value(value, tag, context, ec);
 1171|  5.29M|                        break;
 1172|  9.12M|                }
 1173|  9.12M|            }
 1174|       |
 1175|  11.6M|            level_stack_.back().advance();
 1176|  11.6M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  11.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1177|  11.6M|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS1_10error_codeE:
 1183|   108k|        {
 1184|   108k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1184:17): [True: 28.6k, False: 80.2k]
  |  Branch (1184:49): [True: 27.5k, False: 52.7k]
  ------------------
 1185|  56.1k|            {
 1186|  56.1k|                key_.clear();
 1187|  56.1k|                bytes_to_base64url(value.begin(), value.end(),key_);
 1188|  56.1k|            }
 1189|       |
 1190|   108k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1190:17): [True: 28.6k, False: 80.2k]
  ------------------
 1191|  28.6k|            {
 1192|  28.6k|                switch (level_stack_.back().target_kind())
 1193|  28.6k|                {
 1194|  13.3k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1194:21): [True: 13.3k, False: 15.2k]
  ------------------
 1195|  13.3k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1195:29): [True: 12.9k, False: 369]
  ------------------
 1196|  12.9k|                        {
 1197|  12.9k|                            key_buffer_.push_back(',');
 1198|  12.9k|                        }
 1199|  13.3k|                        key_buffer_.push_back('\"');
 1200|  13.3k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1201|  13.3k|                        key_buffer_.push_back('\"');
 1202|  13.3k|                        key_buffer_.push_back(':');
 1203|  13.3k|                        break;
 1204|  15.2k|                    default:
  ------------------
  |  Branch (1204:21): [True: 15.2k, False: 13.3k]
  ------------------
 1205|  15.2k|                        destination_->key(key_, context, ec);
 1206|  15.2k|                        break;
 1207|  28.6k|                }
 1208|  28.6k|            }
 1209|  80.2k|            else
 1210|  80.2k|            {
 1211|  80.2k|                switch (level_stack_.back().target_kind())
 1212|  80.2k|                {
 1213|  27.5k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1213:21): [True: 27.5k, False: 52.7k]
  ------------------
 1214|  27.5k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1214:29): [True: 19.4k, False: 8.16k]
  |  Branch (1214:65): [True: 17.5k, False: 1.85k]
  ------------------
 1215|  17.5k|                        {
 1216|  17.5k|                            key_buffer_.push_back(',');
 1217|  17.5k|                        }
 1218|  27.5k|                        key_buffer_.push_back('\"');
 1219|  27.5k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1220|  27.5k|                        key_buffer_.push_back('\"');
 1221|  27.5k|                        break;
 1222|  52.7k|                    default:
  ------------------
  |  Branch (1222:21): [True: 52.7k, False: 27.5k]
  ------------------
 1223|  52.7k|                        destination_->byte_string_value(value, raw_tag, context, ec);
 1224|  52.7k|                        break;
 1225|  80.2k|                }
 1226|  80.2k|            }
 1227|       |
 1228|   108k|            level_stack_.back().advance();
 1229|   108k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   108k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1230|   108k|        }
_ZN8jsoncons29basic_generic_to_json_visitorIcNSt3__19allocatorIcEEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS1_10error_codeE:
 1325|   495k|        {
 1326|   495k|            if (level_stack_.back().is_key() || level_stack_.back().target_kind() == json_target_kind::buffer)
  ------------------
  |  Branch (1326:17): [True: 93.6k, False: 401k]
  |  Branch (1326:49): [True: 160k, False: 241k]
  ------------------
 1327|   253k|            {
 1328|   253k|                key_.clear();
 1329|   253k|                jsoncons::string_sink<string_type> sink(key_);
 1330|   253k|                jsoncons::write_double f{float_chars_format::general,0};
 1331|   253k|                double x = binary::decode_half(value);
 1332|   253k|                f(x, sink);
 1333|   253k|            }
 1334|       |
 1335|   495k|            if (level_stack_.back().is_key())
  ------------------
  |  Branch (1335:17): [True: 93.6k, False: 401k]
  ------------------
 1336|  93.6k|            {
 1337|  93.6k|                switch (level_stack_.back().target_kind())
 1338|  93.6k|                {
 1339|  8.38k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1339:21): [True: 8.38k, False: 85.3k]
  ------------------
 1340|  8.38k|                        if (level_stack_.back().count() > 0)
  ------------------
  |  Branch (1340:29): [True: 2.68k, False: 5.70k]
  ------------------
 1341|  2.68k|                        {
 1342|  2.68k|                            key_buffer_.push_back(',');
 1343|  2.68k|                        }
 1344|  8.38k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1345|  8.38k|                        key_buffer_.push_back(':');
 1346|  8.38k|                        break;
 1347|  85.3k|                    default:
  ------------------
  |  Branch (1347:21): [True: 85.3k, False: 8.38k]
  ------------------
 1348|  85.3k|                        destination_->key(key_, context, ec);
 1349|  85.3k|                        break;
 1350|  93.6k|                }
 1351|  93.6k|            }
 1352|   401k|            else
 1353|   401k|            {
 1354|   401k|                switch (level_stack_.back().target_kind())
 1355|   401k|                {
 1356|   160k|                    case json_target_kind::buffer:
  ------------------
  |  Branch (1356:21): [True: 160k, False: 241k]
  ------------------
 1357|   160k|                        if (!level_stack_.back().is_object() && level_stack_.back().count() > 0)
  ------------------
  |  Branch (1357:29): [True: 152k, False: 7.65k]
  |  Branch (1357:65): [True: 144k, False: 8.35k]
  ------------------
 1358|   144k|                        {
 1359|   144k|                            key_buffer_.push_back(',');
 1360|   144k|                        }
 1361|   160k|                        key_buffer_.insert(key_buffer_.end(), key_.begin(), key_.end());
 1362|   160k|                        break;
 1363|   241k|                    default:
  ------------------
  |  Branch (1363:21): [True: 241k, False: 160k]
  ------------------
 1364|   241k|                        destination_->half_value(value, tag, context, ec);
 1365|   241k|                        break;
 1366|   401k|                }
 1367|   401k|            }
 1368|       |
 1369|   495k|            level_stack_.back().advance();
 1370|   495k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   495k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
 1371|   495k|        }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  343|  11.6M|    {
  344|  11.6M|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  345|  11.6M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  11.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  346|  11.6M|    }
_ZN8jsoncons21basic_generic_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  354|   108k|    {
  355|   108k|        visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  356|   108k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   108k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  357|   108k|    }
_ZN8jsoncons21basic_generic_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  323|  5.08M|    {
  324|  5.08M|        visit_bool(value, tag, context, ec);
  325|  5.08M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  5.08M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  5.08M|    }
_ZN8jsoncons21basic_generic_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  314|  3.18M|    {
  315|  3.18M|        visit_null(tag, context, ec);
  316|  3.18M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  3.18M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  317|  3.18M|    }
_ZN8jsoncons21basic_generic_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  332|  2.40M|    {
  333|  2.40M|        visit_string(value, tag, context, ec);
  334|  2.40M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.40M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  335|  2.40M|    }
_ZN8jsoncons21basic_generic_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  288|  43.1k|    {
  289|  43.1k|        visit_begin_array(tag, context, ec);
  290|  43.1k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  43.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  291|  43.1k|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  267|  54.6k|    {
  268|  54.6k|        visit_begin_object(tag, context, ec);
  269|  54.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  54.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  270|  54.6k|    }
_ZN8jsoncons21basic_generic_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  276|  7.97M|    {
  277|  7.97M|        visit_begin_object(length, tag, context, ec);
  278|  7.97M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  7.97M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  279|  7.97M|    }
_ZN8jsoncons21basic_generic_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  282|  7.95M|    {
  283|  7.95M|        visit_end_object(context, ec);
  284|  7.95M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  7.95M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  285|  7.95M|    }
_ZN8jsoncons21basic_generic_visitorIcE5flushEv:
   57|  5.16k|    {
   58|  5.16k|        visit_flush();
   59|  5.16k|    }

_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEED2Ev:
  105|  5.44M|        {
  106|  5.44M|            flatten_and_destroy();
  107|  5.44M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE19flatten_and_destroyEv:
  248|  5.44M|        {
  249|  15.1M|            while (!data_.empty())
  ------------------
  |  Branch (249:20): [True: 9.68M, False: 5.44M]
  ------------------
  250|  9.68M|            {
  251|  9.68M|                value_type current = std::move(data_.back());
  252|  9.68M|                data_.pop_back();
  253|  9.68M|                switch (current.storage_kind())
  254|  9.68M|                {
  255|  1.77M|                    case json_storage_kind::array:
  ------------------
  |  Branch (255:21): [True: 1.77M, False: 7.91M]
  ------------------
  256|  1.77M|                    {
  257|  1.77M|                        for (auto&& item : current.array_range())
  ------------------
  |  Branch (257:42): [True: 4.27M, False: 1.77M]
  ------------------
  258|  4.27M|                        {
  259|  4.27M|                            if ((item.storage_kind() == json_storage_kind::array || item.storage_kind() == json_storage_kind::object)
  ------------------
  |  Branch (259:34): [True: 1.15M, False: 3.11M]
  |  Branch (259:85): [True: 163k, False: 2.95M]
  ------------------
  260|  1.32M|                                && !item.empty()) // non-empty object or array
  ------------------
  |  Branch (260:36): [True: 1.00M, False: 315k]
  ------------------
  261|  1.00M|                            {
  262|  1.00M|                                data_.push_back(std::move(item));
  263|  1.00M|                            }
  264|  4.27M|                        }
  265|  1.77M|                        current.clear();                           
  266|  1.77M|                        break;
  267|      0|                    }
  268|   240k|                    case json_storage_kind::object:
  ------------------
  |  Branch (268:21): [True: 240k, False: 9.44M]
  ------------------
  269|   240k|                    {
  270|   240k|                        for (auto&& kv : current.object_range())
  ------------------
  |  Branch (270:40): [True: 37.4k, False: 240k]
  ------------------
  271|  37.4k|                        {
  272|  37.4k|                            if ((kv.value().storage_kind() == json_storage_kind::array || kv.value().storage_kind() == json_storage_kind::object)
  ------------------
  |  Branch (272:34): [True: 4.84k, False: 32.5k]
  |  Branch (272:91): [True: 8.53k, False: 24.0k]
  ------------------
  273|  13.3k|                                && !kv.value().empty()) // non-empty object or array
  ------------------
  |  Branch (273:36): [True: 6.72k, False: 6.65k]
  ------------------
  274|  6.72k|                            {
  275|  6.72k|                                data_.push_back(std::move(kv.value()));
  276|  6.72k|                            }
  277|  37.4k|                        }
  278|   240k|                        current.clear();                           
  279|   240k|                        break;
  280|      0|                    }
  281|  7.67M|                    default:
  ------------------
  |  Branch (281:21): [True: 7.67M, False: 2.01M]
  ------------------
  282|  7.67M|                        break;
  283|  9.68M|                }
  284|  9.68M|            }
  285|  5.44M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5beginEv:
  222|  1.77M|        iterator begin() {return data_.begin();}
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE3endEv:
  224|  1.77M|        iterator end() {return data_.end();}
_ZNK8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5emptyEv:
  125|  1.16M|        {
  126|  1.16M|            return data_.empty();
  127|  1.16M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5clearEv:
  142|  1.77M|        void clear() {data_.clear();}
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEEC2ERKS5_:
   49|  20.4k|            : allocator_holder<allocator_type>(alloc), 
   50|  20.4k|              data_(value_allocator_type(alloc))
   51|  20.4k|        {
   52|  20.4k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE12emplace_backIJS6_EEERS6_DpOT_:
  217|  5.04k|        {
  218|  5.04k|            data_.emplace_back(std::forward<Args>(args)...);
  219|  5.04k|            return data_.back();
  220|  5.04k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE7reserveEm:
  153|  1.76M|        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|  12.9M|        {
  179|  12.9M|            data_.emplace_back(std::forward<T>(value));
  180|  12.9M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEEC2Ev:
   46|  5.42M|        json_array() = default;

_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_EC2ERKS5_S9_:
   74|  15.8k|        : alloc_(alloc),
   75|  15.8k|          result_(),
   76|  15.8k|          name_(alloc),
   77|  15.8k|          item_stack_(alloc),
   78|  15.8k|          structure_stack_(temp_alloc)
   79|  15.8k|    {
   80|       |        //item_stack_.reserve(1000);
   81|       |        //structure_stack_.reserve(100);
   82|  15.8k|        structure_stack_.emplace_back(json_structure_kind::root_kind, 0);
   83|  15.8k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E14json_structureC2ENS7_19json_structure_kindEm:
   51|  9.50M|            : structure_kind(type), structure_index(offset)
   52|  9.50M|        {
   53|  9.50M|        }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E15visit_end_arrayERKNS_11ser_contextERNS3_10error_codeE:
  186|  5.38M|    {
  187|  5.38M|        JSONCONS_ASSERT(structure_stack_.size() > 1);
  ------------------
  |  |   67|  5.38M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 5.38M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  188|  5.38M|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::array_kind);
  ------------------
  |  |   67|  5.38M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 5.38M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  189|  5.38M|        const size_t structure_index = structure_stack_.back().structure_index;
  190|  5.38M|        JSONCONS_ASSERT(item_stack_.size() > structure_index);
  ------------------
  |  |   67|  5.38M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 5.38M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  191|       |
  192|  5.38M|        auto& structure = structure_stack_[structure_stack_.size()-2];
  193|  5.38M|        auto& arr = item_stack_[structure_index].value;
  194|  5.38M|        const size_t size = item_stack_.size() - (structure_index + 1);
  195|       |
  196|  5.38M|        if (size > 0)
  ------------------
  |  Branch (196:13): [True: 1.76M, False: 3.62M]
  ------------------
  197|  1.76M|        {
  198|  1.76M|            arr.reserve(size);
  199|  1.76M|            auto first = item_stack_.begin() + (structure_index+1);
  200|  1.76M|            auto last = first + size;
  201|  14.7M|            for (auto it = first; it != last; ++it)
  ------------------
  |  Branch (201:35): [True: 12.9M, False: 1.76M]
  ------------------
  202|  12.9M|            {
  203|  12.9M|                arr.push_back(std::move((*it).value));
  204|  12.9M|            }
  205|  1.76M|            item_stack_.erase(first, item_stack_.end());
  206|  1.76M|        }
  207|       |
  208|  5.38M|        if (structure.structure_kind == json_structure_kind::root_kind)
  ------------------
  |  Branch (208:13): [True: 717, False: 5.38M]
  ------------------
  209|    717|        {
  210|    717|            result_ = std::move(item_stack_.front().value);
  211|    717|            item_stack_.pop_back();
  212|    717|            is_valid_ = true;
  213|    717|        }
  214|       |
  215|  5.38M|        structure_stack_.pop_back();
  216|  5.38M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  5.38M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  217|  5.38M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  311|  18.1M|    {
  312|  18.1M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (312:17): [True: 18.1M, False: 0]
  ------------------
  313|  18.1M|        {
  314|  9.57M|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (314:13): [True: 9.57M, False: 8.61M]
  ------------------
  315|  9.57M|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  316|  9.57M|                break;
  317|  8.61M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (317:13): [True: 8.61M, False: 9.57M]
  ------------------
  318|  8.61M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  319|  8.61M|                break;
  320|     12|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (320:13): [True: 12, False: 18.1M]
  ------------------
  321|     12|                result_ = Json(value,tag);
  322|     12|                is_valid_ = true;
  323|     12|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     12|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  324|  18.1M|        }
  325|  18.1M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  18.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  18.1M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  290|  4.80M|    {
  291|  4.80M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (291:17): [True: 4.80M, False: 0]
  ------------------
  292|  4.80M|        {
  293|  1.98M|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (293:13): [True: 1.98M, False: 2.81M]
  ------------------
  294|  1.98M|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  295|  1.98M|                break;
  296|  2.81M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (296:13): [True: 2.81M, False: 1.98M]
  ------------------
  297|  2.81M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  298|  2.81M|                break;
  299|    140|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (299:13): [True: 140, False: 4.80M]
  ------------------
  300|    140|                result_ = Json(value,tag);
  301|    140|                is_valid_ = true;
  302|    140|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|    140|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|  4.80M|        }
  304|  4.80M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  4.80M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  305|  4.80M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  353|  1.13M|    {
  354|  1.13M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (354:17): [True: 1.13M, False: 0]
  ------------------
  355|  1.13M|        {
  356|  29.9k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (356:13): [True: 29.9k, False: 1.10M]
  ------------------
  357|  29.9k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  358|  29.9k|                break;
  359|  1.10M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (359:13): [True: 1.10M, False: 30.0k]
  ------------------
  360|  1.10M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  361|  1.10M|                break;
  362|     93|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (362:13): [True: 93, False: 1.13M]
  ------------------
  363|     93|                result_ = Json(value, tag);
  364|     93|                is_valid_ = true;
  365|     93|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     93|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  1.13M|        }
  367|  1.13M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.13M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  1.13M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E11visit_flushEv:
  122|  5.16k|    {
  123|  5.16k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  126|  4.07M|    {
  127|  4.07M|        if (structure_stack_.back().structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (127:13): [True: 1.27M, False: 2.79M]
  ------------------
  128|  1.27M|        {
  129|  1.27M|            structure_stack_.emplace_back(json_structure_kind::object_kind, item_stack_.size());
  130|  1.27M|            item_stack_.emplace_back(std::move(name_), index_++, json_object_arg, tag);
  131|  1.27M|        }
  132|  2.79M|        else
  133|  2.79M|        {
  134|  2.79M|            structure_stack_.emplace_back(json_structure_kind::object_kind, item_stack_.size());
  135|  2.79M|            item_stack_.emplace_back(key_type(alloc_), 0, json_object_arg, tag);
  136|  2.79M|        }
  137|  4.07M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  4.07M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  138|  4.07M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E16visit_end_objectERKNS_11ser_contextERNS3_10error_codeE:
  141|  4.06M|    {
  142|  4.06M|        JSONCONS_ASSERT(structure_stack_.size() > 0);
  ------------------
  |  |   67|  4.06M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 4.06M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  143|  4.06M|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::object_kind);
  ------------------
  |  |   67|  4.06M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 4.06M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  144|  4.06M|        const size_t structure_index = structure_stack_.back().structure_index;
  145|  4.06M|        JSONCONS_ASSERT(item_stack_.size() > structure_index);
  ------------------
  |  |   67|  4.06M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 4.06M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  146|       |
  147|  4.06M|        const size_t size = item_stack_.size() - (structure_index + 1);
  148|  4.06M|        auto first = item_stack_.begin() + (structure_index+1);
  149|  4.06M|        auto& structure = structure_stack_[structure_stack_.size()-2];
  150|  4.06M|        auto& obj = item_stack_[structure_index].value;
  151|       |
  152|  4.06M|        if (size > 0)
  ------------------
  |  Branch (152:13): [True: 32.3k, False: 4.02M]
  ------------------
  153|  32.3k|        {
  154|  32.3k|            obj.template cast<typename Json::object_storage>().value().uninitialized_init(
  155|  32.3k|                &item_stack_[structure_index+1], size);
  156|  32.3k|            item_stack_.erase(first, item_stack_.end());
  157|  32.3k|        }
  158|       |
  159|  4.06M|        if (structure.structure_kind == json_structure_kind::root_kind)
  ------------------
  |  Branch (159:13): [True: 1.47k, False: 4.05M]
  ------------------
  160|  1.47k|        {
  161|  1.47k|            result_ = std::move(item_stack_.front().value);
  162|  1.47k|            item_stack_.pop_back();
  163|  1.47k|            is_valid_ = true;
  164|  1.47k|        }
  165|       |
  166|  4.06M|        structure_stack_.pop_back();
  167|  4.06M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  4.06M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  168|  4.06M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  171|  5.42M|    {
  172|  5.42M|        if (structure_stack_.back().structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (172:13): [True: 1.49M, False: 3.92M]
  ------------------
  173|  1.49M|        {
  174|  1.49M|            structure_stack_.emplace_back(json_structure_kind::array_kind, item_stack_.size());
  175|  1.49M|            item_stack_.emplace_back(std::move(name_), index_++, json_array_arg, tag);
  176|  1.49M|        }
  177|  3.92M|        else
  178|  3.92M|        {
  179|  3.92M|            structure_stack_.emplace_back(json_structure_kind::array_kind, item_stack_.size());
  180|  3.92M|            item_stack_.emplace_back(key_type(alloc_), 0, json_array_arg, tag);
  181|  3.92M|        }
  182|  5.42M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  5.42M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  183|  5.42M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E9visit_keyERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  220|  17.2M|    {
  221|  17.2M|        name_ = key_type(name.data(),name.length(),alloc_);
  222|  17.2M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  17.2M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  223|  17.2M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  389|  1.04M|    {
  390|  1.04M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (390:17): [True: 1.04M, False: 0]
  ------------------
  391|  1.04M|        {
  392|  63.9k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (392:13): [True: 63.9k, False: 982k]
  ------------------
  393|  63.9k|                item_stack_.emplace_back(std::move(name_), index_++, null_type(), tag);
  394|  63.9k|                break;
  395|   982k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (395:13): [True: 982k, False: 63.9k]
  ------------------
  396|   982k|                item_stack_.emplace_back(key_type(alloc_), 0, null_type(), tag);
  397|   982k|                break;
  398|      3|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (398:13): [True: 3, False: 1.04M]
  ------------------
  399|      3|                result_ = Json(null_type(), tag);
  400|      3|                is_valid_ = true;
  401|      3|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      3|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  402|  1.04M|        }
  403|  1.04M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.04M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  404|  1.04M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  371|  3.07M|    {
  372|  3.07M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (372:17): [True: 3.07M, False: 0]
  ------------------
  373|  3.07M|        {
  374|   686k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (374:13): [True: 686k, False: 2.38M]
  ------------------
  375|   686k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  376|   686k|                break;
  377|  2.38M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (377:13): [True: 2.38M, False: 686k]
  ------------------
  378|  2.38M|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  379|  2.38M|                break;
  380|      5|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (380:13): [True: 5, False: 3.07M]
  ------------------
  381|      5|                result_ = Json(value, tag);
  382|      5|                is_valid_ = true;
  383|      5|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      5|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  384|  3.07M|        }
  385|  3.07M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  3.07M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  3.07M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  226|  1.11M|    {
  227|  1.11M|        auto& structure = structure_stack_.back();
  228|  1.11M|        switch (structure.structure_kind)
  ------------------
  |  Branch (228:17): [True: 1.11M, False: 0]
  ------------------
  229|  1.11M|        {
  230|   521k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (230:13): [True: 521k, False: 595k]
  ------------------
  231|   521k|                item_stack_.emplace_back(std::move(name_), index_++, sv, tag);
  232|   521k|                break;
  233|   592k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (233:13): [True: 592k, False: 524k]
  ------------------
  234|   592k|                item_stack_.emplace_back(key_type(alloc_), 0, sv, tag);
  235|   592k|                break;
  236|  2.74k|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (236:13): [True: 2.74k, False: 1.11M]
  ------------------
  237|  2.74k|                result_ = Json(sv, tag, alloc_);
  238|  2.74k|                is_valid_ = true;
  239|  2.74k|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.74k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  240|  1.11M|        }
  241|  1.11M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.11M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  242|  1.11M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_byte_stringERKNS_16byte_string_viewENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  248|  5.29M|    {
  249|  5.29M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (249:17): [True: 5.29M, False: 0]
  ------------------
  250|  5.29M|        {
  251|  1.53M|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (251:13): [True: 1.53M, False: 3.75M]
  ------------------
  252|  1.53M|                item_stack_.emplace_back(std::move(name_), index_++, byte_string_arg, b, tag);
  253|  1.53M|                break;
  254|  3.75M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (254:13): [True: 3.75M, False: 1.53M]
  ------------------
  255|  3.75M|                item_stack_.emplace_back(key_type(alloc_), 0, byte_string_arg, b, tag);
  256|  3.75M|                break;
  257|     11|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (257:13): [True: 11, False: 5.29M]
  ------------------
  258|     11|                result_ = Json(byte_string_arg, b, tag, alloc_);
  259|     11|                is_valid_ = true;
  260|     11|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|     11|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  261|  5.29M|        }
  262|  5.29M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  5.29M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  263|  5.29M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS3_10error_codeE:
  269|  52.7k|    {
  270|  52.7k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (270:17): [True: 52.7k, False: 0]
  ------------------
  271|  52.7k|        {
  272|  16.1k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (272:13): [True: 16.1k, False: 36.5k]
  ------------------
  273|  16.1k|                item_stack_.emplace_back(std::move(name_), index_++, byte_string_arg, b, raw_tag);
  274|  16.1k|                break;
  275|  36.5k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (275:13): [True: 36.5k, False: 16.1k]
  ------------------
  276|  36.5k|                item_stack_.emplace_back(key_type(alloc_), 0, byte_string_arg, b, raw_tag);
  277|  36.5k|                break;
  278|      2|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (278:13): [True: 2, False: 52.6k]
  ------------------
  279|      2|                result_ = Json(byte_string_arg, b, raw_tag, alloc_);
  280|      2|                is_valid_ = true;
  281|      2|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  282|  52.7k|        }
  283|  52.6k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  52.6k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  284|  52.7k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  332|   241k|    {
  333|   241k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (333:17): [True: 241k, False: 0]
  ------------------
  334|   241k|        {
  335|  82.7k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (335:13): [True: 82.7k, False: 158k]
  ------------------
  336|  82.7k|                item_stack_.emplace_back(std::move(name_), index_++, half_arg, value, tag);
  337|  82.7k|                break;
  338|   158k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (338:13): [True: 158k, False: 82.7k]
  ------------------
  339|   158k|                item_stack_.emplace_back(key_type(alloc_), 0, half_arg, value, tag);
  340|   158k|                break;
  341|      2|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (341:13): [True: 2, False: 241k]
  ------------------
  342|      2|                result_ = Json(half_arg, value, tag);
  343|      2|                is_valid_ = true;
  344|      2|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|      2|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  345|   241k|        }
  346|   241k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   241k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  347|   241k|    }
_ZNK8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E8is_validEv:
  108|  5.16k|    {
  109|  5.16k|        return is_valid_;
  110|  5.16k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10get_resultEv:
  113|  5.16k|    {
  114|  5.16k|        JSONCONS_ASSERT(is_valid_);
  ------------------
  |  |   67|  5.16k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 5.16k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  115|  5.16k|        is_valid_ = false;
  116|  5.16k|        return std::move(result_);
  117|  5.16k|    }

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

_ZN8jsoncons25make_json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEEENS_20json_visitor_adaptorIT_T0_vEERSD_:
 1064|  15.8k|{
 1065|  15.8k|    return json_visitor_adaptor<From, To>(to);
 1066|  15.8k|}
_ZN8jsoncons20json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEvEC2ERSA_:
  983|  15.8k|        : supertype(visitor)
  984|  15.8k|    {
  985|  15.8k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEEC2ERSA_:
  721|  15.8k|        : destination1_(std::addressof(visitor))
  722|  15.8k|    {
  723|  15.8k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  777|  5.40M|    {
  778|  5.40M|        destination1_->begin_array(length, tag, context, ec);
  779|  5.40M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  5.40M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  780|  5.40M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE15visit_end_arrayERKNS_11ser_contextERNS6_10error_codeE:
  783|  5.38M|    {
  784|  5.38M|        destination1_->end_array(context, ec);
  785|  5.38M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  5.38M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  786|  5.38M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  825|  18.1M|    {
  826|  18.1M|        destination1_->uint64_value(value, tag, context, ec);
  827|  18.1M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  18.1M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  828|  18.1M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  819|  4.80M|    {
  820|  4.80M|        destination1_->int64_value(value, tag, context, ec);
  821|  4.80M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  4.80M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  822|  4.80M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  813|  1.13M|    {
  814|  1.13M|        destination1_->double_value(value, tag, context, ec);
  815|  1.13M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.13M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  816|  1.13M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11visit_flushEv:
  738|  5.16k|    {
  739|  5.16k|        destination1_->flush();
  740|  5.16k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  745|  17.5k|    {
  746|  17.5k|        destination1_->begin_object(tag, context, ec);
  747|  17.5k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  17.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  748|  17.5k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  754|  4.05M|    {
  755|  4.05M|        destination1_->begin_object(length, tag, context, ec);
  756|  4.05M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  4.05M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  757|  4.05M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE16visit_end_objectERKNS_11ser_contextERNS6_10error_codeE:
  760|  4.06M|    {
  761|  4.06M|        destination1_->end_object(context, ec);
  762|  4.06M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  4.06M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  763|  4.06M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  768|  16.4k|    {
  769|  16.4k|        destination1_->begin_array(tag, context, ec);
  770|  16.4k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  16.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  771|  16.4k|    }
_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|  17.2M|    {
  996|  17.2M|        return destination().key(string_view_type(reinterpret_cast<const to_char_type*>(key.data()),key.size()), context, ec);
  997|  17.2M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11destinationEv:
  732|  18.3M|    {
  733|  18.3M|        return *destination1_;
  734|  18.3M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  837|  1.04M|    {
  838|  1.04M|        destination1_->null_value(tag, context, ec);
  839|  1.04M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  1.04M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|  1.04M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  831|  3.07M|    {
  832|  3.07M|        destination1_->bool_value(value, tag, context, ec);
  833|  3.07M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  3.07M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  834|  3.07M|    }
_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.11M|    {
 1004|  1.11M|        return destination().string_value(string_view_type(reinterpret_cast<const to_char_type*>(value.data()),value.size()), tag, context, ec);
 1005|  1.11M|    }
_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|  5.29M|    {
  793|  5.29M|        destination1_->byte_string_value(b, tag, context, ec);
  794|  5.29M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  5.29M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  795|  5.29M|    }
_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|  52.7k|    {
  802|  52.7k|        destination1_->byte_string_value(b, raw_tag, context, ec);
  803|  52.7k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  52.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  804|  52.7k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_halfEtNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  807|   241k|    {
  808|   241k|        destination1_->half_value(value, tag, context, ec);
  809|   241k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   241k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  810|   241k|    }

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

_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  47.6k|        basic_json_visitor() = default;
_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  63.5k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE17visit_begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  560|  5.40M|        {
  561|  5.40M|            visit_begin_array(tag, context, ec);
  562|  5.40M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  5.40M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  563|  5.40M|        }
_ZN8jsoncons18basic_json_visitorIcE18visit_begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  544|  4.05M|        {
  545|  4.05M|            visit_begin_object(tag, context, ec);
  546|  4.05M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  4.05M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  547|  4.05M|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  345|  10.8M|        {
  346|  10.8M|            visit_begin_array(length, tag, context, ec);
  347|  10.8M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  10.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  348|  10.8M|        }
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|  36.3M|        {
  415|  36.3M|            visit_uint64(value, tag, context, ec);
  416|  36.3M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  36.3M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|  36.3M|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|  10.7M|        {
  352|  10.7M|            visit_end_array(context, ec);
  353|  10.7M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  10.7M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|  10.7M|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|  9.60M|        {
  424|  9.60M|            visit_int64(value, tag, context, ec);
  425|  9.60M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  9.60M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|  9.60M|        }
_ZN8jsoncons18basic_json_visitorIcE10half_valueEtNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  432|   482k|        {
  433|   482k|            visit_half(value, tag, context, ec);
  434|   482k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   482k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  435|   482k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  2.26M|        {
  442|  2.26M|            visit_double(value, tag, context, ec);
  443|  2.26M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.26M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|  2.26M|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|  10.3k|        {
  109|  10.3k|            visit_flush();
  110|  10.3k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|  35.0k|        {
  319|  35.0k|            visit_begin_object(tag, context, ec);
  320|  35.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  35.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|  35.0k|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  327|  8.11M|        {
  328|  8.11M|            visit_begin_object(length, tag, context, ec);
  329|  8.11M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  8.11M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  330|  8.11M|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  8.12M|        {
  334|  8.12M|            visit_end_object(context, ec);
  335|  8.12M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  8.12M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  8.12M|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|  32.8k|        {
  340|  32.8k|            visit_begin_array(tag, context, ec);
  341|  32.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  32.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|  32.8k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|  34.5M|        {
  358|  34.5M|            visit_key(name, context, ec);
  359|  34.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  34.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|  34.5M|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  2.09M|        {
  366|  2.09M|            visit_null(tag, context, ec);
  367|  2.09M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.09M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  2.09M|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|  6.14M|        {
  375|  6.14M|            visit_bool(value, tag, context, ec);
  376|  6.14M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  6.14M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|  6.14M|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|  2.23M|        {
  384|  2.23M|            visit_string(value, tag, context, ec);
  385|  2.23M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  2.23M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  2.23M|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_NS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeENSB_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  394|  10.5M|        {
  395|  10.5M|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), tag, context, ec);
  396|  10.5M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|  10.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  397|  10.5M|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|   105k|        {
  406|   105k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|   105k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  337|   105k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|   105k|        }
_ZN8jsoncons26basic_default_json_visitorIcEC2Ev:
  811|  15.8k|        basic_default_json_visitor() = default;

_ZN8jsoncons9key_valueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EEE5valueEv:
  120|   168k|    {
  121|   168k|        return value_;
  122|   168k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEaSEOS7_:
   60|  37.1M|    index_key_value& operator=(index_key_value&&) = default;
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRmRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  18.1M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  18.1M|    {
   45|  18.1M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2EOS7_:
   49|  75.9M|    index_key_value(index_key_value&&) = default;
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRlRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  4.80M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  4.80M|    {
   45|  4.80M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRdRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  1.13M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  1.13M|    {
   45|  1.13M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17json_object_arg_tERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  4.07M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  4.07M|    {
   45|  4.07M|    }
_ZN8jsoncons9key_valueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EEEC2IJSA_EEEOS7_DpOT_:
   86|  97.8k|        : key_(std::move(name)), value_(std::forward<Args>(args)...)
   87|  97.8k|    {
   88|  97.8k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_16json_array_arg_tERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  5.42M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  5.42M|    {
   45|  5.42M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJNS_9null_typeERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  1.04M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  1.04M|    {
   45|  1.04M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRbRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  3.07M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  3.07M|    {
   45|  3.07M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS_12semantic_tagEEEEONS3_12basic_stringIcSB_S5_EElDpOT_:
   43|  1.11M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  1.11M|    {
   45|  1.11M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17byte_string_arg_tERKNS_16byte_string_viewERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  5.29M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  5.29M|    {
   45|  5.29M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17byte_string_arg_tERKNS_16byte_string_viewERmEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  52.6k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  52.6k|    {
   45|  52.6k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_10half_arg_tERtRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|   241k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|   241k|    {
   45|   241k|    }

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

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

_ZN8jsoncons6nonstd8expectedImNSt3__14errcEEC2ImEENS2_9enable_ifIXsr3std24is_default_constructibleIT_EE5valueEiE4typeE:
   41|      4|        : expected(T{})
   42|      4|    {
   43|      4|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEEC2EOm:
   52|  15.7k|        : has_value_(true)
   53|  15.7k|    {
   54|  15.7k|        construct(std::move(value));
   55|  15.7k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEE9constructEOm:
  276|  15.7k|    {
  277|  15.7k|        ::new (&value_) T(std::move(value));
  278|  15.7k|        has_value_ = true;
  279|  15.7k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEEC2IJS3_EEENS0_10unexpect_tEDpOT_:
   66|     30|        : has_value_(false)
   67|     30|    {
   68|     30|        ::new (&error_) E(std::forward<Args>(args)...);
   69|     30|    }
_ZNK8jsoncons6nonstd8expectedImNSt3__14errcEEcvbEv:
  148|  15.8k|    {
  149|  15.8k|        return has_value_;
  150|  15.8k|    }
_ZNR8jsoncons6nonstd8expectedImNSt3__14errcEEdeEv:
  233|  31.5k|    {
  234|  31.5k|        return this->value_;
  235|  31.5k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEED2Ev:
  100|  15.8k|    {
  101|  15.8k|        destroy();
  102|  15.8k|    }
_ZN8jsoncons6nonstd8expectedImNSt3__14errcEE7destroyEv:
  282|  15.8k|    {
  283|  15.8k|        if (has_value_) 
  ------------------
  |  Branch (283:13): [True: 15.7k, False: 30]
  ------------------
  284|  15.7k|        {
  285|  15.7k|            value_.~T();
  286|  15.7k|            has_value_ = false;
  287|  15.7k|        }
  288|     30|        else
  289|     30|        {
  290|     30|            error_.~E();
  291|     30|        }
  292|  15.8k|    }
_ZN8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEEC2IJRNS4_10error_codeEmmEEENS0_10unexpect_tEDpOT_:
   66|  10.7k|        : has_value_(false)
   67|  10.7k|    {
   68|  10.7k|        ::new (&error_) E(std::forward<Args>(args)...);
   69|  10.7k|    }
_ZN8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEEC2EOS7_:
   52|  5.16k|        : has_value_(true)
   53|  5.16k|    {
   54|  5.16k|        construct(std::move(value));
   55|  5.16k|    }
_ZN8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEE9constructEOS7_:
  276|  5.16k|    {
  277|  5.16k|        ::new (&value_) T(std::move(value));
  278|  5.16k|        has_value_ = true;
  279|  5.16k|    }
_ZNK8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEEcvbEv:
  148|  15.8k|    {
  149|  15.8k|        return has_value_;
  150|  15.8k|    }
_ZNR8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEE5errorEv:
  194|  32.1k|    {
  195|  32.1k|        assert(!has_value_);
  ------------------
  |  Branch (195:9): [True: 32.1k, False: 0]
  ------------------
  196|  32.1k|        return this->error_;
  197|  32.1k|    }
_ZNR8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEEdeEv:
  233|  5.16k|    {
  234|  5.16k|        return this->value_;
  235|  5.16k|    }
_ZN8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEED2Ev:
  100|  15.8k|    {
  101|  15.8k|        destroy();
  102|  15.8k|    }
_ZN8jsoncons6nonstd8expectedINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS_10read_errorEE7destroyEv:
  282|  15.8k|    {
  283|  15.8k|        if (has_value_) 
  ------------------
  |  Branch (283:13): [True: 5.16k, False: 10.7k]
  ------------------
  284|  5.16k|        {
  285|  5.16k|            value_.~T();
  286|  5.16k|            has_value_ = false;
  287|  5.16k|        }
  288|  10.7k|        else
  289|  10.7k|        {
  290|  10.7k|            error_.~E();
  291|  10.7k|        }
  292|  15.8k|    }

_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2EPS2_m:
  102|  10.0M|        : data_(data), size_(size)
  103|  10.0M|    {
  104|  10.0M|    }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4dataEv:
  154|  18.9M|    {
  155|  18.9M|        return data_;
  156|  18.9M|    }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EE4sizeEv:
  159|  33.2M|    {
  160|  33.2M|        return size_;
  161|  33.2M|    }
_ZNK8jsoncons6nonstd4spanIKtLm18446744073709551615EE4sizeEv:
  159|  7.79M|    {
  160|  7.79M|        return size_;
  161|  7.79M|    }
_ZNK8jsoncons6nonstd4spanIKjLm18446744073709551615EE4sizeEv:
  159|   254k|    {
  160|   254k|        return size_;
  161|   254k|    }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EE4sizeEv:
  159|   341k|    {
  160|   341k|        return size_;
  161|   341k|    }
_ZNK8jsoncons6nonstd4spanIKaLm18446744073709551615EE4sizeEv:
  159|   214k|    {
  160|   214k|        return size_;
  161|   214k|    }
_ZNK8jsoncons6nonstd4spanIKsLm18446744073709551615EE4sizeEv:
  159|  2.28M|    {
  160|  2.28M|        return size_;
  161|  2.28M|    }
_ZNK8jsoncons6nonstd4spanIKiLm18446744073709551615EE4sizeEv:
  159|   137k|    {
  160|   137k|        return size_;
  161|   137k|    }
_ZNK8jsoncons6nonstd4spanIKlLm18446744073709551615EE4sizeEv:
  159|  61.4M|    {
  160|  61.4M|        return size_;
  161|  61.4M|    }
_ZNK8jsoncons6nonstd4spanIKfLm18446744073709551615EE4sizeEv:
  159|  1.24M|    {
  160|  1.24M|        return size_;
  161|  1.24M|    }
_ZNK8jsoncons6nonstd4spanIKdLm18446744073709551615EE4sizeEv:
  159|  58.0k|    {
  160|  58.0k|        return size_;
  161|  58.0k|    }
_ZNK8jsoncons6nonstd4spanIhLm18446744073709551615EE4dataEv:
  154|   732k|    {
  155|   732k|        return data_;
  156|   732k|    }
_ZNK8jsoncons6nonstd4spanIhLm18446744073709551615EE4sizeEv:
  159|   732k|    {
  160|   732k|        return size_;
  161|   732k|    }
_ZN8jsoncons6nonstd4spanIhLm18446744073709551615EEC2INSt3__16vectorIhNS4_9allocatorIhEEEEEERT_PNS4_9enable_ifIXaaaaaaaantsr7is_spanIS9_EE5valuentsr6nonstd6detail12is_std_arrayIS9_EE5valuesr6nonstd6detail21is_compatible_elementIS9_hEE5valuesr6nonstd6detail8has_dataIS9_EE5valuesr6nonstd6detail8has_sizeIS9_EE5valueEvE4typeE:
  110|   732k|        : data_(c.data()), size_(c.size())
  111|   732k|    {
  112|   732k|    }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2IhLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  145|  6.85k|        : data_(s.data()), size_(s.size())
  146|  6.85k|    {
  147|  6.85k|    }
_ZNK8jsoncons6nonstd4spanIKhLm18446744073709551615EEixEm:
  169|   740k|     {
  170|   740k|         return data_[index];
  171|   740k|     }
_ZN8jsoncons6nonstd4spanItLm18446744073709551615EEC2EPtm:
  102|   321k|        : data_(data), size_(size)
  103|   321k|    {
  104|   321k|    }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EE4sizeEv:
  159|  3.41M|    {
  160|  3.41M|        return size_;
  161|  3.41M|    }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EEixEm:
  169|  5.88M|     {
  170|  5.88M|         return data_[index];
  171|  5.88M|     }
_ZN8jsoncons6nonstd4spanIKtLm18446744073709551615EEC2ItLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  145|   160k|        : data_(s.data()), size_(s.size())
  146|   160k|    {
  147|   160k|    }
_ZNK8jsoncons6nonstd4spanItLm18446744073709551615EE4dataEv:
  154|   160k|    {
  155|   160k|        return data_;
  156|   160k|    }
_ZNK8jsoncons6nonstd4spanIKtLm18446744073709551615EEixEm:
  169|  7.31M|     {
  170|  7.31M|         return data_[index];
  171|  7.31M|     }
_ZN8jsoncons6nonstd4spanIjLm18446744073709551615EEC2EPjm:
  102|  15.5k|        : data_(data), size_(size)
  103|  15.5k|    {
  104|  15.5k|    }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EE4sizeEv:
  159|   252k|    {
  160|   252k|        return size_;
  161|   252k|    }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EEixEm:
  169|   464k|     {
  170|   464k|         return data_[index];
  171|   464k|     }
_ZN8jsoncons6nonstd4spanIKjLm18446744073709551615EEC2IjLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  145|  7.78k|        : data_(s.data()), size_(s.size())
  146|  7.78k|    {
  147|  7.78k|    }
_ZNK8jsoncons6nonstd4spanIjLm18446744073709551615EE4dataEv:
  154|  7.78k|    {
  155|  7.78k|        return data_;
  156|  7.78k|    }
_ZNK8jsoncons6nonstd4spanIKjLm18446744073709551615EEixEm:
  169|   234k|     {
  170|   234k|         return data_[index];
  171|   234k|     }
_ZN8jsoncons6nonstd4spanImLm18446744073709551615EEC2EPmm:
  102|  12.3k|        : data_(data), size_(size)
  103|  12.3k|    {
  104|  12.3k|    }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EE4sizeEv:
  159|  90.1k|    {
  160|  90.1k|        return size_;
  161|  90.1k|    }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EEixEm:
  169|   149k|     {
  170|   149k|         return data_[index];
  171|   149k|     }
_ZN8jsoncons6nonstd4spanIKmLm18446744073709551615EEC2ImLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  145|  6.16k|        : data_(s.data()), size_(s.size())
  146|  6.16k|    {
  147|  6.16k|    }
_ZNK8jsoncons6nonstd4spanImLm18446744073709551615EE4dataEv:
  154|  6.16k|    {
  155|  6.16k|        return data_;
  156|  6.16k|    }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EEixEm:
  169|   474k|     {
  170|   474k|         return data_[index];
  171|   474k|     }
_ZN8jsoncons6nonstd4spanIaLm18446744073709551615EEC2EPam:
  102|  3.94k|        : data_(data), size_(size)
  103|  3.94k|    {
  104|  3.94k|    }
_ZNK8jsoncons6nonstd4spanIaLm18446744073709551615EE4sizeEv:
  159|  4.47k|    {
  160|  4.47k|        return size_;
  161|  4.47k|    }
_ZN8jsoncons6nonstd4spanIKaLm18446744073709551615EEC2IaLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  145|  1.92k|        : data_(s.data()), size_(s.size())
  146|  1.92k|    {
  147|  1.92k|    }
_ZNK8jsoncons6nonstd4spanIaLm18446744073709551615EE4dataEv:
  154|  1.92k|    {
  155|  1.92k|        return data_;
  156|  1.92k|    }
_ZNK8jsoncons6nonstd4spanIKaLm18446744073709551615EEixEm:
  169|   213k|     {
  170|   213k|         return data_[index];
  171|   213k|     }
_ZN8jsoncons6nonstd4spanIsLm18446744073709551615EEC2EPsm:
  102|  74.4k|        : data_(data), size_(size)
  103|  74.4k|    {
  104|  74.4k|    }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EE4sizeEv:
  159|  2.28M|    {
  160|  2.28M|        return size_;
  161|  2.28M|    }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EEixEm:
  169|  4.35M|     {
  170|  4.35M|         return data_[index];
  171|  4.35M|     }
_ZN8jsoncons6nonstd4spanIKsLm18446744073709551615EEC2IsLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  145|  37.1k|        : data_(s.data()), size_(s.size())
  146|  37.1k|    {
  147|  37.1k|    }
_ZNK8jsoncons6nonstd4spanIsLm18446744073709551615EE4dataEv:
  154|  37.1k|    {
  155|  37.1k|        return data_;
  156|  37.1k|    }
_ZNK8jsoncons6nonstd4spanIKsLm18446744073709551615EEixEm:
  169|  2.18M|     {
  170|  2.18M|         return data_[index];
  171|  2.18M|     }
_ZN8jsoncons6nonstd4spanIiLm18446744073709551615EEC2EPim:
  102|  13.3k|        : data_(data), size_(size)
  103|  13.3k|    {
  104|  13.3k|    }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EE4sizeEv:
  159|   134k|    {
  160|   134k|        return size_;
  161|   134k|    }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EEixEm:
  169|   233k|     {
  170|   233k|         return data_[index];
  171|   233k|     }
_ZN8jsoncons6nonstd4spanIKiLm18446744073709551615EEC2IiLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  145|  6.64k|        : data_(s.data()), size_(s.size())
  146|  6.64k|    {
  147|  6.64k|    }
_ZNK8jsoncons6nonstd4spanIiLm18446744073709551615EE4dataEv:
  154|  6.64k|    {
  155|  6.64k|        return data_;
  156|  6.64k|    }
_ZNK8jsoncons6nonstd4spanIKiLm18446744073709551615EEixEm:
  169|   120k|     {
  170|   120k|         return data_[index];
  171|   120k|     }
_ZN8jsoncons6nonstd4spanIlLm18446744073709551615EEC2EPlm:
  102|   255k|        : data_(data), size_(size)
  103|   255k|    {
  104|   255k|    }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EE4sizeEv:
  159|   266k|    {
  160|   266k|        return size_;
  161|   266k|    }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EEixEm:
  169|  15.8k|     {
  170|  15.8k|         return data_[index];
  171|  15.8k|     }
_ZN8jsoncons6nonstd4spanIKlLm18446744073709551615EEC2IlLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  145|   127k|        : data_(s.data()), size_(s.size())
  146|   127k|    {
  147|   127k|    }
_ZNK8jsoncons6nonstd4spanIlLm18446744073709551615EE4dataEv:
  154|   127k|    {
  155|   127k|        return data_;
  156|   127k|    }
_ZNK8jsoncons6nonstd4spanIKlLm18446744073709551615EEixEm:
  169|  61.0M|     {
  170|  61.0M|         return data_[index];
  171|  61.0M|     }
_ZN8jsoncons6nonstd4spanIfLm18446744073709551615EEC2EPfm:
  102|  13.7k|        : data_(data), size_(size)
  103|  13.7k|    {
  104|  13.7k|    }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EE4sizeEv:
  159|  1.24M|    {
  160|  1.24M|        return size_;
  161|  1.24M|    }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EEixEm:
  169|  2.44M|     {
  170|  2.44M|         return data_[index];
  171|  2.44M|     }
_ZN8jsoncons6nonstd4spanIKfLm18446744073709551615EEC2IfLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  145|  6.87k|        : data_(s.data()), size_(s.size())
  146|  6.87k|    {
  147|  6.87k|    }
_ZNK8jsoncons6nonstd4spanIfLm18446744073709551615EE4dataEv:
  154|  6.87k|    {
  155|  6.87k|        return data_;
  156|  6.87k|    }
_ZNK8jsoncons6nonstd4spanIKfLm18446744073709551615EEixEm:
  169|  1.23M|     {
  170|  1.23M|         return data_[index];
  171|  1.23M|     }
_ZN8jsoncons6nonstd4spanIdLm18446744073709551615EEC2EPdm:
  102|  8.66k|        : data_(data), size_(size)
  103|  8.66k|    {
  104|  8.66k|    }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EE4sizeEv:
  159|  57.6k|    {
  160|  57.6k|        return size_;
  161|  57.6k|    }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EEixEm:
  169|  90.1k|     {
  170|  90.1k|         return data_[index];
  171|  90.1k|     }
_ZN8jsoncons6nonstd4spanIKdLm18446744073709551615EEC2IdLm18446744073709551615EEERKNS1_IT_XT0_EEEPNSt3__19enable_ifIXaaooeqT0_L_ZNS0_L14dynamic_extentEEeqT0_L_ZNS3_6extentEEsr3std14is_convertibleIPA_S5_PA_S2_EE5valueEvE4typeE:
  145|  4.33k|        : data_(s.data()), size_(s.size())
  146|  4.33k|    {
  147|  4.33k|    }
_ZNK8jsoncons6nonstd4spanIdLm18446744073709551615EE4dataEv:
  154|  4.33k|    {
  155|  4.33k|        return data_;
  156|  4.33k|    }
_ZNK8jsoncons6nonstd4spanIKdLm18446744073709551615EEixEm:
  169|  49.5k|     {
  170|  49.5k|         return data_[index];
  171|  49.5k|     }
_ZN8jsoncons6nonstd4spanIKhLm18446744073709551615EEC2Ev:
   99|  8.91M|    {
  100|  8.91M|    }
_ZNK8jsoncons6nonstd4spanIKmLm18446744073709551615EE5emptyEv:
  164|  15.8k|    { 
  165|  15.8k|        return size_ == 0; 
  166|  15.8k|    }
_ZN8jsoncons6nonstd4spanIKmLm18446744073709551615EEC2INSt3__16vectorImNS5_9allocatorImEEEEEERT_PNS5_9enable_ifIXaaaaaaaantsr7is_spanISA_EE5valuentsr6nonstd6detail12is_std_arrayISA_EE5valuesr6nonstd6detail21is_compatible_elementISA_S2_EE5valuesr6nonstd6detail8has_dataISA_EE5valuesr6nonstd6detail8has_sizeISA_EE5valueEvE4typeE:
  110|  15.8k|        : data_(c.data()), size_(c.size())
  111|  15.8k|    {
  112|  15.8k|    }

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

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

_ZNK8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5emptyEv:
  158|   180k|        {
  159|   180k|            return data_.empty();
  160|   180k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5clearEv:
  195|   240k|        void clear() {data_.clear();}
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5beginEv:
  168|   240k|        {
  169|   240k|            return data_.begin();
  170|   240k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE3endEv:
  173|   240k|        {
  174|   240k|            return data_.end();
  175|   240k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEED2Ev:
  153|  4.07M|        {
  154|  4.07M|            flatten_and_destroy();
  155|  4.07M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE19flatten_and_destroyEv:
  732|  4.07M|        {
  733|  4.07M|            if (!data_.empty())
  ------------------
  |  Branch (733:17): [True: 20.4k, False: 4.05M]
  ------------------
  734|  20.4k|            {
  735|  20.4k|                json_array<Json> temp(get_allocator());
  736|       |
  737|  20.4k|                for (auto& kv : data_)
  ------------------
  |  Branch (737:31): [True: 60.4k, False: 20.4k]
  ------------------
  738|  60.4k|                {
  739|  60.4k|                    switch (kv.value().storage_kind())
  740|  60.4k|                    {
  741|  4.76k|                        case json_storage_kind::array:
  ------------------
  |  Branch (741:25): [True: 4.76k, False: 55.6k]
  ------------------
  742|  12.8k|                        case json_storage_kind::object:
  ------------------
  |  Branch (742:25): [True: 8.10k, False: 52.3k]
  ------------------
  743|  12.8k|                            if (!kv.value().empty())
  ------------------
  |  Branch (743:33): [True: 5.04k, False: 7.82k]
  ------------------
  744|  5.04k|                            {
  745|  5.04k|                                temp.emplace_back(std::move(kv.value()));
  746|  5.04k|                            }
  747|  12.8k|                            break;
  748|  47.5k|                        default:
  ------------------
  |  Branch (748:25): [True: 47.5k, False: 12.8k]
  ------------------
  749|  47.5k|                            break;
  750|  60.4k|                    }
  751|  60.4k|                }
  752|  20.4k|            }
  753|  4.07M|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEEC2Ev:
   61|  4.07M|        sorted_json_object() = default;
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE18uninitialized_initEPNS_15index_key_valueISA_EEm:
  277|  32.3k|        {
  278|  32.3k|            if (count > 0)
  ------------------
  |  Branch (278:17): [True: 32.3k, False: 0]
  ------------------
  279|  32.3k|            {
  280|  32.3k|                data_.reserve(count);
  281|       |
  282|  32.3k|                std::sort(items, items+count, compare);
  283|  32.3k|                data_.emplace_back(key_type(items[0].name.data(), items[0].name.size(), get_allocator()), std::move(items[0].value));
  284|       |                
  285|  6.57M|                for (std::size_t i = 1; i < count; ++i)
  ------------------
  |  Branch (285:41): [True: 6.54M, False: 32.3k]
  ------------------
  286|  6.54M|                {
  287|  6.54M|                    auto& item = items[i];
  288|  6.54M|                    if (item.name != items[i-1].name)
  ------------------
  |  Branch (288:25): [True: 65.4k, False: 6.47M]
  ------------------
  289|  65.4k|                    {
  290|  65.4k|                        data_.emplace_back(key_type(item.name.data(), item.name.size(), get_allocator()), std::move(item.value));
  291|  65.4k|                    }
  292|  6.54M|                }
  293|  32.3k|            }
  294|  32.3k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE7compareERKNS_15index_key_valueISA_EESG_:
  268|   138M|        {
  269|   138M|            int comp = item1.name.compare(item2.name); 
  270|   138M|            if (comp < 0) return true;
  ------------------
  |  Branch (270:17): [True: 2.87M, False: 135M]
  ------------------
  271|   135M|            if (comp == 0) return item1.index < item2.index;
  ------------------
  |  Branch (271:17): [True: 133M, False: 2.28M]
  ------------------
  272|       |
  273|  2.28M|            return false;
  274|   135M|        }

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  15.8k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  15.8k|          chunk_size_(default_max_chunk_size)
  178|  15.8k|    {
  179|  15.8k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  15.8k|        data_end_ = chunk_;
  181|  15.8k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  15.8k|      : std::basic_istream<CharT>(&nb_)
   58|  15.8k|    {
   59|  15.8k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  15.8k|        null_buffer() = default;
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  15.8k|    {
  194|  15.8k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 15.8k, False: 0]
  ------------------
  195|  15.8k|        {
  196|  15.8k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  15.8k|        }
  198|  15.8k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8positionEv:
  281|  10.7k|    {
  282|  10.7k|        return position_;
  283|  10.7k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  4.19M|    {
  378|  4.19M|        std::size_t len = 0;
  379|  4.19M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 4.19M, False: 627]
  ------------------
  380|  4.19M|        {
  381|  4.19M|            len = (std::min)(remaining_, length);
  382|  4.19M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  4.19M|            data_end_ += len;
  384|  4.19M|            remaining_ -= len;
  385|  4.19M|            position_ += len;
  386|  4.19M|        }
  387|  4.19M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 4.19M, False: 4.06k]
  ------------------
  388|  4.19M|        {
  389|  4.19M|            return len;
  390|  4.19M|        }
  391|  4.06k|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 4.06k, False: 0]
  ------------------
  392|  4.06k|        {
  393|  4.06k|            data_end_ = chunk_;
  394|  4.06k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|  4.06k|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 2.76k, False: 1.29k]
  ------------------
  396|  2.76k|            {
  397|  2.76k|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|  2.76k|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|  2.76k|                data_end_ += len2;
  400|  2.76k|                remaining_ -= len2;
  401|  2.76k|                position_ += len2;
  402|  2.76k|                len += len2;
  403|  2.76k|            }
  404|  4.06k|            return len;
  405|  4.06k|        }
  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|  4.19M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  32.2k|    {
  443|  32.2k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 7.26k, False: 24.9k]
  ------------------
  444|  7.26k|        {
  445|  7.26k|            return 0;
  446|  7.26k|        }
  447|       |
  448|  24.9k|        JSONCONS_TRY
  ------------------
  |  |   37|  24.9k|    #define JSONCONS_TRY try
  ------------------
  449|  24.9k|        {
  450|  24.9k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  24.9k|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  24.9k|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 15.7k, False: 9.14k]
  ------------------
  454|  15.7k|            {
  455|  15.7k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  15.7k|            }
  457|  24.9k|            return length;
  458|  24.9k|        }
  459|  24.9k|        JSONCONS_CATCH(const std::exception&)     
  460|  24.9k|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  24.9k|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  749|  1.61M|    {
  750|  1.61M|        std::size_t unread = length;
  751|       |
  752|  2.94M|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (752:16): [True: 1.33M, False: 1.60M]
  |  Branch (752:30): [True: 1.33M, False: 917]
  ------------------
  753|  1.33M|        {
  754|  1.33M|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (754:17): [True: 402, False: 1.33M]
  |  Branch (754:44): [True: 309, False: 93]
  ------------------
  755|    309|            {
  756|    309|                std::size_t n = source.chunk_size();
  757|    309|                std::size_t offset = buffer.size();
  758|    309|                buffer.resize(offset+n);
  759|    309|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  760|    309|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|    309|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 28, False: 281]
  |  |  ------------------
  ------------------
  761|     28|                {
  762|     28|                    buffer.resize(offset+actual);
  763|     28|                }
  764|    309|                unread -= actual;
  765|    309|            }
  766|  1.33M|            else
  767|  1.33M|            {
  768|  1.33M|                std::size_t n = (std::min)(source.chunk_size(), unread);
  769|  1.33M|                std::size_t offset = buffer.size();
  770|  1.33M|                buffer.resize(offset+n);
  771|  1.33M|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  772|  1.33M|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|  1.33M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 487, False: 1.33M]
  |  |  ------------------
  ------------------
  773|    487|                {
  774|    487|                    buffer.resize(offset + actual);
  775|    487|                }
  776|  1.33M|                unread -= actual;
  777|  1.33M|            }
  778|  1.33M|        }
  779|  1.61M|        return length - unread;
  780|  1.61M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  1.51M|    {
  272|  1.51M|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 2.05k, False: 1.51M]
  |  Branch (272:35): [True: 1.45k, False: 594]
  ------------------
  273|  1.51M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|  1.51M|    {
  347|  1.51M|        return remaining_;
  348|  1.51M|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|  1.51M|    {
  262|  1.51M|        return chunk_size_;
  263|  1.51M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|    456|    {
  436|    456|        auto len = fill_buffer(chunk, chunk_size);
  437|    456|        position_ += len;
  438|    456|        return len;
  439|    456|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|  11.8M|    {
  353|  11.8M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  11.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 8.31M, False: 3.54M]
  |  |  ------------------
  ------------------
  354|  8.31M|        {
  355|  8.31M|            return span<const value_type>{};
  356|  8.31M|        }
  357|  3.54M|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 507, False: 3.54M]
  |  Branch (357:32): [True: 344, False: 163]
  ------------------
  358|    344|        {
  359|    344|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|    344|            data_end_ = chunk_;
  361|    344|        }
  362|  3.54M|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 1.54k, False: 3.54M]
  ------------------
  363|  1.54k|        {
  364|  1.54k|            buffer.clear();
  365|  1.54k|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|  1.54k|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|  1.54k|        }
  368|       |
  369|  3.54M|        const value_type* data = data_end_;
  370|  3.54M|        data_end_ += length;
  371|  3.54M|        remaining_ -= length;
  372|  3.54M|        position_ += length;
  373|  3.54M|        return span<const value_type>(data, length);
  374|  3.54M|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSG_m:
  749|   178k|    {
  750|   178k|        std::size_t unread = length;
  751|       |
  752|   355k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (752:16): [True: 178k, False: 177k]
  |  Branch (752:30): [True: 177k, False: 542]
  ------------------
  753|   177k|        {
  754|   177k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (754:17): [True: 192, False: 177k]
  |  Branch (754:44): [True: 147, False: 45]
  ------------------
  755|    147|            {
  756|    147|                std::size_t n = source.chunk_size();
  757|    147|                std::size_t offset = buffer.size();
  758|    147|                buffer.resize(offset+n);
  759|    147|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  760|    147|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|    147|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 19, False: 128]
  |  |  ------------------
  ------------------
  761|     19|                {
  762|     19|                    buffer.resize(offset+actual);
  763|     19|                }
  764|    147|                unread -= actual;
  765|    147|            }
  766|   177k|            else
  767|   177k|            {
  768|   177k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  769|   177k|                std::size_t offset = buffer.size();
  770|   177k|                buffer.resize(offset+n);
  771|   177k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  772|   177k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   79|   177k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 252, False: 177k]
  |  |  ------------------
  ------------------
  773|    252|                {
  774|    252|                    buffer.resize(offset + actual);
  775|    252|                }
  776|   177k|                unread -= actual;
  777|   177k|            }
  778|   177k|        }
  779|   178k|        return length - unread;
  780|   178k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_12basic_stringIcNS1_11char_traitsIcEENS2_IcEEEEEENS_6nonstd4spanIKhLm18446744073709551615EEEmOT_:
  352|  1.71M|    {
  353|  1.71M|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   79|  1.71M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 603k, False: 1.10M]
  |  |  ------------------
  ------------------
  354|   603k|        {
  355|   603k|            return span<const value_type>{};
  356|   603k|        }
  357|  1.10M|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 295, False: 1.10M]
  |  Branch (357:32): [True: 144, False: 151]
  ------------------
  358|    144|        {
  359|    144|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|    144|            data_end_ = chunk_;
  361|    144|        }
  362|  1.10M|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 680, False: 1.10M]
  ------------------
  363|    680|        {
  364|    680|            buffer.clear();
  365|    680|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|    680|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|    680|        }
  368|       |
  369|  1.10M|        const value_type* data = data_end_;
  370|  1.10M|        data_end_ += length;
  371|  1.10M|        remaining_ -= length;
  372|  1.10M|        position_ += length;
  373|  1.10M|        return span<const value_type>(data, length);
  374|  1.10M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4peekEv:
  312|   240M|    {
  313|   240M|        if (remaining_ == 0)
  ------------------
  |  Branch (313:13): [True: 27.1k, False: 240M]
  ------------------
  314|  27.1k|        {
  315|  27.1k|            data_end_ = chunk_;
  316|  27.1k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  317|  27.1k|        }
  318|   240M|        if (remaining_ > 0)
  ------------------
  |  Branch (318:13): [True: 240M, False: 5.83k]
  ------------------
  319|   240M|        {
  320|   240M|            value_type c = *data_end_;
  321|   240M|            return char_result<value_type>{c, false};
  322|   240M|        }
  323|  5.83k|        else
  324|  5.83k|        {
  325|  5.83k|            return char_result<value_type>{0, true};
  326|  5.83k|        }
  327|   240M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE6ignoreEm:
  286|  93.4M|    {
  287|  93.4M|        std::size_t len = 0;
  288|  93.4M|        if (remaining_ > 0)
  ------------------
  |  Branch (288:13): [True: 93.4M, False: 0]
  ------------------
  289|  93.4M|        {
  290|  93.4M|            len = (std::min)(remaining_, length);
  291|  93.4M|            position_ += len;
  292|  93.4M|            data_end_ += len;
  293|  93.4M|            remaining_ -= len;
  294|  93.4M|        }
  295|  93.4M|        while (len < length)
  ------------------
  |  Branch (295:16): [True: 0, False: 93.4M]
  ------------------
  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|  93.4M|    }

_ZN8jsoncons16typed_array_castIKhEENS_6nonstd4spanIT_Lm18446744073709551615EEENS3_IhLm18446744073709551615EEE:
  141|  6.87k|{
  142|  6.87k|    return jsoncons::span<const uint8_t>{reinterpret_cast<const uint8_t*>(bytes.data()), bytes.size()};
  143|  6.87k|}
_ZN8jsoncons16typed_array_castIhEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   81|  6.85k|{
   82|  6.85k|    return bytes;
   83|  6.85k|}
_ZN8jsoncons16typed_array_castItEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   87|   321k|{
   88|   321k|    return jsoncons::span<uint16_t>{reinterpret_cast<uint16_t*>(bytes.data()), bytes.size()/sizeof(uint16_t)};
   89|   321k|}
_ZN8jsoncons16typed_array_castIjEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   93|  15.5k|{
   94|  15.5k|    return jsoncons::span<uint32_t>{reinterpret_cast<uint32_t*>(bytes.data()), bytes.size()/sizeof(uint32_t)};
   95|  15.5k|}
_ZN8jsoncons16typed_array_castImEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
   99|  12.3k|{
  100|  12.3k|    return jsoncons::span<uint64_t>{reinterpret_cast<uint64_t*>(bytes.data()), bytes.size()/sizeof(uint64_t)};
  101|  12.3k|}
_ZN8jsoncons16typed_array_castIaEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  105|  3.94k|{
  106|  3.94k|    return jsoncons::span<int8_t>{reinterpret_cast<int8_t*>(bytes.data()), bytes.size()};
  107|  3.94k|}
_ZN8jsoncons16typed_array_castIsEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  111|  74.4k|{
  112|  74.4k|    return jsoncons::span<int16_t>{reinterpret_cast<int16_t*>(bytes.data()), bytes.size()/sizeof(int16_t)};
  113|  74.4k|}
_ZN8jsoncons16typed_array_castIiEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  117|  13.3k|{
  118|  13.3k|    return jsoncons::span<int32_t>{reinterpret_cast<int32_t*>(bytes.data()), bytes.size()/sizeof(int32_t)};
  119|  13.3k|}
_ZN8jsoncons16typed_array_castIlEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  123|   255k|{
  124|   255k|    return jsoncons::span<int64_t>{reinterpret_cast<int64_t*>(bytes.data()), bytes.size()/sizeof(int64_t)};
  125|   255k|}
_ZN8jsoncons16typed_array_castIfEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  129|  13.7k|{
  130|  13.7k|    return jsoncons::span<float>{reinterpret_cast<float*>(bytes.data()), bytes.size()/sizeof(float)};
  131|  13.7k|}
_ZN8jsoncons16typed_array_castIdEENS_6nonstd4spanIT_Lm18446744073709551615EEENS2_IhLm18446744073709551615EEE:
  135|  8.66k|{
  136|  8.66k|    return jsoncons::span<double>{reinterpret_cast<double*>(bytes.data()), bytes.size()/sizeof(double)};
  137|  8.66k|}
_ZN8jsoncons22calculate_mdarray_sizeENS_6nonstd4spanIKmLm18446744073709551615EEE:
  247|  15.8k|{
  248|  15.8k|    using result_type = jsoncons::expected<std::size_t,std::errc>;
  249|       |
  250|  15.8k|    if (extents.empty())
  ------------------
  |  Branch (250:9): [True: 4, False: 15.8k]
  ------------------
  251|      4|    {
  252|      4|        return result_type(0);
  253|      4|    }
  254|  15.8k|    std::size_t n = extents[0];
  255|  89.7k|    for (std::size_t i = 1; i < extents.size(); ++i)
  ------------------
  |  Branch (255:29): [True: 73.9k, False: 15.7k]
  ------------------
  256|  73.9k|    {
  257|  73.9k|        if (extents[i] == 0 || JSONCONS_UNLIKELY(n > (std::numeric_limits<std::size_t>::max)()/extents[i]))
  ------------------
  |  |   79|  73.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 26, False: 73.9k]
  |  |  ------------------
  ------------------
  |  Branch (257:13): [True: 4, False: 73.9k]
  ------------------
  258|     30|        {
  259|     30|            return result_type(jsoncons::unexpect, std::errc::value_too_large);
  260|     30|        }
  261|  73.9k|        n *= extents[i];
  262|  73.9k|    }
  263|  15.7k|    return n;
  264|  15.8k|}

_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEC2EONS_12basic_bigintIS3_EEl:
   48|   580k|        : unscaled_{std::move(significand)}, scale_{scale}
   49|   580k|    {
   50|   580k|    }
_ZN8jsoncons16append_to_stringINSt3__19allocatorImEEcNS2_IcEEEEvRKNS_12basic_bigdecIT_EERNS1_12basic_stringIT0_NS1_11char_traitsISB_EET1_EE:
  420|   580k|{
  421|   580k|    const std::size_t rel = buf.size();  
  422|   580k|    append_to_string(value.unscaled(), buf);
  423|       |
  424|   580k|    const size_t sign = buf[rel] == '-' ? 1 : 0;
  ------------------
  |  Branch (424:25): [True: 326k, False: 254k]
  ------------------
  425|   580k|    const size_t sign_pos = rel+sign;
  426|   580k|    const size_t precision = (buf.size()-rel) - sign;
  427|   580k|    const int64_t scale = value.scale();
  428|       |
  429|   580k|    const int128 adjustedExponent =
  430|   580k|        static_cast<int128>(precision) - 1 -
  431|   580k|        static_cast<int128>(scale);
  432|       |
  433|       |    // Plain notation when scale >= 0 and
  434|       |    // adjustedExponent >= -6.
  435|   580k|    if (scale >= 0 && adjustedExponent >= -6) {
  ------------------
  |  Branch (435:9): [True: 477k, False: 102k]
  |  Branch (435:23): [True: 469k, False: 8.51k]
  ------------------
  436|   469k|        if (scale == 0)
  ------------------
  |  Branch (436:13): [True: 65.6k, False: 403k]
  ------------------
  437|  65.6k|            return;
  438|       |
  439|   403k|        if (static_cast<uint64_t>(scale) >= precision) {
  ------------------
  |  Branch (439:13): [True: 146k, False: 257k]
  ------------------
  440|       |            // 123 with scale 5 -> 0.00123
  441|   146k|            const size_t zeros =
  442|   146k|                static_cast<size_t>(scale) - precision;
  443|       |
  444|   146k|            buf.insert(sign_pos, 1, '0');
  445|   146k|            buf.insert(sign_pos+1, 1, '.');
  446|   146k|            buf.insert(sign_pos+2, zeros, '0');
  447|   146k|        }
  448|   257k|        else {
  449|       |            // 12345 with scale 2 -> 123.45
  450|   257k|            const size_t dot_pos = buf.size() - static_cast<size_t>(scale);
  451|       |
  452|   257k|            buf.insert(dot_pos, 1, '.');
  453|   257k|        }
  454|       |
  455|   403k|        return;
  456|   469k|    }
  457|       |
  458|       |    // Scientific notation.
  459|       |    // 12345 with scale -2 -> 1.2345E+6
  460|   111k|    if (precision > 1)
  ------------------
  |  Branch (460:9): [True: 84.1k, False: 27.2k]
  ------------------
  461|  84.1k|        buf.insert(sign_pos + 1, 1, '.');
  462|       |
  463|   111k|    buf.push_back('e');
  464|       |
  465|   111k|    append_to_string(adjustedExponent, buf);
  466|   111k|}
_ZNK8jsoncons12basic_bigdecINSt3__19allocatorImEEE8unscaledEv:
   79|   580k|    {
   80|   580k|        return unscaled_;
   81|   580k|    }
_ZNK8jsoncons12basic_bigdecINSt3__19allocatorImEEE5scaleEv:
   89|   580k|    {
   90|   580k|        return scale_;
   91|   580k|    }
_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEC2Ev:
   36|   315k|    basic_bigdec() = default;
_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEaSEOS4_:
   76|   224k|    basic_bigdec& operator=(basic_bigdec&&) = default;
_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEEaSERKS4_:
   75|  91.0k|    basic_bigdec& operator=(const basic_bigdec&) = default;
_ZN8jsoncons12basic_bigdecINSt3__19allocatorImEEE12set_negativeEb:
   84|  11.3k|    {
   85|  11.3k|        unscaled_.set_negative(value);
   86|  11.3k|    }

_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2Ev:
  630|  1.07M|    basic_bigint() = default;
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS4_:
  306|  1.62M|        : word_allocator_type(alloc)
  307|  1.62M|    {
  308|  1.62M|        ::new (&inlined_) inlined_storage();
  309|  1.62M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2Ev:
  126|  1.62M|            : is_allocated_(false),
  127|  1.62M|            is_negative_(false),
  128|  1.62M|            size_(0),
  129|  1.62M|            values_{0, 0}
  130|  1.62M|        {
  131|  1.62M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE19from_sign_magnitudeEbPKhmRS4_:
  840|   468k|    {
  841|   468k|        static const double radix_log2 = std::log2(next_power_of_two(256));
  842|       |        // Estimate how big the result will be, so we can pre-allocate it.
  843|   468k|        double bits = radix_log2 * n;
  844|   468k|        double big_digits = std::ceil(bits / 64.0);
  845|       |        //std::cout << "ESTIMATED: " << big_digits << "\n";
  846|       |
  847|   468k|        value.reserve(static_cast<size_type>(big_digits));
  848|       |
  849|  6.61M|        for (size_type i = 0; i < n; i++)
  ------------------
  |  Branch (849:31): [True: 6.14M, False: 468k]
  ------------------
  850|  6.14M|        {
  851|  6.14M|            value *= 256;
  852|  6.14M|            value += (word_type)(bytes[i]);
  853|  6.14M|        }
  854|       |        //std::cout << "ACTUAL: " << value.size() << "\n";
  855|       |
  856|   468k|        if (is_negative)
  ------------------
  |  Branch (856:13): [True: 0, False: 468k]
  ------------------
  857|      0|        {
  858|      0|            value.set_negative(true);
  859|      0|        }
  860|   468k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE17next_power_of_twoEm:
 2075|      1|    static word_type next_power_of_two(word_type n) {
 2076|      1|        n = n - 1;
 2077|      1|        n |= n >> 1u;
 2078|      1|        n |= n >> 2u;
 2079|      1|        n |= n >> 4u;
 2080|      1|        n |= n >> 8u;
 2081|      1|        n |= n >> 16u;
 2082|      1|        n |= n >> 32u;
 2083|      1|        return n + 1;
 2084|      1|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE7reserveEm:
  868|   468k|    {
  869|   468k|        storage_.reserve(n);
  870|   468k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7reserveEm:
  465|  34.9M|    {
  466|  34.9M|       if (capacity() < n)
  ------------------
  |  Branch (466:12): [True: 4.88M, False: 30.0M]
  ------------------
  467|  4.88M|       {
  468|  4.88M|           if (!is_allocated())
  ------------------
  |  Branch (468:16): [True: 4.79M, False: 87.5k]
  ------------------
  469|  4.79M|           {
  470|  4.79M|               size_type size = inlined_.size_;
  471|  4.79M|               size_type is_neg = inlined_.is_negative_;
  472|  4.79M|               word_type values[inlined_capacity] = {inlined_.values_[0], inlined_.values_[1]};
  473|       |
  474|  4.79M|               ::new (&allocated_) allocated_storage();
  475|  4.79M|               allocated_.reserve(n, get_allocator());
  476|  4.79M|               allocated_.size_ = size;
  477|  4.79M|               allocated_.is_negative_ = is_neg;
  478|  4.79M|               if (n >= 1)
  ------------------
  |  Branch (478:20): [True: 4.79M, False: 0]
  ------------------
  479|  4.79M|               {
  480|  4.79M|                   allocated_.data_[0] = values[0];
  481|  4.79M|               }
  482|  4.79M|               if (n >= 2)
  ------------------
  |  Branch (482:20): [True: 4.79M, False: 0]
  ------------------
  483|  4.79M|               {
  484|  4.79M|                   allocated_.data_[1] = values[1];
  485|  4.79M|               }
  486|  4.79M|           }
  487|  87.5k|           else
  488|  87.5k|           {
  489|  87.5k|               allocated_.reserve(n, get_allocator());
  490|  87.5k|           }
  491|  4.88M|       }
  492|  34.9M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE8capacityEv:
  518|  34.9M|    {
  519|  34.9M|        return is_allocated() ? allocated_.capacity_ : inlined_capacity;
  ------------------
  |  Branch (519:16): [True: 13.4M, False: 21.5M]
  ------------------
  520|  34.9M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12is_allocatedEv:
  513|   167M|    {
  514|   167M|        return common_.is_allocated_;
  515|   167M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2Ev:
  216|  4.79M|            : is_allocated_(true),
  217|  4.79M|            is_negative_(false)
  218|  4.79M|        {
  219|  4.79M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7reserveEmRKS4_:
  268|  4.88M|        {
  269|  4.88M|            JSONCONS_ASSERT(n < max_size);
  ------------------
  |  |   67|  4.88M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 4.88M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  270|  4.88M|            size_type capacity_new = round_up(n);
  271|       |
  272|  4.88M|            real_allocator_type alloc(a);
  273|  4.88M|            word_type* data_new = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_new);
  274|  4.88M|            if (size_ > 0)
  ------------------
  |  Branch (274:17): [True: 87.5k, False: 4.79M]
  ------------------
  275|  87.5k|            {
  276|  87.5k|                std::memcpy(data_new, data_, size_type(size_ * sizeof(word_type)));
  277|  87.5k|            }
  278|  4.88M|            if (data_ != nullptr)
  ------------------
  |  Branch (278:17): [True: 87.5k, False: 4.79M]
  ------------------
  279|  87.5k|            {
  280|  87.5k|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  281|  87.5k|            }
  282|  4.88M|            capacity_ = capacity_new;
  283|  4.88M|            data_ = data_new;
  284|  4.88M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage8round_upEm:
  288|  4.88M|        {
  289|  4.88M|            size_type remainder = i % mem_unit;
  290|  4.88M|            size_type off = mem_unit - remainder;
  291|  4.88M|            bool testoff = i < max_size - off;
  292|  4.88M|            JSONCONS_ASSERT(testoff);
  ------------------
  |  |   67|  4.88M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 4.88M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  293|       |
  294|  4.88M|            return i + off;
  295|  4.88M|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE13get_allocatorEv:
  495|  74.8M|    {
  496|  74.8M|        return static_cast<const word_allocator_type&>(*this);
  497|  74.8M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLIiEENS1_9enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueERS4_E4typeES7_:
 1033|  6.14M|    {
 1034|  6.14M|        *this *= word_type(y < 0 ? -y : y);
  ------------------
  |  Branch (1034:28): [True: 0, False: 6.14M]
  ------------------
 1035|  6.14M|        if ( y < 0 )
  ------------------
  |  Branch (1035:14): [True: 0, False: 6.14M]
  ------------------
 1036|      0|            set_negative(!is_negative());
 1037|  6.14M|        return *this;
 1038|  6.14M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLImEENS1_9enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueERS4_E4typeES7_:
 1043|  6.63M|    {
 1044|  6.63M|        auto words = get_words();
 1045|  6.63M|        size_type len = words.size();
 1046|  6.63M|        if (len == 0 || m == 0)
  ------------------
  |  Branch (1046:13): [True: 519k, False: 6.11M]
  |  Branch (1046:25): [True: 0, False: 6.11M]
  ------------------
 1047|   519k|        {
 1048|   519k|            resize(0);
 1049|   519k|            return *this;
 1050|   519k|        }
 1051|       |
 1052|  6.11M|        dword_type carry = 0;
 1053|  6.11M|        size_t i = 0;
 1054|  4.17G|        for (; i < len; ++i) {
  ------------------
  |  Branch (1054:16): [True: 4.16G, False: 6.11M]
  ------------------
 1055|  4.16G|            dword_type x = dword_type(words[i]) * m + carry;
 1056|  4.16G|            words[i] = static_cast<word_type>(x);
 1057|  4.16G|            carry = x >> 64;
 1058|  4.16G|        }
 1059|       |
 1060|  6.11M|        if (carry)
  ------------------
  |  Branch (1060:13): [True: 800k, False: 5.31M]
  ------------------
 1061|   800k|        {
 1062|   800k|            resize(len+1);
 1063|   800k|            words = get_words();
 1064|   800k|            words[i] = static_cast<word_type>(carry);
 1065|   800k|        }
 1066|       |
 1067|       |        /*
 1068|       |        word_type dig = words[0];
 1069|       |        word_type carry = 0;
 1070|       |
 1071|       |        resize(words.size() + 1);
 1072|       |        words = get_words();
 1073|       |
 1074|       |        size_type i = 0;
 1075|       |        for (; i < len; i++ )
 1076|       |        {
 1077|       |            word_type hi;
 1078|       |            word_type lo;
 1079|       |            DDproduct( dig, y, hi, lo );
 1080|       |            words[i] = lo + carry;
 1081|       |            dig = words[i+1];
 1082|       |            carry = hi + (words[i] < lo);
 1083|       |        }
 1084|       |        words[i] = carry;
 1085|       |        reduce(); 
 1086|       |        */ 
 1087|  6.11M|        return *this;
 1088|  6.63M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE9get_wordsEv:
  713|  78.2M|    {
  714|  78.2M|        return storage_.get_words();
  715|  78.2M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  533|   113M|    {
  534|   113M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (534:16): [True: 55.0M, False: 58.9M]
  ------------------
  535|  55.0M|            storage_view<word_type>{allocated_.data_, allocated_.size_} :
  536|   113M|            storage_view<word_type>{inlined_.values_, inlined_.size_};
  537|   113M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEC2EPmm:
   67|   113M|            : data_(data), size_(size)
   68|   113M|        {
   69|   113M|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4sizeEv:
   97|   327M|        {
   98|   327M|            return size_;
   99|   327M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6resizeEm:
  863|  19.0M|    {
  864|  19.0M|        storage_.resize(new_length);
  865|  19.0M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6resizeEm:
  547|  34.4M|    {
  548|  34.4M|        size_type old_length = common_.size_;
  549|  34.4M|        reserve(new_length);
  550|  34.4M|        common_.size_ = new_length;
  551|       |
  552|  34.4M|        if (old_length < new_length)
  ------------------
  |  Branch (552:13): [True: 16.6M, False: 17.7M]
  ------------------
  553|  16.6M|        {
  554|  16.6M|            if (is_allocated())
  ------------------
  |  Branch (554:17): [True: 12.7M, False: 3.94M]
  ------------------
  555|  12.7M|            {
  556|  12.7M|                std::memset(allocated_.data_+old_length, 0, size_type((new_length-old_length)*sizeof(word_type)));
  557|  12.7M|            }
  558|  3.94M|            else
  559|  3.94M|            {
  560|  3.94M|                JSONCONS_ASSERT(new_length <= inlined_capacity);
  ------------------
  |  |   67|  3.94M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 3.94M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  561|  9.02M|                for (size_type i = old_length; i < inlined_capacity; ++i)
  ------------------
  |  Branch (561:48): [True: 5.07M, False: 3.94M]
  ------------------
  562|  5.07M|                {
  563|  5.07M|                    inlined_.values_[i] = 0;
  564|  5.07M|                }
  565|  3.94M|            }
  566|  16.6M|        }
  567|  34.4M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImEixEm:
   72|  10.2G|        {
   73|  10.2G|            return data_[i];
   74|  10.2G|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11is_negativeEv:
  723|  48.6M|    {
  724|  48.6M|        return storage_.is_negative();
  725|  48.6M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE11is_negativeEv:
  523|  48.6M|    {
  524|  48.6M|        return common_.is_negative_;
  525|  48.6M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLImEENS1_9enable_ifIXaasr10ext_traits19is_unsigned_integerIT_EE5valuelestS7_Lm8EERS4_E4typeES7_:
  934|  6.14M|    {
  935|  6.14M|        if ( is_negative())
  ------------------
  |  Branch (935:14): [True: 0, False: 6.14M]
  ------------------
  936|      0|            return *this -= -basic_bigint<Allocator>(y);
  937|       |
  938|  6.14M|        word_type d;
  939|  6.14M|        word_type carry = 0;
  940|       |
  941|  6.14M|        auto words = get_words();
  942|  6.14M|        resize(words.size() + 1);
  943|       |
  944|  6.14M|        words = get_words();
  945|  6.14M|        const size_type this_size = words.size();
  946|  6.14M|        size_type y_size = 1;
  947|       |
  948|  6.14M|        d = words[0] + carry;
  949|  6.14M|        carry = d < carry;
  950|  6.14M|        words[0] = d + y;
  951|  6.14M|        if (words[0] < d)
  ------------------
  |  Branch (951:13): [True: 0, False: 6.14M]
  ------------------
  952|      0|            carry = 1;
  953|       |
  954|  6.14M|        for (size_type i = y_size; i < this_size && carry != 0; ++i)
  ------------------
  |  Branch (954:36): [True: 5.63M, False: 519k]
  |  Branch (954:53): [True: 0, False: 5.63M]
  ------------------
  955|      0|        {
  956|      0|            d = words[i] + carry;
  957|      0|            carry = d < carry;
  958|      0|            words[i] = d;
  959|      0|        }
  960|  6.14M|        reduce();
  961|  6.14M|        return *this;
  962|  6.14M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ImEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  688|  1.24M|        : storage_(n, alloc)
  689|  1.24M|    {
  690|  1.24M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ImEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  373|  1.24M|        : word_allocator_type(alloc)
  374|  1.24M|    {
  375|  1.24M|        ::new (&inlined_) inlined_storage(n);
  376|  1.24M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ImEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Entsr3std9is_signedIS8_EE5valueEvE4typeE:
  151|  1.24M|            : is_allocated_(false),
  152|  1.24M|            is_negative_(false),
  153|  1.24M|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (153:19): [True: 612k, False: 635k]
  ------------------
  154|  1.24M|        {
  155|  1.24M|            values_[0] = n;
  156|  1.24M|            values_[1] = 0;
  157|  1.24M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEEngEv:
  880|   429k|    {
  881|   429k|        basic_bigint<Allocator> v(*this);
  882|   429k|        v.set_negative(!v.is_negative());
  883|   429k|        return v;
  884|   429k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_:
  666|  46.9M|        : storage_(other.storage_)
  667|  46.9M|    {
  668|  46.9M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_:
  312|  46.9M|        : word_allocator_type(other.get_allocator())
  313|  46.9M|    {
  314|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  315|       |# pragma GCC diagnostic push
  316|       |# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
  317|       |#endif
  318|  46.9M|        if (!other.is_allocated())
  ------------------
  |  Branch (318:13): [True: 41.4M, False: 5.47M]
  ------------------
  319|  41.4M|        {
  320|  41.4M|            ::new (&inlined_) inlined_storage(other.inlined_);
  321|  41.4M|        }
  322|  5.47M|        else
  323|  5.47M|        {
  324|  5.47M|            ::new (&allocated_) allocated_storage(other.allocated_, get_allocator());
  325|  5.47M|        }
  326|       |#if defined(__GNUC__) && JSONCONS_GCC_AVAILABLE(12,0,0)
  327|       |# pragma GCC diagnostic pop
  328|       |#endif
  329|  46.9M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2ERKS6_:
  191|  44.6M|            : is_allocated_(false),
  192|  44.6M|            is_negative_(stor.is_negative_),
  193|  44.6M|            size_(stor.size_)
  194|  44.6M|        {
  195|  44.6M|            values_[0] = stor.values_[0];
  196|  44.6M|            values_[1] = stor.values_[1];
  197|  44.6M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2ERKS6_RKS4_:
  222|  6.78M|            : is_allocated_(true),
  223|  6.78M|              is_negative_(stor.is_negative_),
  224|  6.78M|              size_(stor.size_),
  225|  6.78M|              capacity_(stor.capacity_)
  226|  6.78M|        {
  227|  6.78M|            real_allocator_type alloc(a);
  228|       |
  229|  6.78M|            data_ = std::allocator_traits<real_allocator_type>::allocate(alloc, capacity_);
  230|  6.78M|            JSONCONS_TRY
  ------------------
  |  |   37|  6.78M|    #define JSONCONS_TRY try
  ------------------
  231|  6.78M|            {
  232|  6.78M|                std::allocator_traits<real_allocator_type>::construct(alloc, ext_traits::to_plain_pointer(data_));
  233|  6.78M|            }
  234|  6.78M|            JSONCONS_CATCH(...)
  235|  6.78M|            {
  236|      0|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  237|      0|                data_ = nullptr;
  238|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  239|      0|            }
  240|  6.78M|            JSONCONS_ASSERT(stor.data_ != nullptr);
  ------------------
  |  |   67|  6.78M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 6.78M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  241|  6.78M|            std::memcpy(data_, stor.data_, size_type(stor.size_ * sizeof(word_type)));
  242|  6.78M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmIERKS4_:
  999|   271k|    {
 1000|   271k|        auto y_words = y.get_words();
 1001|       |
 1002|   271k|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1002:14): [True: 271k, False: 0]
  ------------------
 1003|   271k|            return *this += -y;
 1004|      0|        if ( (!is_negative() && y > *this) || (is_negative() && y < *this) )
  ------------------
  |  Branch (1004:15): [True: 0, False: 0]
  |  Branch (1004:33): [True: 0, False: 0]
  |  Branch (1004:48): [True: 0, False: 0]
  |  Branch (1004:65): [True: 0, False: 0]
  ------------------
 1005|      0|            return *this = -(y - *this);
 1006|      0|        word_type borrow = 0;
 1007|      0|        word_type d;
 1008|      0|        auto words = get_words();
 1009|      0|        const size_type this_size = words.size();
 1010|      0|        const size_type y_size = y_words.size();
 1011|       |
 1012|      0|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (1012:31): [True: 0, False: 0]
  ------------------
 1013|      0|        {
 1014|      0|            d = words[i] - borrow;
 1015|      0|            borrow = d > words[i];
 1016|      0|            words[i] = d - y_words[i];
 1017|      0|            if ( words[i] > d )
  ------------------
  |  Branch (1017:18): [True: 0, False: 0]
  ------------------
 1018|      0|                borrow = 1;
 1019|      0|        }
 1020|      0|        for (size_type i = y_size; i < this_size && borrow != 0; i++ )
  ------------------
  |  Branch (1020:36): [True: 0, False: 0]
  |  Branch (1020:53): [True: 0, False: 0]
  ------------------
 1021|      0|        {
 1022|      0|            d = words[i] - borrow;
 1023|      0|            borrow = d > words[i];
 1024|      0|            words[i] = d;
 1025|      0|        }
 1026|      0|        reduce();
 1027|      0|        return *this;
 1028|      0|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9get_wordsEv:
  718|  20.7M|    {
  719|  20.7M|        return storage_.get_words();
  720|  20.7M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE9get_wordsEv:
  540|  36.0M|    {
  541|  36.0M|        return common_.is_allocated_ ? 
  ------------------
  |  Branch (541:16): [True: 12.3M, False: 23.7M]
  ------------------
  542|  12.3M|            storage_view<const word_type>{allocated_.data_, allocated_.size_} :
  543|  36.0M|            storage_view<const word_type>{inlined_.values_, inlined_.size_};
  544|  36.0M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEC2EPS7_m:
   67|  36.0M|            : data_(data), size_(size)
   68|  36.0M|        {
   69|  36.0M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEpLERKS4_:
  965|  2.43M|    {
  966|  2.43M|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (966:14): [True: 0, False: 2.43M]
  ------------------
  967|      0|            return *this -= -y;
  968|       |
  969|  2.43M|        auto y_words = y.get_words();
  970|       |        
  971|  2.43M|        word_type d;
  972|  2.43M|        word_type carry = 0;
  973|       |
  974|  2.43M|        auto words = get_words();
  975|  2.43M|        resize( (std::max)(y_words.size(), words.size()) + 1 );
  976|  2.43M|        words = get_words();
  977|       |
  978|  2.43M|        const size_t this_size = words.size();
  979|  2.43M|        const size_t y_size = y_words.size();
  980|  5.40M|        for (size_type i = 0; i < y_size; i++ )
  ------------------
  |  Branch (980:31): [True: 2.97M, False: 2.43M]
  ------------------
  981|  2.97M|        {
  982|  2.97M|            d = words[i] + carry;
  983|  2.97M|            carry = d < carry;
  984|  2.97M|            words[i] = d + y_words[i];
  985|  2.97M|            if (words[i] < d)
  ------------------
  |  Branch (985:17): [True: 1.29k, False: 2.96M]
  ------------------
  986|  1.29k|                carry = 1;
  987|  2.97M|        }
  988|  2.43M|        for (size_type i = y_size; i < this_size && carry != 0; i++ )
  ------------------
  |  Branch (988:36): [True: 2.43M, False: 447]
  |  Branch (988:53): [True: 1.63k, False: 2.43M]
  ------------------
  989|  1.63k|        {
  990|  1.63k|            d = words[i] + carry;
  991|  1.63k|            carry = d < carry;
  992|  1.63k|            words[i] = d;
  993|  1.63k|        }
  994|  2.43M|        reduce();
  995|  2.43M|        return *this;
  996|  2.43M|    }
_ZN8jsonconsgtERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1560|   101k|    {
 1561|   101k|        return x.compare(y) > 0 ? true : false;
  ------------------
  |  Branch (1561:16): [True: 81.8k, False: 19.7k]
  ------------------
 1562|   101k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7compareERKS4_:
 1715|  1.87M|    {
 1716|  1.87M|        auto words = get_words();
 1717|  1.87M|        auto y_words = y.get_words();
 1718|       |
 1719|  1.87M|        const size_type y_size = y_words.size();
 1720|  1.87M|        if ( words.size() == 0 && y_size == 0 )
  ------------------
  |  Branch (1720:14): [True: 488, False: 1.87M]
  |  Branch (1720:35): [True: 0, False: 488]
  ------------------
 1721|      0|            return 0;
 1722|  1.87M|        if ( is_negative() != y.is_negative())
  ------------------
  |  Branch (1722:14): [True: 171k, False: 1.70M]
  ------------------
 1723|   171k|            return y.is_negative() - is_negative();
 1724|  1.70M|        int code = 0;
 1725|  1.70M|        if ( words.size() < y_size)
  ------------------
  |  Branch (1725:14): [True: 1.00k, False: 1.70M]
  ------------------
 1726|  1.00k|            code = -1;
 1727|  1.70M|        else if ( words.size() > y_size)
  ------------------
  |  Branch (1727:19): [True: 924k, False: 776k]
  ------------------
 1728|   924k|            code = +1;
 1729|   776k|        else
 1730|   776k|        {
 1731|   824k|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1731:46): [True: 797k, False: 27.5k]
  ------------------
 1732|   797k|            {
 1733|   797k|                if (words[i] > y_words[i])
  ------------------
  |  Branch (1733:21): [True: 144k, False: 652k]
  ------------------
 1734|   144k|                {
 1735|   144k|                    code = 1;
 1736|   144k|                    break;
 1737|   144k|                }
 1738|   652k|                else if (words[i] < y_words[i])
  ------------------
  |  Branch (1738:26): [True: 604k, False: 48.1k]
  ------------------
 1739|   604k|                {
 1740|   604k|                    code = -1;
 1741|   604k|                    break;
 1742|   604k|                }
 1743|   797k|            }
 1744|   776k|        }
 1745|  1.70M|        return is_negative() ? -code : code;
  ------------------
  |  Branch (1745:16): [True: 0, False: 1.70M]
  ------------------
 1746|  1.87M|    }
_ZN8jsonconsltERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1550|  1.71M|    {
 1551|  1.71M|       return x.compare(y) < 0 ? true : false;
  ------------------
  |  Branch (1551:15): [True: 726k, False: 992k]
  ------------------
 1552|  1.71M|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4sizeEv:
   97|  74.2M|        {
   98|  74.2M|            return size_;
   99|  74.2M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmEixEm:
   72|  18.4M|        {
   73|  18.4M|            return data_[i];
   74|  18.4M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE6reduceEv:
 2071|  20.4M|    {
 2072|  20.4M|        storage_.reduce();
 2073|  20.4M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE6reduceEv:
  442|  20.4M|    {
  443|  20.4M|        if (common_.size_ > 0)
  ------------------
  |  Branch (443:13): [True: 20.4M, False: 0]
  ------------------
  444|  20.4M|        {
  445|  20.4M|            auto words = get_words();
  446|  20.4M|            word_type* p = words.end() - 1;
  447|  20.4M|            word_type* first = words.begin();
  448|   484M|            while ( p >= first )
  ------------------
  |  Branch (448:21): [True: 484M, False: 105k]
  ------------------
  449|   484M|            {
  450|   484M|                if ( *p )
  ------------------
  |  Branch (450:22): [True: 20.3M, False: 464M]
  ------------------
  451|  20.3M|                {
  452|  20.3M|                    break;
  453|  20.3M|                }
  454|   464M|                --common_.size_;
  455|   464M|                --p;
  456|   464M|            }
  457|  20.4M|        }
  458|  20.4M|        if (common_.size_ == 0)
  ------------------
  |  Branch (458:13): [True: 105k, False: 20.3M]
  ------------------
  459|   105k|        {
  460|   105k|            common_.is_negative_ = false;
  461|   105k|        }
  462|  20.4M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE3endEv:
  106|  20.4M|        {
  107|  20.4M|            return data_ + size_;
  108|  20.4M|        }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5beginEv:
  101|  20.4M|        {
  102|  20.4M|            return data_;
  103|  20.4M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12set_negativeEb:
  744|  18.8M|    {
  745|  18.8M|        storage_.set_negative(value);
  746|  18.8M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12set_negativeEb:
  528|  18.8M|    {
  529|  18.8M|        common_.is_negative_ = value;
  530|  18.8M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE16append_to_stringIcNS1_11char_traitsIcEENS2_IcEEEEvRNS1_12basic_stringIT_T0_T1_EE:
 1427|   101k|    {
 1428|   101k|        if (is_zero())
  ------------------
  |  Branch (1428:13): [True: 45.1k, False: 56.3k]
  ------------------
 1429|  45.1k|        {
 1430|  45.1k|            buf.push_back('0');
 1431|  45.1k|            return;
 1432|  45.1k|        }
 1433|  56.3k|        if (is_negative())
  ------------------
  |  Branch (1433:13): [True: 13.3k, False: 42.9k]
  ------------------
 1434|  13.3k|        {
 1435|  13.3k|            buf.push_back('-');
 1436|  13.3k|        }
 1437|  56.3k|        std::size_t pos = buf.size();
 1438|  56.3k|        basic_bigint<Allocator> v(*this);
 1439|  56.3k|        auto v_words = v.get_words();
 1440|       |
 1441|  56.3k|        size_type len = (v_words.size() * word_bits / 3) + 2;
 1442|  56.3k|        buf.reserve(len);
 1443|       |
 1444|  56.3k|        if ( v_words.size() == 0 )
  ------------------
  |  Branch (1444:14): [True: 0, False: 56.3k]
  ------------------
 1445|      0|        {
 1446|      0|            buf.push_back('0');
 1447|      0|        }
 1448|  56.3k|        else
 1449|  56.3k|        {
 1450|  56.3k|            word_type r;
 1451|  56.3k|            basic_bigint<Allocator> R(get_allocator());
 1452|  56.3k|            basic_bigint<Allocator> LP10(max_unsigned_power_10, get_allocator()); 
 1453|       |
 1454|  56.3k|            do
 1455|   255k|            {
 1456|   255k|                v.divide( LP10, v, R, true );
 1457|   255k|                v_words = v.get_words();
 1458|       |
 1459|   255k|                auto R_words = R.get_words();
 1460|   255k|                r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (1460:22): [True: 255k, False: 777]
  ------------------
 1461|  4.24M|                for ( size_type j=0; j < imax_unsigned_power_10; j++ )
  ------------------
  |  Branch (1461:38): [True: 4.04M, False: 199k]
  ------------------
 1462|  4.04M|                {
 1463|  4.04M|                    buf.push_back(char(r % 10u + '0'));
 1464|  4.04M|                    r /= 10u;
 1465|  4.04M|                    if ( r + v_words.size() == 0 )
  ------------------
  |  Branch (1465:26): [True: 56.3k, False: 3.98M]
  ------------------
 1466|  56.3k|                        break;
 1467|  4.04M|                }
 1468|   255k|            } 
 1469|   255k|            while ( v_words.size() > 0);
  ------------------
  |  Branch (1469:21): [True: 199k, False: 56.3k]
  ------------------
 1470|       |
 1471|  56.3k|            std::reverse(buf.begin()+pos,buf.end());
 1472|  56.3k|        }
 1473|  56.3k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE7is_zeroEv:
 2192|  1.10M|    bool is_zero() const {
 2193|  1.10M|        return get_words().size() == 0;
 2194|  1.10M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE13get_allocatorEv:
  708|  4.99M|    {
  709|  4.99M|        return storage_.get_allocator();
  710|  4.99M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS3_:
  633|   552k|        : storage_(alloc)
  634|   552k|    {
  635|   552k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE6divideERKS4_RS4_S7_b:
 1828|  1.25M|    {
 1829|  1.25M|        basic_bigint<Allocator> denom(denom_, get_allocator());
 1830|  1.25M|        auto denom_words = denom.get_words();
 1831|       |
 1832|  1.25M|        if (denom_words.size() == 0)
  ------------------
  |  Branch (1832:13): [True: 0, False: 1.25M]
  ------------------
 1833|      0|        {
 1834|      0|            JSONCONS_THROW(std::runtime_error( "Zero divide." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 1835|      0|        }
 1836|  1.25M|        bool quot_neg = is_negative() ^ denom.is_negative();
 1837|  1.25M|        bool rem_neg = is_negative();
 1838|  1.25M|        basic_bigint<Allocator> num(*this, get_allocator());
 1839|  1.25M|        num.set_negative(false);
 1840|  1.25M|        denom.set_negative(false);
 1841|  1.25M|        if ( num < denom )
  ------------------
  |  Branch (1841:14): [True: 552k, False: 702k]
  ------------------
 1842|   552k|        {
 1843|   552k|            quot = word_type(0);
 1844|   552k|            quot.set_negative(quot_neg);
 1845|   552k|            rem = num;
 1846|   552k|            rem.set_negative(rem_neg);
 1847|   552k|            return;
 1848|   552k|        }
 1849|       |
 1850|   702k|        auto num_words = num.get_words();
 1851|   702k|        auto quot_words = quot.get_words();
 1852|   702k|        auto words = get_words();
 1853|       |
 1854|   702k|        if ( denom_words.size() == 1 && num_words.size() == 1 )
  ------------------
  |  Branch (1854:14): [True: 690k, False: 12.8k]
  |  Branch (1854:41): [True: 3.97k, False: 686k]
  ------------------
 1855|  3.97k|        {
 1856|  3.97k|            quot = word_type( num_words[0]/denom_words[0] );
 1857|  3.97k|            rem = word_type( num_words[0]%denom_words[0] );
 1858|  3.97k|            quot.set_negative(quot_neg);
 1859|  3.97k|            rem.set_negative(rem_neg);
 1860|  3.97k|            return;
 1861|  3.97k|        }
 1862|   699k|        if (denom_words.size() == 1 && (denom_words[0] & l_mask) == 0 )
  ------------------
  |  Branch (1862:13): [True: 686k, False: 12.8k]
  |  Branch (1862:40): [True: 8.02k, False: 678k]
  ------------------
 1863|  8.02k|        {
 1864|       |            // Denominator fits into a half word
 1865|  8.02k|            word_type divisor = denom_words[0], dHi = 0, q1, r, q2, dividend;
 1866|  8.02k|            quot.resize(words.size());
 1867|  8.02k|            quot_words = quot.get_words();
 1868|  30.1k|            for (size_type i=words.size(); i-- > 0; )
  ------------------
  |  Branch (1868:44): [True: 22.0k, False: 8.02k]
  ------------------
 1869|  22.0k|            {
 1870|  22.0k|                dividend = (dHi << word_half_bits) | (words[i] >> word_half_bits);
 1871|  22.0k|                q1 = dividend/divisor;
 1872|  22.0k|                r = dividend % divisor;
 1873|  22.0k|                dividend = (r << word_half_bits) | (words[i] & r_mask);
 1874|  22.0k|                q2 = dividend/divisor;
 1875|  22.0k|                dHi = dividend % divisor;
 1876|  22.0k|                quot_words[i] = (q1 << word_half_bits) | q2;
 1877|  22.0k|            }
 1878|  8.02k|            quot.reduce();
 1879|  8.02k|            rem = dHi;
 1880|  8.02k|            quot.set_negative(quot_neg);
 1881|  8.02k|            rem.set_negative(rem_neg);
 1882|  8.02k|            return;
 1883|  8.02k|        }
 1884|   690k|        basic_bigint<Allocator> num0(num, get_allocator());
 1885|   690k|        basic_bigint<Allocator> denom0(denom, get_allocator());
 1886|   690k|        int x = 0;
 1887|   690k|        bool second_done = normalize(denom, num, x);
 1888|   690k|        denom_words = denom.get_words();
 1889|   690k|        num_words = num.get_words();
 1890|       |
 1891|   690k|        size_type l = denom_words.size() - 1;
 1892|   690k|        size_type n = num_words.size() - 1;
 1893|   690k|        quot.resize(n - l);
 1894|   690k|        quot_words = quot.get_words();
 1895|   453M|        for (size_type i = quot_words.size(); i-- > 0; )
  ------------------
  |  Branch (1895:47): [True: 453M, False: 690k]
  ------------------
 1896|   453M|        {
 1897|   453M|            quot_words[i] = 0;
 1898|   453M|        }
 1899|   690k|        rem = num;
 1900|   690k|        auto rem_words = rem.get_words();
 1901|   690k|        if ( rem_words[n] >= denom_words[l] )
  ------------------
  |  Branch (1901:14): [True: 6.62k, False: 684k]
  ------------------
 1902|  6.62k|        {
 1903|  6.62k|            rem.resize(rem_words.size() + 1);
 1904|  6.62k|            rem_words = rem.get_words();
 1905|  6.62k|            n++;
 1906|  6.62k|            quot.resize(quot_words.size() + 1);
 1907|  6.62k|            quot_words = quot.get_words();
 1908|  6.62k|        }
 1909|   690k|        word_type d = denom_words[l];
 1910|       |
 1911|   453M|        for ( size_type k = n; k > l; k-- )
  ------------------
  |  Branch (1911:32): [True: 453M, False: 690k]
  ------------------
 1912|   453M|        {
 1913|   453M|            word_type q = DDquotient(rem_words[k], rem_words[k-1], d);
 1914|   453M|            subtractmul( rem_words.data() + (k - l - 1), denom_words.data(), l + 1, q );
 1915|   453M|            quot_words[k - l - 1] = q;
 1916|   453M|        }
 1917|   690k|        quot.reduce();
 1918|   690k|        quot.set_negative(quot_neg);
 1919|   690k|        if (remDesired)
  ------------------
  |  Branch (1919:13): [True: 685k, False: 5.51k]
  ------------------
 1920|   685k|        {
 1921|   685k|            unnormalize(rem, x, second_done);
 1922|   685k|            rem.set_negative(rem_neg);
 1923|   685k|        }
 1924|   690k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2ERKS4_RKS3_:
  671|  3.89M|        : storage_(other.storage_, alloc)
  672|  3.89M|    {
  673|  3.89M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2ERKS5_RKS4_:
  332|  3.89M|        : word_allocator_type(alloc)
  333|  3.89M|    {
  334|  3.89M|        if (!other.is_allocated())
  ------------------
  |  Branch (334:13): [True: 2.58M, False: 1.30M]
  ------------------
  335|  2.58M|        {
  336|  2.58M|            ::new (&inlined_) inlined_storage(other.inlined_);
  337|  2.58M|        }
  338|  1.30M|        else
  339|  1.30M|        {
  340|  1.30M|            ::new (&allocated_) allocated_storage(other.allocated_, alloc);
  341|  1.30M|        }
  342|  3.89M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeERS4_S5_Ri:
 2026|   690k|    {
 2027|   690k|        auto denom_words = denom.get_words();
 2028|   690k|        if (denom_words.size() == 0)
  ------------------
  |  Branch (2028:13): [True: 0, False: 690k]
  ------------------
 2029|      0|        {
 2030|      0|            return false;
 2031|      0|        }
 2032|   690k|        size_type r = denom_words.size() - 1;
 2033|   690k|        word_type y = denom_words[r];
 2034|       |
 2035|   690k|        x = 0;
 2036|  1.65M|        while ( (y & l_bit) == 0 )
  ------------------
  |  Branch (2036:17): [True: 960k, False: 690k]
  ------------------
 2037|   960k|        {
 2038|   960k|            y <<= 1;
 2039|   960k|            x++;
 2040|   960k|        }
 2041|   690k|        denom <<= x;
 2042|   690k|        num <<= x;
 2043|       |
 2044|   690k|        denom_words = denom.get_words();
 2045|   690k|        if ( r > 0 && denom_words[r] < denom_words[r-1] )
  ------------------
  |  Branch (2045:14): [True: 12.8k, False: 678k]
  |  Branch (2045:23): [True: 5.51k, False: 7.30k]
  ------------------
 2046|  5.51k|        {
 2047|  5.51k|            denom *= max_word;
 2048|  5.51k|            num *= max_word;
 2049|  5.51k|            return true;
 2050|  5.51k|        }
 2051|   685k|        return false;
 2052|   690k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEElSEm:
 1185|  1.61M|    {
 1186|  1.61M|        auto words = get_words();
 1187|  1.61M|        size_type q = k / word_bits;
 1188|  1.61M|        if ( q ) // Increase storage_.size() by q:
  ------------------
  |  Branch (1188:14): [True: 16.0k, False: 1.59M]
  ------------------
 1189|  16.0k|        {
 1190|  16.0k|            resize(words.size() + q);
 1191|  16.0k|            words = get_words();
 1192|  84.0k|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1192:46): [True: 68.0k, False: 16.0k]
  ------------------
 1193|  68.0k|                words[i] = ( i < q ? 0 : words[i - q]);
  ------------------
  |  Branch (1193:30): [True: 46.3k, False: 21.7k]
  ------------------
 1194|  16.0k|            k %= word_bits;
 1195|  16.0k|        }
 1196|  1.61M|        if ( k )  // 0 < k < word_bits:
  ------------------
  |  Branch (1196:14): [True: 281k, False: 1.32M]
  ------------------
 1197|   281k|        {
 1198|   281k|            size_type k1 = word_bits - k;
 1199|   281k|            word_type mask = (word_type(1) << k) - word_type(1);
 1200|   281k|            resize( words.size() + 1 );
 1201|   281k|            words = get_words();
 1202|  1.08M|            for (size_type i = words.size(); i-- > 0; )
  ------------------
  |  Branch (1202:46): [True: 806k, False: 281k]
  ------------------
 1203|   806k|            {
 1204|   806k|                words[i] <<= k;
 1205|   806k|                if ( i > 0 )
  ------------------
  |  Branch (1205:22): [True: 524k, False: 281k]
  ------------------
 1206|   524k|                    words[i] |= (words[i-1] >> k1) & mask;
 1207|   806k|            }
 1208|   281k|        }
 1209|  1.61M|        reduce();
 1210|  1.61M|        return *this;
 1211|  1.61M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10DDquotientEmmm:
 1953|   453M|    {
 1954|   453M|        word_type left, middle, right, qHi, qLo, x, dLo1,
 1955|   453M|                   dHi = d >> word_half_bits, dLo = d & r_mask;
 1956|   453M|        qHi = A/(dHi + 1);
 1957|       |        // This initial guess of qHi may be too small.
 1958|   453M|        middle = qHi * dLo;
 1959|   453M|        left = qHi * dHi;
 1960|   453M|        x = B - (middle << word_half_bits);
 1961|   453M|        A -= (middle >> word_half_bits) + left + (x > B);
 1962|   453M|        B = x;
 1963|   453M|        dLo1 = dLo << word_half_bits;
 1964|       |        // Increase qHi if necessary:
 1965|   645M|        while ( A > dHi || (A == dHi && B >= dLo1) )
  ------------------
  |  Branch (1965:17): [True: 192M, False: 453M]
  |  Branch (1965:29): [True: 2.50k, False: 453M]
  |  Branch (1965:41): [True: 2.34k, False: 160]
  ------------------
 1966|   192M|        {
 1967|   192M|            x = B - dLo1;
 1968|   192M|            A -= dHi + (x > B);
 1969|   192M|            B = x;
 1970|   192M|            qHi++;
 1971|   192M|        }
 1972|   453M|        qLo = ((A << word_half_bits) | (B >> word_half_bits))/(dHi + 1);
 1973|       |        // This initial guess of qLo may be too small.
 1974|   453M|        right = qLo * dLo;
 1975|   453M|        middle = qLo * dHi;
 1976|   453M|        x = B - right;
 1977|   453M|        A -= (x > B);
 1978|   453M|        B = x;
 1979|   453M|        x = B - (middle << word_half_bits);
 1980|   453M|            A -= (middle >> word_half_bits) + (x > B);
 1981|   453M|        B = x;
 1982|       |        // Increase qLo if necessary:
 1983|   645M|        while ( A || B >= d )
  ------------------
  |  Branch (1983:17): [True: 30.3k, False: 645M]
  |  Branch (1983:22): [True: 192M, False: 453M]
  ------------------
 1984|   192M|        {
 1985|   192M|            x = B - d;
 1986|   192M|            A -= (x > B);
 1987|   192M|            B = x;
 1988|   192M|            qLo++;
 1989|   192M|        }
 1990|   453M|        return (qHi << word_half_bits) + qLo;
 1991|   453M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11subtractmulEPmS5_mRm:
 1995|   453M|    {
 1996|   453M|        word_type hi, lo, d, carry = 0;
 1997|   453M|        size_type i;
 1998|   906M|        for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (1998:22): [True: 453M, False: 453M]
  ------------------
 1999|   453M|        {
 2000|   453M|            DDproduct( b[i], q, hi, lo );
 2001|   453M|            d = a[i];
 2002|   453M|            a[i] -= lo;
 2003|   453M|            if ( a[i] > d )
  ------------------
  |  Branch (2003:18): [True: 122M, False: 330M]
  ------------------
 2004|   122M|                carry++;
 2005|   453M|            d = a[i + 1];
 2006|   453M|            a[i + 1] -= hi + carry;
 2007|   453M|            carry = a[i + 1] > d;
 2008|   453M|        }
 2009|   453M|        if ( carry ) // q was too large
  ------------------
  |  Branch (2009:14): [True: 2.38k, False: 453M]
  ------------------
 2010|  2.38k|        {
 2011|  2.38k|            q--;
 2012|  2.38k|            carry = 0;
 2013|  13.2k|            for ( i = 0; i < n; i++ )
  ------------------
  |  Branch (2013:26): [True: 10.8k, False: 2.38k]
  ------------------
 2014|  10.8k|            {
 2015|  10.8k|                d = a[i] + carry;
 2016|  10.8k|                carry = d < carry;
 2017|  10.8k|                a[i] = d + b[i];
 2018|  10.8k|                if ( a[i] < d )
  ------------------
  |  Branch (2018:22): [True: 6.93k, False: 3.90k]
  ------------------
 2019|  6.93k|                    carry = 1;
 2020|  10.8k|            }
 2021|  2.38k|            a[n] = 0;
 2022|  2.38k|        }
 2023|   453M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9DDproductEmmRmS5_:
 1935|   471M|    {
 1936|   471M|        word_type hiA = A >> word_half_bits, loA = A & r_mask,
 1937|   471M|                   hiB = B >> word_half_bits, loB = B & r_mask;
 1938|       |
 1939|   471M|        lo = loA * loB;
 1940|   471M|        hi = hiA * hiB;
 1941|   471M|        word_type mid1 = loA * hiB;
 1942|   471M|        word_type mid2 = hiA * loB;
 1943|   471M|        word_type old = lo;
 1944|   471M|        lo += mid1 << word_half_bits;
 1945|   471M|            hi += (lo < old) + (mid1 >> word_half_bits);
 1946|   471M|        old = lo;
 1947|   471M|        lo += mid2 << word_half_bits;
 1948|   471M|            hi += (lo < old) + (mid2 >> word_half_bits);
 1949|   471M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4dataEv:
   92|   928M|        {
   93|   928M|            return data_;
   94|   928M|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE11unnormalizeERS4_ib:
 2055|   685k|    {
 2056|   685k|        if (secondDone)
  ------------------
  |  Branch (2056:13): [True: 5.51k, False: 679k]
  ------------------
 2057|  5.51k|        {
 2058|  5.51k|            rem /= max_word;
 2059|  5.51k|        }
 2060|   685k|        if ( x > 0 )
  ------------------
  |  Branch (2060:14): [True: 26.8k, False: 658k]
  ------------------
 2061|  26.8k|        {
 2062|  26.8k|            rem >>= x;
 2063|  26.8k|        }
 2064|   658k|        else
 2065|   658k|        {
 2066|   658k|            rem.reduce();
 2067|   658k|        }
 2068|   685k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEdVERKS4_:
 1171|  5.51k|    {
 1172|  5.51k|        basic_bigint<Allocator> r;
 1173|  5.51k|        divide( divisor, *this, r, false );
 1174|  5.51k|        return *this;
 1175|  5.51k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEErSEm:
 1214|  4.42M|    {
 1215|  4.42M|        auto words = get_words();
 1216|  4.42M|        size_type q = k / word_bits;
 1217|  4.42M|        if ( q >= words.size())
  ------------------
  |  Branch (1217:14): [True: 359, False: 4.42M]
  ------------------
 1218|    359|        {
 1219|    359|            resize( 0 );
 1220|    359|            return *this;
 1221|    359|        }
 1222|  4.42M|        if (q > 0)
  ------------------
  |  Branch (1222:13): [True: 3.76M, False: 654k]
  ------------------
 1223|  3.76M|        {
 1224|  3.76M|            memmove( words.data(), words.data()+q, size_type((words.size() - q)*sizeof(word_type)) );
 1225|  3.76M|            resize( size_type(words.size() - q) );
 1226|  3.76M|            k %= word_bits;
 1227|  3.76M|            if ( k == 0 )
  ------------------
  |  Branch (1227:18): [True: 1.92M, False: 1.84M]
  ------------------
 1228|  1.92M|            {
 1229|  1.92M|                reduce();
 1230|  1.92M|                return *this;
 1231|  1.92M|            }
 1232|  3.76M|        }
 1233|       |
 1234|  2.49M|        words = get_words();
 1235|  2.49M|        size_type n = size_type(words.size() - 1);
 1236|  2.49M|        ssize_type k1 = word_bits - k;
 1237|  2.49M|        word_type mask = (word_type(1) << k) - 1;
 1238|  10.0M|        for (size_type i = 0; i <= n; i++)
  ------------------
  |  Branch (1238:31): [True: 7.59M, False: 2.49M]
  ------------------
 1239|  7.59M|        {
 1240|  7.59M|            words[i] >>= k;
 1241|  7.59M|            if ( i < n )
  ------------------
  |  Branch (1241:18): [True: 5.09M, False: 2.49M]
  ------------------
 1242|  5.09M|                words[i] |= ((words[i+1] & mask) << k1);
 1243|  7.59M|        }
 1244|  2.49M|        reduce();
 1245|  2.49M|        return *this;
 1246|  4.42M|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEED2Ev:
  703|  59.2M|    {
  704|  59.2M|        storage_.destroy();
  705|  59.2M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE7destroyEv:
  500|  59.2M|    {
  501|  59.2M|        if (is_allocated())
  ------------------
  |  Branch (501:13): [True: 11.5M, False: 47.7M]
  ------------------
  502|  11.5M|        {
  503|  11.5M|            allocated_.destroy(get_allocator());
  504|  11.5M|            allocated_.~allocated_storage();
  505|  11.5M|        }
  506|  47.7M|        else
  507|  47.7M|        {
  508|  47.7M|            inlined_.~inlined_storage();
  509|  47.7M|        }
  510|  59.2M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storage7destroyERKS4_:
  259|  11.5M|        {
  260|  11.5M|            if (data_ != nullptr)
  ------------------
  |  Branch (260:17): [True: 11.5M, False: 0]
  ------------------
  261|  11.5M|            {
  262|  11.5M|                real_allocator_type alloc(a);
  263|  11.5M|                std::allocator_traits<real_allocator_type>::deallocate(alloc, data_, capacity_);
  264|  11.5M|            }
  265|  11.5M|        }
_ZN8jsonconsmiENS_12basic_bigintINSt3__19allocatorImEEEERKS4_:
 1600|   271k|    {
 1601|   271k|        return x -= y;
 1602|   271k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IiEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  688|  4.54M|        : storage_(n, alloc)
  689|  4.54M|    {
  690|  4.54M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IiEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  373|  4.54M|        : word_allocator_type(alloc)
  374|  4.54M|    {
  375|  4.54M|        ::new (&inlined_) inlined_storage(n);
  376|  4.54M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IiEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  4.54M|            : is_allocated_(false),
  139|  4.54M|            is_negative_(n < 0),
  140|  4.54M|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 426k, False: 4.11M]
  ------------------
  141|  4.54M|        {
  142|  4.54M|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (142:26): [True: 271k, False: 4.27M]
  ------------------
  143|  4.54M|            values_[1] = 0;
  144|  4.54M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEaSERKS4_:
  887|  15.3M|    {
  888|  15.3M|        storage_ = y.storage_;
  889|  15.3M|        return *this;
  890|  15.3M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEaSERKS5_:
  379|  15.3M|    {
  380|  15.3M|        if (this != &other)
  ------------------
  |  Branch (380:13): [True: 15.3M, False: 0]
  ------------------
  381|  15.3M|        {
  382|  15.3M|            auto other_words = other.get_words();
  383|  15.3M|            resize(other_words.size());
  384|  15.3M|            auto words = get_words();
  385|  15.3M|            if (other_words.size() > 0)
  ------------------
  |  Branch (385:17): [True: 14.7M, False: 643k]
  ------------------
  386|  14.7M|            {
  387|  14.7M|                common_.is_negative_ = other.common_.is_negative_;
  388|  14.7M|                std::memcpy(words.data(), other_words.data(), size_type(other_words.size()*sizeof(word_type)));
  389|  14.7M|            }
  390|  15.3M|        }
  391|  15.3M|        return *this;
  392|  15.3M|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewIKmE4dataEv:
   92|  14.7M|        {
   93|  14.7M|            return data_;
   94|  14.7M|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2IlEET_RKS3_PNS1_9enable_ifIXsr3std11is_integralIS6_EE5valueEvE4typeE:
  688|  69.4k|        : storage_(n, alloc)
  689|  69.4k|    {
  690|  69.4k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2IlEET_RKS4_PNS2_9enable_ifIXsr3std11is_integralIS7_EE5valueEvE4typeE:
  373|  69.4k|        : word_allocator_type(alloc)
  374|  69.4k|    {
  375|  69.4k|        ::new (&inlined_) inlined_storage(n);
  376|  69.4k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE15inlined_storageC2IlEET_PNS2_9enable_ifIXaaaasr3std11is_integralIS8_EE5valuelestS8_Lm8Esr3std9is_signedIS8_EE5valueEvE4typeE:
  138|  69.4k|            : is_allocated_(false),
  139|  69.4k|            is_negative_(n < 0),
  140|  69.4k|            size_(n == 0 ? 0 : 1)
  ------------------
  |  Branch (140:19): [True: 0, False: 69.4k]
  ------------------
  141|  69.4k|        {
  142|  69.4k|            values_[0] = n < 0 ? (word_type(0) - static_cast<word_type>(n)) : static_cast<word_type>(n);
  ------------------
  |  Branch (142:26): [True: 69.4k, False: 0]
  ------------------
  143|  69.4k|            values_[1] = 0;
  144|  69.4k|        }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEC2EOS4_:
  676|   986k|        : storage_(std::move(other.storage_))
  677|   986k|    {
  678|   986k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEEC2EOS5_:
  345|   986k|        : word_allocator_type(other.get_allocator())
  346|   986k|    {
  347|   986k|        if (!other.is_allocated())
  ------------------
  |  Branch (347:13): [True: 590k, False: 395k]
  ------------------
  348|   590k|        {
  349|   590k|            ::new (&inlined_) inlined_storage(other.inlined_);
  350|   590k|        }
  351|   395k|        else
  352|   395k|        {
  353|   395k|            ::new (&allocated_) allocated_storage(std::move(other.allocated_));
  354|   395k|        }
  355|   986k|    }
_ZN8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE17allocated_storageC2EOS6_:
  245|   395k|            : is_allocated_(stor.is_allocated_),
  246|   395k|            is_negative_(stor.is_negative_),
  247|   395k|            size_(stor.size_),
  248|   395k|            capacity_(stor.capacity_),
  249|   395k|            data_(stor.data_)
  250|   395k|        {
  251|   395k|            stor.is_allocated_ = false;
  252|   395k|            stor.is_negative_ = false;
  253|   395k|            stor.size_ = 0;
  254|   395k|            stor.capacity_ = 0;
  255|   395k|            stor.data_ = nullptr;
  256|   395k|        }
_ZN8jsoncons16append_to_stringIcNSt3__19allocatorIcEEEEvRKNS_12basic_bigintINS2_ImEEEERNS1_12basic_stringIT_NS1_11char_traitsISA_EET0_EE:
 2150|   580k|    {
 2151|   580k|        if (value.is_zero())
  ------------------
  |  Branch (2151:13): [True: 84.2k, False: 496k]
  ------------------
 2152|  84.2k|        {
 2153|  84.2k|            buf.push_back('0');
 2154|  84.2k|            return;
 2155|  84.2k|        }
 2156|   496k|        if (value.is_negative())
  ------------------
  |  Branch (2156:13): [True: 326k, False: 170k]
  ------------------
 2157|   326k|        {
 2158|   326k|            buf.push_back('-');
 2159|   326k|        }
 2160|       |
 2161|   496k|        size_type start = buf.size();
 2162|   496k|        basic_bigint v(value);
 2163|   496k|        auto v_words = v.get_words();
 2164|       |
 2165|   496k|        size_type len = (v_words.size() * word_bits / 3) + 2;
 2166|   496k|        buf.reserve(start+len);
 2167|       |
 2168|   496k|        word_type r;
 2169|   496k|        basic_bigint R(value.get_allocator());
 2170|   496k|        basic_bigint LP10(max_unsigned_power_10, value.get_allocator());
 2171|       |
 2172|   496k|        do
 2173|   956k|        {
 2174|   956k|            v.divide(LP10, v, R, true);
 2175|   956k|            v_words = v.get_words();
 2176|       |
 2177|   956k|            auto R_words = R.get_words();
 2178|   956k|            r = (R_words.size() ? R_words[0] : 0);
  ------------------
  |  Branch (2178:18): [True: 956k, False: 204]
  ------------------
 2179|  11.9M|            for (size_type j = 0; j < imax_unsigned_power_10; j++)
  ------------------
  |  Branch (2179:35): [True: 11.4M, False: 460k]
  ------------------
 2180|  11.4M|            {
 2181|  11.4M|                buf.push_back(CharT(r % 10u + '0'));
 2182|  11.4M|                r /= 10u;
 2183|  11.4M|                if (r + v_words.size() == 0)
  ------------------
  |  Branch (2183:21): [True: 496k, False: 10.9M]
  ------------------
 2184|   496k|                    break;
 2185|  11.4M|            }
 2186|   956k|        } while (v_words.size() > 0);
  ------------------
  |  Branch (2186:18): [True: 460k, False: 496k]
  ------------------
 2187|       |
 2188|   496k|        std::reverse(buf.begin()+start, buf.end());
 2189|       |        
 2190|   496k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9bit_widthEv:
 1768|   109k|    {
 1769|   109k|        auto words = get_words();
 1770|   109k|        size_type len = words.size();
 1771|   109k|        if (len == 0)
  ------------------
  |  Branch (1771:13): [True: 0, False: 109k]
  ------------------
 1772|      0|        {
 1773|      0|            return 0;
 1774|      0|        }
 1775|   109k|        uint128 n = 0;
 1776|   109k|        size_type mag_bit_width = ((len - 1) << 6) + static_cast<size_type>(64 - jsoncons::countl_zero(words[len-1]));
 1777|   109k|        if (is_negative())
  ------------------
  |  Branch (1777:13): [True: 0, False: 109k]
  ------------------
 1778|      0|        {
 1779|      0|            bool pow2 =  jsoncons::bit_width(words[len-1]) == 1;
 1780|      0|            for (std::size_t i=len; i-- > 1 && pow2; )
  ------------------
  |  Branch (1780:37): [True: 0, False: 0]
  |  Branch (1780:48): [True: 0, False: 0]
  ------------------
 1781|      0|            {
 1782|      0|                pow2 = (words[i] == 0);
 1783|      0|            }
 1784|       |
 1785|      0|            n = (pow2 ? mag_bit_width - 1 : mag_bit_width);
  ------------------
  |  Branch (1785:18): [True: 0, False: 0]
  ------------------
 1786|      0|        }
 1787|   109k|        else
 1788|   109k|        {
 1789|   109k|            n = mag_bit_width;
 1790|   109k|        }
 1791|       |
 1792|   109k|        return n;
 1793|   109k|    }
_ZN8jsonconsmlENS_12basic_bigintINSt3__19allocatorImEEEERKS4_:
 1615|  12.2M|    {
 1616|  12.2M|        return x *= y;
 1617|  12.2M|    }
_ZN8jsonconseqERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1530|  34.5k|    {
 1531|  34.5k|        return x.compare(y) == 0 ? true : false;
  ------------------
  |  Branch (1531:16): [True: 19.0k, False: 15.4k]
  ------------------
 1532|  34.5k|    }
_ZN8jsonconsgeERKNS_12basic_bigintINSt3__19allocatorImEEEES6_:
 1580|  18.6k|    {
 1581|  18.6k|        return x.compare(y) >= 0 ? true : false;
  ------------------
  |  Branch (1581:16): [True: 0, False: 18.6k]
  ------------------
 1582|  18.6k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE12divmod_smallEm:
 2262|  67.7k|    {
 2263|  67.7k|        auto words = get_words();
 2264|       |
 2265|  67.7k|        if (divisor == 0)
  ------------------
  |  Branch (2265:13): [True: 0, False: 67.7k]
  ------------------
 2266|      0|        {
 2267|      0|            JSONCONS_THROW(std::runtime_error( "Divide by zero." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 2268|      0|        }
 2269|       |
 2270|  67.7k|        uint64_t remainder = 0;
 2271|       |
 2272|   140k|        for (size_t i = words.size(); i-- > 0;) {
  ------------------
  |  Branch (2272:39): [True: 72.3k, False: 67.7k]
  ------------------
 2273|  72.3k|            const uint128 current =
 2274|  72.3k|                (static_cast<uint128>(remainder) << 64) | words[i];
 2275|       |
 2276|  72.3k|            const uint64_t q =
 2277|  72.3k|                static_cast<uint64_t>(current / divisor);
 2278|       |
 2279|  72.3k|            words[i] = q;
 2280|       |
 2281|  72.3k|            remainder = static_cast<uint64_t>(
 2282|  72.3k|                current - static_cast<uint128>(q) * divisor
 2283|  72.3k|            );
 2284|  72.3k|        }
 2285|       |
 2286|  67.7k|        normalize();
 2287|  67.7k|        return remainder;
 2288|  67.7k|    }
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEE9normalizeEv:
 2310|  67.7k|    {
 2311|  67.7k|        auto words = get_words();
 2312|  67.7k|        while (!words.empty() && words.back() == 0)
  ------------------
  |  Branch (2312:16): [True: 67.7k, False: 0]
  |  Branch (2312:34): [True: 0, False: 67.7k]
  ------------------
 2313|      0|            resize(words.size() - 1);
 2314|       |
 2315|  67.7k|        if (words.empty())
  ------------------
  |  Branch (2315:13): [True: 0, False: 67.7k]
  ------------------
 2316|      0|            set_negative(false);
 2317|  67.7k|    }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE5emptyEv:
   82|   135k|        {
   83|   135k|            return size_ == 0;
   84|   135k|        }
_ZNK8jsoncons6detail14bigint_storageINSt3__19allocatorImEEE12storage_viewImE4backEv:
   87|  67.7k|        {
   88|  67.7k|            return data_[size_ - 1];
   89|  67.7k|        }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE9mod_smallEm:
 2291|   175k|    {
 2292|   175k|        if (divisor == 0)
  ------------------
  |  Branch (2292:13): [True: 0, False: 175k]
  ------------------
 2293|      0|            JSONCONS_THROW(std::runtime_error( "Divide by zero." ));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 2294|       |
 2295|   175k|        auto words = get_words();
 2296|       |
 2297|   175k|        uint64_t remainder = 0;
 2298|       |
 2299|   375k|        for (size_t i = words.size(); i-- > 0;) {
  ------------------
  |  Branch (2299:39): [True: 199k, False: 175k]
  ------------------
 2300|   199k|            const uint128 current =
 2301|   199k|                (static_cast<uint128>(remainder) << 64) | words[i];
 2302|       |
 2303|   199k|            remainder = static_cast<uint64_t>(current % divisor);
 2304|   199k|        }
 2305|       |
 2306|   175k|        return remainder;
 2307|   175k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE18trailing_zero_bitsEv:
 1749|   176k|    {
 1750|       |        // Assumes words contains the absolute magnitude,
 1751|       |        // even when BigInt is negative.
 1752|       |
 1753|   176k|        auto words = get_words();
 1754|   176k|        for (size_t i = 0; i < words.size(); ++i) {
  ------------------
  |  Branch (1754:28): [True: 176k, False: 0]
  ------------------
 1755|   176k|            const uint64_t w = words[i];
 1756|       |
 1757|   176k|            if (w != 0) {
  ------------------
  |  Branch (1757:17): [True: 176k, False: 401]
  ------------------
 1758|   176k|                return static_cast<uint128>(i) * 64
 1759|   176k|                     + jsoncons::countr_zero(w);
 1760|   176k|            }
 1761|   176k|        }
 1762|       |
 1763|       |        // Zero has no finite number of trailing zero bits.
 1764|      0|        return (jsoncons::ext_traits::integer_limits<uint128>::max)();
 1765|   176k|    }
_ZN8jsoncons4powbINSt3__19allocatorImEEEENS_12basic_bigintIT_EES6_m:
 2332|   194k|{
 2333|   194k|    basic_bigint<Allocator> result{1};
 2334|       |
 2335|   840k|    while ( n )
  ------------------
  |  Branch (2335:13): [True: 645k, False: 194k]
  ------------------
 2336|   645k|    {
 2337|   645k|        if ( n & 1 )
  ------------------
  |  Branch (2337:14): [True: 365k, False: 279k]
  ------------------
 2338|   365k|        {
 2339|   365k|            result *= base;
 2340|   365k|        }
 2341|   645k|        n >>= 1;
 2342|       |
 2343|   645k|        if (n)
  ------------------
  |  Branch (2343:13): [True: 450k, False: 194k]
  ------------------
 2344|   450k|        {
 2345|   450k|            base *= base;
 2346|   450k|        }
 2347|   645k|    }
 2348|       |
 2349|   194k|    return result;
 2350|   194k|}
_ZN8jsoncons12basic_bigintINSt3__19allocatorImEEEmLES4_:
 1091|  13.2M|    {
 1092|  13.2M|        auto words = get_words();
 1093|  13.2M|        auto y_words = y.get_words();
 1094|       |
 1095|  13.2M|        if (words.size() == 0 || y_words.size() == 0)
  ------------------
  |  Branch (1095:13): [True: 0, False: 13.2M]
  |  Branch (1095:34): [True: 0, False: 13.2M]
  ------------------
 1096|      0|        {
 1097|      0|            return *this = 0;
 1098|      0|        }
 1099|       |
 1100|  13.2M|        bool difSigns = is_negative() != y.is_negative();
 1101|  13.2M|        const size_type y_size = y_words.size();
 1102|  13.2M|        if ( words.size() + y_size == 2 ) // size() = y.size() = 1
  ------------------
  |  Branch (1102:14): [True: 8.77M, False: 4.45M]
  ------------------
 1103|  8.77M|        {
 1104|  8.77M|            word_type a = words[0], b = y_words[0];
 1105|  8.77M|            words[0] = a * b;
 1106|  8.77M|            if ( words[0] / a != b )
  ------------------
  |  Branch (1106:18): [True: 437k, False: 8.33M]
  ------------------
 1107|   437k|            {
 1108|   437k|                resize(2);
 1109|   437k|                words = get_words();
 1110|   437k|                DDproduct( a, b, words[1], words[0] );
 1111|   437k|            }
 1112|  8.77M|            set_negative(difSigns);
 1113|  8.77M|            return *this;
 1114|  8.77M|        }
 1115|       |
 1116|  4.45M|        if ( words.size() == 1 )  //  && y.size() > 1
  ------------------
  |  Branch (1116:14): [True: 367k, False: 4.08M]
  ------------------
 1117|   367k|        {
 1118|   367k|            word_type digit = words[0];
 1119|   367k|            *this = y;
 1120|   367k|            *this *= digit;
 1121|   367k|        }
 1122|  4.08M|        else
 1123|  4.08M|        {
 1124|  4.08M|            if (y_words.size() == 1)
  ------------------
  |  Branch (1124:17): [True: 106k, False: 3.97M]
  ------------------
 1125|   106k|            {
 1126|   106k|                *this *= y_words[0];
 1127|   106k|            }
 1128|  3.97M|            else
 1129|  3.97M|            {
 1130|  3.97M|                size_type lenProd = words.size() + y_words.size();
 1131|  3.97M|                word_type sumHi = 0, sumLo, hi, lo,
 1132|  3.97M|                sumLo_old, sumHi_old, carry=0;
 1133|  3.97M|                basic_bigint<Allocator> x = *this;
 1134|  3.97M|                auto x_words = x.get_words();
 1135|  3.97M|                resize( lenProd ); // Give *this length lenProd
 1136|  3.97M|                words = get_words();
 1137|       |
 1138|  20.4M|                for (size_type i = 0; i < lenProd; i++ )
  ------------------
  |  Branch (1138:39): [True: 16.4M, False: 3.97M]
  ------------------
 1139|  16.4M|                {
 1140|  16.4M|                    sumLo = sumHi;
 1141|  16.4M|                    sumHi = carry;
 1142|  16.4M|                    carry = 0;
 1143|   126M|                    for (size_type jA=0; jA < x_words.size(); jA++)
  ------------------
  |  Branch (1143:42): [True: 109M, False: 16.4M]
  ------------------
 1144|   109M|                    {
 1145|   109M|                        if (JSONCONS_LIKELY(i >= jA))
  ------------------
  |  |   78|   109M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 67.9M, False: 41.8M]
  |  |  ------------------
  ------------------
 1146|  67.9M|                        {
 1147|  67.9M|                            size_type jB = i - jA;
 1148|  67.9M|                            if (jB < y_words.size())
  ------------------
  |  Branch (1148:33): [True: 17.8M, False: 50.1M]
  ------------------
 1149|  17.8M|                            {
 1150|  17.8M|                                DDproduct( x_words[jA], y_words[jB], hi, lo );
 1151|  17.8M|                                sumLo_old = sumLo;
 1152|  17.8M|                                sumHi_old = sumHi;
 1153|  17.8M|                                sumLo += lo;
 1154|  17.8M|                                if ( sumLo < sumLo_old )
  ------------------
  |  Branch (1154:38): [True: 5.87M, False: 11.9M]
  ------------------
 1155|  5.87M|                                    sumHi++;
 1156|  17.8M|                                sumHi += hi;
 1157|  17.8M|                                carry += (sumHi < sumHi_old);
 1158|  17.8M|                            }
 1159|  67.9M|                        }
 1160|   109M|                    }
 1161|  16.4M|                    words[i] = sumLo;
 1162|  16.4M|                }
 1163|  3.97M|            }
 1164|  4.08M|        }
 1165|  4.45M|       reduce();
 1166|  4.45M|       set_negative(difSigns);
 1167|  4.45M|       return *this;
 1168|  13.2M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE10bit_lengthEv:
 2243|  9.87M|    {
 2244|       |        // Assumes words stores the absolute magnitude,
 2245|       |        // even when BigInt is negative.
 2246|       |
 2247|  9.87M|        auto words = get_words();
 2248|       |
 2249|  9.87M|        for (size_t i = words.size(); i-- > 0;) {
  ------------------
  |  Branch (2249:39): [True: 9.87M, False: 0]
  ------------------
 2250|  9.87M|            const uint64_t w = words[i];
 2251|       |
 2252|  9.87M|            if (w != 0) {
  ------------------
  |  Branch (2252:17): [True: 9.87M, False: 0]
  ------------------
 2253|  9.87M|                return static_cast<uint64_t>(i) * 64
 2254|  9.87M|                     + 64 - jsoncons::countl_zero(w);
 2255|  9.87M|            }
 2256|  9.87M|        }
 2257|       |
 2258|      0|        return 0;
 2259|  9.87M|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE8test_bitEm:
 2197|  13.7k|    {
 2198|  13.7k|        auto words = get_words();
 2199|       |
 2200|  13.7k|        const uint64_t wordIndex = bitIndex / 64;
 2201|  13.7k|        const unsigned bit = static_cast<unsigned>(bitIndex % 64);
 2202|       |
 2203|  13.7k|        if (wordIndex >= words.size())
  ------------------
  |  Branch (2203:13): [True: 1.24k, False: 12.4k]
  ------------------
 2204|  1.24k|            return false;
 2205|       |
 2206|  12.4k|        return ((words[static_cast<size_t>(wordIndex)] >> bit) & 1ULL) != 0;
 2207|  13.7k|    }
_ZNK8jsoncons12basic_bigintINSt3__19allocatorImEEE12any_low_bitsEm:
 2210|  2.14M|    {
 2211|  2.14M|        auto words = get_words();
 2212|       |
 2213|       |        // Check whether any of bits [0, count) are set.
 2214|  2.14M|        if (words.size() == 0)
  ------------------
  |  Branch (2214:13): [True: 0, False: 2.14M]
  ------------------
 2215|      0|            return false;
 2216|       |
 2217|  2.14M|        const uint64_t wholeWords = count / 64;
 2218|  2.14M|        const unsigned remainingBits = static_cast<unsigned>(count % 64);
 2219|       |
 2220|       |        // Check complete 64-bit limbs.
 2221|  2.14M|        const size_t limit =
 2222|  2.14M|            wholeWords >= words.size()
  ------------------
  |  Branch (2222:13): [True: 359, False: 2.14M]
  ------------------
 2223|  2.14M|                ? words.size()
 2224|  2.14M|                : static_cast<size_t>(wholeWords);
 2225|       |
 2226|  2.15M|        for (size_t i = 0; i < limit; ++i) {
  ------------------
  |  Branch (2226:28): [True: 1.88M, False: 261k]
  ------------------
 2227|  1.88M|            if (words[i] != 0)
  ------------------
  |  Branch (2227:17): [True: 1.88M, False: 6.91k]
  ------------------
 2228|  1.88M|                return true;
 2229|  1.88M|        }
 2230|       |
 2231|       |        // Check remaining low bits of the next limb.
 2232|   261k|        if (remainingBits != 0 && wholeWords < words.size()) {
  ------------------
  |  Branch (2232:13): [True: 259k, False: 1.49k]
  |  Branch (2232:35): [True: 259k, False: 0]
  ------------------
 2233|   259k|            const uint64_t mask = (1ULL << remainingBits) - 1;
 2234|       |
 2235|   259k|            if ((words[static_cast<size_t>(wholeWords)] & mask) != 0)
  ------------------
  |  Branch (2235:17): [True: 255k, False: 4.08k]
  ------------------
 2236|   255k|                return true;
 2237|   259k|        }
 2238|       |
 2239|  5.58k|        return false;
 2240|   261k|    }

_ZN8jsoncons6binary13big_to_nativeItNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|   569k|    {
  183|   569k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 569k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|   569k|        T val;
  188|   569k|        std::memcpy(&val,first,sizeof(T));
  189|   569k|        return byte_swap(val);
  190|   569k|    }
_ZN8jsoncons6binary9byte_swapItEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  3.51M|    {
   29|  3.51M|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  3.51M|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  478|  3.51M|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|  3.51M|    }
_ZN8jsoncons6binary13big_to_nativeIjNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  14.6k|    {
  183|  14.6k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 14.6k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  14.6k|        T val;
  188|  14.6k|        std::memcpy(&val,first,sizeof(T));
  189|  14.6k|        return byte_swap(val);
  190|  14.6k|    }
_ZN8jsoncons6binary9byte_swapIjEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|  1.56M|    {
   40|  1.56M|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|  1.56M|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  474|  1.56M|#  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.56M|    }
_ZN8jsoncons6binary13big_to_nativeImNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  41.4k|    {
  183|  41.4k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 41.4k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  41.4k|        T val;
  188|  41.4k|        std::memcpy(&val,first,sizeof(T));
  189|  41.4k|        return byte_swap(val);
  190|  41.4k|    }
_ZN8jsoncons6binary9byte_swapImEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|   175k|    {
   52|   175k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|   175k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  473|   175k|#  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|   175k|    }
_ZN8jsoncons6binary9byte_swapIsEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm2EES4_E4typeES4_:
   28|  2.17M|    {
   29|  2.17M|    #if defined(JSONCONS_BYTE_SWAP_16)
   30|  2.17M|        return JSONCONS_BYTE_SWAP_16(val);
  ------------------
  |  |  478|  2.17M|#      define JSONCONS_BYTE_SWAP_16    __builtin_bswap16
  ------------------
   31|       |    #else
   32|       |        return (static_cast<uint16_t>(val) >> 8) | (static_cast<uint16_t>(val) << 8);
   33|       |    #endif
   34|  2.17M|    }
_ZN8jsoncons6binary9byte_swapIiEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   39|   116k|    {
   40|   116k|    #if defined(JSONCONS_BYTE_SWAP_32)
   41|   116k|        return JSONCONS_BYTE_SWAP_32(val);
  ------------------
  |  |  474|   116k|#  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|   116k|    }
_ZN8jsoncons6binary9byte_swapIlEENSt3__19enable_ifIXaasr3std11is_integralIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   51|  7.91k|    {
   52|  7.91k|    #if defined(JSONCONS_BYTE_SWAP_64)
   53|  7.91k|        return JSONCONS_BYTE_SWAP_64(val);
  ------------------
  |  |  473|  7.91k|#  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|  7.91k|    }
_ZN8jsoncons6binary9byte_swapIfEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm4EES4_E4typeES4_:
   64|  1.31M|    {
   65|  1.31M|        uint32_t x;
   66|  1.31M|        std::memcpy(&x,&val,sizeof(uint32_t));
   67|  1.31M|        uint32_t y = byte_swap(x);
   68|  1.31M|        T val2;
   69|  1.31M|        std::memcpy(&val2,&y,sizeof(uint32_t));
   70|  1.31M|        return val2;
   71|  1.31M|    }
_ZN8jsoncons6binary9byte_swapIdEENSt3__19enable_ifIXaasr3std17is_floating_pointIT_EE5valueeqstS4_Lm8EES4_E4typeES4_:
   76|  59.1k|    {
   77|  59.1k|        uint64_t x;
   78|  59.1k|        std::memcpy(&x,&val,sizeof(uint64_t));
   79|  59.1k|        uint64_t y = byte_swap(x);
   80|  59.1k|        T val2;
   81|  59.1k|        std::memcpy(&val2,&y,sizeof(uint64_t));
   82|  59.1k|        return val2;
   83|  59.1k|    }
_ZN8jsoncons6binary13big_to_nativeIfNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  96.2k|    {
  183|  96.2k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 96.2k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  96.2k|        T val;
  188|  96.2k|        std::memcpy(&val,first,sizeof(T));
  189|  96.2k|        return byte_swap(val);
  190|  96.2k|    }
_ZN8jsoncons6binary13big_to_nativeIdNS_6nonstd6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  182|  14.1k|    {
  183|  14.1k|        if (sizeof(T) > count)
  ------------------
  |  Branch (183:13): [True: 0, False: 14.1k]
  ------------------
  184|      0|        {
  185|      0|            return T{};
  186|      0|        }
  187|  14.1k|        T val;
  188|  14.1k|        std::memcpy(&val,first,sizeof(T));
  189|  14.1k|        return byte_swap(val);
  190|  14.1k|    }

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

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

_ZNK8jsoncons8identityclIRKhEEOT_S5_:
   19|   740k|    {
   20|   740k|        return std::forward<T>(val);
   21|   740k|    }
_ZNK8jsoncons8identityclIRKtEEOT_S5_:
   19|  4.62M|    {
   20|  4.62M|        return std::forward<T>(val);
   21|  4.62M|    }
_ZNK8jsoncons8identityclIRKjEEOT_S5_:
   19|   234k|    {
   20|   234k|        return std::forward<T>(val);
   21|   234k|    }
_ZNK8jsoncons8identityclIRKmEEOT_S5_:
   19|   237k|    {
   20|   237k|        return std::forward<T>(val);
   21|   237k|    }
_ZNK8jsoncons8identityclIRKaEEOT_S5_:
   19|   213k|    {
   20|   213k|        return std::forward<T>(val);
   21|   213k|    }
_ZNK8jsoncons8identityclIRKsEEOT_S5_:
   19|  2.18M|    {
   20|  2.18M|        return std::forward<T>(val);
   21|  2.18M|    }
_ZNK8jsoncons8identityclIRKiEEOT_S5_:
   19|   120k|    {
   20|   120k|        return std::forward<T>(val);
   21|   120k|    }
_ZNK8jsoncons8identityclIRKlEEOT_S5_:
   19|  61.0M|    {
   20|  61.0M|        return std::forward<T>(val);
   21|  61.0M|    }
_ZNK8jsoncons11decode_halfclEt:
   36|  2.69M|    {
   37|  2.69M|        return binary::decode_half(val);
   38|  2.69M|    }
_ZNK8jsoncons8identityclIRKfEEOT_S5_:
   19|  1.23M|    {
   20|  1.23M|        return std::forward<T>(val);
   21|  1.23M|    }
_ZNK8jsoncons8identityclIRKdEEOT_S5_:
   19|  49.5k|    {
   20|  49.5k|        return std::forward<T>(val);
   21|  49.5k|    }

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

_ZN8jsoncons10ext_traits16to_plain_pointerINS_4heap11heap_stringIcNS_9null_typeENSt3__19allocatorIcEEEEEEPT_SA_:
  237|   361k|    {       
  238|   361k|        return (ptr);
  239|   361k|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerINS_4heap11heap_stringIhmNSt3__19allocatorIcEEEEEEPT_S9_:
  237|  5.34M|    {       
  238|  5.34M|        return (ptr);
  239|  5.34M|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerINS_10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS5_6vectorEEEEEPT_SC_:
  237|  10.8M|    {       
  238|  10.8M|        return (ptr);
  239|  10.8M|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerINS_18sorted_json_objectINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES8_EENS3_6vectorEEEEEPT_SG_:
  237|  8.14M|    {       
  238|  8.14M|        return (ptr);
  239|  8.14M|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerIcEEPT_S3_:
  237|  5.70M|    {       
  238|  5.70M|        return (ptr);
  239|  5.70M|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerImEEPT_S3_:
  237|  6.78M|    {       
  238|  6.78M|        return (ptr);
  239|  6.78M|    }  

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

_ZN8jsoncons16append_to_stringImNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  22.2M|{
   43|  22.2M|    using char_type = typename Result::value_type;
   44|       |
   45|  22.2M|    char_type buf[255];
   46|  22.2M|    char_type *p = buf;
   47|  22.2M|    const char_type* last = buf+255;
   48|       |
   49|  22.2M|    bool is_negative = value < 0;
   50|       |
   51|  22.2M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 0, False: 22.2M]
  ------------------
   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|  22.2M|    else
   60|  22.2M|    {
   61|       |
   62|  22.2M|        do
   63|  46.4M|        {
   64|  46.4M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  46.4M|        }
   66|  46.4M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 24.2M, False: 22.2M]
  |  Branch (66:33): [True: 24.2M, False: 0]
  ------------------
   67|  22.2M|    }
   68|  22.2M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   67|  22.2M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 22.2M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  22.2M|    std::size_t count = (p - buf);
   71|  22.2M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 0, False: 22.2M]
  ------------------
   72|      0|    {
   73|      0|        result.push_back('-');
   74|      0|        ++count;
   75|      0|    }
   76|  68.6M|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 46.4M, False: 22.2M]
  ------------------
   77|  46.4M|    {
   78|  46.4M|        result.push_back(*p);
   79|  46.4M|    }
   80|       |
   81|  22.2M|    return count;
   82|  22.2M|}
_ZN8jsoncons16append_to_stringIlNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  67.7M|{
   43|  67.7M|    using char_type = typename Result::value_type;
   44|       |
   45|  67.7M|    char_type buf[255];
   46|  67.7M|    char_type *p = buf;
   47|  67.7M|    const char_type* last = buf+255;
   48|       |
   49|  67.7M|    bool is_negative = value < 0;
   50|       |
   51|  67.7M|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 23.4M, False: 44.3M]
  ------------------
   52|  23.4M|    {
   53|  23.4M|        do
   54|   354M|        {
   55|   354M|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|   354M|        }
   57|   354M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 330M, False: 23.4M]
  |  Branch (57:33): [True: 330M, False: 0]
  ------------------
   58|  23.4M|    }
   59|  44.3M|    else
   60|  44.3M|    {
   61|       |
   62|  44.3M|        do
   63|   783M|        {
   64|   783M|            *p++ = static_cast<char_type>(48 + value % 10);
   65|   783M|        }
   66|   783M|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 739M, False: 44.3M]
  |  Branch (66:33): [True: 739M, False: 0]
  ------------------
   67|  44.3M|    }
   68|  67.7M|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   67|  67.7M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 67.7M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  67.7M|    std::size_t count = (p - buf);
   71|  67.7M|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 23.4M, False: 44.3M]
  ------------------
   72|  23.4M|    {
   73|  23.4M|        result.push_back('-');
   74|  23.4M|        ++count;
   75|  23.4M|    }
   76|  1.20G|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 1.13G, False: 67.7M]
  ------------------
   77|  1.13G|    {
   78|  1.13G|        result.push_back(*p);
   79|  1.13G|    }
   80|       |
   81|  67.7M|    return count;
   82|  67.7M|}
_ZN8jsoncons12write_doubleC2ENS_18float_chars_formatEi:
  487|  3.20M|       : float_format_(float_format), precision_(precision), decimal_point_('.')
  488|  3.20M|    {
  489|  3.20M|#if !defined(JSONCONS_NO_LOCALECONV)
  490|  3.20M|        struct lconv *lc = localeconv();
  491|  3.20M|        if (lc != nullptr && lc->decimal_point[0] != 0)
  ------------------
  |  Branch (491:13): [True: 3.20M, False: 0]
  |  Branch (491:30): [True: 3.20M, False: 0]
  ------------------
  492|  3.20M|        {
  493|  3.20M|            decimal_point_ = lc->decimal_point[0];
  494|  3.20M|        }
  495|  3.20M|#endif
  496|  3.20M|    }
_ZN8jsoncons12write_doubleclINS_11string_sinkINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEEmdRT_:
  503|  3.20M|    {
  504|  3.20M|        std::size_t count = 0;
  505|       |
  506|  3.20M|        char number_buffer[200];
  507|  3.20M|        int length = 0;
  508|       |
  509|  3.20M|        switch (float_format_)
  510|  3.20M|        {
  511|      0|        case float_chars_format::fixed:
  ------------------
  |  Branch (511:9): [True: 0, False: 3.20M]
  ------------------
  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: 3.20M]
  ------------------
  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|  3.20M|        case float_chars_format::general:
  ------------------
  |  Branch (551:9): [True: 3.20M, False: 0]
  ------------------
  552|  3.20M|            {
  553|  3.20M|                if (precision_ > 0)
  ------------------
  |  Branch (553:21): [True: 0, False: 3.20M]
  ------------------
  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|  3.20M|                else
  563|  3.20M|                {
  564|  3.20M|                    if (!dtoa_general(val, decimal_point_, result))
  ------------------
  |  Branch (564:25): [True: 0, False: 3.20M]
  ------------------
  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|  3.20M|                }             
  569|  3.20M|                break;
  570|  3.20M|            }
  571|  3.20M|            default:
  ------------------
  |  Branch (571:13): [True: 0, False: 3.20M]
  ------------------
  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|  3.20M|        }
  575|  3.20M|        return count;
  576|  3.20M|    }
_ZN8jsoncons11dump_bufferINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKcmcRT_:
  243|  48.5k|{
  244|  48.5k|    const char *sbeg = buffer;
  245|  48.5k|    const char *send = sbeg + length;
  246|       |
  247|  48.5k|    if (sbeg != send)
  ------------------
  |  Branch (247:9): [True: 48.5k, False: 0]
  ------------------
  248|  48.5k|    {
  249|  48.5k|        bool needs_dot = true;
  250|  1.10M|        for (const char* q = sbeg; q < send; ++q)
  ------------------
  |  Branch (250:36): [True: 1.06M, False: 48.5k]
  ------------------
  251|  1.06M|        {
  252|  1.06M|            switch (*q)
  253|  1.06M|            {
  254|  49.7k|            case '-':
  ------------------
  |  Branch (254:13): [True: 49.7k, False: 1.01M]
  ------------------
  255|   212k|            case '0':
  ------------------
  |  Branch (255:13): [True: 163k, False: 897k]
  ------------------
  256|   310k|            case '1':
  ------------------
  |  Branch (256:13): [True: 97.7k, False: 963k]
  ------------------
  257|   412k|            case '2':
  ------------------
  |  Branch (257:13): [True: 102k, False: 958k]
  ------------------
  258|   476k|            case '3':
  ------------------
  |  Branch (258:13): [True: 63.4k, False: 997k]
  ------------------
  259|   537k|            case '4':
  ------------------
  |  Branch (259:13): [True: 60.8k, False: 1.00M]
  ------------------
  260|   661k|            case '5':
  ------------------
  |  Branch (260:13): [True: 124k, False: 936k]
  ------------------
  261|   766k|            case '6':
  ------------------
  |  Branch (261:13): [True: 105k, False: 955k]
  ------------------
  262|   854k|            case '7':
  ------------------
  |  Branch (262:13): [True: 87.3k, False: 973k]
  ------------------
  263|   917k|            case '8':
  ------------------
  |  Branch (263:13): [True: 63.7k, False: 997k]
  ------------------
  264|   978k|            case '9':
  ------------------
  |  Branch (264:13): [True: 60.8k, False: 1.00M]
  ------------------
  265|   979k|            case '+':
  ------------------
  |  Branch (265:13): [True: 337, False: 1.06M]
  ------------------
  266|   979k|                result.push_back(*q);
  267|   979k|                break;
  268|  33.1k|            case 'e':
  ------------------
  |  Branch (268:13): [True: 33.1k, False: 1.02M]
  ------------------
  269|  33.1k|            case 'E':
  ------------------
  |  Branch (269:13): [True: 0, False: 1.06M]
  ------------------
  270|  33.1k|                result.push_back('e');
  271|  33.1k|                needs_dot = false;
  272|  33.1k|                break;
  273|  48.7k|            default:
  ------------------
  |  Branch (273:13): [True: 48.7k, False: 1.01M]
  ------------------
  274|  48.7k|                if (*q == decimal_point)
  ------------------
  |  Branch (274:21): [True: 47.1k, False: 1.66k]
  ------------------
  275|  47.1k|                {
  276|  47.1k|                    needs_dot = false;
  277|  47.1k|                    result.push_back('.');
  278|  47.1k|                }
  279|  48.7k|                break;
  280|  1.06M|            }
  281|  1.06M|        }
  282|  48.5k|        if (needs_dot)
  ------------------
  |  Branch (282:13): [True: 1.45k, False: 47.1k]
  ------------------
  283|  1.45k|        {
  284|  1.45k|            result.push_back('.');
  285|  1.45k|            result.push_back('0');
  286|  1.45k|        }
  287|  48.5k|    }
  288|  48.5k|}
_ZN8jsoncons15prettify_stringINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEvPKciiiiRT_:
  171|  2.92M|{
  172|  2.92M|    int nb_digits = length;
  173|  2.92M|    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|  2.92M|    int kk = nb_digits + k;
  179|       |
  180|  2.92M|    if (nb_digits <= kk && kk <= max_exp)
  ------------------
  |  Branch (180:9): [True: 1.22M, False: 1.69M]
  |  Branch (180:28): [True: 506k, False: 722k]
  ------------------
  181|   506k|    {
  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|  3.07M|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (185:25): [True: 2.57M, False: 506k]
  ------------------
  186|  2.57M|        {
  187|  2.57M|            result.push_back(buffer[i]);
  188|  2.57M|        }
  189|   539k|        for (int i = nb_digits; i < kk; ++i)
  ------------------
  |  Branch (189:33): [True: 32.9k, False: 506k]
  ------------------
  190|  32.9k|        {
  191|  32.9k|            result.push_back('0');
  192|  32.9k|        }
  193|   506k|        result.push_back('.');
  194|   506k|        result.push_back('0');
  195|   506k|    } 
  196|  2.41M|    else if (0 < kk && kk <= max_exp)
  ------------------
  |  Branch (196:14): [True: 1.49M, False: 915k]
  |  Branch (196:24): [True: 775k, False: 722k]
  ------------------
  197|   775k|    {
  198|       |        /* comma number. Just insert a '.' at the correct location. */
  199|  2.24M|        for (int i = 0; i < kk; ++i)
  ------------------
  |  Branch (199:25): [True: 1.47M, False: 775k]
  ------------------
  200|  1.47M|        {
  201|  1.47M|            result.push_back(buffer[i]);
  202|  1.47M|        }
  203|   775k|        result.push_back('.');
  204|  4.75M|        for (int i = kk; i < nb_digits; ++i)
  ------------------
  |  Branch (204:26): [True: 3.98M, False: 775k]
  ------------------
  205|  3.98M|        {
  206|  3.98M|            result.push_back(buffer[i]);
  207|  3.98M|        }
  208|   775k|    } 
  209|  1.63M|    else if (min_exp < kk && kk <= 0)
  ------------------
  |  Branch (209:14): [True: 1.29M, False: 347k]
  |  Branch (209:30): [True: 568k, False: 722k]
  ------------------
  210|   568k|    {
  211|   568k|        offset = 2 - kk;
  212|       |
  213|   568k|        result.push_back('0');
  214|   568k|        result.push_back('.');
  215|  1.41M|        for (int i = 2; i < offset; ++i) 
  ------------------
  |  Branch (215:25): [True: 843k, False: 568k]
  ------------------
  216|   843k|            result.push_back('0');
  217|  7.52M|        for (int i = 0; i < nb_digits; ++i)
  ------------------
  |  Branch (217:25): [True: 6.96M, False: 568k]
  ------------------
  218|  6.96M|        {
  219|  6.96M|            result.push_back(buffer[i]);
  220|  6.96M|        }
  221|   568k|    } 
  222|  1.06M|    else if (nb_digits == 1)
  ------------------
  |  Branch (222:14): [True: 658, False: 1.06M]
  ------------------
  223|    658|    {
  224|    658|        result.push_back(buffer[0]);
  225|    658|        result.push_back('e');
  226|    658|        fill_exponent(kk - 1, result);
  227|    658|    } 
  228|  1.06M|    else
  229|  1.06M|    {
  230|  1.06M|        result.push_back(buffer[0]);
  231|  1.06M|        result.push_back('.');
  232|  17.0M|        for (int i = 1; i < nb_digits; ++i)
  ------------------
  |  Branch (232:25): [True: 15.9M, False: 1.06M]
  ------------------
  233|  15.9M|        {
  234|  15.9M|            result.push_back(buffer[i]);
  235|  15.9M|        }
  236|  1.06M|        result.push_back('e');
  237|  1.06M|        fill_exponent(kk - 1, result);
  238|  1.06M|    }
  239|  2.92M|}
_ZN8jsoncons13fill_exponentINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEviRT_:
  136|  1.06M|{
  137|  1.06M|    if (K < 0)
  ------------------
  |  Branch (137:9): [True: 347k, False: 722k]
  ------------------
  138|   347k|    {
  139|   347k|        result.push_back('-');
  140|   347k|        K = -K;
  141|   347k|    }
  142|   722k|    else
  143|   722k|    {
  144|   722k|        result.push_back('+'); // compatibility with sprintf
  145|   722k|    }
  146|       |
  147|  1.06M|    if (K < 10)
  ------------------
  |  Branch (147:9): [True: 300k, False: 769k]
  ------------------
  148|   300k|    {
  149|   300k|        result.push_back('0'); // compatibility with sprintf
  150|   300k|        result.push_back((char)('0' + K));
  151|   300k|    }
  152|   769k|    else if (K < 100)
  ------------------
  |  Branch (152:14): [True: 268k, False: 501k]
  ------------------
  153|   268k|    {
  154|   268k|        result.push_back((char)('0' + K / 10)); K %= 10;
  155|   268k|        result.push_back((char)('0' + K));
  156|   268k|    }
  157|   501k|    else if (K < 1000)
  ------------------
  |  Branch (157:14): [True: 501k, False: 0]
  ------------------
  158|   501k|    {
  159|   501k|        result.push_back((char)('0' + K / 100)); K %= 100;
  160|   501k|        result.push_back((char)('0' + K / 10)); K %= 10;
  161|   501k|        result.push_back((char)('0' + K));
  162|   501k|    }
  163|      0|    else
  164|      0|    {
  165|      0|        jsoncons::append_to_string(K, result);
  166|      0|    }
  167|  1.06M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_:
  475|  3.20M|{
  476|  3.20M|    return dtoa_general(v, decimal_point, result, std::integral_constant<bool, std::numeric_limits<double>::is_iec559>());
  477|  3.20M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb1EEE:
  366|  3.20M|{
  367|  3.20M|    if (v == 0)
  ------------------
  |  Branch (367:9): [True: 234k, False: 2.96M]
  ------------------
  368|   234k|    {
  369|   234k|        result.push_back('0');
  370|   234k|        result.push_back('.');
  371|   234k|        result.push_back('0');
  372|   234k|        return true;
  373|   234k|    }
  374|       |
  375|  2.96M|    int length = 0;
  376|  2.96M|    int k;
  377|       |
  378|  2.96M|    char buffer[100];
  379|       |
  380|  2.96M|    double u = std::signbit(v) ? -v : v;
  ------------------
  |  Branch (380:16): [True: 1.98M, False: 982k]
  ------------------
  381|  2.96M|    if (jsoncons::detail::grisu3(u, buffer, &length, &k))
  ------------------
  |  Branch (381:9): [True: 2.92M, False: 48.5k]
  ------------------
  382|  2.92M|    {
  383|  2.92M|        if (std::signbit(v))
  ------------------
  |  Branch (383:13): [True: 1.96M, False: 950k]
  ------------------
  384|  1.96M|        {
  385|  1.96M|            result.push_back('-');
  386|  1.96M|        }
  387|       |        // min exp: -4 is consistent with sprintf
  388|       |        // max exp: std::numeric_limits<double>::max_digits10
  389|  2.92M|        jsoncons::prettify_string(buffer, length, k, -4, std::numeric_limits<double>::max_digits10, result);
  390|  2.92M|        return true;
  391|  2.92M|    }
  392|  48.5k|    else
  393|  48.5k|    {
  394|  48.5k|        return dtoa_general(v, decimal_point, result, std::false_type());
  395|  48.5k|    }
  396|  2.96M|}
_ZN8jsoncons12dtoa_generalINS_11string_sinkINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEEbdcRT_NS2_17integral_constantIbLb0EEE:
  329|  48.5k|{
  330|  48.5k|    if (val == 0)
  ------------------
  |  Branch (330:9): [True: 0, False: 48.5k]
  ------------------
  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|  48.5k|    char buffer[100];
  339|  48.5k|    int precision = std::numeric_limits<double>::digits10;
  340|  48.5k|    int length = snprintf(buffer, sizeof(buffer), "%1.*g", precision, val);
  341|  48.5k|    if (length < 0)
  ------------------
  |  Branch (341:9): [True: 0, False: 48.5k]
  ------------------
  342|      0|    {
  343|      0|        return false;
  344|      0|    }
  345|  48.5k|    double x{0};
  346|  48.5k|    auto res = decstr_to_double(buffer, length, x);
  347|  48.5k|    if (res.ec == std::errc::invalid_argument)
  ------------------
  |  Branch (347:9): [True: 0, False: 48.5k]
  ------------------
  348|      0|    {
  349|      0|        return false;
  350|      0|    }
  351|  48.5k|    if (x != val)
  ------------------
  |  Branch (351:9): [True: 48.3k, False: 251]
  ------------------
  352|  48.3k|    {
  353|  48.3k|        const int precision2 = std::numeric_limits<double>::max_digits10;
  354|  48.3k|        length = snprintf(buffer, sizeof(buffer), "%1.*g", precision2, val);
  355|  48.3k|        if (length < 0)
  ------------------
  |  Branch (355:13): [True: 0, False: 48.3k]
  ------------------
  356|      0|        {
  357|      0|            return false;
  358|      0|        }
  359|  48.3k|    }
  360|  48.5k|    dump_buffer(buffer, length, decimal_point, result);
  361|  48.5k|    return true;
  362|  48.5k|}
_ZN8jsoncons16append_to_stringInNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|   111k|{
   43|   111k|    using char_type = typename Result::value_type;
   44|       |
   45|   111k|    char_type buf[255];
   46|   111k|    char_type *p = buf;
   47|   111k|    const char_type* last = buf+255;
   48|       |
   49|   111k|    bool is_negative = value < 0;
   50|       |
   51|   111k|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 8.51k, False: 102k]
  ------------------
   52|  8.51k|    {
   53|  8.51k|        do
   54|  19.0k|        {
   55|  19.0k|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  19.0k|        }
   57|  19.0k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 10.5k, False: 8.51k]
  |  Branch (57:33): [True: 10.5k, False: 0]
  ------------------
   58|  8.51k|    }
   59|   102k|    else
   60|   102k|    {
   61|       |
   62|   102k|        do
   63|   217k|        {
   64|   217k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|   217k|        }
   66|   217k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 114k, False: 102k]
  |  Branch (66:33): [True: 114k, False: 0]
  ------------------
   67|   102k|    }
   68|   111k|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   67|   111k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 111k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|   111k|    std::size_t count = (p - buf);
   71|   111k|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 8.51k, False: 102k]
  ------------------
   72|  8.51k|    {
   73|  8.51k|        result.push_back('-');
   74|  8.51k|        ++count;
   75|  8.51k|    }
   76|   347k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 236k, False: 111k]
  ------------------
   77|   236k|    {
   78|   236k|        result.push_back(*p);
   79|   236k|    }
   80|       |
   81|   111k|    return count;
   82|   111k|}

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|  1.88M|    {
 1148|  1.88M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|  1.88M|        const uint8_t* end = it + length;
 1150|       |
 1151|  1.88M|        unicode_errc  result{};
 1152|  6.42M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 4.53M, False: 1.88M]
  ------------------
 1153|  4.53M|        {
 1154|  4.53M|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 507k, False: 4.03M]
  ------------------
 1155|   507k|            {
 1156|  3.53M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  342|  1.01M|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (342:32): [True: 506k, False: 818]
  |  |  |  Branch (342:34): [True: 506k, False: 361]
  |  |  |  Branch (342:36): [True: 505k, False: 611]
  |  |  |  Branch (342:38): [True: 505k, False: 469]
  |  |  |  Branch (342:40): [True: 505k, False: 264]
  |  |  |  Branch (342:42): [True: 504k, False: 913]
  |  |  |  Branch (342:44): [True: 503k, False: 420]
  |  |  |  Branch (342:46): [True: 503k, False: 202]
  |  |  ------------------
  ------------------
 1157|   503k|                continue;
 1158|  3.53M|            }
 1159|  4.03M|    non_ascii:
 1160|  4.03M|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|  4.03M|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 41, False: 4.03M]
  ------------------
 1162|     41|            {
 1163|     41|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     41|            }
 1165|  4.03M|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 203, False: 4.03M]
  ------------------
 1166|    203|            {
 1167|    203|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    203|            }
 1169|  4.03M|            it += len;
 1170|  4.03M|        }
 1171|  1.88M|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|  1.88M|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|  4.03M|    {
  306|  4.03M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|  4.03M|        const uint8_t* end = it+length;
  308|       |
  309|  4.03M|        uint8_t byte;
  310|  4.03M|        switch (length) {
  311|     31|        default:
  ------------------
  |  Branch (311:9): [True: 31, False: 4.03M]
  ------------------
  312|     31|            return unicode_errc::over_long_utf8_sequence;
  313|    400|        case 4:
  ------------------
  |  Branch (313:9): [True: 400, False: 4.03M]
  ------------------
  314|    400|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 11, False: 389]
  ------------------
  315|     11|                return unicode_errc::bad_continuation_byte;
  316|    389|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|    389|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  10.9k|        case 3:
  ------------------
  |  Branch (317:9): [True: 10.5k, False: 4.02M]
  ------------------
  318|  10.9k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 17, False: 10.9k]
  ------------------
  319|     17|                return unicode_errc::bad_continuation_byte;
  320|  10.9k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|  10.9k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  15.7k|        case 2:
  ------------------
  |  Branch (321:9): [True: 4.83k, False: 4.02M]
  ------------------
  322|  15.7k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 36, False: 15.7k]
  ------------------
  323|     36|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  15.7k|            switch (*it) 
  326|  15.7k|            {
  327|       |                // no fall-through in this inner switch
  328|    992|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 992, False: 14.7k]
  |  Branch (328:32): [True: 6, False: 986]
  ------------------
  329|    986|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 522, False: 15.2k]
  |  Branch (329:32): [True: 5, False: 517]
  ------------------
  330|    517|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 199, False: 15.5k]
  |  Branch (330:32): [True: 5, False: 194]
  ------------------
  331|    194|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 70, False: 15.6k]
  |  Branch (331:32): [True: 2, False: 68]
  ------------------
  332|  13.9k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 13.9k, False: 1.78k]
  |  Branch (332:32): [True: 0, False: 13.9k]
  ------------------
  333|  15.7k|            }
  334|       |
  335|  15.7k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  576|  15.7k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|  4.03M|        case 1:
  ------------------
  |  Branch (336:9): [True: 4.01M, False: 15.8k]
  ------------------
  337|  4.03M|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 15.8k, False: 4.01M]
  |  Branch (337:32): [True: 88, False: 15.7k]
  ------------------
  338|     88|                return unicode_errc::source_illegal;
  339|  4.03M|            break;
  340|  4.03M|        }
  341|  4.03M|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 2, False: 4.03M]
  ------------------
  342|      2|            return unicode_errc::source_illegal;
  343|       |
  344|  4.03M|        return unicode_errc();
  345|  4.03M|    }

_ZN8jsoncons4cbor14get_major_typeEh:
   40|   191M|{
   41|   191M|    static constexpr uint8_t major_type_shift = 0x05;
   42|   191M|    uint8_t value = initial_byte >> major_type_shift;
   43|   191M|    return static_cast<jsoncons::cbor::cbor_major_type>(value);
   44|   191M|}
_ZN8jsoncons4cbor19get_additional_infoEh:
   48|   107M|{
   49|   107M|    static constexpr uint8_t additional_information_mask = (1U << 5) - 1;
   50|   107M|    uint8_t value = initial_byte & additional_information_mask;
   51|   107M|    return value;
   52|   107M|}
_ZN8jsoncons4cbor6detail24min_length_for_stringrefEm:
   75|  5.83M|{
   76|  5.83M|    std::size_t n;
   77|  5.83M|    if (index <= 23)
  ------------------
  |  Branch (77:9): [True: 1.03M, False: 4.80M]
  ------------------
   78|  1.03M|    {
   79|  1.03M|        n = 3;
   80|  1.03M|    }
   81|  4.80M|    else if (index <= 255)
  ------------------
  |  Branch (81:14): [True: 582k, False: 4.21M]
  ------------------
   82|   582k|    {
   83|   582k|        n = 4;
   84|   582k|    }
   85|  4.21M|    else if (index <= 65535)
  ------------------
  |  Branch (85:14): [True: 4.11M, False: 102k]
  ------------------
   86|  4.11M|    {
   87|  4.11M|        n = 5;
   88|  4.11M|    }
   89|   102k|    else if (index <= 4294967295)
  ------------------
  |  Branch (89:14): [True: 102k, False: 0]
  ------------------
   90|   102k|    {
   91|   102k|        n = 7;
   92|   102k|    }
   93|      0|    else 
   94|      0|    {
   95|      0|        n = 11;
   96|      0|    }
   97|  5.83M|    return n;
   98|  5.83M|}

_ZN8jsoncons4cbor15make_error_codeENS0_9cbor_errcE:
  150|  10.7k|{
  151|  10.7k|    return std::error_code(static_cast<int>(e),cbor_error_category());
  152|  10.7k|}
_ZN8jsoncons4cbor19cbor_error_categoryEv:
  143|  10.7k|{
  144|  10.7k|  static cbor_error_category_impl instance;
  145|  10.7k|  return instance;
  146|  10.7k|}
_ZNK8jsoncons4cbor24cbor_error_category_impl7messageEi:
   66|  10.7k|    {
   67|  10.7k|        switch (static_cast<cbor_errc>(ev))
   68|  10.7k|        {
   69|  7.86k|            case cbor_errc::unexpected_eof:
  ------------------
  |  Branch (69:13): [True: 7.86k, False: 2.86k]
  ------------------
   70|  7.86k|                return "Unexpected end of file";
   71|    300|            case cbor_errc::reserved_additional_info:
  ------------------
  |  Branch (71:13): [True: 300, False: 10.4k]
  ------------------
   72|    300|                return "Additional-information values 28-30 are reserved";
   73|      0|            case cbor_errc::source_error:
  ------------------
  |  Branch (73:13): [True: 0, False: 10.7k]
  ------------------
   74|      0|                return "Source error";
   75|    209|            case cbor_errc::invalid_bigdecimal:
  ------------------
  |  Branch (75:13): [True: 209, False: 10.5k]
  ------------------
   76|    209|                return "Invalid BigDecimal value";
   77|     66|            case cbor_errc::bigdec_scale_overflow:
  ------------------
  |  Branch (77:13): [True: 66, False: 10.6k]
  ------------------
   78|     66|                return "bigdec scale overflow";
   79|      0|            case cbor_errc::bigfloat_scale_overflow:
  ------------------
  |  Branch (79:13): [True: 0, False: 10.7k]
  ------------------
   80|      0|                return "bigfloat scale overflow";
   81|    171|            case cbor_errc::invalid_bigfloat:
  ------------------
  |  Branch (81:13): [True: 171, False: 10.5k]
  ------------------
   82|    171|                return "Invalid bigfloat value";
   83|      0|            case cbor_errc::bigfloat_to_bigdec_failed:
  ------------------
  |  Branch (83:13): [True: 0, False: 10.7k]
  ------------------
   84|      0|                return "CBOR bigfloat requires an impractically large decimal mantissa";
   85|     55|            case cbor_errc::max_dimensions_exceeded:
  ------------------
  |  Branch (85:13): [True: 55, False: 10.6k]
  ------------------
   86|     55|                return "Maximum number of dimensions exceeded.";
   87|    244|            case cbor_errc::invalid_utf8:
  ------------------
  |  Branch (87:13): [True: 244, False: 10.4k]
  ------------------
   88|    244|                return "Illegal UTF-8 encoding in text string";
   89|      0|            case cbor_errc::too_many_items:
  ------------------
  |  Branch (89:13): [True: 0, False: 10.7k]
  ------------------
   90|      0|                return "Too many items were added to a CBOR map or array of known length";
   91|      0|            case cbor_errc::too_few_items:
  ------------------
  |  Branch (91:13): [True: 0, False: 10.7k]
  ------------------
   92|      0|                return "Too few items were added to a CBOR map or array of known length";
   93|      0|            case cbor_errc::number_too_large:
  ------------------
  |  Branch (93:13): [True: 0, False: 10.7k]
  ------------------
   94|      0|                return "Number exceeds implementation limits";
   95|     59|            case cbor_errc::stringref_too_large:
  ------------------
  |  Branch (95:13): [True: 59, False: 10.6k]
  ------------------
   96|     59|                return "stringref exceeds stringref map size";
   97|     13|            case cbor_errc::max_nesting_depth_exceeded:
  ------------------
  |  Branch (97:13): [True: 13, False: 10.7k]
  ------------------
   98|     13|                return "Data item nesting exceeds limit in options";
   99|      0|            case cbor_errc::unmatched_end_object:
  ------------------
  |  Branch (99:13): [True: 0, False: 10.7k]
  ------------------
  100|      0|                return "Unmatched end object";
  101|      0|            case cbor_errc::unmatched_end_array:
  ------------------
  |  Branch (101:13): [True: 0, False: 10.7k]
  ------------------
  102|      0|                return "Unmatched end array";
  103|    684|            case cbor_errc::unknown_type:
  ------------------
  |  Branch (103:13): [True: 684, False: 10.0k]
  ------------------
  104|    684|                return "Unknown type in input";
  105|      0|            case cbor_errc::invalid_major_type:
  ------------------
  |  Branch (105:13): [True: 0, False: 10.7k]
  ------------------
  106|      0|                return "Invalid major type in input";
  107|     80|            case cbor_errc::illegal_chunked_string:
  ------------------
  |  Branch (107:13): [True: 80, False: 10.6k]
  ------------------
  108|     80|                return "An illegal type was found while parsing an indefinite length string";
  109|    231|            case cbor_errc::invalid_mdarray:
  ------------------
  |  Branch (109:13): [True: 231, False: 10.5k]
  ------------------
  110|    231|                return "Invalid multi-dimensional array.";
  111|    605|            case cbor_errc::bad_extents:
  ------------------
  |  Branch (111:13): [True: 605, False: 10.1k]
  ------------------
  112|    605|                return "Product of extents does not match number of elements.";
  113|      0|            case cbor_errc::trailing_data:
  ------------------
  |  Branch (113:13): [True: 0, False: 10.7k]
  ------------------
  114|      0|                return "Trailing bytes after the end of a CBOR item";
  115|      0|            case cbor_errc::bigfloat_shift_too_large:
  ------------------
  |  Branch (115:13): [True: 0, False: 10.7k]
  ------------------
  116|      0|                return "bigfloat shift count exceeds the supported range.";
  117|      0|            case cbor_errc::bigfloat_precision_overflow:
  ------------------
  |  Branch (117:13): [True: 0, False: 10.7k]
  ------------------
  118|      0|                return "bigfloat precision_overflow";
  119|      0|            case cbor_errc::bigfloat_decimal_exponent_overflow:
  ------------------
  |  Branch (119:13): [True: 0, False: 10.7k]
  ------------------
  120|      0|                return "bigfloat decimal exponent exceeds supported range";
  121|      0|            case cbor_errc::precison_must_be_positive:
  ------------------
  |  Branch (121:13): [True: 0, False: 10.7k]
  ------------------
  122|      0|                return "Precision must be positive.";
  123|      0|            case cbor_errc::bigfloat_invalid_rounding_carry:
  ------------------
  |  Branch (123:13): [True: 0, False: 10.7k]
  ------------------
  124|      0|                return "bigfloat decimal rounding produced an invalid carry.";
  125|      0|            case cbor_errc::bigfloat_decimal_scale_overflow:
  ------------------
  |  Branch (125:13): [True: 0, False: 10.7k]
  ------------------
  126|      0|                return "bigfloat decimal scale overflow.";
  127|    105|            case cbor_errc::expected_unsigned_integer:
  ------------------
  |  Branch (127:13): [True: 105, False: 10.6k]
  ------------------
  128|    105|                return "Expected an unsigned integer.";
  129|     39|            case cbor_errc::invalid_mdarray_header:
  ------------------
  |  Branch (129:13): [True: 39, False: 10.6k]
  ------------------
  130|     39|                return "Invalid multi-dimensional array header.";
  131|      4|            case cbor_errc::float128_not_supported:
  ------------------
  |  Branch (131:13): [True: 4, False: 10.7k]
  ------------------
  132|      4|                return "float128 typed array is not supported.";              
  133|      0|            case cbor_errc::length_too_large:
  ------------------
  |  Branch (133:13): [True: 0, False: 10.7k]
  ------------------
  134|      0|                return "The length of a text or byte string exceeds the payload limit.";              
  135|      0|            default:
  ------------------
  |  Branch (135:13): [True: 0, False: 10.7k]
  ------------------
  136|      0|                return "Unknown CBOR parser error";
  137|  10.7k|        }
  138|  10.7k|    }

_ZNK8jsoncons4cbor19cbor_options_common17max_nesting_depthEv:
   34|  15.8k|    {
   35|  15.8k|        return max_nesting_depth_;
   36|  15.8k|    }
_ZNK8jsoncons4cbor19cbor_options_common14max_dimensionsEv:
   38|  15.8k|    {
   39|  15.8k|        return max_dimensions_;
   40|  15.8k|    }
_ZNK8jsoncons4cbor19cbor_decode_options18bigfloat_precisionEv:
   54|  15.8k|    {
   55|  15.8k|        return bigfloat_precision_;
   56|  15.8k|    }
_ZN8jsoncons4cbor19cbor_decode_optionsC1Ev:
   48|  15.8k|    cbor_decode_options() = default;
_ZN8jsoncons4cbor19cbor_options_commonC2Ev:
   26|  15.8k|    cbor_options_common() = default;
_ZN8jsoncons4cbor19cbor_options_commonD2Ev:
   28|  15.8k|    virtual ~cbor_options_common() = default;

_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_13basic_istreamIcNS3_11char_traitsIcEEEEEEOT_RKNS0_19cbor_decode_optionsERKS7_:
  958|  15.8k|       : alloc_(alloc),
  959|  15.8k|         source_(std::forward<Sourceable>(source)),
  960|  15.8k|         max_nesting_depth_(options.max_nesting_depth()),
  961|  15.8k|         max_dimensions_(options.max_dimensions()),
  962|  15.8k|         bigfloat_precision_(options.bigfloat_precision()),
  963|  15.8k|         text_buffer_(alloc),
  964|  15.8k|         bytes_buffer_(alloc),
  965|  15.8k|         state_stack_(alloc),
  966|  15.8k|         stringref_map_stack_(alloc),
  967|  15.8k|         extents_(alloc)
  968|  15.8k|    {
  969|  15.8k|        state_stack_.emplace_back(parse_mode::root,0);
  970|  15.8k|    }
_ZN8jsoncons4cbor11parse_stateC2ENS0_10parse_modeEmb:
  788|  17.2M|        : mode(mode), length(length), pop_stringref_map_stack(pop_stringref_map_stack)
  789|  17.2M|    {
  790|  17.2M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringD2Ev:
  872|  11.1M|        ~mapped_string() = default;
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4lineEv:
 1068|  10.7k|    {
 1069|  10.7k|        return 0;
 1070|  10.7k|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE6columnEv:
 1073|  10.7k|    {
 1074|  10.7k|        return source_.position();
 1075|  10.7k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEED2Ev:
  977|  15.8k|    ~basic_cbor_parser() = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  985|  15.8k|    {
  986|  15.8k|        more_ = true;
  987|  15.8k|        done_ = false;
  988|  15.8k|        text_buffer_.clear();
  989|  15.8k|        bytes_buffer_.clear();
  990|  15.8k|        raw_tag_ = 0;
  991|  15.8k|        state_stack_.clear();
  992|  15.8k|        state_stack_.emplace_back(parse_mode::root,0);
  993|  15.8k|        stringref_map_stack_.clear();
  994|  15.8k|        nesting_depth_ = 0;
  995|  15.8k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1088|  15.8k|    {
 1089|   189M|        while (!done_ && more_)
  ------------------
  |  Branch (1089:16): [True: 189M, False: 5.16k]
  |  Branch (1089:26): [True: 189M, False: 49]
  ------------------
 1090|   189M|        {
 1091|   189M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (1091:21): [True: 189M, False: 0]
  ------------------
 1092|   189M|            {
 1093|  10.5k|                case parse_mode::multi_dim:
  ------------------
  |  Branch (1093:17): [True: 10.5k, False: 189M]
  ------------------
 1094|  10.5k|                {
 1095|  10.5k|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   67|  10.5k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 10.5k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1096|  10.5k|                    typed_array_stack_.pop_back();
 1097|  10.5k|                    state_stack_.pop_back();
 1098|  10.5k|                    break;
 1099|  10.5k|                }
 1100|  73.9M|                case parse_mode::typed_array:
  ------------------
  |  Branch (1100:17): [True: 73.9M, False: 115M]
  ------------------
 1101|  73.9M|                {
 1102|  73.9M|                    JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   67|  73.9M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 73.9M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1103|  73.9M|                    read_typed_array_item(visitor, ec);
 1104|  73.9M|                    auto iter = typed_array_stack_.back();
 1105|  73.9M|                    if (iter->done())
  ------------------
  |  Branch (1105:25): [True: 366k, False: 73.5M]
  ------------------
 1106|   366k|                    {
 1107|   366k|                        if (level() == mark_level_)
  ------------------
  |  Branch (1107:29): [True: 0, False: 366k]
  ------------------
 1108|      0|                        {
 1109|      0|                            more_ = false;
 1110|      0|                        }
 1111|   366k|                        if (!is_multi_dim())
  ------------------
  |  Branch (1111:29): [True: 357k, False: 8.86k]
  ------------------
 1112|   357k|                        {
 1113|   357k|                            typed_array_stack_.pop_back();
 1114|   357k|                        }
 1115|   366k|                        state_stack_.pop_back();
 1116|   366k|                    }
 1117|  73.9M|                    break;
 1118|  73.9M|                }
 1119|  20.0M|                case parse_mode::array:
  ------------------
  |  Branch (1119:17): [True: 20.0M, False: 169M]
  ------------------
 1120|  20.0M|                {
 1121|  20.0M|                    if (is_multi_dim())
  ------------------
  |  Branch (1121:25): [True: 5.28M, False: 14.7M]
  ------------------
 1122|  5.28M|                    {
 1123|  5.28M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   67|  5.28M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 5.28M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1124|  5.28M|                        auto iter = typed_array_stack_.back();
 1125|  5.28M|                        if (!iter->done())
  ------------------
  |  Branch (1125:29): [True: 5.28M, False: 1.26k]
  ------------------
 1126|  5.28M|                        {
 1127|  5.28M|                            iter->next(visitor, *this, ec);
 1128|  5.28M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.28M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 252, False: 5.28M]
  |  |  ------------------
  ------------------
 1129|    252|                            {
 1130|    252|                                return;
 1131|    252|                            }
 1132|  5.28M|                        }
 1133|  1.26k|                        else
 1134|  1.26k|                        {
 1135|  1.26k|                            if (iter->count() != state_stack_.back().length)
  ------------------
  |  Branch (1135:33): [True: 125, False: 1.14k]
  ------------------
 1136|    125|                            {
 1137|    125|                                ec = cbor_errc::invalid_mdarray;
 1138|    125|                                return;
 1139|    125|                            }
 1140|  1.14k|                            end_classical_array_storage(ec);
 1141|  1.14k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.14k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.14k]
  |  |  ------------------
  ------------------
 1142|      0|                            {
 1143|      0|                                return;
 1144|      0|                            }
 1145|  1.14k|                        }
 1146|  5.28M|                    }
 1147|  14.7M|                    else
 1148|  14.7M|                    {
 1149|  14.7M|                        if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (1149:29): [True: 6.06M, False: 8.68M]
  ------------------
 1150|  6.06M|                        {
 1151|  6.06M|                            ++state_stack_.back().index;
 1152|  6.06M|                            read_item(visitor, ec);
 1153|  6.06M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.06M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.63k, False: 6.06M]
  |  |  ------------------
  ------------------
 1154|  1.63k|                            {
 1155|  1.63k|                                return;
 1156|  1.63k|                            }
 1157|  6.06M|                        }
 1158|  8.68M|                        else
 1159|  8.68M|                        {
 1160|  8.68M|                            end_array(visitor, ec);
 1161|  8.68M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.68M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.68M]
  |  |  ------------------
  ------------------
 1162|      0|                            {
 1163|      0|                                return;
 1164|      0|                            }
 1165|  8.68M|                        }
 1166|  14.7M|                    }
 1167|  20.0M|                    break;
 1168|  20.0M|                }
 1169|  40.1M|                case parse_mode::indefinite_array:
  ------------------
  |  Branch (1169:17): [True: 40.1M, False: 149M]
  ------------------
 1170|  40.1M|                {
 1171|  40.1M|                    if (is_multi_dim()) 
  ------------------
  |  Branch (1171:25): [True: 12.9M, False: 27.1M]
  ------------------
 1172|  12.9M|                    {
 1173|  12.9M|                        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   67|  12.9M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 12.9M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1174|  12.9M|                        auto iter = typed_array_stack_.back();
 1175|  12.9M|                        if (!iter->done())
  ------------------
  |  Branch (1175:29): [True: 12.9M, False: 611]
  ------------------
 1176|  12.9M|                        {
 1177|  12.9M|                            iter->next(visitor, *this, ec);
 1178|  12.9M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 91, False: 12.9M]
  |  |  ------------------
  ------------------
 1179|     91|                            {
 1180|     91|                                return;
 1181|     91|                            }
 1182|  12.9M|                        }
 1183|    611|                        else
 1184|    611|                        {
 1185|    611|                            auto c = source_.peek();
 1186|    611|                            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|    611|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 607]
  |  |  ------------------
  ------------------
 1187|      4|                            {
 1188|      4|                                ec = cbor_errc::unexpected_eof;
 1189|      4|                                more_ = false;
 1190|      4|                                return;
 1191|      4|                            }
 1192|    607|                            if (c.value == 0xff)
  ------------------
  |  Branch (1192:33): [True: 586, False: 21]
  ------------------
 1193|    586|                            {
 1194|    586|                                source_.ignore(1);
 1195|    586|                            }
 1196|     21|                            else
 1197|     21|                            {
 1198|     21|                                ec = cbor_errc::invalid_mdarray;
 1199|     21|                                return;
 1200|     21|                            }
 1201|    586|                            end_classical_array_storage(ec);
 1202|    586|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    586|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 586]
  |  |  ------------------
  ------------------
 1203|      0|                            {
 1204|      0|                                return;
 1205|      0|                            }
 1206|    586|                        }
 1207|  12.9M|                    }
 1208|  27.1M|                    else
 1209|  27.1M|                    {
 1210|  27.1M|                        auto c = source_.peek();
 1211|  27.1M|                        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  27.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.01k, False: 27.1M]
  |  |  ------------------
  ------------------
 1212|  1.01k|                        {
 1213|  1.01k|                            ec = cbor_errc::unexpected_eof;
 1214|  1.01k|                            more_ = false;
 1215|  1.01k|                            return;
 1216|  1.01k|                        }
 1217|  27.1M|                        if (c.value == 0xff)
  ------------------
  |  Branch (1217:29): [True: 15.3k, False: 27.1M]
  ------------------
 1218|  15.3k|                        {
 1219|  15.3k|                            source_.ignore(1);
 1220|  15.3k|                            end_array(visitor, ec);
 1221|  15.3k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  15.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 15.3k]
  |  |  ------------------
  ------------------
 1222|      0|                            {
 1223|      0|                                return;
 1224|      0|                            }
 1225|  15.3k|                        }
 1226|  27.1M|                        else
 1227|  27.1M|                        {
 1228|  27.1M|                            read_item(visitor, ec);
 1229|  27.1M|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.1M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 511, False: 27.1M]
  |  |  ------------------
  ------------------
 1230|    511|                            {
 1231|    511|                                return;
 1232|    511|                            }
 1233|  27.1M|                        }
 1234|  27.1M|                    }
 1235|  40.1M|                    break;
 1236|  40.1M|                }
 1237|  40.1M|                case parse_mode::map_key:
  ------------------
  |  Branch (1237:17): [True: 9.20M, False: 180M]
  ------------------
 1238|  9.20M|                {
 1239|  9.20M|                    if (state_stack_.back().index < state_stack_.back().length)
  ------------------
  |  Branch (1239:25): [True: 1.27M, False: 7.92M]
  ------------------
 1240|  1.27M|                    {
 1241|  1.27M|                        ++state_stack_.back().index;
 1242|  1.27M|                        state_stack_.back().mode = parse_mode::map_value;
 1243|  1.27M|                        read_item(visitor, ec);
 1244|  1.27M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.27M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 995, False: 1.27M]
  |  |  ------------------
  ------------------
 1245|    995|                        {
 1246|    995|                            return;
 1247|    995|                        }
 1248|  1.27M|                    }
 1249|  7.92M|                    else
 1250|  7.92M|                    {
 1251|  7.92M|                        end_object(visitor, ec);
 1252|  7.92M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.92M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 7.92M]
  |  |  ------------------
  ------------------
 1253|      0|                        {
 1254|      0|                            return;
 1255|      0|                        }
 1256|  7.92M|                    }
 1257|  9.20M|                    break;
 1258|  9.20M|                }
 1259|  9.20M|                case parse_mode::map_value:
  ------------------
  |  Branch (1259:17): [True: 1.24M, False: 188M]
  ------------------
 1260|  1.24M|                {
 1261|  1.24M|                    state_stack_.back().mode = parse_mode::map_key;
 1262|  1.24M|                    read_item(visitor, ec);
 1263|  1.24M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.24M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.21k, False: 1.24M]
  |  |  ------------------
  ------------------
 1264|  1.21k|                    {
 1265|  1.21k|                        return;
 1266|  1.21k|                    }
 1267|  1.24M|                    break;
 1268|  1.24M|                }
 1269|  22.4M|                case parse_mode::indefinite_map_key:
  ------------------
  |  Branch (1269:17): [True: 22.4M, False: 166M]
  ------------------
 1270|  22.4M|                {
 1271|  22.4M|                    auto c = source_.peek();
 1272|  22.4M|                    if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  22.4M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 638, False: 22.4M]
  |  |  ------------------
  ------------------
 1273|    638|                    {
 1274|    638|                        ec = cbor_errc::unexpected_eof;
 1275|    638|                        more_ = false;
 1276|    638|                        return;
 1277|    638|                    }
 1278|  22.4M|                    if (c.value == 0xff)
  ------------------
  |  Branch (1278:25): [True: 27.4k, False: 22.3M]
  ------------------
 1279|  27.4k|                    {
 1280|  27.4k|                        source_.ignore(1);
 1281|  27.4k|                        end_object(visitor, ec);
 1282|  27.4k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 27.4k]
  |  |  ------------------
  ------------------
 1283|      0|                        {
 1284|      0|                            return;
 1285|      0|                        }
 1286|  27.4k|                    }
 1287|  22.3M|                    else
 1288|  22.3M|                    {
 1289|  22.3M|                        state_stack_.back().mode = parse_mode::indefinite_map_value;
 1290|  22.3M|                        read_item(visitor, ec);
 1291|  22.3M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  22.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 370, False: 22.3M]
  |  |  ------------------
  ------------------
 1292|    370|                        {
 1293|    370|                            return;
 1294|    370|                        }
 1295|  22.3M|                    }
 1296|  22.4M|                    break;
 1297|  22.4M|                }
 1298|  22.4M|                case parse_mode::indefinite_map_value:
  ------------------
  |  Branch (1298:17): [True: 22.3M, False: 166M]
  ------------------
 1299|  22.3M|                {
 1300|  22.3M|                    state_stack_.back().mode = parse_mode::indefinite_map_key;
 1301|  22.3M|                    read_item(visitor, ec);
 1302|  22.3M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  22.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.35k, False: 22.3M]
  |  |  ------------------
  ------------------
 1303|  1.35k|                    {
 1304|  1.35k|                        return;
 1305|  1.35k|                    }
 1306|  22.3M|                    break;
 1307|  22.3M|                }
 1308|  22.3M|                case parse_mode::root:
  ------------------
  |  Branch (1308:17): [True: 15.8k, False: 189M]
  ------------------
 1309|  15.8k|                {
 1310|  15.8k|                    state_stack_.back().mode = parse_mode::accept;
 1311|  15.8k|                    read_item(visitor, ec);
 1312|  15.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  15.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2.46k, False: 13.4k]
  |  |  ------------------
  ------------------
 1313|  2.46k|                    {
 1314|  2.46k|                        return;
 1315|  2.46k|                    }
 1316|  13.4k|                    break;
 1317|  15.8k|                }
 1318|  13.4k|                case parse_mode::accept:
  ------------------
  |  Branch (1318:17): [True: 5.16k, False: 189M]
  ------------------
 1319|  5.16k|                {
 1320|  5.16k|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   67|  5.16k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 5.16k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1321|  5.16k|                    state_stack_.clear();
 1322|  5.16k|                    more_ = false;
 1323|  5.16k|                    done_ = true;
 1324|  5.16k|                    visitor.flush();
 1325|  5.16k|                    break;
 1326|  5.16k|                }
 1327|   189M|            }
 1328|   189M|        }
 1329|  15.8k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_typed_array_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1332|  73.9M|    {
 1333|  73.9M|        JSONCONS_ASSERT(!typed_array_stack_.empty());
  ------------------
  |  |   67|  73.9M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 73.9M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1334|  73.9M|        auto iter = typed_array_stack_.back();
 1335|  73.9M|        if (!iter->done())
  ------------------
  |  Branch (1335:13): [True: 73.9M, False: 0]
  ------------------
 1336|  73.9M|        {
 1337|  73.9M|            iter->next(visitor, *this, ec);
 1338|  73.9M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  73.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 49, False: 73.9M]
  |  |  ------------------
  ------------------
 1339|     49|            {
 1340|     49|                more_ = false;
 1341|     49|                return;
 1342|     49|            }
 1343|  73.9M|            more_ = !cursor_mode_;
 1344|  73.9M|        }
 1345|  73.9M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5levelEv:
 1043|  17.0M|    {
 1044|  17.0M|        return static_cast<int>(state_stack_.size());
 1045|  17.0M|    }
_ZNK8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12is_multi_dimEv:
 1003|  60.5M|    {
 1004|  60.5M|        return state_stack_.size() >=2 && state_stack_[state_stack_.size()-2].mode == parse_mode::multi_dim;
  ------------------
  |  Branch (1004:16): [True: 60.5M, False: 0]
  |  Branch (1004:43): [True: 18.2M, False: 42.2M]
  ------------------
 1005|  60.5M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE27end_classical_array_storageERNS3_10error_codeE:
 1772|  1.72k|    {
 1773|  1.72k|        --nesting_depth_;
 1774|       |
 1775|  1.72k|        more_ = !cursor_mode_;
 1776|  1.72k|        if (level() == mark_level_)
  ------------------
  |  Branch (1776:13): [True: 0, False: 1.72k]
  ------------------
 1777|      0|        {
 1778|      0|            more_ = false;
 1779|      0|        }
 1780|  1.72k|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1780:13): [True: 383, False: 1.34k]
  ------------------
 1781|    383|        {
 1782|    383|            stringref_map_stack_.pop_back();
 1783|    383|        }
 1784|  1.72k|        state_stack_.pop_back();
 1785|  1.72k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_itemERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1348|  83.8M|    {
 1349|  83.8M|        read_tags(ec);
 1350|  83.8M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  83.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.91k, False: 83.8M]
  |  |  ------------------
  ------------------
 1351|  3.91k|        {
 1352|  3.91k|            return;
 1353|  3.91k|        }
 1354|  83.8M|        auto c = source_.peek();
 1355|  83.8M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  83.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 83.8M]
  |  |  ------------------
  ------------------
 1356|      0|        {
 1357|      0|            ec = cbor_errc::unexpected_eof;
 1358|      0|            more_ = false;
 1359|      0|            return;
 1360|      0|        }
 1361|  83.8M|        jsoncons::cbor::cbor_major_type major_type = get_major_type(c.value);
 1362|  83.8M|        uint8_t info = get_additional_info(c.value);
 1363|  83.8M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  83.9M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 252, False: 83.8M]
  |  |  |  Branch (79:50): [True: 108k, False: 83.6M]
  |  |  |  Branch (79:50): [True: 252, False: 108k]
  |  |  ------------------
  ------------------
 1364|    252|        {
 1365|    252|            ec = cbor_errc::reserved_additional_info;
 1366|    252|            more_ = false;
 1367|    252|            return;
 1368|    252|        }
 1369|       |
 1370|  83.8M|        switch (major_type)
 1371|  83.8M|        {
 1372|  34.7M|            case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (1372:13): [True: 34.7M, False: 49.0M]
  ------------------
 1373|  34.7M|            {
 1374|  34.7M|                source_.ignore(1);
 1375|  34.7M|                uint64_t val = read_unsigned_integer(info, ec);
 1376|  34.7M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  34.7M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 82, False: 34.7M]
  |  |  ------------------
  ------------------
 1377|     82|                {
 1378|     82|                    return;
 1379|     82|                }
 1380|  34.7M|                if (!stringref_map_stack_.empty() && other_tags_[stringref_tag])
  ------------------
  |  Branch (1380:21): [True: 5.76M, False: 28.9M]
  |  Branch (1380:21): [True: 168k, False: 34.5M]
  |  Branch (1380:54): [True: 168k, False: 5.59M]
  ------------------
 1381|   168k|                {
 1382|   168k|                    other_tags_[stringref_tag] = false;
 1383|   168k|                    if (val >= stringref_map_stack_.back().size())
  ------------------
  |  Branch (1383:25): [True: 59, False: 168k]
  ------------------
 1384|     59|                    {
 1385|     59|                        ec = cbor_errc::stringref_too_large;
 1386|     59|                        more_ = false;
 1387|     59|                        return;
 1388|     59|                    }
 1389|   168k|                    auto index = static_cast<typename stringref_map::size_type>(val);
 1390|   168k|                    if (index != val)
  ------------------
  |  Branch (1390:25): [True: 0, False: 168k]
  ------------------
 1391|      0|                    {
 1392|      0|                        ec = cbor_errc::number_too_large;
 1393|      0|                        more_ = false;
 1394|      0|                        return;
 1395|      0|                    }
 1396|   168k|                    auto& str = stringref_map_stack_.back().at(index);
 1397|   168k|                    switch (str.type)
 1398|   168k|                    {
 1399|  3.02k|                        case jsoncons::cbor::cbor_major_type::text_string:
  ------------------
  |  Branch (1399:25): [True: 3.02k, False: 165k]
  ------------------
 1400|  3.02k|                        {
 1401|  3.02k|                            handle_string(visitor, jsoncons::string_view(str.str.data(),str.str.length()),ec);
 1402|  3.02k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.02k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.02k]
  |  |  ------------------
  ------------------
 1403|      0|                            {
 1404|      0|                                return;
 1405|      0|                            }
 1406|  3.02k|                            break;
 1407|  3.02k|                        }
 1408|   165k|                        case jsoncons::cbor::cbor_major_type::byte_string:
  ------------------
  |  Branch (1408:25): [True: 165k, False: 3.02k]
  ------------------
 1409|   165k|                        {
 1410|   165k|                            read_byte_string_from_buffer read(byte_string_view(str.bytes));
 1411|   165k|                            read_byte_string(read, visitor, ec);
 1412|   165k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   165k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 165k]
  |  |  ------------------
  ------------------
 1413|      2|                            {
 1414|      2|                                return;
 1415|      2|                            }
 1416|   165k|                            break;
 1417|   165k|                        }
 1418|   165k|                        default:
  ------------------
  |  Branch (1418:25): [True: 0, False: 168k]
  ------------------
 1419|      0|                        {
 1420|      0|                            ec = cbor_errc::invalid_major_type;
 1421|      0|                            more_ = false;
 1422|      0|                            return;
 1423|   165k|                        }
 1424|   168k|                    }
 1425|   168k|                }
 1426|  34.5M|                else
 1427|  34.5M|                {
 1428|  34.5M|                    semantic_tag tag = semantic_tag::none;
 1429|  34.5M|                    if (other_tags_[item_tag])
  ------------------
  |  Branch (1429:25): [True: 110k, False: 34.4M]
  ------------------
 1430|   110k|                    {
 1431|   110k|                        if (raw_tag_ == 1)
  ------------------
  |  Branch (1431:29): [True: 894, False: 109k]
  ------------------
 1432|    894|                        {
 1433|    894|                            tag = semantic_tag::epoch_second;
 1434|    894|                        }
 1435|   110k|                        other_tags_[item_tag] = false;
 1436|   110k|                    }
 1437|  34.5M|                    visitor.uint64_value(val, tag, *this, ec);
 1438|  34.5M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  34.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 34.5M]
  |  |  ------------------
  ------------------
 1439|      0|                    {
 1440|      0|                        return;
 1441|      0|                    }
 1442|  34.5M|                    more_ = !cursor_mode_;
 1443|  34.5M|                }
 1444|  34.7M|                break;
 1445|  34.7M|            }
 1446|  34.7M|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (1446:13): [True: 9.01M, False: 74.7M]
  ------------------
 1447|  9.01M|            {
 1448|  9.01M|                source_.ignore(1);
 1449|  9.01M|                read_negative_integer (info, visitor, ec);
 1450|  9.01M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.01M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 87, False: 9.01M]
  |  |  ------------------
  ------------------
 1451|     87|                {
 1452|     87|                    return;
 1453|     87|                }
 1454|  9.01M|                break;
 1455|  9.01M|            }
 1456|  12.0M|            case jsoncons::cbor::cbor_major_type::byte_string:
  ------------------
  |  Branch (1456:13): [True: 12.0M, False: 71.7M]
  ------------------
 1457|  12.0M|            {
 1458|  12.0M|                read_byte_string_from_source read(this);
 1459|  12.0M|                read_byte_string(read, visitor, ec);
 1460|  12.0M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.0M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.00k, False: 12.0M]
  |  |  ------------------
  ------------------
 1461|  1.00k|                {
 1462|  1.00k|                    return;
 1463|  1.00k|                }
 1464|  12.0M|                break;
 1465|  12.0M|            }
 1466|  12.0M|            case jsoncons::cbor::cbor_major_type::text_string:
  ------------------
  |  Branch (1466:13): [True: 1.71M, False: 82.0M]
  ------------------
 1467|  1.71M|            {
 1468|  1.71M|                source_.ignore(1);
 1469|  1.71M|                auto sv = read_text_string_view(info, ec);
 1470|  1.71M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.71M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 656, False: 1.71M]
  |  |  ------------------
  ------------------
 1471|    656|                {
 1472|    656|                    return;
 1473|    656|                }
 1474|  1.71M|                auto result = unicode_traits::validate(sv.data(),sv.size());
 1475|  1.71M|                if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (1475:21): [True: 234, False: 1.71M]
  ------------------
 1476|    234|                {
 1477|    234|                    ec = cbor_errc::invalid_utf8;
 1478|    234|                    more_ = false;
 1479|    234|                    return;
 1480|    234|                }
 1481|  1.71M|                handle_string(visitor, sv, ec);
 1482|  1.71M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.71M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.71M]
  |  |  ------------------
  ------------------
 1483|      0|                {
 1484|      0|                    return;
 1485|      0|                }
 1486|  1.71M|                break;
 1487|  1.71M|            }
 1488|  1.71M|            case jsoncons::cbor::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (1488:13): [True: 0, False: 83.8M]
  ------------------
 1489|      0|            {
 1490|      0|                JSONCONS_UNREACHABLE();
  ------------------
  |  |   80|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1491|      0|                break;
 1492|  1.71M|            }
 1493|  8.87M|            case jsoncons::cbor::cbor_major_type::simple:
  ------------------
  |  Branch (1493:13): [True: 8.87M, False: 74.9M]
  ------------------
 1494|  8.87M|            {
 1495|  8.87M|                switch (info)
 1496|  8.87M|                {
 1497|  3.61M|                    case 0x14:
  ------------------
  |  Branch (1497:21): [True: 3.61M, False: 5.25M]
  ------------------
 1498|  3.61M|                        source_.ignore(1);
 1499|  3.61M|                        visitor.bool_value(false, semantic_tag::none, *this, ec);
 1500|  3.61M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.61M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.61M]
  |  |  ------------------
  ------------------
 1501|      0|                        {
 1502|      0|                            return;
 1503|      0|                        }
 1504|  3.61M|                        more_ = !cursor_mode_;
 1505|  3.61M|                        break;
 1506|  1.46M|                    case 0x15:
  ------------------
  |  Branch (1506:21): [True: 1.46M, False: 7.40M]
  ------------------
 1507|  1.46M|                        source_.ignore(1);
 1508|  1.46M|                        visitor.bool_value(true, semantic_tag::none, *this, ec);
 1509|  1.46M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.46M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.46M]
  |  |  ------------------
  ------------------
 1510|      0|                        {
 1511|      0|                            return;
 1512|      0|                        }
 1513|  1.46M|                        more_ = !cursor_mode_;
 1514|  1.46M|                        break;
 1515|  16.8k|                    case 0x16:
  ------------------
  |  Branch (1515:21): [True: 16.8k, False: 8.85M]
  ------------------
 1516|  16.8k|                        source_.ignore(1);
 1517|  16.8k|                        visitor.null_value(semantic_tag::none, *this, ec);
 1518|  16.8k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  16.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 16.8k]
  |  |  ------------------
  ------------------
 1519|      0|                        {
 1520|      0|                            return;
 1521|      0|                        }
 1522|  16.8k|                        more_ = !cursor_mode_;
 1523|  16.8k|                        break;
 1524|  3.16M|                    case 0x17:
  ------------------
  |  Branch (1524:21): [True: 3.16M, False: 5.70M]
  ------------------
 1525|  3.16M|                        source_.ignore(1);
 1526|  3.16M|                        visitor.null_value(semantic_tag::undefined, *this, ec);
 1527|  3.16M|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.16M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.16M]
  |  |  ------------------
  ------------------
 1528|      0|                        {
 1529|      0|                            return;
 1530|      0|                        }
 1531|  3.16M|                        more_ = !cursor_mode_;
 1532|  3.16M|                        break;
 1533|   495k|                    case 0x19: // Half-Precision Float (two-byte IEEE 754)
  ------------------
  |  Branch (1533:21): [True: 495k, False: 8.37M]
  ------------------
 1534|   495k|                    {
 1535|   495k|                        source_.ignore(1);
 1536|   495k|                        uint64_t val = read_unsigned_integer(info, ec);
 1537|   495k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   495k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 31, False: 495k]
  |  |  ------------------
  ------------------
 1538|     31|                        {
 1539|     31|                            return;
 1540|     31|                        }
 1541|   495k|                        visitor.half_value(static_cast<uint16_t>(val), semantic_tag::none, *this, ec);
 1542|   495k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   495k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 495k]
  |  |  ------------------
  ------------------
 1543|      0|                        {
 1544|      0|                            return;
 1545|      0|                        }
 1546|   495k|                        more_ = !cursor_mode_;
 1547|   495k|                        break;
 1548|   495k|                    }
 1549|  96.2k|                    case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (1549:21): [True: 96.2k, False: 8.77M]
  ------------------
 1550|   110k|                    case 0x1b: // Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (1550:21): [True: 14.1k, False: 8.85M]
  ------------------
 1551|   110k|                    {
 1552|   110k|                        source_.ignore(1);
 1553|   110k|                        double val = read_double(info, ec);
 1554|   110k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   110k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 75, False: 110k]
  |  |  ------------------
  ------------------
 1555|     75|                        {
 1556|     75|                            return;
 1557|     75|                        }
 1558|   110k|                        semantic_tag tag = semantic_tag::none;
 1559|   110k|                        if (other_tags_[item_tag])
  ------------------
  |  Branch (1559:29): [True: 1.50k, False: 108k]
  ------------------
 1560|  1.50k|                        {
 1561|  1.50k|                            if (raw_tag_ == 1)
  ------------------
  |  Branch (1561:33): [True: 235, False: 1.26k]
  ------------------
 1562|    235|                            {
 1563|    235|                                tag = semantic_tag::epoch_second;
 1564|    235|                            }
 1565|  1.50k|                            other_tags_[item_tag] = false;
 1566|  1.50k|                        }
 1567|   110k|                        visitor.double_value(val, tag, *this, ec);
 1568|   110k|                        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   110k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 110k]
  |  |  ------------------
  ------------------
 1569|      0|                        {
 1570|      0|                            return;
 1571|      0|                        }
 1572|   110k|                        more_ = !cursor_mode_;
 1573|   110k|                        break;
 1574|   110k|                    }
 1575|    625|                    default:
  ------------------
  |  Branch (1575:21): [True: 625, False: 8.87M]
  ------------------
 1576|    625|                    {
 1577|    625|                        ec = cbor_errc::unknown_type;
 1578|    625|                        more_ = false;
 1579|    625|                        return;
 1580|   110k|                    }
 1581|  8.87M|                }
 1582|  8.86M|                break;
 1583|  8.87M|            }
 1584|  9.36M|            case jsoncons::cbor::cbor_major_type::array:
  ------------------
  |  Branch (1584:13): [True: 9.36M, False: 74.4M]
  ------------------
 1585|  9.36M|            {
 1586|  9.36M|                if (other_tags_[item_tag])
  ------------------
  |  Branch (1586:21): [True: 630k, False: 8.73M]
  ------------------
 1587|   630k|                {
 1588|   630k|                    switch (raw_tag_)
 1589|   630k|                    {
 1590|   265k|                        case 0x04:
  ------------------
  |  Branch (1590:25): [True: 265k, False: 365k]
  ------------------
 1591|   265k|                            source_.ignore(1);
 1592|   265k|                            text_buffer_.clear();
 1593|   265k|                            read_bigdecimal(info, text_buffer_, ec);
 1594|   265k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   265k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 293, False: 265k]
  |  |  ------------------
  ------------------
 1595|    293|                            {
 1596|    293|                                return;
 1597|    293|                            }
 1598|   265k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
 1599|   265k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   265k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 265k]
  |  |  ------------------
  ------------------
 1600|      0|                            {
 1601|      0|                                return;
 1602|      0|                            }
 1603|   265k|                            more_ = !cursor_mode_;
 1604|   265k|                            break;
 1605|   321k|                        case 0x05:
  ------------------
  |  Branch (1605:25): [True: 321k, False: 309k]
  ------------------
 1606|   321k|                            source_.ignore(1);
 1607|   321k|                            text_buffer_.clear();
 1608|   321k|                            read_bigfloat(info, text_buffer_, ec);
 1609|   321k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   321k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 497, False: 320k]
  |  |  ------------------
  ------------------
 1610|    497|                            {
 1611|    497|                                return;
 1612|    497|                            }
 1613|   320k|                            visitor.string_value(text_buffer_, semantic_tag::bigdec, *this, ec);
 1614|   320k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   320k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 320k]
  |  |  ------------------
  ------------------
 1615|      0|                            {
 1616|      0|                                return;
 1617|      0|                            }
 1618|   320k|                            more_ = !cursor_mode_;
 1619|   320k|                            break;
 1620|  9.33k|                        case 40: // row-major storage
  ------------------
  |  Branch (1620:25): [True: 9.33k, False: 621k]
  ------------------
 1621|  9.33k|                            order_ = mdarray_order::row_major;
 1622|  9.33k|                            read_mdarray_header(visitor, ec);
 1623|  9.33k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.33k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 839, False: 8.49k]
  |  |  ------------------
  ------------------
 1624|    839|                            {
 1625|    839|                                return;
 1626|    839|                            }
 1627|  8.49k|                            break;
 1628|  8.49k|                        case 1040: // column-major storage
  ------------------
  |  Branch (1628:25): [True: 6.74k, False: 623k]
  ------------------
 1629|  6.74k|                            order_ = mdarray_order::column_major;
 1630|  6.74k|                            read_mdarray_header(visitor, ec);
 1631|  6.74k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  6.74k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 155, False: 6.59k]
  |  |  ------------------
  ------------------
 1632|    155|                            {
 1633|    155|                                return;
 1634|    155|                            }
 1635|  6.59k|                            break;
 1636|  27.9k|                        default:
  ------------------
  |  Branch (1636:25): [True: 27.9k, False: 602k]
  ------------------
 1637|  27.9k|                            source_.ignore(1);
 1638|  27.9k|                            begin_array(info, visitor, ec);
 1639|  27.9k|                            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  27.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 29, False: 27.9k]
  |  |  ------------------
  ------------------
 1640|     29|                            {
 1641|     29|                                return;
 1642|     29|                            }
 1643|  27.9k|                            break;
 1644|   630k|                    }
 1645|   628k|                    other_tags_[item_tag] = false;
 1646|   628k|                }
 1647|  8.73M|                else
 1648|  8.73M|                {
 1649|  8.73M|                    source_.ignore(1);
 1650|  8.73M|                    begin_array(info, visitor, ec);
 1651|  8.73M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.73M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 19, False: 8.73M]
  |  |  ------------------
  ------------------
 1652|     19|                    {
 1653|     19|                        return;
 1654|     19|                    }
 1655|  8.73M|                }
 1656|  9.36M|                break;
 1657|  9.36M|            }
 1658|  9.36M|            case jsoncons::cbor::cbor_major_type::map:
  ------------------
  |  Branch (1658:13): [True: 8.03M, False: 75.7M]
  ------------------
 1659|  8.03M|            {
 1660|  8.03M|                source_.ignore(1);
 1661|  8.03M|                begin_object(info, visitor, ec);
 1662|  8.03M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.03M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 23, False: 8.03M]
  |  |  ------------------
  ------------------
 1663|     23|                {
 1664|     23|                    return;
 1665|     23|                }
 1666|  8.03M|                break;
 1667|  8.03M|            }
 1668|  8.03M|            default:
  ------------------
  |  Branch (1668:13): [True: 0, False: 83.8M]
  ------------------
 1669|      0|                ec = cbor_errc::invalid_major_type;
 1670|      0|                more_ = false;
 1671|      0|                return;
 1672|  83.8M|        }
 1673|  83.7M|        other_tags_[item_tag] = false;
 1674|  83.7M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_tagsERNS3_10error_codeE:
 2821|  83.8M|    {
 2822|  83.8M|        auto c = source_.peek();
 2823|  83.8M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  83.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.45k, False: 83.8M]
  |  |  ------------------
  ------------------
 2824|  3.45k|        {
 2825|  3.45k|            ec = cbor_errc::unexpected_eof;
 2826|  3.45k|            more_ = false;
 2827|  3.45k|            return;
 2828|  3.45k|        }
 2829|  83.8M|        jsoncons::cbor::cbor_major_type major_type = get_major_type(c.value);
 2830|       |
 2831|  88.2M|        while (major_type == jsoncons::cbor::cbor_major_type::semantic_tag)
  ------------------
  |  Branch (2831:16): [True: 4.38M, False: 83.8M]
  ------------------
 2832|  4.38M|        {
 2833|  4.38M|            uint8_t info = get_additional_info(c.value);
 2834|  4.38M|            if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  4.38M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 17, False: 4.38M]
  |  |  |  Branch (79:50): [True: 30, False: 4.38M]
  |  |  |  Branch (79:50): [True: 17, False: 13]
  |  |  ------------------
  ------------------
 2835|     17|            {
 2836|     17|                ec = cbor_errc::reserved_additional_info;
 2837|     17|                more_ = false;
 2838|     17|                return;
 2839|     17|            }
 2840|  4.38M|            source_.ignore(1);
 2841|  4.38M|            uint64_t val = read_unsigned_integer(info, ec);
 2842|  4.38M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.38M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 139, False: 4.38M]
  |  |  ------------------
  ------------------
 2843|    139|            {
 2844|    139|                return;
 2845|    139|            }
 2846|  4.38M|            switch(val)
 2847|  4.38M|            {
 2848|   221k|                case 25: // stringref
  ------------------
  |  Branch (2848:17): [True: 221k, False: 4.16M]
  ------------------
 2849|   221k|                    other_tags_[stringref_tag] = true;
 2850|   221k|                    break;
 2851|  11.9k|                case 256: // stringref-namespace
  ------------------
  |  Branch (2851:17): [True: 11.9k, False: 4.37M]
  ------------------
 2852|  11.9k|                    other_tags_[stringref_namespace_tag] = true;
 2853|  11.9k|                    break;
 2854|  4.15M|                default:
  ------------------
  |  Branch (2854:17): [True: 4.15M, False: 233k]
  ------------------
 2855|  4.15M|                    other_tags_[item_tag] = true;
 2856|  4.15M|                    raw_tag_ = val;
 2857|  4.15M|                    break;
 2858|  4.38M|            }
 2859|  4.38M|            c = source_.peek();
 2860|  4.38M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  4.38M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 342, False: 4.38M]
  |  |  ------------------
  ------------------
 2861|    342|            {
 2862|    342|                ec = cbor_errc::unexpected_eof;
 2863|    342|                more_ = false;
 2864|    342|                return;
 2865|    342|            }
 2866|  4.38M|            major_type = get_major_type(c.value);
 2867|  4.38M|        }
 2868|  83.8M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_unsigned_integerEhRNS3_10error_codeE:
 2351|  76.2M|    {
 2352|  76.2M|        switch (info)
 2353|  76.2M|        {
 2354|  74.8M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  74.8M|    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.35M, False: 74.8M]
  |  |  |  Branch (18:20): [True: 935k, False: 75.2M]
  |  |  |  Branch (18:30): [True: 80.3k, False: 76.1M]
  |  |  |  Branch (18:40): [True: 454k, False: 75.7M]
  |  |  |  Branch (18:50): [True: 4.47M, False: 71.7M]
  |  |  |  Branch (18:60): [True: 1.11M, False: 75.0M]
  |  |  |  Branch (18:70): [True: 61.7k, False: 76.1M]
  |  |  |  Branch (18:80): [True: 62.2k, False: 76.1M]
  |  |  |  Branch (18:90): [True: 432k, False: 75.7M]
  |  |  |  Branch (18:100): [True: 1.22M, False: 74.9M]
  |  |  |  Branch (18:110): [True: 1.33M, False: 74.8M]
  |  |  |  Branch (18:120): [True: 17.7k, False: 76.1M]
  |  |  |  Branch (18:130): [True: 16.8k, False: 76.1M]
  |  |  |  Branch (18:140): [True: 24.8k, False: 76.1M]
  |  |  |  Branch (18:150): [True: 383k, False: 75.8M]
  |  |  |  Branch (18:160): [True: 340k, False: 75.8M]
  |  |  |  Branch (18:170): [True: 171k, False: 76.0M]
  |  |  |  Branch (18:180): [True: 67.6k, False: 76.1M]
  |  |  |  Branch (18:190): [True: 9.27k, False: 76.2M]
  |  |  |  Branch (18:200): [True: 20.1k, False: 76.1M]
  |  |  |  Branch (18:210): [True: 176k, False: 76.0M]
  |  |  |  Branch (18:220): [True: 32.9k, False: 76.1M]
  |  |  ------------------
  ------------------
  |  Branch (2354:13): [True: 62.0M, False: 14.1M]
  ------------------
 2355|  74.8M|            {
 2356|  74.8M|                return info;
 2357|  1.57G|            }
 2358|   730k|            case 0x18: // Unsigned integer (one-byte uint8_t follows)
  ------------------
  |  Branch (2358:13): [True: 730k, False: 75.4M]
  ------------------
 2359|   730k|            {
 2360|   730k|                uint8_t b;
 2361|   730k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2361:21): [True: 108, False: 730k]
  ------------------
 2362|    108|                {
 2363|    108|                    ec = cbor_errc::unexpected_eof;
 2364|    108|                    return uint64_t{};
 2365|    108|                }
 2366|   730k|                return b;
 2367|   730k|            }
 2368|   555k|            case 0x19: // Unsigned integer (two-byte uint16_t follows)
  ------------------
  |  Branch (2368:13): [True: 555k, False: 75.6M]
  ------------------
 2369|   555k|            {
 2370|   555k|                uint8_t buf[sizeof(uint16_t)];
 2371|   555k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (2371:21): [True: 107, False: 555k]
  ------------------
 2372|    107|                {
 2373|    107|                    ec = cbor_errc::unexpected_eof;
 2374|    107|                    return uint64_t{};
 2375|    107|                }
 2376|   555k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 2377|   555k|                return u;
 2378|   555k|            }
 2379|  7.29k|            case 0x1a: // Unsigned integer (four-byte uint32_t follows)
  ------------------
  |  Branch (2379:13): [True: 7.29k, False: 76.2M]
  ------------------
 2380|  7.29k|            {
 2381|  7.29k|                uint8_t buf[sizeof(uint32_t)];
 2382|  7.29k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (2382:21): [True: 50, False: 7.24k]
  ------------------
 2383|     50|                {
 2384|     50|                    ec = cbor_errc::unexpected_eof;
 2385|     50|                    return uint64_t{};
 2386|     50|                }
 2387|  7.24k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 2388|  7.24k|                return u;
 2389|  7.29k|            }
 2390|  23.8k|            case 0x1b: // Unsigned integer (eight-byte uint64_t follows)
  ------------------
  |  Branch (2390:13): [True: 23.8k, False: 76.1M]
  ------------------
 2391|  23.8k|            {
 2392|  23.8k|                uint8_t buf[sizeof(uint64_t)];
 2393|  23.8k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (2393:21): [True: 84, False: 23.7k]
  ------------------
 2394|     84|                {
 2395|     84|                    ec = cbor_errc::unexpected_eof;
 2396|     84|                    return uint64_t{};
 2397|     84|                }
 2398|  23.7k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 2399|  23.7k|                return u;
 2400|  23.8k|            }
 2401|     43|            default:
  ------------------
  |  Branch (2401:13): [True: 43, False: 76.2M]
  ------------------
 2402|     43|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (2402:22): [True: 38, False: 5]
  ------------------
 2403|     43|                return uint64_t{};
 2404|  76.2M|        }
 2405|  76.2M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13handle_stringERNS_21basic_generic_visitorIcEERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS3_10error_codeE:
 2871|  1.71M|    {
 2872|  1.71M|        semantic_tag tag = semantic_tag::none;
 2873|  1.71M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2873:13): [True: 11.5k, False: 1.70M]
  ------------------
 2874|  11.5k|        {
 2875|  11.5k|            switch (raw_tag_)
 2876|  11.5k|            {
 2877|    745|                case 0:
  ------------------
  |  Branch (2877:17): [True: 745, False: 10.7k]
  ------------------
 2878|    745|                    tag = semantic_tag::datetime;
 2879|    745|                    break;
 2880|    348|                case 32:
  ------------------
  |  Branch (2880:17): [True: 348, False: 11.1k]
  ------------------
 2881|    348|                    tag = semantic_tag::uri;
 2882|    348|                    break;
 2883|  5.51k|                case 33:
  ------------------
  |  Branch (2883:17): [True: 5.51k, False: 6.01k]
  ------------------
 2884|  5.51k|                    tag = semantic_tag::base64url;
 2885|  5.51k|                    break;
 2886|  1.50k|                case 34:
  ------------------
  |  Branch (2886:17): [True: 1.50k, False: 10.0k]
  ------------------
 2887|  1.50k|                    tag = semantic_tag::base64;
 2888|  1.50k|                    break;
 2889|  3.41k|                default:
  ------------------
  |  Branch (2889:17): [True: 3.41k, False: 8.11k]
  ------------------
 2890|  3.41k|                    break;
 2891|  11.5k|            }
 2892|  11.5k|            other_tags_[item_tag] = false;
 2893|  11.5k|        }
 2894|  1.71M|        visitor.string_value(v, tag, *this, ec);
 2895|  1.71M|        more_ = !cursor_mode_;
 2896|  1.71M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferC2ERKNS_16byte_string_viewE:
  913|   165k|            : bytes(b)
  914|   165k|        {
  915|   165k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_bufferEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2913|   165k|    {
 2914|   165k|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2914:13): [True: 154k, False: 11.7k]
  ------------------
 2915|   154k|        {
 2916|   154k|            switch (raw_tag_)
 2917|   154k|            {
 2918|  1.71k|                case 0x2:
  ------------------
  |  Branch (2918:17): [True: 1.71k, False: 152k]
  ------------------
 2919|  1.71k|                {
 2920|  1.71k|                    auto bytes = read.view(ec);
 2921|  1.71k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.71k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.71k]
  |  |  ------------------
  ------------------
 2922|      0|                    {
 2923|      0|                        more_ = false;
 2924|      0|                        return;
 2925|      0|                    }
 2926|  1.71k|                    bigint b;
 2927|  1.71k|                    bigint::from_sign_magnitude(false, bytes.data(), bytes.size(), b);
 2928|  1.71k|                    text_buffer_.clear();
 2929|  1.71k|                    b.append_to_string(text_buffer_);
 2930|  1.71k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2931|  1.71k|                    more_ = !cursor_mode_;
 2932|  1.71k|                    break;
 2933|  1.71k|                }
 2934|    826|                case 0x3:
  ------------------
  |  Branch (2934:17): [True: 826, False: 153k]
  ------------------
 2935|    826|                {
 2936|    826|                    auto bytes = read.view(ec);
 2937|    826|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    826|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 826]
  |  |  ------------------
  ------------------
 2938|      0|                    {
 2939|      0|                        more_ = false;
 2940|      0|                        return;
 2941|      0|                    }
 2942|    826|                    bigint b;
 2943|    826|                    bigint::from_sign_magnitude(false, bytes.data(), bytes.size(), b);
 2944|    826|                    b = -1 - b;
 2945|    826|                    text_buffer_.clear();
 2946|    826|                    b.append_to_string(text_buffer_);
 2947|    826|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2948|    826|                    more_ = !cursor_mode_;
 2949|    826|                    break;
 2950|    826|                }
 2951|    825|                case 0x15:
  ------------------
  |  Branch (2951:17): [True: 825, False: 153k]
  ------------------
 2952|  1.32k|                case 0x16:
  ------------------
  |  Branch (2952:17): [True: 498, False: 153k]
  ------------------
 2953|  1.60k|                case 0x17:
  ------------------
  |  Branch (2953:17): [True: 279, False: 153k]
  ------------------
 2954|  1.60k|                {
 2955|  1.60k|                    auto bytes = read.view(ec);
 2956|  1.60k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.60k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.60k]
  |  |  ------------------
  ------------------
 2957|      0|                    {
 2958|      0|                        more_ = false;
 2959|      0|                        return;
 2960|      0|                    }
 2961|  1.60k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2961:46): [True: 825, False: 777]
  ------------------
 2962|  1.60k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2962:27): [True: 498, False: 279]
  ------------------
 2963|    777|                        : semantic_tag::base16;
 2964|  1.60k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2965|  1.60k|                    more_ = !cursor_mode_;
 2966|  1.60k|                    break;
 2967|  1.60k|                }
 2968|    264|                case 0x40:
  ------------------
  |  Branch (2968:17): [True: 264, False: 153k]
  ------------------
 2969|    264|                {
 2970|    264|                    array_tag_ = typed_array_tags::uint8;
 2971|    264|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2972|    264|                    read(array_buffer, ec);
 2973|    264|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    264|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 264]
  |  |  ------------------
  ------------------
 2974|      0|                    {
 2975|      0|                        more_ = false;
 2976|      0|                        return;
 2977|      0|                    }
 2978|    264|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2979|    264|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2979:25): [True: 264, False: 0]
  |  Branch (2979:42): [True: 0, False: 264]
  ------------------
 2980|      0|                    {
 2981|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2981:29): [True: 0, False: 0]
  ------------------
 2982|      0|                        {
 2983|      0|                            ec = cbor_errc::bad_extents;
 2984|      0|                            more_ = false;
 2985|      0|                            return;
 2986|      0|                        }
 2987|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2988|      0|                            typed_array_tags::uint8, extents_, order_, max_dimensions_, alloc_);
 2989|      0|                        typed_array_stack_.push_back(iter);
 2990|      0|                        iter->next(visitor, *this, ec);
 2991|      0|                    }
 2992|    264|                    else
 2993|    264|                    {
 2994|    264|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2995|    264|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2996|    264|                        typed_array_stack_.push_back(iter);
 2997|    264|                        iter->next(visitor, *this, ec);
 2998|    264|                    }
 2999|    264|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3000|    264|                    more_ = !cursor_mode_;
 3001|    264|                    break;
 3002|    264|                }
 3003|    199|                case 0x44:
  ------------------
  |  Branch (3003:17): [True: 199, False: 153k]
  ------------------
 3004|    199|                {
 3005|    199|                    array_tag_ = typed_array_tags::uint8;
 3006|    199|                    typed_array_tag_ = semantic_tag::clamped;
 3007|    199|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3008|    199|                    read(array_buffer, ec);
 3009|    199|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    199|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 199]
  |  |  ------------------
  ------------------
 3010|      0|                    {
 3011|      0|                        more_ = false;
 3012|      0|                        return;
 3013|      0|                    }
 3014|    199|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 3015|    199|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3015:25): [True: 199, False: 0]
  |  Branch (3015:42): [True: 0, False: 199]
  ------------------
 3016|      0|                    {
 3017|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3017:29): [True: 0, False: 0]
  ------------------
 3018|      0|                        {
 3019|      0|                            ec = cbor_errc::bad_extents;
 3020|      0|                            more_ = false;
 3021|      0|                            return;
 3022|      0|                        }
 3023|      0|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3024|      0|                            typed_array_tags::uint8, extents_, order_, max_dimensions_, alloc_);
 3025|      0|                        typed_array_stack_.push_back(iter);
 3026|      0|                        iter->next(visitor, *this, ec);
 3027|      0|                    }
 3028|    199|                    else
 3029|    199|                    {
 3030|    199|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3031|    199|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 3032|    199|                        typed_array_stack_.push_back(iter);
 3033|    199|                        iter->next(visitor, *this, ec);
 3034|    199|                    }
 3035|    199|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3036|    199|                    more_ = !cursor_mode_;
 3037|    199|                    break;
 3038|    199|                }
 3039|    964|                case 0x41:
  ------------------
  |  Branch (3039:17): [True: 964, False: 153k]
  ------------------
 3040|  1.64k|                case 0x45:
  ------------------
  |  Branch (3040:17): [True: 681, False: 153k]
  ------------------
 3041|  1.64k|                {
 3042|  1.64k|                    array_tag_ = typed_array_tags::uint16;
 3043|  1.64k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3044|  1.64k|                    read(array_buffer, ec);
 3045|  1.64k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.64k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.64k]
  |  |  ------------------
  ------------------
 3046|      0|                    {
 3047|      0|                        more_ = false;
 3048|      0|                        return;
 3049|      0|                    }
 3050|  1.64k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3051|  1.64k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3052|  1.64k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 3053|  1.64k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3053:25): [True: 964, False: 681]
  ------------------
 3054|    964|                    {
 3055|   286k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3055:49): [True: 285k, False: 964]
  ------------------
 3056|   285k|                        {
 3057|   285k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 3058|   285k|                        }
 3059|    964|                    }
 3060|  1.64k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3060:25): [True: 1.64k, False: 0]
  |  Branch (3060:42): [True: 0, False: 1.64k]
  ------------------
 3061|      0|                    {
 3062|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3062:29): [True: 0, False: 0]
  ------------------
 3063|      0|                        {
 3064|      0|                            ec = cbor_errc::bad_extents;
 3065|      0|                            more_ = false;
 3066|      0|                            return;
 3067|      0|                        }
 3068|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3069|      0|                            typed_array_tags::uint16, extents_, order_, max_dimensions_, alloc_);
 3070|      0|                        typed_array_stack_.push_back(iter);
 3071|      0|                        iter->next(visitor, *this, ec);
 3072|      0|                    }
 3073|  1.64k|                    else
 3074|  1.64k|                    {
 3075|  1.64k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3076|  1.64k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 3077|  1.64k|                        typed_array_stack_.push_back(iter);
 3078|  1.64k|                        iter->next(visitor, *this, ec);
 3079|  1.64k|                    }
 3080|  1.64k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3081|  1.64k|                    more_ = !cursor_mode_;
 3082|  1.64k|                    break;
 3083|  1.64k|                }
 3084|    896|                case 0x42:
  ------------------
  |  Branch (3084:17): [True: 896, False: 153k]
  ------------------
 3085|  3.18k|                case 0x46:
  ------------------
  |  Branch (3085:17): [True: 2.28k, False: 151k]
  ------------------
 3086|  3.18k|                {
 3087|  3.18k|                    array_tag_ = typed_array_tags::uint32;
 3088|  3.18k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3089|  3.18k|                    read(array_buffer, ec);
 3090|  3.18k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.18k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.18k]
  |  |  ------------------
  ------------------
 3091|      0|                    {
 3092|      0|                        more_ = false;
 3093|      0|                        return;
 3094|      0|                    }
 3095|  3.18k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3096|  3.18k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 3097|  3.18k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 3098|  3.18k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3098:25): [True: 896, False: 2.28k]
  ------------------
 3099|    896|                    {
 3100|   206k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3100:49): [True: 205k, False: 896]
  ------------------
 3101|   205k|                        {
 3102|   205k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 3103|   205k|                        }
 3104|    896|                    }
 3105|  3.18k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3105:25): [True: 3.18k, False: 0]
  |  Branch (3105:42): [True: 0, False: 3.18k]
  ------------------
 3106|      0|                    {
 3107|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3107:29): [True: 0, False: 0]
  ------------------
 3108|      0|                        {
 3109|      0|                            ec = cbor_errc::bad_extents;
 3110|      0|                            more_ = false;
 3111|      0|                            return;
 3112|      0|                        }
 3113|      0|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3114|      0|                            typed_array_tags::uint32, extents_, order_, max_dimensions_, alloc_);
 3115|      0|                        typed_array_stack_.push_back(iter);
 3116|      0|                        iter->next(visitor, *this, ec);
 3117|      0|                    }
 3118|  3.18k|                    else
 3119|  3.18k|                    {
 3120|  3.18k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3121|  3.18k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 3122|  3.18k|                        typed_array_stack_.push_back(iter);
 3123|  3.18k|                        iter->next(visitor, *this, ec);
 3124|  3.18k|                    }
 3125|  3.18k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3126|  3.18k|                    more_ = !cursor_mode_;
 3127|  3.18k|                    break;
 3128|  3.18k|                }
 3129|    759|                case 0x43:
  ------------------
  |  Branch (3129:17): [True: 759, False: 153k]
  ------------------
 3130|  3.42k|                case 0x47:
  ------------------
  |  Branch (3130:17): [True: 2.66k, False: 151k]
  ------------------
 3131|  3.42k|                {
 3132|  3.42k|                    array_tag_ = typed_array_tags::uint64;
 3133|  3.42k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3134|  3.42k|                    read(array_buffer, ec);
 3135|  3.42k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.42k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.42k]
  |  |  ------------------
  ------------------
 3136|      0|                    {
 3137|      0|                        more_ = false;
 3138|      0|                        return;
 3139|      0|                    }
 3140|  3.42k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3141|  3.42k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3142|  3.42k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 3143|  3.42k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3143:25): [True: 759, False: 2.66k]
  ------------------
 3144|    759|                    {
 3145|  21.2k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3145:49): [True: 20.5k, False: 759]
  ------------------
 3146|  20.5k|                        {
 3147|  20.5k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 3148|  20.5k|                        }
 3149|    759|                    }
 3150|  3.42k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3150:25): [True: 3.42k, False: 0]
  |  Branch (3150:42): [True: 0, False: 3.42k]
  ------------------
 3151|      0|                    {
 3152|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3152:29): [True: 0, False: 0]
  ------------------
 3153|      0|                        {
 3154|      0|                            ec = cbor_errc::bad_extents;
 3155|      0|                            more_ = false;
 3156|      0|                            return;
 3157|      0|                        }
 3158|      0|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3159|      0|                            typed_array_tags::uint64, extents_, order_, max_dimensions_, alloc_);
 3160|      0|                        typed_array_stack_.push_back(iter);
 3161|      0|                        iter->next(visitor, *this, ec);
 3162|      0|                    }
 3163|  3.42k|                    else
 3164|  3.42k|                    {
 3165|  3.42k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3166|  3.42k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 3167|  3.42k|                        typed_array_stack_.push_back(iter);
 3168|  3.42k|                        iter->next(visitor, *this, ec);
 3169|  3.42k|                    }
 3170|  3.42k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3171|  3.42k|                    more_ = !cursor_mode_;
 3172|  3.42k|                    break;
 3173|  3.42k|                }
 3174|    295|                case 0x48:
  ------------------
  |  Branch (3174:17): [True: 295, False: 153k]
  ------------------
 3175|    295|                {
 3176|    295|                    array_tag_ = typed_array_tags::int8;
 3177|    295|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3178|    295|                    read(array_buffer, ec);
 3179|    295|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    295|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 295]
  |  |  ------------------
  ------------------
 3180|      0|                    {
 3181|      0|                        more_ = false;
 3182|      0|                        return;
 3183|      0|                    }
 3184|    295|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 3185|    295|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3185:25): [True: 295, False: 0]
  |  Branch (3185:42): [True: 0, False: 295]
  ------------------
 3186|      0|                    {
 3187|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3187:29): [True: 0, False: 0]
  ------------------
 3188|      0|                        {
 3189|      0|                            ec = cbor_errc::bad_extents;
 3190|      0|                            more_ = false;
 3191|      0|                            return;
 3192|      0|                        }
 3193|      0|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3194|      0|                            typed_array_tags::int8, extents_, order_, max_dimensions_, alloc_);
 3195|      0|                        typed_array_stack_.push_back(iter);
 3196|      0|                        iter->next(visitor, *this, ec);
 3197|      0|                    }
 3198|    295|                    else
 3199|    295|                    {
 3200|    295|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3201|    295|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 3202|    295|                        typed_array_stack_.push_back(iter);
 3203|    295|                        iter->next(visitor, *this, ec);
 3204|    295|                    }
 3205|    295|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3206|    295|                    more_ = !cursor_mode_;
 3207|    295|                    break;
 3208|    295|                }
 3209|  3.72k|                case 0x49:
  ------------------
  |  Branch (3209:17): [True: 3.72k, False: 150k]
  ------------------
 3210|  3.94k|                case 0x4d:
  ------------------
  |  Branch (3210:17): [True: 223, False: 153k]
  ------------------
 3211|  3.94k|                {
 3212|  3.94k|                    array_tag_ = typed_array_tags::int16;
 3213|  3.94k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3214|  3.94k|                    read(array_buffer, ec);
 3215|  3.94k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.94k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 3.94k]
  |  |  ------------------
  ------------------
 3216|      0|                    {
 3217|      0|                        more_ = false;
 3218|      0|                        return;
 3219|      0|                    }
 3220|  3.94k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3221|  3.94k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3222|  3.94k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 3223|  3.94k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3223:25): [True: 3.72k, False: 223]
  ------------------
 3224|  3.72k|                    {
 3225|  2.16M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3225:49): [True: 2.16M, False: 3.72k]
  ------------------
 3226|  2.16M|                        {
 3227|  2.16M|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 3228|  2.16M|                        }
 3229|  3.72k|                    }
 3230|  3.94k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3230:25): [True: 3.94k, False: 0]
  |  Branch (3230:42): [True: 0, False: 3.94k]
  ------------------
 3231|      0|                    {
 3232|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3232:29): [True: 0, False: 0]
  ------------------
 3233|      0|                        {
 3234|      0|                            ec = cbor_errc::bad_extents;
 3235|      0|                            more_ = false;
 3236|      0|                            return;
 3237|      0|                        }
 3238|      0|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3239|      0|                            typed_array_tags::int16, extents_, order_, max_dimensions_, alloc_);
 3240|      0|                        typed_array_stack_.push_back(iter);
 3241|      0|                        iter->next(visitor, *this, ec);
 3242|      0|                    }
 3243|  3.94k|                    else
 3244|  3.94k|                    {
 3245|  3.94k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3246|  3.94k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 3247|  3.94k|                        typed_array_stack_.push_back(iter);
 3248|  3.94k|                        iter->next(visitor, *this, ec);
 3249|  3.94k|                    }
 3250|  3.94k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3251|  3.94k|                    more_ = !cursor_mode_;
 3252|  3.94k|                    break;
 3253|  3.94k|                }
 3254|  1.91k|                case 0x4a:
  ------------------
  |  Branch (3254:17): [True: 1.91k, False: 152k]
  ------------------
 3255|  2.28k|                case 0x4e:
  ------------------
  |  Branch (3255:17): [True: 367, False: 153k]
  ------------------
 3256|  2.28k|                {
 3257|  2.28k|                    array_tag_ = typed_array_tags::int32;
 3258|  2.28k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3259|  2.28k|                    read(array_buffer, ec);
 3260|  2.28k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.28k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.28k]
  |  |  ------------------
  ------------------
 3261|      0|                    {
 3262|      0|                        more_ = false;
 3263|      0|                        return;
 3264|      0|                    }
 3265|  2.28k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3266|  2.28k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3267|  2.28k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 3268|  2.28k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3268:25): [True: 1.91k, False: 367]
  ------------------
 3269|  1.91k|                    {
 3270|   114k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3270:49): [True: 112k, False: 1.91k]
  ------------------
 3271|   112k|                        {
 3272|   112k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 3273|   112k|                        }
 3274|  1.91k|                    }
 3275|  2.28k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3275:25): [True: 2.28k, False: 0]
  |  Branch (3275:42): [True: 0, False: 2.28k]
  ------------------
 3276|      0|                    {
 3277|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3277:29): [True: 0, False: 0]
  ------------------
 3278|      0|                        {
 3279|      0|                            ec = cbor_errc::bad_extents;
 3280|      0|                            more_ = false;
 3281|      0|                            return;
 3282|      0|                        }
 3283|      0|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3284|      0|                            typed_array_tags::int32, extents_, order_, max_dimensions_, alloc_);
 3285|      0|                        typed_array_stack_.push_back(iter);
 3286|      0|                        iter->next(visitor, *this, ec);
 3287|      0|                    }
 3288|  2.28k|                    else
 3289|  2.28k|                    {
 3290|  2.28k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3291|  2.28k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 3292|  2.28k|                        typed_array_stack_.push_back(iter);
 3293|  2.28k|                        iter->next(visitor, *this, ec);
 3294|  2.28k|                    }
 3295|  2.28k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3296|  2.28k|                    more_ = !cursor_mode_;
 3297|  2.28k|                    break;
 3298|  2.28k|                }
 3299|  1.54k|                case 0x4b:
  ------------------
  |  Branch (3299:17): [True: 1.54k, False: 152k]
  ------------------
 3300|   123k|                case 0x4f:
  ------------------
  |  Branch (3300:17): [True: 122k, False: 31.6k]
  ------------------
 3301|   123k|                {
 3302|   123k|                    array_tag_ = typed_array_tags::int64;
 3303|   123k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3304|   123k|                    read(array_buffer, ec);
 3305|   123k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   123k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 123k]
  |  |  ------------------
  ------------------
 3306|      0|                    {
 3307|      0|                        more_ = false;
 3308|      0|                        return;
 3309|      0|                    }
 3310|   123k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3311|   123k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3312|   123k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 3313|   123k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3313:25): [True: 1.54k, False: 122k]
  ------------------
 3314|  1.54k|                    {
 3315|  4.06k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3315:49): [True: 2.52k, False: 1.54k]
  ------------------
 3316|  2.52k|                        {
 3317|  2.52k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 3318|  2.52k|                        }
 3319|  1.54k|                    }
 3320|   123k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3320:25): [True: 123k, False: 0]
  |  Branch (3320:42): [True: 0, False: 123k]
  ------------------
 3321|      0|                    {
 3322|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3322:29): [True: 0, False: 0]
  ------------------
 3323|      0|                        {
 3324|      0|                            ec = cbor_errc::bad_extents;
 3325|      0|                            more_ = false;
 3326|      0|                            return;
 3327|      0|                        }
 3328|      0|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3329|      0|                            typed_array_tags::int64, extents_, order_, max_dimensions_, alloc_);
 3330|      0|                        typed_array_stack_.push_back(iter);
 3331|      0|                        iter->next(visitor, *this, ec);
 3332|      0|                    }
 3333|   123k|                    else
 3334|   123k|                    {
 3335|   123k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3336|   123k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 3337|   123k|                        typed_array_stack_.push_back(iter);
 3338|   123k|                        iter->next(visitor, *this, ec);
 3339|   123k|                    }
 3340|   123k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3341|   123k|                    more_ = !cursor_mode_;
 3342|   123k|                    break;
 3343|   123k|                }
 3344|  3.35k|                case 0x50:
  ------------------
  |  Branch (3344:17): [True: 3.35k, False: 150k]
  ------------------
 3345|  4.26k|                case 0x54:
  ------------------
  |  Branch (3345:17): [True: 918, False: 153k]
  ------------------
 3346|  4.26k|                {
 3347|  4.26k|                    array_tag_ = typed_array_tags::half_float;
 3348|  4.26k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3349|  4.26k|                    read(array_buffer, ec);
 3350|  4.26k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.26k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 4.26k]
  |  |  ------------------
  ------------------
 3351|      0|                    {
 3352|      0|                        more_ = false;
 3353|      0|                        return;
 3354|      0|                    }
 3355|  4.26k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3356|  4.26k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3357|  4.26k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 3358|  4.26k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3358:25): [True: 3.35k, False: 918]
  ------------------
 3359|  3.35k|                    {
 3360|  2.64M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3360:49): [True: 2.64M, False: 3.35k]
  ------------------
 3361|  2.64M|                        {
 3362|  2.64M|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 3363|  2.64M|                        }
 3364|  3.35k|                    }
 3365|  4.26k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3365:25): [True: 4.26k, False: 0]
  |  Branch (3365:42): [True: 0, False: 4.26k]
  ------------------
 3366|      0|                    {
 3367|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3367:29): [True: 0, False: 0]
  ------------------
 3368|      0|                        {
 3369|      0|                            ec = cbor_errc::bad_extents;
 3370|      0|                            more_ = false;
 3371|      0|                            return;
 3372|      0|                        }
 3373|      0|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 3374|      0|                            typed_array_tags::half_float, extents_, order_, max_dimensions_, alloc_);
 3375|      0|                        typed_array_stack_.push_back(iter);
 3376|      0|                        iter->next(visitor, *this, ec);
 3377|      0|                    }
 3378|  4.26k|                    else
 3379|  4.26k|                    {
 3380|  4.26k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 3381|  4.26k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 3382|  4.26k|                        typed_array_stack_.push_back(iter);
 3383|  4.26k|                        iter->next(visitor, *this, ec);
 3384|  4.26k|                    }
 3385|  4.26k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3386|  4.26k|                    more_ = !cursor_mode_;
 3387|  4.26k|                    break;
 3388|  4.26k|                }
 3389|  2.32k|                case 0x51:
  ------------------
  |  Branch (3389:17): [True: 2.32k, False: 151k]
  ------------------
 3390|  2.97k|                case 0x55:
  ------------------
  |  Branch (3390:17): [True: 646, False: 153k]
  ------------------
 3391|  2.97k|                {
 3392|  2.97k|                    array_tag_ = typed_array_tags::float32;
 3393|  2.97k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3394|  2.97k|                    read(array_buffer, ec);
 3395|  2.97k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.97k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.97k]
  |  |  ------------------
  ------------------
 3396|      0|                    {
 3397|      0|                        more_ = false;
 3398|      0|                        return;
 3399|      0|                    }
 3400|  2.97k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3401|  2.97k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3402|  2.97k|                    auto ta = typed_array_cast<float>(array_buffer);
 3403|  2.97k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3403:25): [True: 2.32k, False: 646]
  ------------------
 3404|  2.32k|                    {
 3405|  1.15M|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3405:49): [True: 1.15M, False: 2.32k]
  ------------------
 3406|  1.15M|                        {
 3407|  1.15M|                            ta[i] = binary::byte_swap<float>(ta[i]);
 3408|  1.15M|                        }
 3409|  2.32k|                    }
 3410|  2.97k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3410:25): [True: 2.97k, False: 0]
  |  Branch (3410:42): [True: 0, False: 2.97k]
  ------------------
 3411|      0|                    {
 3412|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3412:29): [True: 0, False: 0]
  ------------------
 3413|      0|                        {
 3414|      0|                            ec = cbor_errc::bad_extents;
 3415|      0|                            more_ = false;
 3416|      0|                            return;
 3417|      0|                        }
 3418|      0|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3419|      0|                            typed_array_tags::float32, extents_, order_, max_dimensions_, alloc_);
 3420|      0|                        typed_array_stack_.push_back(iter);
 3421|      0|                        iter->next(visitor, *this, ec);
 3422|      0|                    }
 3423|  2.97k|                    else
 3424|  2.97k|                    {
 3425|  2.97k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3426|  2.97k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 3427|  2.97k|                        typed_array_stack_.push_back(iter);
 3428|  2.97k|                        iter->next(visitor, *this, ec);
 3429|  2.97k|                    }
 3430|  2.97k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3431|  2.97k|                    more_ = !cursor_mode_;
 3432|  2.97k|                    break;
 3433|  2.97k|                }
 3434|  1.22k|                case 0x52:
  ------------------
  |  Branch (3434:17): [True: 1.22k, False: 152k]
  ------------------
 3435|  1.92k|                case 0x56:
  ------------------
  |  Branch (3435:17): [True: 702, False: 153k]
  ------------------
 3436|  1.92k|                {
 3437|  1.92k|                    array_tag_ = typed_array_tags::float64;
 3438|  1.92k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3439|  1.92k|                    read(array_buffer, ec);
 3440|  1.92k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.92k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.92k]
  |  |  ------------------
  ------------------
 3441|      0|                    {
 3442|      0|                        more_ = false;
 3443|      0|                        return;
 3444|      0|                    }
 3445|  1.92k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3446|  1.92k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3447|  1.92k|                    auto ta = typed_array_cast<double>(array_buffer);
 3448|  1.92k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3448:25): [True: 1.22k, False: 702]
  ------------------
 3449|  1.22k|                    {
 3450|  41.4k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3450:49): [True: 40.2k, False: 1.22k]
  ------------------
 3451|  40.2k|                        {
 3452|  40.2k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 3453|  40.2k|                        }
 3454|  1.22k|                    }
 3455|  1.92k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3455:25): [True: 1.92k, False: 0]
  |  Branch (3455:42): [True: 0, False: 1.92k]
  ------------------
 3456|      0|                    {
 3457|      0|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3457:29): [True: 0, False: 0]
  ------------------
 3458|      0|                        {
 3459|      0|                            ec = cbor_errc::bad_extents;
 3460|      0|                            more_ = false;
 3461|      0|                            return;
 3462|      0|                        }
 3463|      0|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3464|      0|                            typed_array_tags::float64, extents_, order_, max_dimensions_, alloc_);
 3465|      0|                        typed_array_stack_.push_back(iter);
 3466|      0|                        iter->next(visitor, *this, ec);
 3467|      0|                    }
 3468|  1.92k|                    else
 3469|  1.92k|                    {
 3470|  1.92k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3471|  1.92k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 3472|  1.92k|                        typed_array_stack_.push_back(iter);
 3473|  1.92k|                        iter->next(visitor, *this, ec);
 3474|  1.92k|                    }
 3475|  1.92k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3476|  1.92k|                    more_ = !cursor_mode_;
 3477|  1.92k|                    break;
 3478|  1.92k|                }
 3479|      1|                case 0x53:
  ------------------
  |  Branch (3479:17): [True: 1, False: 154k]
  ------------------
 3480|      2|                case 0x57:
  ------------------
  |  Branch (3480:17): [True: 1, False: 154k]
  ------------------
 3481|      2|                {
 3482|      2|                    ec = cbor_errc::float128_not_supported;
 3483|      2|                    more_ = !cursor_mode_;
 3484|      2|                    return;
 3485|      1|                }
 3486|  1.56k|                default:
  ------------------
  |  Branch (3486:17): [True: 1.56k, False: 152k]
  ------------------
 3487|  1.56k|                {
 3488|  1.56k|                    auto bytes = read.view(ec);
 3489|  1.56k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.56k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.56k]
  |  |  ------------------
  ------------------
 3490|      0|                    {
 3491|      0|                        more_ = false;
 3492|      0|                        return;
 3493|      0|                    }
 3494|  1.56k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 3495|  1.56k|                    more_ = !cursor_mode_;
 3496|  1.56k|                    break;
 3497|  1.56k|                }
 3498|   154k|            }
 3499|   154k|            other_tags_[item_tag] = false;
 3500|   154k|        }
 3501|  11.7k|        else
 3502|  11.7k|        {
 3503|  11.7k|            auto bytes = read.view(ec);
 3504|  11.7k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  11.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 11.7k]
  |  |  ------------------
  ------------------
 3505|      0|            {
 3506|      0|                return;
 3507|      0|            }
 3508|  11.7k|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 3509|  11.7k|            more_ = !cursor_mode_;
 3510|  11.7k|        }
 3511|   165k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_buffer4viewERNS3_10error_codeE:
  928|  17.4k|        {
  929|  17.4k|            return bytes;
  930|  17.4k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_bufferclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  918|   148k|        {
  919|   148k|            c.clear();
  920|   148k|            c.reserve(bytes.size());
  921|   148k|            for (auto b : bytes)
  ------------------
  |  Branch (921:25): [True: 515M, False: 148k]
  ------------------
  922|   515M|            {
  923|   515M|                c.push_back(b);
  924|   515M|            }
  925|   148k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26get_typed_array_endiannessEh:
 2899|   357k|    {
 2900|   357k|        return ((tag & detail::cbor_array_tags_e_mask) >> detail::cbor_array_tags_e_shift) == 0 ? jsoncons::endian::big : jsoncons::endian::little; 
  ------------------
  |  Branch (2900:16): [True: 199k, False: 157k]
  ------------------
 2901|   357k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_negative_integerEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2246|  9.01M|    {
 2247|  9.01M|        semantic_tag tag = semantic_tag::none;
 2248|  9.01M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2248:13): [True: 21.2k, False: 8.99M]
  ------------------
 2249|  21.2k|        {
 2250|  21.2k|            if (raw_tag_ == 1)
  ------------------
  |  Branch (2250:17): [True: 300, False: 20.9k]
  ------------------
 2251|    300|            {
 2252|    300|                tag = semantic_tag::epoch_second;
 2253|    300|            }
 2254|  21.2k|            other_tags_[item_tag] = false;
 2255|  21.2k|        }
 2256|       |
 2257|  9.01M|        switch (info)
 2258|  9.01M|        {
 2259|  8.92M|            case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|  8.92M|    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.65M, False: 7.35M]
  |  |  |  Branch (18:20): [True: 19.3k, False: 8.99M]
  |  |  |  Branch (18:30): [True: 81.0k, False: 8.93M]
  |  |  |  Branch (18:40): [True: 25.2k, False: 8.98M]
  |  |  |  Branch (18:50): [True: 127k, False: 8.88M]
  |  |  |  Branch (18:60): [True: 7.47k, False: 9.00M]
  |  |  |  Branch (18:70): [True: 14.5k, False: 8.99M]
  |  |  |  Branch (18:80): [True: 942k, False: 8.06M]
  |  |  |  Branch (18:90): [True: 615k, False: 8.39M]
  |  |  |  Branch (18:100): [True: 7.79k, False: 9.00M]
  |  |  |  Branch (18:110): [True: 4.60k, False: 9.00M]
  |  |  |  Branch (18:120): [True: 5.10M, False: 3.90M]
  |  |  |  Branch (18:130): [True: 57.7k, False: 8.95M]
  |  |  |  Branch (18:140): [True: 25.0k, False: 8.98M]
  |  |  |  Branch (18:150): [True: 23.4k, False: 8.98M]
  |  |  |  Branch (18:160): [True: 27.8k, False: 8.98M]
  |  |  |  Branch (18:170): [True: 24.2k, False: 8.98M]
  |  |  |  Branch (18:180): [True: 53.8k, False: 8.95M]
  |  |  |  Branch (18:190): [True: 13.0k, False: 8.99M]
  |  |  |  Branch (18:200): [True: 14.2k, False: 8.99M]
  |  |  |  Branch (18:210): [True: 16.3k, False: 8.99M]
  |  |  |  Branch (18:220): [True: 23.6k, False: 8.98M]
  |  |  ------------------
  ------------------
  |  Branch (2259:13): [True: 23.7k, False: 8.98M]
  ------------------
 2260|  8.92M|            {
 2261|  8.92M|                int64_t val = static_cast<int8_t>(- 1 - info);
 2262|  8.92M|                visitor.int64_value(val, tag, *this, ec);
 2263|  8.92M|                more_ = !cursor_mode_;
 2264|  8.92M|                break;
 2265|   122M|            }
 2266|  54.6k|            case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (2266:13): [True: 54.6k, False: 8.95M]
  ------------------
 2267|  54.6k|            {
 2268|  54.6k|                uint8_t b;
 2269|  54.6k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2269:21): [True: 6, False: 54.6k]
  ------------------
 2270|      6|                {
 2271|      6|                    ec = cbor_errc::unexpected_eof;
 2272|      6|                    more_ = false;
 2273|      6|                    return;
 2274|      6|                }
 2275|  54.6k|                int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 2276|  54.6k|                visitor.int64_value(val, tag, *this, ec);
 2277|  54.6k|                more_ = !cursor_mode_;
 2278|  54.6k|                break;
 2279|  54.6k|            }
 2280|  13.2k|            case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (2280:13): [True: 13.2k, False: 8.99M]
  ------------------
 2281|  13.2k|            {
 2282|  13.2k|                uint8_t buf[sizeof(uint16_t)];
 2283|  13.2k|                if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (2283:21): [True: 13, False: 13.2k]
  ------------------
 2284|     13|                {
 2285|     13|                    ec = cbor_errc::unexpected_eof;
 2286|     13|                    more_ = false;
 2287|     13|                    return;
 2288|     13|                }
 2289|  13.2k|                auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 2290|  13.2k|                int64_t val = static_cast<int64_t>(-1)- u;
 2291|  13.2k|                visitor.int64_value(val, tag, *this, ec);
 2292|  13.2k|                more_ = !cursor_mode_;
 2293|  13.2k|                break;
 2294|  13.2k|            }
 2295|  6.94k|            case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (2295:13): [True: 6.94k, False: 9.00M]
  ------------------
 2296|  6.94k|            {
 2297|  6.94k|                uint8_t buf[sizeof(uint32_t)];
 2298|  6.94k|                if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (2298:21): [True: 17, False: 6.92k]
  ------------------
 2299|     17|                {
 2300|     17|                    ec = cbor_errc::unexpected_eof;
 2301|     17|                    more_ = false;
 2302|     17|                    return;
 2303|     17|                }
 2304|  6.92k|                auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 2305|  6.92k|                int64_t val = static_cast<int64_t>(-1)- u;
 2306|  6.92k|                visitor.int64_value(val, tag, *this, ec);
 2307|  6.92k|                more_ = !cursor_mode_;
 2308|  6.92k|                break;
 2309|  6.94k|            }
 2310|  15.2k|            case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (2310:13): [True: 15.2k, False: 8.99M]
  ------------------
 2311|  15.2k|            {
 2312|  15.2k|                uint8_t buf[sizeof(uint64_t)];
 2313|  15.2k|                if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (2313:21): [True: 30, False: 15.2k]
  ------------------
 2314|     30|                {
 2315|     30|                    ec = cbor_errc::unexpected_eof;
 2316|     30|                    more_ = false;
 2317|     30|                    return;
 2318|     30|                }
 2319|  15.2k|                auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 2320|  15.2k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2320:21): [True: 1.73k, False: 13.4k]
  ------------------
 2321|  1.73k|                {
 2322|       |                    //ec = cbor_errc::invalid_negative_integer;
 2323|       |                    //more_ = false;
 2324|       |                    //return;
 2325|  1.73k|                    bigint b(u);
 2326|  1.73k|                    bigint b2 = -1 - b;
 2327|  1.73k|                    text_buffer_.clear();
 2328|  1.73k|                    b2.append_to_string(text_buffer_);
 2329|  1.73k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2330|  1.73k|                }
 2331|  13.4k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  13.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 215, False: 13.2k]
  |  |  ------------------
  ------------------
 2332|    215|                {
 2333|    215|                    visitor.int64_value((std::numeric_limits<int64_t>::min)(), tag, *this, ec);
 2334|    215|                }
 2335|  13.2k|                else
 2336|  13.2k|                {
 2337|  13.2k|                    int64_t val = static_cast<int64_t>(-1) - static_cast<int64_t>(u);
 2338|  13.2k|                    visitor.int64_value(val, tag, *this, ec);
 2339|  13.2k|                }
 2340|  15.2k|                more_ = !cursor_mode_;
 2341|  15.2k|                break;
 2342|  15.2k|            }
 2343|     21|            default:
  ------------------
  |  Branch (2343:13): [True: 21, False: 9.01M]
  ------------------
 2344|     21|                ec = info == jsoncons::cbor::detail::additional_info::indefinite_length ? cbor_errc::unknown_type : cbor_errc::reserved_additional_info;
  ------------------
  |  Branch (2344:22): [True: 21, False: 0]
  ------------------
 2345|     21|                more_ = false;
 2346|     21|                return;
 2347|  9.01M|        }
 2348|  9.01M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceC2EPS8_:
  938|  12.0M|            : source(source)
  939|  12.0M|        {
  940|  12.0M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringINS8_28read_byte_string_from_sourceEEEvT_RNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 2913|  12.0M|    {
 2914|  12.0M|        if (other_tags_[item_tag])
  ------------------
  |  Branch (2914:13): [True: 425k, False: 11.6M]
  ------------------
 2915|   425k|        {
 2916|   425k|            switch (raw_tag_)
 2917|   425k|            {
 2918|  86.4k|                case 0x2:
  ------------------
  |  Branch (2918:17): [True: 86.4k, False: 338k]
  ------------------
 2919|  86.4k|                {
 2920|  86.4k|                    auto bytes = read.view(ec);
 2921|  86.4k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  86.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 11, False: 86.4k]
  |  |  ------------------
  ------------------
 2922|     11|                    {
 2923|     11|                        more_ = false;
 2924|     11|                        return;
 2925|     11|                    }
 2926|  86.4k|                    bigint b;
 2927|  86.4k|                    bigint::from_sign_magnitude(false, bytes.data(), bytes.size(), b);
 2928|  86.4k|                    text_buffer_.clear();
 2929|  86.4k|                    b.append_to_string(text_buffer_);
 2930|  86.4k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2931|  86.4k|                    more_ = !cursor_mode_;
 2932|  86.4k|                    break;
 2933|  86.4k|                }
 2934|  10.8k|                case 0x3:
  ------------------
  |  Branch (2934:17): [True: 10.8k, False: 414k]
  ------------------
 2935|  10.8k|                {
 2936|  10.8k|                    auto bytes = read.view(ec);
 2937|  10.8k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  10.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 10, False: 10.8k]
  |  |  ------------------
  ------------------
 2938|     10|                    {
 2939|     10|                        more_ = false;
 2940|     10|                        return;
 2941|     10|                    }
 2942|  10.8k|                    bigint b;
 2943|  10.8k|                    bigint::from_sign_magnitude(false, bytes.data(), bytes.size(), b);
 2944|  10.8k|                    b = -1 - b;
 2945|  10.8k|                    text_buffer_.clear();
 2946|  10.8k|                    b.append_to_string(text_buffer_);
 2947|  10.8k|                    visitor.string_value(text_buffer_, semantic_tag::bigint, *this, ec);
 2948|  10.8k|                    more_ = !cursor_mode_;
 2949|  10.8k|                    break;
 2950|  10.8k|                }
 2951|    230|                case 0x15:
  ------------------
  |  Branch (2951:17): [True: 230, False: 424k]
  ------------------
 2952|  1.32k|                case 0x16:
  ------------------
  |  Branch (2952:17): [True: 1.09k, False: 423k]
  ------------------
 2953|  1.86k|                case 0x17:
  ------------------
  |  Branch (2953:17): [True: 539, False: 424k]
  ------------------
 2954|  1.86k|                {
 2955|  1.86k|                    auto bytes = read.view(ec);
 2956|  1.86k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.86k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 1.85k]
  |  |  ------------------
  ------------------
 2957|      6|                    {
 2958|      6|                        more_ = false;
 2959|      6|                        return;
 2960|      6|                    }
 2961|  1.85k|                    const semantic_tag tag = raw_tag_ == 0x15 ? semantic_tag::base64url
  ------------------
  |  Branch (2961:46): [True: 229, False: 1.62k]
  ------------------
 2962|  1.85k|                        : raw_tag_ == 0x16 ? semantic_tag::base64
  ------------------
  |  Branch (2962:27): [True: 1.08k, False: 538]
  ------------------
 2963|  1.62k|                        : semantic_tag::base16;
 2964|  1.85k|                    visitor.byte_string_value(bytes, tag, *this, ec);
 2965|  1.85k|                    more_ = !cursor_mode_;
 2966|  1.85k|                    break;
 2967|  1.86k|                }
 2968|  2.95k|                case 0x40:
  ------------------
  |  Branch (2968:17): [True: 2.95k, False: 422k]
  ------------------
 2969|  2.95k|                {
 2970|  2.95k|                    array_tag_ = typed_array_tags::uint8;
 2971|  2.95k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 2972|  2.95k|                    read(array_buffer, ec);
 2973|  2.95k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.95k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 20, False: 2.93k]
  |  |  ------------------
  ------------------
 2974|     20|                    {
 2975|     20|                        more_ = false;
 2976|     20|                        return;
 2977|     20|                    }
 2978|  2.93k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 2979|  2.93k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (2979:25): [True: 2.93k, False: 0]
  |  Branch (2979:42): [True: 811, False: 2.12k]
  ------------------
 2980|    811|                    {
 2981|    811|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (2981:29): [True: 7, False: 804]
  ------------------
 2982|      7|                        {
 2983|      7|                            ec = cbor_errc::bad_extents;
 2984|      7|                            more_ = false;
 2985|      7|                            return;
 2986|      7|                        }
 2987|    804|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2988|    804|                            typed_array_tags::uint8, extents_, order_, max_dimensions_, alloc_);
 2989|    804|                        typed_array_stack_.push_back(iter);
 2990|    804|                        iter->next(visitor, *this, ec);
 2991|    804|                    }
 2992|  2.12k|                    else
 2993|  2.12k|                    {
 2994|  2.12k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 2995|  2.12k|                            typed_array_tags::uint8, semantic_tag::none, alloc_);
 2996|  2.12k|                        typed_array_stack_.push_back(iter);
 2997|  2.12k|                        iter->next(visitor, *this, ec);
 2998|  2.12k|                    }
 2999|  2.92k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3000|  2.92k|                    more_ = !cursor_mode_;
 3001|  2.92k|                    break;
 3002|  2.93k|                }
 3003|  3.48k|                case 0x44:
  ------------------
  |  Branch (3003:17): [True: 3.48k, False: 421k]
  ------------------
 3004|  3.48k|                {
 3005|  3.48k|                    array_tag_ = typed_array_tags::uint8;
 3006|  3.48k|                    typed_array_tag_ = semantic_tag::clamped;
 3007|  3.48k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3008|  3.48k|                    read(array_buffer, ec);
 3009|  3.48k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.48k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 3.47k]
  |  |  ------------------
  ------------------
 3010|      6|                    {
 3011|      6|                        more_ = false;
 3012|      6|                        return;
 3013|      6|                    }
 3014|  3.47k|                    auto ta = typed_array_cast<const uint8_t>(array_buffer);
 3015|  3.47k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3015:25): [True: 3.47k, False: 0]
  |  Branch (3015:42): [True: 287, False: 3.19k]
  ------------------
 3016|    287|                    {
 3017|    287|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3017:29): [True: 15, False: 272]
  ------------------
 3018|     15|                        {
 3019|     15|                            ec = cbor_errc::bad_extents;
 3020|     15|                            more_ = false;
 3021|     15|                            return;
 3022|     15|                        }
 3023|    272|                        auto iter = std::make_shared<mdarray_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3024|    272|                            typed_array_tags::uint8, extents_, order_, max_dimensions_, alloc_);
 3025|    272|                        typed_array_stack_.push_back(iter);
 3026|    272|                        iter->next(visitor, *this, ec);
 3027|    272|                    }
 3028|  3.19k|                    else
 3029|  3.19k|                    {
 3030|  3.19k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3031|  3.19k|                            typed_array_tags::uint8, semantic_tag::clamped, alloc_);
 3032|  3.19k|                        typed_array_stack_.push_back(iter);
 3033|  3.19k|                        iter->next(visitor, *this, ec);
 3034|  3.19k|                    }
 3035|  3.46k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3036|  3.46k|                    more_ = !cursor_mode_;
 3037|  3.46k|                    break;
 3038|  3.47k|                }
 3039|   133k|                case 0x41:
  ------------------
  |  Branch (3039:17): [True: 133k, False: 291k]
  ------------------
 3040|   142k|                case 0x45:
  ------------------
  |  Branch (3040:17): [True: 9.00k, False: 416k]
  ------------------
 3041|   142k|                {
 3042|   142k|                    array_tag_ = typed_array_tags::uint16;
 3043|   142k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3044|   142k|                    read(array_buffer, ec);
 3045|   142k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   142k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 142k]
  |  |  ------------------
  ------------------
 3046|      5|                    {
 3047|      5|                        more_ = false;
 3048|      5|                        return;
 3049|      5|                    }
 3050|   142k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3051|   142k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3052|   142k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 3053|   142k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3053:25): [True: 133k, False: 9.00k]
  ------------------
 3054|   133k|                    {
 3055|   137k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3055:49): [True: 3.76k, False: 133k]
  ------------------
 3056|  3.76k|                        {
 3057|  3.76k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 3058|  3.76k|                        }
 3059|   133k|                    }
 3060|   142k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3060:25): [True: 142k, False: 0]
  |  Branch (3060:42): [True: 784, False: 141k]
  ------------------
 3061|    784|                    {
 3062|    784|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3062:29): [True: 88, False: 696]
  ------------------
 3063|     88|                        {
 3064|     88|                            ec = cbor_errc::bad_extents;
 3065|     88|                            more_ = false;
 3066|     88|                            return;
 3067|     88|                        }
 3068|    696|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3069|    696|                            typed_array_tags::uint16, extents_, order_, max_dimensions_, alloc_);
 3070|    696|                        typed_array_stack_.push_back(iter);
 3071|    696|                        iter->next(visitor, *this, ec);
 3072|    696|                    }
 3073|   141k|                    else
 3074|   141k|                    {
 3075|   141k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3076|   141k|                            typed_array_tags::uint16, semantic_tag::none, alloc_);
 3077|   141k|                        typed_array_stack_.push_back(iter);
 3078|   141k|                        iter->next(visitor, *this, ec);
 3079|   141k|                    }
 3080|   142k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3081|   142k|                    more_ = !cursor_mode_;
 3082|   142k|                    break;
 3083|   142k|                }
 3084|  3.04k|                case 0x42:
  ------------------
  |  Branch (3084:17): [True: 3.04k, False: 422k]
  ------------------
 3085|  4.64k|                case 0x46:
  ------------------
  |  Branch (3085:17): [True: 1.60k, False: 423k]
  ------------------
 3086|  4.64k|                {
 3087|  4.64k|                    array_tag_ = typed_array_tags::uint32;
 3088|  4.64k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3089|  4.64k|                    read(array_buffer, ec);
 3090|  4.64k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.64k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 26, False: 4.61k]
  |  |  ------------------
  ------------------
 3091|     26|                    {
 3092|     26|                        more_ = false;
 3093|     26|                        return;
 3094|     26|                    }
 3095|  4.61k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3096|  4.61k|                    jsoncons::endian e = get_typed_array_endianness(tag);
 3097|  4.61k|                    auto ta = typed_array_cast<uint32_t>(array_buffer);
 3098|  4.61k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3098:25): [True: 3.03k, False: 1.58k]
  ------------------
 3099|  3.03k|                    {
 3100|  30.0k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3100:49): [True: 27.0k, False: 3.03k]
  ------------------
 3101|  27.0k|                        {
 3102|  27.0k|                            ta[i] = binary::byte_swap<uint32_t>(ta[i]);
 3103|  27.0k|                        }
 3104|  3.03k|                    }
 3105|  4.61k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3105:25): [True: 4.61k, False: 0]
  |  Branch (3105:42): [True: 795, False: 3.82k]
  ------------------
 3106|    795|                    {
 3107|    795|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3107:29): [True: 19, False: 776]
  ------------------
 3108|     19|                        {
 3109|     19|                            ec = cbor_errc::bad_extents;
 3110|     19|                            more_ = false;
 3111|     19|                            return;
 3112|     19|                        }
 3113|    776|                        auto iter = std::make_shared<mdarray_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3114|    776|                            typed_array_tags::uint32, extents_, order_, max_dimensions_, alloc_);
 3115|    776|                        typed_array_stack_.push_back(iter);
 3116|    776|                        iter->next(visitor, *this, ec);
 3117|    776|                    }
 3118|  3.82k|                    else
 3119|  3.82k|                    {
 3120|  3.82k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3121|  3.82k|                            typed_array_tags::uint32, semantic_tag::none, alloc_);
 3122|  3.82k|                        typed_array_stack_.push_back(iter);
 3123|  3.82k|                        iter->next(visitor, *this, ec);
 3124|  3.82k|                    }
 3125|  4.59k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3126|  4.59k|                    more_ = !cursor_mode_;
 3127|  4.59k|                    break;
 3128|  4.61k|                }
 3129|  1.61k|                case 0x43:
  ------------------
  |  Branch (3129:17): [True: 1.61k, False: 423k]
  ------------------
 3130|  2.75k|                case 0x47:
  ------------------
  |  Branch (3130:17): [True: 1.13k, False: 423k]
  ------------------
 3131|  2.75k|                {
 3132|  2.75k|                    array_tag_ = typed_array_tags::uint64;
 3133|  2.75k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3134|  2.75k|                    read(array_buffer, ec);
 3135|  2.75k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.75k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 17, False: 2.74k]
  |  |  ------------------
  ------------------
 3136|     17|                    {
 3137|     17|                        more_ = false;
 3138|     17|                        return;
 3139|     17|                    }
 3140|  2.74k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3141|  2.74k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3142|  2.74k|                    auto ta = typed_array_cast<uint64_t>(array_buffer);
 3143|  2.74k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3143:25): [True: 1.61k, False: 1.12k]
  ------------------
 3144|  1.61k|                    {
 3145|  55.6k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3145:49): [True: 53.9k, False: 1.61k]
  ------------------
 3146|  53.9k|                        {
 3147|  53.9k|                            ta[i] = binary::byte_swap<uint64_t>(ta[i]);
 3148|  53.9k|                        }
 3149|  1.61k|                    }
 3150|  2.74k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3150:25): [True: 2.74k, False: 0]
  |  Branch (3150:42): [True: 966, False: 1.77k]
  ------------------
 3151|    966|                    {
 3152|    966|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3152:29): [True: 1, False: 965]
  ------------------
 3153|      1|                        {
 3154|      1|                            ec = cbor_errc::bad_extents;
 3155|      1|                            more_ = false;
 3156|      1|                            return;
 3157|      1|                        }
 3158|    965|                        auto iter = std::make_shared<mdarray_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3159|    965|                            typed_array_tags::uint64, extents_, order_, max_dimensions_, alloc_);
 3160|    965|                        typed_array_stack_.push_back(iter);
 3161|    965|                        iter->next(visitor, *this, ec);
 3162|    965|                    }
 3163|  1.77k|                    else
 3164|  1.77k|                    {
 3165|  1.77k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint64_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3166|  1.77k|                            typed_array_tags::uint64, semantic_tag::none, alloc_);
 3167|  1.77k|                        typed_array_stack_.push_back(iter);
 3168|  1.77k|                        iter->next(visitor, *this, ec);
 3169|  1.77k|                    }
 3170|  2.73k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3171|  2.73k|                    more_ = !cursor_mode_;
 3172|  2.73k|                    break;
 3173|  2.74k|                }
 3174|  1.73k|                case 0x48:
  ------------------
  |  Branch (3174:17): [True: 1.73k, False: 423k]
  ------------------
 3175|  1.73k|                {
 3176|  1.73k|                    array_tag_ = typed_array_tags::int8;
 3177|  1.73k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3178|  1.73k|                    read(array_buffer, ec);
 3179|  1.73k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.73k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 10, False: 1.72k]
  |  |  ------------------
  ------------------
 3180|     10|                    {
 3181|     10|                        more_ = false;
 3182|     10|                        return;
 3183|     10|                    }
 3184|  1.72k|                    auto ta = typed_array_cast<int8_t>(array_buffer);
 3185|  1.72k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3185:25): [True: 1.72k, False: 0]
  |  Branch (3185:42): [True: 625, False: 1.09k]
  ------------------
 3186|    625|                    {
 3187|    625|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3187:29): [True: 90, False: 535]
  ------------------
 3188|     90|                        {
 3189|     90|                            ec = cbor_errc::bad_extents;
 3190|     90|                            more_ = false;
 3191|     90|                            return;
 3192|     90|                        }
 3193|    535|                        auto iter = std::make_shared<mdarray_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3194|    535|                            typed_array_tags::int8, extents_, order_, max_dimensions_, alloc_);
 3195|    535|                        typed_array_stack_.push_back(iter);
 3196|    535|                        iter->next(visitor, *this, ec);
 3197|    535|                    }
 3198|  1.09k|                    else
 3199|  1.09k|                    {
 3200|  1.09k|                        auto iter = std::make_shared<oned_typed_array_iterator<int8_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3201|  1.09k|                            typed_array_tags::int8, semantic_tag::none, alloc_);
 3202|  1.09k|                        typed_array_stack_.push_back(iter);
 3203|  1.09k|                        iter->next(visitor, *this, ec);
 3204|  1.09k|                    }
 3205|  1.63k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3206|  1.63k|                    more_ = !cursor_mode_;
 3207|  1.63k|                    break;
 3208|  1.72k|                }
 3209|  27.7k|                case 0x49:
  ------------------
  |  Branch (3209:17): [True: 27.7k, False: 397k]
  ------------------
 3210|  33.3k|                case 0x4d:
  ------------------
  |  Branch (3210:17): [True: 5.57k, False: 419k]
  ------------------
 3211|  33.3k|                {
 3212|  33.3k|                    array_tag_ = typed_array_tags::int16;
 3213|  33.3k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3214|  33.3k|                    read(array_buffer, ec);
 3215|  33.3k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  33.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 9, False: 33.3k]
  |  |  ------------------
  ------------------
 3216|      9|                    {
 3217|      9|                        more_ = false;
 3218|      9|                        return;
 3219|      9|                    }
 3220|  33.3k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3221|  33.3k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3222|  33.3k|                    auto ta = typed_array_cast<int16_t>(array_buffer);
 3223|  33.3k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3223:25): [True: 27.7k, False: 5.57k]
  ------------------
 3224|  27.7k|                    {
 3225|  39.1k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3225:49): [True: 11.4k, False: 27.7k]
  ------------------
 3226|  11.4k|                        {
 3227|  11.4k|                            ta[i] = binary::byte_swap<int16_t>(ta[i]);
 3228|  11.4k|                        }
 3229|  27.7k|                    }
 3230|  33.3k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3230:25): [True: 33.3k, False: 0]
  |  Branch (3230:42): [True: 796, False: 32.5k]
  ------------------
 3231|    796|                    {
 3232|    796|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3232:29): [True: 97, False: 699]
  ------------------
 3233|     97|                        {
 3234|     97|                            ec = cbor_errc::bad_extents;
 3235|     97|                            more_ = false;
 3236|     97|                            return;
 3237|     97|                        }
 3238|    699|                        auto iter = std::make_shared<mdarray_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3239|    699|                            typed_array_tags::int16, extents_, order_, max_dimensions_, alloc_);
 3240|    699|                        typed_array_stack_.push_back(iter);
 3241|    699|                        iter->next(visitor, *this, ec);
 3242|    699|                    }
 3243|  32.5k|                    else
 3244|  32.5k|                    {
 3245|  32.5k|                        auto iter = std::make_shared<oned_typed_array_iterator<int16_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3246|  32.5k|                            typed_array_tags::int16, semantic_tag::none, alloc_);
 3247|  32.5k|                        typed_array_stack_.push_back(iter);
 3248|  32.5k|                        iter->next(visitor, *this, ec);
 3249|  32.5k|                    }
 3250|  33.2k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3251|  33.2k|                    more_ = !cursor_mode_;
 3252|  33.2k|                    break;
 3253|  33.3k|                }
 3254|  1.61k|                case 0x4a:
  ------------------
  |  Branch (3254:17): [True: 1.61k, False: 423k]
  ------------------
 3255|  4.45k|                case 0x4e:
  ------------------
  |  Branch (3255:17): [True: 2.83k, False: 422k]
  ------------------
 3256|  4.45k|                {
 3257|  4.45k|                    array_tag_ = typed_array_tags::int32;
 3258|  4.45k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3259|  4.45k|                    read(array_buffer, ec);
 3260|  4.45k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.45k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 4.44k]
  |  |  ------------------
  ------------------
 3261|     12|                    {
 3262|     12|                        more_ = false;
 3263|     12|                        return;
 3264|     12|                    }
 3265|  4.44k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3266|  4.44k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3267|  4.44k|                    auto ta = typed_array_cast<int32_t>(array_buffer);
 3268|  4.44k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3268:25): [True: 1.60k, False: 2.83k]
  ------------------
 3269|  1.60k|                    {
 3270|  5.32k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3270:49): [True: 3.72k, False: 1.60k]
  ------------------
 3271|  3.72k|                        {
 3272|  3.72k|                            ta[i] = binary::byte_swap<int32_t>(ta[i]);
 3273|  3.72k|                        }
 3274|  1.60k|                    }
 3275|  4.44k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3275:25): [True: 4.44k, False: 0]
  |  Branch (3275:42): [True: 824, False: 3.61k]
  ------------------
 3276|    824|                    {
 3277|    824|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3277:29): [True: 82, False: 742]
  ------------------
 3278|     82|                        {
 3279|     82|                            ec = cbor_errc::bad_extents;
 3280|     82|                            more_ = false;
 3281|     82|                            return;
 3282|     82|                        }
 3283|    742|                        auto iter = std::make_shared<mdarray_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3284|    742|                            typed_array_tags::int32, extents_, order_, max_dimensions_, alloc_);
 3285|    742|                        typed_array_stack_.push_back(iter);
 3286|    742|                        iter->next(visitor, *this, ec);
 3287|    742|                    }
 3288|  3.61k|                    else
 3289|  3.61k|                    {
 3290|  3.61k|                        auto iter = std::make_shared<oned_typed_array_iterator<int32_t,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3291|  3.61k|                            typed_array_tags::int32, semantic_tag::none, alloc_);
 3292|  3.61k|                        typed_array_stack_.push_back(iter);
 3293|  3.61k|                        iter->next(visitor, *this, ec);
 3294|  3.61k|                    }
 3295|  4.36k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3296|  4.36k|                    more_ = !cursor_mode_;
 3297|  4.36k|                    break;
 3298|  4.44k|                }
 3299|    811|                case 0x4b:
  ------------------
  |  Branch (3299:17): [True: 811, False: 424k]
  ------------------
 3300|  3.93k|                case 0x4f:
  ------------------
  |  Branch (3300:17): [True: 3.12k, False: 421k]
  ------------------
 3301|  3.93k|                {
 3302|  3.93k|                    array_tag_ = typed_array_tags::int64;
 3303|  3.93k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3304|  3.93k|                    read(array_buffer, ec);
 3305|  3.93k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.93k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 39, False: 3.89k]
  |  |  ------------------
  ------------------
 3306|     39|                    {
 3307|     39|                        more_ = false;
 3308|     39|                        return;
 3309|     39|                    }
 3310|  3.89k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3311|  3.89k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3312|  3.89k|                    auto ta = typed_array_cast<int64_t>(array_buffer);
 3313|  3.89k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3313:25): [True: 802, False: 3.09k]
  ------------------
 3314|    802|                    {
 3315|  6.18k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3315:49): [True: 5.38k, False: 802]
  ------------------
 3316|  5.38k|                        {
 3317|  5.38k|                            ta[i] = binary::byte_swap<int64_t>(ta[i]);
 3318|  5.38k|                        }
 3319|    802|                    }
 3320|  3.89k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3320:25): [True: 3.89k, False: 0]
  |  Branch (3320:42): [True: 902, False: 2.99k]
  ------------------
 3321|    902|                    {
 3322|    902|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3322:29): [True: 95, False: 807]
  ------------------
 3323|     95|                        {
 3324|     95|                            ec = cbor_errc::bad_extents;
 3325|     95|                            more_ = false;
 3326|     95|                            return;
 3327|     95|                        }
 3328|    807|                        auto iter = std::make_shared<mdarray_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3329|    807|                            typed_array_tags::int64, extents_, order_, max_dimensions_, alloc_);
 3330|    807|                        typed_array_stack_.push_back(iter);
 3331|    807|                        iter->next(visitor, *this, ec);
 3332|    807|                    }
 3333|  2.99k|                    else
 3334|  2.99k|                    {
 3335|  2.99k|                        auto iter = std::make_shared<oned_typed_array_iterator<int64_t,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3336|  2.99k|                            typed_array_tags::int64, semantic_tag::none, alloc_);
 3337|  2.99k|                        typed_array_stack_.push_back(iter);
 3338|  2.99k|                        iter->next(visitor, *this, ec);
 3339|  2.99k|                    }
 3340|  3.80k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3341|  3.80k|                    more_ = !cursor_mode_;
 3342|  3.80k|                    break;
 3343|  3.89k|                }
 3344|  11.1k|                case 0x50:
  ------------------
  |  Branch (3344:17): [True: 11.1k, False: 413k]
  ------------------
 3345|  12.5k|                case 0x54:
  ------------------
  |  Branch (3345:17): [True: 1.36k, False: 423k]
  ------------------
 3346|  12.5k|                {
 3347|  12.5k|                    array_tag_ = typed_array_tags::half_float;
 3348|  12.5k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3349|  12.5k|                    read(array_buffer, ec);
 3350|  12.5k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  12.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 10, False: 12.5k]
  |  |  ------------------
  ------------------
 3351|     10|                    {
 3352|     10|                        more_ = false;
 3353|     10|                        return;
 3354|     10|                    }
 3355|  12.5k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3356|  12.5k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3357|  12.5k|                    auto ta = typed_array_cast<uint16_t>(array_buffer);
 3358|  12.5k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3358:25): [True: 11.1k, False: 1.35k]
  ------------------
 3359|  11.1k|                    {
 3360|  17.4k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3360:49): [True: 6.30k, False: 11.1k]
  ------------------
 3361|  6.30k|                        {
 3362|  6.30k|                            ta[i] = binary::byte_swap<uint16_t>(ta[i]);
 3363|  6.30k|                        }
 3364|  11.1k|                    }
 3365|  12.5k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3365:25): [True: 12.5k, False: 0]
  |  Branch (3365:42): [True: 597, False: 11.9k]
  ------------------
 3366|    597|                    {
 3367|    597|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3367:29): [True: 42, False: 555]
  ------------------
 3368|     42|                        {
 3369|     42|                            ec = cbor_errc::bad_extents;
 3370|     42|                            more_ = false;
 3371|     42|                            return;
 3372|     42|                        }
 3373|    555|                        auto iter = std::make_shared<mdarray_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer), 
 3374|    555|                            typed_array_tags::half_float, extents_, order_, max_dimensions_, alloc_);
 3375|    555|                        typed_array_stack_.push_back(iter);
 3376|    555|                        iter->next(visitor, *this, ec);
 3377|    555|                    }
 3378|  11.9k|                    else
 3379|  11.9k|                    {
 3380|  11.9k|                        auto iter = std::make_shared<oned_typed_array_iterator<uint16_t,decode_half,Allocator>>(std::move(array_buffer),
 3381|  11.9k|                            typed_array_tags::half_float, semantic_tag::none, alloc_);
 3382|  11.9k|                        typed_array_stack_.push_back(iter);
 3383|  11.9k|                        iter->next(visitor, *this, ec);
 3384|  11.9k|                    }
 3385|  12.4k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3386|  12.4k|                    more_ = !cursor_mode_;
 3387|  12.4k|                    break;
 3388|  12.5k|                }
 3389|  2.05k|                case 0x51:
  ------------------
  |  Branch (3389:17): [True: 2.05k, False: 423k]
  ------------------
 3390|  3.92k|                case 0x55:
  ------------------
  |  Branch (3390:17): [True: 1.86k, False: 423k]
  ------------------
 3391|  3.92k|                {
 3392|  3.92k|                    array_tag_ = typed_array_tags::float32;
 3393|  3.92k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3394|  3.92k|                    read(array_buffer, ec);
 3395|  3.92k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.92k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 3.91k]
  |  |  ------------------
  ------------------
 3396|      6|                    {
 3397|      6|                        more_ = false;
 3398|      6|                        return;
 3399|      6|                    }
 3400|  3.91k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3401|  3.91k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3402|  3.91k|                    auto ta = typed_array_cast<float>(array_buffer);
 3403|  3.91k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3403:25): [True: 2.05k, False: 1.86k]
  ------------------
 3404|  2.05k|                    {
 3405|  68.3k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3405:49): [True: 66.3k, False: 2.05k]
  ------------------
 3406|  66.3k|                        {
 3407|  66.3k|                            ta[i] = binary::byte_swap<float>(ta[i]);
 3408|  66.3k|                        }
 3409|  2.05k|                    }
 3410|  3.91k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3410:25): [True: 3.91k, False: 0]
  |  Branch (3410:42): [True: 1.08k, False: 2.83k]
  ------------------
 3411|  1.08k|                    {
 3412|  1.08k|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3412:29): [True: 8, False: 1.07k]
  ------------------
 3413|      8|                        {
 3414|      8|                            ec = cbor_errc::bad_extents;
 3415|      8|                            more_ = false;
 3416|      8|                            return;
 3417|      8|                        }
 3418|  1.07k|                        auto iter = std::make_shared<mdarray_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3419|  1.07k|                            typed_array_tags::float32, extents_, order_, max_dimensions_, alloc_);
 3420|  1.07k|                        typed_array_stack_.push_back(iter);
 3421|  1.07k|                        iter->next(visitor, *this, ec);
 3422|  1.07k|                    }
 3423|  2.83k|                    else
 3424|  2.83k|                    {
 3425|  2.83k|                        auto iter = std::make_shared<oned_typed_array_iterator<float,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3426|  2.83k|                            typed_array_tags::float32, semantic_tag::none, alloc_);
 3427|  2.83k|                        typed_array_stack_.push_back(iter);
 3428|  2.83k|                        iter->next(visitor, *this, ec);
 3429|  2.83k|                    }
 3430|  3.90k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3431|  3.90k|                    more_ = !cursor_mode_;
 3432|  3.90k|                    break;
 3433|  3.91k|                }
 3434|  1.76k|                case 0x52:
  ------------------
  |  Branch (3434:17): [True: 1.76k, False: 423k]
  ------------------
 3435|  2.41k|                case 0x56:
  ------------------
  |  Branch (3435:17): [True: 651, False: 424k]
  ------------------
 3436|  2.41k|                {
 3437|  2.41k|                    array_tag_ = typed_array_tags::float64;
 3438|  2.41k|                    std::vector<uint8_t,byte_allocator_type> array_buffer(alloc_);
 3439|  2.41k|                    read(array_buffer, ec);
 3440|  2.41k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.41k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 8, False: 2.40k]
  |  |  ------------------
  ------------------
 3441|      8|                    {
 3442|      8|                        more_ = false;
 3443|      8|                        return;
 3444|      8|                    }
 3445|  2.40k|                    const uint8_t tag = (uint8_t)raw_tag_;
 3446|  2.40k|                    jsoncons::endian e = get_typed_array_endianness(tag); 
 3447|  2.40k|                    auto ta = typed_array_cast<double>(array_buffer);
 3448|  2.40k|                    if (e != jsoncons::endian::native)
  ------------------
  |  Branch (3448:25): [True: 1.75k, False: 651]
  ------------------
 3449|  1.75k|                    {
 3450|  6.60k|                        for (std::size_t i = 0; i < ta.size(); ++i)
  ------------------
  |  Branch (3450:49): [True: 4.85k, False: 1.75k]
  ------------------
 3451|  4.85k|                        {
 3452|  4.85k|                            ta[i] = binary::byte_swap<double>(ta[i]);
 3453|  4.85k|                        }
 3454|  1.75k|                    }
 3455|  2.40k|                    if (!cursor_mode_ && state_stack_.back().mode == parse_mode::multi_dim) 
  ------------------
  |  Branch (3455:25): [True: 2.40k, False: 0]
  |  Branch (3455:42): [True: 994, False: 1.41k]
  ------------------
 3456|    994|                    {
 3457|    994|                        if (mdarray_size_ != ta.size())
  ------------------
  |  Branch (3457:29): [True: 2, False: 992]
  ------------------
 3458|      2|                        {
 3459|      2|                            ec = cbor_errc::bad_extents;
 3460|      2|                            more_ = false;
 3461|      2|                            return;
 3462|      2|                        }
 3463|    992|                        auto iter = std::make_shared<mdarray_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer), 
 3464|    992|                            typed_array_tags::float64, extents_, order_, max_dimensions_, alloc_);
 3465|    992|                        typed_array_stack_.push_back(iter);
 3466|    992|                        iter->next(visitor, *this, ec);
 3467|    992|                    }
 3468|  1.41k|                    else
 3469|  1.41k|                    {
 3470|  1.41k|                        auto iter = std::make_shared<oned_typed_array_iterator<double,jsoncons::identity,Allocator>>(std::move(array_buffer),
 3471|  1.41k|                            typed_array_tags::float64, semantic_tag::none, alloc_);
 3472|  1.41k|                        typed_array_stack_.push_back(iter);
 3473|  1.41k|                        iter->next(visitor, *this, ec);
 3474|  1.41k|                    }
 3475|  2.40k|                    state_stack_.emplace_back(parse_mode::typed_array, ta.size(), false);
 3476|  2.40k|                    more_ = !cursor_mode_;
 3477|  2.40k|                    break;
 3478|  2.40k|                }
 3479|      1|                case 0x53:
  ------------------
  |  Branch (3479:17): [True: 1, False: 425k]
  ------------------
 3480|      2|                case 0x57:
  ------------------
  |  Branch (3480:17): [True: 1, False: 425k]
  ------------------
 3481|      2|                {
 3482|      2|                    ec = cbor_errc::float128_not_supported;
 3483|      2|                    more_ = !cursor_mode_;
 3484|      2|                    return;
 3485|      1|                }
 3486|   107k|                default:
  ------------------
  |  Branch (3486:17): [True: 107k, False: 317k]
  ------------------
 3487|   107k|                {
 3488|   107k|                    auto bytes = read.view(ec);
 3489|   107k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   107k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 47, False: 107k]
  |  |  ------------------
  ------------------
 3490|     47|                    {
 3491|     47|                        more_ = false;
 3492|     47|                        return;
 3493|     47|                    }
 3494|   107k|                    visitor.byte_string_value(bytes, raw_tag_, *this, ec);
 3495|   107k|                    more_ = !cursor_mode_;
 3496|   107k|                    break;
 3497|   107k|                }
 3498|   425k|            }
 3499|   424k|            other_tags_[item_tag] = false;
 3500|   424k|        }
 3501|  11.6M|        else
 3502|  11.6M|        {
 3503|  11.6M|            auto bytes = read.view(ec);
 3504|  11.6M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  11.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 772, False: 11.6M]
  |  |  ------------------
  ------------------
 3505|    772|            {
 3506|    772|                return;
 3507|    772|            }
 3508|  11.6M|            visitor.byte_string_value(bytes, semantic_tag::none, *this, ec);
 3509|  11.6M|            more_ = !cursor_mode_;
 3510|  11.6M|        }
 3511|  12.0M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_source4viewERNS3_10error_codeE:
  948|  11.8M|        {
  949|  11.8M|            return source->read_byte_string_view(ec);
  950|  11.8M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_byte_string_viewERNS3_10error_codeE:
 1883|  11.8M|    {
 1884|  11.8M|        auto c = source_.peek();
 1885|  11.8M|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  11.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 11.8M]
  |  |  ------------------
  ------------------
 1886|      0|        {
 1887|      0|            ec = cbor_errc::unexpected_eof;
 1888|      0|            more_ = false;
 1889|      0|            return byte_string_view();
 1890|      0|        }
 1891|  11.8M|        jsoncons::cbor::cbor_major_type major_type = get_major_type(c.value);
 1892|  11.8M|        uint8_t info = get_additional_info(c.value);
 1893|  11.8M|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  11.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 11.8M]
  |  |  |  Branch (79:50): [True: 958, False: 11.8M]
  |  |  |  Branch (79:50): [True: 0, False: 958]
  |  |  ------------------
  ------------------
 1894|      0|        {
 1895|      0|            ec = cbor_errc::reserved_additional_info;
 1896|      0|            more_ = false;
 1897|      0|            return byte_string_view();
 1898|      0|        }
 1899|       |
 1900|  11.8M|        JSONCONS_ASSERT(major_type == jsoncons::cbor::cbor_major_type::byte_string);
  ------------------
  |  |   67|  11.8M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 11.8M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1901|       |
 1902|  11.8M|        source_.ignore(1);
 1903|  11.8M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1903:13): [True: 958, False: 11.8M]
  ------------------
 1904|    958|        {
 1905|    958|            bytes_buffer_.clear();
 1906|    958|            iterate_byte_string_chunks(bytes_buffer_, ec);
 1907|    958|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    958|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 191, False: 767]
  |  |  ------------------
  ------------------
 1908|    191|            {
 1909|    191|                return byte_string_view();
 1910|    191|            }
 1911|    767|            return byte_string_view(bytes_buffer_.data(), bytes_buffer_.size());
 1912|    958|        }
 1913|       |
 1914|  11.8M|        std::size_t length = read_size(info, ec);
 1915|  11.8M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  11.8M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 24, False: 11.8M]
  |  |  ------------------
  ------------------
 1916|     24|        {
 1917|     24|            return byte_string_view();
 1918|     24|        }
 1919|  11.8M|        auto data = source_.read_span(length, bytes_buffer_);
 1920|  11.8M|        if (data.size() != length)
  ------------------
  |  Branch (1920:13): [True: 631, False: 11.8M]
  ------------------
 1921|    631|        {
 1922|    631|            ec = cbor_errc::unexpected_eof;
 1923|    631|            more_ = false;
 1924|    631|            return byte_string_view();
 1925|    631|        }
 1926|       |        
 1927|  11.8M|        byte_string_view bytes(data.data(), data.size());
 1928|  11.8M|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1928:13): [True: 4.82M, False: 7.02M]
  ------------------
 1929|  4.82M|            bytes.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1929:13): [True: 2.61M, False: 2.20M]
  ------------------
 1930|  2.61M|        {
 1931|  2.61M|            stringref_map_stack_.back().emplace_back(mapped_string(bytes, alloc_));
 1932|  2.61M|        }
 1933|  11.8M|        return bytes;
 1934|  11.8M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26iterate_byte_string_chunksINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
 2067|  1.22k|    {
 2068|  1.22k|        bool done = false;
 2069|  1.02M|        while (!done)
  ------------------
  |  Branch (2069:16): [True: 1.02M, False: 1.00k]
  ------------------
 2070|  1.02M|        {
 2071|  1.02M|            auto c = source_.peek();
 2072|  1.02M|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  1.02M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 46, False: 1.02M]
  |  |  ------------------
  ------------------
 2073|     46|            {
 2074|     46|                ec = cbor_errc::unexpected_eof;
 2075|     46|                more_ = false;
 2076|     46|                return;
 2077|     46|            }
 2078|  1.02M|            if (c.value == 0xff)
  ------------------
  |  Branch (2078:17): [True: 1.00k, False: 1.02M]
  ------------------
 2079|  1.00k|            {
 2080|  1.00k|                source_.ignore(1);
 2081|  1.00k|                done = true;
 2082|  1.00k|                continue;
 2083|  1.00k|            }
 2084|       |
 2085|  1.02M|            jsoncons::cbor::cbor_major_type major_type = get_major_type(c.value);
 2086|  1.02M|            if (major_type != jsoncons::cbor::cbor_major_type::byte_string)
  ------------------
  |  Branch (2086:17): [True: 36, False: 1.02M]
  ------------------
 2087|     36|            {
 2088|     36|                ec = cbor_errc::illegal_chunked_string;
 2089|     36|                more_ = false;
 2090|     36|                return;
 2091|     36|            }
 2092|  1.02M|            uint8_t info = get_additional_info(c.value);
 2093|  1.02M|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (2093:17): [True: 7, False: 1.02M]
  ------------------
 2094|      7|            {
 2095|      7|                ec = cbor_errc::illegal_chunked_string;
 2096|      7|                more_ = false;
 2097|      7|                return;
 2098|      7|            }
 2099|       |
 2100|  1.02M|            source_.ignore(1);
 2101|  1.02M|            std::size_t length = read_size(info, ec);
 2102|  1.02M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.02M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 1.02M]
  |  |  ------------------
  ------------------
 2103|      5|            {
 2104|      5|                return;
 2105|      5|            }
 2106|  1.02M|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (2106:17): [True: 124, False: 1.02M]
  ------------------
 2107|    124|            {
 2108|    124|                ec = cbor_errc::unexpected_eof;
 2109|    124|            }
 2110|  1.02M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.02M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 124, False: 1.02M]
  |  |  ------------------
  ------------------
 2111|    124|            {
 2112|    124|                return;
 2113|    124|            }
 2114|  1.02M|        }
 2115|  1.22k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9read_sizeEhRNS3_10error_codeE:
 1937|  35.6M|    {
 1938|  35.6M|        uint64_t u = read_unsigned_integer(info, ec);
 1939|  35.6M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  35.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 122, False: 35.6M]
  |  |  ------------------
  ------------------
 1940|    122|        {
 1941|    122|            return 0;
 1942|    122|        }
 1943|  35.6M|        std::size_t len = static_cast<std::size_t>(u);
 1944|  35.6M|        if (len != u)
  ------------------
  |  Branch (1944:13): [True: 0, False: 35.6M]
  ------------------
 1945|      0|        {
 1946|      0|            ec = cbor_errc::number_too_large;
 1947|      0|            more_ = false;
 1948|      0|        }
 1949|  35.6M|        return len;
 1950|  35.6M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2EOS9_:
  857|  8.10M|        mapped_string(mapped_string&&) = default;
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS_16byte_string_viewERKS7_:
  846|  2.61M|            : type(jsoncons::cbor::cbor_major_type::byte_string), str(alloc), bytes(bytes.begin(),bytes.end(),alloc)
  847|  2.61M|        {
  848|  2.61M|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE28read_byte_string_from_sourceclINS3_6vectorIhS5_EEEEvRT_RNS3_10error_codeE:
  943|   218k|        {
  944|   218k|            source->read_byte_string(cont,ec);
  945|   218k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE16read_byte_stringERNS3_6vectorIhS5_EERNS3_10error_codeE:
 1953|   587k|    {
 1954|   587k|        v.clear();
 1955|   587k|        auto c = source_.peek();
 1956|   587k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   587k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 587k]
  |  |  ------------------
  ------------------
 1957|      0|        {
 1958|      0|            ec = cbor_errc::unexpected_eof;
 1959|      0|            return;
 1960|      0|        }
 1961|   587k|        jsoncons::cbor::cbor_major_type major_type = get_major_type(c.value);
 1962|   587k|        uint8_t info = get_additional_info(c.value);
 1963|   587k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   588k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 587k]
  |  |  |  Branch (79:50): [True: 267, False: 587k]
  |  |  |  Branch (79:50): [True: 2, False: 265]
  |  |  ------------------
  ------------------
 1964|      2|        {
 1965|      2|            ec = cbor_errc::reserved_additional_info;
 1966|      2|            more_ = false;
 1967|      2|            return;
 1968|      2|        }
 1969|       |
 1970|   587k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::cbor_major_type::byte_string);
  ------------------
  |  |   67|   587k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 587k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 1971|       |
 1972|   587k|        source_.ignore(1);
 1973|   587k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1973:13): [True: 265, False: 587k]
  ------------------
 1974|    265|        {
 1975|    265|            iterate_byte_string_chunks(v, ec);
 1976|    265|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|    265|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 27, False: 238]
  |  |  ------------------
  ------------------
 1977|     27|            {
 1978|     27|                return;
 1979|     27|            }
 1980|    265|        }
 1981|   587k|        else 
 1982|   587k|        {
 1983|   587k|            std::size_t length = read_size(info, ec);
 1984|   587k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   587k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 587k]
  |  |  ------------------
  ------------------
 1985|      4|            {
 1986|      4|                return;
 1987|      4|            }
 1988|   587k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (1988:17): [True: 162, False: 587k]
  ------------------
 1989|    162|            {
 1990|    162|                ec = cbor_errc::unexpected_eof;
 1991|    162|                return;
 1992|    162|            }
 1993|   587k|            if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1993:17): [True: 270k, False: 317k]
  ------------------
 1994|   270k|                v.size() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1994:17): [True: 105k, False: 164k]
  ------------------
 1995|   105k|            {
 1996|   105k|                stringref_map_stack_.back().emplace_back(mapped_string(v, alloc_));
 1997|   105k|            }
 1998|   587k|        }
 1999|   587k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_6vectorIhS5_EERKS7_:
  840|   105k|            : type(jsoncons::cbor::cbor_major_type::byte_string), str(alloc), bytes(bytes,alloc)
  841|   105k|        {
  842|   105k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE21read_text_string_viewEhRNS3_10error_codeE:
 1849|  1.71M|    {
 1850|  1.71M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1850:13): [True: 1.75k, False: 1.71M]
  ------------------
 1851|  1.75k|        {
 1852|  1.75k|            text_buffer_.clear();
 1853|  1.75k|            iterate_text_string_chunks(text_buffer_, ec);
 1854|  1.75k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.75k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 211, False: 1.54k]
  |  |  ------------------
  ------------------
 1855|    211|            {
 1856|    211|                return string_view_type();
 1857|    211|            }
 1858|  1.54k|            return string_view_type(text_buffer_.data(), text_buffer_.size());
 1859|  1.75k|        }
 1860|       |
 1861|  1.71M|        std::size_t length = read_size(info, ec);
 1862|  1.71M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.71M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 15, False: 1.71M]
  |  |  ------------------
  ------------------
 1863|     15|        {
 1864|     15|            return string_view_type();
 1865|     15|        }
 1866|  1.71M|        auto data = source_.read_span(length, text_buffer_);
 1867|  1.71M|        if (data.size() != length)
  ------------------
  |  Branch (1867:13): [True: 430, False: 1.71M]
  ------------------
 1868|    430|        {
 1869|    430|            ec = cbor_errc::unexpected_eof;
 1870|    430|            more_ = false;
 1871|    430|            return string_view_type();
 1872|    430|        }
 1873|  1.71M|        string_view_type sv(reinterpret_cast<const char_type*>(data.data()), data.size());
 1874|  1.71M|        if (!stringref_map_stack_.empty() &&
  ------------------
  |  Branch (1874:13): [True: 741k, False: 968k]
  ------------------
 1875|   741k|            sv.length() >= jsoncons::cbor::detail::min_length_for_stringref(stringref_map_stack_.back().size()))
  ------------------
  |  Branch (1875:13): [True: 350k, False: 391k]
  ------------------
 1876|   350k|        {
 1877|   350k|            stringref_map_stack_.back().emplace_back(mapped_string(sv,alloc_));
 1878|   350k|        }
 1879|  1.71M|        return sv;
 1880|  1.71M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE26iterate_text_string_chunksINS3_12basic_stringIcNS3_11char_traitsIcEES7_EEEEvRT_RNS3_10error_codeE:
 2003|  1.75k|    {
 2004|  1.75k|        bool done = false;
 2005|   180k|        while (!done)
  ------------------
  |  Branch (2005:16): [True: 179k, False: 1.54k]
  ------------------
 2006|   179k|        {
 2007|   179k|            auto c = source_.peek();
 2008|   179k|            if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   179k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 50, False: 178k]
  |  |  ------------------
  ------------------
 2009|     50|            {
 2010|     50|                ec = cbor_errc::unexpected_eof;
 2011|     50|                more_ = false;
 2012|     50|                return;
 2013|     50|            }
 2014|   178k|            if (c.value == 0xff)
  ------------------
  |  Branch (2014:17): [True: 1.54k, False: 177k]
  ------------------
 2015|  1.54k|            {
 2016|  1.54k|                source_.ignore(1);
 2017|  1.54k|                done = true;
 2018|  1.54k|                continue;
 2019|  1.54k|            }
 2020|       |
 2021|   177k|            jsoncons::cbor::cbor_major_type major_type = get_major_type(c.value);
 2022|   177k|            if (major_type != jsoncons::cbor::cbor_major_type::text_string)
  ------------------
  |  Branch (2022:17): [True: 32, False: 177k]
  ------------------
 2023|     32|            {
 2024|     32|                ec = cbor_errc::illegal_chunked_string;
 2025|     32|                more_ = false;
 2026|     32|                return;
 2027|     32|            }
 2028|   177k|            uint8_t info = get_additional_info(c.value);
 2029|   177k|            if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (2029:17): [True: 5, False: 177k]
  ------------------
 2030|      5|            {
 2031|      5|                ec = cbor_errc::illegal_chunked_string;
 2032|      5|                more_ = false;
 2033|      5|                return;
 2034|      5|            }
 2035|       |
 2036|   177k|            source_.ignore(1);
 2037|   177k|            std::size_t length = read_size(info, ec);
 2038|   177k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   177k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 177k]
  |  |  ------------------
  ------------------
 2039|      2|            {
 2040|      2|                return;
 2041|      2|            }
 2042|   177k|            const std::size_t offset = v.size();
 2043|   177k|            if (source_reader<Source>::read(source_, v, length) != length)
  ------------------
  |  Branch (2043:17): [True: 112, False: 177k]
  ------------------
 2044|    112|            {
 2045|    112|                ec = cbor_errc::unexpected_eof;
 2046|    112|            }
 2047|   177k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   177k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 112, False: 177k]
  |  |  ------------------
  ------------------
 2048|    112|            {
 2049|    112|                return;
 2050|    112|            }
 2051|       |            // RFC 8949 3.2.3: each chunk of an indefinite-length text
 2052|       |            // string must itself be well-formed UTF-8, so a code point
 2053|       |            // may not be split across chunks.
 2054|   177k|            auto result = unicode_traits::validate(
 2055|   177k|                reinterpret_cast<const char*>(v.data()) + offset, length);
 2056|   177k|            if (result.ec != unicode_traits::unicode_errc())
  ------------------
  |  Branch (2056:17): [True: 10, False: 177k]
  ------------------
 2057|     10|            {
 2058|     10|                ec = cbor_errc::invalid_utf8;
 2059|     10|                more_ = false;
 2060|     10|                return;
 2061|     10|            }
 2062|   177k|        }
 2063|  1.75k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13mapped_stringC2ERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKS7_:
  829|   350k|            : type(jsoncons::cbor::cbor_major_type::text_string), str(sv.data(), sv.size(), alloc), bytes(alloc)
  830|   350k|        {
  831|   350k|        }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11read_doubleEhRNS3_10error_codeE:
 2408|   110k|    {
 2409|   110k|        double val = 0;
 2410|       |
 2411|   110k|        switch (info)
 2412|   110k|        {
 2413|  96.2k|            case 0x1a: // Single-Precision Float (four-byte IEEE 754)
  ------------------
  |  Branch (2413:13): [True: 96.2k, False: 14.1k]
  ------------------
 2414|  96.2k|            {
 2415|  96.2k|                uint8_t buf[sizeof(float)];
 2416|  96.2k|                if (source_.read(buf, sizeof(float)) !=sizeof(float)) 
  ------------------
  |  Branch (2416:21): [True: 44, False: 96.2k]
  ------------------
 2417|     44|                {
 2418|     44|                    ec = cbor_errc::unexpected_eof;
 2419|     44|                    more_ = false;
 2420|     44|                    return 0;
 2421|     44|                }
 2422|  96.2k|                val = binary::big_to_native<float>(buf, sizeof(buf));
 2423|  96.2k|                break;
 2424|  96.2k|            }
 2425|       |
 2426|  14.1k|            case 0x1b: //  Double-Precision Float (eight-byte IEEE 754)
  ------------------
  |  Branch (2426:13): [True: 14.1k, False: 96.2k]
  ------------------
 2427|  14.1k|            {
 2428|  14.1k|                uint8_t buf[sizeof(double)];
 2429|  14.1k|                if (source_.read(buf, sizeof(double)) != sizeof(double))
  ------------------
  |  Branch (2429:21): [True: 31, False: 14.1k]
  ------------------
 2430|     31|                {
 2431|     31|                    ec = cbor_errc::unexpected_eof;
 2432|     31|                    more_ = false;
 2433|     31|                    return 0;
 2434|     31|                }
 2435|  14.1k|                val = binary::big_to_native<double>(buf, sizeof(buf));
 2436|  14.1k|                break;
 2437|  14.1k|            }
 2438|      0|            default:
  ------------------
  |  Branch (2438:13): [True: 0, False: 110k]
  ------------------
 2439|      0|            {
 2440|      0|                ec = cbor_errc::unknown_type;
 2441|      0|                more_ = false;
 2442|      0|                return 0;
 2443|  14.1k|            }
 2444|   110k|        }
 2445|       |        
 2446|   110k|        return val;
 2447|   110k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE15read_bigdecimalEhRNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 2450|   265k|    {
 2451|   265k|        std::size_t size = read_unsigned_integer(container_info, ec);
 2452|   265k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   265k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 265k]
  |  |  ------------------
  ------------------
 2453|      1|        {
 2454|      1|            return;
 2455|      1|        }
 2456|   265k|        if (size != 2)
  ------------------
  |  Branch (2456:13): [True: 61, False: 265k]
  ------------------
 2457|     61|        {
 2458|     61|            ec = cbor_errc::invalid_bigdecimal;
 2459|     61|            more_ = false;
 2460|     61|            return;
 2461|     61|        }
 2462|       |
 2463|   265k|        auto c = source_.peek();
 2464|   265k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   265k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 13, False: 265k]
  |  |  ------------------
  ------------------
 2465|     13|        {
 2466|     13|            ec = cbor_errc::unexpected_eof;
 2467|     13|            more_ = false;
 2468|     13|            return;
 2469|     13|        }
 2470|   265k|        int64_t exponent = 0;
 2471|   265k|        auto major_type = get_major_type(c.value);
 2472|   265k|        auto info = get_additional_info(c.value);
 2473|   265k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   267k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 265k]
  |  |  |  Branch (79:50): [True: 1.67k, False: 263k]
  |  |  |  Branch (79:50): [True: 2, False: 1.67k]
  |  |  ------------------
  ------------------
 2474|      2|        {
 2475|      2|            ec = cbor_errc::reserved_additional_info;
 2476|      2|            more_ = false;
 2477|      2|            return;
 2478|      2|        }
 2479|       |
 2480|   265k|        switch (major_type)
 2481|   265k|        {
 2482|  28.1k|            case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2482:13): [True: 28.1k, False: 237k]
  ------------------
 2483|  28.1k|            {
 2484|  28.1k|                source_.ignore(1);
 2485|  28.1k|                auto u = read_unsigned_integer(info, ec);
 2486|  28.1k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  28.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 28.1k]
  |  |  ------------------
  ------------------
 2487|      1|                {
 2488|      1|                    return;
 2489|      1|                }
 2490|  28.1k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2490:21): [True: 66, False: 28.1k]
  ------------------
 2491|     66|                {
 2492|     66|                    ec = cbor_errc::bigdec_scale_overflow;
 2493|     66|                    more_ = false;
 2494|     66|                    return;
 2495|     66|                }
 2496|  28.1k|                exponent = static_cast<int64_t>(u);
 2497|  28.1k|                break;
 2498|  28.1k|            }
 2499|   237k|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2499:13): [True: 237k, False: 28.1k]
  ------------------
 2500|   237k|            {
 2501|   237k|                exponent = read_int64(ec);
 2502|   237k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   237k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 14, False: 237k]
  |  |  ------------------
  ------------------
 2503|     14|                {
 2504|     14|                    return;
 2505|     14|                }
 2506|   237k|                break;
 2507|   237k|            }
 2508|   237k|            default:
  ------------------
  |  Branch (2508:13): [True: 13, False: 265k]
  ------------------
 2509|     13|            {
 2510|     13|                ec = cbor_errc::invalid_bigdecimal;
 2511|     13|                more_ = false;
 2512|     13|                return;
 2513|   237k|            }
 2514|   265k|        }
 2515|       |
 2516|   265k|        c = source_.peek();
 2517|   265k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   265k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 69, False: 265k]
  |  |  ------------------
  ------------------
 2518|     69|        {
 2519|     69|            ec = cbor_errc::unexpected_eof;
 2520|     69|            more_ = false;
 2521|     69|            return;
 2522|     69|        }
 2523|       |
 2524|   265k|        major_type = get_major_type(c.value);
 2525|   265k|        info = get_additional_info(c.value);
 2526|   265k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   265k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 265k]
  |  |  |  Branch (79:50): [True: 401, False: 265k]
  |  |  |  Branch (79:50): [True: 6, False: 395]
  |  |  ------------------
  ------------------
 2527|      6|        {
 2528|      6|            ec = cbor_errc::reserved_additional_info;
 2529|      6|            more_ = false;
 2530|      6|            return;
 2531|      6|        }
 2532|       |
 2533|   265k|        bigint unscaled;
 2534|   265k|        switch (major_type)
 2535|   265k|        {
 2536|   102k|            case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2536:13): [True: 102k, False: 162k]
  ------------------
 2537|   102k|            {
 2538|   102k|                source_.ignore(1);
 2539|   102k|                uint64_t u = read_unsigned_integer(info, ec);
 2540|   102k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   102k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 102k]
  |  |  ------------------
  ------------------
 2541|      1|                {
 2542|      1|                    return;
 2543|      1|                }
 2544|   102k|                unscaled = bigint(u);
 2545|   102k|                break;
 2546|   102k|            }
 2547|  8.35k|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2547:13): [True: 8.35k, False: 257k]
  ------------------
 2548|  8.35k|            {
 2549|  8.35k|                source_.ignore(1);
 2550|  8.35k|                auto u = read_unsigned_integer(info, ec);
 2551|  8.35k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.35k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 8.34k]
  |  |  ------------------
  ------------------
 2552|      4|                {
 2553|      4|                    return;
 2554|      4|                }
 2555|  8.34k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2555:21): [True: 266, False: 8.08k]
  ------------------
 2556|    266|                {
 2557|    266|                    unscaled = -1 - bigint(u);
 2558|    266|                }
 2559|  8.08k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  8.08k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 194, False: 7.88k]
  |  |  ------------------
  ------------------
 2560|    194|                {
 2561|    194|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 2562|    194|                }
 2563|  7.88k|                else
 2564|  7.88k|                {
 2565|  7.88k|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 2566|  7.88k|                }
 2567|  8.34k|                break;
 2568|  8.35k|            }
 2569|   154k|            case jsoncons::cbor::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (2569:13): [True: 154k, False: 111k]
  ------------------
 2570|   154k|            {
 2571|   154k|                uint8_t b;
 2572|   154k|                if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2572:21): [True: 0, False: 154k]
  ------------------
 2573|      0|                {
 2574|      0|                    ec = cbor_errc::unexpected_eof;
 2575|      0|                    more_ = false;
 2576|      0|                    return;
 2577|      0|                }
 2578|   154k|                info = get_additional_info(b);
 2579|   154k|                if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   154k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 154k]
  |  |  |  Branch (79:50): [True: 389, False: 153k]
  |  |  |  Branch (79:50): [True: 0, False: 389]
  |  |  ------------------
  ------------------
 2580|      0|                {
 2581|      0|                    ec = cbor_errc::reserved_additional_info;
 2582|      0|                    more_ = false;
 2583|      0|                    return;
 2584|      0|                }
 2585|   154k|                c = source_.peek();
 2586|   154k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   154k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 16, False: 154k]
  |  |  ------------------
  ------------------
 2587|     16|                {
 2588|     16|                    ec = cbor_errc::unexpected_eof;
 2589|     16|                    more_ = false;
 2590|     16|                    return;
 2591|     16|                }
 2592|       |
 2593|   154k|                if (get_major_type(c.value) == jsoncons::cbor::cbor_major_type::byte_string)
  ------------------
  |  Branch (2593:21): [True: 152k, False: 1.24k]
  ------------------
 2594|   152k|                {
 2595|   152k|                    bytes_buffer_.clear();
 2596|   152k|                    read_byte_string(bytes_buffer_, ec);
 2597|   152k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   152k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 152k]
  |  |  ------------------
  ------------------
 2598|      6|                    {
 2599|      6|                        more_ = false;
 2600|      6|                        return;
 2601|      6|                    }
 2602|   152k|                    if (info == 2)
  ------------------
  |  Branch (2602:25): [True: 4.11k, False: 148k]
  ------------------
 2603|  4.11k|                    {
 2604|  4.11k|                        bigint::from_sign_magnitude(false, bytes_buffer_.data(), bytes_buffer_.size(), unscaled);
 2605|  4.11k|                    }
 2606|   148k|                    else if (info == 3)
  ------------------
  |  Branch (2606:30): [True: 148k, False: 216]
  ------------------
 2607|   148k|                    {
 2608|   148k|                        bigint::from_sign_magnitude(false, bytes_buffer_.data(), bytes_buffer_.size(), unscaled);
 2609|   148k|                        unscaled = -1 - unscaled;
 2610|   148k|                    }
 2611|   152k|                }
 2612|   154k|                break;
 2613|   154k|            }
 2614|   154k|            default:
  ------------------
  |  Branch (2614:13): [True: 20, False: 265k]
  ------------------
 2615|     20|            {
 2616|     20|                ec = cbor_errc::invalid_bigdecimal;
 2617|     20|                more_ = false;
 2618|     20|                return;
 2619|   154k|            }
 2620|   265k|        }
 2621|       |
 2622|   265k|        bigdec dec(std::move(unscaled), -exponent);
 2623|   265k|        append_to_string(dec, result);
 2624|   265k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10read_int64ERNS3_10error_codeE:
 2118|   427k|    {
 2119|   427k|        int64_t val = 0;
 2120|       |
 2121|   427k|        auto ch = source_.peek();
 2122|   427k|        if (ch.eof)
  ------------------
  |  Branch (2122:13): [True: 0, False: 427k]
  ------------------
 2123|      0|        {
 2124|      0|            ec = cbor_errc::unexpected_eof;
 2125|      0|            more_ = false;
 2126|      0|            return val;
 2127|      0|        }
 2128|       |
 2129|   427k|        jsoncons::cbor::cbor_major_type major_type = get_major_type(ch.value);
 2130|   427k|        uint8_t info = get_additional_info(ch.value);
 2131|   427k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   429k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 427k]
  |  |  |  Branch (79:50): [True: 1.95k, False: 425k]
  |  |  |  Branch (79:50): [True: 0, False: 1.95k]
  |  |  ------------------
  ------------------
 2132|      0|        {
 2133|      0|            ec = cbor_errc::reserved_additional_info;
 2134|      0|            more_ = false;
 2135|      0|            return val;
 2136|      0|        }
 2137|   427k|        switch (major_type)
 2138|   427k|        {
 2139|   427k|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2139:13): [True: 427k, False: 0]
  ------------------
 2140|   427k|                source_.ignore(1);
 2141|   427k|                switch (info)
  ------------------
  |  Branch (2141:25): [True: 425k, False: 1.95k]
  ------------------
 2142|   427k|                {
 2143|   414k|                    case JSONCONS_EXT_CBOR_0x00_0x17: // 0x00..0x17 (0..23)
  ------------------
  |  |   18|   414k|    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: 921, False: 426k]
  |  |  |  Branch (18:20): [True: 492, False: 426k]
  |  |  |  Branch (18:30): [True: 109k, False: 317k]
  |  |  |  Branch (18:40): [True: 81.2k, False: 346k]
  |  |  |  Branch (18:50): [True: 11.1k, False: 416k]
  |  |  |  Branch (18:60): [True: 1.93k, False: 425k]
  |  |  |  Branch (18:70): [True: 766, False: 426k]
  |  |  |  Branch (18:80): [True: 11.9k, False: 415k]
  |  |  |  Branch (18:90): [True: 7.71k, False: 419k]
  |  |  |  Branch (18:100): [True: 356, False: 427k]
  |  |  |  Branch (18:110): [True: 551, False: 426k]
  |  |  |  Branch (18:120): [True: 1.87k, False: 425k]
  |  |  |  Branch (18:130): [True: 18.2k, False: 409k]
  |  |  |  Branch (18:140): [True: 1.05k, False: 426k]
  |  |  |  Branch (18:150): [True: 3.98k, False: 423k]
  |  |  |  Branch (18:160): [True: 297, False: 427k]
  |  |  |  Branch (18:170): [True: 406, False: 427k]
  |  |  |  Branch (18:180): [True: 1.00k, False: 426k]
  |  |  |  Branch (18:190): [True: 147k, False: 279k]
  |  |  |  Branch (18:200): [True: 838, False: 426k]
  |  |  |  Branch (18:210): [True: 233, False: 427k]
  |  |  |  Branch (18:220): [True: 1.90k, False: 425k]
  |  |  ------------------
  ------------------
  |  Branch (2143:21): [True: 683, False: 426k]
  ------------------
 2144|   414k|                    {
 2145|   414k|                        val = static_cast<int8_t>(- 1 - info);
 2146|   414k|                        break;
 2147|  5.18M|                    }
 2148|  7.20k|                    case 0x18: // Negative integer (one-byte uint8_t follows)
  ------------------
  |  Branch (2148:21): [True: 7.20k, False: 420k]
  ------------------
 2149|  7.20k|                        {
 2150|  7.20k|                            uint8_t b;
 2151|  7.20k|                            if (source_.read(&b, 1) == 0)
  ------------------
  |  Branch (2151:33): [True: 3, False: 7.19k]
  ------------------
 2152|      3|                            {
 2153|      3|                                ec = cbor_errc::unexpected_eof;
 2154|      3|                                more_ = false;
 2155|      3|                                return val;
 2156|      3|                            }
 2157|  7.19k|                            val = static_cast<int64_t>(-1) - static_cast<int64_t>(b);
 2158|  7.19k|                            break;
 2159|  7.20k|                        }
 2160|       |
 2161|    562|                    case 0x19: // Negative integer -1-n (two-byte uint16_t follows)
  ------------------
  |  Branch (2161:21): [True: 562, False: 426k]
  ------------------
 2162|    562|                        {
 2163|    562|                            uint8_t buf[sizeof(uint16_t)];
 2164|    562|                            if (source_.read(buf, sizeof(uint16_t)) != sizeof(uint16_t))
  ------------------
  |  Branch (2164:33): [True: 1, False: 561]
  ------------------
 2165|      1|                            {
 2166|      1|                                ec = cbor_errc::unexpected_eof;
 2167|      1|                                more_ = false;
 2168|      1|                                return val;
 2169|      1|                            }
 2170|    561|                            auto u = binary::big_to_native<uint16_t>(buf, sizeof(buf));
 2171|    561|                            val = static_cast<int64_t>(-1)- u;
 2172|    561|                            break;
 2173|    562|                        }
 2174|       |
 2175|    440|                    case 0x1a: // Negative integer -1-n (four-byte uint32_t follows)
  ------------------
  |  Branch (2175:21): [True: 440, False: 427k]
  ------------------
 2176|    440|                        {
 2177|    440|                            uint8_t buf[sizeof(uint32_t)];
 2178|    440|                            if (source_.read(buf, sizeof(uint32_t)) != sizeof(uint32_t))
  ------------------
  |  Branch (2178:33): [True: 4, False: 436]
  ------------------
 2179|      4|                            {
 2180|      4|                                ec = cbor_errc::unexpected_eof;
 2181|      4|                                more_ = false;
 2182|      4|                                return val;
 2183|      4|                            }
 2184|    436|                            auto u = binary::big_to_native<uint32_t>(buf, sizeof(buf));
 2185|    436|                            val = static_cast<int64_t>(-1)- u;
 2186|    436|                            break;
 2187|    440|                        }
 2188|       |
 2189|  2.45k|                    case 0x1b: // Negative integer -1-n (eight-byte uint64_t follows)
  ------------------
  |  Branch (2189:21): [True: 2.45k, False: 425k]
  ------------------
 2190|  2.45k|                        {
 2191|  2.45k|                            uint8_t buf[sizeof(uint64_t)];
 2192|  2.45k|                            if (source_.read(buf, sizeof(uint64_t)) != sizeof(uint64_t))
  ------------------
  |  Branch (2192:33): [True: 5, False: 2.44k]
  ------------------
 2193|      5|                            {
 2194|      5|                                ec = cbor_errc::unexpected_eof;
 2195|      5|                                more_ = false;
 2196|      5|                                return val;
 2197|      5|                            }
 2198|  2.44k|                            auto u = binary::big_to_native<uint64_t>(buf, sizeof(buf));
 2199|  2.44k|                            if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2199:33): [True: 58, False: 2.39k]
  ------------------
 2200|     58|                            {
 2201|     58|                                ec = cbor_errc::invalid_bigdecimal;
 2202|     58|                                more_ = false;
 2203|     58|                                return val;
 2204|     58|                            }
 2205|  2.39k|                            if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  2.39k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 290, False: 2.10k]
  |  |  ------------------
  ------------------
 2206|    290|                            {
 2207|    290|                                val = (std::numeric_limits<int64_t>::min)();
 2208|    290|                            }
 2209|  2.10k|                            else
 2210|  2.10k|                            {
 2211|  2.10k|                                val = static_cast<int64_t>(-1)- static_cast<int64_t>(u);
 2212|  2.10k|                            }
 2213|  2.39k|                            break;
 2214|  2.44k|                        }
 2215|   427k|                }
 2216|   427k|                break;
 2217|       |
 2218|   427k|                case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2218:17): [True: 0, False: 427k]
  ------------------
 2219|      0|                {
 2220|      0|                    source_.ignore(1);
 2221|      0|                    uint64_t u = read_unsigned_integer(info, ec);
 2222|      0|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2223|      0|                    {
 2224|      0|                        return 0;
 2225|      0|                    }
 2226|      0|                    if (u <= static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2226:25): [True: 0, False: 0]
  ------------------
 2227|      0|                    {
 2228|      0|                        val = u;
 2229|      0|                    }
 2230|      0|                    else
 2231|      0|                    {
 2232|       |                        // error;
 2233|      0|                    }
 2234|       |                    
 2235|      0|                    break;
 2236|      0|                }
 2237|      0|                break;
 2238|      0|            default:
  ------------------
  |  Branch (2238:13): [True: 0, False: 427k]
  ------------------
 2239|      0|                break;
 2240|   427k|        }
 2241|       |
 2242|   427k|        return val;
 2243|   427k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE13read_bigfloatEhRNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
 2627|   321k|    {
 2628|   321k|        std::size_t size = read_unsigned_integer(container_info, ec);
 2629|   321k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   321k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 321k]
  |  |  ------------------
  ------------------
 2630|      3|        {
 2631|      3|            return;
 2632|      3|        }
 2633|   321k|        if (size != 2)
  ------------------
  |  Branch (2633:13): [True: 97, False: 320k]
  ------------------
 2634|     97|        {
 2635|     97|            ec = cbor_errc::invalid_bigfloat;
 2636|     97|            more_ = false;
 2637|     97|            return;
 2638|     97|        }
 2639|       |
 2640|   320k|        auto c = source_.peek();
 2641|   320k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   320k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 20, False: 320k]
  |  |  ------------------
  ------------------
 2642|     20|        {
 2643|     20|            ec = cbor_errc::unexpected_eof;
 2644|     20|            more_ = false;
 2645|     20|            return;
 2646|     20|        }
 2647|   320k|        jsoncons::cbor::cbor_major_type major_type = get_major_type(c.value);
 2648|   320k|        uint8_t info = get_additional_info(c.value);
 2649|   320k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   321k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 320k]
  |  |  |  Branch (79:50): [True: 292, False: 320k]
  |  |  |  Branch (79:50): [True: 3, False: 289]
  |  |  ------------------
  ------------------
 2650|      3|        {
 2651|      3|            ec = cbor_errc::reserved_additional_info;
 2652|      3|            more_ = false;
 2653|      3|            return;
 2654|      3|        }
 2655|       |
 2656|   320k|        int64_t exponent = 0;
 2657|   320k|        switch (major_type)
 2658|   320k|        {
 2659|   130k|            case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2659:13): [True: 130k, False: 190k]
  ------------------
 2660|   130k|            {
 2661|   130k|                source_.ignore(1);
 2662|   130k|                auto u = read_unsigned_integer(info, ec);
 2663|   130k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   130k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 130k]
  |  |  ------------------
  ------------------
 2664|      5|                {
 2665|      5|                    return;
 2666|      5|                }
 2667|   130k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2667:21): [True: 57, False: 130k]
  ------------------
 2668|     57|                {
 2669|     57|                    ec = cbor_errc::invalid_bigdecimal;
 2670|     57|                    more_ = false;
 2671|     57|                    return;
 2672|     57|                }
 2673|   130k|                exponent = static_cast<int64_t>(u);
 2674|   130k|                if (exponent == 0)
  ------------------
  |  Branch (2674:21): [True: 5.19k, False: 125k]
  ------------------
 2675|  5.19k|                {
 2676|  5.19k|                    str.append("0.0");
 2677|  5.19k|                    return;
 2678|  5.19k|                }
 2679|   125k|                break;
 2680|   130k|            }
 2681|   190k|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2681:13): [True: 190k, False: 130k]
  ------------------
 2682|   190k|            {
 2683|   190k|                exponent = read_int64(ec);
 2684|   190k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   190k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 57, False: 190k]
  |  |  ------------------
  ------------------
 2685|     57|                {
 2686|     57|                    return;
 2687|     57|                }
 2688|   190k|                if (exponent == 0)
  ------------------
  |  Branch (2688:21): [True: 286, False: 189k]
  ------------------
 2689|    286|                {
 2690|    286|                    str.append("0.0");
 2691|    286|                    return;
 2692|    286|                }
 2693|   189k|                break;
 2694|   190k|            }
 2695|   189k|            default:
  ------------------
  |  Branch (2695:13): [True: 33, False: 320k]
  ------------------
 2696|     33|            {
 2697|     33|                ec = cbor_errc::invalid_bigfloat;
 2698|     33|                more_ = false;
 2699|     33|                return;
 2700|   190k|            }
 2701|   320k|        }
 2702|       |
 2703|   315k|        c = source_.peek();
 2704|   315k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   315k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 138, False: 315k]
  |  |  ------------------
  ------------------
 2705|    138|        {
 2706|    138|            ec = cbor_errc::unexpected_eof;
 2707|    138|            more_ = false;
 2708|    138|            return;
 2709|    138|        }
 2710|   315k|        major_type = get_major_type(c.value);
 2711|   315k|        info = get_additional_info(c.value);
 2712|   315k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|   315k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 315k]
  |  |  |  Branch (79:50): [True: 212, False: 314k]
  |  |  |  Branch (79:50): [True: 7, False: 205]
  |  |  ------------------
  ------------------
 2713|      7|        {
 2714|      7|            ec = cbor_errc::reserved_additional_info;
 2715|      7|            more_ = false;
 2716|      7|            return;
 2717|      7|        }
 2718|       |
 2719|   315k|        bigint unscaled;
 2720|   315k|        switch (major_type)
 2721|   315k|        {
 2722|  16.0k|            case jsoncons::cbor::cbor_major_type::unsigned_integer:
  ------------------
  |  Branch (2722:13): [True: 16.0k, False: 299k]
  ------------------
 2723|  16.0k|            {
 2724|  16.0k|                source_.ignore(1);
 2725|  16.0k|                uint64_t u = read_unsigned_integer(info, ec);
 2726|  16.0k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  16.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 15.9k]
  |  |  ------------------
  ------------------
 2727|      1|                {
 2728|      1|                    return;
 2729|      1|                }
 2730|  15.9k|                unscaled = bigint(u);
 2731|       |                //bigdec dec(std::move(unscaled), -exponent);
 2732|       |                //append_to_string(dec, str);
 2733|  15.9k|                break;
 2734|  16.0k|            }
 2735|  61.8k|            case jsoncons::cbor::cbor_major_type::negative_integer:
  ------------------
  |  Branch (2735:13): [True: 61.8k, False: 253k]
  ------------------
 2736|  61.8k|            {
 2737|  61.8k|                source_.ignore(1);
 2738|  61.8k|                auto u = read_unsigned_integer(info, ec);
 2739|  61.8k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  61.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 61.8k]
  |  |  ------------------
  ------------------
 2740|      2|                {
 2741|      2|                    return;
 2742|      2|                }
 2743|  61.8k|                if (u > static_cast<uint64_t>((std::numeric_limits<int64_t>::max)()))
  ------------------
  |  Branch (2743:21): [True: 501, False: 61.3k]
  ------------------
 2744|    501|                {
 2745|    501|                    unscaled = -1 - bigint(u);
 2746|    501|                }
 2747|  61.3k|                else if (JSONCONS_UNLIKELY(u == static_cast<uint64_t>((std::numeric_limits<int64_t>::max)())))
  ------------------
  |  |   79|  61.3k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.09k, False: 60.2k]
  |  |  ------------------
  ------------------
 2748|  1.09k|                {
 2749|  1.09k|                    unscaled = bigint((std::numeric_limits<int64_t>::min)());
 2750|  1.09k|                }
 2751|  60.2k|                else
 2752|  60.2k|                {
 2753|  60.2k|                    unscaled = bigint(static_cast<int64_t>(-1) - static_cast<int64_t>(u));
 2754|  60.2k|                }
 2755|       |                //bigdec dec(std::move(unscaled), -exponent);
 2756|       |                //append_to_string(dec, str);
 2757|  61.8k|                break;
 2758|  61.8k|            }
 2759|   237k|            case jsoncons::cbor::cbor_major_type::semantic_tag:
  ------------------
  |  Branch (2759:13): [True: 237k, False: 77.9k]
  ------------------
 2760|   237k|            {
 2761|   237k|                uint8_t x;
 2762|   237k|                if (source_.read(&x, 1) == 0)
  ------------------
  |  Branch (2762:21): [True: 0, False: 237k]
  ------------------
 2763|      0|                {
 2764|      0|                    ec = cbor_errc::unexpected_eof;
 2765|      0|                    more_ = false;
 2766|      0|                    return;
 2767|      0|                }
 2768|   237k|                uint8_t tag = get_additional_info(x);
 2769|   237k|                if (JSONCONS_UNLIKELY(tag >= 0x1C && tag <= 0x1E))
  ------------------
  |  |   79|   237k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 237k]
  |  |  |  Branch (79:50): [True: 200, False: 237k]
  |  |  |  Branch (79:50): [True: 0, False: 200]
  |  |  ------------------
  ------------------
 2770|      0|                {
 2771|      0|                    ec = cbor_errc::reserved_additional_info;
 2772|      0|                    more_ = false;
 2773|      0|                    return;
 2774|      0|                }
 2775|       |
 2776|   237k|                c = source_.peek();
 2777|   237k|                if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|   237k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 12, False: 237k]
  |  |  ------------------
  ------------------
 2778|     12|                {
 2779|     12|                    ec = cbor_errc::unexpected_eof;
 2780|     12|                    more_ = false;
 2781|     12|                    return;
 2782|     12|                }
 2783|       |
 2784|   237k|                if (get_major_type(c.value) == jsoncons::cbor::cbor_major_type::byte_string)
  ------------------
  |  Branch (2784:21): [True: 216k, False: 20.7k]
  ------------------
 2785|   216k|                {
 2786|   216k|                    bytes_buffer_.clear();
 2787|   216k|                    read_byte_string(bytes_buffer_, ec);
 2788|   216k|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   216k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 21, False: 216k]
  |  |  ------------------
  ------------------
 2789|     21|                    {
 2790|     21|                        more_ = false;
 2791|     21|                        return;
 2792|     21|                    }
 2793|   216k|                    bigint::from_sign_magnitude(false, bytes_buffer_.data(), bytes_buffer_.size(), unscaled);
 2794|   216k|                    if (tag == 3)
  ------------------
  |  Branch (2794:25): [True: 109k, False: 107k]
  ------------------
 2795|   109k|                    {
 2796|   109k|                        unscaled = -1 - unscaled;
 2797|   109k|                    }
 2798|   216k|                }
 2799|   237k|                break;
 2800|   237k|            }
 2801|   237k|            default:
  ------------------
  |  Branch (2801:13): [True: 41, False: 315k]
  ------------------
 2802|     41|            {
 2803|     41|                ec = cbor_errc::invalid_bigfloat;
 2804|     41|                more_ = false;
 2805|     41|                return;
 2806|   237k|            }
 2807|   315k|        }
 2808|       |
 2809|   315k|        bigdec dec;
 2810|       |
 2811|   315k|        from_cbor_bigfloat(std::move(unscaled), exponent, dec, bigfloat_precision_, ec);
 2812|   315k|        if (ec)
  ------------------
  |  Branch (2812:13): [True: 0, False: 315k]
  ------------------
 2813|      0|        {
 2814|      0|            more_ = false;
 2815|      0|            return;
 2816|      0|        }
 2817|   315k|        append_to_string(dec, str);
 2818|   315k|    }
_ZN8jsoncons4cbor18from_cbor_bigfloatINSt3__19allocatorImEEEEvNS_12basic_bigintIT_EElRNS_12basic_bigdecIS6_EEmRNS2_10error_codeE:
  660|   315k|{
  661|   315k|    constexpr uint64_t max_scale =
  662|   315k|        static_cast<uint64_t>(
  663|   315k|            (std::numeric_limits<int64_t>::max)()
  664|   315k|        );
  665|       |
  666|   315k|    if (max_decimal_places > max_scale)
  ------------------
  |  Branch (666:9): [True: 0, False: 315k]
  ------------------
  667|      0|    {
  668|      0|        ec = cbor_errc::bigfloat_scale_overflow;
  669|      0|        return;
  670|      0|    }
  671|       |
  672|   315k|    if (unscaled.is_zero())
  ------------------
  |  Branch (672:9): [True: 28.7k, False: 286k]
  ------------------
  673|  28.7k|    {
  674|  28.7k|        value = basic_bigdec<Allocator>{ basic_bigint<Allocator>(0), 0 };
  675|  28.7k|        return;
  676|  28.7k|    }
  677|       |
  678|   286k|    const bool negative = unscaled < basic_bigint<Allocator>(0);
  679|       |
  680|   286k|    if (negative)
  ------------------
  |  Branch (680:9): [True: 171k, False: 115k]
  ------------------
  681|   171k|    {
  682|   171k|        unscaled.set_negative(false);
  683|   171k|    }
  684|       |
  685|   286k|    if (exponent >= 0) {
  ------------------
  |  Branch (685:9): [True: 109k, False: 176k]
  ------------------
  686|   109k|        from_cbor_bigfloat_positive_rounded(unscaled, exponent, max_decimal_places, value, ec);
  687|   109k|        if (negative)
  ------------------
  |  Branch (687:13): [True: 11.3k, False: 98.3k]
  ------------------
  688|  11.3k|        {
  689|  11.3k|            value.set_negative(true);
  690|  11.3k|        }
  691|   109k|        return;
  692|   109k|    }
  693|       |
  694|       |    // Absolute exponent, safe for INT64_MIN.
  695|   176k|    uint64_t k =
  696|   176k|        static_cast<uint64_t>(-(exponent + 1)) + 1;
  697|       |
  698|       |    // Cancel powers of 2.
  699|   176k|    const uint128 trailing = unscaled.trailing_zero_bits();
  700|       |
  701|   176k|    const uint64_t cancel =
  702|   176k|        trailing >= static_cast<uint128>(k)
  ------------------
  |  Branch (702:9): [True: 329, False: 176k]
  ------------------
  703|   176k|            ? k
  704|   176k|            : static_cast<uint64_t>(trailing);
  705|       |
  706|   176k|    if (cancel != 0)
  ------------------
  |  Branch (706:9): [True: 112k, False: 64.0k]
  ------------------
  707|   112k|        unscaled >>= (cancel);
  708|       |
  709|   176k|    k -= cancel;
  710|       |
  711|       |    // Exact conversion when the scale fits.
  712|   176k|    if (k <= max_decimal_places) {
  ------------------
  |  Branch (712:9): [True: 168k, False: 7.96k]
  ------------------
  713|   168k|        if (k != 0)
  ------------------
  |  Branch (713:13): [True: 168k, False: 329]
  ------------------
  714|   168k|            unscaled *= jsoncons::powb(basic_bigint<Allocator>(5), k);
  715|       |
  716|   168k|        if (negative)
  ------------------
  |  Branch (716:13): [True: 155k, False: 13.0k]
  ------------------
  717|   155k|            unscaled = -unscaled;
  718|       |
  719|   168k|        value = basic_bigdec<Allocator>{
  720|   168k|            std::move(unscaled),
  721|   168k|            static_cast<int64_t>(k)
  722|   168k|        };
  723|   168k|        return;
  724|   168k|    }
  725|       |
  726|       |    // Round to max_decimal_places.
  727|       |    //
  728|       |    // m / 2^k * 10^scale
  729|       |    // = m * 5^scale / 2^(k-scale)
  730|       |
  731|  7.96k|    const uint64_t scale = max_decimal_places;
  732|  7.96k|    const uint64_t shift = k - scale;
  733|       |
  734|       |    // Conservative early-zero bound:
  735|       |    // 5^scale < 2^(3*scale).
  736|       |    //
  737|       |    // If shift >= bit_length(m) + 3*scale,
  738|       |    // the rounded result must be zero.
  739|  7.96k|    const uint128 bits = unscaled.bit_length();
  740|  7.96k|    const uint128 bound =
  741|  7.96k|        bits + static_cast<uint128>(3) * scale;
  742|       |
  743|  7.96k|    if (static_cast<uint128>(shift) >= bound) {
  ------------------
  |  Branch (743:9): [True: 1.32k, False: 6.63k]
  ------------------
  744|  1.32k|        value = basic_bigdec<Allocator>{
  745|  1.32k|            basic_bigint<Allocator>(0),
  746|  1.32k|            static_cast<int64_t>(scale)
  747|  1.32k|        };
  748|  1.32k|        return;
  749|  1.32k|    }
  750|       |
  751|       |    // Compute scaled positive magnitude.
  752|  6.63k|    unscaled *= jsoncons::powb(basic_bigint<Allocator>(5), scale);
  753|       |
  754|       |    // Round unscaled / 2^shift using HALF_EVEN.
  755|  6.63k|    basic_bigint<Allocator> quotient = unscaled;
  756|  6.63k|    quotient >>= (shift);
  757|       |
  758|  6.63k|    const bool halfBit = unscaled.test_bit(shift - 1);
  759|  6.63k|    const bool lowerBits = unscaled.any_low_bits(shift - 1);
  760|  6.63k|    const bool odd = quotient.test_bit(0);
  761|       |
  762|  6.63k|    if (halfBit && (lowerBits || odd))
  ------------------
  |  Branch (762:9): [True: 5.23k, False: 1.40k]
  |  Branch (762:21): [True: 4.21k, False: 1.02k]
  |  Branch (762:34): [True: 483, False: 539]
  ------------------
  763|  4.69k|        quotient += basic_bigint<Allocator>(1);
  764|       |
  765|  6.63k|    if (negative && !quotient.is_zero())
  ------------------
  |  Branch (765:9): [True: 3.14k, False: 3.49k]
  |  Branch (765:21): [True: 2.29k, False: 853]
  ------------------
  766|  2.29k|        quotient = -quotient;
  767|       |
  768|  6.63k|    value = basic_bigdec<Allocator> {
  769|  6.63k|        std::move(quotient),
  770|  6.63k|        static_cast<int64_t>(scale)
  771|  6.63k|    };
  772|  6.63k|    return;
  773|  7.96k|}
_ZN8jsoncons4cbor35from_cbor_bigfloat_positive_roundedINSt3__19allocatorImEEEEvNS_12basic_bigintIT_EEmmRNS_12basic_bigdecIS6_EERNS2_10error_codeE:
  545|   109k|{
  546|   109k|    if (precision == 0)
  ------------------
  |  Branch (546:9): [True: 0, False: 109k]
  ------------------
  547|      0|    {
  548|      0|        ec = cbor_errc::precison_must_be_positive;
  549|      0|        return;
  550|      0|    }
  551|       |
  552|   109k|    if (unscaled.is_zero())
  ------------------
  |  Branch (552:9): [True: 0, False: 109k]
  ------------------
  553|      0|    {
  554|      0|        value = {basic_bigint<Allocator>(0), 0};
  555|      0|        return;
  556|      0|    }
  557|       |
  558|   109k|    const bool negative = unscaled < basic_bigint<Allocator>(0);
  559|       |
  560|   109k|    if (negative)
  ------------------
  |  Branch (560:9): [True: 0, False: 109k]
  ------------------
  561|      0|        unscaled = -unscaled;
  562|       |
  563|       |    // decimalOrder = floor(log10(abs(m) * 2^e)).
  564|   109k|    const uint64_t decimalOrder = decimal_order(unscaled, exponent, ec);
  565|   109k|    if (ec) 
  ------------------
  |  Branch (565:9): [True: 0, False: 109k]
  ------------------
  566|      0|    {
  567|      0|    }
  568|       |
  569|       |    // The exact integer already fits the requested
  570|       |    // significant-digit precision.
  571|   109k|    if (static_cast<uint128>(decimalOrder) + 1 <=
  ------------------
  |  Branch (571:9): [True: 91.0k, False: 18.6k]
  ------------------
  572|   109k|        static_cast<uint128>(precision)) {
  573|       |
  574|  91.0k|        basic_bigdec<Allocator> result = compact_exact_positive(
  575|  91.0k|            std::move(unscaled), exponent
  576|  91.0k|        );
  577|       |
  578|  91.0k|        if (negative)
  ------------------
  |  Branch (578:13): [True: 0, False: 91.0k]
  ------------------
  579|      0|            result.set_negative(result.unscaled().is_negative() ? false : true);
  ------------------
  |  Branch (579:33): [True: 0, False: 0]
  ------------------
  580|       |
  581|  91.0k|        value = result;
  582|  91.0k|        return;
  583|  91.0k|    }
  584|       |
  585|       |    // Number of decimal places to discard.
  586|  18.6k|    uint64_t decimalShift =
  587|  18.6k|        decimalOrder - (precision - 1);
  588|       |
  589|  18.6k|    basic_bigint<Allocator> rounded = rounded_decimal_mantissa(
  590|  18.6k|        unscaled,
  591|  18.6k|        exponent,
  592|  18.6k|        decimalShift,
  593|  18.6k|        precision,
  594|  18.6k|        ec
  595|  18.6k|    );
  596|       |
  597|  18.6k|    if (JSONCONS_UNLIKELY(ec)) 
  ------------------
  |  |   79|  18.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 18.6k]
  |  |  ------------------
  ------------------
  598|      0|    {
  599|      0|        return;
  600|      0|    }
  601|       |
  602|       |    // Rounding can increase the digit count:
  603|       |    // 999 -> 1000, with precision 3.
  604|       |    //
  605|       |    // This power is only precision digits long,
  606|       |    // never exponent digits long.
  607|  18.6k|    const basic_bigint<Allocator> precisionLimit =
  608|  18.6k|        powb(basic_bigint<Allocator>(10), precision);
  609|       |
  610|  18.6k|    if (rounded >= precisionLimit) {
  ------------------
  |  Branch (610:9): [True: 0, False: 18.6k]
  ------------------
  611|      0|        if (rounded.divmod_small(10) != 0)
  ------------------
  |  Branch (611:13): [True: 0, False: 0]
  ------------------
  612|      0|        {
  613|      0|            ec = cbor_errc::bigfloat_invalid_rounding_carry;
  614|      0|            return;
  615|      0|        }
  616|       |
  617|      0|        ++decimalShift;
  618|      0|    }
  619|       |
  620|       |    // Remove trailing decimal zeros to minimize
  621|       |    // the resulting unscaled.
  622|  22.7k|    while (rounded.mod_small(10) == 0) {
  ------------------
  |  Branch (622:12): [True: 4.10k, False: 18.6k]
  ------------------
  623|  4.10k|        rounded.divmod_small(10);
  624|  4.10k|        ++decimalShift;
  625|  4.10k|    }
  626|       |
  627|       |    // scale = -decimalShift.
  628|       |    // Allow decimalShift == 2^63, which maps
  629|       |    // exactly to INT64_MIN.
  630|  18.6k|    constexpr uint64_t maxNegativeScaleMagnitude =
  631|  18.6k|        uint64_t(1) << 63;
  632|       |
  633|  18.6k|    if (decimalShift > maxNegativeScaleMagnitude)
  ------------------
  |  Branch (633:9): [True: 0, False: 18.6k]
  ------------------
  634|      0|    {
  635|      0|        ec = cbor_errc::bigfloat_decimal_scale_overflow;
  636|      0|        return;
  637|      0|    }
  638|       |
  639|  18.6k|    if (negative)
  ------------------
  |  Branch (639:9): [True: 0, False: 18.6k]
  ------------------
  640|      0|        rounded = -rounded;
  641|       |
  642|  18.6k|    const int64_t scale =
  643|  18.6k|        decimalShift == maxNegativeScaleMagnitude
  ------------------
  |  Branch (643:9): [True: 0, False: 18.6k]
  ------------------
  644|  18.6k|            ? INT64_MIN
  645|  18.6k|            : -static_cast<int64_t>(decimalShift);
  646|       |
  647|  18.6k|    value = basic_bigdec<Allocator> {
  648|  18.6k|        std::move(rounded),
  649|  18.6k|        scale
  650|  18.6k|    };
  651|  18.6k|    return;
  652|  18.6k|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_113decimal_orderINSt3__19allocatorImEEEEmRKNS_12basic_bigintIT_EEmRNS3_10error_codeE:
  298|   109k|{
  299|   109k|    const uint128 upper =
  300|   109k|        unscaled.bit_width() +
  301|   109k|        static_cast<uint128>(exponent);
  302|       |
  303|   109k|    if (upper > static_cast<uint128>(UINT64_MAX))
  ------------------
  |  Branch (303:9): [True: 0, False: 109k]
  ------------------
  304|      0|    {
  305|      0|        ec = cbor_errc::bigfloat_decimal_exponent_overflow;
  306|      0|        return 0;
  307|      0|    }
  308|       |
  309|   109k|    uint64_t low = 0;
  310|   109k|    uint64_t high = static_cast<uint64_t>(upper);
  311|       |
  312|       |    // The input is a positive integer, so it is >= 10^0.
  313|   740k|    while (low < high) 
  ------------------
  |  Branch (313:12): [True: 630k, False: 109k]
  ------------------
  314|   630k|    {
  315|   630k|        const uint64_t mid =
  316|   630k|            low + (high - low + 1) / 2;
  317|       |
  318|   630k|        if (compare_power10(
  ------------------
  |  Branch (318:13): [True: 266k, False: 363k]
  ------------------
  319|   630k|                unscaled, exponent, mid, ec) >= 0)
  320|   266k|            low = mid;
  321|   363k|        else
  322|   363k|            high = mid - 1;
  323|   630k|        if (JSONCONS_UNLIKELY(ec)) {
  ------------------
  |  |   79|   630k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 630k]
  |  |  ------------------
  ------------------
  324|      0|            return low;
  325|      0|        }
  326|   630k|    }
  327|       |
  328|   109k|    return low;
  329|   109k|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_115compare_power10INSt3__19allocatorImEEEEiRKNS_12basic_bigintIT_EEmmRNS3_10error_codeE:
  243|   630k|{
  244|   630k|    uint64_t workingBits = 128;
  245|       |
  246|   630k|    for (;;) {
  247|   630k|        const binary_interval<Allocator> value = exact_interval(
  248|   630k|            unscaled,
  249|   630k|            static_cast<int128>(exponent),
  250|   630k|            workingBits
  251|   630k|        );
  252|       |
  253|   630k|        binary_interval<Allocator> power =
  254|   630k|            pow5_interval<Allocator>(k, workingBits);
  255|       |
  256|   630k|        power.exponent += static_cast<int128>(k);
  257|       |
  258|       |        // The entire value interval is below 10^k.
  259|   630k|        if (compare_scaled(
  ------------------
  |  Branch (259:13): [True: 363k, False: 266k]
  ------------------
  260|   630k|                value.hi, value.exponent,
  261|   630k|                power.lo, power.exponent,ec ) < 0)
  262|   363k|            return -1;
  263|       |
  264|       |        // The entire value interval is above 10^k.
  265|   266k|        if (compare_scaled(
  ------------------
  |  Branch (265:13): [True: 265k, False: 1.26k]
  ------------------
  266|   266k|                value.lo, value.exponent,
  267|   266k|                power.hi, power.exponent, ec) > 0)
  268|   265k|            return 1;
  269|       |
  270|       |        // Handle exact equality without endless refinement.
  271|  1.26k|        if (exactly_power_of_ten(unscaled, exponent, k, ec))
  ------------------
  |  Branch (271:13): [True: 1.26k, False: 0]
  ------------------
  272|  1.26k|            return 0;
  273|       |
  274|      0|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  275|      0|        {
  276|      0|            return 0;
  277|      0|        }
  278|       |
  279|      0|        if (workingBits > UINT64_MAX / 2)
  ------------------
  |  Branch (279:13): [True: 0, False: 0]
  ------------------
  280|      0|        {
  281|      0|            ec = cbor_errc::bigfloat_precision_overflow;
  282|      0|            return 0;
  283|      0|        }
  284|       |
  285|      0|        workingBits *= 2;
  286|      0|    }
  287|   630k|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_114exact_intervalINSt3__19allocatorImEEEENS1_15binary_intervalIT_EERKNS_12basic_bigintIS7_EEnm:
  147|  1.94M|{
  148|  1.94M|    binary_interval<Allocator> result{
  149|  1.94M|        value, value, exponent
  150|  1.94M|    };
  151|       |
  152|  1.94M|    normalize_interval(result, workingBits);
  153|  1.94M|    return result;
  154|  1.94M|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_118normalize_intervalINSt3__19allocatorImEEEEvRNS1_15binary_intervalIT_EEm:
  121|  8.06M|{
  122|  8.06M|    const uint128 n = x.hi.bit_length();
  123|       |
  124|  8.06M|    if (n <= workingBits)
  ------------------
  |  Branch (124:9): [True: 5.92M, False: 2.13M]
  ------------------
  125|  5.92M|        return;
  126|       |
  127|  2.13M|    const uint64_t shift =
  128|  2.13M|        static_cast<uint64_t>(n - workingBits);
  129|       |
  130|  2.13M|    const bool upperDiscarded =
  131|  2.13M|        x.hi.any_low_bits(shift);
  132|       |
  133|  2.13M|    x.lo >>= (shift);
  134|  2.13M|    x.hi >>= (shift);
  135|       |
  136|  2.13M|    if (upperDiscarded)
  ------------------
  |  Branch (136:9): [True: 2.13M, False: 4.55k]
  ------------------
  137|  2.13M|        x.hi += basic_bigint<Allocator>(1);
  138|       |
  139|  2.13M|    x.exponent += static_cast<int128>(shift);
  140|  2.13M|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_113pow5_intervalINSt3__19allocatorImEEEENS1_15binary_intervalIT_EEmm:
  177|   649k|{
  178|   649k|    binary_interval<Allocator> result =
  179|   649k|        exact_interval(basic_bigint<Allocator>(1), 0, workingBits);
  180|       |
  181|   649k|    binary_interval<Allocator> base =
  182|   649k|        exact_interval(basic_bigint<Allocator>(5), 0, workingBits);
  183|       |
  184|  5.02M|    while (exponent != 0) {
  ------------------
  |  Branch (184:12): [True: 4.37M, False: 649k]
  ------------------
  185|  4.37M|        if (exponent & 1) {
  ------------------
  |  Branch (185:13): [True: 2.39M, False: 1.98M]
  ------------------
  186|  2.39M|            result = multiply_intervals(
  187|  2.39M|                result, base, workingBits
  188|  2.39M|            );
  189|  2.39M|        }
  190|       |
  191|  4.37M|        exponent >>= 1;
  192|       |
  193|  4.37M|        if (exponent != 0) {
  ------------------
  |  Branch (193:13): [True: 3.72M, False: 649k]
  ------------------
  194|  3.72M|            base = multiply_intervals(
  195|  3.72M|                base, base, workingBits
  196|  3.72M|            );
  197|  3.72M|        }
  198|  4.37M|    }
  199|       |
  200|   649k|    return result;
  201|   649k|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_118multiply_intervalsINSt3__19allocatorImEEEENS1_15binary_intervalIT_EERKS8_SA_m:
  161|  6.11M|{
  162|  6.11M|    binary_interval<Allocator> result{
  163|  6.11M|        a.lo * b.lo,
  164|  6.11M|        a.hi * b.hi,
  165|  6.11M|        a.exponent + b.exponent
  166|  6.11M|    };
  167|       |
  168|  6.11M|    normalize_interval(result, workingBits);
  169|  6.11M|    return result;
  170|  6.11M|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_114compare_scaledINSt3__19allocatorImEEEEiRKNS_12basic_bigintIT_EEnSA_nRNS3_10error_codeE:
   58|   898k|{
   59|   898k|    const int128 alen =
   60|   898k|        static_cast<int128>(a.bit_length());
   61|   898k|    const int128 blen =
   62|   898k|        static_cast<int128>(b.bit_length());
   63|       |
   64|   898k|    if (alen == 0 || blen == 0) {
  ------------------
  |  Branch (64:9): [True: 0, False: 898k]
  |  Branch (64:22): [True: 0, False: 898k]
  ------------------
   65|      0|        if (alen == blen) return 0;
  ------------------
  |  Branch (65:13): [True: 0, False: 0]
  ------------------
   66|      0|        return alen == 0 ? -1 : 1;
  ------------------
  |  Branch (66:16): [True: 0, False: 0]
  ------------------
   67|      0|    }
   68|       |
   69|   898k|    const int128 atop = alen + ae;
   70|   898k|    const int128 btop = blen + be;
   71|       |
   72|   898k|    if (atop != btop)
  ------------------
  |  Branch (72:9): [True: 830k, False: 67.4k]
  ------------------
   73|   830k|        return atop < btop ? -1 : 1;
  ------------------
  |  Branch (73:16): [True: 360k, False: 470k]
  ------------------
   74|       |
   75|       |    // Equal effective bit lengths imply that the
   76|       |    // required alignment shift is bounded by the
   77|       |    // sizes of a and b, not by the huge exponent.
   78|  67.4k|    if (ae > be) {
  ------------------
  |  Branch (78:9): [True: 43.7k, False: 23.6k]
  ------------------
   79|  43.7k|        const int128 delta = ae - be;
   80|       |
   81|  43.7k|        if (delta > static_cast<int128>(UINT64_MAX))
  ------------------
  |  Branch (81:13): [True: 0, False: 43.7k]
  ------------------
   82|      0|        {
   83|      0|            ec = cbor_errc::bigfloat_shift_too_large;
   84|      0|            return 0;
   85|      0|        }
   86|       |
   87|  43.7k|        basic_bigint<Allocator> aligned = a;
   88|  43.7k|        aligned <<= (static_cast<uint64_t>(delta));
   89|       |
   90|  43.7k|        if (aligned < b) return -1;
  ------------------
  |  Branch (90:13): [True: 1.28k, False: 42.4k]
  ------------------
   91|  42.4k|        if (aligned > b) return 1;
  ------------------
  |  Branch (91:13): [True: 42.4k, False: 0]
  ------------------
   92|      0|        return 0;
   93|  42.4k|    }
   94|       |
   95|  23.6k|    if (be > ae) {
  ------------------
  |  Branch (95:9): [True: 20.3k, False: 3.31k]
  ------------------
   96|  20.3k|        const int128 delta = be - ae;
   97|       |
   98|  20.3k|        if (delta > static_cast<int128>(UINT64_MAX))
  ------------------
  |  Branch (98:13): [True: 0, False: 20.3k]
  ------------------
   99|      0|        {
  100|      0|            ec = cbor_errc::bigfloat_shift_too_large;
  101|      0|            return 0;
  102|      0|        }
  103|       |
  104|  20.3k|        basic_bigint<Allocator> aligned = b;
  105|  20.3k|        aligned <<= (static_cast<uint64_t>(delta));
  106|       |
  107|  20.3k|        if (a < aligned) return -1;
  ------------------
  |  Branch (107:13): [True: 1.58k, False: 18.7k]
  ------------------
  108|  18.7k|        if (a > aligned) return 1;
  ------------------
  |  Branch (108:13): [True: 16.7k, False: 1.99k]
  ------------------
  109|  1.99k|        return 0;
  110|  18.7k|    }
  111|       |
  112|  3.31k|    if (a < b) return -1;
  ------------------
  |  Branch (112:9): [True: 319, False: 2.99k]
  ------------------
  113|  2.99k|    if (a > b) return 1;
  ------------------
  |  Branch (113:9): [True: 1.19k, False: 1.80k]
  ------------------
  114|  1.80k|    return 0;
  115|  2.99k|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_120exactly_power_of_tenINSt3__19allocatorImEEEEbRKNS_12basic_bigintIT_EEmmRNS3_10error_codeE:
  215|  1.26k|{
  216|       |    // 10^k = 5^k * 2^k.
  217|       |    // An integer unscaled cannot compensate for
  218|       |    // more powers of 2 on the left.
  219|  1.26k|    if (exponent > k)
  ------------------
  |  Branch (219:9): [True: 0, False: 1.26k]
  ------------------
  220|      0|        return false;
  221|       |
  222|       |    // 5^k has more than k bits for k > 0.
  223|       |    // Avoid allocating an enormous power.
  224|  1.26k|    if (static_cast<uint128>(k) >
  ------------------
  |  Branch (224:9): [True: 0, False: 1.26k]
  ------------------
  225|  1.26k|        unscaled.bit_length())
  226|      0|        return false;
  227|       |
  228|  1.26k|    const basic_bigint<Allocator> power5 =
  229|  1.26k|        powb(basic_bigint<Allocator>(5), k);
  230|       |
  231|  1.26k|    return compare_scaled(
  232|  1.26k|        unscaled, static_cast<int128>(exponent),
  233|  1.26k|        power5, static_cast<int128>(k), ec) == 0;
  234|  1.26k|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_122compact_exact_positiveINSt3__19allocatorImEEEENS_12basic_bigdecIT_EENS_12basic_bigintIS7_EEm:
  519|  91.0k|{
  520|  91.0k|    uint64_t canceled = 0;
  521|       |
  522|   154k|    while (canceled < exponent &&
  ------------------
  |  Branch (522:12): [True: 153k, False: 1.44k]
  ------------------
  523|   153k|           unscaled.mod_small(5) == 0) {
  ------------------
  |  Branch (523:12): [True: 63.6k, False: 89.5k]
  ------------------
  524|  63.6k|        unscaled.divmod_small(5);
  525|  63.6k|        ++canceled;
  526|  63.6k|    }
  527|       |
  528|  91.0k|    unscaled <<= (exponent - canceled);
  529|       |
  530|  91.0k|    return {
  531|  91.0k|        std::move(unscaled),
  532|  91.0k|        -static_cast<int64_t>(canceled)
  533|  91.0k|    };
  534|  91.0k|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_124rounded_decimal_mantissaINSt3__19allocatorImEEEENS_12basic_bigintIT_EERKS8_mmmRNS3_10error_codeE:
  449|  18.6k|{
  450|  18.6k|    if (precision > (UINT64_MAX - 128) / 4)
  ------------------
  |  Branch (450:9): [True: 0, False: 18.6k]
  ------------------
  451|      0|    {
  452|      0|        ec = cbor_errc::bigfloat_precision_overflow;
  453|      0|        return basic_bigint<Allocator>{};
  454|      0|    }
  455|       |
  456|  18.6k|    uint64_t workingBits =
  457|  18.6k|        std::max<uint64_t>(128, precision * 4 + 128);
  458|       |
  459|  18.6k|    for (;;) {
  460|  18.6k|        const binary_interval<Allocator> value = exact_interval(
  461|  18.6k|            unscaled,
  462|  18.6k|            static_cast<int128>(exponent),
  463|  18.6k|            workingBits
  464|  18.6k|        );
  465|       |
  466|  18.6k|        const binary_interval<Allocator> power =
  467|  18.6k|            pow5_interval<Allocator>(d, workingBits);
  468|       |
  469|  18.6k|        const int128 shift =
  470|  18.6k|            value.exponent -
  471|  18.6k|            power.exponent -
  472|  18.6k|            static_cast<int128>(d);
  473|       |
  474|  18.6k|        const basic_bigint<Allocator> lower = round_scaled_ratio(
  475|  18.6k|            value.lo, power.hi, shift, ec
  476|  18.6k|        );
  477|       |
  478|  18.6k|        const basic_bigint<Allocator> upper = round_scaled_ratio(
  479|  18.6k|            value.hi, power.lo, shift, ec
  480|  18.6k|        );
  481|  18.6k|        if (JSONCONS_UNLIKELY(ec)) 
  ------------------
  |  |   79|  18.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 18.6k]
  |  |  ------------------
  ------------------
  482|      0|        {
  483|      0|            return lower;
  484|      0|        }
  485|       |
  486|  18.6k|        if (lower == upper)
  ------------------
  |  Branch (486:13): [True: 18.6k, False: 0]
  ------------------
  487|  18.6k|            return lower;
  488|       |
  489|       |        // Exact ties can otherwise remain ambiguous forever.
  490|      0|        basic_bigint<Allocator> next = lower;
  491|      0|        next += basic_bigint<Allocator>(1);
  492|       |
  493|      0|        if (upper == next &&
  ------------------
  |  Branch (493:13): [True: 0, False: 0]
  ------------------
  494|      0|            exactly_halfway(unscaled, exponent, d, lower, ec)) {
  ------------------
  |  Branch (494:13): [True: 0, False: 0]
  ------------------
  495|      0|            return lower.test_bit(0) ? upper : lower;
  ------------------
  |  Branch (495:20): [True: 0, False: 0]
  ------------------
  496|      0|        }
  497|      0|        if (JSONCONS_UNLIKELY(ec)) 
  ------------------
  |  |   79|      0|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  498|      0|        {
  499|      0|            return lower;
  500|      0|        }
  501|       |
  502|      0|        if (workingBits > UINT64_MAX / 2)
  ------------------
  |  Branch (502:13): [True: 0, False: 0]
  ------------------
  503|      0|        {
  504|      0|            ec = cbor_errc::bigfloat_precision_overflow;
  505|      0|            return lower;
  506|      0|        }
  507|       |
  508|      0|        workingBits *= 2;
  509|      0|    }
  510|  18.6k|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_118round_scaled_ratioINSt3__19allocatorImEEEENS_12basic_bigintIT_EES8_S8_nRNS3_10error_codeE:
  366|  37.3k|{
  367|  37.3k|    if (binaryShift >= 0) {
  ------------------
  |  Branch (367:9): [True: 32.5k, False: 4.70k]
  ------------------
  368|  32.5k|        if (binaryShift > static_cast<int128>(UINT64_MAX))
  ------------------
  |  Branch (368:13): [True: 0, False: 32.5k]
  ------------------
  369|      0|        {
  370|      0|            ec = cbor_errc::bigfloat_shift_too_large;
  371|      0|            return basic_bigint<Allocator>{};
  372|      0|        }
  373|       |
  374|  32.5k|        numerator <<= (
  375|  32.5k|            static_cast<uint64_t>(binaryShift));
  376|  32.5k|    } else {
  377|  4.70k|        const int128 amount = -binaryShift;
  378|       |
  379|  4.70k|        if (amount > static_cast<int128>(UINT64_MAX))
  ------------------
  |  Branch (379:13): [True: 0, False: 4.70k]
  ------------------
  380|      0|        {
  381|      0|            ec = cbor_errc::bigfloat_shift_too_large;
  382|      0|            return basic_bigint<Allocator>{};
  383|      0|        }
  384|       |
  385|  4.70k|        denominator <<= (
  386|  4.70k|            static_cast<uint64_t>(amount));
  387|  4.70k|    }
  388|       |
  389|  37.3k|    return divide_round_even(numerator, denominator);
  390|  37.3k|}
fuzz_cbor.cpp:_ZN8jsoncons4cbor12_GLOBAL__N_117divide_round_evenINSt3__19allocatorImEEEENS_12basic_bigintIT_EERKS8_SA_:
  337|  37.3k|{
  338|  37.3k|    basic_bigint<Allocator> remainder;
  339|       |
  340|  37.3k|    basic_bigint<Allocator> quotient;
  341|  37.3k|    numerator.divide(denominator, quotient, remainder, true);
  342|       |
  343|  37.3k|    remainder <<= (1);
  344|       |
  345|  37.3k|    if (remainder > denominator ||
  ------------------
  |  Branch (345:9): [True: 21.3k, False: 15.9k]
  ------------------
  346|  15.9k|        (remainder == denominator &&
  ------------------
  |  Branch (346:10): [True: 442, False: 15.4k]
  ------------------
  347|  21.6k|         quotient.test_bit(0))) {
  ------------------
  |  Branch (347:10): [True: 236, False: 206]
  ------------------
  348|  21.6k|        quotient += basic_bigint<Allocator>(1);
  349|  21.6k|    }
  350|       |
  351|  37.3k|    return quotient;
  352|  37.3k|}
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE19read_mdarray_headerERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 3514|  16.0k|    {
 3515|  16.0k|        uint8_t initial_byte;
 3516|  16.0k|        if (source_.read(&initial_byte, 1) == 0)
  ------------------
  |  Branch (3516:13): [True: 0, False: 16.0k]
  ------------------
 3517|      0|        {
 3518|      0|            ec = cbor_errc::unexpected_eof;
 3519|      0|            more_ = false;
 3520|      0|            return;
 3521|      0|        }
 3522|       |
 3523|  16.0k|        jsoncons::cbor::cbor_major_type major_type = get_major_type(initial_byte);
 3524|  16.0k|        JSONCONS_ASSERT(major_type == jsoncons::cbor::cbor_major_type::array);
  ------------------
  |  |   67|  16.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 16.0k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
 3525|  16.0k|        uint8_t info = get_additional_info(initial_byte);
 3526|  16.0k|        if (info != jsoncons::cbor::detail::additional_info::indefinite_length && info != 2)
  ------------------
  |  Branch (3526:13): [True: 8.58k, False: 7.50k]
  |  Branch (3526:83): [True: 39, False: 8.54k]
  ------------------
 3527|     39|        {
 3528|     39|            ec = cbor_errc::invalid_mdarray_header;
 3529|     39|            more_ = false;
 3530|     39|            return;
 3531|     39|        }
 3532|       |
 3533|  16.0k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  23.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 16.0k]
  |  |  |  Branch (79:50): [True: 7.50k, False: 8.54k]
  |  |  |  Branch (79:50): [True: 0, False: 7.50k]
  |  |  ------------------
  ------------------
 3534|      0|        {
 3535|      0|            ec = cbor_errc::reserved_additional_info;
 3536|      0|            more_ = false;
 3537|      0|            return;
 3538|      0|        }
 3539|       |       
 3540|  16.0k|        read_extents(ec);   
 3541|  16.0k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  16.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 270, False: 15.7k]
  |  |  ------------------
  ------------------
 3542|    270|        {
 3543|    270|            return;
 3544|    270|        }
 3545|       |
 3546|  15.7k|        read_tags(ec);
 3547|  15.7k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  15.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 32, False: 15.7k]
  |  |  ------------------
  ------------------
 3548|     32|        {
 3549|     32|            return;
 3550|     32|        }
 3551|  15.7k|        auto c = source_.peek();
 3552|  15.7k|        if (JSONCONS_UNLIKELY(c.eof))
  ------------------
  |  |   79|  15.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 15.7k]
  |  |  ------------------
  ------------------
 3553|      0|        {
 3554|      0|            ec = cbor_errc::unexpected_eof;
 3555|      0|            more_ = false;
 3556|      0|            return;
 3557|      0|        }
 3558|  15.7k|        major_type = get_major_type(c.value);
 3559|  15.7k|        info = get_additional_info(c.value);
 3560|  15.7k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  17.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 15.7k]
  |  |  |  Branch (79:50): [True: 1.75k, False: 13.9k]
  |  |  |  Branch (79:50): [True: 3, False: 1.74k]
  |  |  ------------------
  ------------------
 3561|      3|        {
 3562|      3|            ec = cbor_errc::reserved_additional_info;
 3563|      3|            more_ = false;
 3564|      3|            return;
 3565|      3|        }
 3566|  15.7k|        state_stack_.emplace_back(parse_mode::multi_dim, 0);
 3567|  15.7k|        ++state_stack_.back().index;
 3568|       |
 3569|  15.7k|        if (major_type == jsoncons::cbor::cbor_major_type::array && order_ == mdarray_order::row_major) 
  ------------------
  |  Branch (3569:13): [True: 6.18k, False: 9.55k]
  |  Branch (3569:69): [True: 3.56k, False: 2.61k]
  ------------------
 3570|  3.56k|        {
 3571|  3.56k|            source_.ignore(1);
 3572|  3.56k|            begin_classical_array_storage(info, ec);
 3573|  3.56k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  3.56k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 3.55k]
  |  |  ------------------
  ------------------
 3574|      4|            {
 3575|      4|                return;
 3576|      4|            }
 3577|  3.55k|            auto iter = std::make_shared<cbor_mdarray_row_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, max_dimensions_, alloc_);
 3578|  3.55k|            typed_array_stack_.push_back(iter);
 3579|  3.55k|            if (!iter->done())
  ------------------
  |  Branch (3579:17): [True: 3.55k, False: 0]
  ------------------
 3580|  3.55k|            {
 3581|  3.55k|                iter->next(visitor, *this, ec);
 3582|  3.55k|            }
 3583|  3.55k|        }
 3584|  12.1k|        else if (major_type == jsoncons::cbor::cbor_major_type::array && order_ == mdarray_order::column_major) 
  ------------------
  |  Branch (3584:18): [True: 2.61k, False: 9.55k]
  |  Branch (3584:74): [True: 2.61k, False: 0]
  ------------------
 3585|  2.61k|        {
 3586|  2.61k|            source_.ignore(1);
 3587|  2.61k|            begin_classical_array_storage(info, ec);
 3588|  2.61k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.61k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 2.61k]
  |  |  ------------------
  ------------------
 3589|      4|            {
 3590|      4|                return;
 3591|      4|            }
 3592|  2.61k|            auto iter = std::make_shared<cbor_mdarray_column_major_iterator<Source,Allocator>>(extents_, this, cursor_mode_, max_dimensions_, alloc_);
 3593|  2.61k|            typed_array_stack_.push_back(iter);
 3594|  2.61k|            if (!iter->done())
  ------------------
  |  Branch (3594:17): [True: 2.61k, False: 0]
  ------------------
 3595|  2.61k|            {
 3596|  2.61k|                iter->next(visitor, *this, ec);
 3597|  2.61k|            }
 3598|  2.61k|        }
 3599|  9.55k|        else if (major_type == jsoncons::cbor::cbor_major_type::byte_string)
  ------------------
  |  Branch (3599:18): [True: 9.47k, False: 79]
  ------------------
 3600|  9.47k|        {
 3601|  9.47k|            std::size_t typed_array_count = typed_array_stack_.size();
 3602|  9.47k|            read_byte_string_from_source read(this);
 3603|  9.47k|            read_byte_string(read, visitor, ec);
 3604|  9.47k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  9.47k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 557, False: 8.92k]
  |  |  ------------------
  ------------------
 3605|    557|            {
 3606|    557|                return;
 3607|    557|            }
 3608|  8.92k|            if (typed_array_stack_.size() == typed_array_count)
  ------------------
  |  Branch (3608:17): [True: 6, False: 8.91k]
  ------------------
 3609|      6|            {
 3610|       |                // Byte string storage must be a typed array
 3611|      6|                ec = cbor_errc::invalid_mdarray;
 3612|      6|                return;
 3613|      6|            }
 3614|  8.92k|        }
 3615|     79|        else
 3616|     79|        {
 3617|     79|            ec = cbor_errc::invalid_mdarray;
 3618|     79|            return;
 3619|     79|        }
 3620|       |        // cursor case
 3621|  15.7k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12read_extentsERNS3_10error_codeE:
 3624|  16.0k|    {
 3625|  16.0k|        extents_.clear();
 3626|       |
 3627|  16.0k|        auto b = source_.peek();
 3628|  16.0k|        if (JSONCONS_UNLIKELY(b.eof))
  ------------------
  |  |   79|  16.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7, False: 16.0k]
  |  |  ------------------
  ------------------
 3629|      7|        {
 3630|      7|            ec = cbor_errc::unexpected_eof;
 3631|      7|            more_ = false;
 3632|      7|            return;
 3633|      7|        }
 3634|  16.0k|        if (get_major_type(b.value) != jsoncons::cbor::cbor_major_type::array)
  ------------------
  |  Branch (3634:13): [True: 24, False: 16.0k]
  ------------------
 3635|     24|        {
 3636|     24|            ec = cbor_errc::bad_extents;
 3637|     24|            more_ = false;
 3638|     24|            return;
 3639|     24|        }
 3640|  16.0k|        uint8_t info = get_additional_info(b.value);
 3641|  16.0k|        if (JSONCONS_UNLIKELY(info >= 0x1C && info <= 0x1E))
  ------------------
  |  |   79|  18.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1, False: 16.0k]
  |  |  |  Branch (79:50): [True: 2.73k, False: 13.2k]
  |  |  |  Branch (79:50): [True: 1, False: 2.73k]
  |  |  ------------------
  ------------------
 3642|      1|        {
 3643|      1|            ec = cbor_errc::reserved_additional_info;
 3644|      1|            more_ = false;
 3645|      1|            return;
 3646|      1|        }
 3647|       |
 3648|  16.0k|        source_.ignore(1);
 3649|  16.0k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (3649:13): [True: 2.73k, False: 13.2k]
  ------------------
 3650|  2.73k|        {
 3651|  2.73k|            bool done = false;
 3652|  2.84M|            while (!done)
  ------------------
  |  Branch (3652:20): [True: 2.83M, False: 2.67k]
  ------------------
 3653|  2.83M|            {
 3654|  2.83M|                auto initial_byte = source_.peek();
 3655|  2.83M|                if (JSONCONS_UNLIKELY(initial_byte.eof))
  ------------------
  |  |   79|  2.83M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 23, False: 2.83M]
  |  |  ------------------
  ------------------
 3656|     23|                {
 3657|     23|                    ec = cbor_errc::unexpected_eof;
 3658|     23|                    more_ = false;
 3659|     23|                    return;
 3660|     23|                }
 3661|  2.83M|                if (initial_byte.value == 0xff)
  ------------------
  |  Branch (3661:21): [True: 2.67k, False: 2.83M]
  ------------------
 3662|  2.67k|                {
 3663|  2.67k|                    source_.ignore(1);
 3664|  2.67k|                    done = true;
 3665|  2.67k|                }
 3666|  2.83M|                else
 3667|  2.83M|                {
 3668|  2.83M|                    if (JSONCONS_UNLIKELY(get_major_type(initial_byte.value) != jsoncons::cbor::cbor_major_type::unsigned_integer))
  ------------------
  |  |   79|  2.83M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 34, False: 2.83M]
  |  |  ------------------
  ------------------
 3669|     34|                    {
 3670|     34|                        ec = cbor_errc::expected_unsigned_integer;
 3671|     34|                        more_ = false;
 3672|     34|                        return;
 3673|     34|                    }
 3674|  2.83M|                    source_.ignore(1);
 3675|  2.83M|                    std::size_t extent = read_size(get_additional_info(initial_byte.value), ec);
 3676|  2.83M|                    if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.83M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 2.83M]
  |  |  ------------------
  ------------------
 3677|      2|                    {
 3678|      2|                        more_ = false;
 3679|      2|                        return;
 3680|      2|                    }
 3681|  2.83M|                    extents_.push_back(extent);
 3682|  2.83M|                }
 3683|  2.83M|            }
 3684|  2.73k|        }
 3685|  13.2k|        else 
 3686|  13.2k|        {
 3687|  13.2k|            std::size_t size = read_size(info, ec);
 3688|  13.2k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  13.2k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 13.2k]
  |  |  ------------------
  ------------------
 3689|      2|            {
 3690|      2|                more_ = false;
 3691|      2|                return;
 3692|      2|            }
 3693|       |
 3694|   757k|            for (std::size_t i = 0; more_ && i < size; ++i)
  ------------------
  |  Branch (3694:37): [True: 757k, False: 0]
  |  Branch (3694:46): [True: 744k, False: 13.1k]
  ------------------
 3695|   744k|            {
 3696|   744k|                uint8_t initial_byte;
 3697|   744k|                if (source_.read(&initial_byte, 1) == 0)
  ------------------
  |  Branch (3697:21): [True: 67, False: 743k]
  ------------------
 3698|     67|                {
 3699|     67|                    ec = cbor_errc::unexpected_eof;
 3700|     67|                    more_ = false;
 3701|     67|                    return;
 3702|     67|                }
 3703|   743k|                if (JSONCONS_UNLIKELY(get_major_type(initial_byte) != jsoncons::cbor::cbor_major_type::unsigned_integer))
  ------------------
  |  |   79|   743k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 71, False: 743k]
  |  |  ------------------
  ------------------
 3704|     71|                {
 3705|     71|                    ec = cbor_errc::expected_unsigned_integer;
 3706|     71|                    more_ = false;
 3707|     71|                    return;
 3708|     71|                }
 3709|   743k|                uint8_t item_info = get_additional_info(initial_byte);
 3710|   743k|                if (JSONCONS_UNLIKELY(item_info >= 0x1C && item_info <= 0x1E))
  ------------------
  |  |   79|   743k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 743k]
  |  |  |  Branch (79:50): [True: 3, False: 743k]
  |  |  |  Branch (79:50): [True: 2, False: 1]
  |  |  ------------------
  ------------------
 3711|      2|                {
 3712|      2|                    ec = cbor_errc::reserved_additional_info;
 3713|      2|                    more_ = false;
 3714|      2|                    return;
 3715|      2|                }
 3716|   743k|                std::size_t extent = read_size(item_info, ec);
 3717|   743k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|   743k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 743k]
  |  |  ------------------
  ------------------
 3718|      2|                {
 3719|      2|                    more_ = false;
 3720|      2|                    return;
 3721|      2|                }
 3722|   743k|                extents_.push_back(extent);
 3723|   743k|            }
 3724|  13.2k|        }
 3725|  15.8k|        auto r = calculate_mdarray_size(extents_);
 3726|  15.8k|        if (!r || *r == 0)
  ------------------
  |  Branch (3726:13): [True: 30, False: 15.7k]
  |  Branch (3726:19): [True: 5, False: 15.7k]
  ------------------
 3727|     35|        {
 3728|     35|            ec = cbor_errc::bad_extents;
 3729|     35|            more_ = false;
 3730|     35|            return;
 3731|     35|        }
 3732|  15.7k|        mdarray_size_ = *r;
 3733|  15.7k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE29begin_classical_array_storageEhRNS3_10error_codeE:
 1741|  6.18k|    {
 1742|  6.18k|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  6.18k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 2, False: 6.17k]
  |  |  ------------------
  ------------------
 1743|      2|        {
 1744|      2|            ec = cbor_errc::max_nesting_depth_exceeded;
 1745|      2|            more_ = false;
 1746|      2|            return;
 1747|      2|        }
 1748|  6.17k|        bool pop_stringref_map_stack = false;
 1749|  6.17k|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1749:13): [True: 824, False: 5.35k]
  ------------------
 1750|    824|        {
 1751|    824|            stringref_map_stack_.emplace_back();
 1752|    824|            other_tags_[stringref_namespace_tag] = false;
 1753|    824|            pop_stringref_map_stack = true;
 1754|    824|        }
 1755|  6.17k|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1755:13): [True: 1.73k, False: 4.44k]
  ------------------
 1756|  1.73k|        {
 1757|  1.73k|            state_stack_.emplace_back(parse_mode::indefinite_array, 0, pop_stringref_map_stack);
 1758|  1.73k|        }
 1759|  4.44k|        else // definite length
 1760|  4.44k|        {
 1761|  4.44k|            std::size_t len = read_size(info, ec);
 1762|  4.44k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  4.44k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 4.44k]
  |  |  ------------------
  ------------------
 1763|      6|            {
 1764|      6|                return;
 1765|      6|            }
 1766|  4.44k|            state_stack_.emplace_back(parse_mode::array, len, pop_stringref_map_stack);
 1767|  4.44k|        }
 1768|  6.17k|        more_ = !cursor_mode_;
 1769|  6.17k|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1678|  8.76M|    {
 1679|  8.76M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  8.76M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 8.76M]
  |  |  ------------------
  ------------------
 1680|      6|        {
 1681|      6|            ec = cbor_errc::max_nesting_depth_exceeded;
 1682|      6|            more_ = false;
 1683|      6|            return;
 1684|      6|        } 
 1685|  8.76M|        semantic_tag tag = semantic_tag::none;
 1686|  8.76M|        bool pop_stringref_map_stack = false;
 1687|  8.76M|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1687:13): [True: 7.93k, False: 8.75M]
  ------------------
 1688|  7.93k|        {
 1689|  7.93k|            stringref_map_stack_.emplace_back();
 1690|  7.93k|            other_tags_[stringref_namespace_tag] = false;
 1691|  7.93k|            pop_stringref_map_stack = true;
 1692|  7.93k|        }
 1693|  8.76M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1693:13): [True: 43.1k, False: 8.72M]
  ------------------
 1694|  43.1k|        {
 1695|  43.1k|            state_stack_.emplace_back(parse_mode::indefinite_array,0,pop_stringref_map_stack);
 1696|  43.1k|            visitor.begin_array(tag, *this, ec);
 1697|  43.1k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  43.1k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 43.1k]
  |  |  ------------------
  ------------------
 1698|      0|            {
 1699|      0|                return;
 1700|      0|            }
 1701|  43.1k|        }
 1702|  8.72M|        else // definite length
 1703|  8.72M|        {
 1704|  8.72M|            std::size_t len = read_size(info, ec);
 1705|  8.72M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.72M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 42, False: 8.72M]
  |  |  ------------------
  ------------------
 1706|     42|            {
 1707|     42|                return;
 1708|     42|            }
 1709|  8.72M|            state_stack_.emplace_back(parse_mode::array,len,pop_stringref_map_stack);
 1710|  8.72M|            visitor.begin_array(len, tag, *this, ec);
 1711|  8.72M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.72M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.72M]
  |  |  ------------------
  ------------------
 1712|      0|            {
 1713|      0|                return;
 1714|      0|            }
 1715|  8.72M|        }
 1716|  8.76M|        more_ = !cursor_mode_;
 1717|  8.76M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12begin_objectEhRNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1788|  8.03M|    {
 1789|  8.03M|        if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
  ------------------
  |  |   79|  8.03M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 8.03M]
  |  |  ------------------
  ------------------
 1790|      5|        {
 1791|      5|            ec = cbor_errc::max_nesting_depth_exceeded;
 1792|      5|            more_ = false;
 1793|      5|            return;
 1794|      5|        } 
 1795|  8.03M|        bool pop_stringref_map_stack = false;
 1796|  8.03M|        if (other_tags_[stringref_namespace_tag])
  ------------------
  |  Branch (1796:13): [True: 2.72k, False: 8.03M]
  ------------------
 1797|  2.72k|        {
 1798|  2.72k|            stringref_map_stack_.emplace_back();
 1799|  2.72k|            other_tags_[stringref_namespace_tag] = false;
 1800|  2.72k|            pop_stringref_map_stack = true;
 1801|  2.72k|        }
 1802|  8.03M|        if (info == jsoncons::cbor::detail::additional_info::indefinite_length)
  ------------------
  |  Branch (1802:13): [True: 54.6k, False: 7.97M]
  ------------------
 1803|  54.6k|        {
 1804|  54.6k|            state_stack_.emplace_back(parse_mode::indefinite_map_key,0,pop_stringref_map_stack);
 1805|  54.6k|            visitor.begin_object(semantic_tag::none, *this, ec);
 1806|  54.6k|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  54.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 54.6k]
  |  |  ------------------
  ------------------
 1807|      0|            {
 1808|      0|                return;
 1809|      0|            }
 1810|  54.6k|        }
 1811|  7.97M|        else // definite_length
 1812|  7.97M|        {
 1813|  7.97M|            std::size_t len = read_size(info, ec);
 1814|  7.97M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.97M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 18, False: 7.97M]
  |  |  ------------------
  ------------------
 1815|     18|            {
 1816|     18|                return;
 1817|     18|            }
 1818|  7.97M|            state_stack_.emplace_back(parse_mode::map_key,len,pop_stringref_map_stack);
 1819|  7.97M|            visitor.begin_object(len, semantic_tag::none, *this, ec);
 1820|  7.97M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.97M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 7.97M]
  |  |  ------------------
  ------------------
 1821|      0|            {
 1822|      0|                return;
 1823|      0|            }
 1824|  7.97M|        }
 1825|  8.03M|        more_ = !cursor_mode_;
 1826|  8.03M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1720|  8.69M|    {
 1721|  8.69M|        --nesting_depth_;
 1722|       |
 1723|  8.69M|        visitor.end_array(*this, ec);
 1724|  8.69M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  8.69M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 8.69M]
  |  |  ------------------
  ------------------
 1725|      0|        {
 1726|      0|            return;
 1727|      0|        }
 1728|  8.69M|        more_ = !cursor_mode_;
 1729|  8.69M|        if (level() == mark_level_)
  ------------------
  |  Branch (1729:13): [True: 0, False: 8.69M]
  ------------------
 1730|      0|        {
 1731|      0|            more_ = false;
 1732|      0|        }
 1733|  8.69M|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1733:13): [True: 2.23k, False: 8.69M]
  ------------------
 1734|  2.23k|        {
 1735|  2.23k|            stringref_map_stack_.pop_back();
 1736|  2.23k|        }
 1737|  8.69M|        state_stack_.pop_back();
 1738|  8.69M|    }
_ZN8jsoncons4cbor17basic_cbor_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10end_objectERNS_21basic_generic_visitorIcEERNS3_10error_codeE:
 1829|  7.95M|    {
 1830|  7.95M|        --nesting_depth_;
 1831|  7.95M|        visitor.end_object(*this, ec);
 1832|  7.95M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  7.95M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 7.95M]
  |  |  ------------------
  ------------------
 1833|      0|        {
 1834|      0|            return;
 1835|      0|        }
 1836|  7.95M|        more_ = !cursor_mode_;
 1837|  7.95M|        if (level() == mark_level_)
  ------------------
  |  Branch (1837:13): [True: 0, False: 7.95M]
  ------------------
 1838|      0|        {
 1839|      0|            more_ = false;
 1840|      0|        }
 1841|  7.95M|        if (state_stack_.back().pop_stringref_map_stack)
  ------------------
  |  Branch (1841:13): [True: 796, False: 7.95M]
  ------------------
 1842|    796|        {
 1843|    796|            stringref_map_stack_.pop_back();
 1844|    796|        }
 1845|  7.95M|        state_stack_.pop_back();
 1846|  7.95M|    }

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

_ZN8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderEmRKS5_:
  201|  1.07k|        : data_(std::move(data), alloc), 
  202|  1.07k|          span_(typed_array_cast<ValueType>(data_)), 
  203|  1.07k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}),
  204|  1.07k|        dimensions_(extents.size(), alloc),
  205|  1.07k|        max_dimensions_(max_dimensions)
  206|  1.07k|    {
  207|  1.07k|        std::vector<std::size_t> strides(extents.size(), 0);
  208|  1.07k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (208:13): [True: 281, False: 795]
  ------------------
  209|    281|        {
  210|    281|            std::size_t stride = 1;
  211|    281|            const size_t num_extents = extents.size();
  212|    802|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (212:32): [True: 521, False: 281]
  ------------------
  213|    521|            {
  214|    521|                strides[i] = stride;
  215|    521|                stride *= extents[i];
  216|    521|            }
  217|    281|        }
  218|    795|        else
  219|    795|        {
  220|    795|            std::size_t stride = 1;
  221|    795|            const size_t num_extents = extents.size();
  222|  2.09k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (222:32): [True: 1.30k, False: 795]
  ------------------
  223|  1.30k|            {
  224|  1.30k|                strides[num_extents-i-1] = stride;
  225|  1.30k|                stride *= extents[num_extents-i-1];
  226|  1.30k|            }
  227|    795|        }
  228|  2.90k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (228:33): [True: 1.82k, False: 1.07k]
  ------------------
  229|  1.82k|        {
  230|  1.82k|            dimensions_[i].extent = extents[i];
  231|  1.82k|            dimensions_[i].stride = strides[i];
  232|  1.82k|            dimensions_[i].index = 0;
  233|  1.82k|            dimensions_[i].end = strides[i]*extents[i];
  234|  1.82k|        }
  235|  1.07k|    }
_ZN8jsoncons4cbor20typed_array_iteratorD2Ev:
   43|   372k|    virtual ~typed_array_iterator() = default;
_ZNK8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEE4doneEv:
  263|  17.6k|    {
  264|  17.6k|        return done_;
  265|  17.6k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIhNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  269|  9.91k|    {
  270|  9.91k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  9.91k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 9.91k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  271|       |
  272|  9.91k|        if (dim_ == 0)
  ------------------
  |  Branch (272:13): [True: 4.31k, False: 5.60k]
  ------------------
  273|  4.31k|        {
  274|  4.31k|            if (first_)
  ------------------
  |  Branch (274:17): [True: 1.07k, False: 3.23k]
  ------------------
  275|  1.07k|            {
  276|  1.07k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  277|  1.07k|                first_ = false;
  278|  1.07k|                return;
  279|  1.07k|            }
  280|  3.23k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (280:17): [True: 1.07k, False: 2.16k]
  ------------------
  281|  1.07k|            {
  282|  1.07k|                visitor.end_array(context, ec);
  283|  1.07k|                done_ = true;
  284|  1.07k|                return;
  285|  1.07k|            }
  286|  3.23k|        }
  287|  7.76k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (287:13): [True: 4.93k, False: 2.83k]
  |  Branch (287:44): [True: 2.80k, False: 2.12k]
  ------------------
  288|  2.80k|        {
  289|  2.80k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  290|  2.80k|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  2.80k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 2.79k]
  |  |  ------------------
  ------------------
  291|      3|            {
  292|      3|                ec = cbor_errc::max_dimensions_exceeded;
  293|      3|                return;
  294|      3|            }
  295|  2.79k|            ++dim_;
  296|  2.79k|            return;
  297|  2.80k|        }
  298|  4.96k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (298:13): [True: 2.26k, False: 2.70k]
  ------------------
  299|  2.26k|        {
  300|  2.26k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  301|  2.26k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  302|  2.26k|            ++count_;
  303|  2.26k|            return;
  304|  2.26k|        }
  305|  2.70k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (305:13): [True: 2.70k, False: 0]
  ------------------
  306|  2.70k|        {
  307|  2.70k|            visitor.end_array(context, ec);
  308|  2.70k|            if (dim_ > 0)
  ------------------
  |  Branch (308:17): [True: 2.70k, False: 0]
  ------------------
  309|  2.70k|            {
  310|  2.70k|                --dim_;
  311|  2.70k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  312|  2.70k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (312:21): [True: 458, False: 2.24k]
  ------------------
  313|    458|                {
  314|  2.74k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (314:50): [True: 2.28k, False: 458]
  ------------------
  315|  2.28k|                    {
  316|  2.28k|                        dimensions_[i].index = dimensions_[i-1].index;
  317|  2.28k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  318|  2.28k|                    }
  319|    458|                }
  320|  2.70k|            }
  321|  2.70k|        }
  322|  2.70k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIhEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   740k|    {
   73|   740k|        visitor.uint64_value(val, tag, context, ec);
   74|   740k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  5.77k|        : data_(std::move(data), alloc), 
  107|  5.77k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  5.77k|          array_tag_(array_tag), 
  109|  5.77k|          extent_(span_.size()), 
  110|  5.77k|          tag_(tag), 
  111|  5.77k|          func_(Func{})
  112|  5.77k|    {
  113|  5.77k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  1.48M|    {
  142|  1.48M|        return done_;
  143|  1.48M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIhNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   750k|    {
  148|   750k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   750k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5.77k, False: 744k]
  |  |  ------------------
  ------------------
  149|  5.77k|        {
  150|  5.77k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  5.77k|            first_ = false;
  152|  5.77k|        }
  153|   744k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   744k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 738k, False: 5.77k]
  |  |  ------------------
  ------------------
  154|   738k|        {
  155|   738k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   738k|            ++index_;
  157|   738k|        }
  158|  5.77k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 5.77k, False: 0]
  ------------------
  159|  5.77k|        {
  160|  5.77k|            visitor.end_array(context, ec);
  161|  5.77k|            done_ = true;
  162|  5.77k|        }
  163|   750k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderEmRKS5_:
  201|    696|        : data_(std::move(data), alloc), 
  202|    696|          span_(typed_array_cast<ValueType>(data_)), 
  203|    696|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}),
  204|    696|        dimensions_(extents.size(), alloc),
  205|    696|        max_dimensions_(max_dimensions)
  206|    696|    {
  207|    696|        std::vector<std::size_t> strides(extents.size(), 0);
  208|    696|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (208:13): [True: 140, False: 556]
  ------------------
  209|    140|        {
  210|    140|            std::size_t stride = 1;
  211|    140|            const size_t num_extents = extents.size();
  212|  1.20k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (212:32): [True: 1.06k, False: 140]
  ------------------
  213|  1.06k|            {
  214|  1.06k|                strides[i] = stride;
  215|  1.06k|                stride *= extents[i];
  216|  1.06k|            }
  217|    140|        }
  218|    556|        else
  219|    556|        {
  220|    556|            std::size_t stride = 1;
  221|    556|            const size_t num_extents = extents.size();
  222|  1.64k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (222:32): [True: 1.08k, False: 556]
  ------------------
  223|  1.08k|            {
  224|  1.08k|                strides[num_extents-i-1] = stride;
  225|  1.08k|                stride *= extents[num_extents-i-1];
  226|  1.08k|            }
  227|    556|        }
  228|  2.84k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (228:33): [True: 2.14k, False: 696]
  ------------------
  229|  2.14k|        {
  230|  2.14k|            dimensions_[i].extent = extents[i];
  231|  2.14k|            dimensions_[i].stride = strides[i];
  232|  2.14k|            dimensions_[i].index = 0;
  233|  2.14k|            dimensions_[i].end = strides[i]*extents[i];
  234|  2.14k|        }
  235|    696|    }
_ZNK8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEE4doneEv:
  263|  19.9k|    {
  264|  19.9k|        return done_;
  265|  19.9k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  269|  10.6k|    {
  270|  10.6k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  10.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 10.6k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  271|       |
  272|  10.6k|        if (dim_ == 0)
  ------------------
  |  Branch (272:13): [True: 2.48k, False: 8.18k]
  ------------------
  273|  2.48k|        {
  274|  2.48k|            if (first_)
  ------------------
  |  Branch (274:17): [True: 696, False: 1.79k]
  ------------------
  275|    696|            {
  276|    696|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  277|    696|                first_ = false;
  278|    696|                return;
  279|    696|            }
  280|  1.79k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (280:17): [True: 692, False: 1.10k]
  ------------------
  281|    692|            {
  282|    692|                visitor.end_array(context, ec);
  283|    692|                done_ = true;
  284|    692|                return;
  285|    692|            }
  286|  1.79k|        }
  287|  9.28k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (287:13): [True: 6.78k, False: 2.50k]
  |  Branch (287:44): [True: 3.97k, False: 2.80k]
  ------------------
  288|  3.97k|        {
  289|  3.97k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  290|  3.97k|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  3.97k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 3.97k]
  |  |  ------------------
  ------------------
  291|      4|            {
  292|      4|                ec = cbor_errc::max_dimensions_exceeded;
  293|      4|                return;
  294|      4|            }
  295|  3.97k|            ++dim_;
  296|  3.97k|            return;
  297|  3.97k|        }
  298|  5.31k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (298:13): [True: 1.47k, False: 3.84k]
  ------------------
  299|  1.47k|        {
  300|  1.47k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  301|  1.47k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  302|  1.47k|            ++count_;
  303|  1.47k|            return;
  304|  1.47k|        }
  305|  3.84k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (305:13): [True: 3.84k, False: 0]
  ------------------
  306|  3.84k|        {
  307|  3.84k|            visitor.end_array(context, ec);
  308|  3.84k|            if (dim_ > 0)
  ------------------
  |  Branch (308:17): [True: 3.84k, False: 0]
  ------------------
  309|  3.84k|            {
  310|  3.84k|                --dim_;
  311|  3.84k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  312|  3.84k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (312:21): [True: 773, False: 3.06k]
  ------------------
  313|    773|                {
  314|  3.73k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (314:50): [True: 2.96k, False: 773]
  ------------------
  315|  2.96k|                    {
  316|  2.96k|                        dimensions_[i].index = dimensions_[i-1].index;
  317|  2.96k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  318|  2.96k|                    }
  319|    773|                }
  320|  3.84k|            }
  321|  3.84k|        }
  322|  3.84k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueItEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|  4.62M|    {
   73|  4.62M|        visitor.uint64_value(val, tag, context, ec);
   74|  4.62M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|   143k|        : data_(std::move(data), alloc), 
  107|   143k|          span_(typed_array_cast<ValueType>(data_)), 
  108|   143k|          array_tag_(array_tag), 
  109|   143k|          extent_(span_.size()), 
  110|   143k|          tag_(tag), 
  111|   143k|          func_(Func{})
  112|   143k|    {
  113|   143k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  9.53M|    {
  142|  9.53M|        return done_;
  143|  9.53M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  4.91M|    {
  148|  4.91M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  4.91M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 143k, False: 4.76M]
  |  |  ------------------
  ------------------
  149|   143k|        {
  150|   143k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|   143k|            first_ = false;
  152|   143k|        }
  153|  4.76M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  4.76M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 4.62M, False: 143k]
  |  |  ------------------
  ------------------
  154|  4.62M|        {
  155|  4.62M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  4.62M|            ++index_;
  157|  4.62M|        }
  158|   143k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 143k, False: 0]
  ------------------
  159|   143k|        {
  160|   143k|            visitor.end_array(context, ec);
  161|   143k|            done_ = true;
  162|   143k|        }
  163|  4.91M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderEmRKS5_:
  201|    776|        : data_(std::move(data), alloc), 
  202|    776|          span_(typed_array_cast<ValueType>(data_)), 
  203|    776|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}),
  204|    776|        dimensions_(extents.size(), alloc),
  205|    776|        max_dimensions_(max_dimensions)
  206|    776|    {
  207|    776|        std::vector<std::size_t> strides(extents.size(), 0);
  208|    776|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (208:13): [True: 383, False: 393]
  ------------------
  209|    383|        {
  210|    383|            std::size_t stride = 1;
  211|    383|            const size_t num_extents = extents.size();
  212|  1.73k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (212:32): [True: 1.34k, False: 383]
  ------------------
  213|  1.34k|            {
  214|  1.34k|                strides[i] = stride;
  215|  1.34k|                stride *= extents[i];
  216|  1.34k|            }
  217|    383|        }
  218|    393|        else
  219|    393|        {
  220|    393|            std::size_t stride = 1;
  221|    393|            const size_t num_extents = extents.size();
  222|  1.79k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (222:32): [True: 1.40k, False: 393]
  ------------------
  223|  1.40k|            {
  224|  1.40k|                strides[num_extents-i-1] = stride;
  225|  1.40k|                stride *= extents[num_extents-i-1];
  226|  1.40k|            }
  227|    393|        }
  228|  3.52k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (228:33): [True: 2.75k, False: 776]
  ------------------
  229|  2.75k|        {
  230|  2.75k|            dimensions_[i].extent = extents[i];
  231|  2.75k|            dimensions_[i].stride = strides[i];
  232|  2.75k|            dimensions_[i].index = 0;
  233|  2.75k|            dimensions_[i].end = strides[i]*extents[i];
  234|  2.75k|        }
  235|    776|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEE4doneEv:
  263|  16.6k|    {
  264|  16.6k|        return done_;
  265|  16.6k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIjNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  269|  9.10k|    {
  270|  9.10k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  9.10k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 9.10k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  271|       |
  272|  9.10k|        if (dim_ == 0)
  ------------------
  |  Branch (272:13): [True: 2.88k, False: 6.21k]
  ------------------
  273|  2.88k|        {
  274|  2.88k|            if (first_)
  ------------------
  |  Branch (274:17): [True: 776, False: 2.11k]
  ------------------
  275|    776|            {
  276|    776|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  277|    776|                first_ = false;
  278|    776|                return;
  279|    776|            }
  280|  2.11k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (280:17): [True: 773, False: 1.33k]
  ------------------
  281|    773|            {
  282|    773|                visitor.end_array(context, ec);
  283|    773|                done_ = true;
  284|    773|                return;
  285|    773|            }
  286|  2.11k|        }
  287|  7.55k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (287:13): [True: 4.90k, False: 2.64k]
  |  Branch (287:44): [True: 3.15k, False: 1.75k]
  ------------------
  288|  3.15k|        {
  289|  3.15k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  290|  3.15k|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  3.15k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 3.14k]
  |  |  ------------------
  ------------------
  291|      3|            {
  292|      3|                ec = cbor_errc::max_dimensions_exceeded;
  293|      3|                return;
  294|      3|            }
  295|  3.14k|            ++dim_;
  296|  3.14k|            return;
  297|  3.15k|        }
  298|  4.40k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (298:13): [True: 1.35k, False: 3.04k]
  ------------------
  299|  1.35k|        {
  300|  1.35k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  301|  1.35k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  302|  1.35k|            ++count_;
  303|  1.35k|            return;
  304|  1.35k|        }
  305|  3.04k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (305:13): [True: 3.04k, False: 0]
  ------------------
  306|  3.04k|        {
  307|  3.04k|            visitor.end_array(context, ec);
  308|  3.04k|            if (dim_ > 0)
  ------------------
  |  Branch (308:17): [True: 3.04k, False: 0]
  ------------------
  309|  3.04k|            {
  310|  3.04k|                --dim_;
  311|  3.04k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  312|  3.04k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (312:21): [True: 581, False: 2.46k]
  ------------------
  313|    581|                {
  314|  1.89k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (314:50): [True: 1.31k, False: 581]
  ------------------
  315|  1.31k|                    {
  316|  1.31k|                        dimensions_[i].index = dimensions_[i-1].index;
  317|  1.31k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  318|  1.31k|                    }
  319|    581|                }
  320|  3.04k|            }
  321|  3.04k|        }
  322|  3.04k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIjEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   234k|    {
   73|   234k|        visitor.uint64_value(val, tag, context, ec);
   74|   234k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  7.00k|        : data_(std::move(data), alloc), 
  107|  7.00k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  7.00k|          array_tag_(array_tag), 
  109|  7.00k|          extent_(span_.size()), 
  110|  7.00k|          tag_(tag), 
  111|  7.00k|          func_(Func{})
  112|  7.00k|    {
  113|  7.00k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   480k|    {
  142|   480k|        return done_;
  143|   480k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIjNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   247k|    {
  148|   247k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   247k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 7.00k, False: 240k]
  |  |  ------------------
  ------------------
  149|  7.00k|        {
  150|  7.00k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  7.00k|            first_ = false;
  152|  7.00k|        }
  153|   240k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   240k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 233k, False: 7.00k]
  |  |  ------------------
  ------------------
  154|   233k|        {
  155|   233k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   233k|            ++index_;
  157|   233k|        }
  158|  7.00k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 7.00k, False: 0]
  ------------------
  159|  7.00k|        {
  160|  7.00k|            visitor.end_array(context, ec);
  161|  7.00k|            done_ = true;
  162|  7.00k|        }
  163|   247k|    }
_ZN8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderEmRKS5_:
  201|    965|        : data_(std::move(data), alloc), 
  202|    965|          span_(typed_array_cast<ValueType>(data_)), 
  203|    965|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}),
  204|    965|        dimensions_(extents.size(), alloc),
  205|    965|        max_dimensions_(max_dimensions)
  206|    965|    {
  207|    965|        std::vector<std::size_t> strides(extents.size(), 0);
  208|    965|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (208:13): [True: 217, False: 748]
  ------------------
  209|    217|        {
  210|    217|            std::size_t stride = 1;
  211|    217|            const size_t num_extents = extents.size();
  212|  1.58k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (212:32): [True: 1.36k, False: 217]
  ------------------
  213|  1.36k|            {
  214|  1.36k|                strides[i] = stride;
  215|  1.36k|                stride *= extents[i];
  216|  1.36k|            }
  217|    217|        }
  218|    748|        else
  219|    748|        {
  220|    748|            std::size_t stride = 1;
  221|    748|            const size_t num_extents = extents.size();
  222|  5.25k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (222:32): [True: 4.51k, False: 748]
  ------------------
  223|  4.51k|            {
  224|  4.51k|                strides[num_extents-i-1] = stride;
  225|  4.51k|                stride *= extents[num_extents-i-1];
  226|  4.51k|            }
  227|    748|        }
  228|  6.84k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (228:33): [True: 5.87k, False: 965]
  ------------------
  229|  5.87k|        {
  230|  5.87k|            dimensions_[i].extent = extents[i];
  231|  5.87k|            dimensions_[i].stride = strides[i];
  232|  5.87k|            dimensions_[i].index = 0;
  233|  5.87k|            dimensions_[i].end = strides[i]*extents[i];
  234|  5.87k|        }
  235|    965|    }
_ZNK8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEE4doneEv:
  263|  31.4k|    {
  264|  31.4k|        return done_;
  265|  31.4k|    }
_ZN8jsoncons4cbor16mdarray_iteratorImNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  269|  16.7k|    {
  270|  16.7k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  16.7k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 16.7k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  271|       |
  272|  16.7k|        if (dim_ == 0)
  ------------------
  |  Branch (272:13): [True: 3.07k, False: 13.6k]
  ------------------
  273|  3.07k|        {
  274|  3.07k|            if (first_)
  ------------------
  |  Branch (274:17): [True: 965, False: 2.10k]
  ------------------
  275|    965|            {
  276|    965|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  277|    965|                first_ = false;
  278|    965|                return;
  279|    965|            }
  280|  2.10k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (280:17): [True: 961, False: 1.14k]
  ------------------
  281|    961|            {
  282|    961|                visitor.end_array(context, ec);
  283|    961|                done_ = true;
  284|    961|                return;
  285|    961|            }
  286|  2.10k|        }
  287|  14.7k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (287:13): [True: 12.6k, False: 2.11k]
  |  Branch (287:44): [True: 6.88k, False: 5.78k]
  ------------------
  288|  6.88k|        {
  289|  6.88k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  290|  6.88k|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  6.88k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 6.88k]
  |  |  ------------------
  ------------------
  291|      4|            {
  292|      4|                ec = cbor_errc::max_dimensions_exceeded;
  293|      4|                return;
  294|      4|            }
  295|  6.88k|            ++dim_;
  296|  6.88k|            return;
  297|  6.88k|        }
  298|  7.89k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (298:13): [True: 1.15k, False: 6.74k]
  ------------------
  299|  1.15k|        {
  300|  1.15k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  301|  1.15k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  302|  1.15k|            ++count_;
  303|  1.15k|            return;
  304|  1.15k|        }
  305|  6.74k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (305:13): [True: 6.74k, False: 0]
  ------------------
  306|  6.74k|        {
  307|  6.74k|            visitor.end_array(context, ec);
  308|  6.74k|            if (dim_ > 0)
  ------------------
  |  Branch (308:17): [True: 6.74k, False: 0]
  ------------------
  309|  6.74k|            {
  310|  6.74k|                --dim_;
  311|  6.74k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  312|  6.74k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (312:21): [True: 97, False: 6.65k]
  ------------------
  313|     97|                {
  314|  3.04k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (314:50): [True: 2.94k, False: 97]
  ------------------
  315|  2.94k|                    {
  316|  2.94k|                        dimensions_[i].index = dimensions_[i-1].index;
  317|  2.94k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  318|  2.94k|                    }
  319|     97|                }
  320|  6.74k|            }
  321|  6.74k|        }
  322|  6.74k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueImEENSt3__19enable_ifIXsr10ext_traits19is_unsigned_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   72|   237k|    {
   73|   237k|        visitor.uint64_value(val, tag, context, ec);
   74|   237k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  5.20k|        : data_(std::move(data), alloc), 
  107|  5.20k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  5.20k|          array_tag_(array_tag), 
  109|  5.20k|          extent_(span_.size()), 
  110|  5.20k|          tag_(tag), 
  111|  5.20k|          func_(Func{})
  112|  5.20k|    {
  113|  5.20k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   482k|    {
  142|   482k|        return done_;
  143|   482k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorImNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   246k|    {
  148|   246k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   246k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5.20k, False: 241k]
  |  |  ------------------
  ------------------
  149|  5.20k|        {
  150|  5.20k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  5.20k|            first_ = false;
  152|  5.20k|        }
  153|   241k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   241k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 236k, False: 5.20k]
  |  |  ------------------
  ------------------
  154|   236k|        {
  155|   236k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   236k|            ++index_;
  157|   236k|        }
  158|  5.20k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 5.20k, False: 0]
  ------------------
  159|  5.20k|        {
  160|  5.20k|            visitor.end_array(context, ec);
  161|  5.20k|            done_ = true;
  162|  5.20k|        }
  163|   246k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderEmRKS5_:
  201|    535|        : data_(std::move(data), alloc), 
  202|    535|          span_(typed_array_cast<ValueType>(data_)), 
  203|    535|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}),
  204|    535|        dimensions_(extents.size(), alloc),
  205|    535|        max_dimensions_(max_dimensions)
  206|    535|    {
  207|    535|        std::vector<std::size_t> strides(extents.size(), 0);
  208|    535|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (208:13): [True: 252, False: 283]
  ------------------
  209|    252|        {
  210|    252|            std::size_t stride = 1;
  211|    252|            const size_t num_extents = extents.size();
  212|  1.14k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (212:32): [True: 890, False: 252]
  ------------------
  213|    890|            {
  214|    890|                strides[i] = stride;
  215|    890|                stride *= extents[i];
  216|    890|            }
  217|    252|        }
  218|    283|        else
  219|    283|        {
  220|    283|            std::size_t stride = 1;
  221|    283|            const size_t num_extents = extents.size();
  222|  1.50k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (222:32): [True: 1.22k, False: 283]
  ------------------
  223|  1.22k|            {
  224|  1.22k|                strides[num_extents-i-1] = stride;
  225|  1.22k|                stride *= extents[num_extents-i-1];
  226|  1.22k|            }
  227|    283|        }
  228|  2.65k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (228:33): [True: 2.11k, False: 535]
  ------------------
  229|  2.11k|        {
  230|  2.11k|            dimensions_[i].extent = extents[i];
  231|  2.11k|            dimensions_[i].stride = strides[i];
  232|  2.11k|            dimensions_[i].index = 0;
  233|  2.11k|            dimensions_[i].end = strides[i]*extents[i];
  234|  2.11k|        }
  235|    535|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEE4doneEv:
  263|  24.4k|    {
  264|  24.4k|        return done_;
  265|  24.4k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIaNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  269|  12.7k|    {
  270|  12.7k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  12.7k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 12.7k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  271|       |
  272|  12.7k|        if (dim_ == 0)
  ------------------
  |  Branch (272:13): [True: 3.35k, False: 9.42k]
  ------------------
  273|  3.35k|        {
  274|  3.35k|            if (first_)
  ------------------
  |  Branch (274:17): [True: 535, False: 2.81k]
  ------------------
  275|    535|            {
  276|    535|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  277|    535|                first_ = false;
  278|    535|                return;
  279|    535|            }
  280|  2.81k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (280:17): [True: 529, False: 2.28k]
  ------------------
  281|    529|            {
  282|    529|                visitor.end_array(context, ec);
  283|    529|                done_ = true;
  284|    529|                return;
  285|    529|            }
  286|  2.81k|        }
  287|  11.7k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (287:13): [True: 6.19k, False: 5.51k]
  |  Branch (287:44): [True: 4.37k, False: 1.82k]
  ------------------
  288|  4.37k|        {
  289|  4.37k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  290|  4.37k|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  4.37k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 4.36k]
  |  |  ------------------
  ------------------
  291|      6|            {
  292|      6|                ec = cbor_errc::max_dimensions_exceeded;
  293|      6|                return;
  294|      6|            }
  295|  4.36k|            ++dim_;
  296|  4.36k|            return;
  297|  4.37k|        }
  298|  7.33k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (298:13): [True: 3.16k, False: 4.17k]
  ------------------
  299|  3.16k|        {
  300|  3.16k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  301|  3.16k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  302|  3.16k|            ++count_;
  303|  3.16k|            return;
  304|  3.16k|        }
  305|  4.17k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (305:13): [True: 4.17k, False: 0]
  ------------------
  306|  4.17k|        {
  307|  4.17k|            visitor.end_array(context, ec);
  308|  4.17k|            if (dim_ > 0)
  ------------------
  |  Branch (308:17): [True: 4.17k, False: 0]
  ------------------
  309|  4.17k|            {
  310|  4.17k|                --dim_;
  311|  4.17k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  312|  4.17k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (312:21): [True: 1.83k, False: 2.33k]
  ------------------
  313|  1.83k|                {
  314|  5.15k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (314:50): [True: 3.31k, False: 1.83k]
  ------------------
  315|  3.31k|                    {
  316|  3.31k|                        dimensions_[i].index = dimensions_[i-1].index;
  317|  3.31k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  318|  3.31k|                    }
  319|  1.83k|                }
  320|  4.17k|            }
  321|  4.17k|        }
  322|  4.17k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIaEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|   213k|    {
   65|   213k|        visitor.int64_value(val, tag, context, ec);
   66|   213k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  1.39k|        : data_(std::move(data), alloc), 
  107|  1.39k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  1.39k|          array_tag_(array_tag), 
  109|  1.39k|          extent_(span_.size()), 
  110|  1.39k|          tag_(tag), 
  111|  1.39k|          func_(Func{})
  112|  1.39k|    {
  113|  1.39k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   424k|    {
  142|   424k|        return done_;
  143|   424k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIaNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   213k|    {
  148|   213k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   213k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 1.39k, False: 212k]
  |  |  ------------------
  ------------------
  149|  1.39k|        {
  150|  1.39k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  1.39k|            first_ = false;
  152|  1.39k|        }
  153|   212k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   212k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 210k, False: 1.39k]
  |  |  ------------------
  ------------------
  154|   210k|        {
  155|   210k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   210k|            ++index_;
  157|   210k|        }
  158|  1.39k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 1.39k, False: 0]
  ------------------
  159|  1.39k|        {
  160|  1.39k|            visitor.end_array(context, ec);
  161|  1.39k|            done_ = true;
  162|  1.39k|        }
  163|   213k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderEmRKS5_:
  201|    699|        : data_(std::move(data), alloc), 
  202|    699|          span_(typed_array_cast<ValueType>(data_)), 
  203|    699|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}),
  204|    699|        dimensions_(extents.size(), alloc),
  205|    699|        max_dimensions_(max_dimensions)
  206|    699|    {
  207|    699|        std::vector<std::size_t> strides(extents.size(), 0);
  208|    699|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (208:13): [True: 477, False: 222]
  ------------------
  209|    477|        {
  210|    477|            std::size_t stride = 1;
  211|    477|            const size_t num_extents = extents.size();
  212|  1.80k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (212:32): [True: 1.32k, False: 477]
  ------------------
  213|  1.32k|            {
  214|  1.32k|                strides[i] = stride;
  215|  1.32k|                stride *= extents[i];
  216|  1.32k|            }
  217|    477|        }
  218|    222|        else
  219|    222|        {
  220|    222|            std::size_t stride = 1;
  221|    222|            const size_t num_extents = extents.size();
  222|  1.12k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (222:32): [True: 899, False: 222]
  ------------------
  223|    899|            {
  224|    899|                strides[num_extents-i-1] = stride;
  225|    899|                stride *= extents[num_extents-i-1];
  226|    899|            }
  227|    222|        }
  228|  2.92k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (228:33): [True: 2.22k, False: 699]
  ------------------
  229|  2.22k|        {
  230|  2.22k|            dimensions_[i].extent = extents[i];
  231|  2.22k|            dimensions_[i].stride = strides[i];
  232|  2.22k|            dimensions_[i].index = 0;
  233|  2.22k|            dimensions_[i].end = strides[i]*extents[i];
  234|  2.22k|        }
  235|    699|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEE4doneEv:
  263|  22.7k|    {
  264|  22.7k|        return done_;
  265|  22.7k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIsNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  269|  12.0k|    {
  270|  12.0k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  12.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 12.0k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  271|       |
  272|  12.0k|        if (dim_ == 0)
  ------------------
  |  Branch (272:13): [True: 2.31k, False: 9.74k]
  ------------------
  273|  2.31k|        {
  274|  2.31k|            if (first_)
  ------------------
  |  Branch (274:17): [True: 699, False: 1.61k]
  ------------------
  275|    699|            {
  276|    699|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  277|    699|                first_ = false;
  278|    699|                return;
  279|    699|            }
  280|  1.61k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (280:17): [True: 694, False: 921]
  ------------------
  281|    694|            {
  282|    694|                visitor.end_array(context, ec);
  283|    694|                done_ = true;
  284|    694|                return;
  285|    694|            }
  286|  1.61k|        }
  287|  10.6k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (287:13): [True: 8.06k, False: 2.60k]
  |  Branch (287:44): [True: 4.76k, False: 3.29k]
  ------------------
  288|  4.76k|        {
  289|  4.76k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  290|  4.76k|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  4.76k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 4.75k]
  |  |  ------------------
  ------------------
  291|      5|            {
  292|      5|                ec = cbor_errc::max_dimensions_exceeded;
  293|      5|                return;
  294|      5|            }
  295|  4.75k|            ++dim_;
  296|  4.75k|            return;
  297|  4.76k|        }
  298|  5.90k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (298:13): [True: 1.30k, False: 4.59k]
  ------------------
  299|  1.30k|        {
  300|  1.30k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  301|  1.30k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  302|  1.30k|            ++count_;
  303|  1.30k|            return;
  304|  1.30k|        }
  305|  4.59k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (305:13): [True: 4.59k, False: 0]
  ------------------
  306|  4.59k|        {
  307|  4.59k|            visitor.end_array(context, ec);
  308|  4.59k|            if (dim_ > 0)
  ------------------
  |  Branch (308:17): [True: 4.59k, False: 0]
  ------------------
  309|  4.59k|            {
  310|  4.59k|                --dim_;
  311|  4.59k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  312|  4.59k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (312:21): [True: 609, False: 3.98k]
  ------------------
  313|    609|                {
  314|  4.26k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (314:50): [True: 3.65k, False: 609]
  ------------------
  315|  3.65k|                    {
  316|  3.65k|                        dimensions_[i].index = dimensions_[i-1].index;
  317|  3.65k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  318|  3.65k|                    }
  319|    609|                }
  320|  4.59k|            }
  321|  4.59k|        }
  322|  4.59k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIsEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|  2.18M|    {
   65|  2.18M|        visitor.int64_value(val, tag, context, ec);
   66|  2.18M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  36.4k|        : data_(std::move(data), alloc), 
  107|  36.4k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  36.4k|          array_tag_(array_tag), 
  109|  36.4k|          extent_(span_.size()), 
  110|  36.4k|          tag_(tag), 
  111|  36.4k|          func_(Func{})
  112|  36.4k|    {
  113|  36.4k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  4.43M|    {
  142|  4.43M|        return done_;
  143|  4.43M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIsNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  2.25M|    {
  148|  2.25M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  2.25M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 36.4k, False: 2.21M]
  |  |  ------------------
  ------------------
  149|  36.4k|        {
  150|  36.4k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  36.4k|            first_ = false;
  152|  36.4k|        }
  153|  2.21M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  2.21M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 2.17M, False: 36.4k]
  |  |  ------------------
  ------------------
  154|  2.17M|        {
  155|  2.17M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  2.17M|            ++index_;
  157|  2.17M|        }
  158|  36.4k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 36.4k, False: 0]
  ------------------
  159|  36.4k|        {
  160|  36.4k|            visitor.end_array(context, ec);
  161|  36.4k|            done_ = true;
  162|  36.4k|        }
  163|  2.25M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderEmRKS5_:
  201|    742|        : data_(std::move(data), alloc), 
  202|    742|          span_(typed_array_cast<ValueType>(data_)), 
  203|    742|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}),
  204|    742|        dimensions_(extents.size(), alloc),
  205|    742|        max_dimensions_(max_dimensions)
  206|    742|    {
  207|    742|        std::vector<std::size_t> strides(extents.size(), 0);
  208|    742|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (208:13): [True: 458, False: 284]
  ------------------
  209|    458|        {
  210|    458|            std::size_t stride = 1;
  211|    458|            const size_t num_extents = extents.size();
  212|  12.8k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (212:32): [True: 12.3k, False: 458]
  ------------------
  213|  12.3k|            {
  214|  12.3k|                strides[i] = stride;
  215|  12.3k|                stride *= extents[i];
  216|  12.3k|            }
  217|    458|        }
  218|    284|        else
  219|    284|        {
  220|    284|            std::size_t stride = 1;
  221|    284|            const size_t num_extents = extents.size();
  222|  1.13k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (222:32): [True: 850, False: 284]
  ------------------
  223|    850|            {
  224|    850|                strides[num_extents-i-1] = stride;
  225|    850|                stride *= extents[num_extents-i-1];
  226|    850|            }
  227|    284|        }
  228|  13.9k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (228:33): [True: 13.2k, False: 742]
  ------------------
  229|  13.2k|        {
  230|  13.2k|            dimensions_[i].extent = extents[i];
  231|  13.2k|            dimensions_[i].stride = strides[i];
  232|  13.2k|            dimensions_[i].index = 0;
  233|  13.2k|            dimensions_[i].end = strides[i]*extents[i];
  234|  13.2k|        }
  235|    742|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEE4doneEv:
  263|  57.9k|    {
  264|  57.9k|        return done_;
  265|  57.9k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIiNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  269|  29.7k|    {
  270|  29.7k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  29.7k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 29.7k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  271|       |
  272|  29.7k|        if (dim_ == 0)
  ------------------
  |  Branch (272:13): [True: 2.50k, False: 27.2k]
  ------------------
  273|  2.50k|        {
  274|  2.50k|            if (first_)
  ------------------
  |  Branch (274:17): [True: 742, False: 1.76k]
  ------------------
  275|    742|            {
  276|    742|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  277|    742|                first_ = false;
  278|    742|                return;
  279|    742|            }
  280|  1.76k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (280:17): [True: 738, False: 1.02k]
  ------------------
  281|    738|            {
  282|    738|                visitor.end_array(context, ec);
  283|    738|                done_ = true;
  284|    738|                return;
  285|    738|            }
  286|  1.76k|        }
  287|  28.2k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (287:13): [True: 26.1k, False: 2.05k]
  |  Branch (287:44): [True: 13.6k, False: 12.5k]
  ------------------
  288|  13.6k|        {
  289|  13.6k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  290|  13.6k|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  13.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 4, False: 13.6k]
  |  |  ------------------
  ------------------
  291|      4|            {
  292|      4|                ec = cbor_errc::max_dimensions_exceeded;
  293|      4|                return;
  294|      4|            }
  295|  13.6k|            ++dim_;
  296|  13.6k|            return;
  297|  13.6k|        }
  298|  14.5k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (298:13): [True: 1.06k, False: 13.5k]
  ------------------
  299|  1.06k|        {
  300|  1.06k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  301|  1.06k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  302|  1.06k|            ++count_;
  303|  1.06k|            return;
  304|  1.06k|        }
  305|  13.5k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (305:13): [True: 13.5k, False: 0]
  ------------------
  306|  13.5k|        {
  307|  13.5k|            visitor.end_array(context, ec);
  308|  13.5k|            if (dim_ > 0)
  ------------------
  |  Branch (308:17): [True: 13.5k, False: 0]
  ------------------
  309|  13.5k|            {
  310|  13.5k|                --dim_;
  311|  13.5k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  312|  13.5k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (312:21): [True: 317, False: 13.2k]
  ------------------
  313|    317|                {
  314|  1.60k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (314:50): [True: 1.28k, False: 317]
  ------------------
  315|  1.28k|                    {
  316|  1.28k|                        dimensions_[i].index = dimensions_[i-1].index;
  317|  1.28k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  318|  1.28k|                    }
  319|    317|                }
  320|  13.5k|            }
  321|  13.5k|        }
  322|  13.5k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIiEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|   120k|    {
   65|   120k|        visitor.int64_value(val, tag, context, ec);
   66|   120k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  5.90k|        : data_(std::move(data), alloc), 
  107|  5.90k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  5.90k|          array_tag_(array_tag), 
  109|  5.90k|          extent_(span_.size()), 
  110|  5.90k|          tag_(tag), 
  111|  5.90k|          func_(Func{})
  112|  5.90k|    {
  113|  5.90k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   250k|    {
  142|   250k|        return done_;
  143|   250k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIiNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|   131k|    {
  148|   131k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|   131k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5.90k, False: 125k]
  |  |  ------------------
  ------------------
  149|  5.90k|        {
  150|  5.90k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  5.90k|            first_ = false;
  152|  5.90k|        }
  153|   125k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|   125k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 119k, False: 5.90k]
  |  |  ------------------
  ------------------
  154|   119k|        {
  155|   119k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|   119k|            ++index_;
  157|   119k|        }
  158|  5.90k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 5.90k, False: 0]
  ------------------
  159|  5.90k|        {
  160|  5.90k|            visitor.end_array(context, ec);
  161|  5.90k|            done_ = true;
  162|  5.90k|        }
  163|   131k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderEmRKS5_:
  201|    807|        : data_(std::move(data), alloc), 
  202|    807|          span_(typed_array_cast<ValueType>(data_)), 
  203|    807|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}),
  204|    807|        dimensions_(extents.size(), alloc),
  205|    807|        max_dimensions_(max_dimensions)
  206|    807|    {
  207|    807|        std::vector<std::size_t> strides(extents.size(), 0);
  208|    807|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (208:13): [True: 395, False: 412]
  ------------------
  209|    395|        {
  210|    395|            std::size_t stride = 1;
  211|    395|            const size_t num_extents = extents.size();
  212|  1.16k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (212:32): [True: 769, False: 395]
  ------------------
  213|    769|            {
  214|    769|                strides[i] = stride;
  215|    769|                stride *= extents[i];
  216|    769|            }
  217|    395|        }
  218|    412|        else
  219|    412|        {
  220|    412|            std::size_t stride = 1;
  221|    412|            const size_t num_extents = extents.size();
  222|  3.94k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (222:32): [True: 3.53k, False: 412]
  ------------------
  223|  3.53k|            {
  224|  3.53k|                strides[num_extents-i-1] = stride;
  225|  3.53k|                stride *= extents[num_extents-i-1];
  226|  3.53k|            }
  227|    412|        }
  228|  5.11k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (228:33): [True: 4.30k, False: 807]
  ------------------
  229|  4.30k|        {
  230|  4.30k|            dimensions_[i].extent = extents[i];
  231|  4.30k|            dimensions_[i].stride = strides[i];
  232|  4.30k|            dimensions_[i].index = 0;
  233|  4.30k|            dimensions_[i].end = strides[i]*extents[i];
  234|  4.30k|        }
  235|    807|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  263|  18.5k|    {
  264|  18.5k|        return done_;
  265|  18.5k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  269|  10.0k|    {
  270|  10.0k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  10.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 10.0k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  271|       |
  272|  10.0k|        if (dim_ == 0)
  ------------------
  |  Branch (272:13): [True: 2.53k, False: 7.52k]
  ------------------
  273|  2.53k|        {
  274|  2.53k|            if (first_)
  ------------------
  |  Branch (274:17): [True: 807, False: 1.72k]
  ------------------
  275|    807|            {
  276|    807|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  277|    807|                first_ = false;
  278|    807|                return;
  279|    807|            }
  280|  1.72k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (280:17): [True: 801, False: 925]
  ------------------
  281|    801|            {
  282|    801|                visitor.end_array(context, ec);
  283|    801|                done_ = true;
  284|    801|                return;
  285|    801|            }
  286|  1.72k|        }
  287|  8.45k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (287:13): [True: 7.02k, False: 1.43k]
  |  Branch (287:44): [True: 3.86k, False: 3.15k]
  ------------------
  288|  3.86k|        {
  289|  3.86k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  290|  3.86k|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  3.86k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 3.86k]
  |  |  ------------------
  ------------------
  291|      6|            {
  292|      6|                ec = cbor_errc::max_dimensions_exceeded;
  293|      6|                return;
  294|      6|            }
  295|  3.86k|            ++dim_;
  296|  3.86k|            return;
  297|  3.86k|        }
  298|  4.58k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (298:13): [True: 925, False: 3.66k]
  ------------------
  299|    925|        {
  300|    925|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  301|    925|            dimensions_[dim_].index += dimensions_[dim_].stride;
  302|    925|            ++count_;
  303|    925|            return;
  304|    925|        }
  305|  3.66k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (305:13): [True: 3.66k, False: 0]
  ------------------
  306|  3.66k|        {
  307|  3.66k|            visitor.end_array(context, ec);
  308|  3.66k|            if (dim_ > 0)
  ------------------
  |  Branch (308:17): [True: 3.66k, False: 0]
  ------------------
  309|  3.66k|            {
  310|  3.66k|                --dim_;
  311|  3.66k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  312|  3.66k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (312:21): [True: 117, False: 3.54k]
  ------------------
  313|    117|                {
  314|  1.77k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (314:50): [True: 1.65k, False: 117]
  ------------------
  315|  1.65k|                    {
  316|  1.65k|                        dimensions_[i].index = dimensions_[i-1].index;
  317|  1.65k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  318|  1.65k|                    }
  319|    117|                }
  320|  3.66k|            }
  321|  3.66k|        }
  322|  3.66k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIlEENSt3__19enable_ifIXsr10ext_traits17is_signed_integerIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   64|  61.0M|    {
   65|  61.0M|        visitor.int64_value(val, tag, context, ec);
   66|  61.0M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|   126k|        : data_(std::move(data), alloc), 
  107|   126k|          span_(typed_array_cast<ValueType>(data_)), 
  108|   126k|          array_tag_(array_tag), 
  109|   126k|          extent_(span_.size()), 
  110|   126k|          tag_(tag), 
  111|   126k|          func_(Func{})
  112|   126k|    {
  113|   126k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   122M|    {
  142|   122M|        return done_;
  143|   122M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIlNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  61.3M|    {
  148|  61.3M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  61.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 126k, False: 61.1M]
  |  |  ------------------
  ------------------
  149|   126k|        {
  150|   126k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|   126k|            first_ = false;
  152|   126k|        }
  153|  61.1M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  61.1M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 61.0M, False: 126k]
  |  |  ------------------
  ------------------
  154|  61.0M|        {
  155|  61.0M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  61.0M|            ++index_;
  157|  61.0M|        }
  158|   126k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 126k, False: 0]
  ------------------
  159|   126k|        {
  160|   126k|            visitor.end_array(context, ec);
  161|   126k|            done_ = true;
  162|   126k|        }
  163|  61.3M|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderEmRKS5_:
  201|    555|        : data_(std::move(data), alloc), 
  202|    555|          span_(typed_array_cast<ValueType>(data_)), 
  203|    555|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}),
  204|    555|        dimensions_(extents.size(), alloc),
  205|    555|        max_dimensions_(max_dimensions)
  206|    555|    {
  207|    555|        std::vector<std::size_t> strides(extents.size(), 0);
  208|    555|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (208:13): [True: 424, False: 131]
  ------------------
  209|    424|        {
  210|    424|            std::size_t stride = 1;
  211|    424|            const size_t num_extents = extents.size();
  212|  1.99k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (212:32): [True: 1.57k, False: 424]
  ------------------
  213|  1.57k|            {
  214|  1.57k|                strides[i] = stride;
  215|  1.57k|                stride *= extents[i];
  216|  1.57k|            }
  217|    424|        }
  218|    131|        else
  219|    131|        {
  220|    131|            std::size_t stride = 1;
  221|    131|            const size_t num_extents = extents.size();
  222|    668|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (222:32): [True: 537, False: 131]
  ------------------
  223|    537|            {
  224|    537|                strides[num_extents-i-1] = stride;
  225|    537|                stride *= extents[num_extents-i-1];
  226|    537|            }
  227|    131|        }
  228|  2.66k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (228:33): [True: 2.10k, False: 555]
  ------------------
  229|  2.10k|        {
  230|  2.10k|            dimensions_[i].extent = extents[i];
  231|  2.10k|            dimensions_[i].stride = strides[i];
  232|  2.10k|            dimensions_[i].index = 0;
  233|  2.10k|            dimensions_[i].end = strides[i]*extents[i];
  234|  2.10k|        }
  235|    555|    }
_ZNK8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4doneEv:
  263|  91.4k|    {
  264|  91.4k|        return done_;
  265|  91.4k|    }
_ZN8jsoncons4cbor16mdarray_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  269|  46.2k|    {
  270|  46.2k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  46.2k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 46.2k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  271|       |
  272|  46.2k|        if (dim_ == 0)
  ------------------
  |  Branch (272:13): [True: 2.86k, False: 43.3k]
  ------------------
  273|  2.86k|        {
  274|  2.86k|            if (first_)
  ------------------
  |  Branch (274:17): [True: 555, False: 2.31k]
  ------------------
  275|    555|            {
  276|    555|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  277|    555|                first_ = false;
  278|    555|                return;
  279|    555|            }
  280|  2.31k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (280:17): [True: 552, False: 1.76k]
  ------------------
  281|    552|            {
  282|    552|                visitor.end_array(context, ec);
  283|    552|                done_ = true;
  284|    552|                return;
  285|    552|            }
  286|  2.31k|        }
  287|  45.1k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (287:13): [True: 37.3k, False: 7.81k]
  |  Branch (287:44): [True: 20.6k, False: 16.6k]
  ------------------
  288|  20.6k|        {
  289|  20.6k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  290|  20.6k|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  20.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 20.6k]
  |  |  ------------------
  ------------------
  291|      3|            {
  292|      3|                ec = cbor_errc::max_dimensions_exceeded;
  293|      3|                return;
  294|      3|            }
  295|  20.6k|            ++dim_;
  296|  20.6k|            return;
  297|  20.6k|        }
  298|  24.4k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (298:13): [True: 3.93k, False: 20.5k]
  ------------------
  299|  3.93k|        {
  300|  3.93k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  301|  3.93k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  302|  3.93k|            ++count_;
  303|  3.93k|            return;
  304|  3.93k|        }
  305|  20.5k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (305:13): [True: 20.5k, False: 0]
  ------------------
  306|  20.5k|        {
  307|  20.5k|            visitor.end_array(context, ec);
  308|  20.5k|            if (dim_ > 0)
  ------------------
  |  Branch (308:17): [True: 20.5k, False: 0]
  ------------------
  309|  20.5k|            {
  310|  20.5k|                --dim_;
  311|  20.5k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  312|  20.5k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (312:21): [True: 3.34k, False: 17.2k]
  ------------------
  313|  3.34k|                {
  314|  22.6k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (314:50): [True: 19.3k, False: 3.34k]
  ------------------
  315|  19.3k|                    {
  316|  19.3k|                        dimensions_[i].index = dimensions_[i-1].index;
  317|  19.3k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  318|  19.3k|                    }
  319|  3.34k|                }
  320|  20.5k|            }
  321|  20.5k|        }
  322|  20.5k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIdEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   80|  2.74M|    {
   81|  2.74M|        visitor.double_value(val, tag, context, ec);
   82|  2.74M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  16.2k|        : data_(std::move(data), alloc), 
  107|  16.2k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  16.2k|          array_tag_(array_tag), 
  109|  16.2k|          extent_(span_.size()), 
  110|  16.2k|          tag_(tag), 
  111|  16.2k|          func_(Func{})
  112|  16.2k|    {
  113|  16.2k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4doneEv:
  141|  5.40M|    {
  142|  5.40M|        return done_;
  143|  5.40M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorItNS_11decode_halfENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  2.71M|    {
  148|  2.71M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  2.71M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 16.2k, False: 2.70M]
  |  |  ------------------
  ------------------
  149|  16.2k|        {
  150|  16.2k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  16.2k|            first_ = false;
  152|  16.2k|        }
  153|  2.70M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  2.70M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 2.68M, False: 16.2k]
  |  |  ------------------
  ------------------
  154|  2.68M|        {
  155|  2.68M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  2.68M|            ++index_;
  157|  2.68M|        }
  158|  16.2k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 16.2k, False: 0]
  ------------------
  159|  16.2k|        {
  160|  16.2k|            visitor.end_array(context, ec);
  161|  16.2k|            done_ = true;
  162|  16.2k|        }
  163|  2.71M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderEmRKS5_:
  201|  1.07k|        : data_(std::move(data), alloc), 
  202|  1.07k|          span_(typed_array_cast<ValueType>(data_)), 
  203|  1.07k|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}),
  204|  1.07k|        dimensions_(extents.size(), alloc),
  205|  1.07k|        max_dimensions_(max_dimensions)
  206|  1.07k|    {
  207|  1.07k|        std::vector<std::size_t> strides(extents.size(), 0);
  208|  1.07k|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (208:13): [True: 523, False: 550]
  ------------------
  209|    523|        {
  210|    523|            std::size_t stride = 1;
  211|    523|            const size_t num_extents = extents.size();
  212|  6.47k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (212:32): [True: 5.94k, False: 523]
  ------------------
  213|  5.94k|            {
  214|  5.94k|                strides[i] = stride;
  215|  5.94k|                stride *= extents[i];
  216|  5.94k|            }
  217|    523|        }
  218|    550|        else
  219|    550|        {
  220|    550|            std::size_t stride = 1;
  221|    550|            const size_t num_extents = extents.size();
  222|  1.55k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (222:32): [True: 1.00k, False: 550]
  ------------------
  223|  1.00k|            {
  224|  1.00k|                strides[num_extents-i-1] = stride;
  225|  1.00k|                stride *= extents[num_extents-i-1];
  226|  1.00k|            }
  227|    550|        }
  228|  8.02k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (228:33): [True: 6.95k, False: 1.07k]
  ------------------
  229|  6.95k|        {
  230|  6.95k|            dimensions_[i].extent = extents[i];
  231|  6.95k|            dimensions_[i].stride = strides[i];
  232|  6.95k|            dimensions_[i].index = 0;
  233|  6.95k|            dimensions_[i].end = strides[i]*extents[i];
  234|  6.95k|        }
  235|  1.07k|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEE4doneEv:
  263|  90.1k|    {
  264|  90.1k|        return done_;
  265|  90.1k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIfNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  269|  46.1k|    {
  270|  46.1k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  46.1k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 46.1k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  271|       |
  272|  46.1k|        if (dim_ == 0)
  ------------------
  |  Branch (272:13): [True: 3.99k, False: 42.1k]
  ------------------
  273|  3.99k|        {
  274|  3.99k|            if (first_)
  ------------------
  |  Branch (274:17): [True: 1.07k, False: 2.92k]
  ------------------
  275|  1.07k|            {
  276|  1.07k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  277|  1.07k|                first_ = false;
  278|  1.07k|                return;
  279|  1.07k|            }
  280|  2.92k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (280:17): [True: 1.06k, False: 1.85k]
  ------------------
  281|  1.06k|            {
  282|  1.06k|                visitor.end_array(context, ec);
  283|  1.06k|                done_ = true;
  284|  1.06k|                return;
  285|  1.06k|            }
  286|  2.92k|        }
  287|  44.0k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (287:13): [True: 40.1k, False: 3.90k]
  |  Branch (287:44): [True: 20.9k, False: 19.1k]
  ------------------
  288|  20.9k|        {
  289|  20.9k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  290|  20.9k|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  20.9k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5, False: 20.9k]
  |  |  ------------------
  ------------------
  291|      5|            {
  292|      5|                ec = cbor_errc::max_dimensions_exceeded;
  293|      5|                return;
  294|      5|            }
  295|  20.9k|            ++dim_;
  296|  20.9k|            return;
  297|  20.9k|        }
  298|  23.0k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (298:13): [True: 2.22k, False: 20.8k]
  ------------------
  299|  2.22k|        {
  300|  2.22k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  301|  2.22k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  302|  2.22k|            ++count_;
  303|  2.22k|            return;
  304|  2.22k|        }
  305|  20.8k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (305:13): [True: 20.8k, False: 0]
  ------------------
  306|  20.8k|        {
  307|  20.8k|            visitor.end_array(context, ec);
  308|  20.8k|            if (dim_ > 0)
  ------------------
  |  Branch (308:17): [True: 20.8k, False: 0]
  ------------------
  309|  20.8k|            {
  310|  20.8k|                --dim_;
  311|  20.8k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  312|  20.8k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (312:21): [True: 1.04k, False: 19.7k]
  ------------------
  313|  1.04k|                {
  314|  16.2k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (314:50): [True: 15.2k, False: 1.04k]
  ------------------
  315|  15.2k|                    {
  316|  15.2k|                        dimensions_[i].index = dimensions_[i-1].index;
  317|  15.2k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  318|  15.2k|                    }
  319|  1.04k|                }
  320|  20.8k|            }
  321|  20.8k|        }
  322|  20.8k|    }
_ZN8jsoncons4cbor20typed_array_iterator11write_valueIfEENSt3__19enable_ifIXsr17is_floating_pointIT_EE5valueEvE4typeES5_NS_12semantic_tagERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
   80|  1.23M|    {
   81|  1.23M|        visitor.double_value(val, tag, context, ec);
   82|  1.23M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  5.80k|        : data_(std::move(data), alloc), 
  107|  5.80k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  5.80k|          array_tag_(array_tag), 
  109|  5.80k|          extent_(span_.size()), 
  110|  5.80k|          tag_(tag), 
  111|  5.80k|          func_(Func{})
  112|  5.80k|    {
  113|  5.80k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|  2.46M|    {
  142|  2.46M|        return done_;
  143|  2.46M|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIfNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  1.24M|    {
  148|  1.24M|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  1.24M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 5.80k, False: 1.23M]
  |  |  ------------------
  ------------------
  149|  5.80k|        {
  150|  5.80k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  5.80k|            first_ = false;
  152|  5.80k|        }
  153|  1.23M|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  1.23M|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 1.22M, False: 5.80k]
  |  |  ------------------
  ------------------
  154|  1.22M|        {
  155|  1.22M|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  1.22M|            ++index_;
  157|  1.22M|        }
  158|  5.80k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 5.80k, False: 0]
  ------------------
  159|  5.80k|        {
  160|  5.80k|            visitor.end_array(context, ec);
  161|  5.80k|            done_ = true;
  162|  5.80k|        }
  163|  1.24M|    }
_ZN8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsERKNS7_ImNS4_ImEEEENS_13mdarray_orderEmRKS5_:
  201|    992|        : data_(std::move(data), alloc), 
  202|    992|          span_(typed_array_cast<ValueType>(data_)), 
  203|    992|        array_tag_(array_tag), extents_(extents,alloc), order_(order), func_(Func{}),
  204|    992|        dimensions_(extents.size(), alloc),
  205|    992|        max_dimensions_(max_dimensions)
  206|    992|    {
  207|    992|        std::vector<std::size_t> strides(extents.size(), 0);
  208|    992|        if (order == mdarray_order::column_major)
  ------------------
  |  Branch (208:13): [True: 428, False: 564]
  ------------------
  209|    428|        {
  210|    428|            std::size_t stride = 1;
  211|    428|            const size_t num_extents = extents.size();
  212|  3.77k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (212:32): [True: 3.34k, False: 428]
  ------------------
  213|  3.34k|            {
  214|  3.34k|                strides[i] = stride;
  215|  3.34k|                stride *= extents[i];
  216|  3.34k|            }
  217|    428|        }
  218|    564|        else
  219|    564|        {
  220|    564|            std::size_t stride = 1;
  221|    564|            const size_t num_extents = extents.size();
  222|  15.5k|            for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (222:32): [True: 14.9k, False: 564]
  ------------------
  223|  14.9k|            {
  224|  14.9k|                strides[num_extents-i-1] = stride;
  225|  14.9k|                stride *= extents[num_extents-i-1];
  226|  14.9k|            }
  227|    564|        }
  228|  19.3k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (228:33): [True: 18.3k, False: 992]
  ------------------
  229|  18.3k|        {
  230|  18.3k|            dimensions_[i].extent = extents[i];
  231|  18.3k|            dimensions_[i].stride = strides[i];
  232|  18.3k|            dimensions_[i].index = 0;
  233|  18.3k|            dimensions_[i].end = strides[i]*extents[i];
  234|  18.3k|        }
  235|    992|    }
_ZNK8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEE4doneEv:
  263|  29.4k|    {
  264|  29.4k|        return done_;
  265|  29.4k|    }
_ZN8jsoncons4cbor16mdarray_iteratorIdNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  269|  15.7k|    {
  270|  15.7k|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  15.7k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 15.7k]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  271|       |
  272|  15.7k|        if (dim_ == 0)
  ------------------
  |  Branch (272:13): [True: 3.51k, False: 12.1k]
  ------------------
  273|  3.51k|        {
  274|  3.51k|            if (first_)
  ------------------
  |  Branch (274:17): [True: 992, False: 2.52k]
  ------------------
  275|    992|            {
  276|    992|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  277|    992|                first_ = false;
  278|    992|                return;
  279|    992|            }
  280|  2.52k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (280:17): [True: 986, False: 1.53k]
  ------------------
  281|    986|            {
  282|    986|                visitor.end_array(context, ec);
  283|    986|                done_ = true;
  284|    986|                return;
  285|    986|            }
  286|  2.52k|        }
  287|  13.7k|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (287:13): [True: 11.3k, False: 2.42k]
  |  Branch (287:44): [True: 6.19k, False: 5.11k]
  ------------------
  288|  6.19k|        {
  289|  6.19k|            visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  290|  6.19k|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  6.19k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 6, False: 6.18k]
  |  |  ------------------
  ------------------
  291|      6|            {
  292|      6|                ec = cbor_errc::max_dimensions_exceeded;
  293|      6|                return;
  294|      6|            }
  295|  6.18k|            ++dim_;
  296|  6.18k|            return;
  297|  6.19k|        }
  298|  7.53k|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (298:13): [True: 1.54k, False: 5.99k]
  ------------------
  299|  1.54k|        {
  300|  1.54k|            this->write_value(func_(span_[dimensions_[dim_].index]), semantic_tag::none, visitor, context, ec);
  301|  1.54k|            dimensions_[dim_].index += dimensions_[dim_].stride;
  302|  1.54k|            ++count_;
  303|  1.54k|            return;
  304|  1.54k|        }
  305|  5.99k|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (305:13): [True: 5.99k, False: 0]
  ------------------
  306|  5.99k|        {
  307|  5.99k|            visitor.end_array(context, ec);
  308|  5.99k|            if (dim_ > 0)
  ------------------
  |  Branch (308:17): [True: 5.99k, False: 0]
  ------------------
  309|  5.99k|            {
  310|  5.99k|                --dim_;
  311|  5.99k|                dimensions_[dim_].index += dimensions_[dim_].stride;
  312|  5.99k|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (312:21): [True: 260, False: 5.73k]
  ------------------
  313|    260|                {
  314|  1.80k|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (314:50): [True: 1.54k, False: 260]
  ------------------
  315|  1.54k|                    {
  316|  1.54k|                        dimensions_[i].index = dimensions_[i-1].index;
  317|  1.54k|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  318|  1.54k|                    }
  319|    260|                }
  320|  5.99k|            }
  321|  5.99k|        }
  322|  5.99k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEEC2EONS3_6vectorIhNS4_IhEEEENS_16typed_array_tagsENS_12semantic_tagERKS5_:
  106|  3.33k|        : data_(std::move(data), alloc), 
  107|  3.33k|          span_(typed_array_cast<ValueType>(data_)), 
  108|  3.33k|          array_tag_(array_tag), 
  109|  3.33k|          extent_(span_.size()), 
  110|  3.33k|          tag_(tag), 
  111|  3.33k|          func_(Func{})
  112|  3.33k|    {
  113|  3.33k|    }
_ZNK8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEE4doneEv:
  141|   102k|    {
  142|   102k|        return done_;
  143|   102k|    }
_ZN8jsoncons4cbor25oned_typed_array_iteratorIdNS_8identityENSt3__19allocatorIcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  147|  54.6k|    {
  148|  54.6k|        if (JSONCONS_UNLIKELY(first_))
  ------------------
  |  |   79|  54.6k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3.33k, False: 51.3k]
  |  |  ------------------
  ------------------
  149|  3.33k|        {
  150|  3.33k|            visitor.begin_array(span_.size(), tag_, context, ec);
  151|  3.33k|            first_ = false;
  152|  3.33k|        }
  153|  51.3k|        else if (JSONCONS_LIKELY(index_ < span_.size()))
  ------------------
  |  |   78|  51.3k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (78:28): [True: 48.0k, False: 3.33k]
  |  |  ------------------
  ------------------
  154|  48.0k|        {
  155|  48.0k|            this->write_value(func_(span_[index_]), semantic_tag::none, visitor, context, ec);
  156|  48.0k|            ++index_;
  157|  48.0k|        }
  158|  3.33k|        else if (!done_)
  ------------------
  |  Branch (158:18): [True: 3.33k, False: 0]
  ------------------
  159|  3.33k|        {
  160|  3.33k|            visitor.end_array(context, ec);
  161|  3.33k|            done_ = true;
  162|  3.33k|        }
  163|  54.6k|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2ERKNS3_6vectorImNS4_ImEEEEPNS0_17basic_cbor_parserIS6_S7_EEbmRKS7_:
  347|  3.55k|        : extents_(extents, alloc), dimensions_(extents.size(), alloc), max_dimensions_(max_dimensions), 
  348|  3.55k|          parser_(parser), cursor_mode_(cursor_mode)
  349|  3.55k|    {
  350|  3.55k|        std::vector<std::size_t> strides(extents.size(), 0);
  351|  3.55k|        std::size_t stride = 1;
  352|  3.55k|        const size_t num_extents = extents.size();
  353|  10.1k|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (353:28): [True: 6.59k, False: 3.55k]
  ------------------
  354|  6.59k|        {
  355|  6.59k|            strides[num_extents - i - 1] = stride;
  356|  6.59k|            stride *= extents[num_extents - i - 1];
  357|  6.59k|        }
  358|  10.1k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (358:33): [True: 6.59k, False: 3.55k]
  ------------------
  359|  6.59k|        {
  360|  6.59k|            dimensions_[i].extent = extents[i];
  361|  6.59k|            dimensions_[i].stride = strides[i];
  362|  6.59k|            dimensions_[i].index = 0;
  363|  6.59k|            dimensions_[i].end = strides[i] * extents[i];
  364|  6.59k|        }
  365|  3.55k|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5countEv:
  393|    913|    {
  394|    913|        return count_;
  395|    913|    }
_ZNK8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  388|  4.74M|    {
  389|  4.74M|        return done_;
  390|  4.74M|    }
_ZN8jsoncons4cbor31cbor_mdarray_row_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  399|  4.74M|    {
  400|  4.74M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  4.74M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 4.74M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  401|       |
  402|  4.74M|        if (dim_ == 0)
  ------------------
  |  Branch (402:13): [True: 98.3k, False: 4.64M]
  ------------------
  403|  98.3k|        {
  404|  98.3k|            if (first_)
  ------------------
  |  Branch (404:17): [True: 3.55k, False: 94.8k]
  ------------------
  405|  3.55k|            {
  406|  3.55k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  407|  3.55k|                first_ = false;
  408|  3.55k|                return;
  409|  3.55k|            }
  410|  94.8k|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (410:17): [True: 985, False: 93.8k]
  ------------------
  411|    985|            {
  412|    985|                visitor.end_array(context, ec);
  413|    985|                done_ = true;
  414|    985|                return;
  415|    985|            }
  416|  94.8k|        }
  417|  4.73M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (417:13): [True: 1.99M, False: 2.74M]
  |  Branch (417:44): [True: 1.64M, False: 348k]
  ------------------
  418|  1.64M|        {
  419|  1.64M|            if (!cursor_mode_)
  ------------------
  |  Branch (419:17): [True: 1.64M, False: 0]
  ------------------
  420|  1.64M|            {
  421|  1.64M|                visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  422|  1.64M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.64M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.64M]
  |  |  ------------------
  ------------------
  423|      0|                {
  424|      0|                    return;
  425|      0|                }
  426|  1.64M|            }
  427|  1.64M|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  1.64M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 1.64M]
  |  |  ------------------
  ------------------
  428|      3|            {
  429|      3|                ec = cbor_errc::max_dimensions_exceeded;
  430|      3|                return;
  431|      3|            }
  432|  1.64M|            ++dim_;
  433|  1.64M|            return;
  434|  1.64M|        }
  435|  3.09M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (435:13): [True: 1.45M, False: 1.64M]
  ------------------
  436|  1.45M|        {
  437|  1.45M|            parser_->read_item(visitor, ec);
  438|  1.45M|            dimensions_[dim_].index += dimensions_[dim_].stride;
  439|  1.45M|            ++count_;
  440|  1.45M|            return;
  441|  1.45M|        }
  442|  1.64M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (442:13): [True: 1.64M, False: 0]
  ------------------
  443|  1.64M|        {
  444|  1.64M|            if (!cursor_mode_)
  ------------------
  |  Branch (444:17): [True: 1.64M, False: 0]
  ------------------
  445|  1.64M|            {
  446|  1.64M|                visitor.end_array(context, ec);
  447|  1.64M|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.64M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.64M]
  |  |  ------------------
  ------------------
  448|      0|                {
  449|      0|                    return;
  450|      0|                }
  451|  1.64M|            }
  452|  1.64M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  1.64M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 1.64M]
  |  |  ------------------
  ------------------
  453|      0|            {
  454|      0|                return;
  455|      0|            }
  456|  1.64M|            if (dim_ > 0)
  ------------------
  |  Branch (456:17): [True: 1.64M, False: 0]
  ------------------
  457|  1.64M|            {
  458|  1.64M|                --dim_;
  459|  1.64M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  460|  1.64M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (460:21): [True: 1.29M, False: 348k]
  ------------------
  461|  1.29M|                {
  462|  2.93M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (462:50): [True: 1.64M, False: 1.29M]
  ------------------
  463|  1.64M|                    {
  464|  1.64M|                        dimensions_[i].index = dimensions_[i-1].index;
  465|  1.64M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  466|  1.64M|                    }
  467|  1.29M|                }
  468|  1.64M|            }
  469|  1.64M|        }
  470|  1.64M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2ERKNS3_6vectorImNS4_ImEEEEPNS0_17basic_cbor_parserIS6_S7_EEbmRKS7_:
  495|  2.61k|        : extents_(extents,alloc), dimensions_(extents.size(), alloc),
  496|  2.61k|          max_dimensions_(max_dimensions), 
  497|  2.61k|          parser_(parser), cursor_mode_(cursor_mode)
  498|  2.61k|    {
  499|  2.61k|        std::vector<std::size_t> strides(extents.size(), 0);
  500|  2.61k|        std::size_t stride = 1;
  501|  2.61k|        const size_t num_extents = extents.size();
  502|  7.96k|        for (size_t i = 0; i < num_extents; ++i)
  ------------------
  |  Branch (502:28): [True: 5.35k, False: 2.61k]
  ------------------
  503|  5.35k|        {
  504|  5.35k|            strides[num_extents - i - 1] = stride;
  505|  5.35k|            stride *= extents[num_extents - i - 1];
  506|  5.35k|        }
  507|  7.96k|        for (std::size_t i = 0; i < strides.size(); ++i)
  ------------------
  |  Branch (507:33): [True: 5.35k, False: 2.61k]
  ------------------
  508|  5.35k|        {
  509|  5.35k|            dimensions_[i].extent = extents[i];
  510|  5.35k|            dimensions_[i].stride = strides[i];
  511|  5.35k|            dimensions_[i].index = 0;
  512|  5.35k|            dimensions_[i].end = strides[i] * extents[i];
  513|  5.35k|        }
  514|  2.61k|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5countEv:
  542|    354|    {
  543|    354|        return count_;
  544|    354|    }
_ZNK8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4doneEv:
  537|  13.5M|    {
  538|  13.5M|        return done_;
  539|  13.5M|    }
_ZN8jsoncons4cbor34cbor_mdarray_column_major_iteratorINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4nextERNS_21basic_generic_visitorIcEERKNS_11ser_contextERNS3_10error_codeE:
  548|  13.5M|    {
  549|  13.5M|        JSONCONS_ASSERT(!dimensions_.empty());
  ------------------
  |  |   67|  13.5M|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (67:32): [True: 0, False: 13.5M]
  |  |  ------------------
  |  |   68|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   69|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  550|       |
  551|  13.5M|        if (dim_ == 0)
  ------------------
  |  Branch (551:13): [True: 1.33M, False: 12.1M]
  ------------------
  552|  1.33M|        {
  553|  1.33M|            if (first_)
  ------------------
  |  Branch (553:17): [True: 2.61k, False: 1.33M]
  ------------------
  554|  2.61k|            {
  555|  2.61k|                if (!cursor_mode_)
  ------------------
  |  Branch (555:21): [True: 2.61k, False: 0]
  ------------------
  556|  2.61k|                {
  557|  2.61k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::multi_dim_column_major, context, ec);
  558|  2.61k|                    visitor.begin_array(dimensions_[dim_].extent, semantic_tag::none, context, ec);
  559|  2.61k|                    for (auto item : dimensions_)
  ------------------
  |  Branch (559:36): [True: 5.35k, False: 2.61k]
  ------------------
  560|  5.35k|                    {
  561|  5.35k|                        visitor.uint64_value(item.extent, semantic_tag::none, context, ec);
  562|  5.35k|                    }
  563|  2.61k|                    visitor.end_array(context, ec);
  564|  2.61k|                }
  565|  2.61k|                visitor.begin_array(dimensions_[dim_].extent, tag_, context, ec);
  566|  2.61k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  2.61k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 2.61k]
  |  |  ------------------
  ------------------
  567|      0|                {
  568|      0|                    return;
  569|      0|                }
  570|  2.61k|                first_ = false;
  571|  2.61k|                return;
  572|  2.61k|            }
  573|  1.33M|            if (dimensions_[dim_].index == dimensions_[dim_].end)
  ------------------
  |  Branch (573:17): [True: 893, False: 1.33M]
  ------------------
  574|    893|            {
  575|    893|                visitor.end_array(context, ec);
  576|    893|                if (!cursor_mode_)
  ------------------
  |  Branch (576:21): [True: 893, False: 0]
  ------------------
  577|    893|                {
  578|    893|                    visitor.end_array(context, ec);
  579|    893|                }
  580|    893|                done_ = true;
  581|    893|                return;
  582|    893|            }
  583|  1.33M|        }
  584|  13.5M|        if (dim_+1 < dimensions_.size() && dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (584:13): [True: 10.4M, False: 3.10M]
  |  Branch (584:44): [True: 5.82M, False: 4.57M]
  ------------------
  585|  5.82M|        {
  586|  5.82M|            if (JSONCONS_UNLIKELY(dim_ > max_dimensions_))
  ------------------
  |  |   79|  5.82M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 3, False: 5.82M]
  |  |  ------------------
  ------------------
  587|      3|            {
  588|      3|                ec = cbor_errc::max_dimensions_exceeded;
  589|      3|                return;
  590|      3|            }
  591|  5.82M|            ++dim_;
  592|  5.82M|            return;
  593|  5.82M|        }
  594|  7.68M|        if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (594:13): [True: 1.85M, False: 5.82M]
  ------------------
  595|  1.85M|        {
  596|  1.85M|            parser_->read_item(visitor, ec);
  597|  1.85M|            dimensions_[dim_].index += dimensions_[dim_].stride;
  598|  1.85M|            ++count_;
  599|  1.85M|            return;
  600|  1.85M|        }
  601|  5.82M|        if (dimensions_[dim_].index + dimensions_[dim_].stride >= dimensions_[dim_].end)
  ------------------
  |  Branch (601:13): [True: 5.82M, False: 0]
  ------------------
  602|  5.82M|        {
  603|  5.82M|            if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   79|  5.82M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (79:30): [True: 0, False: 5.82M]
  |  |  ------------------
  ------------------
  604|      0|            {
  605|      0|                return;
  606|      0|            }
  607|  5.82M|            if (dim_ > 0)
  ------------------
  |  Branch (607:17): [True: 5.82M, False: 0]
  ------------------
  608|  5.82M|            {
  609|  5.82M|                --dim_;
  610|  5.82M|                dimensions_[dim_].index += dimensions_[dim_].stride;
  611|  5.82M|                if (dimensions_[dim_].index < dimensions_[dim_].end)
  ------------------
  |  Branch (611:21): [True: 1.24M, False: 4.57M]
  ------------------
  612|  1.24M|                {
  613|  7.07M|                    for (std::size_t i = dim_+1; i < dimensions_.size(); ++i)
  ------------------
  |  Branch (613:50): [True: 5.82M, False: 1.24M]
  ------------------
  614|  5.82M|                    {
  615|  5.82M|                        dimensions_[i].index = dimensions_[i-1].index;
  616|  5.82M|                        dimensions_[i].end = dimensions_[i].index + dimensions_[i].stride*dimensions_[i].extent;
  617|  5.82M|                    }
  618|  1.24M|                }
  619|  5.82M|            }
  620|  5.82M|        }
  621|  5.82M|    }

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

