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

_ZNK8jsoncons16allocator_holderINSt3__19allocatorIcEEE13get_allocatorEv:
   30|   144k|    {
   31|   144k|        return alloc_;
   32|   144k|    }
_ZN8jsoncons16allocator_holderINSt3__19allocatorIcEEEC2ERKS3_:
   25|  11.1k|        : alloc_(alloc)
   26|  11.1k|        {}
_ZN8jsoncons16allocator_holderINSt3__19allocatorIcEEEC2Ev:
   20|  85.9k|    allocator_holder() = default;

_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEED2Ev:
 2769|  91.8M|        {
 2770|  91.8M|             destroy();
 2771|  91.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE7destroyEv:
  893|  91.8M|        {
  894|  91.8M|            switch (storage_kind())
  895|  91.8M|            {
  896|  47.4k|                case json_storage_kind::long_str:
  ------------------
  |  Branch (896:17): [True: 47.4k, False: 91.8M]
  ------------------
  897|  47.4k|                {
  898|  47.4k|                    if (cast<long_string_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (898:25): [True: 47.4k, False: 0]
  ------------------
  899|  47.4k|                    {
  900|  47.4k|                        long_string_storage::heap_string_factory_type::destroy(cast<long_string_storage>().ptr_);
  901|  47.4k|                    }
  902|  47.4k|                    break;
  903|      0|                }
  904|  72.1k|                case json_storage_kind::byte_str:
  ------------------
  |  Branch (904:17): [True: 72.1k, False: 91.8M]
  ------------------
  905|  72.1k|                    if (cast<byte_string_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (905:25): [True: 72.1k, False: 0]
  ------------------
  906|  72.1k|                    {
  907|  72.1k|                        byte_string_storage::heap_string_factory_type::destroy(cast<byte_string_storage>().ptr_);
  908|  72.1k|                    }
  909|  72.1k|                    break;
  910|  44.4k|                case json_storage_kind::array:
  ------------------
  |  Branch (910:17): [True: 44.4k, False: 91.8M]
  ------------------
  911|  44.4k|                {
  912|  44.4k|                    if (cast<array_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (912:25): [True: 44.4k, False: 0]
  ------------------
  913|  44.4k|                    {
  914|  44.4k|                        auto& stor = cast<array_storage>();
  915|  44.4k|                        typename array_storage::allocator_type alloc{stor.ptr_->get_allocator()};
  916|  44.4k|                        std::allocator_traits<typename array_storage::allocator_type>::destroy(alloc, ext_traits::to_plain_pointer(stor.ptr_));
  917|  44.4k|                        std::allocator_traits<typename array_storage::allocator_type>::deallocate(alloc, stor.ptr_,1);
  918|  44.4k|                    }
  919|  44.4k|                    break;
  920|      0|                }
  921|  41.5k|                case json_storage_kind::object:
  ------------------
  |  Branch (921:17): [True: 41.5k, False: 91.8M]
  ------------------
  922|  41.5k|                {
  923|  41.5k|                    if (cast<object_storage>().ptr_ != nullptr)
  ------------------
  |  Branch (923:25): [True: 41.5k, False: 0]
  ------------------
  924|  41.5k|                    {
  925|  41.5k|                        auto& stor = cast<object_storage>();
  926|  41.5k|                        typename object_storage::allocator_type alloc{stor.ptr_->get_allocator()};
  927|  41.5k|                        std::allocator_traits<typename object_storage::allocator_type>::destroy(alloc, ext_traits::to_plain_pointer(stor.ptr_));
  928|  41.5k|                        std::allocator_traits<typename object_storage::allocator_type>::deallocate(alloc, stor.ptr_,1);
  929|  41.5k|                    }
  930|  41.5k|                    break;
  931|      0|                }
  932|  91.6M|                default:
  ------------------
  |  Branch (932:17): [True: 91.6M, False: 205k]
  ------------------
  933|  91.6M|                    break;
  934|  91.8M|            }
  935|  91.8M|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12storage_kindEv:
 1457|   269M|        {
 1458|       |            // It is legal to access 'common_.storage_kind_' even though 
 1459|       |            // common_ is not the active member of the union because 'storage_kind_' 
 1460|       |            // is a part of the common initial sequence of all union members
 1461|       |            // as defined in 11.4-25 of the Standard.
 1462|   269M|            return static_cast<json_storage_kind>(common_.storage_kind_);
 1463|   269M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_19long_string_storageEEERT_v:
  999|   470k|        {
 1000|   470k|            return cast(identity<T>());
 1001|   470k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_19long_string_storageEEE:
 1090|   470k|        {
 1091|   470k|            return long_str_;
 1092|   470k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_19byte_string_storageEEERT_v:
  999|   515k|        {
 1000|   515k|            return cast(identity<T>());
 1001|   515k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_19byte_string_storageEEE:
 1100|   515k|        {
 1101|   515k|            return byte_str_;
 1102|   515k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13array_storageEEERT_v:
  999|  7.17M|        {
 1000|  7.17M|            return cast(identity<T>());
 1001|  7.17M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13array_storageEEE:
 1120|  7.17M|        {
 1121|  7.17M|            return array_;
 1122|  7.17M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EOS5_:
 2302|  70.4M|        {
 2303|  70.4M|            uninitialized_move(std::move(other));
 2304|  70.4M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18uninitialized_moveEOS5_:
 1297|  70.4M|        {
 1298|  70.4M|            if (is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1298:17): [True: 70.0M, False: 422k]
  ------------------
 1299|  70.0M|            {
 1300|  70.0M|                std::memcpy(static_cast<void*>(this), &other, sizeof(basic_json));
 1301|  70.0M|            }
 1302|   422k|            else
 1303|   422k|            {
 1304|   422k|                switch (other.storage_kind())
 1305|   422k|                {
 1306|   116k|                    case json_storage_kind::long_str:
  ------------------
  |  Branch (1306:21): [True: 116k, False: 305k]
  ------------------
 1307|   116k|                        construct<long_string_storage>(other.cast<long_string_storage>());
 1308|   116k|                        other.construct<null_storage>();
 1309|   116k|                        break;
 1310|   115k|                    case json_storage_kind::byte_str:
  ------------------
  |  Branch (1310:21): [True: 115k, False: 306k]
  ------------------
 1311|   115k|                        construct<byte_string_storage>(other.cast<byte_string_storage>());
 1312|   115k|                        other.construct<null_storage>();
 1313|   115k|                        break;
 1314|  86.6k|                    case json_storage_kind::array:
  ------------------
  |  Branch (1314:21): [True: 86.6k, False: 335k]
  ------------------
 1315|  86.6k|                        construct<array_storage>(other.cast<array_storage>());
 1316|  86.6k|                        other.construct<null_storage>();
 1317|  86.6k|                        break;
 1318|   102k|                    case json_storage_kind::object:
  ------------------
  |  Branch (1318:21): [True: 102k, False: 319k]
  ------------------
 1319|   102k|                        construct<object_storage>(other.cast<object_storage>());
 1320|   102k|                        other.construct<null_storage>();
 1321|   102k|                        break;
 1322|      0|                    default:
  ------------------
  |  Branch (1322:21): [True: 0, False: 422k]
  ------------------
 1323|      0|                        JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1324|      0|                        break;
 1325|   422k|                }
 1326|   422k|            }
 1327|  70.4M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19long_string_storageEJRS7_EEEvDpOT0_:
  990|   163k|        {
  991|   163k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|   163k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19long_string_storageC2ERKS6_:
  621|   211k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  622|   211k|            {
  623|   211k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJEEEvDpOT0_:
  990|   422k|        {
  991|   422k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|   422k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12null_storageEEERT_v:
  999|  21.5M|        {
 1000|  21.5M|            return cast(identity<T>());
 1001|  21.5M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12null_storageEEE:
 1010|  21.5M|        {
 1011|  21.5M|            return null_;
 1012|  21.5M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12null_storageC2ENS_12semantic_tagE:
  445|  21.2M|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::null)), short_str_length_(0), tag_(tag)
  446|  21.2M|            {
  447|  21.2M|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRS7_EEEvDpOT0_:
  990|   149k|        {
  991|   149k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|   149k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19byte_string_storageC2ERKS6_:
  670|   183k|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  671|   183k|            {
  672|   183k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13array_storageEJRS7_EEEvDpOT0_:
  990|   165k|        {
  991|   165k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|   165k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storageC2ERKS6_:
  722|   244k|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  723|   244k|            {
  724|   244k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14object_storageEJRS7_EEEvDpOT0_:
  990|   155k|        {
  991|   155k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|   155k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storageC2ERKS6_:
  772|   208k|                : storage_kind_(other.storage_kind_), short_str_length_(0), tag_(other.tag_), ptr_(other.ptr_)
  773|   208k|            {
  774|   208k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE11array_rangeEv:
 4754|  4.06k|        {
 4755|  4.06k|            switch (storage_kind())
 4756|  4.06k|            {
 4757|  4.06k|                case json_storage_kind::array:
  ------------------
  |  Branch (4757:17): [True: 4.06k, False: 0]
  ------------------
 4758|  4.06k|                    return array_range_type(cast<array_storage>().value().begin(),
 4759|  4.06k|                        cast<array_storage>().value().end());
 4760|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4760:17): [True: 0, False: 4.06k]
  ------------------
 4761|      0|                    return cast<json_ref_storage>().value().array_range();
 4762|      0|                default:
  ------------------
  |  Branch (4762:17): [True: 0, False: 4.06k]
  ------------------
 4763|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an array"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4764|  4.06k|            }
 4765|  4.06k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storage5valueEv:
  745|  6.70M|            {
  746|  6.70M|                return *ptr_;
  747|  6.70M|            }
_ZN8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEEC2ERKS9_SF_:
  343|  4.06k|            : first_(first), last_(last)
  344|  4.06k|        {
  345|  4.06k|        }
_ZNK8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEE5beginEv:
  348|  4.06k|        {
  349|  4.06k|            return first_;
  350|  4.06k|        }
_ZNK8jsoncons5rangeINSt3__111__wrap_iterIPNS_10basic_jsonIcNS_13sorted_policyENS1_9allocatorIcEEEEEENS2_IPKS7_EEE3endEv:
  352|  4.06k|        {
  353|  4.06k|            return last_;
  354|  4.06k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE5emptyEv:
 3420|  9.04k|        {
 3421|  9.04k|            switch (storage_kind())
 3422|  9.04k|            {
 3423|      0|                case json_storage_kind::byte_str:
  ------------------
  |  Branch (3423:17): [True: 0, False: 9.04k]
  ------------------
 3424|      0|                    return cast<byte_string_storage>().length() == 0;
 3425|      0|                    break;
 3426|      0|                case json_storage_kind::short_str:
  ------------------
  |  Branch (3426:17): [True: 0, False: 9.04k]
  ------------------
 3427|      0|                    return cast<short_string_storage>().length() == 0;
 3428|      0|                case json_storage_kind::long_str:
  ------------------
  |  Branch (3428:17): [True: 0, False: 9.04k]
  ------------------
 3429|      0|                    return cast<long_string_storage>().length() == 0;
 3430|  5.53k|                case json_storage_kind::array:
  ------------------
  |  Branch (3430:17): [True: 5.53k, False: 3.51k]
  ------------------
 3431|  5.53k|                    return cast<array_storage>().value().empty();
 3432|      0|                case json_storage_kind::empty_object:
  ------------------
  |  Branch (3432:17): [True: 0, False: 9.04k]
  ------------------
 3433|      0|                    return true;
 3434|  3.51k|                case json_storage_kind::object:
  ------------------
  |  Branch (3434:17): [True: 3.51k, False: 5.53k]
  ------------------
 3435|  3.51k|                    return cast<object_storage>().value().empty();
 3436|      0|                case json_storage_kind::const_json_ref:
  ------------------
  |  Branch (3436:17): [True: 0, False: 9.04k]
  ------------------
 3437|      0|                    return cast<const_json_ref_storage>().value().empty();
 3438|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (3438:17): [True: 0, False: 9.04k]
  ------------------
 3439|      0|                    return cast<json_ref_storage>().value().empty();
 3440|      0|                default:
  ------------------
  |  Branch (3440:17): [True: 0, False: 9.04k]
  ------------------
 3441|      0|                    return false;
 3442|  9.04k|            }
 3443|  9.04k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13array_storageEEERKT_v:
 1005|  5.53k|        {
 1006|  5.53k|            return cast(identity<T>());
 1007|  5.53k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13array_storageEEE:
 1125|  5.53k|        {
 1126|  5.53k|            return array_;
 1127|  5.53k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storage5valueEv:
  750|  5.53k|            {
  751|  5.53k|                return *ptr_;
  752|  5.53k|            }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14object_storageEEERKT_v:
 1005|  3.51k|        {
 1006|  3.51k|            return cast(identity<T>());
 1007|  3.51k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14object_storageEEE:
 1115|  3.51k|        {
 1116|  3.51k|            return object_;
 1117|  3.51k|        }
_ZNK8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storage5valueEv:
  796|  3.51k|            {
  797|  3.51k|                JSONCONS_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   49|  3.51k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 3.51k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  798|  3.51k|                return *ptr_;
  799|  3.51k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE5clearEv:
 4151|  7.98k|        {
 4152|  7.98k|            switch (storage_kind())
 4153|  7.98k|            {
 4154|  4.06k|                case json_storage_kind::array:
  ------------------
  |  Branch (4154:17): [True: 4.06k, False: 3.92k]
  ------------------
 4155|  4.06k|                    cast<array_storage>().value().clear();
 4156|  4.06k|                    break;
 4157|  3.92k|                case json_storage_kind::object:
  ------------------
  |  Branch (4157:17): [True: 3.92k, False: 4.06k]
  ------------------
 4158|  3.92k|                    cast<object_storage>().value().clear();
 4159|  3.92k|                    break;
 4160|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4160:17): [True: 0, False: 7.98k]
  ------------------
 4161|      0|                    cast<json_ref_storage>().value().clear();
 4162|      0|                    break;
 4163|      0|                default:
  ------------------
  |  Branch (4163:17): [True: 0, False: 7.98k]
  ------------------
 4164|      0|                    break;
 4165|  7.98k|            }
 4166|  7.98k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storage5valueEv:
  790|  25.9k|            {
  791|  25.9k|                JSONCONS_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   49|  25.9k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 25.9k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  792|  25.9k|                return *ptr_;
  793|  25.9k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12object_rangeEv:
 4720|  3.92k|        {
 4721|  3.92k|            switch (storage_kind())
 4722|  3.92k|            {
 4723|      0|                case json_storage_kind::empty_object:
  ------------------
  |  Branch (4723:17): [True: 0, False: 3.92k]
  ------------------
 4724|      0|                    return object_range_type(object_iterator(), object_iterator());
 4725|  3.92k|                case json_storage_kind::object:
  ------------------
  |  Branch (4725:17): [True: 3.92k, False: 0]
  ------------------
 4726|  3.92k|                    return object_range_type(object_iterator(cast<object_storage>().value().begin()),
 4727|  3.92k|                                                  object_iterator(cast<object_storage>().value().end()));
 4728|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4728:17): [True: 0, False: 3.92k]
  ------------------
 4729|      0|                    return cast<json_ref_storage>().value().object_range();
 4730|      0|                default:
  ------------------
  |  Branch (4730:17): [True: 0, False: 3.92k]
  ------------------
 4731|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Not an object"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4732|  3.92k|            }
 4733|  3.92k|        }
_ZN8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEEC2ERKSI_SP_:
  343|  3.92k|            : first_(first), last_(last)
  344|  3.92k|        {
  345|  3.92k|        }
_ZN8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEC2ESG_:
  118|  7.84k|            explicit json_object_iterator_adaptor(Iterator ptr) : current_(ptr), has_value_(true)  
  119|  7.84k|            {
  120|  7.84k|            }
_ZNK8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEE5beginEv:
  348|  3.92k|        {
  349|  3.92k|            return first_;
  350|  3.92k|        }
_ZNK8jsoncons5rangeINS_6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyESA_EEEEEEEENS2_INS4_IPKSF_EEEEE3endEv:
  352|  3.92k|        {
  353|  3.92k|            return last_;
  354|  3.92k|        }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEneERKSH_:
  218|  8.62k|            {
  219|  8.62k|                return !(*this == rhs);
  220|  8.62k|            }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEeqERKSH_:
  209|  8.62k|            {
  210|  8.62k|                if (JSONCONS_LIKELY(has_value_ && rhs.has_value_))
  ------------------
  |  |   77|  17.2k|#define JSONCONS_LIKELY(x) __builtin_expect(!!(x), 1)
  |  |  ------------------
  |  |  |  Branch (77:28): [True: 8.62k, False: 0]
  |  |  |  Branch (77:48): [True: 8.62k, False: 0]
  |  |  |  Branch (77:48): [True: 8.62k, False: 0]
  |  |  ------------------
  ------------------
  211|  8.62k|                {
  212|  8.62k|                    return current_ == rhs.current_;
  213|  8.62k|                }
  214|      0|                return !has_value_ && !rhs.has_value_;
  ------------------
  |  Branch (214:24): [True: 0, False: 0]
  |  Branch (214:39): [True: 0, False: 0]
  ------------------
  215|  8.62k|            }
_ZNK8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEdeEv:
  140|  4.70k|            {
  141|  4.70k|                return *current_;
  142|  4.70k|            }
_ZN8jsoncons6detail28json_object_iterator_adaptorINSt3__111__wrap_iterIPNS_9key_valueINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES9_EEEEEEEppEv:
  150|  4.70k|            {
  151|  4.70k|                ++current_;
  152|  4.70k|                return *this;
  153|  4.70k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14object_storageEEERT_v:
  999|   462k|        {
 1000|   462k|            return cast(identity<T>());
 1001|   462k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14object_storageEEE:
 1110|   462k|        {
 1111|   462k|            return object_;
 1112|   462k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2Ev:
 2270|  4.92k|        {
 2271|  4.92k|            construct<empty_object_storage>(semantic_tag::none);
 2272|  4.92k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20empty_object_storageEJNS_12semantic_tagEEEEvDpOT0_:
  990|  4.92k|        {
  991|  4.92k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  4.92k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_20empty_object_storageEEERT_v:
  999|  9.02k|        {
 1000|  9.02k|            return cast(identity<T>());
 1001|  9.02k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_20empty_object_storageEEE:
 1020|  9.02k|        {
 1021|  9.02k|            return empty_object_;
 1022|  9.02k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20empty_object_storageC2ENS_12semantic_tagE:
  457|  4.92k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::empty_object)), short_str_length_(0), tag_(tag)
  458|  4.92k|            {
  459|  4.92k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE7reserveEm:
 3479|  7.57k|        {
 3480|  7.57k|            if (n > 0)
  ------------------
  |  Branch (3480:17): [True: 7.57k, False: 0]
  ------------------
 3481|  7.57k|            {
 3482|  7.57k|                switch (storage_kind())
 3483|  7.57k|                {
 3484|  7.57k|                    case json_storage_kind::array:
  ------------------
  |  Branch (3484:21): [True: 7.57k, False: 0]
  ------------------
 3485|  7.57k|                        cast<array_storage>().value().reserve(n);
 3486|  7.57k|                        break;
 3487|      0|                    case json_storage_kind::empty_object:
  ------------------
  |  Branch (3487:21): [True: 0, False: 7.57k]
  ------------------
 3488|      0|                        create_object_implicitly();
 3489|      0|                        cast<object_storage>().value().reserve(n);
 3490|      0|                        break;
 3491|      0|                    case json_storage_kind::object:
  ------------------
  |  Branch (3491:21): [True: 0, False: 7.57k]
  ------------------
 3492|      0|                        cast<object_storage>().value().reserve(n);
 3493|      0|                        break;
 3494|      0|                    case json_storage_kind::json_ref:
  ------------------
  |  Branch (3494:21): [True: 0, False: 7.57k]
  ------------------
 3495|      0|                        cast<json_ref_storage>().value().reserve(n);
 3496|      0|                        break;
 3497|      0|                    default:
  ------------------
  |  Branch (3497:21): [True: 0, False: 7.57k]
  ------------------
 3498|      0|                        break;
 3499|  7.57k|                }
 3500|  7.57k|            }
 3501|  7.57k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_17json_object_arg_tENS_12semantic_tagERKS4_:
 2315|  41.5k|        {
 2316|  41.5k|            auto ptr = create_object(alloc);
 2317|  41.5k|            construct<object_storage>(ptr, tag);
 2318|  41.5k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13create_objectIJEEEPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEERKS4_DpOT_:
  971|  41.5k|        {
  972|  41.5k|            using stor_allocator_type = typename object_storage::allocator_type;
  973|  41.5k|            stor_allocator_type stor_alloc(alloc);
  974|  41.5k|            auto ptr = std::allocator_traits<stor_allocator_type>::allocate(stor_alloc, 1);
  975|  41.5k|            JSONCONS_TRY
  ------------------
  |  |   37|  41.5k|    #define JSONCONS_TRY try
  ------------------
  976|  41.5k|            {
  977|  41.5k|                std::allocator_traits<stor_allocator_type>::construct(stor_alloc, ext_traits::to_plain_pointer(ptr), 
  978|  41.5k|                    std::forward<Args>(args)...);
  979|  41.5k|            }
  980|  41.5k|            JSONCONS_CATCH(...)
  981|  41.5k|            {
  982|      0|                std::allocator_traits<stor_allocator_type>::deallocate(stor_alloc, ptr,1);
  983|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  984|      0|            }
  985|  41.5k|            return ptr;
  986|  41.5k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14object_storageEJRPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEERNS_12semantic_tagEEEEvDpOT0_:
  990|  41.5k|        {
  991|  41.5k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  41.5k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14object_storageC2EPNS_18sorted_json_objectINS2_12basic_stringIcNS2_11char_traitsIcEES4_EES5_NS2_6vectorEEENS_12semantic_tagE:
  767|  41.5k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::object)), short_str_length_(0), tag_(tag), ptr_(ptr)
  768|  41.5k|            {
  769|  41.5k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9push_backEOS5_:
 4696|  6.68M|        {
 4697|  6.68M|            switch (storage_kind())
 4698|  6.68M|            {
 4699|  6.68M|                case json_storage_kind::array:
  ------------------
  |  Branch (4699:17): [True: 6.68M, False: 0]
  ------------------
 4700|  6.68M|                    cast<array_storage>().value().push_back(std::move(val));
 4701|  6.68M|                    break;
 4702|      0|                case json_storage_kind::json_ref:
  ------------------
  |  Branch (4702:17): [True: 0, False: 6.68M]
  ------------------
 4703|      0|                    cast<json_ref_storage>().value().push_back(std::move(val));
 4704|      0|                    break;
 4705|      0|                default:
  ------------------
  |  Branch (4705:17): [True: 0, False: 6.68M]
  ------------------
 4706|      0|                    JSONCONS_THROW(json_runtime_error<std::domain_error>("Attempting to insert into a value that is not an array"));
  ------------------
  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  ------------------
 4707|  6.68M|            }
 4708|  6.68M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEaSEOS5_:
 1448|  46.0M|        {
 1449|  46.0M|            if (this != &other)
  ------------------
  |  Branch (1449:17): [True: 46.0M, False: 0]
  ------------------
 1450|  46.0M|            {
 1451|  46.0M|                move_assignment(std::move(other));
 1452|  46.0M|            }
 1453|  46.0M|            return *this;
 1454|  46.0M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE15move_assignmentEOS5_:
 1410|  46.0M|        {
 1411|  46.0M|            if (is_trivial_storage(storage_kind()) && is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1411:17): [True: 46.0M, False: 0]
  |  Branch (1411:55): [True: 45.7M, False: 212k]
  ------------------
 1412|  45.7M|            {
 1413|  45.7M|                std::memcpy(static_cast<void*>(this), &other, sizeof(basic_json));
 1414|  45.7M|            }
 1415|   212k|            else
 1416|   212k|            {
 1417|   212k|                swap(other);
 1418|   212k|            }
 1419|  46.0M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4swapERS5_:
 1929|   212k|        {
 1930|   212k|            if (this == &other)
  ------------------
  |  Branch (1930:17): [True: 0, False: 212k]
  ------------------
 1931|      0|            {
 1932|      0|                return;
 1933|      0|            }
 1934|   212k|            if (is_trivial_storage(storage_kind()) && is_trivial_storage(other.storage_kind()))
  ------------------
  |  Branch (1934:17): [True: 212k, False: 0]
  |  Branch (1934:55): [True: 0, False: 212k]
  ------------------
 1935|      0|            {
 1936|      0|                basic_json temp;               
 1937|      0|                std::memcpy(static_cast<void*>(&temp), static_cast<void*>(&other), sizeof(basic_json));
 1938|      0|                std::memcpy(static_cast<void*>(&other), static_cast<void*>(this), sizeof(basic_json));
 1939|      0|                std::memcpy(static_cast<void*>(this), static_cast<void*>(&temp), sizeof(basic_json));
 1940|      0|            }
 1941|   212k|            else
 1942|   212k|            {
 1943|   212k|                switch (storage_kind())
 1944|   212k|                {
 1945|   181k|                    case json_storage_kind::null: swap_l<null_storage>(other); break;
  ------------------
  |  Branch (1945:21): [True: 181k, False: 31.1k]
  ------------------
 1946|  2.05k|                    case json_storage_kind::empty_object : swap_l<empty_object_storage>(other); break;
  ------------------
  |  Branch (1946:21): [True: 2.05k, False: 210k]
  ------------------
 1947|  6.54k|                    case json_storage_kind::boolean: swap_l<bool_storage>(other); break;
  ------------------
  |  Branch (1947:21): [True: 6.54k, False: 206k]
  ------------------
 1948|  6.12k|                    case json_storage_kind::int64: swap_l<int64_storage>(other); break;
  ------------------
  |  Branch (1948:21): [True: 6.12k, False: 206k]
  ------------------
 1949|  2.80k|                    case json_storage_kind::uint64: swap_l<uint64_storage>(other); break;
  ------------------
  |  Branch (1949:21): [True: 2.80k, False: 209k]
  ------------------
 1950|      0|                    case json_storage_kind::half_float: swap_l<half_storage>(other); break;
  ------------------
  |  Branch (1950:21): [True: 0, False: 212k]
  ------------------
 1951|  3.30k|                    case json_storage_kind::float64: swap_l<double_storage>(other); break;
  ------------------
  |  Branch (1951:21): [True: 3.30k, False: 209k]
  ------------------
 1952|  10.2k|                    case json_storage_kind::short_str: swap_l<short_string_storage>(other); break;
  ------------------
  |  Branch (1952:21): [True: 10.2k, False: 202k]
  ------------------
 1953|      0|                    case json_storage_kind::long_str: swap_l<long_string_storage>(other); break;
  ------------------
  |  Branch (1953:21): [True: 0, False: 212k]
  ------------------
 1954|      0|                    case json_storage_kind::byte_str: swap_l<byte_string_storage>(other); break;
  ------------------
  |  Branch (1954:21): [True: 0, False: 212k]
  ------------------
 1955|      0|                    case json_storage_kind::array: swap_l<array_storage>(other); break;
  ------------------
  |  Branch (1955:21): [True: 0, False: 212k]
  ------------------
 1956|      0|                    case json_storage_kind::object: swap_l<object_storage>(other); break;
  ------------------
  |  Branch (1956:21): [True: 0, False: 212k]
  ------------------
 1957|      0|                    case json_storage_kind::const_json_ref: swap_l<const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1957:21): [True: 0, False: 212k]
  ------------------
 1958|      0|                    case json_storage_kind::json_ref: swap_l<json_ref_storage>(other); break;
  ------------------
  |  Branch (1958:21): [True: 0, False: 212k]
  ------------------
 1959|      0|                    default:
  ------------------
  |  Branch (1959:21): [True: 0, False: 212k]
  ------------------
 1960|      0|                        JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1961|      0|                        break;
 1962|   212k|                }
 1963|   212k|            }
 1964|   212k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12null_storageEEEvRS5_:
 1165|   181k|        {
 1166|   181k|            switch (other.storage_kind())
 1167|   181k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 181k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 181k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 181k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 181k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 181k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 181k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 181k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 181k]
  ------------------
 1176|  34.4k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 34.4k, False: 147k]
  ------------------
 1177|  28.6k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 28.6k, False: 153k]
  ------------------
 1178|  71.4k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 71.4k, False: 110k]
  ------------------
 1179|  47.0k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 47.0k, False: 134k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 181k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 181k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 181k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|   181k|            }
 1186|   181k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJRS7_EEEvDpOT0_:
  990|   181k|        {
  991|   181k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|   181k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20empty_object_storageEJRS7_EEEvDpOT0_:
  990|  2.05k|        {
  991|  2.05k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  2.05k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_12bool_storageEEERT_v:
  999|  46.8k|        {
 1000|  46.8k|            return cast(identity<T>());
 1001|  46.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_12bool_storageEEE:
 1030|  46.8k|        {
 1031|  46.8k|            return boolean_;
 1032|  46.8k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12bool_storageEJRS7_EEEvDpOT0_:
  990|  6.54k|        {
  991|  6.54k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  6.54k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_13int64_storageEEERT_v:
  999|   244k|        {
 1000|   244k|            return cast(identity<T>());
 1001|   244k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_13int64_storageEEE:
 1040|   244k|        {
 1041|   244k|            return int64_;
 1042|   244k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13int64_storageEJRS7_EEEvDpOT0_:
  990|  6.12k|        {
  991|  6.12k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  6.12k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14uint64_storageEEERT_v:
  999|  24.4k|        {
 1000|  24.4k|            return cast(identity<T>());
 1001|  24.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14uint64_storageEEE:
 1050|  24.4k|        {
 1051|  24.4k|            return uint64_;
 1052|  24.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14uint64_storageEJRS7_EEEvDpOT0_:
  990|  2.80k|        {
  991|  2.80k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  2.80k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_14double_storageEEERT_v:
  999|  26.6k|        {
 1000|  26.6k|            return cast(identity<T>());
 1001|  26.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_14double_storageEEE:
 1070|  26.6k|        {
 1071|  26.6k|            return float64_;
 1072|  26.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14double_storageEJRS7_EEEvDpOT0_:
  990|  3.30k|        {
  991|  3.30k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  3.30k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castINS5_20short_string_storageEEERT_v:
  999|   101k|        {
 1000|   101k|            return cast(identity<T>());
 1001|   101k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE4castENS5_8identityINS5_20short_string_storageEEE:
 1080|   101k|        {
 1081|   101k|            return short_str_;
 1082|   101k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20short_string_storageC2ERKS6_:
  580|  10.2k|                : storage_kind_(other.storage_kind_), short_str_length_(other.short_str_length_), tag_(other.tag_)
  581|  10.2k|            {
  582|  10.2k|                std::memcpy(data_,other.data_,other.short_str_length_*sizeof(char_type));
  583|  10.2k|                data_[short_str_length_] = 0;
  584|  10.2k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20short_string_storageEJRS7_EEEvDpOT0_:
  990|  10.2k|        {
  991|  10.2k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  10.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19long_string_storageEEEvRS5_:
 1151|  34.4k|        {
 1152|  34.4k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  34.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  34.4k|        {
 1158|  34.4k|            TypeR temp{other.cast<TypeR>()};
 1159|  34.4k|            other.construct<TypeL>(cast<TypeL>());
 1160|  34.4k|            construct<TypeR>(temp);
 1161|  34.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19byte_string_storageEEEvRS5_:
 1151|  28.6k|        {
 1152|  28.6k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  28.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  28.6k|        {
 1158|  28.6k|            TypeR temp{other.cast<TypeR>()};
 1159|  28.6k|            other.construct<TypeL>(cast<TypeL>());
 1160|  28.6k|            construct<TypeR>(temp);
 1161|  28.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_13array_storageEEEvRS5_:
 1151|  71.4k|        {
 1152|  71.4k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  71.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  71.4k|        {
 1158|  71.4k|            TypeR temp{other.cast<TypeR>()};
 1159|  71.4k|            other.construct<TypeL>(cast<TypeL>());
 1160|  71.4k|            construct<TypeR>(temp);
 1161|  71.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_14object_storageEEEvRS5_:
 1151|  47.0k|        {
 1152|  47.0k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  47.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12null_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  47.0k|        {
 1158|  47.0k|            TypeR temp{other.cast<TypeR>()};
 1159|  47.0k|            other.construct<TypeL>(cast<TypeL>());
 1160|  47.0k|            construct<TypeR>(temp);
 1161|  47.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_20empty_object_storageEEEvRS5_:
 1165|  2.05k|        {
 1166|  2.05k|            switch (other.storage_kind())
 1167|  2.05k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 2.05k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 2.05k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 2.05k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 2.05k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 2.05k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 2.05k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 2.05k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 2.05k]
  ------------------
 1176|      0|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 0, False: 2.05k]
  ------------------
 1177|      0|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 0, False: 2.05k]
  ------------------
 1178|      0|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 0, False: 2.05k]
  ------------------
 1179|  2.05k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 2.05k, False: 0]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 2.05k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 2.05k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 2.05k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  2.05k|            }
 1186|  2.05k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_14object_storageEEEvRS5_:
 1151|  2.05k|        {
 1152|  2.05k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  2.05k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20empty_object_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  2.05k|        {
 1158|  2.05k|            TypeR temp{other.cast<TypeR>()};
 1159|  2.05k|            other.construct<TypeL>(cast<TypeL>());
 1160|  2.05k|            construct<TypeR>(temp);
 1161|  2.05k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_12bool_storageEEEvRS5_:
 1165|  6.54k|        {
 1166|  6.54k|            switch (other.storage_kind())
 1167|  6.54k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 6.54k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 6.54k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 6.54k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 6.54k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 6.54k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 6.54k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 6.54k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 6.54k]
  ------------------
 1176|  1.13k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 1.13k, False: 5.41k]
  ------------------
 1177|  2.88k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 2.88k, False: 3.65k]
  ------------------
 1178|  1.66k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 1.66k, False: 4.88k]
  ------------------
 1179|    860|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 860, False: 5.68k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 6.54k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 6.54k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 6.54k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  6.54k|            }
 1186|  6.54k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19long_string_storageEEEvRS5_:
 1151|  1.13k|        {
 1152|  1.13k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  1.13k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  1.13k|        {
 1158|  1.13k|            TypeR temp{other.cast<TypeR>()};
 1159|  1.13k|            other.construct<TypeL>(cast<TypeL>());
 1160|  1.13k|            construct<TypeR>(temp);
 1161|  1.13k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19byte_string_storageEEEvRS5_:
 1151|  2.88k|        {
 1152|  2.88k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  2.88k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  2.88k|        {
 1158|  2.88k|            TypeR temp{other.cast<TypeR>()};
 1159|  2.88k|            other.construct<TypeL>(cast<TypeL>());
 1160|  2.88k|            construct<TypeR>(temp);
 1161|  2.88k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_13array_storageEEEvRS5_:
 1151|  1.66k|        {
 1152|  1.66k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  1.66k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  1.66k|        {
 1158|  1.66k|            TypeR temp{other.cast<TypeR>()};
 1159|  1.66k|            other.construct<TypeL>(cast<TypeL>());
 1160|  1.66k|            construct<TypeR>(temp);
 1161|  1.66k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_14object_storageEEEvRS5_:
 1151|    860|        {
 1152|    860|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    860|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_12bool_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    860|        {
 1158|    860|            TypeR temp{other.cast<TypeR>()};
 1159|    860|            other.construct<TypeL>(cast<TypeL>());
 1160|    860|            construct<TypeR>(temp);
 1161|    860|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_13int64_storageEEEvRS5_:
 1165|  6.12k|        {
 1166|  6.12k|            switch (other.storage_kind())
 1167|  6.12k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 6.12k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 6.12k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 6.12k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 6.12k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 6.12k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 6.12k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 6.12k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 6.12k]
  ------------------
 1176|  1.08k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 1.08k, False: 5.04k]
  ------------------
 1177|    257|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 257, False: 5.86k]
  ------------------
 1178|  3.42k|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 3.42k, False: 2.69k]
  ------------------
 1179|  1.35k|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 1.35k, False: 4.76k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 6.12k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 6.12k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 6.12k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  6.12k|            }
 1186|  6.12k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19long_string_storageEEEvRS5_:
 1151|  1.08k|        {
 1152|  1.08k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  1.08k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  1.08k|        {
 1158|  1.08k|            TypeR temp{other.cast<TypeR>()};
 1159|  1.08k|            other.construct<TypeL>(cast<TypeL>());
 1160|  1.08k|            construct<TypeR>(temp);
 1161|  1.08k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19byte_string_storageEEEvRS5_:
 1151|    257|        {
 1152|    257|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    257|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    257|        {
 1158|    257|            TypeR temp{other.cast<TypeR>()};
 1159|    257|            other.construct<TypeL>(cast<TypeL>());
 1160|    257|            construct<TypeR>(temp);
 1161|    257|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_13array_storageEEEvRS5_:
 1151|  3.42k|        {
 1152|  3.42k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  3.42k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  3.42k|        {
 1158|  3.42k|            TypeR temp{other.cast<TypeR>()};
 1159|  3.42k|            other.construct<TypeL>(cast<TypeL>());
 1160|  3.42k|            construct<TypeR>(temp);
 1161|  3.42k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_14object_storageEEEvRS5_:
 1151|  1.35k|        {
 1152|  1.35k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  1.35k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_13int64_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  1.35k|        {
 1158|  1.35k|            TypeR temp{other.cast<TypeR>()};
 1159|  1.35k|            other.construct<TypeL>(cast<TypeL>());
 1160|  1.35k|            construct<TypeR>(temp);
 1161|  1.35k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_14uint64_storageEEEvRS5_:
 1165|  2.80k|        {
 1166|  2.80k|            switch (other.storage_kind())
 1167|  2.80k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 2.80k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 2.80k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 2.80k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 2.80k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 2.80k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 2.80k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 2.80k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 2.80k]
  ------------------
 1176|  1.67k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 1.67k, False: 1.12k]
  ------------------
 1177|    228|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 228, False: 2.57k]
  ------------------
 1178|    620|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 620, False: 2.18k]
  ------------------
 1179|    280|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 280, False: 2.52k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 2.80k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 2.80k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 2.80k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  2.80k|            }
 1186|  2.80k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19long_string_storageEEEvRS5_:
 1151|  1.67k|        {
 1152|  1.67k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  1.67k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  1.67k|        {
 1158|  1.67k|            TypeR temp{other.cast<TypeR>()};
 1159|  1.67k|            other.construct<TypeL>(cast<TypeL>());
 1160|  1.67k|            construct<TypeR>(temp);
 1161|  1.67k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19byte_string_storageEEEvRS5_:
 1151|    228|        {
 1152|    228|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    228|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    228|        {
 1158|    228|            TypeR temp{other.cast<TypeR>()};
 1159|    228|            other.construct<TypeL>(cast<TypeL>());
 1160|    228|            construct<TypeR>(temp);
 1161|    228|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_13array_storageEEEvRS5_:
 1151|    620|        {
 1152|    620|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    620|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    620|        {
 1158|    620|            TypeR temp{other.cast<TypeR>()};
 1159|    620|            other.construct<TypeL>(cast<TypeL>());
 1160|    620|            construct<TypeR>(temp);
 1161|    620|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_14object_storageEEEvRS5_:
 1151|    280|        {
 1152|    280|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    280|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14uint64_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    280|        {
 1158|    280|            TypeR temp{other.cast<TypeR>()};
 1159|    280|            other.construct<TypeL>(cast<TypeL>());
 1160|    280|            construct<TypeR>(temp);
 1161|    280|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_14double_storageEEEvRS5_:
 1165|  3.30k|        {
 1166|  3.30k|            switch (other.storage_kind())
 1167|  3.30k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 3.30k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 3.30k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 3.30k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 3.30k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 3.30k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 3.30k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 3.30k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 3.30k]
  ------------------
 1176|    424|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 424, False: 2.87k]
  ------------------
 1177|  1.33k|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 1.33k, False: 1.97k]
  ------------------
 1178|    928|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 928, False: 2.37k]
  ------------------
 1179|    618|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 618, False: 2.68k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 3.30k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 3.30k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 3.30k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  3.30k|            }
 1186|  3.30k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19long_string_storageEEEvRS5_:
 1151|    424|        {
 1152|    424|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    424|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    424|        {
 1158|    424|            TypeR temp{other.cast<TypeR>()};
 1159|    424|            other.construct<TypeL>(cast<TypeL>());
 1160|    424|            construct<TypeR>(temp);
 1161|    424|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19byte_string_storageEEEvRS5_:
 1151|  1.33k|        {
 1152|  1.33k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  1.33k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  1.33k|        {
 1158|  1.33k|            TypeR temp{other.cast<TypeR>()};
 1159|  1.33k|            other.construct<TypeL>(cast<TypeL>());
 1160|  1.33k|            construct<TypeR>(temp);
 1161|  1.33k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_13array_storageEEEvRS5_:
 1151|    928|        {
 1152|    928|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    928|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    928|        {
 1158|    928|            TypeR temp{other.cast<TypeR>()};
 1159|    928|            other.construct<TypeL>(cast<TypeL>());
 1160|    928|            construct<TypeR>(temp);
 1161|    928|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_14object_storageEEEvRS5_:
 1151|    618|        {
 1152|    618|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    618|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_14double_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    618|        {
 1158|    618|            TypeR temp{other.cast<TypeR>()};
 1159|    618|            other.construct<TypeL>(cast<TypeL>());
 1160|    618|            construct<TypeR>(temp);
 1161|    618|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE6swap_lINS5_20short_string_storageEEEvRS5_:
 1165|  10.2k|        {
 1166|  10.2k|            switch (other.storage_kind())
 1167|  10.2k|            {
 1168|      0|                case json_storage_kind::null         : swap_l_r<TypeL, null_storage>(other); break;
  ------------------
  |  Branch (1168:17): [True: 0, False: 10.2k]
  ------------------
 1169|      0|                case json_storage_kind::empty_object : swap_l_r<TypeL, empty_object_storage>(other); break;
  ------------------
  |  Branch (1169:17): [True: 0, False: 10.2k]
  ------------------
 1170|      0|                case json_storage_kind::boolean         : swap_l_r<TypeL, bool_storage>(other); break;
  ------------------
  |  Branch (1170:17): [True: 0, False: 10.2k]
  ------------------
 1171|      0|                case json_storage_kind::int64        : swap_l_r<TypeL, int64_storage>(other); break;
  ------------------
  |  Branch (1171:17): [True: 0, False: 10.2k]
  ------------------
 1172|      0|                case json_storage_kind::uint64       : swap_l_r<TypeL, uint64_storage>(other); break;
  ------------------
  |  Branch (1172:17): [True: 0, False: 10.2k]
  ------------------
 1173|      0|                case json_storage_kind::half_float         : swap_l_r<TypeL, half_storage>(other); break;
  ------------------
  |  Branch (1173:17): [True: 0, False: 10.2k]
  ------------------
 1174|      0|                case json_storage_kind::float64       : swap_l_r<TypeL, double_storage>(other); break;
  ------------------
  |  Branch (1174:17): [True: 0, False: 10.2k]
  ------------------
 1175|      0|                case json_storage_kind::short_str : swap_l_r<TypeL, short_string_storage>(other); break;
  ------------------
  |  Branch (1175:17): [True: 0, False: 10.2k]
  ------------------
 1176|  8.56k|                case json_storage_kind::long_str  : swap_l_r<TypeL, long_string_storage>(other); break;
  ------------------
  |  Branch (1176:17): [True: 8.56k, False: 1.72k]
  ------------------
 1177|    238|                case json_storage_kind::byte_str  : swap_l_r<TypeL, byte_string_storage>(other); break;
  ------------------
  |  Branch (1177:17): [True: 238, False: 10.0k]
  ------------------
 1178|    814|                case json_storage_kind::array        : swap_l_r<TypeL, array_storage>(other); break;
  ------------------
  |  Branch (1178:17): [True: 814, False: 9.47k]
  ------------------
 1179|    672|                case json_storage_kind::object       : swap_l_r<TypeL, object_storage>(other); break;
  ------------------
  |  Branch (1179:17): [True: 672, False: 9.62k]
  ------------------
 1180|      0|                case json_storage_kind::const_json_ref : swap_l_r<TypeL, const_json_ref_storage>(other); break;
  ------------------
  |  Branch (1180:17): [True: 0, False: 10.2k]
  ------------------
 1181|      0|                case json_storage_kind::json_ref : swap_l_r<TypeL, json_ref_storage>(other); break;
  ------------------
  |  Branch (1181:17): [True: 0, False: 10.2k]
  ------------------
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 10.2k]
  ------------------
 1183|      0|                    JSONCONS_UNREACHABLE();
  ------------------
  |  |   79|      0|#define JSONCONS_UNREACHABLE() __builtin_unreachable()
  ------------------
 1184|      0|                    break;
 1185|  10.2k|            }
 1186|  10.2k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19long_string_storageEEEvRS5_:
 1151|  8.56k|        {
 1152|  8.56k|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|  8.56k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19long_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|  8.56k|        {
 1158|  8.56k|            TypeR temp{other.cast<TypeR>()};
 1159|  8.56k|            other.construct<TypeL>(cast<TypeL>());
 1160|  8.56k|            construct<TypeR>(temp);
 1161|  8.56k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19byte_string_storageEEEvRS5_:
 1151|    238|        {
 1152|    238|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    238|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_19byte_string_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    238|        {
 1158|    238|            TypeR temp{other.cast<TypeR>()};
 1159|    238|            other.construct<TypeL>(cast<TypeL>());
 1160|    238|            construct<TypeR>(temp);
 1161|    238|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_13array_storageEEEvRS5_:
 1151|    814|        {
 1152|    814|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    814|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_13array_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    814|        {
 1158|    814|            TypeR temp{other.cast<TypeR>()};
 1159|    814|            other.construct<TypeL>(cast<TypeL>());
 1160|    814|            construct<TypeR>(temp);
 1161|    814|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_14object_storageEEEvRS5_:
 1151|    672|        {
 1152|    672|            swap_l_r(identity<TypeL>(), identity<TypeR>(), other);
 1153|    672|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE8swap_l_rINS5_20short_string_storageENS5_14object_storageEEEvNS5_8identityIT_EENS9_IT0_EERS5_:
 1157|    672|        {
 1158|    672|            TypeR temp{other.cast<TypeR>()};
 1159|    672|            other.construct<TypeL>(cast<TypeL>());
 1160|    672|            construct<TypeR>(temp);
 1161|    672|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ImEET_NS_12semantic_tagENS2_9enable_ifIXaasr10ext_traits19is_unsigned_integerIS7_EE5valuelestS7_Lm8EEiE4typeE:
 2609|  18.7k|        {
 2610|  18.7k|            construct<uint64_storage>(val, tag);
 2611|  18.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14uint64_storageEJRmRNS_12semantic_tagEEEEvDpOT0_:
  990|  18.7k|        {
  991|  18.7k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  18.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14uint64_storageC2EmNS_12semantic_tagE:
  511|  18.7k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::uint64)), short_str_length_(0), tag_(tag),
  512|  18.7k|                  val_(val)
  513|  18.7k|            {
  514|  18.7k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2IlEET_NS_12semantic_tagENS2_9enable_ifIXaasr10ext_traits17is_signed_integerIS7_EE5valuelestS7_Lm8EEiE4typeE:
 2640|   231k|        {
 2641|   231k|            construct<int64_storage>(val, tag);
 2642|   231k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13int64_storageEJRlRNS_12semantic_tagEEEEvDpOT0_:
  990|   231k|        {
  991|   231k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|   231k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13int64_storageC2ElNS_12semantic_tagE:
  491|   231k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::int64)), short_str_length_(0), tag_(tag),
  492|   231k|                  val_(val)
  493|   231k|            {
  494|   231k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EdNS_12semantic_tagE:
 2597|  20.0k|        {
 2598|  20.0k|            construct<double_storage>(val, tag);
 2599|  20.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_14double_storageEJRdRNS_12semantic_tagEEEEvDpOT0_:
  990|  20.0k|        {
  991|  20.0k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  20.0k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE14double_storageC2EdNS_12semantic_tagE:
  550|  20.0k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::float64)), short_str_length_(0), tag_(tag),
  551|  20.0k|                  val_(val)
  552|  20.0k|            {
  553|  20.0k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_16json_array_arg_tENS_12semantic_tagE:
 2396|  44.4k|        {
 2397|  44.4k|            auto ptr = create_array(Allocator());
 2398|  44.4k|            construct<array_storage>(ptr, tag);
 2399|  44.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12create_arrayIJEEEPNS_10json_arrayIS5_NS2_6vectorEEERKS4_DpOT_:
  952|  44.4k|        {
  953|  44.4k|            using stor_allocator_type = typename array_storage::allocator_type;
  954|  44.4k|            stor_allocator_type stor_alloc(alloc);
  955|  44.4k|            auto ptr = std::allocator_traits<stor_allocator_type>::allocate(stor_alloc, 1);
  956|  44.4k|            JSONCONS_TRY
  ------------------
  |  |   37|  44.4k|    #define JSONCONS_TRY try
  ------------------
  957|  44.4k|            {
  958|  44.4k|                std::allocator_traits<stor_allocator_type>::construct(stor_alloc, ext_traits::to_plain_pointer(ptr), 
  959|  44.4k|                    std::forward<Args>(args)...);
  960|  44.4k|            }
  961|  44.4k|            JSONCONS_CATCH(...)
  962|  44.4k|            {
  963|      0|                std::allocator_traits<stor_allocator_type>::deallocate(stor_alloc, ptr,1);
  964|      0|                JSONCONS_RETHROW;
  ------------------
  |  |   36|      0|    #define JSONCONS_RETHROW throw
  ------------------
  965|      0|            }
  966|  44.4k|            return ptr;
  967|  44.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_13array_storageEJRPNS_10json_arrayIS5_NS2_6vectorEEERNS_12semantic_tagEEEEvDpOT0_:
  990|  44.4k|        {
  991|  44.4k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  44.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE13array_storageC2EPNS_10json_arrayIS5_NS2_6vectorEEENS_12semantic_tagE:
  717|  44.4k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::array)), short_str_length_(0), tag_(tag), ptr_(ptr)
  718|  44.4k|            {
  719|  44.4k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ENS_9null_typeENS_12semantic_tagE:
 2686|  20.8M|        {
 2687|  20.8M|            construct<null_storage>(tag);
 2688|  20.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12null_storageEJRNS_12semantic_tagEEEEvDpOT0_:
  990|  20.8M|        {
  991|  20.8M|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  20.8M|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EbNS_12semantic_tagE:
 2696|  33.7k|        {
 2697|  33.7k|            construct<bool_storage>(val,tag);
 2698|  33.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_12bool_storageEJRbRNS_12semantic_tagEEEEvDpOT0_:
  990|  33.7k|        {
  991|  33.7k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  33.7k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE12bool_storageC2EbNS_12semantic_tagE:
  470|  33.7k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::boolean)), short_str_length_(0), tag_(tag),
  471|  33.7k|                  val_(val)
  472|  33.7k|            {
  473|  33.7k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2ERKNS2_17basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagE:
 2544|   128k|            : basic_json(s.data(), s.size(), tag, allocator_type())
 2545|   128k|        {
 2546|   128k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2EPKcmNS_12semantic_tagERKS4_:
 2574|   128k|        {
 2575|   128k|            if (length <= short_string_storage::max_length)
  ------------------
  |  Branch (2575:17): [True: 80.6k, False: 47.4k]
  ------------------
 2576|  80.6k|            {
 2577|  80.6k|                construct<short_string_storage>(s, static_cast<uint8_t>(length), tag);
 2578|  80.6k|            }
 2579|  47.4k|            else
 2580|  47.4k|            {
 2581|  47.4k|                auto ptr = create_long_string(alloc, s, length);
 2582|  47.4k|                construct<long_string_storage>(ptr, tag);
 2583|  47.4k|            }
 2584|   128k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_20short_string_storageEJRPKchRNS_12semantic_tagEEEEvDpOT0_:
  990|  80.6k|        {
  991|  80.6k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  80.6k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE20short_string_storageC2EPKchNS_12semantic_tagE:
  572|  80.6k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::short_str)), short_str_length_(length), tag_(tag)
  573|  80.6k|            {
  574|  80.6k|                JSONCONS_ASSERT(length <= max_length);
  ------------------
  |  |   49|  80.6k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 80.6k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  575|  80.6k|                std::memcpy(data_,p,length*sizeof(char_type));
  576|  80.6k|                data_[length] = 0;
  577|  80.6k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18create_long_stringERKS4_PKcm:
  938|  47.4k|        {
  939|  47.4k|            using heap_string_factory_type = jsoncons::heap::heap_string_factory<char_type,null_type,Allocator>;
  940|  47.4k|            return heap_string_factory_type::create(data, length, null_type(), alloc); 
  941|  47.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19long_string_storageEJRPNS_4heap11heap_stringIcNS_9null_typeES4_EERNS_12semantic_tagEEEEvDpOT0_:
  990|  47.4k|        {
  991|  47.4k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  47.4k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19long_string_storageC2EPNS_4heap11heap_stringIcNS_9null_typeES4_EENS_12semantic_tagE:
  616|  47.4k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::long_str)), short_str_length_(0), tag_(tag), ptr_(ptr)
  617|  47.4k|            {
  618|  47.4k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE18create_byte_stringERKS4_PKhmm:
  945|  72.1k|        {
  946|  72.1k|            using heap_string_factory_type = jsoncons::heap::heap_string_factory<uint8_t,uint64_t,Allocator>;
  947|  72.1k|            return heap_string_factory_type::create(data, length, raw_tag, alloc); 
  948|  72.1k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE19byte_string_storageC2EPNS_4heap11heap_stringIhmS4_EENS_12semantic_tagE:
  665|  72.1k|                : storage_kind_(static_cast<uint8_t>(json_storage_kind::byte_str)), short_str_length_(0), tag_(tag), ptr_(ptr)
  666|  72.1k|            {
  667|  72.1k|            }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEC2INS_16byte_string_viewEEENS_17byte_string_arg_tERKT_mNS2_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS9_EE5valueEiE4typeE:
 2737|  72.1k|        {
 2738|  72.1k|            auto bytes = jsoncons::span<const uint8_t>(reinterpret_cast<const uint8_t*>(source.data()), source.size());
 2739|       |
 2740|  72.1k|            auto ptr = create_byte_string(Allocator(), bytes.data(), bytes.size(), raw_tag);
 2741|  72.1k|            construct<byte_string_storage>(ptr, semantic_tag::ext);
 2742|  72.1k|        }
_ZN8jsoncons10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEE9constructINS5_19byte_string_storageEJRPNS_4heap11heap_stringIhmS4_EENS_12semantic_tagEEEEvDpOT0_:
  990|  72.1k|        {
  991|  72.1k|            ::new (&cast<StorageType>()) StorageType(std::forward<Args>(args)...);
  992|  72.1k|        }

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

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

_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2EPS2_m:
   61|   116k|            : data_(data), size_(size)
   62|   116k|        {
   63|   116k|        }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4dataEv:
  111|   148k|        {
  112|   148k|            return data_;
  113|   148k|        }
_ZNK8jsoncons6detail4spanIKhLm18446744073709551615EE4sizeEv:
  116|   301k|        {
  117|   301k|            return size_;
  118|   301k|        }
_ZN8jsoncons6detail4spanIKhLm18446744073709551615EEC2Ev:
   58|  32.8k|        {
   59|  32.8k|        }

_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEED2Ev:
  105|  55.5k|        {
  106|  55.5k|            flatten_and_destroy();
  107|  55.5k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE19flatten_and_destroyEv:
  248|  55.5k|        {
  249|  6.74M|            while (!data_.empty())
  ------------------
  |  Branch (249:20): [True: 6.68M, False: 55.5k]
  ------------------
  250|  6.68M|            {
  251|  6.68M|                value_type current = std::move(data_.back());
  252|  6.68M|                data_.pop_back();
  253|  6.68M|                switch (current.storage_kind())
  254|  6.68M|                {
  255|  4.06k|                    case json_storage_kind::array:
  ------------------
  |  Branch (255:21): [True: 4.06k, False: 6.68M]
  ------------------
  256|  4.06k|                    {
  257|  4.06k|                        for (auto&& item : current.array_range())
  ------------------
  |  Branch (257:42): [True: 4.50k, False: 4.06k]
  ------------------
  258|  4.50k|                        {
  259|  4.50k|                            if ((item.storage_kind() == json_storage_kind::array || item.storage_kind() == json_storage_kind::object)
  ------------------
  |  Branch (259:34): [True: 819, False: 3.68k]
  |  Branch (259:85): [True: 579, False: 3.10k]
  ------------------
  260|  1.39k|                                && !item.empty()) // non-empty object or array
  ------------------
  |  Branch (260:36): [True: 955, False: 443]
  ------------------
  261|    955|                            {
  262|    955|                                data_.push_back(std::move(item));
  263|    955|                            }
  264|  4.50k|                        }
  265|  4.06k|                        current.clear();                           
  266|  4.06k|                        break;
  267|      0|                    }
  268|  3.92k|                    case json_storage_kind::object:
  ------------------
  |  Branch (268:21): [True: 3.92k, False: 6.68M]
  ------------------
  269|  3.92k|                    {
  270|  3.92k|                        for (auto&& kv : current.object_range())
  ------------------
  |  Branch (270:40): [True: 4.70k, False: 3.92k]
  ------------------
  271|  4.70k|                        {
  272|  4.70k|                            if ((kv.value().storage_kind() == json_storage_kind::array || kv.value().storage_kind() == json_storage_kind::object)
  ------------------
  |  Branch (272:34): [True: 351, False: 4.34k]
  |  Branch (272:91): [True: 944, False: 3.40k]
  ------------------
  273|  1.29k|                                && !kv.value().empty()) // non-empty object or array
  ------------------
  |  Branch (273:36): [True: 1.02k, False: 266]
  ------------------
  274|  1.02k|                            {
  275|  1.02k|                                data_.push_back(std::move(kv.value()));
  276|  1.02k|                            }
  277|  4.70k|                        }
  278|  3.92k|                        current.clear();                           
  279|  3.92k|                        break;
  280|      0|                    }
  281|  6.67M|                    default:
  ------------------
  |  Branch (281:21): [True: 6.67M, False: 7.98k]
  ------------------
  282|  6.67M|                        break;
  283|  6.68M|                }
  284|  6.68M|            }
  285|  55.5k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5beginEv:
  222|  4.06k|        iterator begin() {return data_.begin();}
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE3endEv:
  224|  4.06k|        iterator end() {return data_.end();}
_ZNK8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5emptyEv:
  125|  5.53k|        {
  126|  5.53k|            return data_.empty();
  127|  5.53k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE5clearEv:
  142|  4.06k|        void clear() {data_.clear();}
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEEC2ERKS5_:
   49|  11.1k|            : allocator_holder<allocator_type>(alloc), 
   50|  11.1k|              data_(value_allocator_type(alloc))
   51|  11.1k|        {
   52|  11.1k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE12emplace_backIJS6_EEERS6_DpOT_:
  217|  3.51k|        {
  218|  3.51k|            data_.emplace_back(std::forward<Args>(args)...);
  219|  3.51k|            return data_.back();
  220|  3.51k|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEE7reserveEm:
  153|  7.57k|        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|  6.68M|        {
  179|  6.68M|            data_.emplace_back(std::forward<T>(value));
  180|  6.68M|        }
_ZN8jsoncons10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS3_6vectorEEC2Ev:
   46|  44.4k|        json_array() = default;

_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_EC2ERKS5_S9_:
   74|  4.92k|        : alloc_(alloc),
   75|  4.92k|          result_(),
   76|  4.92k|          name_(alloc),
   77|  4.92k|          item_stack_(alloc),
   78|  4.92k|          structure_stack_(temp_alloc)
   79|  4.92k|    {
   80|       |        //item_stack_.reserve(1000);
   81|       |        //structure_stack_.reserve(100);
   82|  4.92k|        structure_stack_.emplace_back(json_structure_kind::root_kind, 0);
   83|  4.92k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E14json_structureC2ENS7_19json_structure_kindEm:
   51|  90.8k|            : structure_kind(type), structure_index(offset)
   52|  90.8k|        {
   53|  90.8k|        }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E15visit_end_arrayERKNS_11ser_contextERNS3_10error_codeE:
  186|  20.4k|    {
  187|  20.4k|        JSONCONS_ASSERT(structure_stack_.size() > 1);
  ------------------
  |  |   49|  20.4k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 20.4k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  188|  20.4k|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::array_kind);
  ------------------
  |  |   49|  20.4k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 20.4k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  189|  20.4k|        const size_t structure_index = structure_stack_.back().structure_index;
  190|  20.4k|        JSONCONS_ASSERT(item_stack_.size() > structure_index);
  ------------------
  |  |   49|  20.4k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 20.4k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  191|       |
  192|  20.4k|        auto& structure = structure_stack_[structure_stack_.size()-2];
  193|  20.4k|        auto& arr = item_stack_[structure_index].value;
  194|  20.4k|        const size_t size = item_stack_.size() - (structure_index + 1);
  195|       |
  196|  20.4k|        if (size > 0)
  ------------------
  |  Branch (196:13): [True: 7.57k, False: 12.8k]
  ------------------
  197|  7.57k|        {
  198|  7.57k|            arr.reserve(size);
  199|  7.57k|            auto first = item_stack_.begin() + (structure_index+1);
  200|  7.57k|            auto last = first + size;
  201|  6.69M|            for (auto it = first; it != last; ++it)
  ------------------
  |  Branch (201:35): [True: 6.68M, False: 7.57k]
  ------------------
  202|  6.68M|            {
  203|  6.68M|                arr.push_back(std::move((*it).value));
  204|  6.68M|            }
  205|  7.57k|            item_stack_.erase(first, item_stack_.end());
  206|  7.57k|        }
  207|       |
  208|  20.4k|        if (structure.structure_kind == json_structure_kind::root_kind)
  ------------------
  |  Branch (208:13): [True: 0, False: 20.4k]
  ------------------
  209|      0|        {
  210|      0|            result_ = std::move(item_stack_.front().value);
  211|      0|            item_stack_.pop_back();
  212|      0|            is_valid_ = true;
  213|      0|        }
  214|       |
  215|  20.4k|        structure_stack_.pop_back();
  216|  20.4k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  20.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  217|  20.4k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  311|  18.7k|    {
  312|  18.7k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (312:17): [True: 18.7k, False: 0]
  ------------------
  313|  18.7k|        {
  314|  10.0k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (314:13): [True: 10.0k, False: 8.72k]
  ------------------
  315|  10.0k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  316|  10.0k|                break;
  317|  8.72k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (317:13): [True: 8.72k, False: 10.0k]
  ------------------
  318|  8.72k|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  319|  8.72k|                break;
  320|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (320:13): [True: 0, False: 18.7k]
  ------------------
  321|      0|                result_ = Json(value,tag);
  322|      0|                is_valid_ = true;
  323|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  324|  18.7k|        }
  325|  18.7k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  18.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  326|  18.7k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  290|   231k|    {
  291|   231k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (291:17): [True: 231k, False: 0]
  ------------------
  292|   231k|        {
  293|  86.3k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (293:13): [True: 86.3k, False: 145k]
  ------------------
  294|  86.3k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  295|  86.3k|                break;
  296|   145k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (296:13): [True: 145k, False: 86.3k]
  ------------------
  297|   145k|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  298|   145k|                break;
  299|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (299:13): [True: 0, False: 231k]
  ------------------
  300|      0|                result_ = Json(value,tag);
  301|      0|                is_valid_ = true;
  302|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  303|   231k|        }
  304|   231k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   231k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  305|   231k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  353|  20.0k|    {
  354|  20.0k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (354:17): [True: 20.0k, False: 0]
  ------------------
  355|  20.0k|        {
  356|  10.5k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (356:13): [True: 10.5k, False: 9.43k]
  ------------------
  357|  10.5k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  358|  10.5k|                break;
  359|  9.43k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (359:13): [True: 9.43k, False: 10.5k]
  ------------------
  360|  9.43k|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  361|  9.43k|                break;
  362|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (362:13): [True: 0, False: 20.0k]
  ------------------
  363|      0|                result_ = Json(value, tag);
  364|      0|                is_valid_ = true;
  365|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  366|  20.0k|        }
  367|  20.0k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  20.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  20.0k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E11visit_flushEv:
  122|     15|    {
  123|     15|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  126|  41.5k|    {
  127|  41.5k|        if (structure_stack_.back().structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (127:13): [True: 28.3k, False: 13.2k]
  ------------------
  128|  28.3k|        {
  129|  28.3k|            structure_stack_.emplace_back(json_structure_kind::object_kind, item_stack_.size());
  130|  28.3k|            item_stack_.emplace_back(std::move(name_), index_++, json_object_arg, tag);
  131|  28.3k|        }
  132|  13.2k|        else
  133|  13.2k|        {
  134|  13.2k|            structure_stack_.emplace_back(json_structure_kind::object_kind, item_stack_.size());
  135|  13.2k|            item_stack_.emplace_back(key_type(alloc_), 0, json_object_arg, tag);
  136|  13.2k|        }
  137|  41.5k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  41.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  138|  41.5k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E16visit_end_objectERKNS_11ser_contextERNS3_10error_codeE:
  141|  28.0k|    {
  142|  28.0k|        JSONCONS_ASSERT(structure_stack_.size() > 0);
  ------------------
  |  |   49|  28.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 28.0k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  143|  28.0k|        JSONCONS_ASSERT(structure_stack_.back().structure_kind == json_structure_kind::object_kind);
  ------------------
  |  |   49|  28.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 28.0k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  144|  28.0k|        const size_t structure_index = structure_stack_.back().structure_index;
  145|  28.0k|        JSONCONS_ASSERT(item_stack_.size() > structure_index);
  ------------------
  |  |   49|  28.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 28.0k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  146|       |
  147|  28.0k|        const size_t size = item_stack_.size() - (structure_index + 1);
  148|  28.0k|        auto first = item_stack_.begin() + (structure_index+1);
  149|  28.0k|        auto& structure = structure_stack_[structure_stack_.size()-2];
  150|  28.0k|        auto& obj = item_stack_[structure_index].value;
  151|       |
  152|  28.0k|        if (size > 0)
  ------------------
  |  Branch (152:13): [True: 14.2k, False: 13.7k]
  ------------------
  153|  14.2k|        {
  154|  14.2k|            obj.template cast<typename Json::object_storage>().value().uninitialized_init(
  155|  14.2k|                &item_stack_[structure_index+1], size);
  156|  14.2k|            item_stack_.erase(first, item_stack_.end());
  157|  14.2k|        }
  158|       |
  159|  28.0k|        if (structure.structure_kind == json_structure_kind::root_kind)
  ------------------
  |  Branch (159:13): [True: 2.05k, False: 25.9k]
  ------------------
  160|  2.05k|        {
  161|  2.05k|            result_ = std::move(item_stack_.front().value);
  162|  2.05k|            item_stack_.pop_back();
  163|  2.05k|            is_valid_ = true;
  164|  2.05k|        }
  165|       |
  166|  28.0k|        structure_stack_.pop_back();
  167|  28.0k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  28.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  168|  28.0k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  171|  44.4k|    {
  172|  44.4k|        if (structure_stack_.back().structure_kind == json_structure_kind::object_kind)
  ------------------
  |  Branch (172:13): [True: 19.8k, False: 24.5k]
  ------------------
  173|  19.8k|        {
  174|  19.8k|            structure_stack_.emplace_back(json_structure_kind::array_kind, item_stack_.size());
  175|  19.8k|            item_stack_.emplace_back(std::move(name_), index_++, json_array_arg, tag);
  176|  19.8k|        }
  177|  24.5k|        else
  178|  24.5k|        {
  179|  24.5k|            structure_stack_.emplace_back(json_structure_kind::array_kind, item_stack_.size());
  180|  24.5k|            item_stack_.emplace_back(key_type(alloc_), 0, json_array_arg, tag);
  181|  24.5k|        }
  182|  44.4k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  44.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  183|  44.4k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E9visit_keyERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERKNS_11ser_contextERNS3_10error_codeE:
  220|  11.5M|    {
  221|  11.5M|        name_ = key_type(name.data(),name.length(),alloc_);
  222|  11.5M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  11.5M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  223|  11.5M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  389|  20.8M|    {
  390|  20.8M|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (390:17): [True: 20.8M, False: 0]
  ------------------
  391|  20.8M|        {
  392|  11.1M|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (392:13): [True: 11.1M, False: 9.61M]
  ------------------
  393|  11.1M|                item_stack_.emplace_back(std::move(name_), index_++, null_type(), tag);
  394|  11.1M|                break;
  395|  9.61M|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (395:13): [True: 9.61M, False: 11.1M]
  ------------------
  396|  9.61M|                item_stack_.emplace_back(key_type(alloc_), 0, null_type(), tag);
  397|  9.61M|                break;
  398|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (398:13): [True: 0, False: 20.8M]
  ------------------
  399|      0|                result_ = Json(null_type(), tag);
  400|      0|                is_valid_ = true;
  401|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  402|  20.8M|        }
  403|  20.8M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  20.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  404|  20.8M|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  371|  33.7k|    {
  372|  33.7k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (372:17): [True: 33.7k, False: 0]
  ------------------
  373|  33.7k|        {
  374|  25.1k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (374:13): [True: 25.1k, False: 8.54k]
  ------------------
  375|  25.1k|                item_stack_.emplace_back(std::move(name_), index_++, value, tag);
  376|  25.1k|                break;
  377|  8.54k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (377:13): [True: 8.54k, False: 25.1k]
  ------------------
  378|  8.54k|                item_stack_.emplace_back(key_type(alloc_), 0, value, tag);
  379|  8.54k|                break;
  380|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (380:13): [True: 0, False: 33.7k]
  ------------------
  381|      0|                result_ = Json(value, tag);
  382|      0|                is_valid_ = true;
  383|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  384|  33.7k|        }
  385|  33.7k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  33.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|  33.7k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E12visit_stringERKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS3_10error_codeE:
  226|   128k|    {
  227|   128k|        auto& structure = structure_stack_.back();
  228|   128k|        switch (structure.structure_kind)
  ------------------
  |  Branch (228:17): [True: 128k, False: 0]
  ------------------
  229|   128k|        {
  230|   110k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (230:13): [True: 110k, False: 17.1k]
  ------------------
  231|   110k|                item_stack_.emplace_back(std::move(name_), index_++, sv, tag);
  232|   110k|                break;
  233|  17.1k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (233:13): [True: 17.1k, False: 110k]
  ------------------
  234|  17.1k|                item_stack_.emplace_back(key_type(alloc_), 0, sv, tag);
  235|  17.1k|                break;
  236|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (236:13): [True: 0, False: 128k]
  ------------------
  237|      0|                result_ = Json(sv, tag, alloc_);
  238|      0|                is_valid_ = true;
  239|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  240|   128k|        }
  241|   128k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   128k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  242|   128k|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E17visit_byte_stringERKNS_16byte_string_viewEmRKNS_11ser_contextERNS3_10error_codeE:
  269|  72.1k|    {
  270|  72.1k|        switch (structure_stack_.back().structure_kind)
  ------------------
  |  Branch (270:17): [True: 72.1k, False: 0]
  ------------------
  271|  72.1k|        {
  272|  59.4k|            case json_structure_kind::object_kind:
  ------------------
  |  Branch (272:13): [True: 59.4k, False: 12.7k]
  ------------------
  273|  59.4k|                item_stack_.emplace_back(std::move(name_), index_++, byte_string_arg, b, raw_tag);
  274|  59.4k|                break;
  275|  12.7k|            case json_structure_kind::array_kind:
  ------------------
  |  Branch (275:13): [True: 12.7k, False: 59.4k]
  ------------------
  276|  12.7k|                item_stack_.emplace_back(key_type(alloc_), 0, byte_string_arg, b, raw_tag);
  277|  12.7k|                break;
  278|      0|            case json_structure_kind::root_kind:
  ------------------
  |  Branch (278:13): [True: 0, False: 72.1k]
  ------------------
  279|      0|                result_ = Json(byte_string_arg, b, raw_tag, alloc_);
  280|      0|                is_valid_ = true;
  281|      0|                JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|      0|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  282|  72.1k|        }
  283|  72.1k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  72.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  284|  72.1k|    }
_ZNK8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E8is_validEv:
  108|     15|    {
  109|     15|        return is_valid_;
  110|     15|    }
_ZN8jsoncons12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES5_E10get_resultEv:
  113|     15|    {
  114|     15|        JSONCONS_ASSERT(is_valid_);
  ------------------
  |  |   49|     15|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 15]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  115|     15|        is_valid_ = false;
  116|     15|        return std::move(result_);
  117|     15|    }

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

_ZN8jsoncons25make_json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEEENS_20json_visitor_adaptorIT_T0_vEERSD_:
 1064|  4.92k|{
 1065|  4.92k|    return json_visitor_adaptor<From, To>(to);
 1066|  4.92k|}
_ZN8jsoncons20json_visitor_adaptorINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEvEC2ERSA_:
  983|  4.92k|        : supertype(visitor)
  984|  4.92k|    {
  985|  4.92k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEEC2ERSA_:
  721|  4.92k|        : destination1_(std::addressof(visitor))
  722|  4.92k|    {
  723|  4.92k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE15visit_end_arrayERKNS_11ser_contextERNS6_10error_codeE:
  783|  20.4k|    {
  784|  20.4k|        destination1_->end_array(context, ec);
  785|  20.4k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  20.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  786|  20.4k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE12visit_uint64EmNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  825|  18.7k|    {
  826|  18.7k|        destination1_->uint64_value(value, tag, context, ec);
  827|  18.7k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  18.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  828|  18.7k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11visit_int64ElNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  819|   231k|    {
  820|   231k|        destination1_->int64_value(value, tag, context, ec);
  821|   231k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   231k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  822|   231k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE12visit_doubleEdNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  813|  20.0k|    {
  814|  20.0k|        destination1_->double_value(value, tag, context, ec);
  815|  20.0k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  20.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  816|  20.0k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11visit_flushEv:
  738|     15|    {
  739|     15|        destination1_->flush();
  740|     15|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE18visit_begin_objectENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  745|  41.5k|    {
  746|  41.5k|        destination1_->begin_object(tag, context, ec);
  747|  41.5k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  41.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  748|  41.5k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE16visit_end_objectERKNS_11ser_contextERNS6_10error_codeE:
  760|  28.0k|    {
  761|  28.0k|        destination1_->end_object(context, ec);
  762|  28.0k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  28.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  763|  28.0k|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE17visit_begin_arrayENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  768|  44.4k|    {
  769|  44.4k|        destination1_->begin_array(tag, context, ec);
  770|  44.4k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  44.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  771|  44.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|  11.5M|    {
  996|  11.5M|        return destination().key(string_view_type(reinterpret_cast<const to_char_type*>(key.data()),key.size()), context, ec);
  997|  11.5M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE11destinationEv:
  732|  11.6M|    {
  733|  11.6M|        return *destination1_;
  734|  11.6M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_nullENS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  837|  20.8M|    {
  838|  20.8M|        destination1_->null_value(tag, context, ec);
  839|  20.8M|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  20.8M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  840|  20.8M|    }
_ZN8jsoncons25json_visitor_adaptor_baseINS_18basic_json_visitorIcEENS_12json_decoderINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEES8_EEE10visit_boolEbNS_12semantic_tagERKNS_11ser_contextERNS6_10error_codeE:
  831|  33.7k|    {
  832|  33.7k|        destination1_->bool_value(value, tag, context, ec);
  833|  33.7k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  33.7k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  834|  33.7k|    }
_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|   128k|    {
 1004|   128k|        return destination().string_value(string_view_type(reinterpret_cast<const to_char_type*>(value.data()),value.size()), tag, context, ec);
 1005|   128k|    }
_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|  72.1k|    {
  802|  72.1k|        destination1_->byte_string_value(b, raw_tag, context, ec);
  803|  72.1k|        JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  72.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  804|  72.1k|    }

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

_ZN8jsoncons18basic_json_visitorIcEC2Ev:
  103|  9.85k|        basic_json_visitor() = default;
_ZN8jsoncons19typed_array_visitorD2Ev:
   33|  9.85k|        virtual ~typed_array_visitor() = default;
_ZN8jsoncons18basic_json_visitorIcE12uint64_valueEmNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  414|  37.5k|        {
  415|  37.5k|            visit_uint64(value, tag, context, ec);
  416|  37.5k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  37.5k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  417|  37.5k|        }
_ZN8jsoncons18basic_json_visitorIcE9end_arrayERKNS_11ser_contextERNSt3__110error_codeE:
  351|  40.8k|        {
  352|  40.8k|            visit_end_array(context, ec);
  353|  40.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  40.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  354|  40.8k|        }
_ZN8jsoncons18basic_json_visitorIcE11int64_valueElNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  423|   463k|        {
  424|   463k|            visit_int64(value, tag, context, ec);
  425|   463k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   463k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  426|   463k|        }
_ZN8jsoncons18basic_json_visitorIcE12double_valueEdNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  441|  40.0k|        {
  442|  40.0k|            visit_double(value, tag, context, ec);
  443|  40.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  40.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  444|  40.0k|        }
_ZN8jsoncons18basic_json_visitorIcE5flushEv:
  108|     30|        {
  109|     30|            visit_flush();
  110|     30|        }
_ZN8jsoncons18basic_json_visitorIcE12begin_objectENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  318|  83.1k|        {
  319|  83.1k|            visit_begin_object(tag, context, ec);
  320|  83.1k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  83.1k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  321|  83.1k|        }
_ZN8jsoncons18basic_json_visitorIcE10end_objectERKNS_11ser_contextERNSt3__110error_codeE:
  333|  56.0k|        {
  334|  56.0k|            visit_end_object(context, ec);
  335|  56.0k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  56.0k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  336|  56.0k|        }
_ZN8jsoncons18basic_json_visitorIcE11begin_arrayENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  339|  88.8k|        {
  340|  88.8k|            visit_begin_array(tag, context, ec);
  341|  88.8k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  88.8k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  342|  88.8k|        }
_ZN8jsoncons18basic_json_visitorIcE3keyERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEERKNS_11ser_contextERNS2_10error_codeE:
  357|  23.0M|        {
  358|  23.0M|            visit_key(name, context, ec);
  359|  23.0M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  23.0M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  360|  23.0M|        }
_ZN8jsoncons18basic_json_visitorIcE10null_valueENS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  365|  41.6M|        {
  366|  41.6M|            visit_null(tag, context, ec);
  367|  41.6M|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  41.6M|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  368|  41.6M|        }
_ZN8jsoncons18basic_json_visitorIcE10bool_valueEbNS_12semantic_tagERKNS_11ser_contextERNSt3__110error_codeE:
  374|  67.4k|        {
  375|  67.4k|            visit_bool(value, tag, context, ec);
  376|  67.4k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|  67.4k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  377|  67.4k|        }
_ZN8jsoncons18basic_json_visitorIcE12string_valueERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_12semantic_tagERKNS_11ser_contextERNS2_10error_codeE:
  383|   256k|        {
  384|   256k|            visit_string(value, tag, context, ec);
  385|   256k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   256k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  386|   256k|        }
_ZN8jsoncons18basic_json_visitorIcE17byte_string_valueINS_16byte_string_viewEEEbRKT_mRKNS_11ser_contextERNSt3__110error_codeENSA_9enable_ifIXsr10ext_traits18is_bytes_view_likeIS4_EE5valueEiE4typeE:
  405|   144k|        {
  406|   144k|            visit_byte_string(byte_string_view(reinterpret_cast<const uint8_t*>(b.data()),b.size()), raw_tag, context, ec);
  407|   144k|            JSONCONS_VISITOR_RETURN;
  ------------------
  |  |  276|   144k|#define JSONCONS_VISITOR_RETURN return true 
  ------------------
  408|   144k|        }

_ZN8jsoncons9key_valueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EEE5valueEv:
  120|  63.6k|    {
  121|  63.6k|        return value_;
  122|  63.6k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEaSEOS7_:
   60|  46.0M|    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.7k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  18.7k|    {
   45|  18.7k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2EOS7_:
   49|  54.1M|    index_key_value(index_key_value&&) = default;
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRlRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|   231k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|   231k|    {
   45|   231k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRdRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  20.0k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  20.0k|    {
   45|  20.0k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17json_object_arg_tERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  41.5k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  41.5k|    {
   45|  41.5k|    }
_ZN8jsoncons9key_valueINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EEEC2IJSA_EEEOS7_DpOT_:
   86|  47.0k|        : key_(std::move(name)), value_(std::forward<Args>(args)...)
   87|  47.0k|    {
   88|  47.0k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_16json_array_arg_tERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  44.4k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  44.4k|    {
   45|  44.4k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJNS_9null_typeERNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  20.8M|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  20.8M|    {
   45|  20.8M|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRbRNS_12semantic_tagEEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  33.7k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  33.7k|    {
   45|  33.7k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS3_17basic_string_viewIcNS3_11char_traitsIcEEEERNS_12semantic_tagEEEEONS3_12basic_stringIcSB_S5_EElDpOT_:
   43|   128k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|   128k|    {
   45|   128k|    }
_ZN8jsoncons15index_key_valueINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEEEC2IJRKNS_17byte_string_arg_tERKNS_16byte_string_viewERmEEEONS3_12basic_stringIcNS3_11char_traitsIcEES5_EElDpOT_:
   43|  72.1k|        : name(std::move(Name)), index(Index), value(std::forward<Args>(args)...)
   44|  72.1k|    {
   45|  72.1k|    }

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

_ZNK8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5emptyEv:
  158|  3.51k|        {
  159|  3.51k|            return data_.empty();
  160|  3.51k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5clearEv:
  195|  3.92k|        void clear() {data_.clear();}
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE5beginEv:
  168|  3.92k|        {
  169|  3.92k|            return data_.begin();
  170|  3.92k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE3endEv:
  173|  3.92k|        {
  174|  3.92k|            return data_.end();
  175|  3.92k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEED2Ev:
  153|  41.5k|        {
  154|  41.5k|            flatten_and_destroy();
  155|  41.5k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE19flatten_and_destroyEv:
  724|  41.5k|        {
  725|  41.5k|            if (!data_.empty())
  ------------------
  |  Branch (725:17): [True: 11.1k, False: 30.4k]
  ------------------
  726|  11.1k|            {
  727|  11.1k|                json_array<Json> temp(get_allocator());
  728|       |
  729|  11.1k|                for (auto& kv : data_)
  ------------------
  |  Branch (729:31): [True: 42.3k, False: 11.1k]
  ------------------
  730|  42.3k|                {
  731|  42.3k|                    switch (kv.value().storage_kind())
  732|  42.3k|                    {
  733|  4.36k|                        case json_storage_kind::array:
  ------------------
  |  Branch (733:25): [True: 4.36k, False: 38.0k]
  ------------------
  734|  6.35k|                        case json_storage_kind::object:
  ------------------
  |  Branch (734:25): [True: 1.99k, False: 40.4k]
  ------------------
  735|  6.35k|                            if (!kv.value().empty())
  ------------------
  |  Branch (735:33): [True: 3.51k, False: 2.84k]
  ------------------
  736|  3.51k|                            {
  737|  3.51k|                                temp.emplace_back(std::move(kv.value()));
  738|  3.51k|                            }
  739|  6.35k|                            break;
  740|  36.0k|                        default:
  ------------------
  |  Branch (740:25): [True: 36.0k, False: 6.35k]
  ------------------
  741|  36.0k|                            break;
  742|  42.3k|                    }
  743|  42.3k|                }
  744|  11.1k|            }
  745|  41.5k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEEC2Ev:
   61|  41.5k|        sorted_json_object() = default;
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE18uninitialized_initEPNS_15index_key_valueISA_EEm:
  277|  14.2k|        {
  278|  14.2k|            if (count > 0)
  ------------------
  |  Branch (278:17): [True: 14.2k, False: 0]
  ------------------
  279|  14.2k|            {
  280|  14.2k|                data_.reserve(count);
  281|       |
  282|  14.2k|                std::sort(items, items+count, compare);
  283|  14.2k|                data_.emplace_back(key_type(items[0].name.data(), items[0].name.size(), get_allocator()), std::move(items[0].value));
  284|       |                
  285|  8.95M|                for (std::size_t i = 1; i < count; ++i)
  ------------------
  |  Branch (285:41): [True: 8.94M, False: 14.2k]
  ------------------
  286|  8.94M|                {
  287|  8.94M|                    auto& item = items[i];
  288|  8.94M|                    if (item.name != items[i-1].name)
  ------------------
  |  Branch (288:25): [True: 32.8k, False: 8.91M]
  ------------------
  289|  32.8k|                    {
  290|  32.8k|                        data_.emplace_back(key_type(item.name.data(), item.name.size(), get_allocator()), std::move(item.value));
  291|  32.8k|                    }
  292|  8.94M|                }
  293|  14.2k|            }
  294|  14.2k|        }
_ZN8jsoncons18sorted_json_objectINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES6_EENS1_6vectorEE7compareERKNS_15index_key_valueISA_EESG_:
  268|   211M|        {
  269|   211M|            int comp = item1.name.compare(item2.name); 
  270|   211M|            if (comp < 0) return true;
  ------------------
  |  Branch (270:17): [True: 1.53M, False: 209M]
  ------------------
  271|   209M|            if (comp == 0) return item1.index < item2.index;
  ------------------
  |  Branch (271:17): [True: 209M, False: 482k]
  ------------------
  272|       |
  273|   482k|            return false;
  274|   209M|        }

_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEEC2ERNS1_13basic_istreamIcNS1_11char_traitsIcEEEERKS3_:
  176|  4.92k|        : alloc_(alloc), stream_ptr_(std::addressof(is)), sbuf_(is.rdbuf()),
  177|  4.92k|          chunk_size_(default_max_chunk_size)
  178|  4.92k|    {
  179|  4.92k|        chunk_ = std::allocator_traits<char_allocator_type>::allocate(alloc_, chunk_size_);
  180|  4.92k|        data_end_ = chunk_;
  181|  4.92k|    }
_ZN8jsoncons18basic_null_istreamIcEC1Ev:
   57|  4.92k|      : std::basic_istream<CharT>(&nb_)
   58|  4.92k|    {
   59|  4.92k|    }
_ZN8jsoncons18basic_null_istreamIcE11null_bufferC2Ev:
   43|  4.92k|        null_buffer() = default;
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEED2Ev:
  193|  4.92k|    {
  194|  4.92k|        if (chunk_)
  ------------------
  |  Branch (194:13): [True: 4.92k, False: 0]
  ------------------
  195|  4.92k|        {
  196|  4.92k|            std::allocator_traits<char_allocator_type>::deallocate(alloc_, chunk_, chunk_size_);
  197|  4.92k|        }
  198|  4.92k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8positionEv:
  281|  4.91k|    {
  282|  4.91k|        return position_;
  283|  4.91k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE8is_errorEv:
  276|  4.92k|    {
  277|  4.92k|        return stream_ptr_->bad();  
  278|  4.92k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE4readEPhm:
  377|  81.6M|    {
  378|  81.6M|        std::size_t len = 0;
  379|  81.6M|        if (remaining_ > 0)
  ------------------
  |  Branch (379:13): [True: 81.6M, False: 10.7k]
  ------------------
  380|  81.6M|        {
  381|  81.6M|            len = (std::min)(remaining_, length);
  382|  81.6M|            std::memcpy(p, data_end_, len*sizeof(value_type));
  383|  81.6M|            data_end_ += len;
  384|  81.6M|            remaining_ -= len;
  385|  81.6M|            position_ += len;
  386|  81.6M|        }
  387|  81.6M|        if (length - len == 0)
  ------------------
  |  Branch (387:13): [True: 81.6M, False: 12.3k]
  ------------------
  388|  81.6M|        {
  389|  81.6M|            return len;
  390|  81.6M|        }
  391|  12.3k|        else if (length - len < chunk_size_)
  ------------------
  |  Branch (391:18): [True: 12.3k, False: 0]
  ------------------
  392|  12.3k|        {
  393|  12.3k|            data_end_ = chunk_;
  394|  12.3k|            remaining_ = fill_buffer(chunk_, chunk_size_);
  395|  12.3k|            if (remaining_ > 0)
  ------------------
  |  Branch (395:17): [True: 10.7k, False: 1.65k]
  ------------------
  396|  10.7k|            {
  397|  10.7k|                std::size_t len2 = (std::min)(remaining_, length-len);
  398|  10.7k|                std::memcpy(p+len, data_end_, len2*sizeof(value_type));
  399|  10.7k|                data_end_ += len2;
  400|  10.7k|                remaining_ -= len2;
  401|  10.7k|                position_ += len2;
  402|  10.7k|                len += len2;
  403|  10.7k|            }
  404|  12.3k|            return len;
  405|  12.3k|        }
  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|  81.6M|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11fill_bufferEPhm:
  442|  13.3k|    {
  443|  13.3k|        if (stream_ptr_->eof())
  ------------------
  |  Branch (443:13): [True: 1.67k, False: 11.6k]
  ------------------
  444|  1.67k|        {
  445|  1.67k|            return 0;
  446|  1.67k|        }
  447|       |
  448|  11.6k|        JSONCONS_TRY
  ------------------
  |  |   37|  11.6k|    #define JSONCONS_TRY try
  ------------------
  449|  11.6k|        {
  450|  11.6k|            std::streamsize count = sbuf_->sgetn(reinterpret_cast<char_type*>(chunk), chunk_size);
  451|  11.6k|            std::size_t length = static_cast<std::size_t>(count);
  452|       |
  453|  11.6k|            if (length < chunk_size)
  ------------------
  |  Branch (453:17): [True: 4.90k, False: 6.76k]
  ------------------
  454|  4.90k|            {
  455|  4.90k|                stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::eofbit);
  456|  4.90k|            }
  457|  11.6k|            return length;
  458|  11.6k|        }
  459|  11.6k|        JSONCONS_CATCH(const std::exception&)     
  460|  11.6k|        {
  461|      0|            stream_ptr_->clear(stream_ptr_->rdstate() | std::ios::badbit | std::ios::eofbit);
  462|      0|            return 0;
  463|      0|        }
  464|  11.6k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_12basic_stringIcNS1_11char_traitsIcEENS2_IcEEEEEENS_6detail4spanIKhLm18446744073709551615EEEmOT_:
  352|  4.45k|    {
  353|  4.45k|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  4.45k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1.15k, False: 3.30k]
  |  |  ------------------
  ------------------
  354|  1.15k|        {
  355|  1.15k|            return span<const value_type>{};
  356|  1.15k|        }
  357|  3.30k|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 130, False: 3.17k]
  |  Branch (357:32): [True: 37, False: 93]
  ------------------
  358|     37|        {
  359|     37|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|     37|            data_end_ = chunk_;
  361|     37|        }
  362|  3.30k|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 417, False: 2.88k]
  ------------------
  363|    417|        {
  364|    417|            buffer.clear();
  365|    417|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|    417|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|    417|        }
  368|       |
  369|  2.88k|        const value_type* data = data_end_;
  370|  2.88k|        data_end_ += length;
  371|  2.88k|        remaining_ -= length;
  372|  2.88k|        position_ += length;
  373|  2.88k|        return span<const value_type>(data, length);
  374|  3.30k|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_12basic_stringIcNS2_11char_traitsIcEENS3_IcEEEEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSG_m:
  746|    417|    {
  747|    417|        std::size_t unread = length;
  748|       |
  749|  1.50k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 1.31k, False: 194]
  |  Branch (749:30): [True: 1.08k, False: 223]
  ------------------
  750|  1.08k|        {
  751|  1.08k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 440, False: 648]
  |  Branch (751:44): [True: 439, False: 1]
  ------------------
  752|    439|            {
  753|    439|                std::size_t n = source.chunk_size();
  754|    439|                std::size_t offset = buffer.size();
  755|    439|                buffer.resize(offset+n);
  756|    439|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|    439|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|    439|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 38, False: 401]
  |  |  ------------------
  ------------------
  758|     38|                {
  759|     38|                    buffer.resize(offset+actual);
  760|     38|                }
  761|    439|                unread -= actual;
  762|    439|            }
  763|    649|            else
  764|    649|            {
  765|    649|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|    649|                std::size_t offset = buffer.size();
  767|    649|                buffer.resize(offset+n);
  768|    649|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|    649|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|    649|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 108, False: 541]
  |  |  ------------------
  ------------------
  770|    108|                {
  771|    108|                    buffer.resize(offset + actual);
  772|    108|                }
  773|    649|                unread -= actual;
  774|    649|            }
  775|  1.08k|        }
  776|    417|        return length - unread;
  777|    417|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE3eofEv:
  271|  3.06k|    {
  272|  3.06k|        return remaining_ == 0 && stream_ptr_->eof();
  ------------------
  |  Branch (272:16): [True: 1.38k, False: 1.67k]
  |  Branch (272:35): [True: 522, False: 865]
  ------------------
  273|  3.06k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9remainingEv:
  346|  2.53k|    {
  347|  2.53k|        return remaining_;
  348|  2.53k|    }
_ZNK8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE10chunk_sizeEv:
  261|  3.40k|    {
  262|  3.40k|        return chunk_size_;
  263|  3.40k|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE11read_bufferEPhm:
  435|    859|    {
  436|    859|        auto len = fill_buffer(chunk, chunk_size);
  437|    859|        position_ += len;
  438|    859|        return len;
  439|    859|    }
_ZN8jsoncons13stream_sourceIhNSt3__19allocatorIhEEE9read_spanIRNS1_6vectorIhS3_EEEENS_6detail4spanIKhLm18446744073709551615EEEmOT_:
  352|  72.4k|    {
  353|  72.4k|        if (JSONCONS_UNLIKELY(length == 0))
  ------------------
  |  |   78|  72.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 31.7k, False: 40.7k]
  |  |  ------------------
  ------------------
  354|  31.7k|        {
  355|  31.7k|            return span<const value_type>{};
  356|  31.7k|        }
  357|  40.7k|        if (remaining_ == 0 && length <= chunk_size_)
  ------------------
  |  Branch (357:13): [True: 171, False: 40.5k]
  |  Branch (357:32): [True: 67, False: 104]
  ------------------
  358|     67|        {
  359|     67|            remaining_ = fill_buffer(chunk_, chunk_size_);
  360|     67|            data_end_ = chunk_;
  361|     67|        }
  362|  40.7k|        if (length > remaining_)
  ------------------
  |  Branch (362:13): [True: 525, False: 40.2k]
  ------------------
  363|    525|        {
  364|    525|            buffer.clear();
  365|    525|            source_reader<stream_source_type>::read(*this, std::forward<Buffer>(buffer), length);
  366|    525|            return span<const value_type>(reinterpret_cast<const value_type*>(buffer.data()), buffer.size());
  367|    525|        }
  368|       |
  369|  40.2k|        const value_type* data = data_end_;
  370|  40.2k|        data_end_ += length;
  371|  40.2k|        remaining_ -= length;
  372|  40.2k|        position_ += length;
  373|  40.2k|        return span<const value_type>(data, length);
  374|  40.7k|    }
_ZN8jsoncons13source_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEEE4readINS2_6vectorIhS4_EEEENS2_9enable_ifIXaaL_ZNS2_17integral_constantIbLb1EE5valueEEsr10ext_traits7is_byteINT_10value_typeEEE5valueEmE4typeERS5_RSD_m:
  746|    525|    {
  747|    525|        std::size_t unread = length;
  748|       |
  749|  1.97k|        while (unread > 0 && !source.eof())
  ------------------
  |  Branch (749:16): [True: 1.74k, False: 226]
  |  Branch (749:30): [True: 1.45k, False: 299]
  ------------------
  750|  1.45k|        {
  751|  1.45k|            if (source.remaining() == 0 && unread >= source.chunk_size())
  ------------------
  |  Branch (751:17): [True: 425, False: 1.02k]
  |  Branch (751:44): [True: 420, False: 5]
  ------------------
  752|    420|            {
  753|    420|                std::size_t n = source.chunk_size();
  754|    420|                std::size_t offset = buffer.size();
  755|    420|                buffer.resize(offset+n);
  756|    420|                std::size_t actual = source.read_buffer(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  757|    420|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|    420|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 46, False: 374]
  |  |  ------------------
  ------------------
  758|     46|                {
  759|     46|                    buffer.resize(offset+actual);
  760|     46|                }
  761|    420|                unread -= actual;
  762|    420|            }
  763|  1.03k|            else
  764|  1.03k|            {
  765|  1.03k|                std::size_t n = (std::min)(source.chunk_size(), unread);
  766|  1.03k|                std::size_t offset = buffer.size();
  767|  1.03k|                buffer.resize(offset+n);
  768|  1.03k|                std::size_t actual = source.read(reinterpret_cast<value_type*>(&buffer[0]) + offset, n);
  769|  1.03k|                if (JSONCONS_UNLIKELY(actual != n))
  ------------------
  |  |   78|  1.03k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 186, False: 844]
  |  |  ------------------
  ------------------
  770|    186|                {
  771|    186|                    buffer.resize(offset + actual);
  772|    186|                }
  773|  1.03k|                unread -= actual;
  774|  1.03k|            }
  775|  1.45k|        }
  776|    525|        return length - unread;
  777|    525|    }

_ZN8jsoncons6binary16little_to_nativeIiNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  197|   375k|    {
  198|   375k|        if (sizeof(T) > count)
  ------------------
  |  Branch (198:13): [True: 0, False: 375k]
  ------------------
  199|      0|        {
  200|      0|            return T{};
  201|      0|        }
  202|   375k|        T val;
  203|   375k|        std::memcpy(&val,first,sizeof(T));
  204|   375k|        return val;
  205|   375k|    }
_ZN8jsoncons6binary16little_to_nativeIdNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  197|  20.0k|    {
  198|  20.0k|        if (sizeof(T) > count)
  ------------------
  |  Branch (198:13): [True: 0, False: 20.0k]
  ------------------
  199|      0|        {
  200|      0|            return T{};
  201|      0|        }
  202|  20.0k|        T val;
  203|  20.0k|        std::memcpy(&val,first,sizeof(T));
  204|  20.0k|        return val;
  205|  20.0k|    }
_ZN8jsoncons6binary16little_to_nativeImNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  197|  45.8k|    {
  198|  45.8k|        if (sizeof(T) > count)
  ------------------
  |  Branch (198:13): [True: 0, False: 45.8k]
  ------------------
  199|      0|        {
  200|      0|            return T{};
  201|      0|        }
  202|  45.8k|        T val;
  203|  45.8k|        std::memcpy(&val,first,sizeof(T));
  204|  45.8k|        return val;
  205|  45.8k|    }
_ZN8jsoncons6binary16little_to_nativeIlNS_6detail6endianEEENSt3__19enable_ifIXeqsrT0_6nativesrS6_6littleET_E4typeEPKhm:
  197|  19.4k|    {
  198|  19.4k|        if (sizeof(T) > count)
  ------------------
  |  Branch (198:13): [True: 0, False: 19.4k]
  ------------------
  199|      0|        {
  200|      0|            return T{};
  201|      0|        }
  202|  19.4k|        T val;
  203|  19.4k|        std::memcpy(&val,first,sizeof(T));
  204|  19.4k|        return val;
  205|  19.4k|    }

_ZNK8jsoncons16byte_string_view4dataEv:
  399|   216k|        {
  400|   216k|            return data_;
  401|   216k|        }
_ZNK8jsoncons16byte_string_view4sizeEv:
  403|   216k|        {
  404|   216k|            return size_;
  405|   216k|        }
_ZN8jsoncons16byte_string_viewC2EPKhm:
  362|   216k|            : data_(data), size_(length)
  363|   216k|        {
  364|   216k|        }

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

_ZN8jsoncons10ext_traits16to_plain_pointerINS_4heap11heap_stringIcNS_9null_typeENSt3__19allocatorIcEEEEEEPT_SA_:
  241|  47.4k|    {       
  242|  47.4k|        return (ptr);
  243|  47.4k|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerINS_4heap11heap_stringIhmNSt3__19allocatorIcEEEEEEPT_S9_:
  241|  72.1k|    {       
  242|  72.1k|        return (ptr);
  243|  72.1k|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerINS_10json_arrayINS_10basic_jsonIcNS_13sorted_policyENSt3__19allocatorIcEEEENS5_6vectorEEEEEPT_SC_:
  241|  88.8k|    {       
  242|  88.8k|        return (ptr);
  243|  88.8k|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerINS_18sorted_json_objectINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS_10basic_jsonIcNS_13sorted_policyES8_EENS3_6vectorEEEEEPT_SG_:
  241|  83.1k|    {       
  242|  83.1k|        return (ptr);
  243|  83.1k|    }  
_ZN8jsoncons10ext_traits16to_plain_pointerIcEEPT_S3_:
  241|   119k|    {       
  242|   119k|        return (ptr);
  243|   119k|    }  

_ZN8jsoncons14unicode_traits8validateIcEENSt3__19enable_ifIXsr10ext_traits8is_char8IT_EE5valueENS0_14unicode_resultIS4_EEE4typeEPKS4_m:
 1147|  11.5M|    {
 1148|  11.5M|        const uint8_t* it = reinterpret_cast<const uint8_t*>(data);
 1149|  11.5M|        const uint8_t* end = it + length;
 1150|       |
 1151|  11.5M|        unicode_errc  result{};
 1152|  15.6M|        while (it != end) 
  ------------------
  |  Branch (1152:16): [True: 4.09M, False: 11.5M]
  ------------------
 1153|  4.09M|        {
 1154|  4.09M|            if ((end - it) >= 8)
  ------------------
  |  Branch (1154:17): [True: 3.28M, False: 809k]
  ------------------
 1155|  3.28M|            {
 1156|  22.9M|                JSONCONS_REPEAT8({if (JSONCONS_LIKELY((*it & 0x80) == 0)) ++it; else goto non_ascii;})
  ------------------
  |  |  281|  6.57M|#define JSONCONS_REPEAT8(x)  { x x x x x x x x }
  |  |  ------------------
  |  |  |  Branch (281:32): [True: 3.28M, False: 4.61k]
  |  |  |  Branch (281:34): [True: 3.28M, False: 1.30k]
  |  |  |  Branch (281:36): [True: 3.28M, False: 1.87k]
  |  |  |  Branch (281:38): [True: 3.27M, False: 1.59k]
  |  |  |  Branch (281:40): [True: 3.27M, False: 1.81k]
  |  |  |  Branch (281:42): [True: 3.27M, False: 1.93k]
  |  |  |  Branch (281:44): [True: 3.27M, False: 1.07k]
  |  |  |  Branch (281:46): [True: 3.27M, False: 1.56k]
  |  |  ------------------
  ------------------
 1157|  3.27M|                continue;
 1158|  22.9M|            }
 1159|   825k|    non_ascii:
 1160|   825k|            const std::size_t len = static_cast<std::size_t>(trailing_bytes_for_utf8[*it]) + 1;
 1161|   825k|            if (len > (std::size_t)(end - it))
  ------------------
  |  Branch (1161:17): [True: 45, False: 825k]
  ------------------
 1162|     45|            {
 1163|     45|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it), unicode_errc::source_exhausted};
 1164|     45|            }
 1165|   825k|            if ((result=is_legal_utf8(it, len)) != unicode_errc())
  ------------------
  |  Branch (1165:17): [True: 142, False: 824k]
  ------------------
 1166|    142|            {
 1167|    142|                return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1168|    142|            }
 1169|   824k|            it += len;
 1170|   824k|        }
 1171|  11.5M|        return unicode_result<CharT>{reinterpret_cast<const CharT*>(it),result} ;
 1172|  11.5M|    }
_ZN8jsoncons14unicode_traits13is_legal_utf8EPKhm:
  305|   825k|    {
  306|   825k|        const uint8_t* it = reinterpret_cast<const uint8_t*>(bytes);
  307|   825k|        const uint8_t* end = it+length;
  308|       |
  309|   825k|        uint8_t byte;
  310|   825k|        switch (length) {
  311|     18|        default:
  ------------------
  |  Branch (311:9): [True: 18, False: 825k]
  ------------------
  312|     18|            return unicode_errc::over_long_utf8_sequence;
  313|  4.96k|        case 4:
  ------------------
  |  Branch (313:9): [True: 4.96k, False: 820k]
  ------------------
  314|  4.96k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (314:17): [True: 10, False: 4.95k]
  ------------------
  315|     10|                return unicode_errc::bad_continuation_byte;
  316|  4.95k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  4.95k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  317|  11.2k|        case 3:
  ------------------
  |  Branch (317:9): [True: 6.31k, False: 818k]
  ------------------
  318|  11.2k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (318:17): [True: 15, False: 11.2k]
  ------------------
  319|     15|                return unicode_errc::bad_continuation_byte;
  320|  11.2k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  11.2k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  321|  16.2k|        case 2:
  ------------------
  |  Branch (321:9): [True: 4.96k, False: 820k]
  ------------------
  322|  16.2k|            if (((byte = (*--end))& 0xC0) != 0x80)
  ------------------
  |  Branch (322:17): [True: 36, False: 16.1k]
  ------------------
  323|     36|                return unicode_errc::bad_continuation_byte;
  324|       |
  325|  16.1k|            switch (*it) 
  326|  16.1k|            {
  327|       |                // no fall-through in this inner switch
  328|  1.31k|                case 0xE0: if (byte < 0xA0) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (328:17): [True: 1.31k, False: 14.8k]
  |  Branch (328:32): [True: 8, False: 1.30k]
  ------------------
  329|  1.36k|                case 0xED: if (byte > 0x9F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (329:17): [True: 1.36k, False: 14.8k]
  |  Branch (329:32): [True: 2, False: 1.36k]
  ------------------
  330|  1.36k|                case 0xF0: if (byte < 0x90) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (330:17): [True: 368, False: 15.8k]
  |  Branch (330:32): [True: 5, False: 363]
  ------------------
  331|    545|                case 0xF4: if (byte > 0x8F) return unicode_errc::source_illegal; break;
  ------------------
  |  Branch (331:17): [True: 545, False: 15.6k]
  |  Branch (331:32): [True: 5, False: 540]
  ------------------
  332|  12.5k|                default:   if (byte < 0x80) return unicode_errc::source_illegal;
  ------------------
  |  Branch (332:17): [True: 12.5k, False: 3.59k]
  |  Branch (332:32): [True: 0, False: 12.5k]
  ------------------
  333|  16.1k|            }
  334|       |
  335|  16.1k|            JSONCONS_FALLTHROUGH;
  ------------------
  |  |  564|  16.1k|#  define JSONCONS_FALLTHROUGH [[fallthrough]]
  ------------------
  336|   824k|        case 1:
  ------------------
  |  Branch (336:9): [True: 808k, False: 16.2k]
  ------------------
  337|   824k|            if (*it >= 0x80 && *it < 0xC2)
  ------------------
  |  Branch (337:17): [True: 16.1k, False: 808k]
  |  Branch (337:32): [True: 42, False: 16.1k]
  ------------------
  338|     42|                return unicode_errc::source_illegal;
  339|   824k|            break;
  340|   825k|        }
  341|   824k|        if (*it > 0xF4) 
  ------------------
  |  Branch (341:13): [True: 1, False: 824k]
  ------------------
  342|      1|            return unicode_errc::source_illegal;
  343|       |
  344|   824k|        return unicode_errc();
  345|   824k|    }

_ZN8jsoncons12from_integerIiNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS1_9enable_ifIXsr10ext_traits10is_integerIT_EE5valueEmE4typeES9_RT0_:
   42|  10.8k|{
   43|  10.8k|    using char_type = typename Result::value_type;
   44|       |
   45|  10.8k|    char_type buf[255];
   46|  10.8k|    char_type *p = buf;
   47|  10.8k|    const char_type* last = buf+255;
   48|       |
   49|  10.8k|    bool is_negative = value < 0;
   50|       |
   51|  10.8k|    if (value < 0)
  ------------------
  |  Branch (51:9): [True: 8.81k, False: 2.00k]
  ------------------
   52|  8.81k|    {
   53|  8.81k|        do
   54|  34.9k|        {
   55|  34.9k|            *p++ = static_cast<char_type>(48 - (value % 10));
   56|  34.9k|        }
   57|  34.9k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (57:16): [True: 26.1k, False: 8.81k]
  |  Branch (57:33): [True: 26.1k, False: 0]
  ------------------
   58|  8.81k|    }
   59|  2.00k|    else
   60|  2.00k|    {
   61|       |
   62|  2.00k|        do
   63|  7.81k|        {
   64|  7.81k|            *p++ = static_cast<char_type>(48 + value % 10);
   65|  7.81k|        }
   66|  7.81k|        while ((value /= 10) && (p < last));
  ------------------
  |  Branch (66:16): [True: 5.80k, False: 2.00k]
  |  Branch (66:33): [True: 5.80k, False: 0]
  ------------------
   67|  2.00k|    }
   68|  10.8k|    JSONCONS_ASSERT(p != last);
  ------------------
  |  |   49|  10.8k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 10.8k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
   69|       |
   70|  10.8k|    std::size_t count = (p - buf);
   71|  10.8k|    if (is_negative)
  ------------------
  |  Branch (71:9): [True: 8.81k, False: 2.00k]
  ------------------
   72|  8.81k|    {
   73|  8.81k|        result.push_back('-');
   74|  8.81k|        ++count;
   75|  8.81k|    }
   76|  53.5k|    while (--p >= buf)
  ------------------
  |  Branch (76:12): [True: 42.7k, False: 10.8k]
  ------------------
   77|  42.7k|    {
   78|  42.7k|        result.push_back(*p);
   79|  42.7k|    }
   80|       |
   81|  10.8k|    return count;
   82|  10.8k|}

_ZN8jsoncons4bson3TP1C2Ev:
   78|  13.5k|        constexpr TP1() : low(0), high(0) {}
_ZN8jsoncons4bson19decimal128_to_charsEPcS1_RKNS0_3TP1E:
  335|  13.5k|    {
  336|  13.5k|        static const std::string bson_decimal128_inf = "Infinity";
  337|  13.5k|        static const std::string bson_decimal128_nan = "NaN";
  338|       |
  339|  13.5k|        static constexpr uint32_t combination_mask = 0x1f;   /* Extract least significant 5 bits */
  340|  13.5k|        static constexpr uint32_t exponent_mask = 0x3fff;    /* Extract least significant 14 bits */
  341|  13.5k|        static constexpr uint32_t combination_infinity = 30; /* Value of combination field for Inf */
  342|  13.5k|        static constexpr uint32_t combination_nan = 31;      /* Value of combination field for NaN */
  343|  13.5k|        static constexpr uint32_t exponent_bias = 6176;      /* decimal128 exponent bias */
  344|       |
  345|  13.5k|        char* str_out = first;      /* output pointer in string */
  346|  13.5k|        char significand_str[35]; /* decoded significand digits */
  347|       |
  348|       |        /* Note: bits in this routine are referred to starting at 0, */
  349|       |        /* from the sign bit, towards the coefficient. */
  350|  13.5k|        uint32_t high;                   /* bits 0 - 31 */
  351|  13.5k|        uint32_t midh;                   /* bits 32 - 63 */
  352|  13.5k|        uint32_t midl;                   /* bits 64 - 95 */
  353|  13.5k|        uint32_t low;                    /* bits 96 - 127 */
  354|  13.5k|        uint32_t combination;            /* bits 1 - 5 */
  355|  13.5k|        uint32_t biased_exponent;        /* decoded biased exponent (14 bits) */
  356|  13.5k|        uint32_t significand_digits = 0; /* the number of significand digits */
  357|  13.5k|        uint32_t significand[36] = {0};  /* the base-10 digits in the significand */
  358|  13.5k|        uint32_t *significand_read = significand; /* read pointer into significand */
  359|  13.5k|        int32_t exponent;                         /* unbiased exponent */
  360|  13.5k|        int32_t scientific_exponent; /* the exponent if scientific notation is
  361|       |                                      * used */
  362|  13.5k|        bool is_zero = false;        /* true if the number is zero */
  363|       | 
  364|  13.5k|        uint8_t significand_msb; /* the most signifcant significand bits (50-46) */
  365|  13.5k|        bson_uint128_t
  366|  13.5k|           significand128; /* temporary storage for significand decoding */
  367|       | 
  368|  13.5k|        memset (significand_str, 0, sizeof (significand_str));
  369|       | 
  370|  13.5k|        if ((int64_t) dec.high < 0) { /* negative */
  ------------------
  |  Branch (370:13): [True: 2.52k, False: 10.9k]
  ------------------
  371|  2.52k|           *(str_out++) = '-';
  372|  2.52k|        }
  373|       | 
  374|  13.5k|        low = (uint32_t) dec.low, midl = (uint32_t) (dec.low >> 32),
  375|  13.5k|        midh = (uint32_t) dec.high, high = (uint32_t) (dec.high >> 32);
  376|       | 
  377|       |        /* Decode combination field and exponent */
  378|  13.5k|        combination = (high >> 26) & combination_mask;
  379|       | 
  380|  13.5k|        if (JSONCONS_UNLIKELY ((combination >> 3) == 3)) {
  ------------------
  |  |   78|  13.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 3.48k, False: 10.0k]
  |  |  ------------------
  ------------------
  381|       |           /* Check for 'special' values */
  382|  3.48k|           if (combination == combination_infinity) { /* Infinity */
  ------------------
  |  Branch (382:16): [True: 197, False: 3.29k]
  ------------------
  383|    197|               if (last-str_out >= static_cast<ptrdiff_t >(bson_decimal128_inf.size())) 
  ------------------
  |  Branch (383:20): [True: 197, False: 0]
  ------------------
  384|    197|               {
  385|    197|                   std::memcpy(str_out, bson_decimal128_inf.data(), bson_decimal128_inf.size());
  386|    197|                   str_out += bson_decimal128_inf.size();
  387|    197|               }
  388|    197|               *str_out = 0;
  389|       |              //strcpy_s (str_out, last-str_out, bson_decimal128_inf.c_str());
  390|    197|              return decimal128_to_chars_result{str_out, std::errc{}};
  391|  3.29k|           } else if (combination == combination_nan) { /* NaN */
  ------------------
  |  Branch (391:23): [True: 1.59k, False: 1.69k]
  ------------------
  392|       |               /* first, not str_out, to erase the sign */
  393|  1.59k|               str_out = first;
  394|  1.59k|               if (last-str_out >= static_cast<ptrdiff_t >(bson_decimal128_nan.size())) 
  ------------------
  |  Branch (394:20): [True: 1.59k, False: 0]
  ------------------
  395|  1.59k|               {
  396|  1.59k|                   std::memcpy(str_out, bson_decimal128_nan.data(), bson_decimal128_nan.size());
  397|  1.59k|                   str_out += bson_decimal128_nan.size();
  398|  1.59k|               }
  399|  1.59k|               *str_out = 0;
  400|       |              //strcpy_s (first, last-first, bson_decimal128_nan.c_str());
  401|       |              /* we don't care about the NaN payload. */
  402|  1.59k|               return decimal128_to_chars_result{str_out, std::errc{}};
  403|  1.69k|           } else {
  404|  1.69k|              biased_exponent = (high >> 15) & exponent_mask;
  405|  1.69k|              significand_msb = 0x8 + ((high >> 14) & 0x1);
  406|  1.69k|           }
  407|  10.0k|        } else {
  408|  10.0k|           significand_msb = (high >> 14) & 0x7;
  409|  10.0k|           biased_exponent = (high >> 17) & exponent_mask;
  410|  10.0k|        }
  411|       | 
  412|  11.7k|        exponent = biased_exponent - exponent_bias;
  413|       |        /* Create string of significand digits */
  414|       | 
  415|       |        /* Convert the 114-bit binary number represented by */
  416|       |        /* (high, midh, midl, low) to at most 34 decimal */
  417|       |        /* digits through modulo and division. */
  418|  11.7k|        significand128.parts[0] = (high & 0x3fff) + ((significand_msb & 0xf) << 14);
  419|  11.7k|        significand128.parts[1] = midh;
  420|  11.7k|        significand128.parts[2] = midl;
  421|  11.7k|        significand128.parts[3] = low;
  422|       | 
  423|  11.7k|        if (significand128.parts[0] == 0 && significand128.parts[1] == 0 &&
  ------------------
  |  Branch (423:13): [True: 4.11k, False: 7.62k]
  |  Branch (423:45): [True: 2.00k, False: 2.11k]
  ------------------
  424|  2.00k|            significand128.parts[2] == 0 && significand128.parts[3] == 0) {
  ------------------
  |  Branch (424:13): [True: 1.66k, False: 341]
  |  Branch (424:45): [True: 1.09k, False: 571]
  ------------------
  425|  1.09k|           is_zero = true;
  426|  10.6k|        } else if (significand128.parts[0] >= (1 << 17)) {
  ------------------
  |  Branch (426:20): [True: 1.69k, False: 8.94k]
  ------------------
  427|       |           /* The significand is non-canonical or zero.
  428|       |            * In order to preserve compatibility with the densely packed decimal
  429|       |            * format, the maximum value for the significand of decimal128 is
  430|       |            * 1e34 - 1.  If the value is greater than 1e34 - 1, the IEEE 754
  431|       |            * standard dictates that the significand is interpreted as zero.
  432|       |            */
  433|  1.69k|           is_zero = true;
  434|  8.94k|        } else {
  435|  44.7k|           for (int k = 3; k >= 0; k--) {
  ------------------
  |  Branch (435:28): [True: 35.7k, False: 8.94k]
  ------------------
  436|  35.7k|              uint32_t least_digits = 0;
  437|  35.7k|              detail::bson_uint128_divide1B (
  438|  35.7k|                 significand128, &significand128, &least_digits);
  439|       | 
  440|       |              /* We now have the 9 least significant digits (in base 2). */
  441|       |              /* Convert and output to string. */
  442|  35.7k|              if (!least_digits) {
  ------------------
  |  Branch (442:19): [True: 2.08k, False: 33.6k]
  ------------------
  443|  2.08k|                 continue;
  444|  2.08k|              }
  445|       | 
  446|   336k|              for (int j = 8; j >= 0; j--) {
  ------------------
  |  Branch (446:31): [True: 303k, False: 33.6k]
  ------------------
  447|   303k|                 significand[k * 9 + j] = least_digits % 10;
  448|   303k|                 least_digits /= 10;
  449|   303k|              }
  450|  33.6k|           }
  451|  8.94k|        }
  452|       | 
  453|       |        /* Output format options: */
  454|       |        /* Scientific - [-]d.dddE(+/-)dd or [-]dE(+/-)dd */
  455|       |        /* Regular    - ddd.ddd */
  456|       | 
  457|  11.7k|        if (is_zero) {
  ------------------
  |  Branch (457:13): [True: 2.78k, False: 8.94k]
  ------------------
  458|  2.78k|           significand_digits = 1;
  459|  2.78k|           *significand_read = 0;
  460|  8.94k|        } else {
  461|  8.94k|           significand_digits = 36;
  462|  63.5k|           while (!(*significand_read)) {
  ------------------
  |  Branch (462:19): [True: 54.5k, False: 8.94k]
  ------------------
  463|  54.5k|              significand_digits--;
  464|  54.5k|              significand_read++;
  465|  54.5k|           }
  466|  8.94k|        }
  467|       | 
  468|  11.7k|        scientific_exponent = significand_digits - 1 + exponent;
  469|       | 
  470|       |        /* The scientific exponent checks are dictated by the string conversion
  471|       |         * specification and are somewhat arbitrary cutoffs.
  472|       |         *
  473|       |         * We must check exponent > 0, because if this is the case, the number
  474|       |         * has trailing zeros.  However, we *cannot* output these trailing zeros,
  475|       |         * because doing so would change the precision of the value, and would
  476|       |         * change stored data if the string converted number is round tripped.
  477|       |         */
  478|  11.7k|        if (scientific_exponent < -6 || exponent > 0) {
  ------------------
  |  Branch (478:13): [True: 8.81k, False: 2.91k]
  |  Branch (478:41): [True: 2.00k, False: 909]
  ------------------
  479|       |           /* Scientific format */
  480|  10.8k|           *(str_out++) = char(*(significand_read++)) + '0';
  481|  10.8k|           significand_digits--;
  482|       | 
  483|  10.8k|           if (significand_digits) {
  ------------------
  |  Branch (483:16): [True: 8.05k, False: 2.77k]
  ------------------
  484|  8.05k|              *(str_out++) = '.';
  485|  8.05k|           }
  486|       | 
  487|   244k|           for (std::size_t i = 0; i < significand_digits && (str_out - first) < 36; i++) {
  ------------------
  |  Branch (487:36): [True: 233k, False: 10.8k]
  |  Branch (487:62): [True: 233k, False: 5]
  ------------------
  488|   233k|              *(str_out++) = char(*(significand_read++)) + '0';
  489|   233k|           }
  490|       |           /* Exponent */
  491|  10.8k|           *(str_out++) = 'E';
  492|       |
  493|  10.8k|           std::string s;
  494|  10.8k|           if (scientific_exponent >= 0) {
  ------------------
  |  Branch (494:16): [True: 2.00k, False: 8.81k]
  ------------------
  495|  2.00k|               s.push_back('+');
  496|  2.00k|           }
  497|  10.8k|           jsoncons::from_integer(scientific_exponent, s);
  498|  10.8k|           if (str_out + s.size() < last) 
  ------------------
  |  Branch (498:16): [True: 9.85k, False: 974]
  ------------------
  499|  9.85k|           {
  500|  9.85k|               std::memcpy(str_out, s.data(), s.size());
  501|  9.85k|           }
  502|    974|           else
  503|    974|           {
  504|    974|               return decimal128_to_chars_result{str_out, std::errc::value_too_large};
  505|    974|           }
  506|  9.85k|           str_out += s.size();
  507|  9.85k|        } else {
  508|       |           /* Regular format with no decimal place */
  509|    909|           if (exponent >= 0) {
  ------------------
  |  Branch (509:16): [True: 345, False: 564]
  ------------------
  510|  9.45k|              for (std::size_t i = 0; i < significand_digits && (str_out - first) < 36; i++) {
  ------------------
  |  Branch (510:39): [True: 9.10k, False: 345]
  |  Branch (510:65): [True: 9.10k, False: 0]
  ------------------
  511|  9.10k|                 *(str_out++) = char(*(significand_read++)) + '0';
  512|  9.10k|              }
  513|    564|           } else {
  514|    564|              int32_t radix_position = significand_digits + exponent;
  515|       | 
  516|    564|              if (radix_position > 0) { /* non-zero digits before radix */
  ------------------
  |  Branch (516:19): [True: 211, False: 353]
  ------------------
  517|    211|                 for (int32_t i = 0;
  518|  1.35k|                      i < radix_position && (str_out < last);
  ------------------
  |  Branch (518:23): [True: 1.14k, False: 211]
  |  Branch (518:45): [True: 1.14k, False: 0]
  ------------------
  519|  1.14k|                      i++) {
  520|  1.14k|                    *(str_out++) = char(*(significand_read++)) + '0';
  521|  1.14k|                 }
  522|    353|              } else { /* leading zero before radix point */
  523|    353|                 *(str_out++) = '0';
  524|    353|              }
  525|       | 
  526|    564|              *(str_out++) = '.';
  527|  1.56k|              while (radix_position++ < 0) { /* add leading zeros after radix */
  ------------------
  |  Branch (527:22): [True: 997, False: 564]
  ------------------
  528|    997|                 *(str_out++) = '0';
  529|    997|              }
  530|       | 
  531|    564|              for (std::size_t i = 0;
  532|  16.3k|                   (i < significand_digits - (std::max) (radix_position - 1, 0)) &&
  ------------------
  |  Branch (532:20): [True: 15.8k, False: 552]
  |  Branch (532:20): [True: 15.8k, False: 564]
  ------------------
  533|  15.8k|                   (str_out < last);
  ------------------
  |  Branch (533:20): [True: 15.8k, False: 12]
  ------------------
  534|  15.8k|                   i++) {
  535|  15.8k|                 *(str_out++) = char(*(significand_read++)) + '0';
  536|  15.8k|              }
  537|    564|           }
  538|    909|        }
  539|  10.7k|        return decimal128_to_chars_result{str_out, std::errc{}};
  540|  11.7k|    }
_ZN8jsoncons4bson6detail21bson_uint128_divide1BENS0_14bson_uint128_tEPS2_Pj:
  178|  35.7k|        {
  179|  35.7k|            static constexpr uint32_t DIVISOR = 1000 * 1000 * 1000;
  180|  35.7k|            uint64_t _rem = 0;
  181|  35.7k|            int i = 0;
  182|       |            
  183|  35.7k|            if (!value.parts[0] && !value.parts[1] && !value.parts[2] &&
  ------------------
  |  Branch (183:17): [True: 29.8k, False: 5.92k]
  |  Branch (183:36): [True: 21.2k, False: 8.59k]
  |  Branch (183:55): [True: 11.5k, False: 9.70k]
  ------------------
  184|  11.5k|                !value.parts[3]) {
  ------------------
  |  Branch (184:17): [True: 2.08k, False: 9.47k]
  ------------------
  185|  2.08k|               *quotient = value;
  186|  2.08k|               *rem = 0;
  187|  2.08k|               return;
  188|  2.08k|            }
  189|       |            
  190|   168k|            for (i = 0; i <= 3; i++) {
  ------------------
  |  Branch (190:25): [True: 134k, False: 33.6k]
  ------------------
  191|   134k|               _rem <<= 32; /* Adjust remainder to match value of next dividend */
  192|   134k|               _rem += value.parts[i]; /* Add the divided to _rem */
  193|   134k|               value.parts[i] = (uint32_t) (_rem / DIVISOR);
  194|   134k|               _rem %= DIVISOR; /* Store the remainder */
  195|   134k|            }
  196|       |            
  197|  33.6k|            *quotient = value;
  198|  33.6k|            *rem = (uint32_t) _rem;
  199|  33.6k|        }

_ZN8jsoncons4bson15make_error_codeENS0_9bson_errcE:
   91|  4.99k|{
   92|  4.99k|    return std::error_code(static_cast<int>(result),bson_error_category());
   93|  4.99k|}
_ZN8jsoncons4bson19bson_error_categoryEv:
   84|  4.99k|{
   85|  4.99k|  static bson_error_category_impl instance;
   86|  4.99k|  return instance;
   87|  4.99k|}
_ZNK8jsoncons4bson24bson_error_category_impl7messageEi:
   45|  4.91k|    {
   46|  4.91k|        switch (static_cast<bson_errc>(ev))
   47|  4.91k|        {
   48|  1.83k|            case bson_errc::unexpected_eof:
  ------------------
  |  Branch (48:13): [True: 1.83k, False: 3.07k]
  ------------------
   49|  1.83k|                return "Unexpected end of file";
   50|      0|            case bson_errc::source_error:
  ------------------
  |  Branch (50:13): [True: 0, False: 4.91k]
  ------------------
   51|      0|                return "Source error";
   52|    187|            case bson_errc::invalid_utf8_text_string:
  ------------------
  |  Branch (52:13): [True: 187, False: 4.72k]
  ------------------
   53|    187|                return "Illegal UTF-8 encoding in text string";
   54|      2|            case bson_errc::max_nesting_depth_exceeded:
  ------------------
  |  Branch (54:13): [True: 2, False: 4.91k]
  ------------------
   55|      2|                return "Data item nesting exceeds limit in options";
   56|     35|            case bson_errc::string_length_is_non_positive:
  ------------------
  |  Branch (56:13): [True: 35, False: 4.87k]
  ------------------
   57|     35|                return "Request for the length of a string returned a non-positive result";
   58|     36|            case bson_errc::length_is_negative:
  ------------------
  |  Branch (58:13): [True: 36, False: 4.87k]
  ------------------
   59|     36|                return "Request for the length of a binary returned a negative result";
   60|    137|            case bson_errc::unknown_type:
  ------------------
  |  Branch (60:13): [True: 137, False: 4.77k]
  ------------------
   61|    137|                return "Unknown type in input";
   62|      0|            case bson_errc::number_too_large:
  ------------------
  |  Branch (62:13): [True: 0, False: 4.91k]
  ------------------
   63|      0|                return "Number too large";
   64|      0|            case bson_errc::invalid_decimal128_string:
  ------------------
  |  Branch (64:13): [True: 0, False: 4.91k]
  ------------------
   65|      0|                return "Invalid decimal128 string";
   66|      0|            case bson_errc::datetime_too_large:
  ------------------
  |  Branch (66:13): [True: 0, False: 4.91k]
  ------------------
   67|      0|                return "datetime too large";
   68|      0|            case bson_errc::datetime_too_small:
  ------------------
  |  Branch (68:13): [True: 0, False: 4.91k]
  ------------------
   69|      0|                return "datetime too small";
   70|      0|            case bson_errc::expected_bson_document:
  ------------------
  |  Branch (70:13): [True: 0, False: 4.91k]
  ------------------
   71|      0|                return "Expected BSON document";
   72|      0|            case bson_errc::invalid_regex_string:
  ------------------
  |  Branch (72:13): [True: 0, False: 4.91k]
  ------------------
   73|      0|                return "Invalid regex string";
   74|  2.68k|            case bson_errc::size_mismatch:
  ------------------
  |  Branch (74:13): [True: 2.68k, False: 2.23k]
  ------------------
   75|  2.68k|                return "Document or array size doesn't match bytes read";
   76|      0|            default:
  ------------------
  |  Branch (76:13): [True: 0, False: 4.91k]
  ------------------
   77|      0|                return "Unknown BSON parser error";
   78|  4.91k|        }
   79|  4.91k|    }

_ZN8jsoncons4bson5oid_tC2EPh:
   53|  5.42k|        {
   54|  5.42k|            std::memcpy(bytes_.data(),data,12);
   55|  5.42k|        }
_ZN8jsoncons4bson9to_stringINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEvRKNS0_5oid_tERT_:
  236|  5.42k|    {
  237|  5.42k|        s.resize(24);
  238|  5.42k|        detail::init_hex_char_pairs(oid, reinterpret_cast<uint16_t*>(&s[0]));
  239|  5.42k|    }
_ZN8jsoncons4bson6detail19init_hex_char_pairsERKNS0_5oid_tEPt:
  213|  5.42k|        {
  214|  5.42k|            const uint8_t* bytes = oid.data();
  215|  5.42k|            const uint16_t* gHexCharPairs = get_hex_char_pairs(std::integral_constant<bool, jsoncons::endian::native == jsoncons::endian::big>());
  216|       |
  217|  5.42k|            data[0] = gHexCharPairs[bytes[0]];
  218|  5.42k|            data[1] = gHexCharPairs[bytes[1]];
  219|  5.42k|            data[2] = gHexCharPairs[bytes[2]];
  220|  5.42k|            data[3] = gHexCharPairs[bytes[3]];
  221|  5.42k|            data[4] = gHexCharPairs[bytes[4]];
  222|  5.42k|            data[5] = gHexCharPairs[bytes[5]];
  223|  5.42k|            data[6] = gHexCharPairs[bytes[6]];
  224|  5.42k|            data[7] = gHexCharPairs[bytes[7]];
  225|  5.42k|            data[8] = gHexCharPairs[bytes[8]];
  226|  5.42k|            data[9] = gHexCharPairs[bytes[9]];
  227|  5.42k|            data[10] = gHexCharPairs[bytes[10]];
  228|  5.42k|            data[11] = gHexCharPairs[bytes[11]];
  229|  5.42k|        }
_ZNK8jsoncons4bson5oid_t4dataEv:
   67|  5.42k|        {
   68|  5.42k|            return bytes_.data();
   69|  5.42k|        }
_ZN8jsoncons4bson6detail18get_hex_char_pairsENSt3__117integral_constantIbLb0EEE:
  181|  5.42k|        {
  182|  5.42k|            static constexpr uint16_t hex_char_pairs[] = {
  183|  5.42k|                12336, 12592, 12848, 13104, 13360, 13616, 13872, 14128, 14384, 14640, 24880,
  184|  5.42k|                25136, 25392, 25648, 25904, 26160, 12337, 12593, 12849, 13105, 13361, 13617,
  185|  5.42k|                13873, 14129, 14385, 14641, 24881, 25137, 25393, 25649, 25905, 26161, 12338,
  186|  5.42k|                12594, 12850, 13106, 13362, 13618, 13874, 14130, 14386, 14642, 24882, 25138,
  187|  5.42k|                25394, 25650, 25906, 26162, 12339, 12595, 12851, 13107, 13363, 13619, 13875,
  188|  5.42k|                14131, 14387, 14643, 24883, 25139, 25395, 25651, 25907, 26163, 12340, 12596,
  189|  5.42k|                12852, 13108, 13364, 13620, 13876, 14132, 14388, 14644, 24884, 25140, 25396,
  190|  5.42k|                25652, 25908, 26164, 12341, 12597, 12853, 13109, 13365, 13621, 13877, 14133,
  191|  5.42k|                14389, 14645, 24885, 25141, 25397, 25653, 25909, 26165, 12342, 12598, 12854,
  192|  5.42k|                13110, 13366, 13622, 13878, 14134, 14390, 14646, 24886, 25142, 25398, 25654,
  193|  5.42k|                25910, 26166, 12343, 12599, 12855, 13111, 13367, 13623, 13879, 14135, 14391,
  194|  5.42k|                14647, 24887, 25143, 25399, 25655, 25911, 26167, 12344, 12600, 12856, 13112,
  195|  5.42k|                13368, 13624, 13880, 14136, 14392, 14648, 24888, 25144, 25400, 25656, 25912,
  196|  5.42k|                26168, 12345, 12601, 12857, 13113, 13369, 13625, 13881, 14137, 14393, 14649,
  197|  5.42k|                24889, 25145, 25401, 25657, 25913, 26169, 12385, 12641, 12897, 13153, 13409,
  198|  5.42k|                13665, 13921, 14177, 14433, 14689, 24929, 25185, 25441, 25697, 25953, 26209,
  199|  5.42k|                12386, 12642, 12898, 13154, 13410, 13666, 13922, 14178, 14434, 14690, 24930,
  200|  5.42k|                25186, 25442, 25698, 25954, 26210, 12387, 12643, 12899, 13155, 13411, 13667,
  201|  5.42k|                13923, 14179, 14435, 14691, 24931, 25187, 25443, 25699, 25955, 26211, 12388,
  202|  5.42k|                12644, 12900, 13156, 13412, 13668, 13924, 14180, 14436, 14692, 24932, 25188,
  203|  5.42k|                25444, 25700, 25956, 26212, 12389, 12645, 12901, 13157, 13413, 13669, 13925,
  204|  5.42k|                14181, 14437, 14693, 24933, 25189, 25445, 25701, 25957, 26213, 12390, 12646,
  205|  5.42k|                12902, 13158, 13414, 13670, 13926, 14182, 14438, 14694, 24934, 25190, 25446,
  206|  5.42k|                25702, 25958, 26214};
  207|       |
  208|  5.42k|            return hex_char_pairs;
  209|  5.42k|        }

_ZNK8jsoncons4bson19bson_options_common17max_nesting_depthEv:
   31|  4.92k|    {
   32|  4.92k|        return max_nesting_depth_;
   33|  4.92k|    }
_ZN8jsoncons4bson19bson_decode_optionsC1Ev:
   40|  4.92k|    bson_decode_options() = default;
_ZN8jsoncons4bson19bson_options_commonC2Ev:
   23|  4.92k|    bson_options_common() = default;
_ZN8jsoncons4bson19bson_options_commonD2Ev:
   25|  4.92k|    virtual ~bson_options_common() = default;

_ZN8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_13basic_istreamIcNS3_11char_traitsIcEEEEEEOT_RKNS0_19bson_decode_optionsERKS7_:
   85|  4.92k|       : source_(std::forward<Sourceable>(source)), 
   86|  4.92k|         max_nesting_depth_(options.max_nesting_depth()),
   87|  4.92k|         bytes_buffer_(temp_alloc),
   88|  4.92k|         name_buffer_(temp_alloc),
   89|  4.92k|         text_buffer_(temp_alloc),
   90|  4.92k|         state_stack_(temp_alloc)
   91|  4.92k|    {
   92|  4.92k|        state_stack_.emplace_back(parse_mode::root,0,0);
   93|  4.92k|    }
_ZN8jsoncons4bson11parse_stateC2ENS0_10parse_modeEmmh:
   48|  95.8k|        : mode(mode_), length(length_), pos(pos_), type(type_)
   49|  95.8k|    {
   50|  95.8k|    }
_ZNK8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4lineEv:
  149|  4.91k|    {
  150|  4.91k|        return 0;
  151|  4.91k|    }
_ZNK8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE6columnEv:
  154|  4.91k|    {
  155|  4.91k|        return source_.position();
  156|  4.91k|    }
_ZN8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5resetEv:
  101|  4.92k|    {
  102|  4.92k|        more_ = true;
  103|  4.92k|        done_ = false;
  104|  4.92k|        bytes_buffer_.clear();
  105|  4.92k|        name_buffer_.clear();
  106|  4.92k|        text_buffer_.clear();
  107|  4.92k|        state_stack_.clear();
  108|  4.92k|        state_stack_.emplace_back(parse_mode::root,0,0);
  109|  4.92k|    }
_ZN8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5parseERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  169|  4.92k|    {
  170|  4.92k|        if (JSONCONS_UNLIKELY(source_.is_error()))
  ------------------
  |  |   78|  4.92k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 4.92k]
  |  |  ------------------
  ------------------
  171|      0|        {
  172|      0|            ec = bson_errc::source_error;
  173|      0|            more_ = false;
  174|      0|            return;
  175|      0|        }
  176|       |        
  177|  32.9M|        while (!done_ && more_)
  ------------------
  |  Branch (177:16): [True: 32.9M, False: 15]
  |  Branch (177:26): [True: 32.9M, False: 3.95k]
  ------------------
  178|  32.9M|        {
  179|  32.9M|            switch (state_stack_.back().mode)
  ------------------
  |  Branch (179:21): [True: 32.9M, False: 0]
  ------------------
  180|  32.9M|            {
  181|  4.92k|                case parse_mode::root:
  ------------------
  |  Branch (181:17): [True: 4.92k, False: 32.9M]
  ------------------
  182|  4.92k|                    state_stack_.back().mode = parse_mode::accept;
  183|  4.92k|                    begin_document(visitor, ec);
  184|  4.92k|                    break;
  185|  11.5M|                case parse_mode::document:
  ------------------
  |  Branch (185:17): [True: 11.5M, False: 21.4M]
  ------------------
  186|  11.5M|                {
  187|  11.5M|                    uint8_t type;
  188|  11.5M|                    std::size_t n = source_.read(&type, 1);
  189|  11.5M|                    state_stack_.back().pos += n;
  190|  11.5M|                    if (JSONCONS_UNLIKELY(n != 1))
  ------------------
  |  |   78|  11.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 695, False: 11.5M]
  |  |  ------------------
  ------------------
  191|    695|                    {
  192|    695|                        ec = bson_errc::unexpected_eof;
  193|    695|                        more_ = false;
  194|    695|                        return;
  195|    695|                    }
  196|  11.5M|                    if (type != 0x00)
  ------------------
  |  Branch (196:25): [True: 11.5M, False: 28.0k]
  ------------------
  197|  11.5M|                    {
  198|  11.5M|                        read_e_name(visitor,jsoncons::bson::bson_container_type::document,ec);
  199|  11.5M|                        state_stack_.back().mode = parse_mode::value;
  200|  11.5M|                        state_stack_.back().type = type;
  201|  11.5M|                    }
  202|  28.0k|                    else
  203|  28.0k|                    {
  204|  28.0k|                        end_document(visitor,ec);
  205|  28.0k|                    }
  206|  11.5M|                    break;
  207|  11.5M|                }
  208|  9.87M|                case parse_mode::array:
  ------------------
  |  Branch (208:17): [True: 9.87M, False: 23.1M]
  ------------------
  209|  9.87M|                {
  210|  9.87M|                    uint8_t type;
  211|  9.87M|                    std::size_t n = source_.read(&type, 1);
  212|  9.87M|                    state_stack_.back().pos += n;
  213|  9.87M|                    if (JSONCONS_UNLIKELY(n != 1))
  ------------------
  |  |   78|  9.87M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 264, False: 9.87M]
  |  |  ------------------
  ------------------
  214|    264|                    {
  215|    264|                        ec = bson_errc::unexpected_eof;
  216|    264|                        more_ = false;
  217|    264|                        return;
  218|    264|                    }
  219|  9.87M|                    if (type != 0x00)
  ------------------
  |  Branch (219:25): [True: 9.85M, False: 20.4k]
  ------------------
  220|  9.85M|                    {
  221|  9.85M|                        read_e_name(visitor,jsoncons::bson::bson_container_type::array,ec);
  222|  9.85M|                        read_value(visitor, type, ec);
  223|  9.85M|                    }
  224|  20.4k|                    else
  225|  20.4k|                    {
  226|  20.4k|                        end_array(visitor,ec);
  227|  20.4k|                    }
  228|  9.87M|                    break;
  229|  9.87M|                }
  230|  11.5M|                case parse_mode::value:
  ------------------
  |  Branch (230:17): [True: 11.5M, False: 21.4M]
  ------------------
  231|  11.5M|                    state_stack_.back().mode = parse_mode::document;
  232|  11.5M|                    read_value(visitor,state_stack_.back().type,ec);
  233|  11.5M|                    break;
  234|     15|                case parse_mode::accept:
  ------------------
  |  Branch (234:17): [True: 15, False: 32.9M]
  ------------------
  235|     15|                {
  236|     15|                    JSONCONS_ASSERT(state_stack_.size() == 1);
  ------------------
  |  |   49|     15|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 15]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  237|     15|                    state_stack_.clear();
  238|     15|                    more_ = false;
  239|     15|                    done_ = true;
  240|     15|                    visitor.flush();
  241|     15|                    break;
  242|     15|                }
  243|  32.9M|            }
  244|  32.9M|        }
  245|  4.92k|    }
_ZN8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE14begin_documentERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  250|  41.5k|    {
  251|  41.5k|        if (JSONCONS_UNLIKELY(static_cast<int>(state_stack_.size()) > max_nesting_depth_))
  ------------------
  |  |   78|  41.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 41.5k]
  |  |  ------------------
  ------------------
  252|      1|        {
  253|      1|            ec = bson_errc::max_nesting_depth_exceeded;
  254|      1|            more_ = false;
  255|      1|            return;
  256|      1|        } 
  257|       |
  258|  41.5k|        uint8_t buf[sizeof(int32_t)]; 
  259|  41.5k|        std::size_t n = source_.read(buf, sizeof(int32_t));
  260|  41.5k|        if (JSONCONS_UNLIKELY(n != sizeof(int32_t)))
  ------------------
  |  |   78|  41.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 40, False: 41.5k]
  |  |  ------------------
  ------------------
  261|     40|        {
  262|     40|            ec = bson_errc::unexpected_eof;
  263|     40|            more_ = false;
  264|     40|            return;
  265|     40|        }
  266|       |
  267|  41.5k|        auto length = binary::little_to_native<int32_t>(buf, sizeof(buf));
  268|       |
  269|  41.5k|        visitor.begin_object(semantic_tag::none, *this, ec);
  270|  41.5k|        more_ = !cursor_mode_;
  271|  41.5k|        state_stack_.emplace_back(parse_mode::document,length,n);
  272|  41.5k|    }
_ZN8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11read_e_nameERNS_18basic_json_visitorIcEENS0_19bson_container_typeERNS3_10error_codeE:
  344|  21.3M|    {
  345|  21.3M|        name_buffer_.clear();
  346|  21.3M|        read_cstring(name_buffer_, ec);
  347|  21.3M|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  21.3M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 177, False: 21.3M]
  |  |  ------------------
  ------------------
  348|    177|        {
  349|    177|            return;
  350|    177|        }
  351|  21.3M|        if (type == jsoncons::bson::bson_container_type::document)
  ------------------
  |  Branch (351:13): [True: 11.5M, False: 9.85M]
  ------------------
  352|  11.5M|        {
  353|  11.5M|            auto result = unicode_traits::validate(name_buffer_.data(),name_buffer_.size());
  354|  11.5M|            if (JSONCONS_UNLIKELY(result.ec != unicode_traits::unicode_errc()))
  ------------------
  |  |   78|  11.5M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 177, False: 11.5M]
  |  |  ------------------
  ------------------
  355|    177|            {
  356|    177|                ec = bson_errc::invalid_utf8_text_string;
  357|    177|                more_ = false;
  358|    177|                return;
  359|    177|            }
  360|  11.5M|            visitor.key(jsoncons::basic_string_view<char>(name_buffer_.data(),name_buffer_.length()), *this, ec);
  361|  11.5M|            more_ = !cursor_mode_;
  362|  11.5M|        }
  363|  21.3M|    }
_ZN8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12read_cstringERNS3_12basic_stringIcNS3_11char_traitsIcEES7_EERNS3_10error_codeE:
  641|  21.6M|    {
  642|  21.6M|        uint8_t c = 0xff;
  643|  59.6M|        while (true)
  ------------------
  |  Branch (643:16): [True: 59.6M, Folded]
  ------------------
  644|  59.6M|        {
  645|  59.6M|            std::size_t n = source_.read(&c, 1);
  646|  59.6M|            state_stack_.back().pos += n;
  647|  59.6M|            if (JSONCONS_UNLIKELY(n != 1))
  ------------------
  |  |   78|  59.6M|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 230, False: 59.6M]
  |  |  ------------------
  ------------------
  648|    230|            {
  649|    230|                ec = bson_errc::unexpected_eof;
  650|    230|                more_ = false;
  651|    230|                return;
  652|    230|            }
  653|  59.6M|            if (c == 0)
  ------------------
  |  Branch (653:17): [True: 21.6M, False: 38.0M]
  ------------------
  654|  21.6M|            {
  655|  21.6M|                break;
  656|  21.6M|            }
  657|  38.0M|            buffer.push_back(c);
  658|  38.0M|        }
  659|  21.6M|    }
_ZN8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE12end_documentERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  275|  28.0k|    {
  276|  28.0k|        JSONCONS_ASSERT(state_stack_.size() >= 2);
  ------------------
  |  |   49|  28.0k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 28.0k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  277|       |
  278|  28.0k|        visitor.end_object(*this,ec);
  279|  28.0k|        more_ = !cursor_mode_;
  280|  28.0k|        if (level() == mark_level_)
  ------------------
  |  Branch (280:13): [True: 0, False: 28.0k]
  ------------------
  281|      0|        {
  282|      0|            more_ = false;
  283|      0|        }
  284|  28.0k|        if (JSONCONS_UNLIKELY(state_stack_.back().pos != state_stack_.back().length))
  ------------------
  |  |   78|  28.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2.28k, False: 25.7k]
  |  |  ------------------
  ------------------
  285|  2.28k|        {
  286|  2.28k|            ec = bson_errc::size_mismatch;
  287|  2.28k|            more_ = false;
  288|  2.28k|            return;
  289|  2.28k|        }
  290|  25.7k|        std::size_t pos = state_stack_.back().pos;
  291|  25.7k|        state_stack_.pop_back();
  292|  25.7k|        state_stack_.back().pos += pos;
  293|  25.7k|    }
_ZNK8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE5levelEv:
  124|  48.4k|    {
  125|  48.4k|        return static_cast<int>(state_stack_.size());
  126|  48.4k|    }
_ZN8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE10read_valueERNS_18basic_json_visitorIcEEhRNS3_10error_codeE:
  366|  21.3M|    {
  367|  21.3M|        switch (type)
  368|  21.3M|        {
  369|  20.0k|            case jsoncons::bson::bson_type::double_type:
  ------------------
  |  Branch (369:13): [True: 20.0k, False: 21.3M]
  ------------------
  370|  20.0k|            {
  371|  20.0k|                uint8_t buf[sizeof(double)]; 
  372|  20.0k|                std::size_t n = source_.read(buf, sizeof(double));
  373|  20.0k|                state_stack_.back().pos += n;
  374|  20.0k|                if (JSONCONS_UNLIKELY(n != sizeof(double)))
  ------------------
  |  |   78|  20.0k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 8, False: 20.0k]
  |  |  ------------------
  ------------------
  375|      8|                {
  376|      8|                    ec = bson_errc::unexpected_eof;
  377|      8|                    more_ = false;
  378|      8|                    return;
  379|      8|                }
  380|  20.0k|                double res = binary::little_to_native<double>(buf, sizeof(buf));
  381|  20.0k|                visitor.double_value(res, semantic_tag::none, *this, ec);
  382|  20.0k|                more_ = !cursor_mode_;
  383|  20.0k|                break;
  384|  20.0k|            }
  385|    317|            case jsoncons::bson::bson_type::symbol_type:
  ------------------
  |  Branch (385:13): [True: 317, False: 21.3M]
  ------------------
  386|    810|            case jsoncons::bson::bson_type::min_key_type:
  ------------------
  |  Branch (386:13): [True: 493, False: 21.3M]
  ------------------
  387|  1.05k|            case jsoncons::bson::bson_type::max_key_type:
  ------------------
  |  Branch (387:13): [True: 246, False: 21.3M]
  ------------------
  388|  3.47k|            case jsoncons::bson::bson_type::string_type:
  ------------------
  |  Branch (388:13): [True: 2.42k, False: 21.3M]
  ------------------
  389|  3.47k|            {
  390|  3.47k|                auto sv = read_string(ec);
  391|  3.47k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  3.47k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 283, False: 3.19k]
  |  |  ------------------
  ------------------
  392|    283|                {
  393|    283|                    return;
  394|    283|                }
  395|  3.19k|                auto result = unicode_traits::validate(sv.data(), sv.size());
  396|  3.19k|                if (JSONCONS_UNLIKELY(result.ec != unicode_traits::unicode_errc()))
  ------------------
  |  |   78|  3.19k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 6, False: 3.18k]
  |  |  ------------------
  ------------------
  397|      6|                {
  398|      6|                    ec = bson_errc::invalid_utf8_text_string;
  399|      6|                    more_ = false;
  400|      6|                    return;
  401|      6|                }
  402|  3.18k|                visitor.string_value(sv, semantic_tag::none, *this, ec);
  403|  3.18k|                more_ = !cursor_mode_;
  404|  3.18k|                break;
  405|  3.19k|            }
  406|  1.06k|            case jsoncons::bson::bson_type::javascript_type:
  ------------------
  |  Branch (406:13): [True: 1.06k, False: 21.3M]
  ------------------
  407|  1.06k|            {
  408|  1.06k|                auto sv = read_string(ec);
  409|  1.06k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  1.06k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 40, False: 1.02k]
  |  |  ------------------
  ------------------
  410|     40|                {
  411|     40|                    return;
  412|     40|                }
  413|  1.02k|                auto result = unicode_traits::validate(sv.data(), sv.size());
  414|  1.02k|                if (JSONCONS_UNLIKELY(result.ec != unicode_traits::unicode_errc()))
  ------------------
  |  |   78|  1.02k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4, False: 1.02k]
  |  |  ------------------
  ------------------
  415|      4|                {
  416|      4|                    ec = bson_errc::invalid_utf8_text_string;
  417|      4|                    more_ = false;
  418|      4|                    return;
  419|      4|                }
  420|  1.02k|                visitor.string_value(sv, semantic_tag::code, *this, ec);
  421|  1.02k|                more_ = !cursor_mode_;
  422|  1.02k|                break;
  423|  1.02k|            }
  424|   104k|            case jsoncons::bson::bson_type::regex_type:
  ------------------
  |  Branch (424:13): [True: 104k, False: 21.2M]
  ------------------
  425|   104k|            {
  426|   104k|                text_buffer_.clear();
  427|   104k|                text_buffer_.push_back('/');
  428|   104k|                read_cstring(text_buffer_, ec);
  429|   104k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   104k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 32, False: 104k]
  |  |  ------------------
  ------------------
  430|     32|                {
  431|     32|                    return;
  432|     32|                }
  433|   104k|                text_buffer_.push_back('/');
  434|   104k|                read_cstring(text_buffer_, ec);
  435|   104k|                if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|   104k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 21, False: 104k]
  |  |  ------------------
  ------------------
  436|     21|                {
  437|     21|                    return;
  438|     21|                }
  439|   104k|                visitor.string_value(text_buffer_, semantic_tag::regex, *this, ec);
  440|   104k|                more_ = !cursor_mode_;
  441|   104k|                break;
  442|   104k|            }
  443|  36.6k|            case jsoncons::bson::bson_type::document_type: 
  ------------------
  |  Branch (443:13): [True: 36.6k, False: 21.3M]
  ------------------
  444|  36.6k|            {
  445|  36.6k|                begin_document(visitor,ec);
  446|  36.6k|                break;
  447|   104k|            }
  448|       |
  449|  44.4k|            case jsoncons::bson::bson_type::array_type: 
  ------------------
  |  Branch (449:13): [True: 44.4k, False: 21.3M]
  ------------------
  450|  44.4k|            {
  451|  44.4k|                begin_array(visitor,ec);
  452|  44.4k|                break;
  453|   104k|            }
  454|  5.63k|            case jsoncons::bson::bson_type::undefined_type: 
  ------------------
  |  Branch (454:13): [True: 5.63k, False: 21.3M]
  ------------------
  455|  5.63k|                {
  456|  5.63k|                    visitor.null_value(semantic_tag::undefined, *this, ec);
  457|  5.63k|                    more_ = !cursor_mode_;
  458|  5.63k|                    break;
  459|   104k|                }
  460|  20.8M|            case jsoncons::bson::bson_type::null_type: 
  ------------------
  |  Branch (460:13): [True: 20.8M, False: 592k]
  ------------------
  461|  20.8M|            {
  462|  20.8M|                visitor.null_value(semantic_tag::none, *this, ec);
  463|  20.8M|                more_ = !cursor_mode_;
  464|  20.8M|                break;
  465|   104k|            }
  466|  33.7k|            case jsoncons::bson::bson_type::bool_type:
  ------------------
  |  Branch (466:13): [True: 33.7k, False: 21.3M]
  ------------------
  467|  33.7k|            {
  468|  33.7k|                uint8_t c;
  469|  33.7k|                std::size_t n = source_.read(&c, 1);
  470|  33.7k|                state_stack_.back().pos += n;
  471|  33.7k|                if (JSONCONS_UNLIKELY(n != 1))
  ------------------
  |  |   78|  33.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 2, False: 33.7k]
  |  |  ------------------
  ------------------
  472|      2|                {
  473|      2|                    ec = bson_errc::unexpected_eof;
  474|      2|                    more_ = false;
  475|      2|                    return;
  476|      2|                }
  477|  33.7k|                visitor.bool_value(c != 0, semantic_tag::none, *this, ec);
  478|  33.7k|                more_ = !cursor_mode_;
  479|  33.7k|                break;
  480|  33.7k|            }
  481|   212k|            case jsoncons::bson::bson_type::int32_type: 
  ------------------
  |  Branch (481:13): [True: 212k, False: 21.1M]
  ------------------
  482|   212k|            {
  483|   212k|                uint8_t buf[sizeof(int32_t)]; 
  484|   212k|                std::size_t n = source_.read(buf, sizeof(int32_t));
  485|   212k|                state_stack_.back().pos += n;
  486|   212k|                if (JSONCONS_UNLIKELY(n != sizeof(int32_t)))
  ------------------
  |  |   78|   212k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 11, False: 212k]
  |  |  ------------------
  ------------------
  487|     11|                {
  488|     11|                    ec = bson_errc::unexpected_eof;
  489|     11|                    more_ = false;
  490|     11|                    return;
  491|     11|                }
  492|   212k|                auto val = binary::little_to_native<int32_t>(buf, sizeof(buf));
  493|   212k|                visitor.int64_value(val, semantic_tag::none, *this, ec);
  494|   212k|                more_ = !cursor_mode_;
  495|   212k|                break;
  496|   212k|            }
  497|       |
  498|  18.8k|            case jsoncons::bson::bson_type::timestamp_type: 
  ------------------
  |  Branch (498:13): [True: 18.8k, False: 21.3M]
  ------------------
  499|  18.8k|            {
  500|  18.8k|                uint8_t buf[sizeof(uint64_t)]; 
  501|  18.8k|                std::size_t n = source_.read(buf, sizeof(uint64_t));
  502|  18.8k|                state_stack_.back().pos += n;
  503|  18.8k|                if (JSONCONS_UNLIKELY(n != sizeof(uint64_t)))
  ------------------
  |  |   78|  18.8k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 18.7k]
  |  |  ------------------
  ------------------
  504|      7|                {
  505|      7|                    ec = bson_errc::unexpected_eof;
  506|      7|                    more_ = false;
  507|      7|                    return;
  508|      7|                }
  509|  18.7k|                auto val = binary::little_to_native<uint64_t>(buf, sizeof(buf));
  510|  18.7k|                visitor.uint64_value(val, semantic_tag::none, *this, ec);
  511|  18.7k|                more_ = !cursor_mode_;
  512|  18.7k|                break;
  513|  18.8k|            }
  514|       |
  515|  6.71k|            case jsoncons::bson::bson_type::int64_type: 
  ------------------
  |  Branch (515:13): [True: 6.71k, False: 21.3M]
  ------------------
  516|  6.71k|            {
  517|  6.71k|                uint8_t buf[sizeof(int64_t)]; 
  518|  6.71k|                std::size_t n = source_.read(buf, sizeof(int64_t));
  519|  6.71k|                state_stack_.back().pos += n;
  520|  6.71k|                if (JSONCONS_UNLIKELY(n != sizeof(int64_t)))
  ------------------
  |  |   78|  6.71k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 6.70k]
  |  |  ------------------
  ------------------
  521|      7|                {
  522|      7|                    ec = bson_errc::unexpected_eof;
  523|      7|                    more_ = false;
  524|      7|                    return;
  525|      7|                }
  526|  6.70k|                auto val = binary::little_to_native<int64_t>(buf, sizeof(buf));
  527|  6.70k|                visitor.int64_value(val, semantic_tag::none, *this, ec);
  528|  6.70k|                more_ = !cursor_mode_;
  529|  6.70k|                break;
  530|  6.71k|            }
  531|       |
  532|  12.7k|            case jsoncons::bson::bson_type::datetime_type: 
  ------------------
  |  Branch (532:13): [True: 12.7k, False: 21.3M]
  ------------------
  533|  12.7k|            {
  534|  12.7k|                uint8_t buf[sizeof(int64_t)]; 
  535|  12.7k|                std::size_t n = source_.read(buf, sizeof(int64_t));
  536|  12.7k|                state_stack_.back().pos += n;
  537|  12.7k|                if (JSONCONS_UNLIKELY(n != sizeof(int64_t)))
  ------------------
  |  |   78|  12.7k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 6, False: 12.7k]
  |  |  ------------------
  ------------------
  538|      6|                {
  539|      6|                    ec = bson_errc::unexpected_eof;
  540|      6|                    more_ = false;
  541|      6|                    return;
  542|      6|                }
  543|  12.7k|                auto val = binary::little_to_native<int64_t>(buf, sizeof(buf));
  544|  12.7k|                visitor.int64_value(val, semantic_tag::epoch_milli, *this, ec);
  545|  12.7k|                more_ = !cursor_mode_;
  546|  12.7k|                break;
  547|  12.7k|            }
  548|  72.5k|            case jsoncons::bson::bson_type::binary_type: 
  ------------------
  |  Branch (548:13): [True: 72.5k, False: 21.3M]
  ------------------
  549|  72.5k|            {
  550|  72.5k|                uint8_t buf[sizeof(int32_t)]; 
  551|  72.5k|                std::size_t n = source_.read(buf, sizeof(int32_t));
  552|  72.5k|                state_stack_.back().pos += n;
  553|  72.5k|                if (JSONCONS_UNLIKELY(n != sizeof(int32_t)))
  ------------------
  |  |   78|  72.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 7, False: 72.5k]
  |  |  ------------------
  ------------------
  554|      7|                {
  555|      7|                    ec = bson_errc::unexpected_eof;
  556|      7|                    more_ = false;
  557|      7|                    return;
  558|      7|                }
  559|  72.5k|                const auto len = binary::little_to_native<int32_t>(buf, sizeof(buf));
  560|  72.5k|                if (JSONCONS_UNLIKELY(len < 0))
  ------------------
  |  |   78|  72.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 36, False: 72.4k]
  |  |  ------------------
  ------------------
  561|     36|                {
  562|     36|                    ec = bson_errc::length_is_negative;
  563|     36|                    more_ = false;
  564|     36|                    return;
  565|     36|                }
  566|  72.4k|                uint8_t subtype;
  567|  72.4k|                n = source_.read(&subtype, 1);
  568|  72.4k|                state_stack_.back().pos += n;
  569|  72.4k|                if (JSONCONS_UNLIKELY(n != 1))
  ------------------
  |  |   78|  72.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 9, False: 72.4k]
  |  |  ------------------
  ------------------
  570|      9|                {
  571|      9|                    ec = bson_errc::unexpected_eof;
  572|      9|                    more_ = false;
  573|      9|                    return;
  574|      9|                }
  575|       |
  576|  72.4k|                auto data = source_.read_span(len, bytes_buffer_);
  577|  72.4k|                if (JSONCONS_UNLIKELY(data.size() != static_cast<std::size_t>(len)))
  ------------------
  |  |   78|  72.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 299, False: 72.1k]
  |  |  ------------------
  ------------------
  578|    299|                {
  579|    299|                    ec = bson_errc::unexpected_eof;
  580|    299|                    more_ = false;
  581|    299|                    return;
  582|    299|                }
  583|  72.1k|                state_stack_.back().pos += data.size();
  584|       |
  585|  72.1k|                visitor.byte_string_value(byte_string_view(data.data(), data.size()), subtype, *this, ec);
  586|  72.1k|                more_ = !cursor_mode_;
  587|  72.1k|                break;
  588|  72.4k|            }
  589|  13.5k|            case jsoncons::bson::bson_type::decimal128_type: 
  ------------------
  |  Branch (589:13): [True: 13.5k, False: 21.3M]
  ------------------
  590|  13.5k|            {
  591|  13.5k|                uint8_t buf[sizeof(uint64_t)*2]; 
  592|  13.5k|                std::size_t n = source_.read(buf, sizeof(buf));
  593|  13.5k|                state_stack_.back().pos += n;
  594|  13.5k|                if (JSONCONS_UNLIKELY(n != sizeof(buf)))
  ------------------
  |  |   78|  13.5k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 13, False: 13.5k]
  |  |  ------------------
  ------------------
  595|     13|                {
  596|     13|                    ec = bson_errc::unexpected_eof;
  597|     13|                    more_ = false;
  598|     13|                    return;
  599|     13|                }
  600|       |
  601|  13.5k|                decimal128_t dec;
  602|  13.5k|                dec.low = binary::little_to_native<uint64_t>(buf, sizeof(uint64_t));
  603|  13.5k|                dec.high = binary::little_to_native<uint64_t>(buf+sizeof(uint64_t), sizeof(uint64_t));
  604|       |
  605|  13.5k|                text_buffer_.clear();
  606|  13.5k|                text_buffer_.resize(bson::decimal128_limits::buf_size);
  607|  13.5k|                auto r = bson::decimal128_to_chars(&text_buffer_[0], &text_buffer_[0]+text_buffer_.size(), dec);
  608|  13.5k|                visitor.string_value(string_view(text_buffer_.data(),static_cast<std::size_t>(r.ptr-text_buffer_.data())), semantic_tag::float128, *this, ec);
  609|  13.5k|                more_ = !cursor_mode_;
  610|  13.5k|                break;
  611|  13.5k|            }
  612|  5.43k|            case jsoncons::bson::bson_type::object_id_type: 
  ------------------
  |  Branch (612:13): [True: 5.43k, False: 21.3M]
  ------------------
  613|  5.43k|            {
  614|  5.43k|                uint8_t buf[12]; 
  615|  5.43k|                std::size_t n = source_.read(buf, sizeof(buf));
  616|  5.43k|                state_stack_.back().pos += n;
  617|  5.43k|                if (JSONCONS_UNLIKELY(n != sizeof(buf)))
  ------------------
  |  |   78|  5.43k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 10, False: 5.42k]
  |  |  ------------------
  ------------------
  618|     10|                {
  619|     10|                    ec = bson_errc::unexpected_eof;
  620|     10|                    more_ = false;
  621|     10|                    return;
  622|     10|                }
  623|       |
  624|  5.42k|                oid_t oid(buf);
  625|  5.42k|                to_string(oid, text_buffer_);
  626|       |
  627|  5.42k|                visitor.string_value(text_buffer_, semantic_tag::id, *this, ec);
  628|  5.42k|                more_ = !cursor_mode_;
  629|  5.42k|                break;
  630|  5.43k|            }
  631|    137|            default:
  ------------------
  |  Branch (631:13): [True: 137, False: 21.3M]
  ------------------
  632|    137|            {
  633|    137|                ec = bson_errc::unknown_type;
  634|    137|                more_ = false;
  635|    137|                return;
  636|  5.43k|            }
  637|  21.3M|        }
  638|  21.3M|    }
_ZN8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11read_stringERNS3_10error_codeE:
  662|  4.54k|    {
  663|  4.54k|        std::size_t offset = 0;
  664|       |
  665|  4.54k|        uint8_t buf[sizeof(int32_t)]; 
  666|  4.54k|        std::size_t n = source_.read(buf, sizeof(int32_t));
  667|  4.54k|        if (JSONCONS_UNLIKELY(n != sizeof(int32_t)))
  ------------------
  |  |   78|  4.54k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 49, False: 4.49k]
  |  |  ------------------
  ------------------
  668|     49|        {
  669|     49|            ec = bson_errc::unexpected_eof;
  670|     49|            more_ = false;
  671|     49|            return string_view{};
  672|     49|        }
  673|  4.49k|        offset += n;
  674|       |
  675|  4.49k|        auto len = binary::little_to_native<int32_t>(buf, sizeof(buf));
  676|  4.49k|        if (JSONCONS_UNLIKELY(len < 1))
  ------------------
  |  |   78|  4.49k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 35, False: 4.45k]
  |  |  ------------------
  ------------------
  677|     35|        {
  678|     35|            ec = bson_errc::string_length_is_non_positive;
  679|     35|            more_ = false;
  680|     35|            return string_view{};
  681|     35|        }
  682|       |
  683|  4.45k|        std::size_t size = static_cast<std::size_t>(len) - static_cast<std::size_t>(1);
  684|  4.45k|        auto data = source_.read_span(size, text_buffer_);
  685|  4.45k|        if (JSONCONS_UNLIKELY(data.size() != size))
  ------------------
  |  |   78|  4.45k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 223, False: 4.23k]
  |  |  ------------------
  ------------------
  686|    223|        {
  687|    223|            ec = bson_errc::unexpected_eof;
  688|    223|            more_ = false;
  689|    223|            return string_view{};
  690|    223|        }
  691|  4.23k|        offset += data.size();
  692|       |
  693|  4.23k|        uint8_t c;
  694|  4.23k|        if (JSONCONS_UNLIKELY(source_.read(&c, 1) != 1))
  ------------------
  |  |   78|  4.23k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 16, False: 4.22k]
  |  |  ------------------
  ------------------
  695|     16|        {
  696|     16|            ec = bson_errc::unexpected_eof;
  697|     16|            more_ = false;
  698|     16|            return string_view{};
  699|     16|        }
  700|  4.22k|        ++offset;
  701|       |
  702|  4.22k|        state_stack_.back().pos += offset;
  703|  4.22k|        return string_view{reinterpret_cast<const char*>(data.data()), data.size()};
  704|  4.23k|    }
_ZN8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE11begin_arrayERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  296|  44.4k|    {
  297|  44.4k|        if (JSONCONS_UNLIKELY(static_cast<int>(state_stack_.size()) > max_nesting_depth_))
  ------------------
  |  |   78|  44.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 1, False: 44.4k]
  |  |  ------------------
  ------------------
  298|      1|        {
  299|      1|            ec = bson_errc::max_nesting_depth_exceeded;
  300|      1|            more_ = false;
  301|      1|            return;
  302|      1|        } 
  303|  44.4k|        uint8_t buf[sizeof(int32_t)]; 
  304|  44.4k|        std::size_t n = source_.read(buf, sizeof(int32_t));
  305|  44.4k|        if (JSONCONS_UNLIKELY(n != sizeof(int32_t)))
  ------------------
  |  |   78|  44.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 18, False: 44.4k]
  |  |  ------------------
  ------------------
  306|     18|        {
  307|     18|            ec = bson_errc::unexpected_eof;
  308|     18|            more_ = false;
  309|     18|            return;
  310|     18|        }
  311|  44.4k|        auto length = binary::little_to_native<int32_t>(buf, sizeof(buf));
  312|       |
  313|  44.4k|        visitor.begin_array(semantic_tag::none, *this, ec);
  314|  44.4k|        more_ = !cursor_mode_;
  315|  44.4k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  44.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 0, False: 44.4k]
  |  |  ------------------
  ------------------
  316|      0|        {
  317|      0|            return;
  318|      0|        }
  319|  44.4k|        state_stack_.emplace_back(parse_mode::array, length, n);
  320|  44.4k|    }
_ZN8jsoncons4bson17basic_bson_parserINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE9end_arrayERNS_18basic_json_visitorIcEERNS3_10error_codeE:
  323|  20.4k|    {
  324|  20.4k|        JSONCONS_ASSERT(state_stack_.size() >= 2);
  ------------------
  |  |   49|  20.4k|#define JSONCONS_ASSERT(x) if (!(x)) { \
  |  |  ------------------
  |  |  |  Branch (49:32): [True: 0, False: 20.4k]
  |  |  ------------------
  |  |   50|      0|    JSONCONS_THROW(jsoncons::assertion_error("assertion '" #x "' failed at  <> :" \
  |  |  ------------------
  |  |  |  |   35|      0|    #define JSONCONS_THROW(exception) throw exception
  |  |  ------------------
  |  |   51|      0|            JSONCONS_STR( 0 ))); }
  ------------------
  325|       |
  326|  20.4k|        visitor.end_array(*this, ec);
  327|  20.4k|        more_ = !cursor_mode_;
  328|  20.4k|        if (level() == mark_level_)
  ------------------
  |  Branch (328:13): [True: 0, False: 20.4k]
  ------------------
  329|      0|        {
  330|      0|            more_ = false;
  331|      0|        }
  332|  20.4k|        if (JSONCONS_UNLIKELY(state_stack_.back().pos != state_stack_.back().length))
  ------------------
  |  |   78|  20.4k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 395, False: 20.0k]
  |  |  ------------------
  ------------------
  333|    395|        {
  334|    395|            ec = bson_errc::size_mismatch;
  335|    395|            more_ = false;
  336|    395|            return;
  337|    395|        }
  338|  20.0k|        std::size_t pos = state_stack_.back().pos;
  339|  20.0k|        state_stack_.pop_back();
  340|  20.0k|        state_stack_.back().pos += pos;
  341|  20.0k|    }

_ZN8jsoncons4bson17basic_bson_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEEC2IRNS3_13basic_istreamIcNS3_11char_traitsIcEEEEEEOT_RNS_18basic_json_visitorIcEERKNS0_19bson_decode_optionsERKS7_:
   46|  4.92k|       : parser_(std::forward<Sourceable>(source), options, temp_alloc),
   47|  4.92k|         visitor_(visitor)
   48|  4.92k|    {
   49|  4.92k|    }
_ZN8jsoncons4bson17basic_bson_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4readERNS3_10error_codeE:
   62|  4.92k|    {
   63|  4.92k|        parser_.reset();
   64|  4.92k|        parser_.parse(visitor_, ec);
   65|  4.92k|        if (JSONCONS_UNLIKELY(ec))
  ------------------
  |  |   78|  4.92k|#define JSONCONS_UNLIKELY(x) __builtin_expect(!!(x), 0)
  |  |  ------------------
  |  |  |  Branch (78:30): [True: 4.91k, False: 15]
  |  |  ------------------
  ------------------
   66|  4.91k|        {
   67|  4.91k|            return;
   68|  4.91k|        }
   69|  4.92k|    }
_ZNK8jsoncons4bson17basic_bson_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE4lineEv:
   72|  4.91k|    {
   73|  4.91k|        return parser_.line();
   74|  4.91k|    }
_ZNK8jsoncons4bson17basic_bson_readerINS_13stream_sourceIhNSt3__19allocatorIhEEEENS4_IcEEE6columnEv:
   77|  4.91k|    {
   78|  4.91k|        return parser_.column();
   79|  4.91k|    }

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

