_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE12is_discardedEv:
43101|  5.04k|    {
43102|  5.04k|        return m_data.m_type == value_t::discarded;
43103|  5.04k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dumpEicbNS0_6detail15error_handler_tE:
42973|  19.7k|    {
42974|  19.7k|        string_t result;
42975|  19.7k|        detail::output_string_adapter<char, string_t> string_adapter(result);
42976|       |
42977|  19.7k|        if (indent >= 0)
  ------------------
  |  Branch (42977:13): [True: 0, False: 19.7k]
  ------------------
42978|      0|        {
42979|      0|            serializer s(string_adapter, indent_char,
42980|      0|                         true, ensure_ascii, static_cast<std::size_t>(indent), error_handler);
42981|      0|            s.dump(*this);
42982|      0|        }
42983|  19.7k|        else
42984|  19.7k|        {
42985|  19.7k|            serializer s(string_adapter, indent_char,
42986|  19.7k|                         false, ensure_ascii, 0, error_handler);
42987|  19.7k|            s.dump(*this);
42988|  19.7k|        }
42989|       |
42990|  19.7k|        return result;
42991|  19.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail21output_string_adapterIcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEC2ERS9_:
30100|  19.7k|        : str(s)
30101|  19.7k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail23output_adapter_protocolIcEC2Ev:
29758|  19.7k|    output_adapter_protocol() = default;
_ZN8nlohmann16json_abi_v3_12_06detail23output_adapter_protocolIcED2Ev:
29756|  19.7k|    virtual ~output_adapter_protocol() = default;
_ZN8nlohmann16json_abi_v3_12_06detail21output_string_adapterIcNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE16write_charactersEPKcm:
30109|  20.9k|    {
30110|  20.9k|        str.append(s, length);
30111|  20.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEC2ERNS1_23output_adapter_protocolIcEEcbbmNS1_15error_handler_tE:
37673|  19.7k|        : o(&s)
37674|  19.7k|        , number_buffer() // NOLINT(readability-redundant-member-init)
37675|  19.7k|        , string_buffer() // NOLINT(readability-redundant-member-init)
37676|  19.7k|        , indent_char(ichar)
37677|  19.7k|        , pretty_print(pretty_print_)
37678|  19.7k|        , ensure_ascii(ensure_ascii_)
37679|  19.7k|        , indent_step(indent_step_)
37680|  19.7k|        , error_handler(error_handler_)
37681|  19.7k|        , write_buffer() // NOLINT(readability-redundant-member-init)
37682|  19.7k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE20uninitialized_bufferILm64EEC2Ev:
39810|  19.7k|        uninitialized_buffer() noexcept {} // NOLINT(modernize-use-equals-default,hicpp-use-equals-default,cppcoreguidelines-pro-type-member-init,hicpp-member-init): see above
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE20uninitialized_bufferILm512EEC2Ev:
39810|  19.7k|        uninitialized_buffer() noexcept {} // NOLINT(modernize-use-equals-default,hicpp-use-equals-default,cppcoreguidelines-pro-type-member-init,hicpp-member-init): see above
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE20uninitialized_bufferILm1024EEC2Ev:
39810|  19.7k|        uninitialized_buffer() noexcept {} // NOLINT(modernize-use-equals-default,hicpp-use-equals-default,cppcoreguidelines-pro-type-member-init,hicpp-member-init): see above
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE4dumpERKSG_m:
37711|  19.7k|    {
37712|  19.7k|        dump_element(val, current_indent, 0);
37713|  19.7k|        flush();
37714|  19.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12dump_elementERKSG_mm:
37862|   138k|    {
37863|   138k|        if (val.m_data.m_type == value_t::object || val.m_data.m_type == value_t::array)
  ------------------
  |  Branch (37863:13): [True: 25.7k, False: 112k]
  |  Branch (37863:53): [True: 8.70k, False: 103k]
  ------------------
37864|  34.4k|        {
37865|  34.4k|            dump_container(val, current_indent, depth);
37866|  34.4k|        }
37867|   103k|        else
37868|   103k|        {
37869|   103k|            dump_scalar(val, current_indent);
37870|   103k|        }
37871|   138k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE14dump_containerERKSG_mm:
37737|  34.4k|    {
37738|  34.4k|        JSON_ASSERT(val.m_data.m_type == value_t::object || val.m_data.m_type == value_t::array);
  ------------------
  |  | 2653|  34.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37738:9): [True: 25.7k, False: 8.70k]
  |  Branch (37738:9): [True: 8.70k, False: 0]
  |  Branch (37738:9): [True: 34.4k, False: 0]
  ------------------
37739|       |
37740|  34.4k|        if (JSON_HEDLEY_UNLIKELY(depth >= recursion_depth_limit()))
  ------------------
  |  | 1697|  34.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 34.4k]
  |  |  ------------------
  ------------------
37741|      0|        {
37742|      0|            dump_iteratively(val, current_indent);
37743|      0|            return;
37744|      0|        }
37745|       |
37746|  34.4k|        if (val.m_data.m_type == value_t::object)
  ------------------
  |  Branch (37746:13): [True: 25.7k, False: 8.70k]
  ------------------
37747|  25.7k|        {
37748|  25.7k|            if (val.m_data.m_value.object->empty())
  ------------------
  |  Branch (37748:17): [True: 3.85k, False: 21.8k]
  ------------------
37749|  3.85k|            {
37750|  3.85k|                put_literal("{}");
37751|  3.85k|                return;
37752|  3.85k|            }
37753|       |
37754|  21.8k|            if (pretty_print)
  ------------------
  |  Branch (37754:17): [True: 0, False: 21.8k]
  ------------------
37755|      0|            {
37756|       |                // variable to hold indentation for recursive calls
37757|      0|                const auto new_indent = next_indent(current_indent, indent_step);
37758|       |
37759|      0|                put_literal_indent("{\n", new_indent);
37760|       |
37761|       |                // first n-1 elements
37762|      0|                auto i = val.m_data.m_value.object->cbegin();
37763|      0|                for (std::size_t cnt = 0; cnt < val.m_data.m_value.object->size() - 1; ++cnt, ++i)
  ------------------
  |  Branch (37763:43): [True: 0, False: 0]
  ------------------
37764|      0|                {
37765|      0|                    put_object_key(i->first, "\": ");
37766|      0|                    dump_element(i->second, new_indent, depth + 1);
37767|      0|                    put_literal_indent(",\n", new_indent);
37768|      0|                }
37769|       |
37770|       |                // last element
37771|      0|                JSON_ASSERT(i != val.m_data.m_value.object->cend());
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37771:17): [True: 0, False: 0]
  ------------------
37772|      0|                JSON_ASSERT(std::next(i) == val.m_data.m_value.object->cend());
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37772:17): [True: 0, False: 0]
  ------------------
37773|      0|                put_object_key(i->first, "\": ");
37774|      0|                dump_element(i->second, new_indent, depth + 1);
37775|       |
37776|      0|                put_literal_indent("\n", current_indent);
37777|      0|                put_char('}');
37778|      0|            }
37779|  21.8k|            else
37780|  21.8k|            {
37781|  21.8k|                put_char('{');
37782|       |
37783|       |                // first n-1 elements
37784|  21.8k|                auto i = val.m_data.m_value.object->cbegin();
37785|  69.4k|                for (std::size_t cnt = 0; cnt < val.m_data.m_value.object->size() - 1; ++cnt, ++i)
  ------------------
  |  Branch (37785:43): [True: 47.5k, False: 21.8k]
  ------------------
37786|  47.5k|                {
37787|  47.5k|                    put_object_key(i->first, "\":");
37788|  47.5k|                    dump_element(i->second, 0, depth + 1);
37789|  47.5k|                    put_char(',');
37790|  47.5k|                }
37791|       |
37792|       |                // last element
37793|  21.8k|                JSON_ASSERT(i != val.m_data.m_value.object->cend());
  ------------------
  |  | 2653|  21.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37793:17): [True: 21.8k, False: 0]
  ------------------
37794|  21.8k|                JSON_ASSERT(std::next(i) == val.m_data.m_value.object->cend());
  ------------------
  |  | 2653|  21.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37794:17): [True: 21.8k, False: 0]
  ------------------
37795|  21.8k|                put_object_key(i->first, "\":");
37796|  21.8k|                dump_element(i->second, 0, depth + 1);
37797|       |
37798|  21.8k|                put_char('}');
37799|  21.8k|            }
37800|  21.8k|            return;
37801|  21.8k|        }
37802|       |
37803|  8.70k|        if (val.m_data.m_value.array->empty())
  ------------------
  |  Branch (37803:13): [True: 4.50k, False: 4.20k]
  ------------------
37804|  4.50k|        {
37805|  4.50k|            put_literal("[]");
37806|  4.50k|            return;
37807|  4.50k|        }
37808|       |
37809|  4.20k|        if (pretty_print)
  ------------------
  |  Branch (37809:13): [True: 0, False: 4.20k]
  ------------------
37810|      0|        {
37811|       |            // variable to hold indentation for recursive calls
37812|      0|            const auto new_indent = next_indent(current_indent, indent_step);
37813|       |
37814|      0|            put_literal_indent("[\n", new_indent);
37815|       |
37816|       |            // first n-1 elements
37817|      0|            for (auto i = val.m_data.m_value.array->cbegin();
37818|      0|                    i != val.m_data.m_value.array->cend() - 1; ++i)
  ------------------
  |  Branch (37818:21): [True: 0, False: 0]
  ------------------
37819|      0|            {
37820|      0|                dump_element(*i, new_indent, depth + 1);
37821|      0|                put_literal_indent(",\n", new_indent);
37822|      0|            }
37823|       |
37824|       |            // last element
37825|      0|            JSON_ASSERT(!val.m_data.m_value.array->empty());
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37825:13): [True: 0, False: 0]
  ------------------
37826|      0|            dump_element(val.m_data.m_value.array->back(), new_indent, depth + 1);
37827|       |
37828|      0|            put_literal_indent("\n", current_indent);
37829|      0|            put_char(']');
37830|      0|        }
37831|  4.20k|        else
37832|  4.20k|        {
37833|  4.20k|            put_char('[');
37834|       |
37835|       |            // first n-1 elements
37836|  4.20k|            for (auto i = val.m_data.m_value.array->cbegin();
37837|  49.1k|                    i != val.m_data.m_value.array->cend() - 1; ++i)
  ------------------
  |  Branch (37837:21): [True: 44.9k, False: 4.20k]
  ------------------
37838|  44.9k|            {
37839|  44.9k|                dump_element(*i, 0, depth + 1);
37840|  44.9k|                put_char(',');
37841|  44.9k|            }
37842|       |
37843|       |            // last element
37844|  4.20k|            JSON_ASSERT(!val.m_data.m_value.array->empty());
  ------------------
  |  | 2653|  4.20k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37844:13): [True: 4.20k, False: 0]
  ------------------
37845|  4.20k|            dump_element(val.m_data.m_value.array->back(), 0, depth + 1);
37846|       |
37847|  4.20k|            put_char(']');
37848|  4.20k|        }
37849|  4.20k|    }
_ZN8nlohmann16json_abi_v3_12_06detail21recursion_depth_limitEv:
 8762|   104k|{
 8763|       |    // an integer: not a floating-point number, whose range check would pass for 1.5 or 254.0
 8764|       |    // (bool and the character types are integer types, too, but true, false or 'a' are
 8765|       |    // no way to say a limit; JSON_UBJSON_VALUELESS_ELEMENTS_PER_BYTE refuses them as well)
 8766|   104k|    static_assert(std::is_integral<decltype(JSON_RECURSION_DEPTH_LIMIT)>::value
 8767|   104k|                  && !recursion_depth_limit_is_char_or_bool<typename std::remove_cv<decltype(JSON_RECURSION_DEPTH_LIMIT)>::type>::value,
 8768|   104k|                  "JSON_RECURSION_DEPTH_LIMIT must be an integer constant (not bool or a character type)");
 8769|   104k|    static_assert(JSON_RECURSION_DEPTH_LIMIT >= 0 && JSON_RECURSION_DEPTH_LIMIT <= 254,
 8770|   104k|                  "JSON_RECURSION_DEPTH_LIMIT must be between 0 and 254: the nesting depth is counted in a byte per thread "
 8771|   104k|                  "and may exceed the limit by one (see https://json.nlohmann.me/api/macros/json_recursion_depth_limit/)");
 8772|   104k|    return static_cast<std::size_t>(JSON_RECURSION_DEPTH_LIMIT);
  ------------------
  |  | 8697|   104k|    #define JSON_RECURSION_DEPTH_LIMIT 128
  ------------------
 8773|   104k|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm3EEEvRAT__Kc:
39040|  54.6k|    {
39041|  54.6k|        static_assert(N >= 2, "put_literal expects a non-empty string literal");
39042|       |        // the array bound counts the terminating NUL, which is not written
39043|  54.6k|        constexpr std::size_t length = N - 1;
39044|  54.6k|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|  54.6k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  54.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 96, False: 54.5k]
  |  |  ------------------
  ------------------
39047|     96|        {
39048|     96|            flush();
39049|     96|        }
39050|  54.6k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|  54.6k|        write_buffer_pos += length;
39052|  54.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE18copy_plain_vectorsEPcPKcm:
38458|  4.90k|    {
38459|       |#if JSON_SCAN_NEON
38460|       |        const uint8x16_t a = vld1q_u8(reinterpret_cast<const std::uint8_t*>(p));
38461|       |        const uint8x16_t b = vld1q_u8(reinterpret_cast<const std::uint8_t*>(p + n - 16));
38462|       |        // (int8_t)(c ^ 2) < 33: the quote, the control characters and the
38463|       |        // non-ASCII bytes (see vector_plain_run())
38464|       |        const uint8x16_t flip = vdupq_n_u8(2);
38465|       |        const int8x16_t limit = vdupq_n_s8(33);
38466|       |        const uint8x16_t special = vorrq_u8(vorrq_u8(vorrq_u8(vceqq_u8(a, vdupq_n_u8('\\')), vceqq_u8(b, vdupq_n_u8('\\'))),
38467|       |                                            vorrq_u8(vceqq_u8(a, vdupq_n_u8(0x7F)), vceqq_u8(b, vdupq_n_u8(0x7F)))),
38468|       |                                            vorrq_u8(vcltq_s8(vreinterpretq_s8_u8(veorq_u8(a, flip)), limit), vcltq_s8(vreinterpretq_s8_u8(veorq_u8(b, flip)), limit)));
38469|       |        if (vmaxvq_u8(special) != 0)
38470|       |        {
38471|       |            return false;
38472|       |        }
38473|       |        vst1q_u8(reinterpret_cast<std::uint8_t*>(d), a);
38474|       |        vst1q_u8(reinterpret_cast<std::uint8_t*>(d + n - 16), b);
38475|       |#else
38476|  4.90k|        const __m128i a = _mm_loadu_si128(static_cast<const __m128i*>(static_cast<const void*>(p))); // NOLINT(bugprone-casting-through-void)
38477|  4.90k|        const __m128i b = _mm_loadu_si128(static_cast<const __m128i*>(static_cast<const void*>(p + n - 16))); // NOLINT(bugprone-casting-through-void)
38478|       |        // (int8_t)(c ^ 2) < 33: the quote, the control characters and the
38479|       |        // non-ASCII bytes (see vector_plain_run())
38480|  4.90k|        const __m128i backslash = _mm_set1_epi8('\\');
38481|  4.90k|        const __m128i del = _mm_set1_epi8(0x7F);
38482|  4.90k|        const __m128i flip = _mm_set1_epi8(2);
38483|  4.90k|        const __m128i limit = _mm_set1_epi8(33);
38484|  4.90k|        const __m128i special = _mm_or_si128(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(a, backslash), _mm_cmpeq_epi8(b, backslash)),
38485|  4.90k|                                             _mm_or_si128(_mm_cmpeq_epi8(a, del), _mm_cmpeq_epi8(b, del))),
38486|  4.90k|                                             _mm_or_si128(_mm_cmplt_epi8(_mm_xor_si128(a, flip), limit), _mm_cmplt_epi8(_mm_xor_si128(b, flip), limit)));
38487|  4.90k|        if (_mm_movemask_epi8(special) != 0)
  ------------------
  |  Branch (38487:13): [True: 4.81k, False: 96]
  ------------------
38488|  4.81k|        {
38489|  4.81k|            return false;
38490|  4.81k|        }
38491|     96|        _mm_storeu_si128(static_cast<__m128i*>(static_cast<void*>(d)), a); // NOLINT(bugprone-casting-through-void)
38492|     96|        _mm_storeu_si128(static_cast<__m128i*>(static_cast<void*>(d + n - 16)), b); // NOLINT(bugprone-casting-through-void)
38493|     96|#endif
38494|     96|        return true;
38495|  4.90k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17copy_plain_halvesEPcPKcm:
38423|  4.97k|    {
38424|       |#if JSON_SCAN_NEON
38425|       |        const uint8x8_t lo = vld1_u8(reinterpret_cast<const std::uint8_t*>(p));
38426|       |        const uint8x8_t hi = vld1_u8(reinterpret_cast<const std::uint8_t*>(p + n - 8));
38427|       |        const uint8x16_t in = vcombine_u8(lo, hi);
38428|       |        // (int8_t)(c ^ 2) < 33: the quote, the control characters and the
38429|       |        // non-ASCII bytes (see vector_plain_run())
38430|       |        const uint8x16_t special = vorrq_u8(vorrq_u8(vceqq_u8(in, vdupq_n_u8('\\')), vceqq_u8(in, vdupq_n_u8(0x7F))),
38431|       |                                            vcltq_s8(vreinterpretq_s8_u8(veorq_u8(in, vdupq_n_u8(2))), vdupq_n_s8(33)));
38432|       |        if (vmaxvq_u8(special) != 0)
38433|       |        {
38434|       |            return false;
38435|       |        }
38436|       |        vst1_u8(reinterpret_cast<std::uint8_t*>(d), lo);
38437|       |        vst1_u8(reinterpret_cast<std::uint8_t*>(d + n - 8), hi);
38438|       |#else
38439|  4.97k|        const __m128i lo = _mm_loadl_epi64(static_cast<const __m128i*>(static_cast<const void*>(p))); // NOLINT(bugprone-casting-through-void)
38440|  4.97k|        const __m128i hi = _mm_loadl_epi64(static_cast<const __m128i*>(static_cast<const void*>(p + n - 8))); // NOLINT(bugprone-casting-through-void)
38441|  4.97k|        const __m128i in = _mm_unpacklo_epi64(lo, hi);
38442|  4.97k|        const __m128i special = _mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(in, _mm_set1_epi8('\\')), _mm_cmpeq_epi8(in, _mm_set1_epi8(0x7F))),
38443|  4.97k|                                             _mm_cmplt_epi8(_mm_xor_si128(in, _mm_set1_epi8(2)), _mm_set1_epi8(33)));
38444|  4.97k|        if (_mm_movemask_epi8(special) != 0)
  ------------------
  |  Branch (38444:13): [True: 4.81k, False: 156]
  ------------------
38445|  4.81k|        {
38446|  4.81k|            return false;
38447|  4.81k|        }
38448|    156|        _mm_storel_epi64(static_cast<__m128i*>(static_cast<void*>(d)), lo); // NOLINT(bugprone-casting-through-void)
38449|    156|        _mm_storel_epi64(static_cast<__m128i*>(static_cast<void*>(d + n - 8)), hi); // NOLINT(bugprone-casting-through-void)
38450|    156|#endif
38451|    156|        return true;
38452|  4.97k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9load_wordIjEET_PKc:
38324|  15.4k|    {
38325|  15.4k|        WordType w;
38326|  15.4k|        std::memcpy(&w, p, sizeof(w));
38327|  15.4k|        return w;
38328|  15.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE14swar_not_plainEm:
38314|  43.9k|    {
38315|  43.9k|        constexpr std::uint64_t ones = 0x0101010101010101ull;
38316|  43.9k|        const std::uint64_t q = v ^ 0x2222222222222222ull; // '"'
38317|  43.9k|        const std::uint64_t b = v ^ 0x5C5C5C5C5C5C5C5Cull; // '\\'
38318|       |        // (see swar_string_special(): the bytes from 0x80 are flagged anyway)
38319|  43.9k|        return ((q - ones) | (b - ones) | (v - 0x2020202020202020ull) | v | (v + ones)) & 0x8080808080808080ull;
38320|  43.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10store_wordIjEEvPcT_:
38332|    504|    {
38333|    504|        std::memcpy(p, &w, sizeof(w));
38334|    504|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9load_wordItEET_PKc:
38324|  16.8k|    {
38325|  16.8k|        WordType w;
38326|  16.8k|        std::memcpy(&w, p, sizeof(w));
38327|  16.8k|        return w;
38328|  16.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10store_wordItEEvPcT_:
38332|  1.30k|    {
38333|  1.30k|        std::memcpy(p, &w, sizeof(w));
38334|  1.30k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12dump_escapedERKSC_:
38517|  48.9k|    {
38518|       |        // Short strings of printable ASCII - most object keys and many values -
38519|       |        // are checked byte by byte against a table and then copied in one go.
38520|       |        // For them, this is cheaper than starting the vector scanner below,
38521|       |        // whose setup costs more than such a string takes to scan. The same
38522|       |        // check serves both values of ensure_ascii.
38523|       |        //
38524|       |        // Where put_short_quoted() exists and takes strings of up to 32 bytes,
38525|       |        // the callers have tried it already, and repeating the attempt only
38526|       |        // costs time for strings that need escaping or are not ASCII.
38527|       |#if !JSON_LITTLE_ENDIAN_TARGET || !JSON_SCAN_VECTOR
38528|       |        if (s.size() <= 32)
38529|       |        {
38530|       |            const auto& copyable = ascii_copyable();
38531|       |            const auto* const data = reinterpret_cast<const unsigned char*>(s.data());
38532|       |            const std::size_t n = s.size();
38533|       |            std::size_t k = 0;
38534|       |            while (k + 4 <= n && copyable[data[k]] != 0 && copyable[data[k + 1]] != 0
38535|       |                    && copyable[data[k + 2]] != 0 && copyable[data[k + 3]] != 0)
38536|       |            {
38537|       |                k += 4;
38538|       |            }
38539|       |            while (k < n && copyable[data[k]] != 0)
38540|       |            {
38541|       |                ++k;
38542|       |            }
38543|       |            if (k == n)
38544|       |            {
38545|       |                put_string(s, 0, n);
38546|       |                return;
38547|       |            }
38548|       |        }
38549|       |#endif
38550|       |
38551|       |        // dispatch once here rather than test the flag inside the loop: it does
38552|       |        // not change while a string is written, and folding it lets each of the
38553|       |        // two scanners be inlined into a loop of its own
38554|  48.9k|        if (ensure_ascii)
  ------------------
  |  Branch (38554:13): [True: 0, False: 48.9k]
  ------------------
38555|      0|        {
38556|      0|            dump_escaped_impl<true>(s);
38557|      0|        }
38558|  48.9k|        else
38559|  48.9k|        {
38560|  48.9k|            dump_escaped_impl<false>(s);
38561|  48.9k|        }
38562|  48.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail16read_eight_bytesEPKh:
 9223|   981k|{
 9224|   981k|#if JSON_LITTLE_ENDIAN_TARGET
 9225|       |    // the byte order already matches
 9226|   981k|    std::uint64_t result = 0;
 9227|   981k|    std::memcpy(&result, b, sizeof(result));
 9228|   981k|    return result;
 9229|       |#else
 9230|       |    return static_cast<std::uint64_t>(b[0]) | (static_cast<std::uint64_t>(b[1]) << 8u)
 9231|       |           | (static_cast<std::uint64_t>(b[2]) << 16u) | (static_cast<std::uint64_t>(b[3]) << 24u)
 9232|       |           | (static_cast<std::uint64_t>(b[4]) << 32u) | (static_cast<std::uint64_t>(b[5]) << 40u)
 9233|       |           | (static_cast<std::uint64_t>(b[6]) << 48u) | (static_cast<std::uint64_t>(b[7]) << 56u);
 9234|       |#endif
 9235|   981k|}
_ZN8nlohmann16json_abi_v3_12_06detail20count_trailing_zerosEm:
 9095|  1.02M|{
 9096|  1.02M|#if defined(__GNUC__) || defined(__clang__)
 9097|  1.02M|    return __builtin_ctzll(x);
 9098|       |#elif defined(_MSC_VER) && (defined(_M_X64) || defined(_M_ARM64))
 9099|       |    unsigned long index = 0; // NOLINT(runtime/int): the type _BitScan*64 takes
 9100|       |    _BitScanForward64(&index, x);
 9101|       |    return static_cast<int>(index);
 9102|       |#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_ARM))
 9103|       |    unsigned long index = 0; // NOLINT(runtime/int): the type _BitScan* takes
 9104|       |    if (_BitScanForward(&index, static_cast<unsigned long>(x))) // NOLINT(runtime/int)
 9105|       |    {
 9106|       |        return static_cast<int>(index);
 9107|       |    }
 9108|       |    _BitScanForward(&index, static_cast<unsigned long>(x >> 32u)); // NOLINT(runtime/int)
 9109|       |    return 32 + static_cast<int>(index);
 9110|       |#elif defined(__cpp_lib_bitops)
 9111|       |    return std::countr_zero(x);
 9112|       |#else
 9113|       |    int n = 0;
 9114|       |    for (int shift = 32; shift != 0; shift >>= 1)
 9115|       |    {
 9116|       |        if ((x << (64 - shift)) == 0)
 9117|       |        {
 9118|       |            n += shift;
 9119|       |            x >>= shift;
 9120|       |        }
 9121|       |    }
 9122|       |    return n;
 9123|       |#endif
 9124|  1.02M|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12emit_pendingERm:
38566|   542k|    {
38567|   542k|        if (bytes != 0)
  ------------------
  |  Branch (38567:13): [True: 124k, False: 418k]
  ------------------
38568|   124k|        {
38569|   124k|            put_buffer(string_buffer, bytes);
38570|   124k|            bytes = 0;
38571|   124k|        }
38572|   542k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE7put_runISC_EEvRKT_mm:
39064|   118k|    {
39065|       |        // a short run is the exception in text without escapes (CJK, accented
39066|       |        // Latin), for which this keeps the long path the fast one
39067|   118k|        if (JSON_HEDLEY_UNLIKELY(length <= 16 && start + 16 <= str.size() && write_buffer_pos + 16 <= write_buffer.size()))
  ------------------
  |  | 1697|   433k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 81.6k, False: 36.5k]
  |  |  |  Branch (1697:94): [True: 115k, False: 2.55k]
  |  |  |  Branch (1697:94): [True: 81.7k, False: 33.9k]
  |  |  |  Branch (1697:94): [True: 81.6k, False: 48]
  |  |  ------------------
  ------------------
39068|  81.6k|        {
39069|  81.6k|            std::memcpy(write_buffer.data() + write_buffer_pos, str.data() + start, 16);
39070|  81.6k|            write_buffer_pos += length;
39071|  81.6k|            return;
39072|  81.6k|        }
39073|  36.5k|        put_string(str, start, start + length);
39074|  36.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10put_stringISC_EEvRKT_mm:
39087|  36.5k|    {
39088|  36.5k|        JSON_ASSERT(start <= end);
  ------------------
  |  | 2653|  36.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39088:9): [True: 36.5k, False: 0]
  ------------------
39089|  36.5k|        JSON_ASSERT(end <= str.size());
  ------------------
  |  | 2653|  36.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39089:9): [True: 36.5k, False: 0]
  ------------------
39090|       |
39091|  36.5k|        const char* const s = str.data() + start;
39092|  36.5k|        const std::size_t length = end - start;
39093|       |
39094|  36.5k|        if (JSON_HEDLEY_UNLIKELY(length >= write_buffer.size()))
  ------------------
  |  | 1697|  36.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 36.5k]
  |  |  ------------------
  ------------------
39095|      0|        {
39096|      0|            flush();
39097|      0|            o->write_characters(s, length);
39098|      0|            return;
39099|      0|        }
39100|  36.5k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  36.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 36, False: 36.4k]
  |  |  ------------------
  ------------------
39101|     36|        {
39102|     36|            flush();
39103|     36|        }
39104|  36.5k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39105|  36.5k|        write_buffer_pos += length;
39106|  36.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE13ascii_escapesEv:
39200|   424k|    {
39201|   424k|        static const std::array<std::array<char, 8>, 0x60> escapes =
39202|   424k|        {
39203|   424k|            {
39204|   424k|                {{'\\', 'u', '0', '0', '0', '0', 0, 6}}, // 0x00
39205|   424k|                {{'\\', 'u', '0', '0', '0', '1', 0, 6}}, // 0x01
39206|   424k|                {{'\\', 'u', '0', '0', '0', '2', 0, 6}}, // 0x02
39207|   424k|                {{'\\', 'u', '0', '0', '0', '3', 0, 6}}, // 0x03
39208|   424k|                {{'\\', 'u', '0', '0', '0', '4', 0, 6}}, // 0x04
39209|   424k|                {{'\\', 'u', '0', '0', '0', '5', 0, 6}}, // 0x05
39210|   424k|                {{'\\', 'u', '0', '0', '0', '6', 0, 6}}, // 0x06
39211|   424k|                {{'\\', 'u', '0', '0', '0', '7', 0, 6}}, // 0x07
39212|   424k|                {{'\\', 'b', 0, 0, 0, 0, 0, 2}}, // 0x08
39213|   424k|                {{'\\', 't', 0, 0, 0, 0, 0, 2}}, // 0x09
39214|   424k|                {{'\\', 'n', 0, 0, 0, 0, 0, 2}}, // 0x0A
39215|   424k|                {{'\\', 'u', '0', '0', '0', 'b', 0, 6}}, // 0x0B
39216|   424k|                {{'\\', 'f', 0, 0, 0, 0, 0, 2}}, // 0x0C
39217|   424k|                {{'\\', 'r', 0, 0, 0, 0, 0, 2}}, // 0x0D
39218|   424k|                {{'\\', 'u', '0', '0', '0', 'e', 0, 6}}, // 0x0E
39219|   424k|                {{'\\', 'u', '0', '0', '0', 'f', 0, 6}}, // 0x0F
39220|   424k|                {{'\\', 'u', '0', '0', '1', '0', 0, 6}}, // 0x10
39221|   424k|                {{'\\', 'u', '0', '0', '1', '1', 0, 6}}, // 0x11
39222|   424k|                {{'\\', 'u', '0', '0', '1', '2', 0, 6}}, // 0x12
39223|   424k|                {{'\\', 'u', '0', '0', '1', '3', 0, 6}}, // 0x13
39224|   424k|                {{'\\', 'u', '0', '0', '1', '4', 0, 6}}, // 0x14
39225|   424k|                {{'\\', 'u', '0', '0', '1', '5', 0, 6}}, // 0x15
39226|   424k|                {{'\\', 'u', '0', '0', '1', '6', 0, 6}}, // 0x16
39227|   424k|                {{'\\', 'u', '0', '0', '1', '7', 0, 6}}, // 0x17
39228|   424k|                {{'\\', 'u', '0', '0', '1', '8', 0, 6}}, // 0x18
39229|   424k|                {{'\\', 'u', '0', '0', '1', '9', 0, 6}}, // 0x19
39230|   424k|                {{'\\', 'u', '0', '0', '1', 'a', 0, 6}}, // 0x1A
39231|   424k|                {{'\\', 'u', '0', '0', '1', 'b', 0, 6}}, // 0x1B
39232|   424k|                {{'\\', 'u', '0', '0', '1', 'c', 0, 6}}, // 0x1C
39233|   424k|                {{'\\', 'u', '0', '0', '1', 'd', 0, 6}}, // 0x1D
39234|   424k|                {{'\\', 'u', '0', '0', '1', 'e', 0, 6}}, // 0x1E
39235|   424k|                {{'\\', 'u', '0', '0', '1', 'f', 0, 6}}, // 0x1F
39236|   424k|                {{' ', 0, 0, 0, 0, 0, 0, 1}}, // 0x20
39237|   424k|                {{'!', 0, 0, 0, 0, 0, 0, 1}}, // 0x21
39238|   424k|                {{'\\', '"', 0, 0, 0, 0, 0, 2}}, // 0x22
39239|   424k|                {{'#', 0, 0, 0, 0, 0, 0, 1}}, // 0x23
39240|   424k|                {{'$', 0, 0, 0, 0, 0, 0, 1}}, // 0x24
39241|   424k|                {{'%', 0, 0, 0, 0, 0, 0, 1}}, // 0x25
39242|   424k|                {{'&', 0, 0, 0, 0, 0, 0, 1}}, // 0x26
39243|   424k|                {{'\'', 0, 0, 0, 0, 0, 0, 1}}, // 0x27
39244|   424k|                {{'(', 0, 0, 0, 0, 0, 0, 1}}, // 0x28
39245|   424k|                {{')', 0, 0, 0, 0, 0, 0, 1}}, // 0x29
39246|   424k|                {{'*', 0, 0, 0, 0, 0, 0, 1}}, // 0x2A
39247|   424k|                {{'+', 0, 0, 0, 0, 0, 0, 1}}, // 0x2B
39248|   424k|                {{',', 0, 0, 0, 0, 0, 0, 1}}, // 0x2C
39249|   424k|                {{'-', 0, 0, 0, 0, 0, 0, 1}}, // 0x2D
39250|   424k|                {{'.', 0, 0, 0, 0, 0, 0, 1}}, // 0x2E
39251|   424k|                {{'/', 0, 0, 0, 0, 0, 0, 1}}, // 0x2F
39252|   424k|                {{'0', 0, 0, 0, 0, 0, 0, 1}}, // 0x30
39253|   424k|                {{'1', 0, 0, 0, 0, 0, 0, 1}}, // 0x31
39254|   424k|                {{'2', 0, 0, 0, 0, 0, 0, 1}}, // 0x32
39255|   424k|                {{'3', 0, 0, 0, 0, 0, 0, 1}}, // 0x33
39256|   424k|                {{'4', 0, 0, 0, 0, 0, 0, 1}}, // 0x34
39257|   424k|                {{'5', 0, 0, 0, 0, 0, 0, 1}}, // 0x35
39258|   424k|                {{'6', 0, 0, 0, 0, 0, 0, 1}}, // 0x36
39259|   424k|                {{'7', 0, 0, 0, 0, 0, 0, 1}}, // 0x37
39260|   424k|                {{'8', 0, 0, 0, 0, 0, 0, 1}}, // 0x38
39261|   424k|                {{'9', 0, 0, 0, 0, 0, 0, 1}}, // 0x39
39262|   424k|                {{':', 0, 0, 0, 0, 0, 0, 1}}, // 0x3A
39263|   424k|                {{';', 0, 0, 0, 0, 0, 0, 1}}, // 0x3B
39264|   424k|                {{'<', 0, 0, 0, 0, 0, 0, 1}}, // 0x3C
39265|   424k|                {{'=', 0, 0, 0, 0, 0, 0, 1}}, // 0x3D
39266|   424k|                {{'>', 0, 0, 0, 0, 0, 0, 1}}, // 0x3E
39267|   424k|                {{'?', 0, 0, 0, 0, 0, 0, 1}}, // 0x3F
39268|   424k|                {{'@', 0, 0, 0, 0, 0, 0, 1}}, // 0x40
39269|   424k|                {{'A', 0, 0, 0, 0, 0, 0, 1}}, // 0x41
39270|   424k|                {{'B', 0, 0, 0, 0, 0, 0, 1}}, // 0x42
39271|   424k|                {{'C', 0, 0, 0, 0, 0, 0, 1}}, // 0x43
39272|   424k|                {{'D', 0, 0, 0, 0, 0, 0, 1}}, // 0x44
39273|   424k|                {{'E', 0, 0, 0, 0, 0, 0, 1}}, // 0x45
39274|   424k|                {{'F', 0, 0, 0, 0, 0, 0, 1}}, // 0x46
39275|   424k|                {{'G', 0, 0, 0, 0, 0, 0, 1}}, // 0x47
39276|   424k|                {{'H', 0, 0, 0, 0, 0, 0, 1}}, // 0x48
39277|   424k|                {{'I', 0, 0, 0, 0, 0, 0, 1}}, // 0x49
39278|   424k|                {{'J', 0, 0, 0, 0, 0, 0, 1}}, // 0x4A
39279|   424k|                {{'K', 0, 0, 0, 0, 0, 0, 1}}, // 0x4B
39280|   424k|                {{'L', 0, 0, 0, 0, 0, 0, 1}}, // 0x4C
39281|   424k|                {{'M', 0, 0, 0, 0, 0, 0, 1}}, // 0x4D
39282|   424k|                {{'N', 0, 0, 0, 0, 0, 0, 1}}, // 0x4E
39283|   424k|                {{'O', 0, 0, 0, 0, 0, 0, 1}}, // 0x4F
39284|   424k|                {{'P', 0, 0, 0, 0, 0, 0, 1}}, // 0x50
39285|   424k|                {{'Q', 0, 0, 0, 0, 0, 0, 1}}, // 0x51
39286|   424k|                {{'R', 0, 0, 0, 0, 0, 0, 1}}, // 0x52
39287|   424k|                {{'S', 0, 0, 0, 0, 0, 0, 1}}, // 0x53
39288|   424k|                {{'T', 0, 0, 0, 0, 0, 0, 1}}, // 0x54
39289|   424k|                {{'U', 0, 0, 0, 0, 0, 0, 1}}, // 0x55
39290|   424k|                {{'V', 0, 0, 0, 0, 0, 0, 1}}, // 0x56
39291|   424k|                {{'W', 0, 0, 0, 0, 0, 0, 1}}, // 0x57
39292|   424k|                {{'X', 0, 0, 0, 0, 0, 0, 1}}, // 0x58
39293|   424k|                {{'Y', 0, 0, 0, 0, 0, 0, 1}}, // 0x59
39294|   424k|                {{'Z', 0, 0, 0, 0, 0, 0, 1}}, // 0x5A
39295|   424k|                {{'[', 0, 0, 0, 0, 0, 0, 1}}, // 0x5B
39296|   424k|                {{'\\', '\\', 0, 0, 0, 0, 0, 2}}, // 0x5C
39297|   424k|                {{']', 0, 0, 0, 0, 0, 0, 1}}, // 0x5D
39298|   424k|                {{'^', 0, 0, 0, 0, 0, 0, 1}}, // 0x5E
39299|   424k|                {{'_', 0, 0, 0, 0, 0, 0, 1}}, // 0x5F
39300|   424k|            }
39301|   424k|        };
39302|   424k|        return escapes;
39303|   424k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10put_bufferILm512EEEvRKNS4_5arrayIcXT_EEEm:
39113|   146k|    {
39114|   146k|        put_string(buffer, 0, length);
39115|   146k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10put_stringINS4_5arrayIcLm512EEEEEvRKT_mm:
39087|   146k|    {
39088|   146k|        JSON_ASSERT(start <= end);
  ------------------
  |  | 2653|   146k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39088:9): [True: 146k, False: 0]
  ------------------
39089|   146k|        JSON_ASSERT(end <= str.size());
  ------------------
  |  | 2653|   146k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39089:9): [True: 146k, False: 0]
  ------------------
39090|       |
39091|   146k|        const char* const s = str.data() + start;
39092|   146k|        const std::size_t length = end - start;
39093|       |
39094|   146k|        if (JSON_HEDLEY_UNLIKELY(length >= write_buffer.size()))
  ------------------
  |  | 1697|   146k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 146k]
  |  |  ------------------
  ------------------
39095|      0|        {
39096|      0|            flush();
39097|      0|            o->write_characters(s, length);
39098|      0|            return;
39099|      0|        }
39100|   146k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|   146k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 66, False: 146k]
  |  |  ------------------
  ------------------
39101|     66|        {
39102|     66|            flush();
39103|     66|        }
39104|   146k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39105|   146k|        write_buffer_pos += length;
39106|   146k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17validate_one_utf8EPKhm:
13120|   386k|{
13121|   386k|    const unsigned char c0 = data[0];
13122|   386k|    if (c0 >= 0xC2 && c0 <= 0xDF)  // U+0080..U+07FF
  ------------------
  |  Branch (13122:9): [True: 290k, False: 95.7k]
  |  Branch (13122:23): [True: 53.3k, False: 237k]
  ------------------
13123|  53.3k|    {
13124|  53.3k|        if (avail >= 2 && data[1] >= 0x80 && data[1] <= 0xBF)
  ------------------
  |  Branch (13124:13): [True: 50.3k, False: 2.98k]
  |  Branch (13124:27): [True: 34.0k, False: 16.2k]
  |  Branch (13124:46): [True: 7.55k, False: 26.5k]
  ------------------
13125|  7.55k|        {
13126|  7.55k|            return 2;
13127|  7.55k|        }
13128|  53.3k|    }
13129|   332k|    else if (c0 == 0xE0)  // U+0800..U+0FFF
  ------------------
  |  Branch (13129:14): [True: 17.8k, False: 315k]
  ------------------
13130|  17.8k|    {
13131|  17.8k|        if (avail >= 3 && data[1] >= 0xA0 && data[1] <= 0xBF && data[2] >= 0x80 && data[2] <= 0xBF)
  ------------------
  |  Branch (13131:13): [True: 16.9k, False: 870]
  |  Branch (13131:27): [True: 12.4k, False: 4.54k]
  |  Branch (13131:46): [True: 5.91k, False: 6.50k]
  |  Branch (13131:65): [True: 4.49k, False: 1.41k]
  |  Branch (13131:84): [True: 3.40k, False: 1.08k]
  ------------------
13132|  3.40k|        {
13133|  3.40k|            return 3;
13134|  3.40k|        }
13135|  17.8k|    }
13136|   315k|    else if ((c0 >= 0xE1 && c0 <= 0xEC) || c0 == 0xEE || c0 == 0xEF)  // U+1000..U+CFFF, U+E000..U+FFFF
  ------------------
  |  Branch (13136:15): [True: 219k, False: 95.7k]
  |  Branch (13136:29): [True: 23.1k, False: 196k]
  |  Branch (13136:44): [True: 7.33k, False: 284k]
  |  Branch (13136:58): [True: 5.77k, False: 278k]
  ------------------
13137|  36.2k|    {
13138|  36.2k|        if (avail >= 3 && data[1] >= 0x80 && data[1] <= 0xBF && data[2] >= 0x80 && data[2] <= 0xBF)
  ------------------
  |  Branch (13138:13): [True: 32.6k, False: 3.59k]
  |  Branch (13138:27): [True: 23.4k, False: 9.22k]
  |  Branch (13138:46): [True: 7.34k, False: 16.0k]
  |  Branch (13138:65): [True: 5.16k, False: 2.17k]
  |  Branch (13138:84): [True: 2.91k, False: 2.25k]
  ------------------
13139|  2.91k|        {
13140|  2.91k|            return 3;
13141|  2.91k|        }
13142|  36.2k|    }
13143|   278k|    else if (c0 == 0xED)  // U+D000..U+D7FF (excludes surrogates)
  ------------------
  |  Branch (13143:14): [True: 10.1k, False: 268k]
  ------------------
13144|  10.1k|    {
13145|  10.1k|        if (avail >= 3 && data[1] >= 0x80 && data[1] <= 0x9F && data[2] >= 0x80 && data[2] <= 0xBF)
  ------------------
  |  Branch (13145:13): [True: 9.22k, False: 882]
  |  Branch (13145:27): [True: 6.99k, False: 2.23k]
  |  Branch (13145:46): [True: 3.55k, False: 3.43k]
  |  Branch (13145:65): [True: 2.36k, False: 1.18k]
  |  Branch (13145:84): [True: 1.29k, False: 1.07k]
  ------------------
13146|  1.29k|        {
13147|  1.29k|            return 3;
13148|  1.29k|        }
13149|  10.1k|    }
13150|   268k|    else if (c0 == 0xF0)  // U+10000..U+3FFFF
  ------------------
  |  Branch (13150:14): [True: 26.9k, False: 241k]
  ------------------
13151|  26.9k|    {
13152|  26.9k|        if (avail >= 4 && data[1] >= 0x90 && data[1] <= 0xBF && data[2] >= 0x80 && data[2] <= 0xBF && data[3] >= 0x80 && data[3] <= 0xBF)
  ------------------
  |  Branch (13152:13): [True: 25.3k, False: 1.57k]
  |  Branch (13152:27): [True: 20.5k, False: 4.84k]
  |  Branch (13152:46): [True: 10.5k, False: 10.0k]
  |  Branch (13152:65): [True: 8.85k, False: 1.65k]
  |  Branch (13152:84): [True: 5.86k, False: 2.98k]
  |  Branch (13152:103): [True: 4.69k, False: 1.16k]
  |  Branch (13152:122): [True: 3.28k, False: 1.41k]
  ------------------
13153|  3.28k|        {
13154|  3.28k|            return 4;
13155|  3.28k|        }
13156|  26.9k|    }
13157|   241k|    else if (c0 >= 0xF1 && c0 <= 0xF3)  // U+40000..U+FFFFF
  ------------------
  |  Branch (13157:14): [True: 146k, False: 95.7k]
  |  Branch (13157:28): [True: 34.8k, False: 111k]
  ------------------
13158|  34.8k|    {
13159|  34.8k|        if (avail >= 4 && data[1] >= 0x80 && data[1] <= 0xBF && data[2] >= 0x80 && data[2] <= 0xBF && data[3] >= 0x80 && data[3] <= 0xBF)
  ------------------
  |  Branch (13159:13): [True: 33.1k, False: 1.74k]
  |  Branch (13159:27): [True: 25.5k, False: 7.54k]
  |  Branch (13159:46): [True: 18.0k, False: 7.50k]
  |  Branch (13159:65): [True: 14.2k, False: 3.87k]
  |  Branch (13159:84): [True: 12.1k, False: 2.06k]
  |  Branch (13159:103): [True: 9.61k, False: 2.53k]
  |  Branch (13159:122): [True: 7.54k, False: 2.07k]
  ------------------
13160|  7.54k|        {
13161|  7.54k|            return 4;
13162|  7.54k|        }
13163|  34.8k|    }
13164|   206k|    else if (c0 == 0xF4)  // U+100000..U+10FFFF
  ------------------
  |  Branch (13164:14): [True: 13.3k, False: 193k]
  ------------------
13165|  13.3k|    {
13166|  13.3k|        if (avail >= 4 && data[1] >= 0x80 && data[1] <= 0x8F && data[2] >= 0x80 && data[2] <= 0xBF && data[3] >= 0x80 && data[3] <= 0xBF)
  ------------------
  |  Branch (13166:13): [True: 12.2k, False: 1.09k]
  |  Branch (13166:27): [True: 8.98k, False: 3.25k]
  |  Branch (13166:46): [True: 4.03k, False: 4.94k]
  |  Branch (13166:65): [True: 2.92k, False: 1.11k]
  |  Branch (13166:84): [True: 1.47k, False: 1.45k]
  |  Branch (13166:103): [True: 1.07k, False: 396]
  |  Branch (13166:122): [True: 414, False: 660]
  ------------------
13167|    414|        {
13168|    414|            return 4;
13169|    414|        }
13170|  13.3k|    }
13171|   359k|    return 0; // invalid, incomplete, or must be diagnosed by the byte path
13172|   386k|}
_ZN8nlohmann16json_abi_v3_12_06detail6decodeERhRjh:
 7414|   557k|{
 7415|   557k|    static const std::array<std::uint8_t, 400> utf8d =
 7416|   557k|    {
 7417|   557k|        {
 7418|   557k|            0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 00..1F
 7419|   557k|            0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 20..3F
 7420|   557k|            0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 40..5F
 7421|   557k|            0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 60..7F
 7422|   557k|            1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, // 80..9F
 7423|   557k|            7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // A0..BF
 7424|   557k|            8, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, // C0..DF
 7425|   557k|            0xA, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x4, 0x3, 0x3, // E0..EF
 7426|   557k|            0xB, 0x6, 0x6, 0x6, 0x5, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, 0x8, // F0..FF
 7427|   557k|            0x0, 0x1, 0x2, 0x3, 0x5, 0x8, 0x7, 0x1, 0x1, 0x1, 0x4, 0x6, 0x1, 0x1, 0x1, 0x1, // s0..s0
 7428|   557k|            1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, // s1..s2
 7429|   557k|            1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, // s3..s4
 7430|   557k|            1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, // s5..s6
 7431|   557k|            1, 3, 1, 1, 1, 1, 1, 3, 1, 3, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 // s7..s8
 7432|   557k|        }
 7433|   557k|    };
 7434|       |
 7435|   557k|    JSON_ASSERT(static_cast<std::size_t>(byte) < utf8d.size());
  ------------------
  |  | 2653|   557k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (7435:5): [True: 557k, False: 0]
  ------------------
 7436|   557k|    const std::uint8_t type = utf8d[byte];
 7437|       |
 7438|   557k|    codep = (state != UTF8_ACCEPT)
  ------------------
  |  Branch (7438:13): [True: 197k, False: 359k]
  ------------------
 7439|   557k|            ? (byte & 0x3fu) | (codep << 6u)
 7440|   557k|            : (0xFFu >> type) & (byte);
 7441|       |
 7442|   557k|    const std::size_t index = 256u + (static_cast<std::size_t>(state) * 16u) + static_cast<std::size_t>(type);
 7443|   557k|    JSON_ASSERT(index < utf8d.size());
  ------------------
  |  | 2653|   557k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (7443:5): [True: 557k, False: 0]
  ------------------
 7444|   557k|    state = utf8d[index];
 7445|   557k|    return state;
 7446|   557k|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE21reserve_string_bufferERm:
38578|   351k|    {
38579|   351k|        if (string_buffer.size() - bytes < 13)
  ------------------
  |  Branch (38579:13): [True: 0, False: 351k]
  ------------------
38580|      0|        {
38581|      0|            put_buffer(string_buffer, bytes);
38582|      0|            bytes = 0;
38583|      0|        }
38584|   351k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJS9_EEEmRKT_DpRKT0_:
 5447|  10.5k|{
 5448|  10.5k|    return str.size() + concat_length(rest...);
 5449|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJEEEmRKT_DpRKT0_:
 5447|  32.7k|{
 5448|  32.7k|    return str.size() + concat_length(rest...);
 5449|  32.7k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthEv:
 5423|  44.1k|{
 5424|  44.1k|    return 0;
 5425|  44.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_:
 5500|  10.5k|{
 5501|  10.5k|    out.append(std::forward<Arg>(arg));
 5502|  10.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSD_OSE_DpOT1_:
 5500|  21.1k|{
 5501|  21.1k|    out.append(std::forward<Arg>(arg));
 5502|  21.1k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  21.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEvRT_:
 5453|  44.1k|{}
_ZN8nlohmann16json_abi_v3_12_06detail9exception4nameERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEi:
 5669|  10.5k|    {
 5670|  10.5k|        return concat("[json.exception.", ename, '.', std::to_string(id_), "] ");
 5671|  10.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA17_KcRKS9_cS9_RA3_SA_EEET_DpOT0_:
 5537|  10.5k|{
 5538|  10.5k|    OutStringType str;
 5539|  10.5k|    str.reserve(concat_length(args...));
 5540|  10.5k|    concat_into(str, std::forward<Args>(args)...);
 5541|  10.5k|    return str;
 5542|  10.5k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEcS9_A3_cEEEmPKcDpRKT_:
 5441|  10.5k|{
 5442|  10.5k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJcS9_A3_cEEEmRKT_DpRKT0_:
 5447|  10.5k|{
 5448|  10.5k|    return str.size() + concat_length(rest...);
 5449|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA3_cEEEmcDpRKT_:
 5435|  10.5k|{
 5436|  10.5k|    return 1 + concat_length(rest...);
 5437|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA3_cEEEmRKT_DpRKT0_:
 5447|  10.5k|{
 5448|  10.5k|    return str.size() + concat_length(rest...);
 5449|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJEEEmPKcDpRKT_:
 5441|  11.4k|{
 5442|  11.4k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  11.4k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA17_KcJRKS9_cS9_RA3_SA_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSI_OSJ_DpOT1_:
 5500|  10.5k|{
 5501|  10.5k|    out.append(std::forward<Arg>(arg));
 5502|  10.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JcS9_RA3_KcETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  10.5k|{
 5501|  10.5k|    out.append(std::forward<Arg>(arg));
 5502|  10.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEcJS9_RA3_KcETnNS3_9enable_ifIXaantsr24detect_string_can_appendIT_T0_EE5valuesr27detect_string_can_append_opISE_SF_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5509|  10.5k|{
 5510|  10.5k|    out += std::forward<Arg>(arg);
 5511|  10.5k|    concat_into(out, std::forward<Args>(rest)...);
 5512|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRA3_KcETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  10.5k|{
 5501|  10.5k|    out.append(std::forward<Arg>(arg));
 5502|  10.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA3_KcJETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  10.5k|{
 5501|  10.5k|    out.append(std::forward<Arg>(arg));
 5502|  10.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail9exception11diagnosticsEDn:
 5681|  10.5k|    {
 5682|  10.5k|        return "";
 5683|  10.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9exceptionC2EiPKc:
 5666|  10.5k|    exception(int id_, const char* what_arg) : id(id_), m(what_arg) {} // NOLINT(bugprone-throw-keyword-missing)
_ZNK8nlohmann16json_abi_v3_12_06detail9exception4whatEv:
 5657|  7.05k|    {
 5658|  7.05k|        return m.what();
 5659|  7.05k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEEEEmPKcDpRKT_:
 5441|  22.1k|{
 5442|  22.1k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  22.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSB_OSC_DpOT1_:
 5500|  11.5k|{
 5501|  11.5k|    out.append(std::forward<Arg>(arg));
 5502|  11.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  11.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail8hex_byteEh:
 7225|  2.89k|{
 7226|  2.89k|    std::string result = "00";
 7227|  2.89k|    constexpr const char* nibble_to_hex = "0123456789ABCDEF";
 7228|  2.89k|    result[0] = nibble_to_hex[byte / 16];
 7229|  2.89k|    result[1] = nibble_to_hex[byte % 16];
 7230|  2.89k|    return result;
 7231|  2.89k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17dump_escaped_implILb0EEEvRKSC_:
38599|  48.9k|    {
38600|  48.9k|        std::uint32_t codepoint{};
38601|  48.9k|        std::uint8_t state = UTF8_ACCEPT;
38602|  48.9k|        std::size_t bytes = 0;  // number of bytes written to string_buffer
38603|       |
38604|       |        // number of bytes written at the point of the last valid byte
38605|  48.9k|        std::size_t bytes_after_last_accept = 0;
38606|  48.9k|        std::size_t undumped_chars = 0;
38607|       |
38608|  1.03M|        for (std::size_t i = 0; i < s.size(); ++i)
  ------------------
  |  Branch (38608:33): [True: 990k, False: 40.5k]
  ------------------
38609|   990k|        {
38610|       |            // Fast path: at a character boundary (state == UTF8_ACCEPT),
38611|       |            // bulk-copy the longest run of bytes that need no escaping using a
38612|       |            // SWAR scanner shared with the lexer's contiguous path. The scanner
38613|       |            // stops exactly at the first byte dump_escaped would handle
38614|       |            // individually, so that byte is left to the byte-at-a-time path
38615|       |            // below, keeping escaping output and error diagnostics unchanged.
38616|       |            //
38617|       |            // - EnsureAscii == false: string_bulk_run() copies ordinary bytes
38618|       |            //   and complete well-formed UTF-8, stopping at a quote, backslash,
38619|       |            //   control character (< 0x20), or ill-formed/truncated sequence.
38620|       |            // - EnsureAscii == true: only printable ASCII may be copied
38621|       |            //   verbatim; find_ascii_copyable_run() additionally stops at 0x7F
38622|       |            //   and every non-ASCII byte (>= 0x80), which must be \u-escaped.
38623|   990k|            if (state == UTF8_ACCEPT)
  ------------------
  |  Branch (38623:17): [True: 792k, False: 197k]
  ------------------
38624|   792k|            {
38625|   792k|                const auto* const data = reinterpret_cast<const unsigned char*>(s.data());
38626|       |                // A run can only be non-empty when the very first byte is one
38627|       |                // the scanner may copy, so test that single byte before paying
38628|       |                // for the scan. Without it, text whose characters all have to be
38629|       |                // escaped - CJK under ensure_ascii, where every byte is >= 0x80 -
38630|       |                // runs the scanner once per character only to be told zero.
38631|   792k|                std::size_t run = 0;
38632|   792k|                if (!EnsureAscii)
  ------------------
  |  Branch (38632:21): [True: 792k, Folded]
  ------------------
38633|   792k|                {
38634|   792k|                    run = string_bulk_run(data + i, s.size() - i);
38635|   792k|                }
38636|      0|                else if (is_ascii_copyable(data[i]))
  ------------------
  |  Branch (38636:26): [True: 0, False: 0]
  ------------------
38637|      0|                {
38638|      0|                    run = find_ascii_copyable_run(data + i, s.size() - i);
38639|      0|                }
38640|   792k|                if (run != 0)
  ------------------
  |  Branch (38640:21): [True: 118k, False: 674k]
  ------------------
38641|   118k|                {
38642|       |                    // emit any bytes still pending in string_buffer first to
38643|       |                    // preserve output order, then write the run directly
38644|   118k|                    emit_pending(bytes);
38645|   118k|                    put_run(s, i, run);
38646|   118k|                    bytes_after_last_accept = 0;
38647|   118k|                    undumped_chars = 0;
38648|   118k|                    i += run;
38649|   118k|                    if (i >= s.size())
  ------------------
  |  Branch (38649:25): [True: 8.31k, False: 109k]
  ------------------
38650|  8.31k|                    {
38651|  8.31k|                        break;
38652|  8.31k|                    }
38653|   118k|                }
38654|       |
38655|       |                // A byte below 0x60 is a complete code point and needs no
38656|       |                // UTF-8 decoding. The scanner stops only at a control
38657|       |                // character, a quote, or a backslash in that range, so look up
38658|       |                // its escape sequence and write all 8 bytes of the table entry
38659|       |                // straight into the write buffer; only the length stored in the
38660|       |                // last byte of the entry is kept.
38661|   784k|                if (data[i] < 0x60)
  ------------------
  |  Branch (38661:21): [True: 424k, False: 359k]
  ------------------
38662|   424k|                {
38663|       |                    // emit any bytes still pending in string_buffer first to
38664|       |                    // preserve output order
38665|   424k|                    emit_pending(bytes);
38666|       |                    // deliberately not put_buffer(): a fixed 8-byte memcpy
38667|       |                    // has no asserts and no write-through branch, which
38668|       |                    // matters on the hot path
38669|   424k|                    const auto& escape = ascii_escapes()[data[i]];
38670|   424k|                    if (JSON_HEDLEY_UNLIKELY(write_buffer.size() - write_buffer_pos < escape.size()))
  ------------------
  |  | 1697|   424k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 294, False: 424k]
  |  |  ------------------
  ------------------
38671|    294|                    {
38672|    294|                        flush();
38673|    294|                    }
38674|   424k|                    std::memcpy(write_buffer.data() + write_buffer_pos, escape.data(), escape.size());
38675|   424k|                    write_buffer_pos += static_cast<std::size_t>(escape[7]);
38676|   424k|                    bytes_after_last_accept = 0;
38677|   424k|                    undumped_chars = 0;
38678|   424k|                    continue;
38679|   424k|                }
38680|   784k|            }
38681|       |
38682|   557k|            const auto byte = static_cast<std::uint8_t>(s[i]);
38683|       |
38684|   557k|            if (EnsureAscii && state == UTF8_ACCEPT && byte >= 0x80)
  ------------------
  |  Branch (38684:17): [Folded, False: 557k]
  |  Branch (38684:32): [True: 0, False: 0]
  |  Branch (38684:56): [True: 0, False: 0]
  ------------------
38685|      0|            {
38686|       |                // a run of well-formed multi-byte characters is escaped
38687|       |                // straight into the write buffer; an ill-formed sequence
38688|       |                // ends the run and is left to the byte-at-a-time path
38689|      0|                if (bytes != 0)
  ------------------
  |  Branch (38689:21): [True: 0, False: 0]
  ------------------
38690|      0|                {
38691|      0|                    put_buffer(string_buffer, bytes);
38692|      0|                    bytes = 0;
38693|      0|                    bytes_after_last_accept = 0;
38694|      0|                }
38695|      0|                const std::size_t escaped = write_u_escapes(reinterpret_cast<const unsigned char*>(s.data()) + i, s.size() - i);
38696|      0|                if (escaped != 0)
  ------------------
  |  Branch (38696:21): [True: 0, False: 0]
  ------------------
38697|      0|                {
38698|      0|                    bytes_after_last_accept = 0;
38699|      0|                    undumped_chars = 0;
38700|      0|                    i += escaped - 1;
38701|      0|                    continue;
38702|      0|                }
38703|      0|            }
38704|       |
38705|   557k|            switch (decode(state, codepoint, byte))
38706|   557k|            {
38707|      0|                case UTF8_ACCEPT:  // decode found a new code point
  ------------------
  |  Branch (38707:17): [True: 0, False: 557k]
  ------------------
38708|      0|                {
38709|       |                    // the code point is at least 0x60 (smaller ones are handled
38710|       |                    // above) and is not printable ASCII (which the scanner
38711|       |                    // copies). Under EnsureAscii it is DEL (0x7F): every
38712|       |                    // well-formed multi-byte character is escaped by
38713|       |                    // write_u_escapes() above, so decode() only ever accepts a
38714|       |                    // single byte here, and nothing of it was buffered
38715|      0|                    if (EnsureAscii)
  ------------------
  |  Branch (38715:25): [Folded, False: 0]
  ------------------
38716|      0|                    {
38717|      0|                        JSON_ASSERT(codepoint == 0x7F);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (38717:25): [True: 0, False: 0]
  ------------------
38718|      0|                        JSON_ASSERT(bytes == bytes_after_last_accept);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (38718:25): [True: 0, False: 0]
  ------------------
38719|      0|                        write_u_escape(bytes, static_cast<std::uint16_t>(codepoint));
38720|      0|                    }
38721|      0|                    else
38722|      0|                    {
38723|       |                        // copy byte to buffer (all previous bytes of the
38724|       |                        // sequence have been copied in the default case below)
38725|      0|                        string_buffer[bytes++] = s[i]; // LCOV_EXCL_LINE (well-formed sequences are copied in runs)
38726|      0|                    }
38727|       |
38728|      0|                    reserve_string_buffer(bytes);
38729|       |
38730|       |                    // remember the byte position of this accept
38731|      0|                    bytes_after_last_accept = bytes;
38732|      0|                    undumped_chars = 0;
38733|      0|                    break;
38734|      0|                }
38735|       |
38736|   351k|                case UTF8_REJECT:  // decode found invalid UTF-8 byte
  ------------------
  |  Branch (38736:17): [True: 351k, False: 205k]
  ------------------
38737|   351k|                {
38738|   351k|                    switch (error_handler)
38739|   351k|                    {
38740|      0|                        case error_handler_t::strict:
  ------------------
  |  Branch (38740:25): [True: 0, False: 351k]
  ------------------
38741|      0|                        {
38742|      0|                            JSON_THROW(type_error::create(exception_id::invalid_utf8, concat("invalid UTF-8 byte at index ", std::to_string(i), ": 0x", detail::hex_byte(byte)), nullptr));
  ------------------
  |  | 2618|      0|    #define JSON_THROW(exception) throw exception
  ------------------
38743|      0|                        }
38744|       |
38745|      0|                        case error_handler_t::ignore:
  ------------------
  |  Branch (38745:25): [True: 0, False: 351k]
  ------------------
38746|      0|                        case error_handler_t::replace:
  ------------------
  |  Branch (38746:25): [True: 0, False: 351k]
  ------------------
38747|      0|                        {
38748|       |                            // in case we saw this character the first time, we
38749|       |                            // would like to read it again, because the byte
38750|       |                            // may be OK for itself, but just not OK for the
38751|       |                            // previous sequence
38752|      0|                            if (undumped_chars > 0)
  ------------------
  |  Branch (38752:33): [True: 0, False: 0]
  ------------------
38753|      0|                            {
38754|      0|                                --i;
38755|      0|                            }
38756|       |
38757|       |                            // reset length buffer to the last accepted index;
38758|       |                            // thus removing/ignoring the invalid characters
38759|      0|                            bytes = bytes_after_last_accept;
38760|       |
38761|      0|                            if (error_handler == error_handler_t::replace)
  ------------------
  |  Branch (38761:33): [True: 0, False: 0]
  ------------------
38762|      0|                            {
38763|       |                                // add a replacement character
38764|      0|                                if (EnsureAscii)
  ------------------
  |  Branch (38764:37): [Folded, False: 0]
  ------------------
38765|      0|                                {
38766|      0|                                    string_buffer[bytes++] = '\\';
38767|      0|                                    string_buffer[bytes++] = 'u';
38768|      0|                                    string_buffer[bytes++] = 'f';
38769|      0|                                    string_buffer[bytes++] = 'f';
38770|      0|                                    string_buffer[bytes++] = 'f';
38771|      0|                                    string_buffer[bytes++] = 'd';
38772|      0|                                }
38773|      0|                                else
38774|      0|                                {
38775|      0|                                    string_buffer[bytes++] = '\xEF';
38776|      0|                                    string_buffer[bytes++] = '\xBF';
38777|      0|                                    string_buffer[bytes++] = '\xBD';
38778|      0|                                }
38779|       |
38780|      0|                                reserve_string_buffer(bytes);
38781|       |
38782|      0|                                bytes_after_last_accept = bytes;
38783|      0|                            }
38784|       |
38785|      0|                            undumped_chars = 0;
38786|       |
38787|       |                            // continue processing the string
38788|      0|                            state = UTF8_ACCEPT;
38789|      0|                            break;
38790|      0|                        }
38791|       |
38792|   351k|                        case error_handler_t::keep:
  ------------------
  |  Branch (38792:25): [True: 351k, False: 0]
  ------------------
38793|   351k|                        {
38794|       |                            // the bytes of this (now abandoned) ill-formed
38795|       |                            // sequence seen so far are already buffered below
38796|       |                            // and are kept unchanged in the output
38797|   351k|                            if (undumped_chars > 0)
  ------------------
  |  Branch (38797:33): [True: 157k, False: 193k]
  ------------------
38798|   157k|                            {
38799|       |                                // the byte that ended the sequence may be OK
38800|       |                                // for itself (e.g., a quote that must still be
38801|       |                                // escaped, or the lead byte of a well-formed
38802|       |                                // code point), so read it again
38803|   157k|                                --i;
38804|   157k|                            }
38805|   193k|                            else
38806|   193k|                            {
38807|       |                                // a byte that cannot start a sequence (e.g.,
38808|       |                                // 0xFF or a stray continuation byte) is kept
38809|       |                                // as well
38810|   193k|                                string_buffer[bytes++] = s[i];
38811|   193k|                            }
38812|       |
38813|   351k|                            reserve_string_buffer(bytes);
38814|       |
38815|   351k|                            bytes_after_last_accept = bytes;
38816|   351k|                            undumped_chars = 0;
38817|       |
38818|       |                            // continue processing the string
38819|   351k|                            state = UTF8_ACCEPT;
38820|   351k|                            break;
38821|      0|                        }
38822|       |
38823|      0|                        default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (38823:25): [True: 0, False: 351k]
  ------------------
38824|      0|                            JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (38824:29): [Folded, False: 0]
  ------------------
38825|   351k|                    }
38826|   351k|                    break;
38827|   351k|                }
38828|       |
38829|   351k|                default:  // decode found yet incomplete multibyte code point
  ------------------
  |  Branch (38829:17): [True: 205k, False: 351k]
  ------------------
38830|   205k|                {
38831|   205k|                    if (!EnsureAscii || error_handler == error_handler_t::keep)
  ------------------
  |  Branch (38831:25): [True: 205k, Folded]
  |  Branch (38831:41): [True: 0, False: 0]
  ------------------
38832|   205k|                    {
38833|       |                        // code point will not be escaped (or will be kept as
38834|       |                        // is if it turns out to be ill-formed) - copy byte to
38835|       |                        // buffer; dropped again above if it decodes to a
38836|       |                        // well-formed code point that needs \u-escaping
38837|   205k|                        string_buffer[bytes++] = s[i];
38838|   205k|                    }
38839|   205k|                    ++undumped_chars;
38840|   205k|                    break;
38841|   351k|                }
38842|   557k|            }
38843|   557k|        }
38844|       |
38845|       |        // we finished processing the string
38846|  48.9k|        if (JSON_HEDLEY_LIKELY(state == UTF8_ACCEPT))
  ------------------
  |  | 1696|  48.9k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 40.4k, False: 8.43k]
  |  |  ------------------
  ------------------
38847|  40.4k|        {
38848|       |            // write buffer
38849|  40.4k|            if (bytes > 0)
  ------------------
  |  Branch (38849:17): [True: 13.6k, False: 26.8k]
  ------------------
38850|  13.6k|            {
38851|  13.6k|                put_buffer(string_buffer, bytes);
38852|  13.6k|            }
38853|  40.4k|        }
38854|  8.43k|        else
38855|  8.43k|        {
38856|       |            // we finish reading, but do not accept: string was incomplete
38857|  8.43k|            switch (error_handler)
38858|  8.43k|            {
38859|      0|                case error_handler_t::strict:
  ------------------
  |  Branch (38859:17): [True: 0, False: 8.43k]
  ------------------
38860|      0|                {
38861|      0|                    JSON_THROW(type_error::create(exception_id::invalid_utf8, concat("incomplete UTF-8 string; last byte: 0x", detail::hex_byte(static_cast<std::uint8_t>(s[s.size() - 1]))), nullptr));
  ------------------
  |  | 2618|      0|    #define JSON_THROW(exception) throw exception
  ------------------
38862|      0|                }
38863|       |
38864|      0|                case error_handler_t::ignore:
  ------------------
  |  Branch (38864:17): [True: 0, False: 8.43k]
  ------------------
38865|      0|                {
38866|       |                    // write all accepted bytes
38867|      0|                    put_buffer(string_buffer, bytes_after_last_accept);
38868|      0|                    break;
38869|      0|                }
38870|       |
38871|      0|                case error_handler_t::replace:
  ------------------
  |  Branch (38871:17): [True: 0, False: 8.43k]
  ------------------
38872|      0|                {
38873|       |                    // write all accepted bytes
38874|      0|                    put_buffer(string_buffer, bytes_after_last_accept);
38875|       |                    // add a replacement character
38876|      0|                    if (EnsureAscii)
  ------------------
  |  Branch (38876:25): [Folded, False: 0]
  ------------------
38877|      0|                    {
38878|      0|                        put_literal("\\ufffd");
38879|      0|                    }
38880|      0|                    else
38881|      0|                    {
38882|      0|                        put_literal("\xEF\xBF\xBD");
38883|      0|                    }
38884|      0|                    break;
38885|      0|                }
38886|       |
38887|  8.43k|                case error_handler_t::keep:
  ------------------
  |  Branch (38887:17): [True: 8.43k, False: 0]
  ------------------
38888|  8.43k|                {
38889|       |                    // write the ill-formed trailing bytes as is; they were
38890|       |                    // buffered above regardless of EnsureAscii
38891|  8.43k|                    put_buffer(string_buffer, bytes);
38892|  8.43k|                    break;
38893|      0|                }
38894|       |
38895|      0|                default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (38895:17): [True: 0, False: 8.43k]
  ------------------
38896|       |                    JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (38896:21): [Folded, False: 0]
  ------------------
38897|  8.43k|            }
38898|  8.43k|        }
38899|  48.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail15string_bulk_runEPKhm:
13447|   792k|{
13448|       |#if defined(JSON_USE_SIMDUTF) && defined(JSON_HAS_CPP_17)
13449|       |    const std::size_t run = find_string_delimiter(data, n);
13450|       |    if (run != 0 && simdutf::validate_utf8(reinterpret_cast<const char*>(data), run))
13451|       |    {
13452|       |        return run;
13453|       |    }
13454|       |#endif
13455|   792k|    return scalar_string_bulk_run(data, n);
13456|   792k|}
_ZN8nlohmann16json_abi_v3_12_06detail22scalar_string_bulk_runEPKhm:
13368|   792k|{
13369|   792k|    const unsigned char* const e = data + n;
13370|   792k|    const unsigned char* p = data;
13371|   792k|    while (p != e)
  ------------------
  |  Branch (13371:12): [True: 792k, False: 0]
  ------------------
13372|   792k|    {
13373|   792k|#if JSON_SCAN_VECTOR
13374|   792k|        p = plain_run_end(p, e);
13375|       |#else
13376|       |        p += find_string_special(p, static_cast<std::size_t>(e - p));
13377|       |#endif
13378|   792k|        if (p == e || *p < 0x80u)
  ------------------
  |  Branch (13378:13): [True: 6.73k, False: 786k]
  |  Branch (13378:23): [True: 421k, False: 364k]
  ------------------
13379|   428k|        {
13380|   428k|            break; // end of buffer, or a quote/escape/control byte
13381|   428k|        }
13382|   364k|#if JSON_SCAN_VECTOR_UTF8
13383|   364k|#if JSON_SCAN_SSSE3_DISPATCH
13384|   364k|        if (JSON_HEDLEY_LIKELY(cpu_has_ssse3()))
  ------------------
  |  | 1696|   364k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 364k, False: 0]
  |  |  ------------------
  ------------------
13385|   364k|#endif
13386|   364k|        {
13387|   364k|            return static_cast<std::size_t>(scan_string_vector(p, e) - data);
13388|   364k|        }
13389|      0|#endif
13390|      0|#if !JSON_SCAN_VECTOR_UTF8 || JSON_SCAN_SSSE3_DISPATCH
13391|       |        // a run of multi-byte sequences (e.g. CJK text) is validated sequence
13392|       |        // by sequence without searching for the next special byte in between
13393|      0|        do
13394|      0|        {
13395|      0|            const std::size_t seq = validate_one_utf8(p, static_cast<std::size_t>(e - p));
13396|      0|            if (seq == 0)
  ------------------
  |  Branch (13396:17): [True: 0, False: 0]
  ------------------
13397|      0|            {
13398|      0|                return static_cast<std::size_t>(p - data); // ill-formed or truncated: let the byte path diagnose it
13399|      0|            }
13400|      0|            p += seq;
13401|      0|        }
13402|      0|        while (p != e && *p >= 0x80u);
  ------------------
  |  Branch (13402:16): [True: 0, False: 0]
  |  Branch (13402:26): [True: 0, False: 0]
  ------------------
13403|      0|#endif
13404|      0|    }
13405|   428k|    return static_cast<std::size_t>(p - data);
13406|   792k|}
_ZN8nlohmann16json_abi_v3_12_06detail13plain_run_endEPKhS3_:
13333|   792k|{
13334|   792k|    constexpr int prefix_words = JSON_SCAN_NEON ? 4 : 1;
  ------------------
  |  |12600|   792k|    #define JSON_SCAN_NEON 0
  |  |  ------------------
  |  |  |  Branch (12600:28): [Folded, False: 792k]
  |  |  ------------------
  ------------------
13335|   796k|    for (int words = prefix_words; words > 0 && e - p >= 8; --words)
  ------------------
  |  Branch (13335:36): [True: 792k, False: 4.15k]
  |  Branch (13335:49): [True: 651k, False: 141k]
  ------------------
13336|   651k|    {
13337|   651k|        const std::uint64_t special = swar_string_special(read_eight_bytes(p));
13338|   651k|        if (special != 0)
  ------------------
  |  Branch (13338:13): [True: 647k, False: 4.15k]
  ------------------
13339|   647k|        {
13340|   647k|            return p + (static_cast<std::size_t>(count_trailing_zeros(special)) / 8);
13341|   647k|        }
13342|  4.15k|        p += 8;
13343|  4.15k|    }
13344|       |    // the vector loop only for 16 bytes or more: the serializer passes a
13345|       |    // string without its closing quote, so most of its runs end at e, and a
13346|       |    // call of the out-of-line NEON loop for a shorter rest made dump() up to
13347|       |    // 10% slower
13348|   145k|    if (e - p >= 16)
  ------------------
  |  Branch (13348:9): [True: 3.21k, False: 142k]
  ------------------
13349|  3.21k|    {
13350|  3.21k|        p = vector_plain_run_long(p, e);
13351|  3.21k|        if (e - p >= 16)
  ------------------
  |  Branch (13351:13): [True: 2.86k, False: 342]
  ------------------
13352|  2.86k|        {
13353|  2.86k|            return p; // the vector loop stopped at a special byte
13354|  2.86k|        }
13355|  3.21k|    }
13356|   142k|    return p + find_string_special(p, static_cast<std::size_t>(e - p));
13357|   145k|}
_ZN8nlohmann16json_abi_v3_12_06detail19swar_string_specialEm:
13004|   652k|{
13005|   652k|    constexpr std::uint64_t ones = 0x0101010101010101ull;
13006|   652k|    constexpr std::uint64_t high = 0x8080808080808080ull;
13007|   652k|    const std::uint64_t q = v ^ 0x2222222222222222ull; // '"'  (0x22)
13008|   652k|    const std::uint64_t b = v ^ 0x5C5C5C5C5C5C5C5Cull; // '\\' (0x5C)
13009|       |    // The usual test for a zero byte is (x - ones) & ~x & high. The `& ~x`
13010|       |    // only removes bytes from 0x80, and `v & high` flags those anyway, so it
13011|       |    // can be dropped. Clang finds this reduction itself; GCC does not.
13012|   652k|    return ((q - ones) | (b - ones) | (v - 0x2020202020202020ull) | v) & high;
13013|   652k|}
_ZN8nlohmann16json_abi_v3_12_06detail21vector_plain_run_longEPKhS3_:
12699|  3.21k|{
12700|  3.21k|    return vector_plain_run(p, e);
12701|  3.21k|}
_ZN8nlohmann16json_abi_v3_12_06detail16vector_plain_runEPKhS3_:
12659|  3.21k|{
12660|  4.34k|    while (e - p >= 16)
  ------------------
  |  Branch (12660:12): [True: 4.19k, False: 150]
  ------------------
12661|  4.19k|    {
12662|       |#if JSON_SCAN_NEON
12663|       |        const uint8x16_t in = vld1q_u8(p);
12664|       |        const uint8x16_t special = vorrq_u8(vceqq_u8(in, vdupq_n_u8('\\')),
12665|       |                                            vcltq_s8(vreinterpretq_s8_u8(veorq_u8(in, vdupq_n_u8(2))), vdupq_n_s8(33)));
12666|       |        // one nibble per byte (the usual NEON replacement of x86's movemask, see
12667|       |        // D. Kutenin, "Porting x86 vector bitmask optimizations to Arm NEON", 2022)
12668|       |        const std::uint64_t bits = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(vreinterpretq_u16_u8(special), 4)), 0);
12669|       |        if (bits != 0)
12670|       |        {
12671|       |            return p + (count_trailing_zeros(bits) >> 2u);
12672|       |        }
12673|       |#else
12674|  4.19k|        const __m128i in = _mm_loadu_si128(static_cast<const __m128i*>(static_cast<const void*>(p))); // NOLINT(bugprone-casting-through-void)
12675|  4.19k|        const __m128i special = _mm_or_si128(_mm_cmpeq_epi8(in, _mm_set1_epi8('\\')),
12676|  4.19k|                                             _mm_cmplt_epi8(_mm_xor_si128(in, _mm_set1_epi8(2)), _mm_set1_epi8(33)));
12677|  4.19k|        const auto bits = static_cast<std::uint64_t>(static_cast<unsigned>(_mm_movemask_epi8(special)));
12678|  4.19k|        if (bits != 0)
  ------------------
  |  Branch (12678:13): [True: 3.06k, False: 1.13k]
  ------------------
12679|  3.06k|        {
12680|  3.06k|            return p + count_trailing_zeros(bits);
12681|  3.06k|        }
12682|  1.13k|#endif
12683|  1.13k|        p += 16;
12684|  1.13k|    }
12685|    150|    return p;
12686|  3.21k|}
_ZN8nlohmann16json_abi_v3_12_06detail19find_string_specialEPKhm:
13018|   142k|{
13019|   142k|    std::size_t i = 0;
13020|   142k|    for (; i + 8 <= n; i += 8)
  ------------------
  |  Branch (13020:12): [True: 780, False: 142k]
  ------------------
13021|    780|    {
13022|    780|        const std::uint64_t special = swar_string_special(read_eight_bytes(data + i));
13023|    780|        if (special != 0)
  ------------------
  |  Branch (13023:13): [True: 576, False: 204]
  ------------------
13024|    576|        {
13025|       |            // the lowest flagged byte is the first special one: the borrows of
13026|       |            // the subtractions can only flag bytes above a true hit
13027|    576|            return i + (static_cast<std::size_t>(count_trailing_zeros(special)) / 8);
13028|    576|        }
13029|    780|    }
13030|   169k|    for (; i < n; ++i)
  ------------------
  |  Branch (13030:12): [True: 163k, False: 6.73k]
  ------------------
13031|   163k|    {
13032|   163k|        if (is_string_special(data[i]))
  ------------------
  |  Branch (13032:13): [True: 135k, False: 27.6k]
  ------------------
13033|   135k|        {
13034|   135k|            return i;
13035|   135k|        }
13036|   163k|    }
13037|  6.73k|    return n;
13038|   142k|}
_ZN8nlohmann16json_abi_v3_12_06detail17is_string_specialEh:
12997|   177k|{
12998|   177k|    return c == '\"' || c == '\\' || c < 0x20u || c >= 0x80u;
  ------------------
  |  Branch (12998:12): [True: 1.30k, False: 176k]
  |  Branch (12998:25): [True: 1.28k, False: 175k]
  |  Branch (12998:38): [True: 67.7k, False: 107k]
  |  Branch (12998:51): [True: 66.2k, False: 41.2k]
  ------------------
12999|   177k|}
_ZN8nlohmann16json_abi_v3_12_06detail13cpu_has_ssse3Ev:
12726|   364k|{
12727|   364k|    static std::atomic<int> known{0}; // 0: not asked yet, 1: no, 2: yes
12728|   364k|    int state = known.load(std::memory_order_relaxed);
12729|   364k|    if (JSON_HEDLEY_UNLIKELY(state == 0))
  ------------------
  |  | 1697|   364k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1, False: 364k]
  |  |  ------------------
  ------------------
12730|      1|    {
12731|      1|        state = cpu_ssse3() ? 2 : 1;
  ------------------
  |  Branch (12731:17): [True: 1, False: 0]
  ------------------
12732|      1|        known.store(state, std::memory_order_relaxed);
12733|      1|    }
12734|   364k|    return state == 2;
12735|   364k|}
_ZN8nlohmann16json_abi_v3_12_06detail9cpu_ssse3Ev:
12707|      1|{
12708|       |#if defined(_MSC_VER) && !defined(__clang__)
12709|       |    std::array<int, 4> regs {{}};
12710|       |    __cpuid(regs.data(), 1);
12711|       |    return (static_cast<unsigned>(regs[2]) & (1u << 9u)) != 0;
12712|       |#else
12713|      1|    unsigned eax = 0;
12714|      1|    unsigned ebx = 0;
12715|      1|    unsigned ecx = 0;
12716|      1|    unsigned edx = 0;
12717|      1|    return __get_cpuid(1, &eax, &ebx, &ecx, &edx) != 0 && (ecx & (1u << 9u)) != 0;
  ------------------
  |  Branch (12717:12): [True: 1, False: 0]
  |  Branch (12717:59): [True: 1, False: 0]
  ------------------
12718|      1|#endif
12719|      1|}
_ZN8nlohmann16json_abi_v3_12_06detail18scan_string_vectorEPKhS3_:
13316|   364k|{
13317|   364k|    const unsigned char* block = p;
13318|   364k|    if (vector_utf8_run(p, e, block))
  ------------------
  |  Branch (13318:9): [True: 2.10k, False: 362k]
  ------------------
13319|  2.10k|    {
13320|  2.10k|        return block;
13321|  2.10k|    }
13322|   362k|    return scan_string_finish(p, block, e);
13323|   364k|}
_ZN8nlohmann16json_abi_v3_12_06detail15vector_utf8_runEPKhS3_RS3_:
12802|   364k|{
12803|   364k|    using lookup = utf8_lookup4<>;
12804|   364k|    const unsigned char* block = p;
12805|       |#if JSON_SCAN_NEON
12806|       |    const uint8x16_t t1h = vld1q_u8(lookup::byte_1_high.data());
12807|       |    const uint8x16_t t1l = vld1q_u8(lookup::byte_1_low.data());
12808|       |    const uint8x16_t t2h = vld1q_u8(lookup::byte_2_high.data());
12809|       |    uint8x16_t prev = vdupq_n_u8(0);
12810|       |    while (e - block >= 16)
12811|       |    {
12812|       |        const uint8x16_t in = vld1q_u8(block);
12813|       |        // the quote and the control characters: (c ^ 2) < 33 (see vector_plain_run())
12814|       |        const uint8x16_t special = vorrq_u8(vceqq_u8(in, vdupq_n_u8('\\')), vcltq_u8(veorq_u8(in, vdupq_n_u8(2)), vdupq_n_u8(33)));
12815|       |        const uint8x16_t prev1 = vextq_u8(prev, in, 15);
12816|       |        const uint8x16_t sc = vandq_u8(vandq_u8(vqtbl1q_u8(t1h, vshrq_n_u8(prev1, 4)), vqtbl1q_u8(t1l, vandq_u8(prev1, vdupq_n_u8(0x0F)))), vqtbl1q_u8(t2h, vshrq_n_u8(in, 4)));
12817|       |        const uint8x16_t must23 = vorrq_u8(vqsubq_u8(vextq_u8(prev, in, 14), vdupq_n_u8(0xE0 - 0x80)), vqsubq_u8(vextq_u8(prev, in, 13), vdupq_n_u8(0xF0 - 0x80)));
12818|       |        const uint8x16_t err = veorq_u8(vandq_u8(must23, vdupq_n_u8(0x80)), sc);
12819|       |        const std::uint64_t special_bits = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(vreinterpretq_u16_u8(special), 4)), 0);
12820|       |        const std::uint64_t err_bits = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(vreinterpretq_u16_u8(vtstq_u8(err, err)), 4)), 0);
12821|       |        if (special_bits != 0)
12822|       |        {
12823|       |            // errors up to the special byte count (an incomplete sequence
12824|       |            // before a quote shows at the quote); the bytes after it do not
12825|       |            const unsigned k = static_cast<unsigned>(count_trailing_zeros(special_bits)) >> 2u;
12826|       |            const std::uint64_t upto = k == 15 ? ~std::uint64_t{0} :
12827|       |                                       (std::uint64_t{1} << (4u * (k + 1u))) - 1u;
12828|       |            if ((err_bits & upto) == 0)
12829|       |            {
12830|       |                block_out = block + k;
12831|       |                return true;
12832|       |            }
12833|       |            break;
12834|       |        }
12835|       |        if (err_bits != 0)
12836|       |        {
12837|       |            break;
12838|       |        }
12839|       |        prev = in;
12840|       |        block += 16;
12841|       |    }
12842|       |#else
12843|       |    // the same with SSSE3 (pshufb for the table lookups; nibbles from 16-bit
12844|       |    // shifts, as there are no byte shifts)
12845|   364k|    const __m128i t1h = _mm_loadu_si128(static_cast<const __m128i*>(static_cast<const void*>(lookup::byte_1_high.data()))); // NOLINT(bugprone-casting-through-void)
12846|   364k|    const __m128i t1l = _mm_loadu_si128(static_cast<const __m128i*>(static_cast<const void*>(lookup::byte_1_low.data()))); // NOLINT(bugprone-casting-through-void)
12847|   364k|    const __m128i t2h = _mm_loadu_si128(static_cast<const __m128i*>(static_cast<const void*>(lookup::byte_2_high.data()))); // NOLINT(bugprone-casting-through-void)
12848|   364k|    const __m128i nibble = _mm_set1_epi8(0x0F);
12849|   364k|    const __m128i zero = _mm_setzero_si128();
12850|   364k|    __m128i prev = zero;
12851|   366k|    while (e - block >= 16)
  ------------------
  |  Branch (12851:12): [True: 269k, False: 97.6k]
  ------------------
12852|   269k|    {
12853|   269k|        const __m128i in = _mm_loadu_si128(static_cast<const __m128i*>(static_cast<const void*>(block))); // NOLINT(bugprone-casting-through-void)
12854|       |        // the quote and the control characters: (c ^ 2) < 33, that is,
12855|       |        // (c ^ 2) - 32 saturates to 0 (see vector_plain_run())
12856|   269k|        const __m128i special = _mm_or_si128(_mm_cmpeq_epi8(in, _mm_set1_epi8('\\')),
12857|   269k|                                             _mm_cmpeq_epi8(_mm_subs_epu8(_mm_xor_si128(in, _mm_set1_epi8(2)), _mm_set1_epi8(32)), zero));
12858|   269k|        const __m128i prev1 = _mm_alignr_epi8(in, prev, 15);
12859|   269k|        const __m128i sc = _mm_and_si128(_mm_and_si128(_mm_shuffle_epi8(t1h, _mm_and_si128(_mm_srli_epi16(prev1, 4), nibble)),
12860|   269k|                                         _mm_shuffle_epi8(t1l, _mm_and_si128(prev1, nibble))),
12861|   269k|                                         _mm_shuffle_epi8(t2h, _mm_and_si128(_mm_srli_epi16(in, 4), nibble)));
12862|   269k|        const __m128i must23 = _mm_or_si128(_mm_subs_epu8(_mm_alignr_epi8(in, prev, 14), _mm_set1_epi8(0xE0 - 0x80)),
12863|   269k|                                            _mm_subs_epu8(_mm_alignr_epi8(in, prev, 13), _mm_set1_epi8(0xF0 - 0x80)));
12864|   269k|        const __m128i err = _mm_xor_si128(_mm_and_si128(must23, _mm_set1_epi8(static_cast<char>(-128))), sc);
12865|   269k|        const auto special_bits = static_cast<unsigned>(_mm_movemask_epi8(special));
12866|   269k|        const auto err_bits = ~static_cast<unsigned>(_mm_movemask_epi8(_mm_cmpeq_epi8(err, zero))) & 0xFFFFu;
12867|   269k|        if (special_bits != 0)
  ------------------
  |  Branch (12867:13): [True: 168k, False: 100k]
  ------------------
12868|   168k|        {
12869|   168k|            const auto k = static_cast<unsigned>(count_trailing_zeros(static_cast<std::uint64_t>(special_bits)));
12870|   168k|            if ((err_bits & ((2u << k) - 1u)) == 0)
  ------------------
  |  Branch (12870:17): [True: 2.10k, False: 166k]
  ------------------
12871|  2.10k|            {
12872|  2.10k|                block_out = block + k;
12873|  2.10k|                return true;
12874|  2.10k|            }
12875|   166k|            break;
12876|   168k|        }
12877|   100k|        if (err_bits != 0)
  ------------------
  |  Branch (12877:13): [True: 98.5k, False: 2.16k]
  ------------------
12878|  98.5k|        {
12879|  98.5k|            break;
12880|  98.5k|        }
12881|  2.16k|        prev = in;
12882|  2.16k|        block += 16;
12883|  2.16k|    }
12884|   362k|#endif
12885|   362k|    block_out = block;
12886|   362k|    return false;
12887|   364k|}
_ZN8nlohmann16json_abi_v3_12_06detail18scan_string_finishEPKhS3_S3_:
13274|   362k|{
13275|   365k|    for (int i = 1; i <= 3 && block - i >= p; ++i)
  ------------------
  |  Branch (13275:21): [True: 364k, False: 510]
  |  Branch (13275:31): [True: 3.70k, False: 360k]
  ------------------
13276|  3.70k|    {
13277|  3.70k|        const unsigned char c = block[-i];
13278|  3.70k|        if (c < 0x80)
  ------------------
  |  Branch (13278:13): [True: 384, False: 3.32k]
  ------------------
13279|    384|        {
13280|    384|            break;
13281|    384|        }
13282|  3.32k|        if (c >= 0xC0)
  ------------------
  |  Branch (13282:13): [True: 810, False: 2.51k]
  ------------------
13283|    810|        {
13284|    810|            const int len = 2 + static_cast<int>(c >= 0xE0) + static_cast<int>(c >= 0xF0);
13285|    810|            if (len > i)
  ------------------
  |  Branch (13285:17): [True: 570, False: 240]
  ------------------
13286|    570|            {
13287|    570|                block -= i;
13288|    570|            }
13289|    810|            break;
13290|    810|        }
13291|  3.32k|    }
13292|   402k|    for (p = block; p != e;)
  ------------------
  |  Branch (13292:21): [True: 401k, False: 1.58k]
  ------------------
13293|   401k|    {
13294|   401k|        if (*p < 0x80)
  ------------------
  |  Branch (13294:13): [True: 14.7k, False: 386k]
  ------------------
13295|  14.7k|        {
13296|  14.7k|            if (is_string_special(*p))
  ------------------
  |  Branch (13296:17): [True: 1.17k, False: 13.6k]
  ------------------
13297|  1.17k|            {
13298|  1.17k|                return p;
13299|  1.17k|            }
13300|  13.6k|            ++p;
13301|  13.6k|            continue;
13302|  14.7k|        }
13303|   386k|        const std::size_t n = validate_one_utf8(p, static_cast<std::size_t>(e - p));
13304|   386k|        if (n == 0)
  ------------------
  |  Branch (13304:13): [True: 359k, False: 26.4k]
  ------------------
13305|   359k|        {
13306|   359k|            return p;
13307|   359k|        }
13308|  26.4k|        p += n;
13309|  26.4k|    }
13310|  1.58k|    return p;
13311|   362k|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE8put_charEc:
38914|   234k|    {
38915|   234k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos == write_buffer.size()))
  ------------------
  |  | 1697|   234k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 270, False: 234k]
  |  |  ------------------
  ------------------
38916|    270|        {
38917|    270|            flush();
38918|    270|        }
38919|   234k|        write_buffer[write_buffer_pos++] = c;
38920|   234k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE14put_object_keyILm3EEEvRKSC_RAT__Kc:
38294|  69.4k|    {
38295|  69.4k|#if JSON_LITTLE_ENDIAN_TARGET
38296|  69.4k|        if (put_short_quoted(s, tail))
  ------------------
  |  Branch (38296:13): [True: 23.1k, False: 46.2k]
  ------------------
38297|  23.1k|        {
38298|  23.1k|            return;
38299|  23.1k|        }
38300|  46.2k|#endif
38301|  46.2k|        put_char('"');
38302|  46.2k|        dump_escaped(s);
38303|  46.2k|        put_literal(tail);
38304|  46.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE16put_short_quotedILm3EEEbRKSC_RAT__Kc:
38348|  69.4k|    {
38349|  69.4k|        const std::size_t n = s.size();
38350|  69.4k|        if (n > short_string_max || write_buffer_pos + n + N > write_buffer.size())
  ------------------
  |  Branch (38350:13): [True: 5.75k, False: 63.6k]
  |  Branch (38350:37): [True: 150, False: 63.5k]
  ------------------
38351|  5.90k|        {
38352|  5.90k|            return false;
38353|  5.90k|        }
38354|       |
38355|  63.5k|        char* d = write_buffer.data() + write_buffer_pos + 1;
38356|  63.5k|        const char* const p = s.data();
38357|       |
38358|  63.5k|        if (n >= 8)
  ------------------
  |  Branch (38358:13): [True: 9.06k, False: 54.4k]
  ------------------
38359|  9.06k|        {
38360|  9.06k|#if JSON_SCAN_VECTOR
38361|  9.06k|            if (!(n >= 16 ? copy_plain_vectors(d, p, n) : copy_plain_halves(d, p, n)))
  ------------------
  |  Branch (38361:17): [True: 8.85k, False: 210]
  |  Branch (38361:19): [True: 4.48k, False: 4.57k]
  ------------------
38362|  8.85k|            {
38363|  8.85k|                return false;
38364|  8.85k|            }
38365|       |#else
38366|       |            const auto a = load_word<std::uint64_t>(p);
38367|       |            const auto b = load_word<std::uint64_t>(p + n - 8);
38368|       |            if ((swar_not_plain(a) | swar_not_plain(b)) != 0)
38369|       |            {
38370|       |                return false;
38371|       |            }
38372|       |            store_word(d, a);
38373|       |            store_word(d + n - 8, b);
38374|       |#endif
38375|  9.06k|        }
38376|  54.4k|        else if (n >= 4)
  ------------------
  |  Branch (38376:18): [True: 7.23k, False: 47.2k]
  ------------------
38377|  7.23k|        {
38378|  7.23k|            const auto a = load_word<std::uint32_t>(p);
38379|  7.23k|            const auto b = load_word<std::uint32_t>(p + n - 4);
38380|       |            // the bytes above the string are filled with a plain character
38381|  7.23k|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 4)))
38382|  7.23k|                                    | (0x4141414141414141ull << (8 * n));
38383|  7.23k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38383:17): [True: 7.01k, False: 216]
  ------------------
38384|  7.01k|            {
38385|  7.01k|                return false;
38386|  7.01k|            }
38387|    216|            store_word(d, a);
38388|    216|            store_word(d + n - 4, b);
38389|    216|        }
38390|  47.2k|        else if (n >= 2)
  ------------------
  |  Branch (38390:18): [True: 8.12k, False: 39.1k]
  ------------------
38391|  8.12k|        {
38392|  8.12k|            const auto a = load_word<std::uint16_t>(p);
38393|  8.12k|            const auto b = load_word<std::uint16_t>(p + n - 2);
38394|  8.12k|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 2)))
38395|  8.12k|                                    | (0x4141414141414141ull << (8 * n));
38396|  8.12k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38396:17): [True: 7.54k, False: 576]
  ------------------
38397|  7.54k|            {
38398|  7.54k|                return false;
38399|  7.54k|            }
38400|    576|            store_word(d, a);
38401|    576|            store_word(d + n - 2, b);
38402|    576|        }
38403|  39.1k|        else if (n == 1)
  ------------------
  |  Branch (38403:18): [True: 26.7k, False: 12.3k]
  ------------------
38404|  26.7k|        {
38405|  26.7k|            const std::uint64_t w = static_cast<std::uint64_t>(static_cast<unsigned char>(p[0])) | (0x4141414141414141ull << 8u);
38406|  26.7k|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38406:17): [True: 16.9k, False: 9.84k]
  ------------------
38407|  16.9k|            {
38408|  16.9k|                return false;
38409|  16.9k|            }
38410|  9.84k|            *d = p[0];
38411|  9.84k|        }
38412|       |
38413|  23.1k|        d[-1] = '"';
38414|  23.1k|        std::memcpy(d + n, tail, N - 1);
38415|  23.1k|        write_buffer_pos += n + N;
38416|  23.1k|        return true;
38417|  63.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11dump_scalarERKSG_m:
38106|   103k|    {
38107|   103k|        switch (val.m_data.m_type)
38108|   103k|        {
38109|  4.60k|            case value_t::string:
  ------------------
  |  Branch (38109:13): [True: 4.60k, False: 99.2k]
  ------------------
38110|  4.60k|            {
38111|  4.60k|                dump_string_value(*val.m_data.m_value.string);
38112|  4.60k|                return;
38113|      0|            }
38114|       |
38115|  5.44k|            case value_t::binary:
  ------------------
  |  Branch (38115:13): [True: 5.44k, False: 98.4k]
  ------------------
38116|  5.44k|            {
38117|  5.44k|                dump_binary_value(current_indent, *val.m_data.m_value.binary);
38118|  5.44k|                return;
38119|      0|            }
38120|       |
38121|  8.45k|            case value_t::boolean:
  ------------------
  |  Branch (38121:13): [True: 8.45k, False: 95.3k]
  ------------------
38122|  8.45k|            {
38123|  8.45k|                if (val.m_data.m_value.boolean)
  ------------------
  |  Branch (38123:21): [True: 6.51k, False: 1.93k]
  ------------------
38124|  6.51k|                {
38125|  6.51k|                    put_literal("true");
38126|  6.51k|                }
38127|  1.93k|                else
38128|  1.93k|                {
38129|  1.93k|                    put_literal("false");
38130|  1.93k|                }
38131|  8.45k|                return;
38132|      0|            }
38133|       |
38134|  6.60k|            case value_t::number_integer:
  ------------------
  |  Branch (38134:13): [True: 6.60k, False: 97.2k]
  ------------------
38135|  6.60k|            {
38136|  6.60k|                dump_signed_value(val.m_data.m_value.number_integer);
38137|  6.60k|                return;
38138|      0|            }
38139|       |
38140|  5.27k|            case value_t::number_unsigned:
  ------------------
  |  Branch (38140:13): [True: 5.27k, False: 98.5k]
  ------------------
38141|  5.27k|            {
38142|  5.27k|                dump_unsigned_value(val.m_data.m_value.number_unsigned);
38143|  5.27k|                return;
38144|      0|            }
38145|       |
38146|  7.69k|            case value_t::number_float:
  ------------------
  |  Branch (38146:13): [True: 7.69k, False: 96.1k]
  ------------------
38147|  7.69k|            {
38148|  7.69k|                dump_float_value(val.m_data.m_value.number_float);
38149|  7.69k|                return;
38150|      0|            }
38151|       |
38152|      0|            case value_t::discarded:
  ------------------
  |  Branch (38152:13): [True: 0, False: 103k]
  ------------------
38153|      0|            {
38154|      0|                put_literal("<discarded>");
38155|      0|                return;
38156|      0|            }
38157|       |
38158|  65.7k|            case value_t::null:
  ------------------
  |  Branch (38158:13): [True: 65.7k, False: 38.0k]
  ------------------
38159|  65.7k|            {
38160|  65.7k|                put_literal("null");
38161|  65.7k|                return;
38162|      0|            }
38163|       |
38164|      0|            case value_t::object: // LCOV_EXCL_LINE
  ------------------
  |  Branch (38164:13): [True: 0, False: 103k]
  ------------------
38165|      0|            case value_t::array:  // LCOV_EXCL_LINE
  ------------------
  |  Branch (38165:13): [True: 0, False: 103k]
  ------------------
38166|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (38166:13): [True: 0, False: 103k]
  ------------------
38167|       |                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (38167:17): [Folded, False: 0]
  ------------------
38168|   103k|        }
38169|   103k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17dump_string_valueERKSC_:
38174|  4.60k|    {
38175|  4.60k|#if JSON_LITTLE_ENDIAN_TARGET
38176|  4.60k|        if (s.size() <= short_string_max && put_short_quoted(s, "\""))
  ------------------
  |  Branch (38176:13): [True: 4.33k, False: 264]
  |  Branch (38176:45): [True: 1.94k, False: 2.39k]
  ------------------
38177|  1.94k|        {
38178|  1.94k|            return;
38179|  1.94k|        }
38180|  2.65k|#endif
38181|  2.65k|        put_char('"');
38182|  2.65k|        dump_escaped(s);
38183|  2.65k|        put_char('"');
38184|  2.65k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE16put_short_quotedILm2EEEbRKSC_RAT__Kc:
38348|  4.33k|    {
38349|  4.33k|        const std::size_t n = s.size();
38350|  4.33k|        if (n > short_string_max || write_buffer_pos + n + N > write_buffer.size())
  ------------------
  |  Branch (38350:13): [True: 0, False: 4.33k]
  |  Branch (38350:37): [True: 54, False: 4.28k]
  ------------------
38351|     54|        {
38352|     54|            return false;
38353|     54|        }
38354|       |
38355|  4.28k|        char* d = write_buffer.data() + write_buffer_pos + 1;
38356|  4.28k|        const char* const p = s.data();
38357|       |
38358|  4.28k|        if (n >= 8)
  ------------------
  |  Branch (38358:13): [True: 816, False: 3.46k]
  ------------------
38359|    816|        {
38360|    816|#if JSON_SCAN_VECTOR
38361|    816|            if (!(n >= 16 ? copy_plain_vectors(d, p, n) : copy_plain_halves(d, p, n)))
  ------------------
  |  Branch (38361:17): [True: 774, False: 42]
  |  Branch (38361:19): [True: 420, False: 396]
  ------------------
38362|    774|            {
38363|    774|                return false;
38364|    774|            }
38365|       |#else
38366|       |            const auto a = load_word<std::uint64_t>(p);
38367|       |            const auto b = load_word<std::uint64_t>(p + n - 8);
38368|       |            if ((swar_not_plain(a) | swar_not_plain(b)) != 0)
38369|       |            {
38370|       |                return false;
38371|       |            }
38372|       |            store_word(d, a);
38373|       |            store_word(d + n - 8, b);
38374|       |#endif
38375|    816|        }
38376|  3.46k|        else if (n >= 4)
  ------------------
  |  Branch (38376:18): [True: 492, False: 2.97k]
  ------------------
38377|    492|        {
38378|    492|            const auto a = load_word<std::uint32_t>(p);
38379|    492|            const auto b = load_word<std::uint32_t>(p + n - 4);
38380|       |            // the bytes above the string are filled with a plain character
38381|    492|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 4)))
38382|    492|                                    | (0x4141414141414141ull << (8 * n));
38383|    492|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38383:17): [True: 456, False: 36]
  ------------------
38384|    456|            {
38385|    456|                return false;
38386|    456|            }
38387|     36|            store_word(d, a);
38388|     36|            store_word(d + n - 4, b);
38389|     36|        }
38390|  2.97k|        else if (n >= 2)
  ------------------
  |  Branch (38390:18): [True: 318, False: 2.65k]
  ------------------
38391|    318|        {
38392|    318|            const auto a = load_word<std::uint16_t>(p);
38393|    318|            const auto b = load_word<std::uint16_t>(p + n - 2);
38394|    318|            const std::uint64_t w = a | (static_cast<std::uint64_t>(b) << (8 * (n - 2)))
38395|    318|                                    | (0x4141414141414141ull << (8 * n));
38396|    318|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38396:17): [True: 240, False: 78]
  ------------------
38397|    240|            {
38398|    240|                return false;
38399|    240|            }
38400|     78|            store_word(d, a);
38401|     78|            store_word(d + n - 2, b);
38402|     78|        }
38403|  2.65k|        else if (n == 1)
  ------------------
  |  Branch (38403:18): [True: 984, False: 1.67k]
  ------------------
38404|    984|        {
38405|    984|            const std::uint64_t w = static_cast<std::uint64_t>(static_cast<unsigned char>(p[0])) | (0x4141414141414141ull << 8u);
38406|    984|            if (swar_not_plain(w) != 0)
  ------------------
  |  Branch (38406:17): [True: 870, False: 114]
  ------------------
38407|    870|            {
38408|    870|                return false;
38409|    870|            }
38410|    114|            *d = p[0];
38411|    114|        }
38412|       |
38413|  1.94k|        d[-1] = '"';
38414|  1.94k|        std::memcpy(d + n, tail, N - 1);
38415|  1.94k|        write_buffer_pos += n + N;
38416|  1.94k|        return true;
38417|  4.28k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17dump_binary_valueEmRKNS0_27byte_container_with_subtypeISF_EE:
38206|  5.44k|    {
38207|  5.44k|        if (pretty_print)
  ------------------
  |  Branch (38207:13): [True: 0, False: 5.44k]
  ------------------
38208|      0|        {
38209|       |            // variable to hold indentation for the bytes
38210|      0|            const auto new_indent = next_indent(current_indent, indent_step);
38211|       |
38212|      0|            put_literal_indent("{\n", new_indent);
38213|      0|            put_literal("\"bytes\": [");
38214|       |
38215|      0|            if (!binary.empty())
  ------------------
  |  Branch (38215:17): [True: 0, False: 0]
  ------------------
38216|      0|            {
38217|      0|                for (auto i = binary.cbegin(); i != binary.cend() - 1; ++i)
  ------------------
  |  Branch (38217:48): [True: 0, False: 0]
  ------------------
38218|      0|                {
38219|      0|                    dump_byte(*i);
38220|      0|                    put_literal(", ");
38221|      0|                }
38222|      0|                dump_byte(binary.back());
38223|      0|            }
38224|       |
38225|      0|            put_literal_indent("],\n", new_indent);
38226|       |
38227|      0|            put_literal("\"subtype\": ");
38228|      0|            if (binary.has_subtype())
  ------------------
  |  Branch (38228:17): [True: 0, False: 0]
  ------------------
38229|      0|            {
38230|      0|                dump_subtype(binary.subtype());
38231|      0|            }
38232|      0|            else
38233|      0|            {
38234|      0|                put_literal("null");
38235|      0|            }
38236|      0|            put_literal_indent("\n", current_indent);
38237|      0|            put_char('}');
38238|      0|        }
38239|  5.44k|        else
38240|  5.44k|        {
38241|  5.44k|            put_literal("{\"bytes\":[");
38242|       |
38243|  5.44k|            if (!binary.empty())
  ------------------
  |  Branch (38243:17): [True: 3.39k, False: 2.05k]
  ------------------
38244|  3.39k|            {
38245|  34.2k|                for (auto i = binary.cbegin(); i != binary.cend() - 1; ++i)
  ------------------
  |  Branch (38245:48): [True: 30.8k, False: 3.39k]
  ------------------
38246|  30.8k|                {
38247|  30.8k|                    dump_byte(*i);
38248|  30.8k|                    put_char(',');
38249|  30.8k|                }
38250|  3.39k|                dump_byte(binary.back());
38251|  3.39k|            }
38252|       |
38253|  5.44k|            put_literal("],\"subtype\":");
38254|  5.44k|            if (binary.has_subtype())
  ------------------
  |  Branch (38254:17): [True: 5.44k, False: 0]
  ------------------
38255|  5.44k|            {
38256|  5.44k|                dump_subtype(binary.subtype());
38257|  5.44k|                put_char('}');
38258|  5.44k|            }
38259|      0|            else
38260|      0|            {
38261|      0|                put_literal("null}");
38262|      0|            }
38263|  5.44k|        }
38264|  5.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm11EEEvRAT__Kc:
39040|  5.44k|    {
39041|  5.44k|        static_assert(N >= 2, "put_literal expects a non-empty string literal");
39042|       |        // the array bound counts the terminating NUL, which is not written
39043|  5.44k|        constexpr std::size_t length = N - 1;
39044|  5.44k|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|  5.44k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  5.44k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 36, False: 5.40k]
  |  |  ------------------
  ------------------
39047|     36|        {
39048|     36|            flush();
39049|     36|        }
39050|  5.44k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|  5.44k|        write_buffer_pos += length;
39052|  5.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9dump_byteIhEEvT_:
39434|  34.2k|    {
39435|  34.2k|        dump_byte(value, std::integral_constant < bool,
39436|  34.2k|                  std::is_unsigned<ByteType>::value && sizeof(ByteType) == 1
39437|  34.2k|                  && !std::is_same<ByteType, bool>::value > {});
39438|  34.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE9dump_byteIhEEvT_NS4_17integral_constantIbLb1EEE:
39448|  34.2k|    {
39449|  34.2k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + 3 > write_buffer.size()))
  ------------------
  |  | 1697|  34.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 60, False: 34.1k]
  |  |  ------------------
  ------------------
39450|     60|        {
39451|     60|            flush();
39452|     60|        }
39453|       |
39454|  34.2k|        const auto byte = static_cast<unsigned>(value);
39455|       |        // Accumulate the offset in a local and store it back once. Writing
39456|       |        // through write_buffer[] is a char write, which may alias any object,
39457|       |        // so with the member updated in place the compiler has to reload and
39458|       |        // store it around every digit - measured 2.4x slower on a dump of a
39459|       |        // multi-megabyte binary value.
39460|  34.2k|        std::size_t pos = write_buffer_pos;
39461|       |
39462|  34.2k|        if (byte >= 100)
  ------------------
  |  Branch (39462:13): [True: 10.5k, False: 23.6k]
  ------------------
39463|  10.5k|        {
39464|  10.5k|            write_buffer[pos++] = static_cast<char>('0' + (byte / 100));
39465|  10.5k|            write_buffer[pos++] = static_cast<char>('0' + ((byte / 10) % 10));
39466|  10.5k|        }
39467|  23.6k|        else if (byte >= 10)
  ------------------
  |  Branch (39467:18): [True: 9.48k, False: 14.2k]
  ------------------
39468|  9.48k|        {
39469|  9.48k|            write_buffer[pos++] = static_cast<char>('0' + (byte / 10));
39470|  9.48k|        }
39471|       |
39472|  34.2k|        write_buffer[pos++] = static_cast<char>('0' + (byte % 10));
39473|       |
39474|  34.2k|        write_buffer_pos = pos;
39475|  34.2k|    }
_ZNK8nlohmann16json_abi_v3_12_027byte_container_with_subtypeINSt3__16vectorIhNS2_9allocatorIhEEEEE11has_subtypeEv:
 8590|  12.9k|    {
 8591|  12.9k|        return m_has_subtype;
 8592|  12.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12dump_subtypeEm:
39489|  5.44k|    {
39490|  5.44k|        dump_subtype(subtype, std::integral_constant<bool, magnitude_has_at_least_64_bits> {});
39491|  5.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12dump_subtypeEmNS4_17integral_constantIbLb1EEE:
39494|  5.44k|    {
39495|  5.44k|        dump_integer(subtype);
39496|  5.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12dump_integerImTnNS4_9enable_ifIXoooosr3std11is_integralIT_EE5valuesr3std7is_sameISK_mEE5valuesr3std7is_sameISK_lEE5valueEiE4typeELi0EEEvSK_:
39527|  10.7k|    {
39528|  10.7k|        static constexpr std::array<std::array<char, 2>, 100> digits_to_99
39529|  10.7k|        {
39530|  10.7k|            {
39531|  10.7k|                {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
39532|  10.7k|                {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
39533|  10.7k|                {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
39534|  10.7k|                {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
39535|  10.7k|                {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
39536|  10.7k|                {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
39537|  10.7k|                {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
39538|  10.7k|                {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
39539|  10.7k|                {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
39540|  10.7k|                {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
39541|  10.7k|            }
39542|  10.7k|        };
39543|       |
39544|       |        // special case for "0"
39545|  10.7k|        if (x == 0)
  ------------------
  |  Branch (39545:13): [True: 2.11k, False: 8.59k]
  ------------------
39546|  2.11k|        {
39547|  2.11k|            put_char('0');
39548|  2.11k|            return;
39549|  2.11k|        }
39550|       |
39551|       |        // use a pointer to fill the buffer (room for as much as number_buffer holds)
39552|  8.59k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + number_buffer.size() > write_buffer.size()))
  ------------------
  |  | 1697|  8.59k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 36, False: 8.56k]
  |  |  ------------------
  ------------------
39553|     36|        {
39554|     36|            flush();
39555|     36|        }
39556|  8.59k|        auto* buffer_ptr = write_buffer.data() + write_buffer_pos;
39557|       |
39558|  8.59k|        number_magnitude_t abs_value;
39559|       |
39560|       |        // one byte for the minus sign
39561|  8.59k|        unsigned int n_chars = 0;
39562|       |
39563|  8.59k|        if (is_negative_number(x))
  ------------------
  |  Branch (39563:13): [True: 0, False: 8.59k]
  ------------------
39564|      0|        {
39565|      0|            *buffer_ptr = '-';
39566|      0|            abs_value = remove_sign(static_cast<number_integer_t>(x));
39567|      0|            n_chars = 1;
39568|      0|        }
39569|  8.59k|        else
39570|  8.59k|        {
39571|  8.59k|            abs_value = static_cast<number_magnitude_t>(x);
39572|  8.59k|        }
39573|       |
39574|       |        // up to 16 digits: eight at a time (as the digits of floats), written
39575|       |        // without leading zeros
39576|  8.59k|        if (abs_value < 10000000000000000u)
  ------------------
  |  Branch (39576:13): [True: 5.32k, False: 3.27k]
  ------------------
39577|  5.32k|        {
39578|  5.32k|            const auto value = static_cast<std::uint64_t>(abs_value); // fits: abs_value < 10^16
39579|  5.32k|            const std::uint64_t upper = value / 100000000u;
39580|  5.32k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(upper != 0 ? upper : value);
  ------------------
  |  Branch (39580:70): [True: 1.61k, False: 3.71k]
  ------------------
39581|  5.32k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39582|  5.32k|            char* const p = buffer_ptr + n_chars;
39583|  5.32k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39584|  5.32k|            n_chars += 8 - leading;
39585|  5.32k|            if (upper != 0)
  ------------------
  |  Branch (39585:17): [True: 1.61k, False: 3.71k]
  ------------------
39586|  1.61k|            {
39587|  1.61k|                dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(value - (upper * 100000000u)) + 0x3030303030303030u);
39588|  1.61k|                n_chars += 8;
39589|  1.61k|            }
39590|  5.32k|            write_buffer_pos += n_chars;
39591|  5.32k|            return;
39592|  5.32k|        }
39593|       |
39594|       |        // 17 to 20 digits: the first one to four, then twice eight
39595|  3.27k|        if (magnitude_fits_64_bits(abs_value, std::integral_constant<bool, magnitude_has_at_most_64_bits>()))
  ------------------
  |  Branch (39595:13): [True: 3.27k, False: 0]
  ------------------
39596|  3.27k|        {
39597|  3.27k|            const auto value = static_cast<std::uint64_t>(abs_value);
39598|  3.27k|            const std::uint64_t top = value / 10000000000000000u; // 1 to 1844
39599|  3.27k|            const std::uint64_t low16 = value - (top * 10000000000000000u);
39600|  3.27k|            const std::uint64_t middle = low16 / 100000000u;
39601|  3.27k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(top);
39602|  3.27k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39603|  3.27k|            char* const p = buffer_ptr + n_chars;
39604|  3.27k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39605|  3.27k|            dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(middle) + 0x3030303030303030u);
39606|  3.27k|            dtoa_impl::store_msb_first(p + 16 - leading, dtoa_impl::eight_digit_bytes(low16 - (middle * 100000000u)) + 0x3030303030303030u);
39607|  3.27k|            write_buffer_pos += n_chars + 24 - leading;
39608|  3.27k|            return;
39609|  3.27k|        }
39610|       |
39611|      0|        n_chars += count_digits(abs_value);
39612|       |
39613|       |        // spare 1 byte for '\0'
39614|      0|        JSON_ASSERT(n_chars < number_buffer.size() - 1);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39614:9): [True: 0, False: 0]
  ------------------
39615|       |
39616|       |        // jump to the end to generate the string from backward,
39617|       |        // so we later avoid reversing the result
39618|      0|        buffer_ptr += n_chars;
39619|       |
39620|       |        // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
39621|       |        // See: https://www.youtube.com/watch?v=o4-CwDo2zpg
39622|      0|        while (abs_value >= 100)
  ------------------
  |  Branch (39622:16): [True: 0, False: 0]
  ------------------
39623|      0|        {
39624|      0|            const auto digits_index = static_cast<unsigned>((abs_value % 100));
39625|      0|            abs_value /= 100;
39626|      0|            *(--buffer_ptr) = digits_to_99[digits_index][1];
39627|      0|            *(--buffer_ptr) = digits_to_99[digits_index][0];
39628|      0|        }
39629|       |
39630|      0|        if (abs_value >= 10)
  ------------------
  |  Branch (39630:13): [True: 0, False: 0]
  ------------------
39631|      0|        {
39632|      0|            const auto digits_index = static_cast<unsigned>(abs_value);
39633|      0|            *(--buffer_ptr) = digits_to_99[digits_index][1];
39634|      0|            *(--buffer_ptr) = digits_to_99[digits_index][0];
39635|      0|        }
39636|      0|        else
39637|      0|        {
39638|      0|            *(--buffer_ptr) = static_cast<char>('0' + abs_value);
39639|      0|        }
39640|       |
39641|      0|        write_buffer_pos += n_chars;
39642|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE18is_negative_numberImTnNS4_9enable_ifIXsr3std11is_unsignedIT_EE5valueEiE4typeELi0EEEbSK_:
39415|  8.59k|    {
39416|  8.59k|        return false;
39417|  8.59k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11remove_signEl:
39793|  2.50k|    {
39794|  2.50k|        JSON_ASSERT(x < 0);
  ------------------
  |  | 2653|  2.50k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39794:9): [True: 2.50k, False: 0]
  ------------------
39795|  2.50k|        return static_cast<number_magnitude_t>(static_cast<number_magnitude_t>(-(x + 1)) + 1);
39796|  2.50k|    }
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl17eight_digit_bytesEm:
37132|  32.0k|{
37133|  32.0k|    const std::uint64_t abcd_efgh = abcdefgh + (((std::uint64_t{1} << 32u) - 10000u) * ((abcdefgh * (((std::uint64_t{1} << 40u) / 10000u) + 1u)) >> 40u));
37134|  32.0k|    const std::uint64_t ab_cd_ef_gh = abcd_efgh + (((std::uint64_t{1} << 16u) - 100u) * (((abcd_efgh * (((std::uint64_t{1} << 19u) / 100u) + 1u)) >> 19u) & 0x7F0000007Fu));
37135|  32.0k|    return ab_cd_ef_gh + (((std::uint64_t{1} << 8u) - 10u) * (((ab_cd_ef_gh * (((std::uint64_t{1} << 10u) / 10u) + 1u)) >> 10u) & 0x000F000F000F000Fu));
37136|  32.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail19count_leading_zerosEm:
 9062|  22.2k|{
 9063|  22.2k|#if defined(__GNUC__) || defined(__clang__)
 9064|  22.2k|    return __builtin_clzll(x);
 9065|       |#elif defined(_MSC_VER) && (defined(_M_X64) || defined(_M_ARM64))
 9066|       |    unsigned long index = 0; // NOLINT(runtime/int): the type _BitScan*64 takes
 9067|       |    _BitScanReverse64(&index, x);
 9068|       |    return 63 - static_cast<int>(index);
 9069|       |#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_ARM))
 9070|       |    unsigned long index = 0; // NOLINT(runtime/int): the type _BitScan* takes
 9071|       |    if (_BitScanReverse(&index, static_cast<unsigned long>(x >> 32u))) // NOLINT(runtime/int)
 9072|       |    {
 9073|       |        return 31 - static_cast<int>(index);
 9074|       |    }
 9075|       |    _BitScanReverse(&index, static_cast<unsigned long>(x)); // NOLINT(runtime/int)
 9076|       |    return 63 - static_cast<int>(index);
 9077|       |#elif defined(__cpp_lib_bitops)
 9078|       |    return std::countl_zero(x);
 9079|       |#else
 9080|       |    int n = 0;
 9081|       |    for (int shift = 32; shift != 0; shift >>= 1)
 9082|       |    {
 9083|       |        if ((x >> (64 - shift)) == 0)
 9084|       |        {
 9085|       |            n += shift;
 9086|       |            x <<= shift;
 9087|       |        }
 9088|       |    }
 9089|       |    return n;
 9090|       |#endif
 9091|  22.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl15store_msb_firstEPcm:
37142|  33.6k|{
37143|  33.6k|#if JSON_LITTLE_ENDIAN_TARGET
37144|  33.6k|    v = byteswap(v);
37145|  33.6k|    std::memcpy(p, &v, sizeof(v));
37146|       |#elif JSON_BIG_ENDIAN_TARGET
37147|       |    std::memcpy(p, &v, sizeof(v));
37148|       |#else
37149|       |    for (unsigned i = 0; i < 8; ++i)
37150|       |    {
37151|       |        p[i] = static_cast<char>(v >> (56u - (8u * i)));
37152|       |    }
37153|       |#endif
37154|  33.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail8byteswapEm:
 9172|  33.6k|{
 9173|  33.6k|#if defined(__GNUC__) || defined(__clang__)
 9174|  33.6k|    return __builtin_bswap64(x);
 9175|       |#elif defined(_MSC_VER)
 9176|       |    return _byteswap_uint64(x);
 9177|       |#elif defined(__cpp_lib_byteswap)
 9178|       |    return std::byteswap(x);
 9179|       |#else
 9180|       |    x = ((x & 0x00000000FFFFFFFFull) << 32u) | ((x & 0xFFFFFFFF00000000ull) >> 32u);
 9181|       |    x = ((x & 0x0000FFFF0000FFFFull) << 16u) | ((x & 0xFFFF0000FFFF0000ull) >> 16u);
 9182|       |    x = ((x & 0x00FF00FF00FF00FFull) << 8u) | ((x & 0xFF00FF00FF00FF00ull) >> 8u);
 9183|       |    return x;
 9184|       |#endif
 9185|  33.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE22magnitude_fits_64_bitsERKmNS4_17integral_constantIbLb1EEE:
39774|  4.95k|    {
39775|  4.95k|        return true;
39776|  4.95k|    }
_ZNK8nlohmann16json_abi_v3_12_027byte_container_with_subtypeINSt3__16vectorIhNS2_9allocatorIhEEEEE7subtypeEv:
 8583|  12.9k|    {
 8584|  12.9k|        return m_has_subtype ? m_subtype : static_cast<subtype_type>(-1);
  ------------------
  |  Branch (8584:16): [True: 12.9k, False: 0]
  ------------------
 8585|  12.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm13EEEvRAT__Kc:
39040|  5.44k|    {
39041|  5.44k|        static_assert(N >= 2, "put_literal expects a non-empty string literal");
39042|       |        // the array bound counts the terminating NUL, which is not written
39043|  5.44k|        constexpr std::size_t length = N - 1;
39044|  5.44k|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|  5.44k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  5.44k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 60, False: 5.38k]
  |  |  ------------------
  ------------------
39047|     60|        {
39048|     60|            flush();
39049|     60|        }
39050|  5.44k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|  5.44k|        write_buffer_pos += length;
39052|  5.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm5EEEvRAT__Kc:
39040|  72.5k|    {
39041|  72.5k|        static_assert(N >= 2, "put_literal expects a non-empty string literal");
39042|       |        // the array bound counts the terminating NUL, which is not written
39043|  72.5k|        constexpr std::size_t length = N - 1;
39044|  72.5k|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|  72.5k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  72.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 162, False: 72.3k]
  |  |  ------------------
  ------------------
39047|    162|        {
39048|    162|            flush();
39049|    162|        }
39050|  72.5k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|  72.5k|        write_buffer_pos += length;
39052|  72.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE11put_literalILm6EEEvRAT__Kc:
39040|  1.93k|    {
39041|  1.93k|        static_assert(N >= 2, "put_literal expects a non-empty string literal");
39042|       |        // the array bound counts the terminating NUL, which is not written
39043|  1.93k|        constexpr std::size_t length = N - 1;
39044|  1.93k|        static_assert(length < write_buffer_size, "string literal must fit into the write buffer");
39045|       |
39046|  1.93k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + length > write_buffer.size()))
  ------------------
  |  | 1697|  1.93k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 18, False: 1.92k]
  |  |  ------------------
  ------------------
39047|     18|        {
39048|     18|            flush();
39049|     18|        }
39050|  1.93k|        std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
39051|  1.93k|        write_buffer_pos += length;
39052|  1.93k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE17dump_signed_valueEl:
38191|  6.60k|    {
38192|  6.60k|        dump_integer(x);
38193|  6.60k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE12dump_integerIlTnNS4_9enable_ifIXoooosr3std11is_integralIT_EE5valuesr3std7is_sameISK_mEE5valuesr3std7is_sameISK_lEE5valueEiE4typeELi0EEEvSK_:
39527|  6.60k|    {
39528|  6.60k|        static constexpr std::array<std::array<char, 2>, 100> digits_to_99
39529|  6.60k|        {
39530|  6.60k|            {
39531|  6.60k|                {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}},
39532|  6.60k|                {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}},
39533|  6.60k|                {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}},
39534|  6.60k|                {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}},
39535|  6.60k|                {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}},
39536|  6.60k|                {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}},
39537|  6.60k|                {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}},
39538|  6.60k|                {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}},
39539|  6.60k|                {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}},
39540|  6.60k|                {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}},
39541|  6.60k|            }
39542|  6.60k|        };
39543|       |
39544|       |        // special case for "0"
39545|  6.60k|        if (x == 0)
  ------------------
  |  Branch (39545:13): [True: 300, False: 6.30k]
  ------------------
39546|    300|        {
39547|    300|            put_char('0');
39548|    300|            return;
39549|    300|        }
39550|       |
39551|       |        // use a pointer to fill the buffer (room for as much as number_buffer holds)
39552|  6.30k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + number_buffer.size() > write_buffer.size()))
  ------------------
  |  | 1697|  6.30k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 66, False: 6.24k]
  |  |  ------------------
  ------------------
39553|     66|        {
39554|     66|            flush();
39555|     66|        }
39556|  6.30k|        auto* buffer_ptr = write_buffer.data() + write_buffer_pos;
39557|       |
39558|  6.30k|        number_magnitude_t abs_value;
39559|       |
39560|       |        // one byte for the minus sign
39561|  6.30k|        unsigned int n_chars = 0;
39562|       |
39563|  6.30k|        if (is_negative_number(x))
  ------------------
  |  Branch (39563:13): [True: 2.50k, False: 3.79k]
  ------------------
39564|  2.50k|        {
39565|  2.50k|            *buffer_ptr = '-';
39566|  2.50k|            abs_value = remove_sign(static_cast<number_integer_t>(x));
39567|  2.50k|            n_chars = 1;
39568|  2.50k|        }
39569|  3.79k|        else
39570|  3.79k|        {
39571|  3.79k|            abs_value = static_cast<number_magnitude_t>(x);
39572|  3.79k|        }
39573|       |
39574|       |        // up to 16 digits: eight at a time (as the digits of floats), written
39575|       |        // without leading zeros
39576|  6.30k|        if (abs_value < 10000000000000000u)
  ------------------
  |  Branch (39576:13): [True: 4.62k, False: 1.68k]
  ------------------
39577|  4.62k|        {
39578|  4.62k|            const auto value = static_cast<std::uint64_t>(abs_value); // fits: abs_value < 10^16
39579|  4.62k|            const std::uint64_t upper = value / 100000000u;
39580|  4.62k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(upper != 0 ? upper : value);
  ------------------
  |  Branch (39580:70): [True: 2.43k, False: 2.19k]
  ------------------
39581|  4.62k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39582|  4.62k|            char* const p = buffer_ptr + n_chars;
39583|  4.62k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39584|  4.62k|            n_chars += 8 - leading;
39585|  4.62k|            if (upper != 0)
  ------------------
  |  Branch (39585:17): [True: 2.43k, False: 2.19k]
  ------------------
39586|  2.43k|            {
39587|  2.43k|                dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(value - (upper * 100000000u)) + 0x3030303030303030u);
39588|  2.43k|                n_chars += 8;
39589|  2.43k|            }
39590|  4.62k|            write_buffer_pos += n_chars;
39591|  4.62k|            return;
39592|  4.62k|        }
39593|       |
39594|       |        // 17 to 20 digits: the first one to four, then twice eight
39595|  1.68k|        if (magnitude_fits_64_bits(abs_value, std::integral_constant<bool, magnitude_has_at_most_64_bits>()))
  ------------------
  |  Branch (39595:13): [True: 1.68k, False: 0]
  ------------------
39596|  1.68k|        {
39597|  1.68k|            const auto value = static_cast<std::uint64_t>(abs_value);
39598|  1.68k|            const std::uint64_t top = value / 10000000000000000u; // 1 to 1844
39599|  1.68k|            const std::uint64_t low16 = value - (top * 10000000000000000u);
39600|  1.68k|            const std::uint64_t middle = low16 / 100000000u;
39601|  1.68k|            const std::uint64_t first = dtoa_impl::eight_digit_bytes(top);
39602|  1.68k|            const auto leading = static_cast<unsigned>(count_leading_zeros(first) / 8); // (first is not 0)
39603|  1.68k|            char* const p = buffer_ptr + n_chars;
39604|  1.68k|            dtoa_impl::store_msb_first(p, (first << (8 * leading)) + 0x3030303030303030u);
39605|  1.68k|            dtoa_impl::store_msb_first(p + 8 - leading, dtoa_impl::eight_digit_bytes(middle) + 0x3030303030303030u);
39606|  1.68k|            dtoa_impl::store_msb_first(p + 16 - leading, dtoa_impl::eight_digit_bytes(low16 - (middle * 100000000u)) + 0x3030303030303030u);
39607|  1.68k|            write_buffer_pos += n_chars + 24 - leading;
39608|  1.68k|            return;
39609|  1.68k|        }
39610|       |
39611|      0|        n_chars += count_digits(abs_value);
39612|       |
39613|       |        // spare 1 byte for '\0'
39614|      0|        JSON_ASSERT(n_chars < number_buffer.size() - 1);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (39614:9): [True: 0, False: 0]
  ------------------
39615|       |
39616|       |        // jump to the end to generate the string from backward,
39617|       |        // so we later avoid reversing the result
39618|      0|        buffer_ptr += n_chars;
39619|       |
39620|       |        // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
39621|       |        // See: https://www.youtube.com/watch?v=o4-CwDo2zpg
39622|      0|        while (abs_value >= 100)
  ------------------
  |  Branch (39622:16): [True: 0, False: 0]
  ------------------
39623|      0|        {
39624|      0|            const auto digits_index = static_cast<unsigned>((abs_value % 100));
39625|      0|            abs_value /= 100;
39626|      0|            *(--buffer_ptr) = digits_to_99[digits_index][1];
39627|      0|            *(--buffer_ptr) = digits_to_99[digits_index][0];
39628|      0|        }
39629|       |
39630|      0|        if (abs_value >= 10)
  ------------------
  |  Branch (39630:13): [True: 0, False: 0]
  ------------------
39631|      0|        {
39632|      0|            const auto digits_index = static_cast<unsigned>(abs_value);
39633|      0|            *(--buffer_ptr) = digits_to_99[digits_index][1];
39634|      0|            *(--buffer_ptr) = digits_to_99[digits_index][0];
39635|      0|        }
39636|      0|        else
39637|      0|        {
39638|      0|            *(--buffer_ptr) = static_cast<char>('0' + abs_value);
39639|      0|        }
39640|       |
39641|      0|        write_buffer_pos += n_chars;
39642|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE18is_negative_numberIlTnNS4_9enable_ifIXsr9is_signedIT_EE5valueEiE4typeELi0EEEbSK_:
39409|  6.30k|    {
39410|  6.30k|        return x < 0;
39411|  6.30k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE19dump_unsigned_valueEm:
38196|  5.27k|    {
38197|  5.27k|        dump_integer(x);
38198|  5.27k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE16dump_float_valueEd:
38201|  7.69k|    {
38202|  7.69k|        dump_float(x);
38203|  7.69k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10dump_floatEd:
39652|  7.69k|    {
39653|       |        // NaN / inf
39654|  7.69k|        if (!std::isfinite(x))
  ------------------
  |  Branch (39654:13): [True: 270, False: 7.42k]
  ------------------
39655|    270|        {
39656|    270|            put_literal("null");
39657|    270|            return;
39658|    270|        }
39659|       |
39660|       |        // If number_float_t is an IEEE-754 single or double precision number,
39661|       |        // use to_chars() to produce short numbers which are guaranteed to
39662|       |        // round-trip, using strtof and strtod, resp. (the shortest digits of
39663|       |        // Zmij for binary64, the Grisu2 algorithm for binary32).
39664|       |        //
39665|       |        // NB: The test below works if <long double> == <double>.
39666|  7.42k|        static constexpr bool is_ieee_single_or_double
39667|  7.42k|            = (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) ||
  ------------------
  |  Branch (39667:16): [True: 0, Folded]
  |  Branch (39667:66): [Folded, False: 0]
  |  Branch (39667:119): [Folded, False: 0]
  ------------------
39668|      0|              (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024);
  ------------------
  |  Branch (39668:16): [True: 0, Folded]
  |  Branch (39668:66): [True: 0, Folded]
  |  Branch (39668:119): [True: 0, Folded]
  ------------------
39669|       |
39670|  7.42k|        dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>());
39671|  7.42k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE10dump_floatEdNS4_17integral_constantIbLb1EEE:
39674|  7.42k|    {
39675|       |        // directly into the write buffer: copying the text from number_buffer
39676|       |        // right after to_chars() wrote it waits until its stores are done
39677|  7.42k|        if (JSON_HEDLEY_UNLIKELY(write_buffer_pos + number_buffer.size() > write_buffer.size()))
  ------------------
  |  | 1697|  7.42k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 90, False: 7.33k]
  |  |  ------------------
  ------------------
39678|     90|        {
39679|     90|            flush();
39680|     90|        }
39681|  7.42k|        auto* begin = write_buffer.data() + write_buffer_pos;
39682|  7.42k|        auto* end = ::nlohmann::detail::to_chars(begin, begin + number_buffer.size(), x);
39683|  7.42k|        write_buffer_pos += static_cast<std::size_t>(end - begin);
39684|  7.42k|    }
_ZN8nlohmann16json_abi_v3_12_06detail8to_charsIdEEPcS3_PKcT_:
37575|  7.42k|{
37576|  7.42k|    JSON_ASSERT(std::isfinite(value));
  ------------------
  |  | 2653|  7.42k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37576:5): [True: 7.42k, False: 0]
  ------------------
37577|       |
37578|       |    // Use signbit(value) instead of (value < 0) since signbit works for -0.
37579|  7.42k|    if (std::signbit(value))
  ------------------
  |  Branch (37579:9): [True: 1.68k, False: 5.74k]
  ------------------
37580|  1.68k|    {
37581|  1.68k|        value = -value;
37582|  1.68k|        *first++ = '-';
37583|  1.68k|    }
37584|       |
37585|  7.42k|#ifdef __GNUC__
37586|  7.42k|    JSON_HEDLEY_DIAGNOSTIC_PUSH
37587|  7.42k|    JSON_HEDLEY_PRAGMA(GCC diagnostic ignored "-Wfloat-equal")
37588|  7.42k|#endif
37589|  7.42k|    if (value == 0) // +-0
  ------------------
  |  Branch (37589:9): [True: 78, False: 7.35k]
  ------------------
37590|     78|    {
37591|     78|        *first++ = '0';
37592|       |        // Make it look like a floating-point number (#362, #378)
37593|     78|        *first++ = '.';
37594|     78|        *first++ = '0';
37595|     78|        return first;
37596|     78|    }
37597|  7.35k|#ifdef __GNUC__
37598|  7.35k|    JSON_HEDLEY_DIAGNOSTIC_POP
37599|  7.35k|#endif
37600|       |
37601|  7.35k|    return dtoa_impl::write_positive(first, last, value);
37602|  7.42k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_positiveIdEEPcS4_PKcT_:
37555|  7.35k|{
37556|  7.35k|    return write_positive(first, last, value, is_binary64<FloatType> {});
37557|  7.35k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_positiveIdEEPcS4_PKcT_NSt3__117integral_constantIbLb1EEE:
37537|  7.35k|{
37538|  7.35k|    return write_positive_zmij(first, last, value);
37539|  7.35k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl19write_positive_zmijIdEEPcS4_PKcT_:
37515|  7.35k|{
37516|  7.35k|    static_assert(is_binary64<FloatType>::value,
37517|  7.35k|                  "internal error: the conversion of Zmij needs IEEE 754 binary64 numbers");
37518|  7.35k|    const auto bits = bit_cast<std::uint64_t>(value);
37519|  7.35k|    const zmij::shortest_decimal d = zmij::to_shortest(bits);
37520|  7.35k|    if (JSON_HEDLEY_LIKELY(last - first >= 41))
  ------------------
  |  | 1696|  7.35k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 7.35k, False: 0]
  |  |  ------------------
  ------------------
37521|  7.35k|    {
37522|  7.35k|        return write_shortest(first, d);
37523|  7.35k|    }
37524|      0|    std::array<char, 64> buf; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
37525|      0|    const auto len = static_cast<std::size_t>(write_shortest(buf.data(), d) - buf.data());
37526|      0|    JSON_ASSERT(last - first >= static_cast<std::ptrdiff_t>(len));
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37526:5): [True: 0, False: 0]
  ------------------
37527|      0|    std::memcpy(first, buf.data(), len);
37528|      0|    return first + len;
37529|      0|}
_ZN8nlohmann16json_abi_v3_12_06detail8bit_castImdEET_RKT0_:
 9129|  7.35k|{
 9130|  7.35k|    static_assert(sizeof(To) == sizeof(From), "bit_cast needs types of the same size");
 9131|       |#if defined(__cpp_lib_bit_cast)
 9132|       |    return std::bit_cast<To>(from);
 9133|       |#else
 9134|  7.35k|    To to {};
 9135|  7.35k|    std::memcpy(&to, &from, sizeof(To));
 9136|  7.35k|    return to;
 9137|  7.35k|#endif
 9138|  7.35k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij11to_shortestEm:
36050|  7.35k|{
36051|  7.35k|    constexpr int extra_shift = 9;
36052|  7.35k|    const auto raw_exp = static_cast<int>((bits >> 52u) & 0x7FFu);
36053|  7.35k|    std::uint64_t bin_sig = bits & ((std::uint64_t{1} << 52u) - 1);
36054|       |    // a power of two has a narrower interval below (except the smallest normal)
36055|  7.35k|    const bool regular = bin_sig != 0 || raw_exp <= 1;
  ------------------
  |  Branch (36055:26): [True: 6.45k, False: 900]
  |  Branch (36055:42): [True: 6, False: 894]
  ------------------
36056|  7.35k|    const int bin_exp = (raw_exp == 0 ? 1 : raw_exp) - 1075;
  ------------------
  |  Branch (36056:26): [True: 2.44k, False: 4.90k]
  ------------------
36057|  7.35k|    if (raw_exp != 0)
  ------------------
  |  Branch (36057:9): [True: 4.90k, False: 2.44k]
  ------------------
36058|  4.90k|    {
36059|  4.90k|        bin_sig |= std::uint64_t{1} << 52u;
36060|  4.90k|    }
36061|       |    // floor(log10(2^bin_exp)), or floor(log10(3/4 * 2^bin_exp)) for the irregular case
36062|  7.35k|    const int dec_exp = ((bin_exp * 315653) - (regular ? 0 : 131072)) >> 20;
  ------------------
  |  Branch (36062:48): [True: 6.45k, False: 894]
  ------------------
36063|       |    // scaled by 10^(-dec_exp - 1): the integral part is the shorter candidate
36064|  7.35k|    const int shift = bin_exp + ((-(dec_exp + 1) * 217707) >> 16) + 1 + extra_shift;
36065|  7.35k|    const uint128_parts p10 = pow10(-dec_exp - 1);
36066|  7.35k|    const uint128_parts p = umul192_hi128(p10.high, p10.low, bin_sig << static_cast<unsigned>(shift));
36067|  7.35k|    std::uint64_t integral = p.high >> static_cast<unsigned>(extra_shift);
36068|       |    // (no casts in the shifts: MSVC 2015 warns C4554 on them despite the parentheses)
36069|  7.35k|    constexpr auto fractional_low_shift = static_cast<unsigned>(extra_shift);
36070|  7.35k|    constexpr unsigned fractional_high_shift = 64u - fractional_low_shift;
36071|  7.35k|    const std::uint64_t fractional = (p.high << fractional_high_shift) | (p.low >> fractional_low_shift);
36072|  7.35k|    std::uint64_t digit = 0;
36073|  7.35k|    bool round_up = false;
36074|  7.35k|    bool round_down = false;
36075|  7.35k|    if (JSON_HEDLEY_LIKELY(regular))
  ------------------
  |  | 1696|  7.35k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 6.45k, False: 894]
  |  |  ------------------
  ------------------
36076|  6.45k|    {
36077|  6.45k|        const std::uint64_t half_ulp = (p10.high >> static_cast<unsigned>(extra_shift + 1 - shift)) + (1 - (bin_sig & 1u));
36078|  6.45k|        round_up = fractional + half_ulp < fractional;
36079|  6.45k|        round_down = half_ulp > fractional;
36080|       |        // the last digit of the longer candidate, rounded to nearest
36081|  6.45k|        digit = umul128_add_hi64(fractional, 10, (std::uint64_t{1} << 63u) + 6);
36082|  6.45k|        if (fractional == (std::uint64_t{1} << 62u))
  ------------------
  |  Branch (36082:13): [True: 90, False: 6.36k]
  ------------------
36083|     90|        {
36084|     90|            digit = 2; // 2.5 rounds to 2
36085|     90|        }
36086|  6.45k|    }
36087|    894|    else
36088|    894|    {
36089|    894|        const std::uint64_t half_ulp = p10.high >> static_cast<unsigned>(extra_shift + 1 - shift);
36090|    894|        round_up = half_ulp > ~std::uint64_t{0} - fractional;
36091|    894|        round_down = (half_ulp >> 1u) > fractional;
36092|    894|        digit = umul128_add_hi64(fractional, 10, (std::uint64_t{1} << 63u) - 1);
36093|    894|        const std::uint64_t lowest = umul128_add_hi64(fractional - (half_ulp >> 1u), 10, ~std::uint64_t{0});
36094|    894|        digit = digit < lowest ? lowest : digit;
  ------------------
  |  Branch (36094:17): [True: 408, False: 486]
  ------------------
36095|    894|    }
36096|  7.35k|    integral += round_up ? 1u : 0u;
  ------------------
  |  Branch (36096:17): [True: 1.62k, False: 5.73k]
  ------------------
36097|       |    // if the shorter candidate is outside the rounding interval: one digit more
36098|  7.35k|    return shortest_decimal{integral, dec_exp, static_cast<unsigned char>(digit), !round_up && !round_down};
  ------------------
  |  Branch (36098:83): [True: 5.73k, False: 1.62k]
  |  Branch (36098:96): [True: 4.18k, False: 1.54k]
  ------------------
36099|  7.35k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij5pow10Ei:
36004|  7.35k|{
36005|  7.35k|    if (k > pow5_128_largest_power)
  ------------------
  |  Branch (36005:9): [True: 3.43k, False: 3.91k]
  ------------------
36006|  3.43k|    {
36007|  3.43k|        return compute_pow10(k); // (only for the smallest doubles)
36008|  3.43k|    }
36009|  3.91k|    const auto i = 2 * static_cast<std::size_t>(k - pow5_128_smallest_power);
36010|  3.91k|    uint128_parts r{pow5_128()[i + 1], pow5_128()[i]};
36011|  3.91k|    const std::uint64_t adjust = static_cast<unsigned>(k + 27) < 27u ? 1u : 0u;
  ------------------
  |  Branch (36011:34): [True: 234, False: 3.68k]
  ------------------
36012|  3.91k|    r.high -= r.low < adjust ? 1u : 0u;
  ------------------
  |  Branch (36012:15): [True: 0, False: 3.91k]
  ------------------
36013|  3.91k|    r.low -= adjust;
36014|  3.91k|    return r;
36015|  7.35k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij13compute_pow10Ei:
35974|  3.43k|{
35975|  3.43k|    const auto i = static_cast<unsigned>(k + 307);
35976|  3.43k|    const std::uint64_t m = pow10_minor()[(i + 24) % 28];
35977|  3.43k|    const std::size_t j = 2 * static_cast<std::size_t>((i + 24) / 28);
35978|  3.43k|    const std::uint64_t h_hi = pow10_major()[j];
35979|  3.43k|    const std::uint64_t h_lo = pow10_major()[j + 1];
35980|  3.43k|    const std::uint64_t h1 = full_multiplication(h_lo, m).high;
35981|  3.43k|    const std::uint64_t c0 = h_lo * m;
35982|  3.43k|    const std::uint64_t c1 = h1 + (h_hi * m);
35983|  3.43k|    const std::uint64_t c2 = (c1 < h1 ? 1u : 0u) + full_multiplication(h_hi, m).high;
  ------------------
  |  Branch (35983:31): [True: 66, False: 3.36k]
  ------------------
35984|  3.43k|    uint128_parts r{};
35985|  3.43k|    if ((c2 >> 63u) != 0)
  ------------------
  |  Branch (35985:9): [True: 810, False: 2.62k]
  ------------------
35986|    810|    {
35987|    810|        r.high = c2;
35988|    810|        r.low = c1;
35989|    810|    }
35990|  2.62k|    else
35991|  2.62k|    {
35992|  2.62k|        r.high = (c2 << 1u) | (c1 >> 63u);
35993|  2.62k|        r.low = (c1 << 1u) | (c0 >> 63u);
35994|  2.62k|    }
35995|  3.43k|    r.low -= (pow10_fixups()[i >> 5u] >> (i & 31u)) & 1u;
35996|  3.43k|    return r;
35997|  3.43k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij11pow10_minorEv:
35922|  3.43k|{
35923|  3.43k|    static const std::array<std::uint64_t, 28> table =
35924|  3.43k|    {
35925|  3.43k|        {
35926|  3.43k|            0x8000000000000000u, 0xa000000000000000u, 0xc800000000000000u, 0xfa00000000000000u, 0x9c40000000000000u,
35927|  3.43k|            0xc350000000000000u, 0xf424000000000000u, 0x9896800000000000u, 0xbebc200000000000u, 0xee6b280000000000u,
35928|  3.43k|            0x9502f90000000000u, 0xba43b74000000000u, 0xe8d4a51000000000u, 0x9184e72a00000000u, 0xb5e620f480000000u,
35929|  3.43k|            0xe35fa931a0000000u, 0x8e1bc9bf04000000u, 0xb1a2bc2ec5000000u, 0xde0b6b3a76400000u, 0x8ac7230489e80000u,
35930|  3.43k|            0xad78ebc5ac620000u, 0xd8d726b7177a8000u, 0x878678326eac9000u, 0xa968163f0a57b400u, 0xd3c21bcecceda100u,
35931|  3.43k|            0x84595161401484a0u, 0xa56fa5b99019a5c8u, 0xcecb8f27f4200f3au
35932|  3.43k|        }
35933|  3.43k|    };
35934|  3.43k|    return table;
35935|  3.43k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij11pow10_majorEv:
35939|  6.86k|{
35940|  6.86k|    static const std::array<std::uint64_t, 50> table =
35941|  6.86k|    {
35942|  6.86k|        {
35943|  6.86k|            0xaddcb9e83c6b1793u, 0xdf4abe242a1bbf3eu, 0xaf8e5410288e1b6fu, 0x07ecf0ae5ee44ddau, 0xb1442798f49ffb4au, 0x99cd11cfdf41779du,
35944|  6.86k|            0xb2fe3f0b8599ef07u, 0x861fa7e6dcb4aa15u, 0xb4bca50b065abe63u, 0x0fed077a756b53aau, 0xb67f6455292cbf08u, 0x1a3bc84c17b1d543u,
35945|  6.86k|            0xb84687c269ef3bfbu, 0x3d5d514f40eea742u, 0xba121a4650e4ddebu, 0x92f34d62616ce413u, 0xbbe226efb628afeau, 0x890489f70a55368cu,
35946|  6.86k|            0xbdb6b8e905cb600fu, 0x5400e987bbc1c921u, 0xbf8fdb78849a5f96u, 0xde98520472bdd034u, 0xc16d9a0095928a27u, 0x75b7053c0f178294u,
35947|  6.86k|            0xc350000000000000u, 0x0000000000000000u, 0xc5371912364ce305u, 0x6c28000000000000u, 0xc722f0ef9d80aad6u, 0x424d3ad2b7b97ef6u,
35948|  6.86k|            0xc913936dd571c84cu, 0x03bc3a19cd1e38eau, 0xcb090c8001ab551cu, 0x5cadf5bfd3072cc6u, 0xcd036837130890a1u, 0x36dba887c37a8c10u,
35949|  6.86k|            0xcf02b2c21207ef2eu, 0x94f967e45e03f4bcu, 0xd106f86e69d785c7u, 0xe13336d701beba52u, 0xd31045a8341ca07cu, 0x1ede48111209a051u,
35950|  6.86k|            0xd51ea6fa85785631u, 0x552a74227f3ea566u, 0xd732290fbacaf133u, 0xa97c177947ad4096u, 0xd94ad8b1c7380874u, 0x18375281ae7822bdu,
35951|  6.86k|            0xdb68c2ca82ed2a05u, 0xa67398db9f6820e1u
35952|  6.86k|        }
35953|  6.86k|    };
35954|  6.86k|    return table;
35955|  6.86k|}
_ZN8nlohmann16json_abi_v3_12_06detail19full_multiplicationEmm:
 9195|  29.8k|{
 9196|  29.8k|#if defined(__SIZEOF_INT128__)
 9197|  29.8k|    __extension__ using uint128 = unsigned __int128;
 9198|  29.8k|    const uint128 r = static_cast<uint128>(a) * b;
 9199|  29.8k|    return {static_cast<std::uint64_t>(r), static_cast<std::uint64_t>(r >> 64u)};
 9200|       |#elif defined(_MSC_VER) && defined(_M_X64)
 9201|       |    std::uint64_t high = 0;
 9202|       |    const std::uint64_t low = _umul128(a, b, &high);
 9203|       |    return {low, high};
 9204|       |#elif defined(_MSC_VER) && defined(_M_ARM64)
 9205|       |    return {a * b, __umulh(a, b)};
 9206|       |#else
 9207|       |    const std::uint64_t a_lo = a & 0xFFFFFFFFu;
 9208|       |    const std::uint64_t a_hi = a >> 32u;
 9209|       |    const std::uint64_t b_lo = b & 0xFFFFFFFFu;
 9210|       |    const std::uint64_t b_hi = b >> 32u;
 9211|       |    const std::uint64_t lo_lo = a_lo * b_lo;
 9212|       |    const std::uint64_t hi_lo = a_hi * b_lo;
 9213|       |    const std::uint64_t lo_hi = a_lo * b_hi;
 9214|       |    const std::uint64_t hi_hi = a_hi * b_hi;
 9215|       |    const std::uint64_t cross = (lo_lo >> 32u) + (hi_lo & 0xFFFFFFFFu) + lo_hi;
 9216|       |    return {(cross << 32u) | (lo_lo & 0xFFFFFFFFu), (hi_lo >> 32u) + (cross >> 32u) + hi_hi};
 9217|       |#endif
 9218|  29.8k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij12pow10_fixupsEv:
35959|  3.43k|{
35960|  3.43k|    static const std::array<std::uint32_t, 21> table =
35961|  3.43k|    {
35962|  3.43k|        {
35963|  3.43k|            0x8d8fc810u, 0x06100293u, 0x19000000u, 0x00100000u, 0x00000908u, 0x00000000u, 0x04e00300u, 0x3807e0b2u, 0x3d83d793u, 0x0006f5ccu,
35964|  3.43k|            0x00000000u, 0xffff0000u, 0x8076337du, 0x4ff45ba0u, 0x09405033u, 0x034376d9u, 0x09000000u, 0x4e100501u, 0x076d14dcu, 0xf964f45eu,
35965|  3.43k|            0x0000003du
35966|  3.43k|        }
35967|  3.43k|    };
35968|  3.43k|    return table;
35969|  3.43k|}
_ZN8nlohmann16json_abi_v3_12_06detail8pow5_128Ev:
11090|  7.83k|{
11091|  7.83k|    static const std::array<std::uint64_t, 1302> table =
11092|  7.83k|    {
11093|  7.83k|        {
11094|  7.83k|            0xeef453d6923bd65au, 0x113faa2906a13b3fu, 0x9558b4661b6565f8u, 0x4ac7ca59a424c507u,
11095|  7.83k|            0xbaaee17fa23ebf76u, 0x5d79bcf00d2df649u, 0xe95a99df8ace6f53u, 0xf4d82c2c107973dcu,
11096|  7.83k|            0x91d8a02bb6c10594u, 0x79071b9b8a4be869u, 0xb64ec836a47146f9u, 0x9748e2826cdee284u,
11097|  7.83k|            0xe3e27a444d8d98b7u, 0xfd1b1b2308169b25u, 0x8e6d8c6ab0787f72u, 0xfe30f0f5e50e20f7u,
11098|  7.83k|            0xb208ef855c969f4fu, 0xbdbd2d335e51a935u, 0xde8b2b66b3bc4723u, 0xad2c788035e61382u,
11099|  7.83k|            0x8b16fb203055ac76u, 0x4c3bcb5021afcc31u, 0xaddcb9e83c6b1793u, 0xdf4abe242a1bbf3du,
11100|  7.83k|            0xd953e8624b85dd78u, 0xd71d6dad34a2af0du, 0x87d4713d6f33aa6bu, 0x8672648c40e5ad68u,
11101|  7.83k|            0xa9c98d8ccb009506u, 0x680efdaf511f18c2u, 0xd43bf0effdc0ba48u, 0x0212bd1b2566def2u,
11102|  7.83k|            0x84a57695fe98746du, 0x014bb630f7604b57u, 0xa5ced43b7e3e9188u, 0x419ea3bd35385e2du,
11103|  7.83k|            0xcf42894a5dce35eau, 0x52064cac828675b9u, 0x818995ce7aa0e1b2u, 0x7343efebd1940993u,
11104|  7.83k|            0xa1ebfb4219491a1fu, 0x1014ebe6c5f90bf8u, 0xca66fa129f9b60a6u, 0xd41a26e077774ef6u,
11105|  7.83k|            0xfd00b897478238d0u, 0x8920b098955522b4u, 0x9e20735e8cb16382u, 0x55b46e5f5d5535b0u,
11106|  7.83k|            0xc5a890362fddbc62u, 0xeb2189f734aa831du, 0xf712b443bbd52b7bu, 0xa5e9ec7501d523e4u,
11107|  7.83k|            0x9a6bb0aa55653b2du, 0x47b233c92125366eu, 0xc1069cd4eabe89f8u, 0x999ec0bb696e840au,
11108|  7.83k|            0xf148440a256e2c76u, 0xc00670ea43ca250du, 0x96cd2a865764dbcau, 0x380406926a5e5728u,
11109|  7.83k|            0xbc807527ed3e12bcu, 0xc605083704f5ecf2u, 0xeba09271e88d976bu, 0xf7864a44c633682eu,
11110|  7.83k|            0x93445b8731587ea3u, 0x7ab3ee6afbe0211du, 0xb8157268fdae9e4cu, 0x5960ea05bad82964u,
11111|  7.83k|            0xe61acf033d1a45dfu, 0x6fb92487298e33bdu, 0x8fd0c16206306babu, 0xa5d3b6d479f8e056u,
11112|  7.83k|            0xb3c4f1ba87bc8696u, 0x8f48a4899877186cu, 0xe0b62e2929aba83cu, 0x331acdabfe94de87u,
11113|  7.83k|            0x8c71dcd9ba0b4925u, 0x9ff0c08b7f1d0b14u, 0xaf8e5410288e1b6fu, 0x07ecf0ae5ee44dd9u,
11114|  7.83k|            0xdb71e91432b1a24au, 0xc9e82cd9f69d6150u, 0x892731ac9faf056eu, 0xbe311c083a225cd2u,
11115|  7.83k|            0xab70fe17c79ac6cau, 0x6dbd630a48aaf406u, 0xd64d3d9db981787du, 0x092cbbccdad5b108u,
11116|  7.83k|            0x85f0468293f0eb4eu, 0x25bbf56008c58ea5u, 0xa76c582338ed2621u, 0xaf2af2b80af6f24eu,
11117|  7.83k|            0xd1476e2c07286faau, 0x1af5af660db4aee1u, 0x82cca4db847945cau, 0x50d98d9fc890ed4du,
11118|  7.83k|            0xa37fce126597973cu, 0xe50ff107bab528a0u, 0xcc5fc196fefd7d0cu, 0x1e53ed49a96272c8u,
11119|  7.83k|            0xff77b1fcbebcdc4fu, 0x25e8e89c13bb0f7au, 0x9faacf3df73609b1u, 0x77b191618c54e9acu,
11120|  7.83k|            0xc795830d75038c1du, 0xd59df5b9ef6a2417u, 0xf97ae3d0d2446f25u, 0x4b0573286b44ad1du,
11121|  7.83k|            0x9becce62836ac577u, 0x4ee367f9430aec32u, 0xc2e801fb244576d5u, 0x229c41f793cda73fu,
11122|  7.83k|            0xf3a20279ed56d48au, 0x6b43527578c1110fu, 0x9845418c345644d6u, 0x830a13896b78aaa9u,
11123|  7.83k|            0xbe5691ef416bd60cu, 0x23cc986bc656d553u, 0xedec366b11c6cb8fu, 0x2cbfbe86b7ec8aa8u,
11124|  7.83k|            0x94b3a202eb1c3f39u, 0x7bf7d71432f3d6a9u, 0xb9e08a83a5e34f07u, 0xdaf5ccd93fb0cc53u,
11125|  7.83k|            0xe858ad248f5c22c9u, 0xd1b3400f8f9cff68u, 0x91376c36d99995beu, 0x23100809b9c21fa1u,
11126|  7.83k|            0xb58547448ffffb2du, 0xabd40a0c2832a78au, 0xe2e69915b3fff9f9u, 0x16c90c8f323f516cu,
11127|  7.83k|            0x8dd01fad907ffc3bu, 0xae3da7d97f6792e3u, 0xb1442798f49ffb4au, 0x99cd11cfdf41779cu,
11128|  7.83k|            0xdd95317f31c7fa1du, 0x40405643d711d583u, 0x8a7d3eef7f1cfc52u, 0x482835ea666b2572u,
11129|  7.83k|            0xad1c8eab5ee43b66u, 0xda3243650005eecfu, 0xd863b256369d4a40u, 0x90bed43e40076a82u,
11130|  7.83k|            0x873e4f75e2224e68u, 0x5a7744a6e804a291u, 0xa90de3535aaae202u, 0x711515d0a205cb36u,
11131|  7.83k|            0xd3515c2831559a83u, 0x0d5a5b44ca873e03u, 0x8412d9991ed58091u, 0xe858790afe9486c2u,
11132|  7.83k|            0xa5178fff668ae0b6u, 0x626e974dbe39a872u, 0xce5d73ff402d98e3u, 0xfb0a3d212dc8128fu,
11133|  7.83k|            0x80fa687f881c7f8eu, 0x7ce66634bc9d0b99u, 0xa139029f6a239f72u, 0x1c1fffc1ebc44e80u,
11134|  7.83k|            0xc987434744ac874eu, 0xa327ffb266b56220u, 0xfbe9141915d7a922u, 0x4bf1ff9f0062baa8u,
11135|  7.83k|            0x9d71ac8fada6c9b5u, 0x6f773fc3603db4a9u, 0xc4ce17b399107c22u, 0xcb550fb4384d21d3u,
11136|  7.83k|            0xf6019da07f549b2bu, 0x7e2a53a146606a48u, 0x99c102844f94e0fbu, 0x2eda7444cbfc426du,
11137|  7.83k|            0xc0314325637a1939u, 0xfa911155fefb5308u, 0xf03d93eebc589f88u, 0x793555ab7eba27cau,
11138|  7.83k|            0x96267c7535b763b5u, 0x4bc1558b2f3458deu, 0xbbb01b9283253ca2u, 0x9eb1aaedfb016f16u,
11139|  7.83k|            0xea9c227723ee8bcbu, 0x465e15a979c1cadcu, 0x92a1958a7675175fu, 0x0bfacd89ec191ec9u,
11140|  7.83k|            0xb749faed14125d36u, 0xcef980ec671f667bu, 0xe51c79a85916f484u, 0x82b7e12780e7401au,
11141|  7.83k|            0x8f31cc0937ae58d2u, 0xd1b2ecb8b0908810u, 0xb2fe3f0b8599ef07u, 0x861fa7e6dcb4aa15u,
11142|  7.83k|            0xdfbdcece67006ac9u, 0x67a791e093e1d49au, 0x8bd6a141006042bdu, 0xe0c8bb2c5c6d24e0u,
11143|  7.83k|            0xaecc49914078536du, 0x58fae9f773886e18u, 0xda7f5bf590966848u, 0xaf39a475506a899eu,
11144|  7.83k|            0x888f99797a5e012du, 0x6d8406c952429603u, 0xaab37fd7d8f58178u, 0xc8e5087ba6d33b83u,
11145|  7.83k|            0xd5605fcdcf32e1d6u, 0xfb1e4a9a90880a64u, 0x855c3be0a17fcd26u, 0x5cf2eea09a55067fu,
11146|  7.83k|            0xa6b34ad8c9dfc06fu, 0xf42faa48c0ea481eu, 0xd0601d8efc57b08bu, 0xf13b94daf124da26u,
11147|  7.83k|            0x823c12795db6ce57u, 0x76c53d08d6b70858u, 0xa2cb1717b52481edu, 0x54768c4b0c64ca6eu,
11148|  7.83k|            0xcb7ddcdda26da268u, 0xa9942f5dcf7dfd09u, 0xfe5d54150b090b02u, 0xd3f93b35435d7c4cu,
11149|  7.83k|            0x9efa548d26e5a6e1u, 0xc47bc5014a1a6dafu, 0xc6b8e9b0709f109au, 0x359ab6419ca1091bu,
11150|  7.83k|            0xf867241c8cc6d4c0u, 0xc30163d203c94b62u, 0x9b407691d7fc44f8u, 0x79e0de63425dcf1du,
11151|  7.83k|            0xc21094364dfb5636u, 0x985915fc12f542e4u, 0xf294b943e17a2bc4u, 0x3e6f5b7b17b2939du,
11152|  7.83k|            0x979cf3ca6cec5b5au, 0xa705992ceecf9c42u, 0xbd8430bd08277231u, 0x50c6ff782a838353u,
11153|  7.83k|            0xece53cec4a314ebdu, 0xa4f8bf5635246428u, 0x940f4613ae5ed136u, 0x871b7795e136be99u,
11154|  7.83k|            0xb913179899f68584u, 0x28e2557b59846e3fu, 0xe757dd7ec07426e5u, 0x331aeada2fe589cfu,
11155|  7.83k|            0x9096ea6f3848984fu, 0x3ff0d2c85def7621u, 0xb4bca50b065abe63u, 0x0fed077a756b53a9u,
11156|  7.83k|            0xe1ebce4dc7f16dfbu, 0xd3e8495912c62894u, 0x8d3360f09cf6e4bdu, 0x64712dd7abbbd95cu,
11157|  7.83k|            0xb080392cc4349decu, 0xbd8d794d96aacfb3u, 0xdca04777f541c567u, 0xecf0d7a0fc5583a0u,
11158|  7.83k|            0x89e42caaf9491b60u, 0xf41686c49db57244u, 0xac5d37d5b79b6239u, 0x311c2875c522ced5u,
11159|  7.83k|            0xd77485cb25823ac7u, 0x7d633293366b828bu, 0x86a8d39ef77164bcu, 0xae5dff9c02033197u,
11160|  7.83k|            0xa8530886b54dbdebu, 0xd9f57f830283fdfcu, 0xd267caa862a12d66u, 0xd072df63c324fd7bu,
11161|  7.83k|            0x8380dea93da4bc60u, 0x4247cb9e59f71e6du, 0xa46116538d0deb78u, 0x52d9be85f074e608u,
11162|  7.83k|            0xcd795be870516656u, 0x67902e276c921f8bu, 0x806bd9714632dff6u, 0x00ba1cd8a3db53b6u,
11163|  7.83k|            0xa086cfcd97bf97f3u, 0x80e8a40eccd228a4u, 0xc8a883c0fdaf7df0u, 0x6122cd128006b2cdu,
11164|  7.83k|            0xfad2a4b13d1b5d6cu, 0x796b805720085f81u, 0x9cc3a6eec6311a63u, 0xcbe3303674053bb0u,
11165|  7.83k|            0xc3f490aa77bd60fcu, 0xbedbfc4411068a9cu, 0xf4f1b4d515acb93bu, 0xee92fb5515482d44u,
11166|  7.83k|            0x991711052d8bf3c5u, 0x751bdd152d4d1c4au, 0xbf5cd54678eef0b6u, 0xd262d45a78a0635du,
11167|  7.83k|            0xef340a98172aace4u, 0x86fb897116c87c34u, 0x9580869f0e7aac0eu, 0xd45d35e6ae3d4da0u,
11168|  7.83k|            0xbae0a846d2195712u, 0x8974836059cca109u, 0xe998d258869facd7u, 0x2bd1a438703fc94bu,
11169|  7.83k|            0x91ff83775423cc06u, 0x7b6306a34627ddcfu, 0xb67f6455292cbf08u, 0x1a3bc84c17b1d542u,
11170|  7.83k|            0xe41f3d6a7377eecau, 0x20caba5f1d9e4a93u, 0x8e938662882af53eu, 0x547eb47b7282ee9cu,
11171|  7.83k|            0xb23867fb2a35b28du, 0xe99e619a4f23aa43u, 0xdec681f9f4c31f31u, 0x6405fa00e2ec94d4u,
11172|  7.83k|            0x8b3c113c38f9f37eu, 0xde83bc408dd3dd04u, 0xae0b158b4738705eu, 0x9624ab50b148d445u,
11173|  7.83k|            0xd98ddaee19068c76u, 0x3badd624dd9b0957u, 0x87f8a8d4cfa417c9u, 0xe54ca5d70a80e5d6u,
11174|  7.83k|            0xa9f6d30a038d1dbcu, 0x5e9fcf4ccd211f4cu, 0xd47487cc8470652bu, 0x7647c3200069671fu,
11175|  7.83k|            0x84c8d4dfd2c63f3bu, 0x29ecd9f40041e073u, 0xa5fb0a17c777cf09u, 0xf468107100525890u,
11176|  7.83k|            0xcf79cc9db955c2ccu, 0x7182148d4066eeb4u, 0x81ac1fe293d599bfu, 0xc6f14cd848405530u,
11177|  7.83k|            0xa21727db38cb002fu, 0xb8ada00e5a506a7cu, 0xca9cf1d206fdc03bu, 0xa6d90811f0e4851cu,
11178|  7.83k|            0xfd442e4688bd304au, 0x908f4a166d1da663u, 0x9e4a9cec15763e2eu, 0x9a598e4e043287feu,
11179|  7.83k|            0xc5dd44271ad3cdbau, 0x40eff1e1853f29fdu, 0xf7549530e188c128u, 0xd12bee59e68ef47cu,
11180|  7.83k|            0x9a94dd3e8cf578b9u, 0x82bb74f8301958ceu, 0xc13a148e3032d6e7u, 0xe36a52363c1faf01u,
11181|  7.83k|            0xf18899b1bc3f8ca1u, 0xdc44e6c3cb279ac1u, 0x96f5600f15a7b7e5u, 0x29ab103a5ef8c0b9u,
11182|  7.83k|            0xbcb2b812db11a5deu, 0x7415d448f6b6f0e7u, 0xebdf661791d60f56u, 0x111b495b3464ad21u,
11183|  7.83k|            0x936b9fcebb25c995u, 0xcab10dd900beec34u, 0xb84687c269ef3bfbu, 0x3d5d514f40eea742u,
11184|  7.83k|            0xe65829b3046b0afau, 0x0cb4a5a3112a5112u, 0x8ff71a0fe2c2e6dcu, 0x47f0e785eaba72abu,
11185|  7.83k|            0xb3f4e093db73a093u, 0x59ed216765690f56u, 0xe0f218b8d25088b8u, 0x306869c13ec3532cu,
11186|  7.83k|            0x8c974f7383725573u, 0x1e414218c73a13fbu, 0xafbd2350644eeacfu, 0xe5d1929ef90898fau,
11187|  7.83k|            0xdbac6c247d62a583u, 0xdf45f746b74abf39u, 0x894bc396ce5da772u, 0x6b8bba8c328eb783u,
11188|  7.83k|            0xab9eb47c81f5114fu, 0x066ea92f3f326564u, 0xd686619ba27255a2u, 0xc80a537b0efefebdu,
11189|  7.83k|            0x8613fd0145877585u, 0xbd06742ce95f5f36u, 0xa798fc4196e952e7u, 0x2c48113823b73704u,
11190|  7.83k|            0xd17f3b51fca3a7a0u, 0xf75a15862ca504c5u, 0x82ef85133de648c4u, 0x9a984d73dbe722fbu,
11191|  7.83k|            0xa3ab66580d5fdaf5u, 0xc13e60d0d2e0ebbau, 0xcc963fee10b7d1b3u, 0x318df905079926a8u,
11192|  7.83k|            0xffbbcfe994e5c61fu, 0xfdf17746497f7052u, 0x9fd561f1fd0f9bd3u, 0xfeb6ea8bedefa633u,
11193|  7.83k|            0xc7caba6e7c5382c8u, 0xfe64a52ee96b8fc0u, 0xf9bd690a1b68637bu, 0x3dfdce7aa3c673b0u,
11194|  7.83k|            0x9c1661a651213e2du, 0x06bea10ca65c084eu, 0xc31bfa0fe5698db8u, 0x486e494fcff30a62u,
11195|  7.83k|            0xf3e2f893dec3f126u, 0x5a89dba3c3efccfau, 0x986ddb5c6b3a76b7u, 0xf89629465a75e01cu,
11196|  7.83k|            0xbe89523386091465u, 0xf6bbb397f1135823u, 0xee2ba6c0678b597fu, 0x746aa07ded582e2cu,
11197|  7.83k|            0x94db483840b717efu, 0xa8c2a44eb4571cdcu, 0xba121a4650e4ddebu, 0x92f34d62616ce413u,
11198|  7.83k|            0xe896a0d7e51e1566u, 0x77b020baf9c81d17u, 0x915e2486ef32cd60u, 0x0ace1474dc1d122eu,
11199|  7.83k|            0xb5b5ada8aaff80b8u, 0x0d819992132456bau, 0xe3231912d5bf60e6u, 0x10e1fff697ed6c69u,
11200|  7.83k|            0x8df5efabc5979c8fu, 0xca8d3ffa1ef463c1u, 0xb1736b96b6fd83b3u, 0xbd308ff8a6b17cb2u,
11201|  7.83k|            0xddd0467c64bce4a0u, 0xac7cb3f6d05ddbdeu, 0x8aa22c0dbef60ee4u, 0x6bcdf07a423aa96bu,
11202|  7.83k|            0xad4ab7112eb3929du, 0x86c16c98d2c953c6u, 0xd89d64d57a607744u, 0xe871c7bf077ba8b7u,
11203|  7.83k|            0x87625f056c7c4a8bu, 0x11471cd764ad4972u, 0xa93af6c6c79b5d2du, 0xd598e40d3dd89bcfu,
11204|  7.83k|            0xd389b47879823479u, 0x4aff1d108d4ec2c3u, 0x843610cb4bf160cbu, 0xcedf722a585139bau,
11205|  7.83k|            0xa54394fe1eedb8feu, 0xc2974eb4ee658828u, 0xce947a3da6a9273eu, 0x733d226229feea32u,
11206|  7.83k|            0x811ccc668829b887u, 0x0806357d5a3f525fu, 0xa163ff802a3426a8u, 0xca07c2dcb0cf26f7u,
11207|  7.83k|            0xc9bcff6034c13052u, 0xfc89b393dd02f0b5u, 0xfc2c3f3841f17c67u, 0xbbac2078d443ace2u,
11208|  7.83k|            0x9d9ba7832936edc0u, 0xd54b944b84aa4c0du, 0xc5029163f384a931u, 0x0a9e795e65d4df11u,
11209|  7.83k|            0xf64335bcf065d37du, 0x4d4617b5ff4a16d5u, 0x99ea0196163fa42eu, 0x504bced1bf8e4e45u,
11210|  7.83k|            0xc06481fb9bcf8d39u, 0xe45ec2862f71e1d6u, 0xf07da27a82c37088u, 0x5d767327bb4e5a4cu,
11211|  7.83k|            0x964e858c91ba2655u, 0x3a6a07f8d510f86fu, 0xbbe226efb628afeau, 0x890489f70a55368bu,
11212|  7.83k|            0xeadab0aba3b2dbe5u, 0x2b45ac74ccea842eu, 0x92c8ae6b464fc96fu, 0x3b0b8bc90012929du,
11213|  7.83k|            0xb77ada0617e3bbcbu, 0x09ce6ebb40173744u, 0xe55990879ddcaabdu, 0xcc420a6a101d0515u,
11214|  7.83k|            0x8f57fa54c2a9eab6u, 0x9fa946824a12232du, 0xb32df8e9f3546564u, 0x47939822dc96abf9u,
11215|  7.83k|            0xdff9772470297ebdu, 0x59787e2b93bc56f7u, 0x8bfbea76c619ef36u, 0x57eb4edb3c55b65au,
11216|  7.83k|            0xaefae51477a06b03u, 0xede622920b6b23f1u, 0xdab99e59958885c4u, 0xe95fab368e45ecedu,
11217|  7.83k|            0x88b402f7fd75539bu, 0x11dbcb0218ebb414u, 0xaae103b5fcd2a881u, 0xd652bdc29f26a119u,
11218|  7.83k|            0xd59944a37c0752a2u, 0x4be76d3346f0495fu, 0x857fcae62d8493a5u, 0x6f70a4400c562ddbu,
11219|  7.83k|            0xa6dfbd9fb8e5b88eu, 0xcb4ccd500f6bb952u, 0xd097ad07a71f26b2u, 0x7e2000a41346a7a7u,
11220|  7.83k|            0x825ecc24c873782fu, 0x8ed400668c0c28c8u, 0xa2f67f2dfa90563bu, 0x728900802f0f32fau,
11221|  7.83k|            0xcbb41ef979346bcau, 0x4f2b40a03ad2ffb9u, 0xfea126b7d78186bcu, 0xe2f610c84987bfa8u,
11222|  7.83k|            0x9f24b832e6b0f436u, 0x0dd9ca7d2df4d7c9u, 0xc6ede63fa05d3143u, 0x91503d1c79720dbbu,
11223|  7.83k|            0xf8a95fcf88747d94u, 0x75a44c6397ce912au, 0x9b69dbe1b548ce7cu, 0xc986afbe3ee11abau,
11224|  7.83k|            0xc24452da229b021bu, 0xfbe85badce996168u, 0xf2d56790ab41c2a2u, 0xfae27299423fb9c3u,
11225|  7.83k|            0x97c560ba6b0919a5u, 0xdccd879fc967d41au, 0xbdb6b8e905cb600fu, 0x5400e987bbc1c920u,
11226|  7.83k|            0xed246723473e3813u, 0x290123e9aab23b68u, 0x9436c0760c86e30bu, 0xf9a0b6720aaf6521u,
11227|  7.83k|            0xb94470938fa89bceu, 0xf808e40e8d5b3e69u, 0xe7958cb87392c2c2u, 0xb60b1d1230b20e04u,
11228|  7.83k|            0x90bd77f3483bb9b9u, 0xb1c6f22b5e6f48c2u, 0xb4ecd5f01a4aa828u, 0x1e38aeb6360b1af3u,
11229|  7.83k|            0xe2280b6c20dd5232u, 0x25c6da63c38de1b0u, 0x8d590723948a535fu, 0x579c487e5a38ad0eu,
11230|  7.83k|            0xb0af48ec79ace837u, 0x2d835a9df0c6d851u, 0xdcdb1b2798182244u, 0xf8e431456cf88e65u,
11231|  7.83k|            0x8a08f0f8bf0f156bu, 0x1b8e9ecb641b58ffu, 0xac8b2d36eed2dac5u, 0xe272467e3d222f3fu,
11232|  7.83k|            0xd7adf884aa879177u, 0x5b0ed81dcc6abb0fu, 0x86ccbb52ea94baeau, 0x98e947129fc2b4e9u,
11233|  7.83k|            0xa87fea27a539e9a5u, 0x3f2398d747b36224u, 0xd29fe4b18e88640eu, 0x8eec7f0d19a03aadu,
11234|  7.83k|            0x83a3eeeef9153e89u, 0x1953cf68300424acu, 0xa48ceaaab75a8e2bu, 0x5fa8c3423c052dd7u,
11235|  7.83k|            0xcdb02555653131b6u, 0x3792f412cb06794du, 0x808e17555f3ebf11u, 0xe2bbd88bbee40bd0u,
11236|  7.83k|            0xa0b19d2ab70e6ed6u, 0x5b6aceaeae9d0ec4u, 0xc8de047564d20a8bu, 0xf245825a5a445275u,
11237|  7.83k|            0xfb158592be068d2eu, 0xeed6e2f0f0d56712u, 0x9ced737bb6c4183du, 0x55464dd69685606bu,
11238|  7.83k|            0xc428d05aa4751e4cu, 0xaa97e14c3c26b886u, 0xf53304714d9265dfu, 0xd53dd99f4b3066a8u,
11239|  7.83k|            0x993fe2c6d07b7fabu, 0xe546a8038efe4029u, 0xbf8fdb78849a5f96u, 0xde98520472bdd033u,
11240|  7.83k|            0xef73d256a5c0f77cu, 0x963e66858f6d4440u, 0x95a8637627989aadu, 0xdde7001379a44aa8u,
11241|  7.83k|            0xbb127c53b17ec159u, 0x5560c018580d5d52u, 0xe9d71b689dde71afu, 0xaab8f01e6e10b4a6u,
11242|  7.83k|            0x9226712162ab070du, 0xcab3961304ca70e8u, 0xb6b00d69bb55c8d1u, 0x3d607b97c5fd0d22u,
11243|  7.83k|            0xe45c10c42a2b3b05u, 0x8cb89a7db77c506au, 0x8eb98a7a9a5b04e3u, 0x77f3608e92adb242u,
11244|  7.83k|            0xb267ed1940f1c61cu, 0x55f038b237591ed3u, 0xdf01e85f912e37a3u, 0x6b6c46dec52f6688u,
11245|  7.83k|            0x8b61313bbabce2c6u, 0x2323ac4b3b3da015u, 0xae397d8aa96c1b77u, 0xabec975e0a0d081au,
11246|  7.83k|            0xd9c7dced53c72255u, 0x96e7bd358c904a21u, 0x881cea14545c7575u, 0x7e50d64177da2e54u,
11247|  7.83k|            0xaa242499697392d2u, 0xdde50bd1d5d0b9e9u, 0xd4ad2dbfc3d07787u, 0x955e4ec64b44e864u,
11248|  7.83k|            0x84ec3c97da624ab4u, 0xbd5af13bef0b113eu, 0xa6274bbdd0fadd61u, 0xecb1ad8aeacdd58eu,
11249|  7.83k|            0xcfb11ead453994bau, 0x67de18eda5814af2u, 0x81ceb32c4b43fcf4u, 0x80eacf948770ced7u,
11250|  7.83k|            0xa2425ff75e14fc31u, 0xa1258379a94d028du, 0xcad2f7f5359a3b3eu, 0x096ee45813a04330u,
11251|  7.83k|            0xfd87b5f28300ca0du, 0x8bca9d6e188853fcu, 0x9e74d1b791e07e48u, 0x775ea264cf55347eu,
11252|  7.83k|            0xc612062576589ddau, 0x95364afe032a819eu, 0xf79687aed3eec551u, 0x3a83ddbd83f52205u,
11253|  7.83k|            0x9abe14cd44753b52u, 0xc4926a9672793543u, 0xc16d9a0095928a27u, 0x75b7053c0f178294u,
11254|  7.83k|            0xf1c90080baf72cb1u, 0x5324c68b12dd6339u, 0x971da05074da7beeu, 0xd3f6fc16ebca5e04u,
11255|  7.83k|            0xbce5086492111aeau, 0x88f4bb1ca6bcf585u, 0xec1e4a7db69561a5u, 0x2b31e9e3d06c32e6u,
11256|  7.83k|            0x9392ee8e921d5d07u, 0x3aff322e62439fd0u, 0xb877aa3236a4b449u, 0x09befeb9fad487c3u,
11257|  7.83k|            0xe69594bec44de15bu, 0x4c2ebe687989a9b4u, 0x901d7cf73ab0acd9u, 0x0f9d37014bf60a11u,
11258|  7.83k|            0xb424dc35095cd80fu, 0x538484c19ef38c95u, 0xe12e13424bb40e13u, 0x2865a5f206b06fbau,
11259|  7.83k|            0x8cbccc096f5088cbu, 0xf93f87b7442e45d4u, 0xafebff0bcb24aafeu, 0xf78f69a51539d749u,
11260|  7.83k|            0xdbe6fecebdedd5beu, 0xb573440e5a884d1cu, 0x89705f4136b4a597u, 0x31680a88f8953031u,
11261|  7.83k|            0xabcc77118461cefcu, 0xfdc20d2b36ba7c3eu, 0xd6bf94d5e57a42bcu, 0x3d32907604691b4du,
11262|  7.83k|            0x8637bd05af6c69b5u, 0xa63f9a49c2c1b110u, 0xa7c5ac471b478423u, 0x0fcf80dc33721d54u,
11263|  7.83k|            0xd1b71758e219652bu, 0xd3c36113404ea4a9u, 0x83126e978d4fdf3bu, 0x645a1cac083126eau,
11264|  7.83k|            0xa3d70a3d70a3d70au, 0x3d70a3d70a3d70a4u, 0xccccccccccccccccu, 0xcccccccccccccccdu,
11265|  7.83k|            0x8000000000000000u, 0x0000000000000000u, 0xa000000000000000u, 0x0000000000000000u,
11266|  7.83k|            0xc800000000000000u, 0x0000000000000000u, 0xfa00000000000000u, 0x0000000000000000u,
11267|  7.83k|            0x9c40000000000000u, 0x0000000000000000u, 0xc350000000000000u, 0x0000000000000000u,
11268|  7.83k|            0xf424000000000000u, 0x0000000000000000u, 0x9896800000000000u, 0x0000000000000000u,
11269|  7.83k|            0xbebc200000000000u, 0x0000000000000000u, 0xee6b280000000000u, 0x0000000000000000u,
11270|  7.83k|            0x9502f90000000000u, 0x0000000000000000u, 0xba43b74000000000u, 0x0000000000000000u,
11271|  7.83k|            0xe8d4a51000000000u, 0x0000000000000000u, 0x9184e72a00000000u, 0x0000000000000000u,
11272|  7.83k|            0xb5e620f480000000u, 0x0000000000000000u, 0xe35fa931a0000000u, 0x0000000000000000u,
11273|  7.83k|            0x8e1bc9bf04000000u, 0x0000000000000000u, 0xb1a2bc2ec5000000u, 0x0000000000000000u,
11274|  7.83k|            0xde0b6b3a76400000u, 0x0000000000000000u, 0x8ac7230489e80000u, 0x0000000000000000u,
11275|  7.83k|            0xad78ebc5ac620000u, 0x0000000000000000u, 0xd8d726b7177a8000u, 0x0000000000000000u,
11276|  7.83k|            0x878678326eac9000u, 0x0000000000000000u, 0xa968163f0a57b400u, 0x0000000000000000u,
11277|  7.83k|            0xd3c21bcecceda100u, 0x0000000000000000u, 0x84595161401484a0u, 0x0000000000000000u,
11278|  7.83k|            0xa56fa5b99019a5c8u, 0x0000000000000000u, 0xcecb8f27f4200f3au, 0x0000000000000000u,
11279|  7.83k|            0x813f3978f8940984u, 0x4000000000000000u, 0xa18f07d736b90be5u, 0x5000000000000000u,
11280|  7.83k|            0xc9f2c9cd04674edeu, 0xa400000000000000u, 0xfc6f7c4045812296u, 0x4d00000000000000u,
11281|  7.83k|            0x9dc5ada82b70b59du, 0xf020000000000000u, 0xc5371912364ce305u, 0x6c28000000000000u,
11282|  7.83k|            0xf684df56c3e01bc6u, 0xc732000000000000u, 0x9a130b963a6c115cu, 0x3c7f400000000000u,
11283|  7.83k|            0xc097ce7bc90715b3u, 0x4b9f100000000000u, 0xf0bdc21abb48db20u, 0x1e86d40000000000u,
11284|  7.83k|            0x96769950b50d88f4u, 0x1314448000000000u, 0xbc143fa4e250eb31u, 0x17d955a000000000u,
11285|  7.83k|            0xeb194f8e1ae525fdu, 0x5dcfab0800000000u, 0x92efd1b8d0cf37beu, 0x5aa1cae500000000u,
11286|  7.83k|            0xb7abc627050305adu, 0xf14a3d9e40000000u, 0xe596b7b0c643c719u, 0x6d9ccd05d0000000u,
11287|  7.83k|            0x8f7e32ce7bea5c6fu, 0xe4820023a2000000u, 0xb35dbf821ae4f38bu, 0xdda2802c8a800000u,
11288|  7.83k|            0xe0352f62a19e306eu, 0xd50b2037ad200000u, 0x8c213d9da502de45u, 0x4526f422cc340000u,
11289|  7.83k|            0xaf298d050e4395d6u, 0x9670b12b7f410000u, 0xdaf3f04651d47b4cu, 0x3c0cdd765f114000u,
11290|  7.83k|            0x88d8762bf324cd0fu, 0xa5880a69fb6ac800u, 0xab0e93b6efee0053u, 0x8eea0d047a457a00u,
11291|  7.83k|            0xd5d238a4abe98068u, 0x72a4904598d6d880u, 0x85a36366eb71f041u, 0x47a6da2b7f864750u,
11292|  7.83k|            0xa70c3c40a64e6c51u, 0x999090b65f67d924u, 0xd0cf4b50cfe20765u, 0xfff4b4e3f741cf6du,
11293|  7.83k|            0x82818f1281ed449fu, 0xbff8f10e7a8921a4u, 0xa321f2d7226895c7u, 0xaff72d52192b6a0du,
11294|  7.83k|            0xcbea6f8ceb02bb39u, 0x9bf4f8a69f764490u, 0xfee50b7025c36a08u, 0x02f236d04753d5b4u,
11295|  7.83k|            0x9f4f2726179a2245u, 0x01d762422c946590u, 0xc722f0ef9d80aad6u, 0x424d3ad2b7b97ef5u,
11296|  7.83k|            0xf8ebad2b84e0d58bu, 0xd2e0898765a7deb2u, 0x9b934c3b330c8577u, 0x63cc55f49f88eb2fu,
11297|  7.83k|            0xc2781f49ffcfa6d5u, 0x3cbf6b71c76b25fbu, 0xf316271c7fc3908au, 0x8bef464e3945ef7au,
11298|  7.83k|            0x97edd871cfda3a56u, 0x97758bf0e3cbb5acu, 0xbde94e8e43d0c8ecu, 0x3d52eeed1cbea317u,
11299|  7.83k|            0xed63a231d4c4fb27u, 0x4ca7aaa863ee4bddu, 0x945e455f24fb1cf8u, 0x8fe8caa93e74ef6au,
11300|  7.83k|            0xb975d6b6ee39e436u, 0xb3e2fd538e122b44u, 0xe7d34c64a9c85d44u, 0x60dbbca87196b616u,
11301|  7.83k|            0x90e40fbeea1d3a4au, 0xbc8955e946fe31cdu, 0xb51d13aea4a488ddu, 0x6babab6398bdbe41u,
11302|  7.83k|            0xe264589a4dcdab14u, 0xc696963c7eed2dd1u, 0x8d7eb76070a08aecu, 0xfc1e1de5cf543ca2u,
11303|  7.83k|            0xb0de65388cc8ada8u, 0x3b25a55f43294bcbu, 0xdd15fe86affad912u, 0x49ef0eb713f39ebeu,
11304|  7.83k|            0x8a2dbf142dfcc7abu, 0x6e3569326c784337u, 0xacb92ed9397bf996u, 0x49c2c37f07965404u,
11305|  7.83k|            0xd7e77a8f87daf7fbu, 0xdc33745ec97be906u, 0x86f0ac99b4e8dafdu, 0x69a028bb3ded71a3u,
11306|  7.83k|            0xa8acd7c0222311bcu, 0xc40832ea0d68ce0cu, 0xd2d80db02aabd62bu, 0xf50a3fa490c30190u,
11307|  7.83k|            0x83c7088e1aab65dbu, 0x792667c6da79e0fau, 0xa4b8cab1a1563f52u, 0x577001b891185938u,
11308|  7.83k|            0xcde6fd5e09abcf26u, 0xed4c0226b55e6f86u, 0x80b05e5ac60b6178u, 0x544f8158315b05b4u,
11309|  7.83k|            0xa0dc75f1778e39d6u, 0x696361ae3db1c721u, 0xc913936dd571c84cu, 0x03bc3a19cd1e38e9u,
11310|  7.83k|            0xfb5878494ace3a5fu, 0x04ab48a04065c723u, 0x9d174b2dcec0e47bu, 0x62eb0d64283f9c76u,
11311|  7.83k|            0xc45d1df942711d9au, 0x3ba5d0bd324f8394u, 0xf5746577930d6500u, 0xca8f44ec7ee36479u,
11312|  7.83k|            0x9968bf6abbe85f20u, 0x7e998b13cf4e1ecbu, 0xbfc2ef456ae276e8u, 0x9e3fedd8c321a67eu,
11313|  7.83k|            0xefb3ab16c59b14a2u, 0xc5cfe94ef3ea101eu, 0x95d04aee3b80ece5u, 0xbba1f1d158724a12u,
11314|  7.83k|            0xbb445da9ca61281fu, 0x2a8a6e45ae8edc97u, 0xea1575143cf97226u, 0xf52d09d71a3293bdu,
11315|  7.83k|            0x924d692ca61be758u, 0x593c2626705f9c56u, 0xb6e0c377cfa2e12eu, 0x6f8b2fb00c77836cu,
11316|  7.83k|            0xe498f455c38b997au, 0x0b6dfb9c0f956447u, 0x8edf98b59a373fecu, 0x4724bd4189bd5eacu,
11317|  7.83k|            0xb2977ee300c50fe7u, 0x58edec91ec2cb657u, 0xdf3d5e9bc0f653e1u, 0x2f2967b66737e3edu,
11318|  7.83k|            0x8b865b215899f46cu, 0xbd79e0d20082ee74u, 0xae67f1e9aec07187u, 0xecd8590680a3aa11u,
11319|  7.83k|            0xda01ee641a708de9u, 0xe80e6f4820cc9495u, 0x884134fe908658b2u, 0x3109058d147fdcddu,
11320|  7.83k|            0xaa51823e34a7eedeu, 0xbd4b46f0599fd415u, 0xd4e5e2cdc1d1ea96u, 0x6c9e18ac7007c91au,
11321|  7.83k|            0x850fadc09923329eu, 0x03e2cf6bc604ddb0u, 0xa6539930bf6bff45u, 0x84db8346b786151cu,
11322|  7.83k|            0xcfe87f7cef46ff16u, 0xe612641865679a63u, 0x81f14fae158c5f6eu, 0x4fcb7e8f3f60c07eu,
11323|  7.83k|            0xa26da3999aef7749u, 0xe3be5e330f38f09du, 0xcb090c8001ab551cu, 0x5cadf5bfd3072cc5u,
11324|  7.83k|            0xfdcb4fa002162a63u, 0x73d9732fc7c8f7f6u, 0x9e9f11c4014dda7eu, 0x2867e7fddcdd9afau,
11325|  7.83k|            0xc646d63501a1511du, 0xb281e1fd541501b8u, 0xf7d88bc24209a565u, 0x1f225a7ca91a4226u,
11326|  7.83k|            0x9ae757596946075fu, 0x3375788de9b06958u, 0xc1a12d2fc3978937u, 0x0052d6b1641c83aeu,
11327|  7.83k|            0xf209787bb47d6b84u, 0xc0678c5dbd23a49au, 0x9745eb4d50ce6332u, 0xf840b7ba963646e0u,
11328|  7.83k|            0xbd176620a501fbffu, 0xb650e5a93bc3d898u, 0xec5d3fa8ce427affu, 0xa3e51f138ab4cebeu,
11329|  7.83k|            0x93ba47c980e98cdfu, 0xc66f336c36b10137u, 0xb8a8d9bbe123f017u, 0xb80b0047445d4184u,
11330|  7.83k|            0xe6d3102ad96cec1du, 0xa60dc059157491e5u, 0x9043ea1ac7e41392u, 0x87c89837ad68db2fu,
11331|  7.83k|            0xb454e4a179dd1877u, 0x29babe4598c311fbu, 0xe16a1dc9d8545e94u, 0xf4296dd6fef3d67au,
11332|  7.83k|            0x8ce2529e2734bb1du, 0x1899e4a65f58660cu, 0xb01ae745b101e9e4u, 0x5ec05dcff72e7f8fu,
11333|  7.83k|            0xdc21a1171d42645du, 0x76707543f4fa1f73u, 0x899504ae72497ebau, 0x6a06494a791c53a8u,
11334|  7.83k|            0xabfa45da0edbde69u, 0x0487db9d17636892u, 0xd6f8d7509292d603u, 0x45a9d2845d3c42b6u,
11335|  7.83k|            0x865b86925b9bc5c2u, 0x0b8a2392ba45a9b2u, 0xa7f26836f282b732u, 0x8e6cac7768d7141eu,
11336|  7.83k|            0xd1ef0244af2364ffu, 0x3207d795430cd926u, 0x8335616aed761f1fu, 0x7f44e6bd49e807b8u,
11337|  7.83k|            0xa402b9c5a8d3a6e7u, 0x5f16206c9c6209a6u, 0xcd036837130890a1u, 0x36dba887c37a8c0fu,
11338|  7.83k|            0x802221226be55a64u, 0xc2494954da2c9789u, 0xa02aa96b06deb0fdu, 0xf2db9baa10b7bd6cu,
11339|  7.83k|            0xc83553c5c8965d3du, 0x6f92829494e5acc7u, 0xfa42a8b73abbf48cu, 0xcb772339ba1f17f9u,
11340|  7.83k|            0x9c69a97284b578d7u, 0xff2a760414536efbu, 0xc38413cf25e2d70du, 0xfef5138519684abau,
11341|  7.83k|            0xf46518c2ef5b8cd1u, 0x7eb258665fc25d69u, 0x98bf2f79d5993802u, 0xef2f773ffbd97a61u,
11342|  7.83k|            0xbeeefb584aff8603u, 0xaafb550ffacfd8fau, 0xeeaaba2e5dbf6784u, 0x95ba2a53f983cf38u,
11343|  7.83k|            0x952ab45cfa97a0b2u, 0xdd945a747bf26183u, 0xba756174393d88dfu, 0x94f971119aeef9e4u,
11344|  7.83k|            0xe912b9d1478ceb17u, 0x7a37cd5601aab85du, 0x91abb422ccb812eeu, 0xac62e055c10ab33au,
11345|  7.83k|            0xb616a12b7fe617aau, 0x577b986b314d6009u, 0xe39c49765fdf9d94u, 0xed5a7e85fda0b80bu,
11346|  7.83k|            0x8e41ade9fbebc27du, 0x14588f13be847307u, 0xb1d219647ae6b31cu, 0x596eb2d8ae258fc8u,
11347|  7.83k|            0xde469fbd99a05fe3u, 0x6fca5f8ed9aef3bbu, 0x8aec23d680043beeu, 0x25de7bb9480d5854u,
11348|  7.83k|            0xada72ccc20054ae9u, 0xaf561aa79a10ae6au, 0xd910f7ff28069da4u, 0x1b2ba1518094da04u,
11349|  7.83k|            0x87aa9aff79042286u, 0x90fb44d2f05d0842u, 0xa99541bf57452b28u, 0x353a1607ac744a53u,
11350|  7.83k|            0xd3fa922f2d1675f2u, 0x42889b8997915ce8u, 0x847c9b5d7c2e09b7u, 0x69956135febada11u,
11351|  7.83k|            0xa59bc234db398c25u, 0x43fab9837e699095u, 0xcf02b2c21207ef2eu, 0x94f967e45e03f4bbu,
11352|  7.83k|            0x8161afb94b44f57du, 0x1d1be0eebac278f5u, 0xa1ba1ba79e1632dcu, 0x6462d92a69731732u,
11353|  7.83k|            0xca28a291859bbf93u, 0x7d7b8f7503cfdcfeu, 0xfcb2cb35e702af78u, 0x5cda735244c3d43eu,
11354|  7.83k|            0x9defbf01b061adabu, 0x3a0888136afa64a7u, 0xc56baec21c7a1916u, 0x088aaa1845b8fdd0u,
11355|  7.83k|            0xf6c69a72a3989f5bu, 0x8aad549e57273d45u, 0x9a3c2087a63f6399u, 0x36ac54e2f678864bu,
11356|  7.83k|            0xc0cb28a98fcf3c7fu, 0x84576a1bb416a7ddu, 0xf0fdf2d3f3c30b9fu, 0x656d44a2a11c51d5u,
11357|  7.83k|            0x969eb7c47859e743u, 0x9f644ae5a4b1b325u, 0xbc4665b596706114u, 0x873d5d9f0dde1feeu,
11358|  7.83k|            0xeb57ff22fc0c7959u, 0xa90cb506d155a7eau, 0x9316ff75dd87cbd8u, 0x09a7f12442d588f2u,
11359|  7.83k|            0xb7dcbf5354e9beceu, 0x0c11ed6d538aeb2fu, 0xe5d3ef282a242e81u, 0x8f1668c8a86da5fau,
11360|  7.83k|            0x8fa475791a569d10u, 0xf96e017d694487bcu, 0xb38d92d760ec4455u, 0x37c981dcc395a9acu,
11361|  7.83k|            0xe070f78d3927556au, 0x85bbe253f47b1417u, 0x8c469ab843b89562u, 0x93956d7478ccec8eu,
11362|  7.83k|            0xaf58416654a6babbu, 0x387ac8d1970027b2u, 0xdb2e51bfe9d0696au, 0x06997b05fcc0319eu,
11363|  7.83k|            0x88fcf317f22241e2u, 0x441fece3bdf81f03u, 0xab3c2fddeeaad25au, 0xd527e81cad7626c3u,
11364|  7.83k|            0xd60b3bd56a5586f1u, 0x8a71e223d8d3b074u, 0x85c7056562757456u, 0xf6872d5667844e49u,
11365|  7.83k|            0xa738c6bebb12d16cu, 0xb428f8ac016561dbu, 0xd106f86e69d785c7u, 0xe13336d701beba52u,
11366|  7.83k|            0x82a45b450226b39cu, 0xecc0024661173473u, 0xa34d721642b06084u, 0x27f002d7f95d0190u,
11367|  7.83k|            0xcc20ce9bd35c78a5u, 0x31ec038df7b441f4u, 0xff290242c83396ceu, 0x7e67047175a15271u,
11368|  7.83k|            0x9f79a169bd203e41u, 0x0f0062c6e984d386u, 0xc75809c42c684dd1u, 0x52c07b78a3e60868u,
11369|  7.83k|            0xf92e0c3537826145u, 0xa7709a56ccdf8a82u, 0x9bbcc7a142b17ccbu, 0x88a66076400bb691u,
11370|  7.83k|            0xc2abf989935ddbfeu, 0x6acff893d00ea435u, 0xf356f7ebf83552feu, 0x0583f6b8c4124d43u,
11371|  7.83k|            0x98165af37b2153deu, 0xc3727a337a8b704au, 0xbe1bf1b059e9a8d6u, 0x744f18c0592e4c5cu,
11372|  7.83k|            0xeda2ee1c7064130cu, 0x1162def06f79df73u, 0x9485d4d1c63e8be7u, 0x8addcb5645ac2ba8u,
11373|  7.83k|            0xb9a74a0637ce2ee1u, 0x6d953e2bd7173692u, 0xe8111c87c5c1ba99u, 0xc8fa8db6ccdd0437u,
11374|  7.83k|            0x910ab1d4db9914a0u, 0x1d9c9892400a22a2u, 0xb54d5e4a127f59c8u, 0x2503beb6d00cab4bu,
11375|  7.83k|            0xe2a0b5dc971f303au, 0x2e44ae64840fd61du, 0x8da471a9de737e24u, 0x5ceaecfed289e5d2u,
11376|  7.83k|            0xb10d8e1456105dadu, 0x7425a83e872c5f47u, 0xdd50f1996b947518u, 0xd12f124e28f77719u,
11377|  7.83k|            0x8a5296ffe33cc92fu, 0x82bd6b70d99aaa6fu, 0xace73cbfdc0bfb7bu, 0x636cc64d1001550bu,
11378|  7.83k|            0xd8210befd30efa5au, 0x3c47f7e05401aa4eu, 0x8714a775e3e95c78u, 0x65acfaec34810a71u,
11379|  7.83k|            0xa8d9d1535ce3b396u, 0x7f1839a741a14d0du, 0xd31045a8341ca07cu, 0x1ede48111209a050u,
11380|  7.83k|            0x83ea2b892091e44du, 0x934aed0aab460432u, 0xa4e4b66b68b65d60u, 0xf81da84d5617853fu,
11381|  7.83k|            0xce1de40642e3f4b9u, 0x36251260ab9d668eu, 0x80d2ae83e9ce78f3u, 0xc1d72b7c6b426019u,
11382|  7.83k|            0xa1075a24e4421730u, 0xb24cf65b8612f81fu, 0xc94930ae1d529cfcu, 0xdee033f26797b627u,
11383|  7.83k|            0xfb9b7cd9a4a7443cu, 0x169840ef017da3b1u, 0x9d412e0806e88aa5u, 0x8e1f289560ee864eu,
11384|  7.83k|            0xc491798a08a2ad4eu, 0xf1a6f2bab92a27e2u, 0xf5b5d7ec8acb58a2u, 0xae10af696774b1dbu,
11385|  7.83k|            0x9991a6f3d6bf1765u, 0xacca6da1e0a8ef29u, 0xbff610b0cc6edd3fu, 0x17fd090a58d32af3u,
11386|  7.83k|            0xeff394dcff8a948eu, 0xddfc4b4cef07f5b0u, 0x95f83d0a1fb69cd9u, 0x4abdaf101564f98eu,
11387|  7.83k|            0xbb764c4ca7a4440fu, 0x9d6d1ad41abe37f1u, 0xea53df5fd18d5513u, 0x84c86189216dc5edu,
11388|  7.83k|            0x92746b9be2f8552cu, 0x32fd3cf5b4e49bb4u, 0xb7118682dbb66a77u, 0x3fbc8c33221dc2a1u,
11389|  7.83k|            0xe4d5e82392a40515u, 0x0fabaf3feaa5334au, 0x8f05b1163ba6832du, 0x29cb4d87f2a7400eu,
11390|  7.83k|            0xb2c71d5bca9023f8u, 0x743e20e9ef511012u, 0xdf78e4b2bd342cf6u, 0x914da9246b255416u,
11391|  7.83k|            0x8bab8eefb6409c1au, 0x1ad089b6c2f7548eu, 0xae9672aba3d0c320u, 0xa184ac2473b529b1u,
11392|  7.83k|            0xda3c0f568cc4f3e8u, 0xc9e5d72d90a2741eu, 0x8865899617fb1871u, 0x7e2fa67c7a658892u,
11393|  7.83k|            0xaa7eebfb9df9de8du, 0xddbb901b98feeab7u, 0xd51ea6fa85785631u, 0x552a74227f3ea565u,
11394|  7.83k|            0x8533285c936b35deu, 0xd53a88958f87275fu, 0xa67ff273b8460356u, 0x8a892abaf368f137u,
11395|  7.83k|            0xd01fef10a657842cu, 0x2d2b7569b0432d85u, 0x8213f56a67f6b29bu, 0x9c3b29620e29fc73u,
11396|  7.83k|            0xa298f2c501f45f42u, 0x8349f3ba91b47b8fu, 0xcb3f2f7642717713u, 0x241c70a936219a73u,
11397|  7.83k|            0xfe0efb53d30dd4d7u, 0xed238cd383aa0110u, 0x9ec95d1463e8a506u, 0xf4363804324a40aau,
11398|  7.83k|            0xc67bb4597ce2ce48u, 0xb143c6053edcd0d5u, 0xf81aa16fdc1b81dau, 0xdd94b7868e94050au,
11399|  7.83k|            0x9b10a4e5e9913128u, 0xca7cf2b4191c8326u, 0xc1d4ce1f63f57d72u, 0xfd1c2f611f63a3f0u,
11400|  7.83k|            0xf24a01a73cf2dccfu, 0xbc633b39673c8cecu, 0x976e41088617ca01u, 0xd5be0503e085d813u,
11401|  7.83k|            0xbd49d14aa79dbc82u, 0x4b2d8644d8a74e18u, 0xec9c459d51852ba2u, 0xddf8e7d60ed1219eu,
11402|  7.83k|            0x93e1ab8252f33b45u, 0xcabb90e5c942b503u, 0xb8da1662e7b00a17u, 0x3d6a751f3b936243u,
11403|  7.83k|            0xe7109bfba19c0c9du, 0x0cc512670a783ad4u, 0x906a617d450187e2u, 0x27fb2b80668b24c5u,
11404|  7.83k|            0xb484f9dc9641e9dau, 0xb1f9f660802dedf6u, 0xe1a63853bbd26451u, 0x5e7873f8a0396973u,
11405|  7.83k|            0x8d07e33455637eb2u, 0xdb0b487b6423e1e8u, 0xb049dc016abc5e5fu, 0x91ce1a9a3d2cda62u,
11406|  7.83k|            0xdc5c5301c56b75f7u, 0x7641a140cc7810fbu, 0x89b9b3e11b6329bau, 0xa9e904c87fcb0a9du,
11407|  7.83k|            0xac2820d9623bf429u, 0x546345fa9fbdcd44u, 0xd732290fbacaf133u, 0xa97c177947ad4095u,
11408|  7.83k|            0x867f59a9d4bed6c0u, 0x49ed8eabcccc485du, 0xa81f301449ee8c70u, 0x5c68f256bfff5a74u,
11409|  7.83k|            0xd226fc195c6a2f8cu, 0x73832eec6fff3111u, 0x83585d8fd9c25db7u, 0xc831fd53c5ff7eabu,
11410|  7.83k|            0xa42e74f3d032f525u, 0xba3e7ca8b77f5e55u, 0xcd3a1230c43fb26fu, 0x28ce1bd2e55f35ebu,
11411|  7.83k|            0x80444b5e7aa7cf85u, 0x7980d163cf5b81b3u, 0xa0555e361951c366u, 0xd7e105bcc332621fu,
11412|  7.83k|            0xc86ab5c39fa63440u, 0x8dd9472bf3fefaa7u, 0xfa856334878fc150u, 0xb14f98f6f0feb951u,
11413|  7.83k|            0x9c935e00d4b9d8d2u, 0x6ed1bf9a569f33d3u, 0xc3b8358109e84f07u, 0x0a862f80ec4700c8u,
11414|  7.83k|            0xf4a642e14c6262c8u, 0xcd27bb612758c0fau, 0x98e7e9cccfbd7dbdu, 0x8038d51cb897789cu,
11415|  7.83k|            0xbf21e44003acdd2cu, 0xe0470a63e6bd56c3u, 0xeeea5d5004981478u, 0x1858ccfce06cac74u,
11416|  7.83k|            0x95527a5202df0ccbu, 0x0f37801e0c43ebc8u, 0xbaa718e68396cffdu, 0xd30560258f54e6bau,
11417|  7.83k|            0xe950df20247c83fdu, 0x47c6b82ef32a2069u, 0x91d28b7416cdd27eu, 0x4cdc331d57fa5441u,
11418|  7.83k|            0xb6472e511c81471du, 0xe0133fe4adf8e952u, 0xe3d8f9e563a198e5u, 0x58180fddd97723a6u,
11419|  7.83k|            0x8e679c2f5e44ff8fu, 0x570f09eaa7ea7648u,
11420|  7.83k|        }
11421|  7.83k|    };
11422|  7.83k|    return table;
11423|  7.83k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij13umul192_hi128Emmm:
36019|  7.35k|{
36020|  7.35k|    const uint128_parts p = full_multiplication(x_hi, y);
36021|  7.35k|    uint128_parts r{};
36022|  7.35k|    r.low = p.low + full_multiplication(x_lo, y).high;
36023|  7.35k|    r.high = p.high + (r.low < p.low ? 1u : 0u);
  ------------------
  |  Branch (36023:24): [True: 198, False: 7.15k]
  ------------------
36024|  7.35k|    return r;
36025|  7.35k|}
_ZN8nlohmann16json_abi_v3_12_06detail4zmij16umul128_add_hi64Emmm:
36029|  8.24k|{
36030|  8.24k|    const uint128_parts p = full_multiplication(x, y);
36031|  8.24k|    return p.high + (p.low + c < p.low ? 1u : 0u);
  ------------------
  |  Branch (36031:22): [True: 4.57k, False: 3.67k]
  ------------------
36032|  8.24k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_shortestEPcNS1_4zmij16shortest_decimalE:
37259|  7.35k|{
37260|  7.35k|    const std::uint64_t sig = d.integral;
37261|  7.35k|    if (JSON_HEDLEY_UNLIKELY(sig < 100000000000000u || sig >= 10000000000000000u))
  ------------------
  |  | 1697|  13.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.60k, False: 5.74k]
  |  |  |  Branch (1697:94): [True: 1.60k, False: 5.74k]
  |  |  |  Branch (1697:94): [True: 0, False: 5.74k]
  |  |  ------------------
  ------------------
37262|  1.60k|    {
37263|       |        // (subnormals)
37264|  1.60k|        return d.has_digit ? write_decimal(first, (sig * 10) + d.digit, d.exponent) : write_decimal(first, sig, d.exponent + 1);
  ------------------
  |  Branch (37264:16): [True: 834, False: 768]
  ------------------
37265|  1.60k|    }
37266|  5.74k|    const bool sixteen = sig >= 1000000000000000u; // (else 15 digits)
37267|  5.74k|    const int last = d.has_digit ? d.digit : 0;
  ------------------
  |  Branch (37267:22): [True: 3.34k, False: 2.40k]
  ------------------
37268|  5.74k|    const std::uint64_t upper = sig / 100000000u;
37269|  5.74k|#if JSON_DTOA_SSE2
37270|       |    // NOLINTBEGIN(portability-simd-intrinsics)
37271|       |    // the two halves in the 64-bit lanes, each as abcd * 2^32 + efgh, then as
37272|       |    // bytes (as eight_digit_bytes(), one lane each)
37273|  5.74k|    const __m128i x = _mm_set_epi64x(static_cast<long long>(sig - (upper * 100000000u)), static_cast<long long>(upper)); // NOLINT(runtime/int)
37274|  5.74k|    const __m128i abcd = _mm_srli_epi64(_mm_mul_epu32(x, _mm_set1_epi64x(109951163)), 40); // 2^40 / 10000 + 1
37275|  5.74k|    const __m128i abcd_efgh = _mm_add_epi64(x, _mm_mul_epu32(abcd, _mm_set1_epi64x(4294957296))); // 2^32 - 10000
37276|       |    // 32-bit lanes in the order of the text: abcd, efgh of both halves
37277|  5.74k|    const __m128i fours = _mm_shuffle_epi32(abcd_efgh, _MM_SHUFFLE(2, 3, 0, 1));
37278|  5.74k|    const __m128i ab = _mm_srli_epi16(_mm_mulhi_epu16(fours, _mm_set1_epi32(5243)), 3);
37279|  5.74k|    const __m128i ab_cd = _mm_or_si128(_mm_slli_epi32(_mm_sub_epi16(fours, _mm_mullo_epi16(ab, _mm_set1_epi32(100))), 16), ab);
37280|       |    // 16-bit lanes ab (< 100) -> bytes a, b: 256 * ab - 2559 * (ab / 10)
37281|  5.74k|    const __m128i bytes = _mm_sub_epi16(_mm_slli_epi16(ab_cd, 8), _mm_mullo_epi16(_mm_set1_epi16(2559), _mm_mulhi_epu16(ab_cd, _mm_set1_epi16(6554))));
37282|       |    // the last digit that is not 0 (sig is not 0)
37283|  5.74k|    const auto nonzero = static_cast<std::uint64_t>(_mm_movemask_epi8(_mm_cmpgt_epi8(bytes, _mm_setzero_si128())));
37284|  5.74k|    const int digits = 63 - count_leading_zeros(nonzero) + (sixteen ? 1 : 0); // without trailing zeros
  ------------------
  |  Branch (37284:61): [True: 3.80k, False: 1.94k]
  ------------------
37285|  5.74k|    const __m128i chars = _mm_add_epi8(bytes, _mm_set1_epi8('0'));
37286|       |    // the 16 characters from the first digit
37287|  5.74k|    const __m128i s = sixteen ? chars : _mm_or_si128(_mm_srli_si128(chars, 1), _mm_slli_si128(_mm_cvtsi32_si128('0' + last), 15));
  ------------------
  |  Branch (37287:23): [True: 3.80k, False: 1.94k]
  ------------------
37288|  5.74k|    const char s16 = static_cast<char>(sixteen ? '0' + last : '0'); // the 17th
  ------------------
  |  Branch (37288:40): [True: 3.80k, False: 1.94k]
  ------------------
37289|  5.74k|    const auto store_16 = [&s](char* p) noexcept
37290|  5.74k|    {
37291|  5.74k|        std::memcpy(p, &s, 16);
37292|  5.74k|    };
37293|  5.74k|    const char first_digit = static_cast<char>(_mm_cvtsi128_si32(s));
37294|       |    // NOLINTEND(portability-simd-intrinsics)
37295|       |#elif JSON_DTOA_NEON
37296|       |    // as with SSE2: the halves in 32-bit lanes, then abcd, efgh of both
37297|       |    const uint32x2_t halves = vcreate_u32(upper | ((sig - (upper * 100000000u)) << 32u));
37298|       |    const uint32x2_t abcd = vmovn_u64(vshrq_n_u64(vmull_n_u32(halves, static_cast<std::uint32_t>(((std::uint64_t{1} << 40u) / 10000u) + 1u)), 40));
37299|       |    const uint32x2_t efgh = vmls_n_u32(halves, abcd, 10000u);
37300|       |    const uint32x4_t fours = vcombine_u32(vzip1_u32(abcd, efgh), vzip2_u32(abcd, efgh));
37301|       |    const uint32x4_t ab = vshrq_n_u32(vmulq_n_u32(fours, 5243u), 19);
37302|       |    const uint16x8_t ab_cd = vreinterpretq_u16_u32(vorrq_u32(ab, vshlq_n_u32(vmlsq_n_u32(fours, ab, 100u), 16)));
37303|       |    const uint16x8_t tens = vshrq_n_u16(vmulq_n_u16(ab_cd, 103u), 10);
37304|       |    const uint8x16_t bytes = vreinterpretq_u8_u16(vorrq_u16(tens, vshlq_n_u16(vmlsq_n_u16(ab_cd, tens, 10u), 8)));
37305|       |    // the last digit that is not 0 (sig is not 0): a nibble per byte
37306|       |    const std::uint64_t nonzero = vget_lane_u64(vreinterpret_u64_u8(vshrn_n_u16(vreinterpretq_u16_u8(vtstq_u8(bytes, bytes)), 4)), 0);
37307|       |    const int digits = ((63 - count_leading_zeros(nonzero)) / 4) + (sixteen ? 1 : 0); // without trailing zeros
37308|       |    const uint8x16_t chars = vaddq_u8(bytes, vdupq_n_u8('0'));
37309|       |    // the 16 characters from the first digit
37310|       |    const uint8x16_t s = sixteen ? chars : vextq_u8(chars, vdupq_n_u8(static_cast<std::uint8_t>('0' + last)), 1);
37311|       |    const char s16 = static_cast<char>(sixteen ? '0' + last : '0'); // the 17th
37312|       |    const auto store_16 = [&s](char* p) noexcept
37313|       |    {
37314|       |        vst1q_u8(reinterpret_cast<std::uint8_t*>(p), s); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
37315|       |    };
37316|       |    const auto first_digit = static_cast<char>(vgetq_lane_u8(s, 0));
37317|       |#else
37318|       |    const std::uint64_t hi = eight_digit_bytes(upper);
37319|       |    const std::uint64_t lo = eight_digit_bytes(sig - (upper * 100000000u));
37320|       |    // trailing zero digits: zero bytes (sig is not 0)
37321|       |    const int zeros = lo != 0 ? count_trailing_zeros(lo) / 8 : 8 + (count_trailing_zeros(hi) / 8);
37322|       |    const int digits = 15 - zeros + (sixteen ? 1 : 0); // without trailing zeros
37323|       |    // the 16 characters from the first digit
37324|       |    const std::uint64_t s_hi = (sixteen ? hi : (hi << 8u) | (lo >> 56u)) + 0x3030303030303030u;
37325|       |    const std::uint64_t s_lo = (sixteen ? lo : (lo << 8u) | static_cast<std::uint64_t>(last)) + 0x3030303030303030u;
37326|       |    const char s16 = static_cast<char>(sixteen ? '0' + last : '0'); // the 17th
37327|       |    const auto store_16 = [s_hi, s_lo](char* p) noexcept
37328|       |    {
37329|       |        store_msb_first(p, s_hi);
37330|       |        store_msb_first(p + 8, s_lo);
37331|       |    };
37332|       |    const auto first_digit = static_cast<char>(s_hi >> 56u);
37333|       |#endif
37334|  5.74k|    const int len = d.has_digit ? 16 + (sixteen ? 1 : 0) : digits; // significant digits
  ------------------
  |  Branch (37334:21): [True: 3.34k, False: 2.40k]
  |  Branch (37334:41): [True: 1.92k, False: 1.42k]
  ------------------
37335|  5.74k|    const int n = 16 + (sixteen ? 1 : 0) + d.exponent;           // digits before the point
  ------------------
  |  Branch (37335:25): [True: 3.80k, False: 1.94k]
  ------------------
37336|       |
37337|  5.74k|    if (JSON_HEDLEY_LIKELY(n >= 1 && n <= 15))
  ------------------
  |  | 1696|  7.79k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 666, False: 5.08k]
  |  |  |  Branch (1696:94): [True: 2.04k, False: 3.70k]
  |  |  |  Branch (1696:94): [True: 666, False: 1.38k]
  |  |  ------------------
  ------------------
37338|    666|    {
37339|       |        // "dig.its" and "digits[000].0": the digits after the point move by
37340|       |        // one byte ('0's follow the digits)
37341|    666|#if JSON_DTOA_SSE2
37342|       |        // NOLINTBEGIN(portability-simd-intrinsics)
37343|       |        // (in the register: reading the digits back from memory right after
37344|       |        // storing them waits until the stores are done)
37345|    666|        const __m128i at = _mm_set1_epi8(static_cast<char>(n));
37346|    666|        const __m128i index = _mm_setr_epi8(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
37347|    666|        const __m128i before = _mm_cmpgt_epi8(at, index);
37348|    666|        const __m128i after = _mm_cmpgt_epi8(index, at);
37349|    666|        const __m128i text = _mm_or_si128(_mm_or_si128(_mm_and_si128(s, before), _mm_and_si128(_mm_slli_si128(s, 1), after)),
37350|    666|                                          _mm_andnot_si128(_mm_or_si128(before, after), _mm_set1_epi8('.')));
37351|    666|        std::memcpy(first, &text, 16);
37352|    666|        first[16] = static_cast<char>(_mm_extract_epi16(s, 7) >> 8);
37353|    666|        first[17] = s16;
37354|       |        // NOLINTEND(portability-simd-intrinsics)
37355|       |#elif JSON_DTOA_NEON
37356|       |        const uint8x16_t index = vcombine_u8(vcreate_u8(0x0706050403020100u), vcreate_u8(0x0F0E0D0C0B0A0908u));
37357|       |        const uint8x16_t at = vdupq_n_u8(static_cast<std::uint8_t>(n));
37358|       |        const uint8x16_t after_point = vbslq_u8(vcgtq_u8(index, at), vextq_u8(vdupq_n_u8(0), s, 15), vdupq_n_u8('.'));
37359|       |        vst1q_u8(reinterpret_cast<std::uint8_t*>(first), vbslq_u8(vcltq_u8(index, at), s, after_point)); // NOLINT(cppcoreguidelines-pro-type-reinterpret-cast)
37360|       |        first[16] = static_cast<char>(vgetq_lane_u8(s, 15));
37361|       |        first[17] = s16;
37362|       |#else
37363|       |        store_16(first);
37364|       |        first[16] = s16;
37365|       |        std::uint64_t after_point[2]; // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays,cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
37366|       |        std::memcpy(after_point, first + n, 16);
37367|       |        std::memcpy(first + n + 1, after_point, 16);
37368|       |        first[n] = '.';
37369|       |#endif
37370|    666|        return first + (n >= len ? n + 2 : len + 1);
  ------------------
  |  Branch (37370:25): [True: 264, False: 402]
  ------------------
37371|    666|    }
37372|  5.08k|    if (n <= 0 && n > -4)
  ------------------
  |  Branch (37372:9): [True: 3.70k, False: 1.38k]
  |  Branch (37372:19): [True: 288, False: 3.41k]
  ------------------
37373|    288|    {
37374|       |        // "0.[000]digits"
37375|    288|        std::memset(first, '0', 8);
37376|    288|        first[1] = '.';
37377|    288|        store_16(first + 2 - n);
37378|    288|        first[18 - n] = s16;
37379|    288|        return first + 2 - n + len;
37380|    288|    }
37381|       |    // d.igitse+XX, with at least two exponent digits (as append_exponent())
37382|  4.79k|    store_16(first + 1);
37383|  4.79k|    first[17] = s16;
37384|  4.79k|    first[0] = first_digit;
37385|  4.79k|    first[1] = '.';
37386|  4.79k|    char* const end = first + (len == 1 ? 1 : len + 1);
  ------------------
  |  Branch (37386:32): [True: 6, False: 4.78k]
  ------------------
37387|  4.79k|    const int e = n - 1;
37388|  4.79k|    const auto ea = e < 0 ? 0u - static_cast<unsigned>(e) : static_cast<unsigned>(e); // (unsigned: no signed overflow to assume)
  ------------------
  |  Branch (37388:21): [True: 3.41k, False: 1.38k]
  ------------------
37389|  4.79k|    const bool three = ea >= 100;
37390|  4.79k|    end[0] = 'e';
37391|  4.79k|    end[1] = e < 0 ? '-' : '+';
  ------------------
  |  Branch (37391:14): [True: 3.41k, False: 1.38k]
  ------------------
37392|  4.79k|    end[2] = static_cast<char>('0' + (three ? ea / 100 : (ea / 10) % 10));
  ------------------
  |  Branch (37392:39): [True: 3.46k, False: 1.33k]
  ------------------
37393|  4.79k|    end[3] = static_cast<char>('0' + (three ? (ea / 10) % 10 : ea % 10));
  ------------------
  |  Branch (37393:39): [True: 3.46k, False: 1.33k]
  ------------------
37394|  4.79k|    end[4] = static_cast<char>('0' + (ea % 10));
37395|  4.79k|    return end + (three ? 5 : 4);
  ------------------
  |  Branch (37395:19): [True: 3.46k, False: 1.33k]
  ------------------
37396|  5.08k|}
_ZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl13write_decimalEPcmi:
37171|  1.60k|{
37172|  1.60k|    JSON_ASSERT(digits != 0 && digits < 100000000000000000u);
  ------------------
  |  | 2653|  1.60k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (37172:5): [True: 1.60k, False: 0]
  |  Branch (37172:5): [True: 1.60k, False: 0]
  |  Branch (37172:5): [True: 1.60k, False: 0]
  ------------------
37173|  1.60k|    const std::uint64_t upper = digits / 100000000u;
37174|  1.60k|    const std::uint64_t b0 = upper / 100000000u; // (one digit: it is its own byte)
37175|  1.60k|    const std::uint64_t b1 = eight_digit_bytes(upper % 100000000u);
37176|  1.60k|    const std::uint64_t b2 = eight_digit_bytes(digits % 100000000u);
37177|       |    // leading and trailing zero digits: zero bytes, counted without division
37178|  1.60k|    int leading = 16;
37179|  1.60k|    int zeros = 16;
37180|  1.60k|    if (b0 != 0)
  ------------------
  |  Branch (37180:9): [True: 0, False: 1.60k]
  ------------------
37181|      0|    {
37182|      0|        leading = count_leading_zeros(b0) / 8;
37183|      0|    }
37184|  1.60k|    else if (b1 != 0)
  ------------------
  |  Branch (37184:14): [True: 1.21k, False: 390]
  ------------------
37185|  1.21k|    {
37186|  1.21k|        leading = 8 + (count_leading_zeros(b1) / 8);
37187|  1.21k|    }
37188|    390|    else
37189|    390|    {
37190|    390|        leading += count_leading_zeros(b2) / 8;
37191|    390|    }
37192|  1.60k|    if (b2 != 0)
  ------------------
  |  Branch (37192:9): [True: 1.60k, False: 0]
  ------------------
37193|  1.60k|    {
37194|  1.60k|        zeros = count_trailing_zeros(b2) / 8;
37195|  1.60k|    }
37196|      0|    else if (b1 != 0)
  ------------------
  |  Branch (37196:14): [True: 0, False: 0]
  ------------------
37197|      0|    {
37198|      0|        zeros = 8 + (count_trailing_zeros(b1) / 8);
37199|      0|    }
37200|       |    // (else: 16, b0 is the one digit that is not 0)
37201|       |    // the digits as text at text + leading, then '0's, so that fixed-size
37202|       |    // moves need not check how many digits there are
37203|  1.60k|    std::array<char, 64> text; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
37204|  1.60k|    store_msb_first(text.data(), b0 + 0x3030303030303030u);
37205|  1.60k|    store_msb_first(text.data() + 8, b1 + 0x3030303030303030u);
37206|  1.60k|    store_msb_first(text.data() + 16, b2 + 0x3030303030303030u);
37207|  1.60k|    std::memset(text.data() + 24, '0', 40);
37208|  1.60k|    const int k = 24 - leading - zeros; // significant digits
37209|  1.60k|    const int n = k + exp + zeros;      // position of the decimal point after the first digit
37210|  1.60k|    const char* const s0 = text.data() + leading;
37211|       |
37212|  1.60k|    if (-4 < n && n <= 15)
  ------------------
  |  Branch (37212:9): [True: 0, False: 1.60k]
  |  Branch (37212:19): [True: 0, False: 0]
  ------------------
37213|      0|    {
37214|       |        // "0.[000]digits" (n <= 0) is the digits after 1 - n leading '0's
37215|       |        // with the point after the first; "digits[000].0" (n >= k) and
37216|       |        // "dig.its" put the point after n characters
37217|      0|        const int pad = n <= 0 ? 1 - n : 0;
  ------------------
  |  Branch (37217:25): [True: 0, False: 0]
  ------------------
37218|      0|        const char* const s = s0 - pad;
37219|      0|        const int len = k + pad;
37220|      0|        const int point = n + pad;
37221|      0|        std::memcpy(first, s, 16);
37222|      0|        std::memcpy(first + point + 1, s + point, 24);
37223|      0|        first[point] = '.';
37224|      0|        return first + (point >= len ? point + 2 : len + 1);
  ------------------
  |  Branch (37224:25): [True: 0, False: 0]
  ------------------
37225|      0|    }
37226|       |
37227|       |    // d.igitse+XX, with at least two exponent digits (as append_exponent())
37228|  1.60k|    std::memcpy(first, s0, 16);
37229|  1.60k|    std::memcpy(first + 2, s0 + 1, 16);
37230|  1.60k|    first[1] = '.';
37231|  1.60k|    char* const end = first + (k == 1 ? 1 : k + 1);
  ------------------
  |  Branch (37231:32): [True: 120, False: 1.48k]
  ------------------
37232|  1.60k|    const int e = n - 1;
37233|  1.60k|    const auto ea = e < 0 ? 0u - static_cast<unsigned>(e) : static_cast<unsigned>(e); // (unsigned: no signed overflow to assume)
  ------------------
  |  Branch (37233:21): [True: 1.60k, False: 0]
  ------------------
37234|  1.60k|    const bool three = ea >= 100;
37235|  1.60k|    end[0] = 'e';
37236|  1.60k|    end[1] = e < 0 ? '-' : '+';
  ------------------
  |  Branch (37236:14): [True: 1.60k, False: 0]
  ------------------
37237|  1.60k|    end[2] = static_cast<char>('0' + (three ? ea / 100 : (ea / 10) % 10));
  ------------------
  |  Branch (37237:39): [True: 1.60k, False: 0]
  ------------------
37238|  1.60k|    end[3] = static_cast<char>('0' + (three ? (ea / 10) % 10 : ea % 10));
  ------------------
  |  Branch (37238:39): [True: 1.60k, False: 0]
  ------------------
37239|  1.60k|    end[4] = static_cast<char>('0' + (ea % 10));
37240|  1.60k|    return end + (three ? 5 : 4);
  ------------------
  |  Branch (37240:19): [True: 1.60k, False: 0]
  ------------------
37241|  1.60k|}
_ZZN8nlohmann16json_abi_v3_12_06detail9dtoa_impl14write_shortestEPcNS1_4zmij16shortest_decimalEENKUlS3_E_clES3_:
37290|  5.08k|    {
37291|  5.08k|        std::memcpy(p, &s, 16);
37292|  5.08k|    };
_ZN8nlohmann16json_abi_v3_12_06detail10serializerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEE5flushEv:
39130|  20.9k|    {
39131|  20.9k|        o->write_characters(write_buffer.data(), write_buffer_pos);
39132|  20.9k|        write_buffer_pos = 0;
39133|  20.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail35binary_writer_default_error_handlerEv:
 6189|  6.56k|{
 6190|       |#if JSON_STRICT_BINARY_UTF8
 6191|       |    return error_handler_t::strict;
 6192|       |#else
 6193|  6.56k|    return error_handler_t::keep;
 6194|  6.56k|#endif
 6195|  6.56k|}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvED2Ev:
42951|   560k|    {
42952|   560k|        assert_invariant(false);
42953|   560k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE16assert_invariantEb:
41279|  1.70M|    {
41280|  1.70M|        JSON_ASSERT(m_data.m_type != value_t::object || m_data.m_value.object != nullptr);
  ------------------
  |  | 2653|  1.70M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41280:9): [True: 1.52M, False: 181k]
  |  Branch (41280:9): [True: 181k, False: 0]
  |  Branch (41280:9): [True: 1.70M, False: 0]
  ------------------
41281|  1.70M|        JSON_ASSERT(m_data.m_type != value_t::array || m_data.m_value.array != nullptr);
  ------------------
  |  | 2653|  1.70M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41281:9): [True: 1.63M, False: 72.2k]
  |  Branch (41281:9): [True: 72.2k, False: 0]
  |  Branch (41281:9): [True: 1.70M, False: 0]
  ------------------
41282|  1.70M|        JSON_ASSERT(m_data.m_type != value_t::string || m_data.m_value.string != nullptr);
  ------------------
  |  | 2653|  1.70M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41282:9): [True: 1.63M, False: 69.2k]
  |  Branch (41282:9): [True: 69.2k, False: 0]
  |  Branch (41282:9): [True: 1.70M, False: 0]
  ------------------
41283|  1.70M|        JSON_ASSERT(m_data.m_type != value_t::binary || m_data.m_value.binary != nullptr);
  ------------------
  |  | 2653|  1.70M|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41283:9): [True: 1.62M, False: 85.2k]
  |  Branch (41283:9): [True: 85.2k, False: 0]
  |  Branch (41283:9): [True: 1.70M, False: 0]
  ------------------
41284|       |
41285|       |#if JSON_DIAGNOSTICS
41286|       |        JSON_TRY
41287|       |        {
41288|       |            JSON_ASSERT(!check_parents || !is_structured() || std::all_of(begin(), end(), [this](const basic_json & j)
41289|       |            {
41290|       |                return j.m_parent == this;
41291|       |            }));
41292|       |        }
41293|       |        JSON_CATCH(...) {} // LCOV_EXCL_LINE
41294|       |#endif
41295|  1.70M|        static_cast<void>(check_parents);
41296|  1.70M|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataD2Ev:
46531|   603k|        {
46532|   603k|            m_value.destroy(m_type);
46533|   603k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value7destroyENS0_6detail7value_tE:
41223|   688k|        {
41224|   688k|            if (JSON_HEDLEY_UNLIKELY(detail::owns_memory(t)))
  ------------------
  |  | 1697|   688k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 72.5k, False: 616k]
  |  |  ------------------
  ------------------
41225|  72.5k|            {
41226|  72.5k|                destroy_owned(t);
41227|  72.5k|            }
41228|   688k|        }
_ZN8nlohmann16json_abi_v3_12_06detail11owns_memoryENS1_7value_tE:
 3462|   688k|{
 3463|   688k|    switch (t)
 3464|   688k|    {
 3465|  38.1k|        case value_t::object:
  ------------------
  |  Branch (3465:9): [True: 38.1k, False: 650k]
  ------------------
 3466|  42.7k|        case value_t::array:
  ------------------
  |  Branch (3466:9): [True: 4.55k, False: 684k]
  ------------------
 3467|  55.8k|        case value_t::string:
  ------------------
  |  Branch (3467:9): [True: 13.1k, False: 675k]
  ------------------
 3468|  72.5k|        case value_t::binary:
  ------------------
  |  Branch (3468:9): [True: 16.7k, False: 671k]
  ------------------
 3469|  72.5k|            return true;
 3470|       |
 3471|   558k|        case value_t::null:
  ------------------
  |  Branch (3471:9): [True: 558k, False: 129k]
  ------------------
 3472|   579k|        case value_t::boolean:
  ------------------
  |  Branch (3472:9): [True: 21.1k, False: 667k]
  ------------------
 3473|   593k|        case value_t::number_integer:
  ------------------
  |  Branch (3473:9): [True: 13.1k, False: 675k]
  ------------------
 3474|   602k|        case value_t::number_unsigned:
  ------------------
  |  Branch (3474:9): [True: 9.00k, False: 679k]
  ------------------
 3475|   614k|        case value_t::number_float:
  ------------------
  |  Branch (3475:9): [True: 12.2k, False: 676k]
  ------------------
 3476|   616k|        case value_t::discarded:
  ------------------
  |  Branch (3476:9): [True: 1.76k, False: 686k]
  ------------------
 3477|   616k|        default:
  ------------------
  |  Branch (3477:9): [True: 0, False: 688k]
  ------------------
 3478|   616k|            return false;
 3479|   688k|    }
 3480|   688k|}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value13destroy_ownedENS0_6detail7value_tE:
41231|  72.5k|        {
41232|  72.5k|            switch (t)
41233|  72.5k|            {
41234|  13.1k|                case value_t::string:
  ------------------
  |  Branch (41234:17): [True: 13.1k, False: 59.4k]
  ------------------
41235|  13.1k|                    destroy_pointer(string);
41236|  13.1k|                    break;
41237|       |
41238|  16.7k|                case value_t::binary:
  ------------------
  |  Branch (41238:17): [True: 16.7k, False: 55.8k]
  ------------------
41239|  16.7k|                    destroy_pointer(binary);
41240|  16.7k|                    break;
41241|       |
41242|  38.1k|                case value_t::object:
  ------------------
  |  Branch (41242:17): [True: 38.1k, False: 34.4k]
  ------------------
41243|  42.7k|                case value_t::array:
  ------------------
  |  Branch (41243:17): [True: 4.55k, False: 68.0k]
  ------------------
41244|  42.7k|                    destroy_container(t);
41245|  42.7k|                    break;
41246|       |
41247|      0|                case value_t::null: // LCOV_EXCL_LINE
  ------------------
  |  Branch (41247:17): [True: 0, False: 72.5k]
  ------------------
41248|      0|                case value_t::boolean:
  ------------------
  |  Branch (41248:17): [True: 0, False: 72.5k]
  ------------------
41249|      0|                case value_t::number_integer:
  ------------------
  |  Branch (41249:17): [True: 0, False: 72.5k]
  ------------------
41250|      0|                case value_t::number_unsigned:
  ------------------
  |  Branch (41250:17): [True: 0, False: 72.5k]
  ------------------
41251|      0|                case value_t::number_float:
  ------------------
  |  Branch (41251:17): [True: 0, False: 72.5k]
  ------------------
41252|      0|                case value_t::discarded:
  ------------------
  |  Branch (41252:17): [True: 0, False: 72.5k]
  ------------------
41253|      0|                default:
  ------------------
  |  Branch (41253:17): [True: 0, False: 72.5k]
  ------------------
41254|      0|                    break; // LCOV_EXCL_LINE
41255|  72.5k|            }
41256|  72.5k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value15destroy_pointerISA_EEvRPT_:
41063|  13.1k|        {
41064|  13.1k|            if (ptr == nullptr)
  ------------------
  |  Branch (41064:17): [True: 0, False: 13.1k]
  ------------------
41065|      0|            {
41066|       |                // not initialized (e.g., due to exception in the ctor)
41067|      0|                return;
41068|      0|            }
41069|  13.1k|            AllocatorType<T> alloc;
41070|  13.1k|            std::allocator_traits<decltype(alloc)>::destroy(alloc, ptr);
41071|  13.1k|            std::allocator_traits<decltype(alloc)>::deallocate(alloc, ptr, 1);
41072|  13.1k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value15destroy_pointerINS0_27byte_container_with_subtypeISD_EEEEvRPT_:
41063|  16.7k|        {
41064|  16.7k|            if (ptr == nullptr)
  ------------------
  |  Branch (41064:17): [True: 0, False: 16.7k]
  ------------------
41065|      0|            {
41066|       |                // not initialized (e.g., due to exception in the ctor)
41067|      0|                return;
41068|      0|            }
41069|  16.7k|            AllocatorType<T> alloc;
41070|  16.7k|            std::allocator_traits<decltype(alloc)>::destroy(alloc, ptr);
41071|  16.7k|            std::allocator_traits<decltype(alloc)>::deallocate(alloc, ptr, 1);
41072|  16.7k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value17destroy_containerENS0_6detail7value_tE:
41076|  42.7k|        {
41077|  42.7k|            if (
41078|  42.7k|                (t == value_t::object && object == nullptr) ||
  ------------------
  |  Branch (41078:18): [True: 38.1k, False: 4.55k]
  |  Branch (41078:42): [True: 0, False: 38.1k]
  ------------------
41079|  42.7k|                (t == value_t::array && array == nullptr)
  ------------------
  |  Branch (41079:18): [True: 4.55k, False: 38.1k]
  |  Branch (41079:41): [True: 0, False: 4.55k]
  ------------------
41080|  42.7k|            )
41081|      0|            {
41082|       |                // not initialized (e.g., due to exception in the ctor)
41083|      0|                return;
41084|      0|            }
41085|       |
41086|       |            // This json_value is not itself a basic_json, so the top-level
41087|       |            // container is first moved into a local stand-in ("cur"); a
41088|       |            // default-constructed data has a null pointer in its m_value
41089|       |            // (see data::m_value's initializer), so swapping it with *this
41090|       |            // leaves this union's own pointer null, and it is never looked
41091|       |            // at or freed a second time. The stand-ins are data, not
41092|       |            // basic_json, so that destroying a value never constructs a
41093|       |            // CustomBaseClass, whose constructor may allocate (#5995).
41094|  42.7k|            data cur;
41095|  42.7k|            cur.m_type = t;
41096|  42.7k|            std::swap(cur.m_value, *this);
41097|       |
41098|  42.7k|            destroy_bounded(cur, 0);
41099|  42.7k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataC2Ev:
46524|   398k|        data() noexcept = default;
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value15destroy_boundedERNSE_4dataEm:
41106|  69.8k|        {
41107|  69.8k|            if (JSON_HEDLEY_UNLIKELY(depth >= detail::recursion_depth_limit()))
  ------------------
  |  | 1697|  69.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 69.8k]
  |  |  ------------------
  ------------------
41108|      0|            {
41109|      0|                destroy_walk(v);
41110|      0|                return;
41111|      0|            }
41112|       |
41113|  69.8k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (41113:17): [True: 22.4k, False: 47.4k]
  ------------------
41114|  22.4k|            {
41115|  22.4k|                for (auto& child : *v.m_value.array)
  ------------------
  |  Branch (41115:34): [True: 103k, False: 22.4k]
  ------------------
41116|   103k|                {
41117|   103k|                    if (child.m_data.m_type == value_t::array || child.m_data.m_type == value_t::object)
  ------------------
  |  Branch (41117:25): [True: 9.74k, False: 93.6k]
  |  Branch (41117:66): [True: 4.38k, False: 89.2k]
  ------------------
41118|  14.1k|                    {
41119|  14.1k|                        destroy_bounded(child.m_data, depth + 1);
41120|  14.1k|                    }
41121|   103k|                }
41122|  22.4k|            }
41123|  47.4k|            else
41124|  47.4k|            {
41125|  47.4k|                for (auto& child : *v.m_value.object)
  ------------------
  |  Branch (41125:34): [True: 106k, False: 47.4k]
  ------------------
41126|   106k|                {
41127|   106k|                    if (child.second.m_data.m_type == value_t::array || child.second.m_data.m_type == value_t::object)
  ------------------
  |  Branch (41127:25): [True: 8.13k, False: 98.4k]
  |  Branch (41127:73): [True: 4.88k, False: 93.5k]
  ------------------
41128|  13.0k|                    {
41129|  13.0k|                        destroy_bounded(child.second.m_data, depth + 1);
41130|  13.0k|                    }
41131|   106k|                }
41132|  47.4k|            }
41133|       |
41134|       |            // only leaves and already destroyed (null) children remain
41135|  69.8k|            free_container(v);
41136|  69.8k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value15has_no_childrenERKNSE_4dataE:
40947|   279k|        {
40948|   279k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (40948:17): [True: 22.4k, False: 257k]
  ------------------
40949|  22.4k|            {
40950|  22.4k|                return v.m_value.array->empty();
40951|  22.4k|            }
40952|   257k|            if (v.m_type == value_t::object)
  ------------------
  |  Branch (40952:17): [True: 47.4k, False: 209k]
  ------------------
40953|  47.4k|            {
40954|  47.4k|                return v.m_value.object->empty();
40955|  47.4k|            }
40956|   209k|            return true;
40957|   257k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value19all_children_leavesERKNSE_4dataE:
40964|  48.1k|        {
40965|       |            // array_t only needs forward iterators (see custom_array_type)
40966|  48.1k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (40966:17): [True: 11.0k, False: 37.1k]
  ------------------
40967|  11.0k|            {
40968|  11.0k|                const auto& a = *v.m_value.array;
40969|  11.0k|                return std::all_of(a.begin(), a.end(), [](const basic_json & el)
40970|  11.0k|                {
40971|  11.0k|                    return has_no_children(el.m_data);
40972|  11.0k|                });
40973|  11.0k|            }
40974|  37.1k|            const auto& o = *v.m_value.object;
40975|  37.1k|            return std::all_of(o.begin(), o.end(), [](const typename object_t::value_type & el)
40976|  37.1k|            {
40977|  37.1k|                return has_no_children(el.second.m_data);
40978|  37.1k|            });
40979|  48.1k|        }
_ZZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value19all_children_leavesERKNSE_4dataEENKUlRKSE_E_clESK_:
40970|   103k|                {
40971|   103k|                    return has_no_children(el.m_data);
40972|   103k|                });
_ZZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value19all_children_leavesERKNSE_4dataEENKUlRKNS2_4pairIKSA_SE_EEE_clESN_:
40976|   106k|            {
40977|   106k|                return has_no_children(el.second.m_data);
40978|   106k|            });
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value14free_containerERNSE_4dataE:
41042|  69.8k|        {
41043|  69.8k|            JSON_ASSERT(has_no_children(v) || all_children_leaves(v));
  ------------------
  |  | 2653|  69.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41043:13): [True: 21.7k, False: 48.1k]
  |  Branch (41043:13): [True: 48.1k, False: 0]
  |  Branch (41043:13): [True: 69.8k, False: 0]
  ------------------
41044|  69.8k|            if (v.m_type == value_t::array)
  ------------------
  |  Branch (41044:17): [True: 22.4k, False: 47.4k]
  ------------------
41045|  22.4k|            {
41046|  22.4k|                AllocatorType<array_t> alloc;
41047|  22.4k|                std::allocator_traits<decltype(alloc)>::destroy(alloc, v.m_value.array);
41048|  22.4k|                std::allocator_traits<decltype(alloc)>::deallocate(alloc, v.m_value.array, 1);
41049|  22.4k|            }
41050|  47.4k|            else
41051|  47.4k|            {
41052|  47.4k|                JSON_ASSERT(v.m_type == value_t::object);
  ------------------
  |  | 2653|  47.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (41052:17): [True: 47.4k, False: 0]
  ------------------
41053|  47.4k|                AllocatorType<object_t> alloc;
41054|  47.4k|                std::allocator_traits<decltype(alloc)>::destroy(alloc, v.m_value.object);
41055|  47.4k|                std::allocator_traits<decltype(alloc)>::deallocate(alloc, v.m_value.object, 1);
41056|  47.4k|            }
41057|  69.8k|            v.m_type = value_t::null; // avoid a double free if v is later destructed
41058|  69.8k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9from_bsonIRKSD_EESE_OT_bbNS0_6detail15error_handler_tE:
47032|  13.3k|    {
47033|  13.3k|        return from_binary_impl(detail::input_adapter(std::forward<InputType>(i)), input_format_t::bson, strict, allow_exceptions, error_handler);
47034|  13.3k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE16from_binary_implINS0_6detail22iterator_input_adapterIPKhSJ_EEEESE_T_NSG_14input_format_tEbbNSG_15error_handler_tENSG_18cbor_tag_handler_tE:
46575|  18.4k|    {
46576|  18.4k|        basic_json result;
46577|  18.4k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  18.4k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  18.4k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 1.76k, False: 16.6k]
  ------------------
46580|  1.76k|        {
46581|  1.76k|            result = value_t::discarded;
46582|  1.76k|        }
46583|  18.4k|        return result;
46584|  18.4k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2EDn:
42524|   270k|    {
42525|   270k|        assert_invariant();
42526|   270k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEEC2ERSG_bPNS1_5lexerISG_SK_Lb0EEE:
17821|  18.4k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  18.4k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_stateC2Eb:
16621|  33.5k|        : allow_exceptions(allow_exceptions_)
16622|  33.5k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEEC2EOSK_NS1_14input_format_tENS1_15error_handler_tE:
18992|  18.4k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  18.4k|    {
18994|  18.4k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  18.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11char_traitsIhE3eofEv:
 4463|   490k|    {
 4464|   490k|        return static_cast<int_type>(std::char_traits<char>::eof());
 4465|   490k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17little_endiannessEi:
18810|  40.1k|{
18811|  40.1k|    return *reinterpret_cast<char*>(&num) == 1;
18812|  40.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE9sax_parseEPSM_bNS1_18cbor_tag_handler_tE:
19017|  18.4k|    {
19018|  18.4k|        sax = sax_;
19019|  18.4k|        container_stack.clear();
19020|  18.4k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  18.4k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  18.4k|        bool result = false;
19024|       |
19025|  18.4k|        switch (input_format)
19026|  18.4k|        {
19027|  18.4k|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 18.4k, False: 0]
  ------------------
19028|  18.4k|                result = parse_bson_internal();
19029|  18.4k|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 18.4k]
  ------------------
19032|      0|                result = parse_cbor_internal(tag_handler);
19033|      0|                break;
19034|       |
19035|      0|            case input_format_t::msgpack:
  ------------------
  |  Branch (19035:13): [True: 0, False: 18.4k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|      0|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 0, False: 18.4k]
  ------------------
19040|      0|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 0, False: 18.4k]
  ------------------
19041|      0|                result = parse_ubjson_internal();
19042|      0|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 18.4k]
  ------------------
19045|      0|                result = parse_bon8_internal();
19046|      0|                break;
19047|       |
19048|      0|            case input_format_t::json: // LCOV_EXCL_LINE
  ------------------
  |  Branch (19048:13): [True: 0, False: 18.4k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 18.4k]
  ------------------
19050|      0|                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (19050:17): [Folded, False: 0]
  ------------------
19051|  18.4k|        }
19052|       |
19053|       |        // BON8: a string ends at the first byte that cannot continue it. If
19054|       |        // that byte follows the value, the reader has already taken it from
19055|       |        // the input and holds it in bon8_pushback. Without the end-of-input
19056|       |        // check below it would be dropped, and the next read would start
19057|       |        // behind it, so report the missing 0xFF instead.
19058|  14.9k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 13.1k, False: 1.75k]
  |  Branch (19058:23): [True: 0, False: 13.1k]
  |  Branch (19058:34): [True: 0, False: 0]
  |  Branch (19058:74): [True: 0, False: 0]
  ------------------
19059|      0|        {
19060|      0|            get_bon8();
19061|      0|            return last_byte_error(exception_id::unexpected_end_of_input, "string at the end of the value is not terminated by 0xFF", "value", "");
19062|      0|        }
19063|       |
19064|       |        // strict mode: next byte must be EOF
19065|  14.9k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 13.1k, False: 1.75k]
  |  Branch (19065:23): [True: 13.1k, False: 0]
  ------------------
19066|  13.1k|        {
19067|  13.1k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 0, False: 13.1k]
  |  Branch (19067:59): [True: 0, False: 13.1k]
  ------------------
19068|      0|            {
19069|      0|                get_ignore_noop();
19070|      0|            }
19071|  13.1k|            else if (input_format == input_format_t::bon8)
  ------------------
  |  Branch (19071:22): [True: 0, False: 13.1k]
  ------------------
19072|      0|            {
19073|       |                // a string that ends a container hands back the byte after it
19074|      0|                get_bon8();
19075|      0|            }
19076|  13.1k|            else
19077|  13.1k|            {
19078|  13.1k|                get();
19079|  13.1k|            }
19080|       |
19081|  13.1k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  13.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 36, False: 13.1k]
  |  |  ------------------
  ------------------
19082|     36|            {
19083|     36|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|     36|            }
19085|  13.1k|        }
19086|       |
19087|  14.8k|        return result;
19088|  14.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE12bound_parserEPSM_NS4_17integral_constantIbLb1EEE:
19096|  18.4k|    {
19097|  18.4k|        return s;
19098|  18.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE16position_bindingC2EPNS1_24json_sax_dom_error_stateEPKm:
19119|  18.4k|            : parser(parser_), saved()
19120|  18.4k|        {
19121|  18.4k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 18.4k, False: 0]
  ------------------
19122|  18.4k|            {
19123|  18.4k|                saved = parser->get_reserve_state();
19124|  18.4k|                parser->set_input_position(position);
19125|  18.4k|            }
19126|  18.4k|        }
_ZNK8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state17get_reserve_stateEv:
16668|  33.5k|    {
16669|  33.5k|        return {input_position, credit_position, reserve_credit};
16670|  33.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state18set_input_positionEPKm:
16653|  33.5k|    {
16654|  33.5k|        input_position = position;
16655|  33.5k|        credit_position = 0;
16656|  33.5k|        reserve_credit = position != nullptr ? reserved_elements_base : (std::numeric_limits<std::size_t>::max)();
  ------------------
  |  Branch (16656:26): [True: 33.5k, False: 0]
  ------------------
16657|  33.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE19parse_bson_internalEv:
19357|  18.4k|    {
19358|  18.4k|        if (JSON_HEDLEY_UNLIKELY(!open_bson_document(/*is_object*/true)))
  ------------------
  |  | 1697|  18.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 36, False: 18.3k]
  |  |  ------------------
  ------------------
19359|     36|        {
19360|     36|            return false;
19361|     36|        }
19362|       |
19363|       |        // the key currently being read; hoisted out of the loop so that its
19364|       |        // capacity is reused across elements and across nesting levels
19365|  18.3k|        string_t key;
19366|       |
19367|   174k|        while (true)
  ------------------
  |  Branch (19367:16): [True: 171k, Folded]
  ------------------
19368|   171k|        {
19369|   171k|            const auto element_type = get();
19370|       |
19371|   171k|            if (element_type == 0) // end of the innermost document
  ------------------
  |  Branch (19371:17): [True: 30.2k, False: 141k]
  ------------------
19372|  30.2k|            {
19373|       |                // a copy, not a reference: it must stay valid across the
19374|       |                // pop_back() inside leave_container() below, which destroys
19375|       |                // the container_stack element it would otherwise alias
19376|  30.2k|                const container_frame top = container_stack.back();
19377|       |
19378|  30.2k|                if (JSON_HEDLEY_UNLIKELY(!check_bson_document_size(top.start_position, top.declared_size)))
  ------------------
  |  | 1697|  30.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 62, False: 30.2k]
  |  |  ------------------
  ------------------
19379|     62|                {
19380|     62|                    return false;
19381|     62|                }
19382|       |
19383|  30.2k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|  30.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 30.2k]
  |  |  ------------------
  ------------------
19384|      0|                {
19385|      0|                    return false;
19386|      0|                }
19387|       |                // the document begun here is complete once it is not inside one
19388|  30.2k|                if (container_stack.empty())
  ------------------
  |  Branch (19388:21): [True: 13.1k, False: 17.0k]
  ------------------
19389|  13.1k|                {
19390|  13.1k|                    return true;
19391|  13.1k|                }
19392|  17.0k|                continue;
19393|  30.2k|            }
19394|       |
19395|   141k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("element list")))
  ------------------
  |  | 1697|   141k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 825, False: 140k]
  |  |  ------------------
  ------------------
19396|    825|            {
19397|    825|                return false;
19398|    825|            }
19399|       |
19400|       |            // an element needs at least its name's terminator, and the
19401|       |            // document its own terminator, within the declared size
19402|   140k|            if (JSON_HEDLEY_UNLIKELY(chars_read + 2 > container_stack.back().end_position))
  ------------------
  |  | 1697|   140k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 48, False: 140k]
  |  |  ------------------
  ------------------
19403|     48|            {
19404|     48|                return bson_document_size_error("document size ", container_stack.back().declared_size, " is too small for its content");
19405|     48|            }
19406|       |
19407|   140k|            const std::size_t element_type_parse_position = chars_read;
19408|       |            // an array's elements are named "0", "1", ... in the wire format,
19409|       |            // and those names are not passed on: they are skipped, and only
19410|       |            // checked if error_handler_t::strict must reject ill-formed UTF-8
19411|   140k|            const bool is_object = container_stack.back().is_object;
19412|   140k|            key.clear();
19413|   140k|            if (JSON_HEDLEY_UNLIKELY(!(is_object || error_handler != error_handler_t::strict
  ------------------
  |  | 1697|   476k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 109, False: 140k]
  |  |  |  Branch (1697:94): [True: 84.4k, False: 55.8k]
  |  |  |  Branch (1697:94): [True: 55.8k, False: 0]
  |  |  ------------------
  ------------------
19414|   140k|                                       ? get_bson_cstr(key, is_object)
19415|   140k|                                       : check_bson_cstr(key, std::integral_constant<bool, bulk_scan> {}))))
19416|    109|            {
19417|    109|                return false;
19418|    109|            }
19419|       |
19420|   140k|            if (is_object && !sax->key(key))
  ------------------
  |  Branch (19420:17): [True: 82.5k, False: 57.6k]
  |  Branch (19420:30): [True: 0, False: 82.5k]
  ------------------
19421|      0|            {
19422|      0|                return false;
19423|      0|            }
19424|       |
19425|   140k|            if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_internal(element_type, element_type_parse_position)))
  ------------------
  |  | 1697|   140k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 704, False: 139k]
  |  |  ------------------
  ------------------
19426|    704|            {
19427|    704|                return false;
19428|    704|            }
19429|   140k|        }
19430|  18.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE18open_bson_documentEb:
19307|  38.1k|    {
19308|       |        // recorded before the size prefix is read, because
19309|       |        // check_bson_document_size() measures the document from here
19310|  38.1k|        const std::size_t document_start = chars_read;
19311|  38.1k|        std::int32_t document_size{};
19312|  38.1k|        if (!get_number<std::int32_t, true>(document_size))
  ------------------
  |  Branch (19312:13): [True: 32, False: 38.0k]
  ------------------
19313|     32|        {
19314|     32|            return false;
19315|     32|        }
19316|       |
19317|       |        // the smallest document is the size prefix and the terminator
19318|  38.0k|        if (JSON_HEDLEY_UNLIKELY(document_size < 5))
  ------------------
  |  | 1697|  38.0k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 102, False: 37.9k]
  |  |  ------------------
  ------------------
19319|    102|        {
19320|    102|            return bson_document_size_error("document size ", document_size, " is less than 5");
19321|    102|        }
19322|       |
19323|       |        // the declared size bounds where the document ends: an embedded
19324|       |        // document must end before the terminator of the document that contains it
19325|  37.9k|        const auto unsigned_size = static_cast<std::size_t>(document_size);
19326|  37.9k|        const std::size_t document_end = unsigned_size > (std::numeric_limits<std::size_t>::max)() - document_start
  ------------------
  |  Branch (19326:42): [True: 0, False: 37.9k]
  ------------------
19327|  37.9k|                                         ? (std::numeric_limits<std::size_t>::max)()
19328|  37.9k|                                         : document_start + unsigned_size;
19329|  37.9k|        if (JSON_HEDLEY_UNLIKELY(!container_stack.empty() && document_end >= container_stack.back().end_position))
  ------------------
  |  | 1697|  57.5k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 117, False: 37.8k]
  |  |  |  Branch (1697:94): [True: 19.6k, False: 18.3k]
  |  |  |  Branch (1697:94): [True: 117, False: 19.4k]
  |  |  ------------------
  ------------------
19330|    117|        {
19331|    117|            return bson_document_size_error("document size ", document_size, " exceeds the size of the enclosing document");
19332|    117|        }
19333|       |
19334|  37.8k|        if (JSON_HEDLEY_UNLIKELY(!enter_container(is_object, detail::unknown_size())))
  ------------------
  |  | 1697|  37.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 37.8k]
  |  |  ------------------
  ------------------
19335|      0|        {
19336|      0|            return false;
19337|      0|        }
19338|       |
19339|  37.8k|        container_frame& frame = container_stack.back();
19340|  37.8k|        frame.start_position = document_start;
19341|  37.8k|        frame.end_position = document_end;
19342|  37.8k|        frame.declared_size = document_size;
19343|  37.8k|        return true;
19344|  37.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE10get_numberIiLb1EEEbRT_:
23596|  60.7k|    {
23597|       |        // read in the original format
23598|       |
23599|  60.7k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  60.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 113, False: 60.6k]
  |  |  ------------------
  ------------------
23600|    113|        {
23601|    113|            return false;
23602|    113|        }
23603|  60.6k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 60.6k]
  |  Branch (23603:34): [True: 60.6k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  60.6k|        return true;
23608|  60.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE6get_toIiEEbRT_PKc:
23503|  60.7k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  60.7k|        auto new_chars_read = ia.get_elements(&dest);
23507|  60.7k|        chars_read += new_chars_read;
23508|  60.7k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  60.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 339, False: 60.4k]
  |  |  ------------------
  ------------------
23509|    339|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    339|            ++chars_read;
23512|    339|            static_cast<void>(report_eof(context));
23513|    339|            return false;
23514|    339|        }
23515|  60.4k|        return true;
23516|  60.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIiEEmPT_m:
10326|  60.7k|    {
10327|  60.7k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  60.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIiEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  60.7k|    {
10385|  60.7k|        const std::size_t wanted = count * sizeof(T);
10386|  60.7k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  60.7k|        const std::size_t copied = (std::min)(wanted, available);
10388|  60.7k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  60.7k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 60.5k, False: 219]
  |  |  ------------------
  ------------------
10389|  60.5k|        {
10390|       |            // the copy must stay within both buffers: the caller-provided
10391|       |            // destination holds `wanted` bytes and the remaining input range
10392|       |            // holds `available` bytes, and `copied` is the minimum of the two
10393|  60.5k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  60.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 60.5k, False: 0]
  ------------------
10394|  60.5k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  60.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 60.5k, False: 0]
  ------------------
10395|       |            // &*current yields the raw address for both raw pointers and
10396|       |            // non-pointer contiguous iterators (e.g. std::vector's iterator)
10397|  60.5k|            std::memcpy(dest, &*current, copied);
10398|  60.5k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  60.5k|        }
10400|  60.7k|        return copied;
10401|  60.7k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E15remaining_countEv:
10345|   242k|    {
10346|       |#if JSON_HAS_RANGES && defined(__cpp_lib_concepts) && defined(JSON_HAS_CPP_20)
10347|       |        // std::ranges::distance also supports sized sentinels of a different
10348|       |        // type (e.g. std::counted_iterator + std::default_sentinel_t)
10349|       |        return static_cast<std::size_t>(std::ranges::distance(current, end));
10350|       |#else
10351|   242k|        return static_cast<std::size_t>(std::distance(current, end));
10352|   242k|#endif
10353|   242k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE10report_eofEPKc:
23991|  3.87k|    {
23992|  3.87k|        return sax->parse_error(chars_read, "<end of file>",
23993|  3.87k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  3.87k|    }
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state11parse_errorINS1_11parse_errorEEEbmRKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEERKT_:
16634|  10.5k|    {
16635|  10.5k|        errored = true;
16636|  10.5k|        static_cast<void>(ex);
16637|  10.5k|        if (allow_exceptions)
  ------------------
  |  Branch (16637:13): [True: 8.82k, False: 1.76k]
  ------------------
16638|  8.82k|        {
16639|  8.82k|            JSON_THROW(ex);
  ------------------
  |  | 2618|  8.82k|    #define JSON_THROW(exception) throw exception
  ------------------
16640|  8.82k|        }
16641|  1.76k|        return false;
16642|  10.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11parse_error6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_NS1_12exception_idEmRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5802|  10.5k|    {
 5803|  10.5k|        return create(static_cast<int>(id_), byte_, what_arg, context);
 5804|  10.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11parse_error6createIDnTnNSt3__19enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_imRKNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES6_:
 5787|  10.5k|    {
 5788|  10.5k|        const std::string w = concat(exception::name("parse_error", id_), "parse error",
 5789|  10.5k|                                     (byte_ != 0 ? (concat(" at byte ", std::to_string(byte_))) : ""),
  ------------------
  |  Branch (5789:39): [True: 10.5k, False: 0]
  ------------------
 5790|  10.5k|                                     ": ", exception::diagnostics(context), what_arg);
 5791|  10.5k|        return {id_, byte_, w.c_str()};
 5792|  10.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJS9_RA12_KcS9_RA3_SA_S9_RKS9_EEET_DpOT0_:
 5537|  10.5k|{
 5538|  10.5k|    OutStringType str;
 5539|  10.5k|    str.reserve(concat_length(args...));
 5540|  10.5k|    concat_into(str, std::forward<Args>(args)...);
 5541|  10.5k|    return str;
 5542|  10.5k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA12_cS9_A3_cS9_S9_EEEmRKT_DpRKT0_:
 5447|  10.5k|{
 5448|  10.5k|    return str.size() + concat_length(rest...);
 5449|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA3_cS9_S9_EEEmPKcDpRKT_:
 5441|  10.5k|{
 5442|  10.5k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA3_cS9_S9_EEEmRKT_DpRKT0_:
 5447|  10.5k|{
 5448|  10.5k|    return str.size() + concat_length(rest...);
 5449|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_EEEmPKcDpRKT_:
 5441|  10.5k|{
 5442|  10.5k|    return ::strlen(cstr) + concat_length(rest...);
 5443|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRA12_KcS9_RA3_SA_S9_RKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSI_OSJ_DpOT1_:
 5500|  10.5k|{
 5501|  10.5k|    out.append(std::forward<Arg>(arg));
 5502|  10.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA12_KcJS9_RA3_SA_S9_RKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSI_OSJ_DpOT1_:
 5500|  10.5k|{
 5501|  10.5k|    out.append(std::forward<Arg>(arg));
 5502|  10.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRA3_KcS9_RKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  10.5k|{
 5501|  10.5k|    out.append(std::forward<Arg>(arg));
 5502|  10.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA3_KcJS9_RKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  10.5k|{
 5501|  10.5k|    out.append(std::forward<Arg>(arg));
 5502|  10.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA10_KcS9_EEET_DpOT0_:
 5537|  10.5k|{
 5538|  10.5k|    OutStringType str;
 5539|  10.5k|    str.reserve(concat_length(args...));
 5540|  10.5k|    concat_into(str, std::forward<Args>(args)...);
 5541|  10.5k|    return str;
 5542|  10.5k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA10_KcJS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|  10.5k|{
 5501|  10.5k|    out.append(std::forward<Arg>(arg));
 5502|  10.5k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  10.5k|}
_ZN8nlohmann16json_abi_v3_12_06detail11parse_errorC2EimPKc:
 5819|  10.5k|        : exception(id_, what_arg), byte(byte_) {}
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE17exception_messageERKSC_SP_:
24102|  4.91k|    {
24103|  4.91k|        std::string error_msg = "syntax error while parsing ";
24104|  4.91k|        error_msg += input_format_name(input_format);
24105|       |
24106|  4.91k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  4.91k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17input_format_nameENS1_14input_format_tE:
 9338|  9.82k|{
 9339|  9.82k|    switch (format)
 9340|  9.82k|    {
 9341|      0|        case input_format_t::cbor:
  ------------------
  |  Branch (9341:9): [True: 0, False: 9.82k]
  ------------------
 9342|      0|            return "CBOR";
 9343|      0|        case input_format_t::msgpack:
  ------------------
  |  Branch (9343:9): [True: 0, False: 9.82k]
  ------------------
 9344|      0|            return "MessagePack";
 9345|      0|        case input_format_t::ubjson:
  ------------------
  |  Branch (9345:9): [True: 0, False: 9.82k]
  ------------------
 9346|      0|            return "UBJSON";
 9347|  9.82k|        case input_format_t::bson:
  ------------------
  |  Branch (9347:9): [True: 9.82k, False: 0]
  ------------------
 9348|  9.82k|            return "BSON";
 9349|      0|        case input_format_t::bjdata:
  ------------------
  |  Branch (9349:9): [True: 0, False: 9.82k]
  ------------------
 9350|      0|            return "BJData";
 9351|      0|        case input_format_t::bon8:
  ------------------
  |  Branch (9351:9): [True: 0, False: 9.82k]
  ------------------
 9352|      0|            return "BON8";
 9353|      0|        case input_format_t::json: // LCOV_EXCL_LINE
  ------------------
  |  Branch (9353:9): [True: 0, False: 9.82k]
  ------------------
 9354|      0|        default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (9354:9): [True: 0, False: 9.82k]
  ------------------
 9355|      0|            JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (9355:13): [Folded, False: 0]
  ------------------
 9356|      0|            return ""; // LCOV_EXCL_LINE
 9357|  9.82k|    }
 9358|  9.82k|}
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRS9_cRKS9_RA3_KcSC_EEET_DpOT0_:
 5537|  9.82k|{
 5538|  9.82k|    OutStringType str;
 5539|  9.82k|    str.reserve(concat_length(args...));
 5540|  9.82k|    concat_into(str, std::forward<Args>(args)...);
 5541|  9.82k|    return str;
 5542|  9.82k|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJcS9_A3_cS9_EEEmRKT_DpRKT0_:
 5447|  9.82k|{
 5448|  9.82k|    return str.size() + concat_length(rest...);
 5449|  9.82k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA3_cS9_EEEmcDpRKT_:
 5435|  9.82k|{
 5436|  9.82k|    return 1 + concat_length(rest...);
 5437|  9.82k|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA3_cS9_EEEmRKT_DpRKT0_:
 5447|  9.82k|{
 5448|  9.82k|    return str.size() + concat_length(rest...);
 5449|  9.82k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERS9_JcRKS9_RA3_KcSC_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSH_OSI_DpOT1_:
 5500|  9.82k|{
 5501|  9.82k|    out.append(std::forward<Arg>(arg));
 5502|  9.82k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  9.82k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEcJRKS9_RA3_KcSB_ETnNS3_9enable_ifIXaantsr24detect_string_can_appendIT_T0_EE5valuesr27detect_string_can_append_opISG_SH_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5509|  9.82k|{
 5510|  9.82k|    out += std::forward<Arg>(arg);
 5511|  9.82k|    concat_into(out, std::forward<Args>(rest)...);
 5512|  9.82k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JRA3_KcSB_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  9.82k|{
 5501|  9.82k|    out.append(std::forward<Arg>(arg));
 5502|  9.82k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  9.82k|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA3_KcJRKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|  9.82k|{
 5501|  9.82k|    out.append(std::forward<Arg>(arg));
 5502|  9.82k|    concat_into(out, std::forward<Args>(rest)...);
 5503|  9.82k|}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE15enter_containerEbmm:
19201|  37.8k|    {
19202|  37.8k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|  75.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 37.8k]
  |  |  |  Branch (1697:94): [True: 25.8k, False: 11.9k]
  |  |  ------------------
  ------------------
19203|      0|        {
19204|      0|            return false;
19205|      0|        }
19206|       |
19207|  37.8k|        container_stack.emplace_back(len, is_object, type_marker);
19208|  37.8k|        return true;
19209|  37.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE12start_objectEm:
17878|  25.8k|    {
17879|  25.8k|        ref_stack.push_back(handle_value(BasicJsonType::value_t::object));
17880|       |
17881|       |#if JSON_DIAGNOSTIC_POSITIONS
17882|       |        // Ensure this is after the call to handle_value to ensure correct start position.
17883|       |        diagnostic_positions::set_container_start(*ref_stack.back(), m_lexer_ref);
17884|       |#endif
17885|       |
17886|  25.8k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|  25.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE12handle_valueINS1_7value_tEEEPSG_OT_:
17961|  37.8k|    {
17962|  37.8k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 18.3k, False: 19.4k]
  ------------------
17963|  18.3k|        {
17964|  18.3k|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|  18.3k|            return &root;
17971|  18.3k|        }
17972|       |
17973|  19.4k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  19.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 7.63k, False: 11.8k]
  |  Branch (17973:9): [True: 11.8k, False: 0]
  |  Branch (17973:9): [True: 19.4k, False: 0]
  ------------------
17974|       |
17975|  19.4k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 7.63k, False: 11.8k]
  ------------------
17976|  7.63k|        {
17977|  7.63k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  7.63k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  7.63k|        }
17985|       |
17986|  11.8k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  11.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 11.8k, False: 0]
  ------------------
17987|  11.8k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  11.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 11.8k, False: 0]
  ------------------
17988|  11.8k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  11.8k|        return object_element;
17995|  11.8k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE8is_arrayEv:
43077|   589k|    {
43078|   589k|        return m_data.m_type == value_t::array;
43079|   589k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9is_objectEv:
43069|   573k|    {
43070|   573k|        return m_data.m_type == value_t::object;
43071|   573k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2EOSE_:
42896|   132k|        : json_base_class_t(std::move(static_cast<json_base_class_t&>(other))),
42897|   132k|          m_data(std::move(other.m_data))
42898|       |#if JSON_DIAGNOSTIC_POSITIONS
42899|       |        , start_position(other.start_position)
42900|       |        , end_position(other.end_position)
42901|       |#endif
42902|   132k|    {
42903|       |        // check that the passed value is valid
42904|   132k|        other.assert_invariant(false);
42905|       |
42906|       |        // invalidate payload
42907|   132k|        other.m_data.m_type = value_t::null;
42908|   132k|        other.m_data.m_value = {};
42909|       |
42910|       |#if JSON_DIAGNOSTIC_POSITIONS
42911|       |        other.start_position = std::string::npos;
42912|       |        other.end_position = std::string::npos;
42913|       |#endif
42914|       |
42915|   132k|        set_parents();
42916|   132k|        assert_invariant();
42917|   132k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11set_parentsEv:
41299|   542k|    {
41300|       |#if JSON_DIAGNOSTICS
41301|       |        if (m_data.m_type == value_t::array)
41302|       |        {
41303|       |            for (auto& element : *m_data.m_value.array)
41304|       |            {
41305|       |                element.m_parent = this;
41306|       |            }
41307|       |        }
41308|       |        else if (m_data.m_type == value_t::object)
41309|       |        {
41310|       |            for (auto& element : *m_data.m_value.object)
41311|       |            {
41312|       |                element.second.m_parent = this;
41313|       |            }
41314|       |        }
41315|       |#endif
41316|   542k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20check_container_sizeINS1_26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEENS1_22iterator_input_adapterIPKhSK_EEEESH_EEbRT_mPKcPT0_:
16469|  37.8k|{
16470|  37.8k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|  37.8k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 37.8k]
  |  |  |  Branch (1697:94): [True: 0, False: 37.8k]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
16471|      0|    {
16472|      0|        return container_too_large_error(sax, len, kind, ref);
16473|      0|    }
16474|  37.8k|    return true;
16475|  37.8k|}
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4sizeEv:
44908|  6.56k|    {
44909|  6.56k|        switch (m_data.m_type)
44910|  6.56k|        {
44911|      0|            case value_t::null:
  ------------------
  |  Branch (44911:13): [True: 0, False: 6.56k]
  ------------------
44912|      0|            {
44913|       |                // null values are empty
44914|      0|                return 0;
44915|      0|            }
44916|       |
44917|      0|            case value_t::array:
  ------------------
  |  Branch (44917:13): [True: 0, False: 6.56k]
  ------------------
44918|      0|            {
44919|       |                // delegate call to array_t::size()
44920|      0|                return m_data.m_value.array->size();
44921|      0|            }
44922|       |
44923|  6.56k|            case value_t::object:
  ------------------
  |  Branch (44923:13): [True: 6.56k, False: 0]
  ------------------
44924|  6.56k|            {
44925|       |                // delegate call to object_t::size()
44926|  6.56k|                return m_data.m_value.object->size();
44927|      0|            }
44928|       |
44929|      0|            case value_t::string:
  ------------------
  |  Branch (44929:13): [True: 0, False: 6.56k]
  ------------------
44930|      0|            case value_t::boolean:
  ------------------
  |  Branch (44930:13): [True: 0, False: 6.56k]
  ------------------
44931|      0|            case value_t::number_integer:
  ------------------
  |  Branch (44931:13): [True: 0, False: 6.56k]
  ------------------
44932|      0|            case value_t::number_unsigned:
  ------------------
  |  Branch (44932:13): [True: 0, False: 6.56k]
  ------------------
44933|      0|            case value_t::number_float:
  ------------------
  |  Branch (44933:13): [True: 0, False: 6.56k]
  ------------------
44934|      0|            case value_t::binary:
  ------------------
  |  Branch (44934:13): [True: 0, False: 6.56k]
  ------------------
44935|      0|            case value_t::discarded:
  ------------------
  |  Branch (44935:13): [True: 0, False: 6.56k]
  ------------------
44936|      0|            default:
  ------------------
  |  Branch (44936:13): [True: 0, False: 6.56k]
  ------------------
44937|      0|            {
44938|       |                // all other types have size 1
44939|      0|                return 1;
44940|      0|            }
44941|  6.56k|        }
44942|  6.56k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE11start_arrayEm:
17915|  11.9k|    {
17916|  11.9k|        ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
17917|       |
17918|       |#if JSON_DIAGNOSTIC_POSITIONS
17919|       |        // Ensure this is after the call to handle_value to ensure correct start position.
17920|       |        diagnostic_positions::set_container_start(*ref_stack.back(), m_lexer_ref);
17921|       |#endif
17922|       |
17923|  11.9k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|  11.9k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 11.9k]
  |  |  ------------------
  ------------------
17924|      0|        {
17925|      0|            return false;
17926|      0|        }
17927|       |
17928|  11.9k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 0, False: 11.9k]
  ------------------
17929|      0|        {
17930|      0|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|      0|        }
17932|       |
17933|  11.9k|        return true;
17934|  11.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE15container_frameC2Embm:
19167|  37.8k|            : remaining(remaining_), type_marker(type_marker_), is_object(is_object_) {}
_ZN8nlohmann16json_abi_v3_12_06detail12unknown_sizeEv:
16376|   162k|{
16377|   162k|    return (std::numeric_limits<std::size_t>::max)();
16378|   162k|}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE24check_bson_document_sizeEmi:
19294|  30.2k|    {
19295|  30.2k|        if (JSON_HEDLEY_UNLIKELY(static_cast<std::size_t>(document_size) != chars_read - document_start))
  ------------------
  |  | 1697|  30.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 186, False: 30.0k]
  |  |  ------------------
  ------------------
19296|    186|        {
19297|    186|            return bson_document_size_error(document_size, chars_read - document_start);
19298|    186|        }
19299|  30.0k|        return true;
19300|  30.2k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE24bson_document_size_errorEim:
24027|    186|    {
24028|    186|        return last_byte_error(exception_id::unexpected_byte, concat("document size ", std::to_string(document_size), " does not match the number of bytes read (", std::to_string(bytes_read), ")"), "document");
24029|    186|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA15_KcS9_RA43_SA_S9_RA2_SA_EEET_DpOT0_:
 5537|    372|{
 5538|    372|    OutStringType str;
 5539|    372|    str.reserve(concat_length(args...));
 5540|    372|    concat_into(str, std::forward<Args>(args)...);
 5541|    372|    return str;
 5542|    372|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA43_cS9_A2_cEEEmPKcDpRKT_:
 5441|    372|{
 5442|    372|    return ::strlen(cstr) + concat_length(rest...);
 5443|    372|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA43_cS9_A2_cEEEmRKT_DpRKT0_:
 5447|    372|{
 5448|    372|    return str.size() + concat_length(rest...);
 5449|    372|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEA2_cEEEmPKcDpRKT_:
 5441|    372|{
 5442|    372|    return ::strlen(cstr) + concat_length(rest...);
 5443|    372|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJA2_cEEEmRKT_DpRKT0_:
 5447|    372|{
 5448|    372|    return str.size() + concat_length(rest...);
 5449|    372|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA15_KcJS9_RA43_SA_S9_RA2_SA_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSI_OSJ_DpOT1_:
 5500|    372|{
 5501|    372|    out.append(std::forward<Arg>(arg));
 5502|    372|    concat_into(out, std::forward<Args>(rest)...);
 5503|    372|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRA43_KcS9_RA2_SA_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|    372|{
 5501|    372|    out.append(std::forward<Arg>(arg));
 5502|    372|    concat_into(out, std::forward<Args>(rest)...);
 5503|    372|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA43_KcJS9_RA2_SA_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|    372|{
 5501|    372|    out.append(std::forward<Arg>(arg));
 5502|    372|    concat_into(out, std::forward<Args>(rest)...);
 5503|    372|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRA2_KcETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|    372|{
 5501|    372|    out.append(std::forward<Arg>(arg));
 5502|    372|    concat_into(out, std::forward<Args>(rest)...);
 5503|    372|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA2_KcJETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|    372|{
 5501|    372|    out.append(std::forward<Arg>(arg));
 5502|    372|    concat_into(out, std::forward<Args>(rest)...);
 5503|    372|}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE15leave_containerEv:
19233|  30.0k|    {
19234|  30.0k|        const bool is_object = container_stack.back().is_object;
19235|  30.0k|        container_stack.pop_back();
19236|  30.0k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 20.2k, False: 9.86k]
  ------------------
19237|  30.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE10end_objectEv:
17901|  20.2k|    {
17902|  20.2k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  20.2k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 20.2k, False: 0]
  ------------------
17903|  20.2k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  20.2k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 20.2k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|  20.2k|        ref_stack.back()->set_parents();
17910|  20.2k|        ref_stack.pop_back();
17911|  20.2k|        return true;
17912|  20.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE9end_arrayEv:
17937|  9.86k|    {
17938|  9.86k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  9.86k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 9.86k, False: 0]
  ------------------
17939|  9.86k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|  9.86k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 9.86k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|  9.86k|        ref_stack.back()->set_parents();
17946|  9.86k|        ref_stack.pop_back();
17947|  9.86k|        return true;
17948|  9.86k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE12unexpect_eofEPKc:
23974|   144k|    {
23975|   144k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|   144k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3.25k, False: 141k]
  |  |  ------------------
  ------------------
23976|  3.25k|        {
23977|  3.25k|            return report_eof(context);
23978|  3.25k|        }
23979|   141k|        return true;
23980|   144k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE24bson_document_size_errorEPKciSP_:
24033|    267|    {
24034|    267|        return last_byte_error(exception_id::unexpected_byte, concat(prefix, std::to_string(document_size), suffix), "document");
24035|    267|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRPKcS9_SC_EEET_DpOT0_:
 5537|    534|{
 5538|    534|    OutStringType str;
 5539|    534|    str.reserve(concat_length(args...));
 5540|    534|    concat_into(str, std::forward<Args>(args)...);
 5541|    534|    return str;
 5542|    534|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEPKcEEEmSB_DpRKT_:
 5441|    534|{
 5442|    534|    return ::strlen(cstr) + concat_length(rest...);
 5443|    534|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJPKcEEEmRKT_DpRKT0_:
 5447|    534|{
 5448|    534|    return str.size() + concat_length(rest...);
 5449|    534|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERPKcJS9_SC_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|    534|{
 5501|    534|    out.append(std::forward<Arg>(arg));
 5502|    534|    concat_into(out, std::forward<Args>(rest)...);
 5503|    534|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEES9_JRPKcETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|    534|{
 5501|    534|    out.append(std::forward<Arg>(arg));
 5502|    534|    concat_into(out, std::forward<Args>(rest)...);
 5503|    534|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERPKcJETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|    534|{
 5501|    534|    out.append(std::forward<Arg>(arg));
 5502|    534|    concat_into(out, std::forward<Args>(rest)...);
 5503|    534|}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE13get_bson_cstrERSC_b:
19444|   138k|    {
19445|   138k|        if (get_bson_cstr_bulk(result, store, std::integral_constant<bool, bulk_scan> {}))
  ------------------
  |  Branch (19445:13): [True: 138k, False: 327]
  ------------------
19446|   138k|        {
19447|   138k|            return !store || check_string_utf8(result, "key");
  ------------------
  |  Branch (19447:20): [True: 55.8k, False: 82.5k]
  |  Branch (19447:30): [True: 82.5k, False: 0]
  ------------------
19448|   138k|        }
19449|       |
19450|    327|        auto out = std::back_inserter(result);
19451|  3.23k|        while (true)
  ------------------
  |  Branch (19451:16): [True: 3.01k, Folded]
  ------------------
19452|  3.01k|        {
19453|  3.01k|            get();
19454|  3.01k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("cstring")))
  ------------------
  |  | 1697|  3.01k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 109, False: 2.90k]
  |  |  ------------------
  ------------------
19455|    109|            {
19456|    109|                return false;
19457|    109|            }
19458|  2.90k|            if (current == 0x00)
  ------------------
  |  Branch (19458:17): [True: 0, False: 2.90k]
  ------------------
19459|      0|            {
19460|      0|                return !store || check_string_utf8(result, "key");
  ------------------
  |  Branch (19460:24): [True: 0, False: 0]
  |  Branch (19460:34): [True: 0, False: 0]
  ------------------
19461|      0|            }
19462|  2.90k|            *out++ = static_cast<typename string_t::value_type>(current);
19463|  2.90k|        }
19464|    327|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE18get_bson_cstr_bulkERSC_bNS4_17integral_constantIbLb1EEE:
19475|   138k|    {
19476|   138k|        const std::size_t remaining = ia.bulk_remaining();
19477|   138k|        if (remaining == 0)
  ------------------
  |  Branch (19477:13): [True: 246, False: 138k]
  ------------------
19478|    246|        {
19479|    246|            return false;
19480|    246|        }
19481|   138k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
19482|   138k|        const std::size_t length = find_zero_byte(data, remaining);
19483|   138k|        if (length == remaining)
  ------------------
  |  Branch (19483:13): [True: 81, False: 138k]
  ------------------
19484|     81|        {
19485|     81|            return false;
19486|     81|        }
19487|   138k|        if (store)
  ------------------
  |  Branch (19487:13): [True: 82.5k, False: 55.8k]
  ------------------
19488|  82.5k|        {
19489|  82.5k|            result.append(reinterpret_cast<const typename string_t::value_type*>(data), length);
19490|  82.5k|        }
19491|       |        // consume the string and its \x00-byte, as the byte-wise path does
19492|   138k|        ia.bulk_skip(length + 1);
19493|   138k|        chars_read += length + 1;
19494|   138k|        current = 0x00;
19495|   138k|        return true;
19496|   138k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E14bulk_remainingEv:
10370|   141k|    {
10371|   141k|        return remaining_count();
10372|   141k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E9bulk_dataEv:
10364|   141k|    {
10365|   141k|        return &*current;
10366|   141k|    }
_ZN8nlohmann16json_abi_v3_12_06detail14find_zero_byteEPKhm:
13043|   217k|{
13044|   217k|    constexpr std::uint64_t ones = 0x0101010101010101ull;
13045|   217k|    constexpr std::uint64_t high = 0x8080808080808080ull;
13046|   217k|    std::size_t i = 0;
13047|   347k|    for (; i + 8 <= n; i += 8)
  ------------------
  |  Branch (13047:12): [True: 329k, False: 18.0k]
  ------------------
13048|   329k|    {
13049|   329k|        const std::uint64_t v = read_eight_bytes(data + i);
13050|   329k|        const std::uint64_t zero = (v - ones) & ~v & high;
13051|   329k|        if (zero != 0)
  ------------------
  |  Branch (13051:13): [True: 199k, False: 129k]
  ------------------
13052|   199k|        {
13053|       |            // the lowest flagged byte is the first zero byte (see
13054|       |            // find_string_special())
13055|   199k|            return i + (static_cast<std::size_t>(count_trailing_zeros(zero)) / 8);
13056|   199k|        }
13057|   329k|    }
13058|  35.2k|    for (; i < n; ++i)
  ------------------
  |  Branch (13058:12): [True: 35.1k, False: 135]
  ------------------
13059|  35.1k|    {
13060|  35.1k|        if (data[i] == 0x00)
  ------------------
  |  Branch (13060:13): [True: 17.9k, False: 17.2k]
  ------------------
13061|  17.9k|        {
13062|  17.9k|            return i;
13063|  17.9k|        }
13064|  35.1k|    }
13065|    135|    return n;
13066|  18.0k|}
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E9bulk_skipEm:
10376|   141k|    {
10377|   141k|        std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(n));
10378|   141k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE17check_string_utf8ERSC_PKc:
23811|  89.4k|    {
23812|  89.4k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 89.4k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|  89.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE3keyERSC_:
17890|  82.5k|    {
17891|  82.5k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  82.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 82.5k, False: 0]
  ------------------
17892|  82.5k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  82.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 82.5k, False: 0]
  ------------------
17893|       |
17894|       |        // add null at the given key and store the reference for later; the
17895|       |        // key is moved, as the lexer starts the next token with reset()
17896|  82.5k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|  82.5k|        return true;
17898|  82.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE27parse_bson_element_internalEmm:
19649|   138k|    {
19650|   138k|        switch (element_type)
19651|   138k|        {
19652|  6.84k|            case 0x01: // double
  ------------------
  |  Branch (19652:13): [True: 6.84k, False: 131k]
  ------------------
19653|  6.84k|            {
19654|  6.84k|                double number{};
19655|  6.84k|                return get_number<double, true>(number) && emit_float(number);
  ------------------
  |  Branch (19655:24): [True: 6.75k, False: 96]
  |  Branch (19655:60): [True: 6.75k, False: 0]
  ------------------
19656|      0|            }
19657|       |
19658|  7.46k|            case 0x02: // string
  ------------------
  |  Branch (19658:13): [True: 7.46k, False: 130k]
  ------------------
19659|  7.46k|            {
19660|  7.46k|                std::int32_t len{};
19661|  7.46k|                string_t value;
19662|  7.46k|                return get_number<std::int32_t, true>(len) && get_bson_string(len, value) && sax->string(value);
  ------------------
  |  Branch (19662:24): [True: 7.41k, False: 45]
  |  Branch (19662:63): [True: 6.94k, False: 471]
  |  Branch (19662:94): [True: 6.94k, False: 0]
  ------------------
19663|      0|            }
19664|       |
19665|  7.62k|            case 0x03: // object
  ------------------
  |  Branch (19665:13): [True: 7.62k, False: 130k]
  ------------------
19666|  7.62k|            {
19667|  7.62k|                return open_bson_document(/*is_object*/true);
19668|      0|            }
19669|       |
19670|  12.0k|            case 0x04: // array
  ------------------
  |  Branch (19670:13): [True: 12.0k, False: 126k]
  ------------------
19671|  12.0k|            {
19672|  12.0k|                return open_bson_document(/*is_object*/false);
19673|      0|            }
19674|       |
19675|  9.55k|            case 0x05: // binary
  ------------------
  |  Branch (19675:13): [True: 9.55k, False: 128k]
  ------------------
19676|  9.55k|            {
19677|  9.55k|                std::int32_t len{};
19678|  9.55k|                binary_t value;
19679|  9.55k|                return get_number<std::int32_t, true>(len) && get_bson_binary(len, value) && sax->binary(value);
  ------------------
  |  Branch (19679:24): [True: 9.51k, False: 45]
  |  Branch (19679:63): [True: 8.82k, False: 687]
  |  Branch (19679:94): [True: 8.82k, False: 0]
  ------------------
19680|      0|            }
19681|       |
19682|  11.2k|            case 0x08: // boolean
  ------------------
  |  Branch (19682:13): [True: 11.2k, False: 127k]
  ------------------
19683|  11.2k|            {
19684|  11.2k|                std::uint8_t value{};
19685|  11.2k|                return get_number<std::uint8_t>(value) && sax->boolean(value != 0);
  ------------------
  |  Branch (19685:24): [True: 11.2k, False: 24]
  |  Branch (19685:59): [True: 11.2k, False: 0]
  ------------------
19686|      0|            }
19687|       |
19688|  70.8k|            case 0x0A: // null
  ------------------
  |  Branch (19688:13): [True: 70.8k, False: 67.4k]
  ------------------
19689|  70.8k|            {
19690|  70.8k|                return sax->null();
19691|      0|            }
19692|       |
19693|  4.32k|            case 0x10: // int32
  ------------------
  |  Branch (19693:13): [True: 4.32k, False: 134k]
  ------------------
19694|  4.32k|            {
19695|  4.32k|                std::int32_t value{};
19696|  4.32k|                return get_number<std::int32_t, true>(value) && emit_signed(value);
  ------------------
  |  Branch (19696:24): [True: 4.28k, False: 36]
  |  Branch (19696:65): [True: 4.28k, False: 0]
  ------------------
19697|      0|            }
19698|       |
19699|  3.21k|            case 0x12: // int64
  ------------------
  |  Branch (19699:13): [True: 3.21k, False: 135k]
  ------------------
19700|  3.21k|            {
19701|  3.21k|                std::int64_t value{};
19702|  3.21k|                return get_number<std::int64_t, true>(value) && emit_signed(value);
  ------------------
  |  Branch (19702:24): [True: 3.15k, False: 60]
  |  Branch (19702:65): [True: 3.15k, False: 0]
  ------------------
19703|      0|            }
19704|       |
19705|  4.69k|            case 0x11: // uint64
  ------------------
  |  Branch (19705:13): [True: 4.69k, False: 133k]
  ------------------
19706|  4.69k|            {
19707|  4.69k|                std::uint64_t value{};
19708|  4.69k|                return get_number<std::uint64_t, true>(value) && emit_unsigned(value);
  ------------------
  |  Branch (19708:24): [True: 4.63k, False: 60]
  |  Branch (19708:66): [True: 4.63k, False: 0]
  ------------------
19709|      0|            }
19710|       |
19711|    381|            default: // anything else is not supported (yet)
  ------------------
  |  Branch (19711:13): [True: 381, False: 137k]
  ------------------
19712|    381|            {
19713|    381|                return bson_unsupported_type_error(element_type_parse_position, element_type);
19714|      0|            }
19715|   138k|        }
19716|   138k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE10get_numberIdLb1EEEbRT_:
23596|  6.84k|    {
23597|       |        // read in the original format
23598|       |
23599|  6.84k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  6.84k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 32, False: 6.81k]
  |  |  ------------------
  ------------------
23600|     32|        {
23601|     32|            return false;
23602|     32|        }
23603|  6.81k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 6.81k]
  |  Branch (23603:34): [True: 6.81k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  6.81k|        return true;
23608|  6.84k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE6get_toIdEEbRT_PKc:
23503|  6.84k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  6.84k|        auto new_chars_read = ia.get_elements(&dest);
23507|  6.84k|        chars_read += new_chars_read;
23508|  6.84k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  6.84k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 96, False: 6.75k]
  |  |  ------------------
  ------------------
23509|     96|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     96|            ++chars_read;
23512|     96|            static_cast<void>(report_eof(context));
23513|     96|            return false;
23514|     96|        }
23515|  6.75k|        return true;
23516|  6.84k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIdEEmPT_m:
10326|  6.84k|    {
10327|  6.84k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  6.84k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIdEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  6.84k|    {
10385|  6.84k|        const std::size_t wanted = count * sizeof(T);
10386|  6.84k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  6.84k|        const std::size_t copied = (std::min)(wanted, available);
10388|  6.84k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  6.84k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 6.78k, False: 60]
  |  |  ------------------
  ------------------
10389|  6.78k|        {
10390|       |            // the copy must stay within both buffers: the caller-provided
10391|       |            // destination holds `wanted` bytes and the remaining input range
10392|       |            // holds `available` bytes, and `copied` is the minimum of the two
10393|  6.78k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  6.78k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 6.78k, False: 0]
  ------------------
10394|  6.78k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  6.78k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 6.78k, False: 0]
  ------------------
10395|       |            // &*current yields the raw address for both raw pointers and
10396|       |            // non-pointer contiguous iterators (e.g. std::vector's iterator)
10397|  6.78k|            std::memcpy(dest, &*current, copied);
10398|  6.78k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  6.78k|        }
10400|  6.84k|        return copied;
10401|  6.84k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE10emit_floatIdEEbT_:
23682|  6.75k|    {
23683|  6.75k|        const auto result = static_cast<number_float_t>(number);
23684|  6.75k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  13.2k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.75k]
  |  |  |  Branch (1697:94): [True: 6.53k, False: 216]
  |  |  |  Branch (1697:94): [True: 0, False: 6.53k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  6.75k|        return sax->number_float(result, no_source);
23689|  6.75k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE16get_token_stringEv:
24091|  1.06k|    {
24092|  1.06k|        return hex_byte(static_cast<std::uint8_t>(current));
24093|  1.06k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE12number_floatEdRKSC_:
17856|  6.75k|    {
17857|  6.75k|        handle_value(val);
17858|  6.75k|        return true;
17859|  6.75k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE12handle_valueIRdEEPSG_OT_:
17961|  6.75k|    {
17962|  6.75k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 6.75k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  6.75k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.75k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 1.99k, False: 4.75k]
  |  Branch (17973:9): [True: 4.75k, False: 0]
  |  Branch (17973:9): [True: 6.75k, False: 0]
  ------------------
17974|       |
17975|  6.75k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 1.99k, False: 4.75k]
  ------------------
17976|  1.99k|        {
17977|  1.99k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  1.99k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  1.99k|        }
17985|       |
17986|  4.75k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.75k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.75k, False: 0]
  ------------------
17987|  4.75k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.75k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.75k, False: 0]
  ------------------
17988|  4.75k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  4.75k|        return object_element;
17995|  4.75k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2IRddTnNS2_9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISE_SI_EE5valueEiE4typeELi0EEEOT_:
42542|  12.2k|    {
42543|  12.2k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|  12.2k|        set_parents();
42545|  12.2k|        assert_invariant();
42546|  12.2k|    }
_ZN8nlohmann16json_abi_v3_12_014adl_serializerIdvE7to_jsonINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_S1_NS7_IhNSB_IhEEEEvEERdEEDTcmclL_ZNS0_12_GLOBAL__N_17to_jsonEEfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSJ_:
 8496|  12.2k|    {
 8497|  12.2k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|  12.2k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail10to_json_fnclINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEERdEEDTcmcl7to_jsonfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSJ_:
 8440|  12.2k|    {
 8441|  12.2k|        return to_json(j, std::forward<T>(val));
 8442|  12.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail7to_jsonINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEdTnNS4_9enable_ifIXsr3std17is_floating_pointIT0_EE5valueEiE4typeELi0EEEvRT_SI_:
 8128|  12.2k|{
 8129|  12.2k|    external_constructor<value_t::number_float>::construct(j, static_cast<typename BasicJsonType::number_float_t>(val));
 8130|  12.2k|}
_ZN8nlohmann16json_abi_v3_12_06detail20external_constructorILNS1_7value_tE7EE9constructINS0_10basic_jsonINSt3__13mapENS7_6vectorENS7_12basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEblmdSD_NS0_14adl_serializerENS9_IhNSD_IhEEEEvEEEEvRT_NSK_14number_float_tE:
 7918|  12.2k|    {
 7919|  12.2k|        j.replace_value(value_t::number_float, val);
 7920|  12.2k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE13replace_valueENS0_6detail7value_tERKNSE_10json_valueE:
41322|  85.3k|    {
41323|  85.3k|        m_data.m_value.destroy(m_data.m_type);
41324|  85.3k|        m_data.m_value = v;
41325|  85.3k|        m_data.m_type = t;
41326|  85.3k|        set_parents();
41327|  85.3k|        assert_invariant();
41328|  85.3k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2Ed:
40810|  12.2k|        json_value(number_float_t v) noexcept : number_float(v) {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE15get_bson_stringIiEEbT_RSC_:
19553|  7.41k|    {
19554|  7.41k|        if (JSON_HEDLEY_UNLIKELY(len < 1))
  ------------------
  |  | 1697|  7.41k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 114, False: 7.30k]
  |  |  ------------------
  ------------------
19555|    114|        {
19556|    114|            return bson_length_error("string length must be at least 1, is ", len, "string");
19557|    114|        }
19558|       |
19559|  7.30k|        if (JSON_HEDLEY_UNLIKELY(!get_string(len - static_cast<NumberType>(1), result)))
  ------------------
  |  | 1697|  7.30k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 85, False: 7.21k]
  |  |  ------------------
  ------------------
19560|     85|        {
19561|     85|            return false;
19562|     85|        }
19563|       |
19564|  7.21k|        if (JSON_HEDLEY_UNLIKELY(get() != 0x00))
  ------------------
  |  | 1697|  7.21k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 102, False: 7.11k]
  |  |  ------------------
  ------------------
19565|    102|        {
19566|    102|            return last_byte_error(exception_id::unexpected_byte, "BSON string is not null-terminated", "string");
19567|    102|        }
19568|       |
19569|  7.11k|        return check_string_utf8(result, "string");
19570|  7.21k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE17bson_length_errorIiEEbPKcT_SQ_:
24021|    441|    {
24022|    441|        return last_byte_error(exception_id::unexpected_byte, concat(prefix, std::to_string(len)), context);
24023|    441|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRPKcS9_EEET_DpOT0_:
 5537|    882|{
 5538|    882|    OutStringType str;
 5539|    882|    str.reserve(concat_length(args...));
 5540|    882|    concat_into(str, std::forward<Args>(args)...);
 5541|    882|    return str;
 5542|    882|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERPKcJS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|    882|{
 5501|    882|    out.append(std::forward<Arg>(arg));
 5502|    882|    concat_into(out, std::forward<Args>(rest)...);
 5503|    882|}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE10get_stringIiEEbT_RSC_:
23767|  7.30k|    {
23768|       |        // Strings are taken as is by default: none of CBOR (RFC 8949 §3.1
23769|       |        // leaves the choice to the decoder), MessagePack (whose spec
23770|       |        // explicitly allows a str object to contain an invalid byte
23771|       |        // sequence), UBJSON, BJData, or BSON requires a decoder to reject
23772|       |        // ill-formed UTF-8. Checking (and, with @ref error_handler_t::strict,
23773|       |        // rejecting, or with `replace`/`ignore`, sanitizing) is opt-in via
23774|       |        // @ref error_handler, applied by @ref check_string_utf8 at the call
23775|       |        // site to the whole string or, for an indefinite-length CBOR string,
23776|       |        // to each chunk on its own (RFC 8949, Section 3.2.3).
23777|  7.30k|        return get_bytes(len, "string", result);
23778|  7.30k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE9get_bytesIiSC_EEbT_PKcRT0_:
23893|  7.30k|    {
23894|       |        // a string that is in the block of input as a whole is appended from
23895|       |        // it, without the zero-filling resize() below
23896|  7.30k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [True: 0, Folded]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|  7.30k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 2.73k, False: 4.56k]
  ------------------
23898|  2.73k|        {
23899|  2.73k|            return true;
23900|  2.73k|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  4.56k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  4.56k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 255, False: 4.31k]
  ------------------
23906|    255|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    255|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 114, False: 141]
  ------------------
23910|    255|                                       ? static_cast<std::size_t>(len)
23911|    255|                                       : chunk_size;
23912|    255|            const std::size_t old_size = result.size();
23913|    255|            result.resize(old_size + wanted);
23914|       |            // resize() is required to make size() exactly old_size + wanted;
23915|       |            // that is the room get_elements() is allowed to write into
23916|    255|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    255|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 255, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    255|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    255|            chars_read += bytes_read;
23921|    255|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    255|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 255, False: 0]
  |  |  ------------------
  ------------------
23922|    255|            {
23923|       |                // premature end of input: shrink to what was actually read and
23924|       |                // report the failure at the first missing byte (same position
23925|       |                // accounting as get_to() for partial number reads)
23926|    255|                result.resize(old_size + bytes_read);
23927|    255|                ++chars_read;
23928|    255|                current = char_traits<char_type>::eof();
23929|    255|                return unexpect_eof(context);
23930|    255|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|      0|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 0, False: 0]
  ------------------
23933|      0|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|      0|        }
23935|  4.31k|        return true;
23936|  4.56k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE17append_from_blockIiEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  7.30k|    {
23943|  7.30k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 4.31k, False: 2.99k]
  ------------------
23944|  4.31k|        {
23945|  4.31k|            return false;
23946|  4.31k|        }
23947|       |        // (len > 0, so the unsigned type holds it; casting a signed char
23948|       |        // straight to std::size_t would trip bugprone-signed-char-misuse)
23949|  2.99k|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|  2.99k|        const std::size_t remaining = ia.bulk_remaining();
23951|  2.99k|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 255, False: 2.73k]
  ------------------
23952|    255|        {
23953|    255|            return false; // (the loop reports the premature end)
23954|    255|        }
23955|  2.73k|        const auto n = static_cast<std::size_t>(ulen);
23956|  2.73k|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|  2.73k|        ia.bulk_skip(n);
23958|  2.73k|        chars_read += n;
23959|  2.73k|        return true;
23960|  2.99k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIcEEmPT_m:
10326|    255|    {
10327|    255|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|    255|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIcEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|    255|    {
10385|    255|        const std::size_t wanted = count * sizeof(T);
10386|    255|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|    255|        const std::size_t copied = (std::min)(wanted, available);
10388|    255|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|    255|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 75, False: 180]
  |  |  ------------------
  ------------------
10389|     75|        {
10390|       |            // the copy must stay within both buffers: the caller-provided
10391|       |            // destination holds `wanted` bytes and the remaining input range
10392|       |            // holds `available` bytes, and `copied` is the minimum of the two
10393|     75|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|     75|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 75, False: 0]
  ------------------
10394|     75|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|     75|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 75, False: 0]
  ------------------
10395|       |            // &*current yields the raw address for both raw pointers and
10396|       |            // non-pointer contiguous iterators (e.g. std::vector's iterator)
10397|     75|            std::memcpy(dest, &*current, copied);
10398|     75|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|     75|        }
10400|    255|        return copied;
10401|    255|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE6stringERSC_:
17862|  6.94k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|  6.94k|        handle_value(std::move(val));
17866|  6.94k|        return true;
17867|  6.94k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE12handle_valueISC_EEPSG_OT_:
17961|  6.94k|    {
17962|  6.94k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 6.94k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  6.94k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.94k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 3.32k, False: 3.62k]
  |  Branch (17973:9): [True: 3.62k, False: 0]
  |  Branch (17973:9): [True: 6.94k, False: 0]
  ------------------
17974|       |
17975|  6.94k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 3.32k, False: 3.62k]
  ------------------
17976|  3.32k|        {
17977|  3.32k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  3.32k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  3.32k|        }
17985|       |
17986|  3.62k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.62k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 3.62k, False: 0]
  ------------------
17987|  3.62k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  3.62k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 3.62k, False: 0]
  ------------------
17988|  3.62k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  3.62k|        return object_element;
17995|  3.62k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2ISA_SA_TnNS2_9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISE_SH_EE5valueEiE4typeELi0EEEOT_:
42542|  13.1k|    {
42543|  13.1k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|  13.1k|        set_parents();
42545|  13.1k|        assert_invariant();
42546|  13.1k|    }
_ZN8nlohmann16json_abi_v3_12_014adl_serializerINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEvE7to_jsonINS0_10basic_jsonINS2_3mapENS2_6vectorES8_blmdS6_S1_NSD_IhNS6_IhEEEEvEES8_EEDTcmclL_ZNS0_12_GLOBAL__N_17to_jsonEEfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSI_:
 8496|  13.1k|    {
 8497|  13.1k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|  13.1k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail10to_json_fnclINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEESD_EEDTcmcl7to_jsonfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSI_:
 8440|  13.1k|    {
 8441|  13.1k|        return to_json(j, std::forward<T>(val));
 8442|  13.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail7to_jsonINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEvRT_ONSH_8string_tE:
 8121|  13.1k|{
 8122|  13.1k|    external_constructor<value_t::string>::construct(j, std::move(s));
 8123|  13.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail20external_constructorILNS1_7value_tE3EE9constructINS0_10basic_jsonINSt3__13mapENS7_6vectorENS7_12basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEblmdSD_NS0_14adl_serializerENS9_IhNSD_IhEEEEvEEEEvRT_ONSK_8string_tE:
 7880|  13.1k|    {
 7881|  13.1k|        const typename BasicJsonType::json_value value(std::move(s));
 7882|  13.1k|        j.replace_value(value_t::string, value);
 7883|  13.1k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2EOSA_:
40901|  13.1k|        json_value(string_t&& value) : string(create<string_t>(std::move(value))) {}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createISA_JSA_EEEPT_DpOT0_:
40734|  13.1k|    {
40735|  13.1k|        AllocatorType<T> alloc;
40736|  13.1k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
40737|       |
40738|  13.1k|        auto deleter = [&](T * obj)
40739|  13.1k|        {
40740|  13.1k|            AllocatorTraits::deallocate(alloc, obj, 1);
40741|  13.1k|        };
40742|  13.1k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
40743|  13.1k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
40744|  13.1k|        JSON_ASSERT(obj);
  ------------------
  |  | 2653|  13.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (40744:9): [True: 13.1k, False: 0]
  ------------------
40745|  13.1k|        return obj.release();
40746|  13.1k|    }
_ZN8nlohmann16json_abi_v3_12_027byte_container_with_subtypeINSt3__16vectorIhNS2_9allocatorIhEEEEEC2Ev:
 8534|  18.2k|        : container_type()
 8535|  18.2k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE15get_bson_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
19583|  9.51k|    {
19584|  9.51k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  9.51k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 105, False: 9.40k]
  |  |  ------------------
  ------------------
19585|    105|        {
19586|    105|            return bson_length_error("byte array length cannot be negative, is ", len, "binary");
19587|    105|        }
19588|       |
19589|       |        // All BSON binary values have a subtype
19590|  9.40k|        std::uint8_t subtype{};
19591|  9.40k|        if (JSON_HEDLEY_UNLIKELY(!get_number<std::uint8_t>(subtype)))
  ------------------
  |  | 1697|  9.40k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 15, False: 9.39k]
  |  |  ------------------
  ------------------
19592|     15|        {
19593|     15|            return false;
19594|     15|        }
19595|  9.39k|        result.set_subtype(subtype);
19596|       |
19597|       |        // the "old binary" subtype 0x02 starts with an int32 that repeats the
19598|       |        // size of the payload following it; the payload does not include it
19599|  9.39k|        if (subtype == 0x02)
  ------------------
  |  Branch (19599:13): [True: 1.32k, False: 8.06k]
  ------------------
19600|  1.32k|        {
19601|  1.32k|            return get_bson_old_binary(len, result);
19602|  1.32k|        }
19603|       |
19604|  8.06k|        return get_binary(len, result);
19605|  9.39k|    }
_ZN8nlohmann16json_abi_v3_12_027byte_container_with_subtypeINSt3__16vectorIhNS2_9allocatorIhEEEEE11set_subtypeEm:
 8575|  17.8k|    {
 8576|  17.8k|        m_subtype = subtype_;
 8577|  17.8k|        m_has_subtype = true;
 8578|  17.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE19get_bson_old_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
19617|  1.32k|    {
19618|  1.32k|        if (JSON_HEDLEY_UNLIKELY(len < 4))
  ------------------
  |  | 1697|  1.32k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 9, False: 1.31k]
  |  |  ------------------
  ------------------
19619|      9|        {
19620|      9|            return bson_length_error("length of binary subtype 0x02 must be at least 4, is ", len, "binary");
19621|      9|        }
19622|       |
19623|  1.31k|        std::int32_t inner_length{};
19624|  1.31k|        if (JSON_HEDLEY_UNLIKELY((!get_number<std::int32_t, true>(inner_length))))
  ------------------
  |  | 1697|  1.31k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 39, False: 1.27k]
  |  |  ------------------
  ------------------
19625|     39|        {
19626|     39|            return false;
19627|     39|        }
19628|       |
19629|  1.27k|        if (JSON_HEDLEY_UNLIKELY(static_cast<std::int64_t>(inner_length) != static_cast<std::int64_t>(len) - 4))
  ------------------
  |  | 1697|  1.27k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 213, False: 1.06k]
  |  |  ------------------
  ------------------
19630|    213|        {
19631|    213|            return bson_length_error("inner length of binary subtype 0x02 does not match the payload size; inner length is ", inner_length, "binary");
19632|    213|        }
19633|       |
19634|  1.06k|        return get_binary(inner_length, result);
19635|  1.27k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE10get_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
23867|  9.02k|    {
23868|  9.02k|        return get_bytes(len, "binary", result);
23869|  9.02k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE9get_bytesIiNS0_27byte_container_with_subtypeISF_EEEEbT_PKcRT0_:
23893|  9.02k|    {
23894|       |        // a string that is in the block of input as a whole is appended from
23895|       |        // it, without the zero-filling resize() below
23896|  9.02k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [True: 0, Folded]
  |  Branch (23896:50): [Folded, False: 0]
  ------------------
23897|  9.02k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 9.02k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  9.02k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  12.7k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 3.90k, False: 8.82k]
  ------------------
23906|  3.90k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  3.90k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 3.82k, False: 87]
  ------------------
23910|  3.90k|                                       ? static_cast<std::size_t>(len)
23911|  3.90k|                                       : chunk_size;
23912|  3.90k|            const std::size_t old_size = result.size();
23913|  3.90k|            result.resize(old_size + wanted);
23914|       |            // resize() is required to make size() exactly old_size + wanted;
23915|       |            // that is the room get_elements() is allowed to write into
23916|  3.90k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  3.90k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 3.90k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  3.90k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  3.90k|            chars_read += bytes_read;
23921|  3.90k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  3.90k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 198, False: 3.70k]
  |  |  ------------------
  ------------------
23922|    198|            {
23923|       |                // premature end of input: shrink to what was actually read and
23924|       |                // report the failure at the first missing byte (same position
23925|       |                // accounting as get_to() for partial number reads)
23926|    198|                result.resize(old_size + bytes_read);
23927|    198|                ++chars_read;
23928|    198|                current = char_traits<char_type>::eof();
23929|    198|                return unexpect_eof(context);
23930|    198|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  3.70k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  3.70k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 3.70k, False: 0]
  ------------------
23933|  3.70k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  3.70k|        }
23935|  8.82k|        return true;
23936|  9.02k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE17append_from_blockIiNS0_27byte_container_with_subtypeISF_EEEEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  9.02k|    {
23965|  9.02k|        return false;
23966|  9.02k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIhEEmPT_m:
10326|  24.6k|    {
10327|  24.6k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  24.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIhEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  24.6k|    {
10385|  24.6k|        const std::size_t wanted = count * sizeof(T);
10386|  24.6k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  24.6k|        const std::size_t copied = (std::min)(wanted, available);
10388|  24.6k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  24.6k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 24.3k, False: 228]
  |  |  ------------------
  ------------------
10389|  24.3k|        {
10390|       |            // the copy must stay within both buffers: the caller-provided
10391|       |            // destination holds `wanted` bytes and the remaining input range
10392|       |            // holds `available` bytes, and `copied` is the minimum of the two
10393|  24.3k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  24.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 24.3k, False: 0]
  ------------------
10394|  24.3k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  24.3k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 24.3k, False: 0]
  ------------------
10395|       |            // &*current yields the raw address for both raw pointers and
10396|       |            // non-pointer contiguous iterators (e.g. std::vector's iterator)
10397|  24.3k|            std::memcpy(dest, &*current, copied);
10398|  24.3k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  24.3k|        }
10400|  24.6k|        return copied;
10401|  24.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE6binaryERNS0_27byte_container_with_subtypeISF_EE:
17870|  8.82k|    {
17871|       |        // json_sax documents that the passed value may be moved from,
17872|       |        // so hand the buffer over instead of copying it
17873|  8.82k|        handle_value(std::move(val));
17874|  8.82k|        return true;
17875|  8.82k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE12handle_valueINS0_27byte_container_with_subtypeISF_EEEEPSG_OT_:
17961|  8.82k|    {
17962|  8.82k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 8.82k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  8.82k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  8.82k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 2.72k, False: 6.09k]
  |  Branch (17973:9): [True: 6.09k, False: 0]
  |  Branch (17973:9): [True: 8.82k, False: 0]
  ------------------
17974|       |
17975|  8.82k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 2.72k, False: 6.09k]
  ------------------
17976|  2.72k|        {
17977|  2.72k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  2.72k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  2.72k|        }
17985|       |
17986|  6.09k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  6.09k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 6.09k, False: 0]
  ------------------
17987|  6.09k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  6.09k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 6.09k, False: 0]
  ------------------
17988|  6.09k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  6.09k|        return object_element;
17995|  6.09k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2INS0_27byte_container_with_subtypeISD_EESH_TnNS2_9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISE_SJ_EE5valueEiE4typeELi0EEEOT_:
42542|  16.7k|    {
42543|  16.7k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|  16.7k|        set_parents();
42545|  16.7k|        assert_invariant();
42546|  16.7k|    }
_ZN8nlohmann16json_abi_v3_12_014adl_serializerINS0_27byte_container_with_subtypeINSt3__16vectorIhNS3_9allocatorIhEEEEEEvE7to_jsonINS0_10basic_jsonINS3_3mapES4_NS3_12basic_stringIcNS3_11char_traitsIcEENS5_IcEEEEblmdS5_S1_S7_vEES8_EEDTcmclL_ZNS0_12_GLOBAL__N_17to_jsonEEfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSK_:
 8496|  16.7k|    {
 8497|  16.7k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|  16.7k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail10to_json_fnclINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEENS0_27byte_container_with_subtypeISG_EEEEDTcmcl7to_jsonfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSK_:
 8440|  16.7k|    {
 8441|  16.7k|        return to_json(j, std::forward<T>(val));
 8442|  16.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail7to_jsonINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEvRT_RKNSH_8binary_tE:
 8261|  16.7k|{
 8262|  16.7k|    external_constructor<value_t::binary>::construct(j, bin);
 8263|  16.7k|}
_ZN8nlohmann16json_abi_v3_12_06detail20external_constructorILNS1_7value_tE8EE9constructINS0_10basic_jsonINSt3__13mapENS7_6vectorENS7_12basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEblmdSD_NS0_14adl_serializerENS9_IhNSD_IhEEEEvEEEEvRT_RKNSK_8binary_tE:
 7900|  16.7k|    {
 7901|  16.7k|        const typename BasicJsonType::json_value value(b);
 7902|  16.7k|        j.replace_value(value_t::binary, value);
 7903|  16.7k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2ERKNS0_27byte_container_with_subtypeISD_EE:
40922|  16.7k|        json_value(const binary_t& value) : binary(create<binary_t>(value)) {}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createINS0_27byte_container_with_subtypeISD_EEJRKSH_EEEPT_DpOT0_:
40734|  16.7k|    {
40735|  16.7k|        AllocatorType<T> alloc;
40736|  16.7k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
40737|       |
40738|  16.7k|        auto deleter = [&](T * obj)
40739|  16.7k|        {
40740|  16.7k|            AllocatorTraits::deallocate(alloc, obj, 1);
40741|  16.7k|        };
40742|  16.7k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
40743|  16.7k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
40744|  16.7k|        JSON_ASSERT(obj);
  ------------------
  |  | 2653|  16.7k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (40744:9): [True: 16.7k, False: 0]
  ------------------
40745|  16.7k|        return obj.release();
40746|  16.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE10get_numberIhLb0EEEbRT_:
23596|  20.6k|    {
23597|       |        // read in the original format
23598|       |
23599|  20.6k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  20.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 23, False: 20.6k]
  |  |  ------------------
  ------------------
23600|     23|        {
23601|     23|            return false;
23602|     23|        }
23603|  20.6k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 20.6k, False: 46]
  |  Branch (23603:34): [Folded, False: 20.6k]
  |  Branch (23603:57): [True: 0, False: 20.6k]
  ------------------
23604|  20.6k|        {
23605|  20.6k|            byte_swap(result);
23606|  20.6k|        }
23607|  20.6k|        return true;
23608|  20.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE6get_toIhEEbRT_PKc:
23503|  20.6k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  20.6k|        auto new_chars_read = ia.get_elements(&dest);
23507|  20.6k|        chars_read += new_chars_read;
23508|  20.6k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  20.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 69, False: 20.6k]
  |  |  ------------------
  ------------------
23509|     69|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     69|            ++chars_read;
23512|     69|            static_cast<void>(report_eof(context));
23513|     69|            return false;
23514|     69|        }
23515|  20.6k|        return true;
23516|  20.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE9byte_swapIhEEvRT_:
23555|  20.6k|    {
23556|  20.6k|        constexpr std::size_t sz = sizeof(number);
23557|       |#ifdef __cpp_lib_byteswap
23558|       |        if constexpr (sz == 1)
23559|       |        {
23560|       |            return;
23561|       |        }
23562|       |        else if constexpr(std::is_integral_v<NumberType>)
23563|       |        {
23564|       |            number = std::byteswap(number);
23565|       |            return;
23566|       |        }
23567|       |        else
23568|       |        {
23569|       |#endif
23570|  20.6k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  20.6k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 20.6k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  20.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE7booleanEb:
17838|  11.2k|    {
17839|  11.2k|        handle_value(val);
17840|  11.2k|        return true;
17841|  11.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE12handle_valueIRbEEPSG_OT_:
17961|  11.2k|    {
17962|  11.2k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 11.2k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  11.2k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  11.2k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 6.50k, False: 4.76k]
  |  Branch (17973:9): [True: 4.76k, False: 0]
  |  Branch (17973:9): [True: 11.2k, False: 0]
  ------------------
17974|       |
17975|  11.2k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 6.50k, False: 4.76k]
  ------------------
17976|  6.50k|        {
17977|  6.50k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  6.50k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  6.50k|        }
17985|       |
17986|  4.76k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.76k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 4.76k, False: 0]
  ------------------
17987|  4.76k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  4.76k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 4.76k, False: 0]
  ------------------
17988|  4.76k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  4.76k|        return object_element;
17995|  4.76k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2IRbbTnNS2_9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISE_SI_EE5valueEiE4typeELi0EEEOT_:
42542|  21.1k|    {
42543|  21.1k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|  21.1k|        set_parents();
42545|  21.1k|        assert_invariant();
42546|  21.1k|    }
_ZN8nlohmann16json_abi_v3_12_014adl_serializerIbvE7to_jsonINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_S1_NS7_IhNSB_IhEEEEvEERbEEDTcmclL_ZNS0_12_GLOBAL__N_17to_jsonEEfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSJ_:
 8496|  21.1k|    {
 8497|  21.1k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|  21.1k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail10to_json_fnclINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEERbEEDTcmcl7to_jsonfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSJ_:
 8440|  21.1k|    {
 8441|  21.1k|        return to_json(j, std::forward<T>(val));
 8442|  21.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail7to_jsonINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEbTnNS4_9enable_ifIXsr3std7is_sameIT0_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRSJ_SI_:
 8095|  21.1k|{
 8096|  21.1k|    external_constructor<value_t::boolean>::construct(j, b);
 8097|  21.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail20external_constructorILNS1_7value_tE4EE9constructINS0_10basic_jsonINSt3__13mapENS7_6vectorENS7_12basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEblmdSD_NS0_14adl_serializerENS9_IhNSD_IhEEEEvEEEEvRT_NSK_9boolean_tE:
 7863|  21.1k|    {
 7864|  21.1k|        j.replace_value(value_t::boolean, b);
 7865|  21.1k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2Eb:
40804|  21.1k|        json_value(boolean_t v) noexcept : boolean(v) {}
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE4nullEv:
17832|  70.8k|    {
17833|  70.8k|        handle_value(nullptr);
17834|  70.8k|        return true;
17835|  70.8k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE12handle_valueIDnEEPSG_OT_:
17961|  70.8k|    {
17962|  70.8k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 70.8k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  70.8k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  70.8k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 29.7k, False: 41.0k]
  |  Branch (17973:9): [True: 41.0k, False: 0]
  |  Branch (17973:9): [True: 70.8k, False: 0]
  ------------------
17974|       |
17975|  70.8k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 29.7k, False: 41.0k]
  ------------------
17976|  29.7k|        {
17977|  29.7k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  29.7k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  29.7k|        }
17985|       |
17986|  41.0k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  41.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 41.0k, False: 0]
  ------------------
17987|  41.0k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  41.0k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 41.0k, False: 0]
  ------------------
17988|  41.0k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  41.0k|        return object_element;
17995|  41.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE11emit_signedIiEEbT_:
23628|  4.28k|    {
23629|  4.28k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  4.28k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 4.28k, False: 0]
  |  |  ------------------
  ------------------
23630|  4.28k|        {
23631|  4.28k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  4.28k|        }
23633|      0|        if (value_in_range_of<number_unsigned_t>(number))
  ------------------
  |  Branch (23633:13): [True: 0, False: 0]
  ------------------
23634|      0|        {
23635|      0|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23636|      0|        }
23637|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23638|      0|        return emit_float(static_cast<long double>(number));
23639|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIliEEbT0_:
 5316|  7.76k|{
 5317|  7.76k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  7.76k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IliLb1EvE4testEi:
 5309|  7.76k|    {
 5310|  7.76k|        return true;
 5311|  7.76k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE14number_integerEl:
17844|  7.44k|    {
17845|  7.44k|        handle_value(val);
17846|  7.44k|        return true;
17847|  7.44k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE12handle_valueIRlEEPSG_OT_:
17961|  7.44k|    {
17962|  7.44k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 7.44k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  7.44k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  7.44k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 2.34k, False: 5.10k]
  |  Branch (17973:9): [True: 5.10k, False: 0]
  |  Branch (17973:9): [True: 7.44k, False: 0]
  ------------------
17974|       |
17975|  7.44k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 2.34k, False: 5.10k]
  ------------------
17976|  2.34k|        {
17977|  2.34k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  2.34k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  2.34k|        }
17985|       |
17986|  5.10k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  5.10k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 5.10k, False: 0]
  ------------------
17987|  5.10k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  5.10k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 5.10k, False: 0]
  ------------------
17988|  5.10k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  5.10k|        return object_element;
17995|  5.10k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2IRllTnNS2_9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISE_SI_EE5valueEiE4typeELi0EEEOT_:
42542|  13.1k|    {
42543|  13.1k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|  13.1k|        set_parents();
42545|  13.1k|        assert_invariant();
42546|  13.1k|    }
_ZN8nlohmann16json_abi_v3_12_014adl_serializerIlvE7to_jsonINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_S1_NS7_IhNSB_IhEEEEvEERlEEDTcmclL_ZNS0_12_GLOBAL__N_17to_jsonEEfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSJ_:
 8496|  13.1k|    {
 8497|  13.1k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|  13.1k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail10to_json_fnclINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEERlEEDTcmcl7to_jsonfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSJ_:
 8440|  13.1k|    {
 8441|  13.1k|        return to_json(j, std::forward<T>(val));
 8442|  13.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail7to_jsonINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEElTnNS4_9enable_ifIXsr33is_compatible_number_integer_typeIT_T0_EE5valueEiE4typeELi0EEEvRSI_SJ_:
 8142|  13.1k|{
 8143|  13.1k|    external_constructor<value_t::number_integer>::construct(j, static_cast<typename BasicJsonType::number_integer_t>(val));
 8144|  13.1k|}
_ZN8nlohmann16json_abi_v3_12_06detail20external_constructorILNS1_7value_tE5EE9constructINS0_10basic_jsonINSt3__13mapENS7_6vectorENS7_12basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEblmdSD_NS0_14adl_serializerENS9_IhNSD_IhEEEEvEEEEvRT_NSK_16number_integer_tE:
 7938|  13.1k|    {
 7939|  13.1k|        j.replace_value(value_t::number_integer, val);
 7940|  13.1k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2El:
40806|  13.1k|        json_value(number_integer_t v) noexcept : number_integer(v) {}
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE15number_unsignedEm:
17850|  4.63k|    {
17851|  4.63k|        handle_value(val);
17852|  4.63k|        return true;
17853|  4.63k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEE12handle_valueIRmEEPSG_OT_:
17961|  4.63k|    {
17962|  4.63k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 4.63k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  4.63k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  4.63k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 1.49k, False: 3.14k]
  |  Branch (17973:9): [True: 3.14k, False: 0]
  |  Branch (17973:9): [True: 4.63k, False: 0]
  ------------------
17974|       |
17975|  4.63k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 1.49k, False: 3.14k]
  ------------------
17976|  1.49k|        {
17977|  1.49k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  1.49k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  1.49k|        }
17985|       |
17986|  3.14k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.14k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 3.14k, False: 0]
  ------------------
17987|  3.14k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  3.14k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 3.14k, False: 0]
  ------------------
17988|  3.14k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  3.14k|        return object_element;
17995|  3.14k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2IRmmTnNS2_9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISE_SI_EE5valueEiE4typeELi0EEEOT_:
42542|  9.00k|    {
42543|  9.00k|        JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
42544|  9.00k|        set_parents();
42545|  9.00k|        assert_invariant();
42546|  9.00k|    }
_ZN8nlohmann16json_abi_v3_12_014adl_serializerImvE7to_jsonINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_S1_NS7_IhNSB_IhEEEEvEERmEEDTcmclL_ZNS0_12_GLOBAL__N_17to_jsonEEfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSJ_:
 8496|  9.00k|    {
 8497|  9.00k|        ::nlohmann::to_json(j, std::forward<TargetType>(val));
 8498|  9.00k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail10to_json_fnclINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEERmEEDTcmcl7to_jsonfp_clsr3stdE7forwardIT0_Efp0_EEcvv_EERT_OSJ_:
 8440|  9.00k|    {
 8441|  9.00k|        return to_json(j, std::forward<T>(val));
 8442|  9.00k|    }
_ZN8nlohmann16json_abi_v3_12_06detail7to_jsonINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEmTnNS4_9enable_ifIXsr26is_compatible_integer_typeINS4_11conditionalIXsr3std7is_sameINT_16number_integer_tENSJ_17number_unsigned_tEEE5valueENS1_27same_as_number_integer_typeESL_E4typeET0_EE5valueEiE4typeELi0EEEvRSJ_SP_:
 8135|  9.00k|{
 8136|  9.00k|    external_constructor<value_t::number_unsigned>::construct(j, static_cast<typename BasicJsonType::number_unsigned_t>(val));
 8137|  9.00k|}
_ZN8nlohmann16json_abi_v3_12_06detail20external_constructorILNS1_7value_tE6EE9constructINS0_10basic_jsonINSt3__13mapENS7_6vectorENS7_12basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEblmdSD_NS0_14adl_serializerENS9_IhNSD_IhEEEEvEEEEvRT_NSK_17number_unsigned_tE:
 7928|  9.00k|    {
 7929|  9.00k|        j.replace_value(value_t::number_unsigned, val);
 7930|  9.00k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2Em:
40808|  9.00k|        json_value(detail::number_unsigned_overload_type<NumberIntegerType, NumberUnsignedType> v) noexcept : number_unsigned(v) {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE10get_numberIlLb1EEEbRT_:
23596|  3.21k|    {
23597|       |        // read in the original format
23598|       |
23599|  3.21k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  3.21k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 20, False: 3.19k]
  |  |  ------------------
  ------------------
23600|     20|        {
23601|     20|            return false;
23602|     20|        }
23603|  3.19k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 3.19k]
  |  Branch (23603:34): [True: 3.19k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  3.19k|        return true;
23608|  3.21k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE6get_toIlEEbRT_PKc:
23503|  3.21k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  3.21k|        auto new_chars_read = ia.get_elements(&dest);
23507|  3.21k|        chars_read += new_chars_read;
23508|  3.21k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  3.21k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 60, False: 3.15k]
  |  |  ------------------
  ------------------
23509|     60|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     60|            ++chars_read;
23512|     60|            static_cast<void>(report_eof(context));
23513|     60|            return false;
23514|     60|        }
23515|  3.15k|        return true;
23516|  3.21k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsIlEEmPT_m:
10326|  3.21k|    {
10327|  3.21k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  3.21k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implIlEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  3.21k|    {
10385|  3.21k|        const std::size_t wanted = count * sizeof(T);
10386|  3.21k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  3.21k|        const std::size_t copied = (std::min)(wanted, available);
10388|  3.21k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  3.21k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.19k, False: 21]
  |  |  ------------------
  ------------------
10389|  3.19k|        {
10390|       |            // the copy must stay within both buffers: the caller-provided
10391|       |            // destination holds `wanted` bytes and the remaining input range
10392|       |            // holds `available` bytes, and `copied` is the minimum of the two
10393|  3.19k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  3.19k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 3.19k, False: 0]
  ------------------
10394|  3.19k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  3.19k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 3.19k, False: 0]
  ------------------
10395|       |            // &*current yields the raw address for both raw pointers and
10396|       |            // non-pointer contiguous iterators (e.g. std::vector's iterator)
10397|  3.19k|            std::memcpy(dest, &*current, copied);
10398|  3.19k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  3.19k|        }
10400|  3.21k|        return copied;
10401|  3.21k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE11emit_signedIlEEbT_:
23628|  3.15k|    {
23629|  3.15k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  3.15k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 3.15k, False: 0]
  |  |  ------------------
  ------------------
23630|  3.15k|        {
23631|  3.15k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  3.15k|        }
23633|      0|        if (value_in_range_of<number_unsigned_t>(number))
  ------------------
  |  Branch (23633:13): [True: 0, False: 0]
  ------------------
23634|      0|        {
23635|      0|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23636|      0|        }
23637|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23638|      0|        return emit_float(static_cast<long double>(number));
23639|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIllEEbT0_:
 5316|  5.41k|{
 5317|  5.41k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  5.41k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IllLb1EvE4testEl:
 5309|  5.41k|    {
 5310|  5.41k|        return true;
 5311|  5.41k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE10get_numberImLb1EEEbRT_:
23596|  4.69k|    {
23597|       |        // read in the original format
23598|       |
23599|  4.69k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  4.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 20, False: 4.67k]
  |  |  ------------------
  ------------------
23600|     20|        {
23601|     20|            return false;
23602|     20|        }
23603|  4.67k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 4.67k]
  |  Branch (23603:34): [True: 4.67k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  4.67k|        return true;
23608|  4.69k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE6get_toImEEbRT_PKc:
23503|  4.69k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  4.69k|        auto new_chars_read = ia.get_elements(&dest);
23507|  4.69k|        chars_read += new_chars_read;
23508|  4.69k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  4.69k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 60, False: 4.63k]
  |  |  ------------------
  ------------------
23509|     60|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     60|            ++chars_read;
23512|     60|            static_cast<void>(report_eof(context));
23513|     60|            return false;
23514|     60|        }
23515|  4.63k|        return true;
23516|  4.69k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E12get_elementsImEEmPT_m:
10326|  4.69k|    {
10327|  4.69k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  4.69k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E17get_elements_implImEEmPT_mNSt3__117integral_constantIbLb1EEE:
10384|  4.69k|    {
10385|  4.69k|        const std::size_t wanted = count * sizeof(T);
10386|  4.69k|        const std::size_t available = remaining_count() * sizeof(char_type);
10387|  4.69k|        const std::size_t copied = (std::min)(wanted, available);
10388|  4.69k|        if (JSON_HEDLEY_LIKELY(copied != 0))
  ------------------
  |  | 1696|  4.69k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 4.67k, False: 24]
  |  |  ------------------
  ------------------
10389|  4.67k|        {
10390|       |            // the copy must stay within both buffers: the caller-provided
10391|       |            // destination holds `wanted` bytes and the remaining input range
10392|       |            // holds `available` bytes, and `copied` is the minimum of the two
10393|  4.67k|            JSON_ASSERT(copied <= wanted);    // does not overrun the destination
  ------------------
  |  | 2653|  4.67k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10393:13): [True: 4.67k, False: 0]
  ------------------
10394|  4.67k|            JSON_ASSERT(copied <= available); // does not read past the input end
  ------------------
  |  | 2653|  4.67k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (10394:13): [True: 4.67k, False: 0]
  ------------------
10395|       |            // &*current yields the raw address for both raw pointers and
10396|       |            // non-pointer contiguous iterators (e.g. std::vector's iterator)
10397|  4.67k|            std::memcpy(dest, &*current, copied);
10398|  4.67k|            std::advance(current, static_cast<typename std::iterator_traits<IteratorType>::difference_type>(copied / sizeof(char_type)));
10399|  4.67k|        }
10400|  4.69k|        return copied;
10401|  4.69k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE13emit_unsignedImEEbT_:
23656|  4.63k|    {
23657|  4.63k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  4.63k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 4.63k, False: 0]
  |  |  ------------------
  ------------------
23658|  4.63k|        {
23659|  4.63k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  4.63k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  4.63k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofImmEEbT0_:
 5316|  9.00k|{
 5317|  9.00k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  9.00k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1ImmLb1EvE4testEm:
 5309|  9.00k|    {
 5310|  9.00k|        return true;
 5311|  9.00k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE27bson_unsupported_type_errorEmm:
24039|    381|    {
24040|    381|        const std::string cr_str = hex_byte(static_cast<std::uint8_t>(element_type));
24041|    381|        return sax->parse_error(position, cr_str,
24042|    381|                                parse_error::create(exception_id::bson_unsupported_type, position, concat("Unsupported BSON record type 0x", cr_str), nullptr));
24043|    381|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRA32_KcRKS9_EEET_DpOT0_:
 5537|    762|{
 5538|    762|    OutStringType str;
 5539|    762|    str.reserve(concat_length(args...));
 5540|    762|    concat_into(str, std::forward<Args>(args)...);
 5541|    762|    return str;
 5542|    762|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA32_KcJRKS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|    762|{
 5501|    762|    out.append(std::forward<Arg>(arg));
 5502|    762|    concat_into(out, std::forward<Args>(rest)...);
 5503|    762|}
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthIJA16_cNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEmPKcDpRKT_:
 5441|     72|{
 5442|     72|    return ::strlen(cstr) + concat_length(rest...);
 5443|     72|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERPKcJRA16_SA_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSG_OSH_DpOT1_:
 5500|     72|{
 5501|     72|    out.append(std::forward<Arg>(arg));
 5502|     72|    concat_into(out, std::forward<Args>(rest)...);
 5503|     72|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERA16_KcJS9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSE_OSF_DpOT1_:
 5500|     72|{
 5501|     72|    out.append(std::forward<Arg>(arg));
 5502|     72|    concat_into(out, std::forward<Args>(rest)...);
 5503|     72|}
_ZN8nlohmann16json_abi_v3_12_06detail23conditional_static_castImmTnNSt3__19enable_ifIXsr3std7is_sameIT_T0_EE5valueEiE4typeELi0EEES5_S6_:
 5209|  1.15k|{
 5210|  1.15k|    return value;
 5211|  1.15k|}
_ZN8nlohmann16json_abi_v3_12_06detail17token_text_bufferIcEC2Ev:
 9400|  10.0k|    token_text_buffer() = default;
_ZN8nlohmann16json_abi_v3_12_06detail17token_text_bufferIcED2Ev:
 9416|  20.1k|    ~token_text_buffer() = default;
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE15last_byte_errorENS1_12exception_idERKSC_PKcSS_:
24055|  1.03k|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|  1.03k|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|  1.03k|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 996, False: 36]
  ------------------
24059|  1.03k|    }
_ZN8nlohmann16json_abi_v3_12_06detail6concatINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJRKS9_RPKcRA16_SC_S9_EEET_DpOT0_:
 5537|     72|{
 5538|     72|    OutStringType str;
 5539|     72|    str.reserve(concat_length(args...));
 5540|     72|    concat_into(str, std::forward<Args>(args)...);
 5541|     72|    return str;
 5542|     72|} // LCOV_EXCL_LINE (exception cleanup only)
_ZN8nlohmann16json_abi_v3_12_06detail13concat_lengthINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEJPKcA16_cS9_EEEmRKT_DpRKT0_:
 5447|     72|{
 5448|     72|    return str.size() + concat_length(rest...);
 5449|     72|}
_ZN8nlohmann16json_abi_v3_12_06detail11concat_intoINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKS9_JRPKcRA16_SC_S9_ETnNS3_9enable_ifIXsr24detect_string_can_appendIT_T0_EE5valueEiE4typeELi0EEEvRSI_OSJ_DpOT1_:
 5500|     72|{
 5501|     72|    out.append(std::forward<Arg>(arg));
 5502|     72|    concat_into(out, std::forward<Args>(rest)...);
 5503|     72|}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE3getEv:
23488|   194k|    {
23489|   194k|        ++chars_read;
23490|   194k|        return current = ia.get_character();
23491|   194k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_E13get_characterEv:
10272|   194k|    {
10273|   194k|        if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|   194k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 178k, False: 15.9k]
  |  |  ------------------
  ------------------
10274|   178k|        {
10275|   178k|            auto result = char_traits<char_type>::to_int_type(*current);
10276|   178k|            std::advance(current, 1);
10277|   178k|            return result;
10278|   178k|        }
10279|       |
10280|  15.9k|        ++eof_reads;
10281|  15.9k|        return char_traits<char_type>::eof();
10282|   194k|    }
_ZN8nlohmann16json_abi_v3_12_06detail11char_traitsIhE11to_int_typeEh:
 4453|   472k|    {
 4454|   472k|        return static_cast<int_type>(c);
 4455|   472k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEE16position_bindingD2Ev:
19134|  18.4k|        {
19135|  18.4k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 18.4k, False: 0]
  ------------------
19136|  18.4k|            {
19137|  18.4k|                parser->set_reserve_state(saved);
19138|  18.4k|            }
19139|  18.4k|        }
_ZN8nlohmann16json_abi_v3_12_06detail24json_sax_dom_error_state17set_reserve_stateERKNS2_13reserve_stateE:
16673|  33.5k|    {
16674|  33.5k|        input_position = state.position;
16675|  33.5k|        credit_position = state.position_at_refill;
16676|  33.5k|        reserve_credit = state.credit;
16677|  33.5k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEC2ENS0_6detail7value_tE:
42516|  71.6k|        : m_data(stored_kind(v))
42517|  71.6k|    {
42518|  71.6k|        assert_invariant();
42519|  71.6k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE11stored_kindENS0_6detail7value_tE:
40726|  71.6k|    {
40727|  71.6k|        return (std::is_same<number_integer_t, number_unsigned_t>::value && t == value_t::number_unsigned) ? value_t::number_integer : t;
  ------------------
  |  Branch (40727:17): [Folded, False: 71.6k]
  |  Branch (40727:77): [True: 0, False: 0]
  ------------------
40728|  71.6k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4dataC2ENS0_6detail7value_tE:
46514|  71.6k|            : m_type(v), m_value(v)
46515|  71.6k|        {
46516|  71.6k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_valueC2ENS0_6detail7value_tE:
40813|  71.6k|        {
40814|  71.6k|            switch (t)
40815|  71.6k|            {
40816|  47.4k|                case value_t::object:
  ------------------
  |  Branch (40816:17): [True: 47.4k, False: 24.1k]
  ------------------
40817|  69.8k|                case value_t::array:
  ------------------
  |  Branch (40817:17): [True: 22.4k, False: 49.2k]
  ------------------
40818|  69.8k|                case value_t::string:
  ------------------
  |  Branch (40818:17): [True: 0, False: 71.6k]
  ------------------
40819|  69.8k|                case value_t::binary:
  ------------------
  |  Branch (40819:17): [True: 0, False: 71.6k]
  ------------------
40820|  69.8k|                {
40821|       |                    // allocating: kept out of line, so the scalar cases below inline
40822|  69.8k|                    init_owned(t);
40823|  69.8k|                    break;
40824|  69.8k|                }
40825|       |
40826|      0|                case value_t::boolean:
  ------------------
  |  Branch (40826:17): [True: 0, False: 71.6k]
  ------------------
40827|      0|                {
40828|      0|                    boolean = static_cast<boolean_t>(false);
40829|      0|                    break;
40830|  69.8k|                }
40831|       |
40832|      0|                case value_t::number_integer:
  ------------------
  |  Branch (40832:17): [True: 0, False: 71.6k]
  ------------------
40833|      0|                {
40834|      0|                    number_integer = static_cast<number_integer_t>(0);
40835|      0|                    break;
40836|  69.8k|                }
40837|       |
40838|      0|                case value_t::number_unsigned:
  ------------------
  |  Branch (40838:17): [True: 0, False: 71.6k]
  ------------------
40839|      0|                {
40840|      0|                    number_unsigned = static_cast<number_unsigned_t>(0);
40841|      0|                    break;
40842|  69.8k|                }
40843|       |
40844|      0|                case value_t::number_float:
  ------------------
  |  Branch (40844:17): [True: 0, False: 71.6k]
  ------------------
40845|      0|                {
40846|      0|                    number_float = static_cast<number_float_t>(0.0);
40847|      0|                    break;
40848|  69.8k|                }
40849|       |
40850|      0|                case value_t::null:
  ------------------
  |  Branch (40850:17): [True: 0, False: 71.6k]
  ------------------
40851|      0|                {
40852|      0|                    object = nullptr;  // silence warning, see #821
40853|      0|                    break;
40854|  69.8k|                }
40855|       |
40856|  1.76k|                case value_t::discarded:
  ------------------
  |  Branch (40856:17): [True: 1.76k, False: 69.8k]
  ------------------
40857|  1.76k|                default:
  ------------------
  |  Branch (40857:17): [True: 0, False: 71.6k]
  ------------------
40858|  1.76k|                {
40859|  1.76k|                    object = nullptr;  // silence warning, see #821
40860|  1.76k|                    if (JSON_HEDLEY_UNLIKELY(t == value_t::null))
  ------------------
  |  | 1697|  1.76k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.76k]
  |  |  ------------------
  ------------------
40861|      0|                    {
40862|      0|                        detail::throw_literal<other_error>(detail::exception_id::internal_error, "961c151d2e87f2686a955a9be24d316f1362bf21 3.12.0", nullptr); // LCOV_EXCL_LINE
40863|      0|                    }
40864|  1.76k|                    break;
40865|  1.76k|                }
40866|  71.6k|            }
40867|  71.6k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10json_value10init_ownedENS0_6detail7value_tE:
40871|  69.8k|        {
40872|  69.8k|            switch (t)
40873|  69.8k|            {
40874|  47.4k|                case value_t::object:
  ------------------
  |  Branch (40874:17): [True: 47.4k, False: 22.4k]
  ------------------
40875|  47.4k|                    object = create<object_t>();
40876|  47.4k|                    break;
40877|  22.4k|                case value_t::array:
  ------------------
  |  Branch (40877:17): [True: 22.4k, False: 47.4k]
  ------------------
40878|  22.4k|                    array = create<array_t>();
40879|  22.4k|                    break;
40880|      0|                case value_t::string:
  ------------------
  |  Branch (40880:17): [True: 0, False: 69.8k]
  ------------------
40881|      0|                    string = create<string_t>("");
40882|      0|                    break;
40883|      0|                case value_t::binary:
  ------------------
  |  Branch (40883:17): [True: 0, False: 69.8k]
  ------------------
40884|      0|                    binary = create<binary_t>();
40885|      0|                    break;
40886|      0|                case value_t::null: // LCOV_EXCL_LINE
  ------------------
  |  Branch (40886:17): [True: 0, False: 69.8k]
  ------------------
40887|      0|                case value_t::boolean:
  ------------------
  |  Branch (40887:17): [True: 0, False: 69.8k]
  ------------------
40888|      0|                case value_t::number_integer:
  ------------------
  |  Branch (40888:17): [True: 0, False: 69.8k]
  ------------------
40889|      0|                case value_t::number_unsigned:
  ------------------
  |  Branch (40889:17): [True: 0, False: 69.8k]
  ------------------
40890|      0|                case value_t::number_float:
  ------------------
  |  Branch (40890:17): [True: 0, False: 69.8k]
  ------------------
40891|      0|                case value_t::discarded:
  ------------------
  |  Branch (40891:17): [True: 0, False: 69.8k]
  ------------------
40892|      0|                default:
  ------------------
  |  Branch (40892:17): [True: 0, False: 69.8k]
  ------------------
40893|      0|                    break; // LCOV_EXCL_LINE
40894|  69.8k|            }
40895|  69.8k|        }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createINS3_ISA_SE_NS2_4lessISA_EENS8_INS2_4pairIKSA_SE_EEEEEEJEEEPT_DpOT0_:
40734|  47.4k|    {
40735|  47.4k|        AllocatorType<T> alloc;
40736|  47.4k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
40737|       |
40738|  47.4k|        auto deleter = [&](T * obj)
40739|  47.4k|        {
40740|  47.4k|            AllocatorTraits::deallocate(alloc, obj, 1);
40741|  47.4k|        };
40742|  47.4k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
40743|  47.4k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
40744|  47.4k|        JSON_ASSERT(obj);
  ------------------
  |  | 2653|  47.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (40744:9): [True: 47.4k, False: 0]
  ------------------
40745|  47.4k|        return obj.release();
40746|  47.4k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE6createINS4_ISE_NS8_ISE_EEEEJEEEPT_DpOT0_:
40734|  22.4k|    {
40735|  22.4k|        AllocatorType<T> alloc;
40736|  22.4k|        using AllocatorTraits = std::allocator_traits<AllocatorType<T>>;
40737|       |
40738|  22.4k|        auto deleter = [&](T * obj)
40739|  22.4k|        {
40740|  22.4k|            AllocatorTraits::deallocate(alloc, obj, 1);
40741|  22.4k|        };
40742|  22.4k|        std::unique_ptr<T, decltype(deleter)> obj(AllocatorTraits::allocate(alloc, 1), deleter);
40743|  22.4k|        AllocatorTraits::construct(alloc, obj.get(), std::forward<Args>(args)...);
40744|  22.4k|        JSON_ASSERT(obj);
  ------------------
  |  | 2653|  22.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (40744:9): [True: 22.4k, False: 0]
  ------------------
40745|  22.4k|        return obj.release();
40746|  22.4k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEaSESE_:
42928|   184k|    {
42929|       |        // check that the passed value is valid
42930|   184k|        other.assert_invariant();
42931|       |
42932|   184k|        using std::swap;
42933|   184k|        swap(m_data.m_type, other.m_data.m_type);
42934|   184k|        swap(m_data.m_value, other.m_data.m_value);
42935|       |
42936|       |#if JSON_DIAGNOSTIC_POSITIONS
42937|       |        swap(start_position, other.start_position);
42938|       |        swap(end_position, other.end_position);
42939|       |#endif
42940|       |
42941|   184k|        json_base_class_t::operator=(std::move(other));
42942|       |
42943|   184k|        set_parents();
42944|   184k|        assert_invariant();
42945|   184k|        return *this;
42946|   184k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EENS1_26json_sax_dom_binary_parserISG_SK_EEED2Ev:
19002|  18.4k|    ~binary_reader() = default;
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterIPKhSJ_EEED2Ev:
17829|  18.4k|    ~json_sax_dom_binary_parser() = default;
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterINSt3__16vectorIhNS3_9allocatorIhEEEETnNS3_9enable_ifIXsr28is_contiguous_byte_containerIT_EE5valueEiE4typeELi0EEEDTcl13input_adaptercldtfp_4dataEplcldtfp_4dataEcldtfp_4sizeEEERKS9_:
10852|  13.3k|{
10853|  13.3k|    return input_adapter(container.data(), container.data() + container.size());
10854|  13.3k|}
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterIPKhS4_vEENS1_30iterator_input_adapter_factoryIT_T0_vE12adapter_typeES6_S7_:
10755|  18.4k|{
10756|  18.4k|    using factory_type = iterator_input_adapter_factory<IteratorType, SentinelType>;
10757|  18.4k|    return factory_type::create(first, last);
10758|  18.4k|}
_ZN8nlohmann16json_abi_v3_12_06detail30iterator_input_adapter_factoryIPKhS4_vE6createES4_S4_:
10617|  18.4k|    {
10618|  18.4k|        return adapter_type(std::move(first), std::move(last));
10619|  18.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterIPKhS4_EC2ES4_S4_:
10268|  18.4k|        : begin(first), current(std::move(first)), end(std::move(last))
10269|  18.4k|    {}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE7to_bsonERKSE_NS0_6detail15error_handler_tE:
46733|  6.56k|    {
46734|  6.56k|        return to_binary_vector(j, error_handler, [&](vector_binary_writer<std::uint8_t>& w)
46735|  6.56k|        {
46736|  6.56k|            w.write_bson(j);
46737|  6.56k|        });
46738|  6.56k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE16to_binary_vectorIZNSE_7to_bsonERKSE_NS0_6detail15error_handler_tEEUlRNSI_13binary_writerISE_hNSI_18output_vector_sinkIhSC_EEEEE_EESD_SH_SJ_T_:
43400|  6.56k|    {
43401|  6.56k|        std::vector<std::uint8_t> result;
43402|  6.56k|        result.reserve(detail::binary_initial_capacity(j));
43403|  6.56k|        {
43404|       |            // the sink sets the size of result when it is destroyed, which
43405|       |            // must happen before result is returned (without NRVO, it is moved)
43406|  6.56k|            auto writer = vector_writer(result, error_handler);
43407|  6.56k|            write(writer);
43408|  6.56k|        }
43409|  6.56k|        return result;
43410|  6.56k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23binary_initial_capacityINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEmRKT_:
30426|  6.56k|{
30427|  6.56k|    return (std::max)(binary_reserve_hint(j), min_vector_sink_capacity);
30428|  6.56k|}
_ZN8nlohmann16json_abi_v3_12_06detail19binary_reserve_hintINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEEEmRKT_:
30401|  6.56k|{
30402|  6.56k|    if (j.is_array())
  ------------------
  |  Branch (30402:9): [True: 0, False: 6.56k]
  ------------------
30403|      0|    {
30404|      0|        return j.size() + 1;
30405|      0|    }
30406|       |
30407|  6.56k|    if (j.is_object())
  ------------------
  |  Branch (30407:9): [True: 6.56k, False: 0]
  ------------------
30408|  6.56k|    {
30409|  6.56k|        return (j.size() * 2) + 1;
30410|  6.56k|    }
30411|       |
30412|      0|    return 0;
30413|  6.56k|}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE13vector_writerIhEENS0_6detail13binary_writerISE_T_NSG_18output_vector_sinkISI_NS8_ISI_EEEEEERNS4_ISI_SK_EENSG_15error_handler_tE:
40416|  6.56k|    {
40417|  6.56k|        return vector_binary_writer<CharType>(::nlohmann::detail::output_vector_sink<CharType>(v), error_handler);
40418|  6.56k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEEC2ERNS3_6vectorIhS5_EE:
29861|  6.56k|        : v(&vec), cursor(vec.data() + vec.size()), limit(cursor)
29862|  6.56k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEEC2ESI_NS1_15error_handler_tE:
30458|  6.56k|        : oa(std::move(sink)), error_handler(error_handler_)
30459|  6.56k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEEC2EOS6_:
29869|  6.56k|        : v(other.v), cursor(other.cursor), limit(other.limit)
29870|  6.56k|    {
29871|  6.56k|        other.v = nullptr;
29872|  6.56k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEED2Ev:
29875|  13.1k|    {
29876|  13.1k|        if (v != nullptr)
  ------------------
  |  Branch (29876:13): [True: 6.56k, False: 6.56k]
  ------------------
29877|  6.56k|        {
29878|  6.56k|            v->resize(position());
29879|  6.56k|        }
29880|  13.1k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE8positionEv:
29978|  92.8k|    {
29979|  92.8k|        return static_cast<std::size_t>(cursor - v->data());
29980|  92.8k|    }
_ZZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE7to_bsonERKSE_NS0_6detail15error_handler_tEENKUlRNSH_13binary_writerISE_hNSH_18output_vector_sinkIhSC_EEEEE_clESN_:
46735|  6.56k|        {
46736|  6.56k|            w.write_bson(j);
46737|  6.56k|        });
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE10write_bsonERKSG_:
30502|  6.56k|    {
30503|  6.56k|        switch (j.type())
30504|  6.56k|        {
30505|  6.56k|            case value_t::object:
  ------------------
  |  Branch (30505:13): [True: 6.56k, False: 0]
  ------------------
30506|  6.56k|            {
30507|  6.56k|                write_bson_document(j);
30508|  6.56k|                break;
30509|      0|            }
30510|       |
30511|      0|            case value_t::null:
  ------------------
  |  Branch (30511:13): [True: 0, False: 6.56k]
  ------------------
30512|      0|            case value_t::array:
  ------------------
  |  Branch (30512:13): [True: 0, False: 6.56k]
  ------------------
30513|      0|            case value_t::string:
  ------------------
  |  Branch (30513:13): [True: 0, False: 6.56k]
  ------------------
30514|      0|            case value_t::boolean:
  ------------------
  |  Branch (30514:13): [True: 0, False: 6.56k]
  ------------------
30515|      0|            case value_t::number_integer:
  ------------------
  |  Branch (30515:13): [True: 0, False: 6.56k]
  ------------------
30516|      0|            case value_t::number_unsigned:
  ------------------
  |  Branch (30516:13): [True: 0, False: 6.56k]
  ------------------
30517|      0|            case value_t::number_float:
  ------------------
  |  Branch (30517:13): [True: 0, False: 6.56k]
  ------------------
30518|      0|            case value_t::binary:
  ------------------
  |  Branch (30518:13): [True: 0, False: 6.56k]
  ------------------
30519|      0|            case value_t::discarded:
  ------------------
  |  Branch (30519:13): [True: 0, False: 6.56k]
  ------------------
30520|      0|            default:
  ------------------
  |  Branch (30520:13): [True: 0, False: 6.56k]
  ------------------
30521|      0|            {
30522|      0|                JSON_THROW(type_error::create(exception_id::type_not_serializable, concat("to serialize to BSON, top-level type must be object, but is ", j.type_name()), &j));
  ------------------
  |  | 2618|      0|    #define JSON_THROW(exception) throw exception
  ------------------
30523|      0|            }
30524|  6.56k|        }
30525|  6.56k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE4typeEv:
42997|  46.0k|    {
42998|  46.0k|        return m_data.m_type;
42999|  46.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE19write_bson_documentERKSG_:
32899|  6.56k|    {
32900|  6.56k|        write_bson_document(document, bson_single_pass_sink());
32901|  6.56k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE19write_bson_documentERKSG_NS4_17integral_constantIbLb1EEE:
32906|  6.56k|    {
32907|  6.56k|        const std::size_t start = oa.written();
32908|  6.56k|        if ((error_handler == error_handler_t::keep || error_handler == error_handler_t::strict)
  ------------------
  |  Branch (32908:14): [True: 6.56k, False: 0]
  |  Branch (32908:56): [True: 0, False: 0]
  ------------------
32909|  6.56k|                && write_bson_document_single_pass(document))
  ------------------
  |  Branch (32909:20): [True: 6.56k, False: 0]
  ------------------
32910|  6.56k|        {
32911|  6.56k|            return;
32912|  6.56k|        }
32913|       |        // a length does not fit: start over, so that it is reported as the
32914|       |        // two passes report it, before anything is written
32915|      0|        oa.rewind(start);
32916|      0|        write_bson_document_two_pass(document);
32917|      0|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE7writtenEv:
29952|  63.2k|    {
29953|  63.2k|        return position();
29954|  63.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE31write_bson_document_single_passERKSG_:
32779|  6.56k|    {
32780|  6.56k|        const std::size_t start = oa.written();
32781|       |        // the object or array whose entries are being written (with the
32782|       |        // position of its size), and the ones it is in
32783|  6.56k|        bson_frame current(&document, write_bson_size_placeholder());
32784|  6.56k|        std::vector<bson_frame> parents;
32785|       |
32786|  14.0k|        while (true)
  ------------------
  |  Branch (32786:16): [True: 14.0k, Folded]
  ------------------
32787|  14.0k|        {
32788|  14.0k|            const BasicJsonType* nested = nullptr;
32789|  14.0k|            std::size_t nested_size_pos = 0;
32790|  14.0k|            if (current.value->is_object())
  ------------------
  |  Branch (32790:17): [True: 11.2k, False: 2.86k]
  ------------------
32791|  11.2k|            {
32792|  11.2k|                const auto& object = *current.value->m_data.m_value.object;
32793|  34.3k|                while (nested == nullptr && current.member != object.cend())
  ------------------
  |  Branch (32793:24): [True: 31.7k, False: 2.64k]
  |  Branch (32793:24): [True: 23.1k, False: 11.2k]
  |  Branch (32793:45): [True: 23.1k, False: 8.57k]
  ------------------
32794|  23.1k|                {
32795|  23.1k|                    const auto& el = *current.member;
32796|  23.1k|                    ++current.member;
32797|  23.1k|                    const std::size_t header_size = calc_bson_entry_header_size(el.first, el.second);
32798|  23.1k|                    const std::size_t value_size = el.second.is_structured() ? 0 : check_bson_value(el.second);
  ------------------
  |  Branch (32798:52): [True: 2.64k, False: 20.5k]
  ------------------
32799|  23.1k|                    if (JSON_HEDLEY_UNLIKELY(!bson_entry_fits(start, header_size + value_size, parents.size() + 1)))
  ------------------
  |  | 1697|  23.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 23.1k]
  |  |  ------------------
  ------------------
32800|      0|                    {
32801|      0|                        return false;
32802|      0|                    }
32803|  23.1k|                    if (el.second.is_structured())
  ------------------
  |  Branch (32803:25): [True: 2.64k, False: 20.5k]
  ------------------
32804|  2.64k|                    {
32805|  2.64k|                        write_bson_entry_header(el.first, el.second.is_object() ? 0x03 : 0x04);
  ------------------
  |  Branch (32805:59): [True: 1.09k, False: 1.55k]
  ------------------
32806|  2.64k|                        nested_size_pos = write_bson_size_placeholder();
32807|  2.64k|                        nested = &el.second;
32808|  2.64k|                    }
32809|  20.5k|                    else
32810|  20.5k|                    {
32811|  20.5k|                        write_bson_value(el.first, el.second);
32812|  20.5k|                    }
32813|  23.1k|                }
32814|  11.2k|            }
32815|  2.86k|            else
32816|  2.86k|            {
32817|  2.86k|                const auto& array = *current.value->m_data.m_value.array;
32818|  6.94k|                while (nested == nullptr && current.index < array.size())
  ------------------
  |  Branch (32818:24): [True: 4.68k, False: 2.26k]
  |  Branch (32818:45): [True: 4.42k, False: 258]
  ------------------
32819|  4.42k|                {
32820|  4.42k|                    if (is_bson_fixed_size(array[current.index]))
  ------------------
  |  Branch (32820:25): [True: 974, False: 3.44k]
  ------------------
32821|    974|                    {
32822|    974|                        write_bson_array_fixed_entries(current);
32823|    974|                        if (current.index == array.size())
  ------------------
  |  Branch (32823:29): [True: 346, False: 628]
  ------------------
32824|    346|                        {
32825|    346|                            break;
32826|    346|                        }
32827|    974|                    }
32828|       |
32829|       |                    // a string, binary value, object or array
32830|  4.07k|                    const BasicJsonType& el = array[current.index];
32831|  4.07k|                    const string_t index_name(current.index_name.data(), current.index_name_size);
32832|  4.07k|                    current.next_index();
32833|  4.07k|                    const std::size_t value_size = el.is_structured() ? 0 : check_bson_value(el);
  ------------------
  |  Branch (32833:52): [True: 2.26k, False: 1.81k]
  ------------------
32834|  4.07k|                    if (JSON_HEDLEY_UNLIKELY(!bson_entry_fits(start, 2 + index_name.size() + value_size, parents.size() + 1)))
  ------------------
  |  | 1697|  4.07k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 4.07k]
  |  |  ------------------
  ------------------
32835|      0|                    {
32836|      0|                        return false;
32837|      0|                    }
32838|  4.07k|                    if (el.is_structured())
  ------------------
  |  Branch (32838:25): [True: 2.26k, False: 1.81k]
  ------------------
32839|  2.26k|                    {
32840|  2.26k|                        write_bson_entry_header(index_name, el.is_object() ? 0x03 : 0x04);
  ------------------
  |  Branch (32840:61): [True: 910, False: 1.35k]
  ------------------
32841|  2.26k|                        nested_size_pos = write_bson_size_placeholder();
32842|  2.26k|                        nested = &el;
32843|  2.26k|                    }
32844|  1.81k|                    else
32845|  1.81k|                    {
32846|  1.81k|                        write_bson_value(index_name, el);
32847|  1.81k|                    }
32848|  4.07k|                }
32849|  2.86k|            }
32850|       |
32851|  14.0k|            if (nested != nullptr)
  ------------------
  |  Branch (32851:17): [True: 4.90k, False: 9.17k]
  ------------------
32852|  4.90k|            {
32853|  4.90k|                if (nested->is_array())
  ------------------
  |  Branch (32853:21): [True: 2.90k, False: 2.00k]
  ------------------
32854|  2.90k|                {
32855|       |                    // an array of booleans, numbers and null is written without a frame on the stack
32856|  2.90k|                    bson_frame leaf(nested, nested_size_pos);
32857|  2.90k|                    write_bson_array_fixed_entries(leaf);
32858|  2.90k|                    if (leaf.index == nested->m_data.m_value.array->size())
  ------------------
  |  Branch (32858:25): [True: 2.29k, False: 604]
  ------------------
32859|  2.29k|                    {
32860|  2.29k|                        if (JSON_HEDLEY_UNLIKELY(!close_bson_container(nested_size_pos)))
  ------------------
  |  | 1697|  2.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.29k]
  |  |  ------------------
  ------------------
32861|      0|                        {
32862|      0|                            return false; // LCOV_EXCL_LINE (a document of 2 GiB or more)
32863|      0|                        }
32864|  2.29k|                        continue;
32865|  2.29k|                    }
32866|    604|                    parents.push_back(std::move(current));
32867|    604|                    current = std::move(leaf);
32868|    604|                    continue;
32869|  2.90k|                }
32870|  2.00k|                parents.push_back(std::move(current));
32871|  2.00k|                current = bson_frame(nested, nested_size_pos);
32872|  2.00k|                continue;
32873|  4.90k|            }
32874|       |
32875|  9.17k|            if (JSON_HEDLEY_UNLIKELY(!close_bson_container(current.size_slot)))
  ------------------
  |  | 1697|  9.17k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 9.17k]
  |  |  ------------------
  ------------------
32876|      0|            {
32877|      0|                return false; // LCOV_EXCL_LINE (a document of 2 GiB or more)
32878|      0|            }
32879|  9.17k|            if (parents.empty())
  ------------------
  |  Branch (32879:17): [True: 6.56k, False: 2.60k]
  ------------------
32880|  6.56k|            {
32881|  6.56k|                return true;
32882|  6.56k|            }
32883|  2.60k|            current = std::move(parents.back());
32884|  2.60k|            parents.pop_back();
32885|  2.60k|        }
32886|  6.56k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE27write_bson_size_placeholderEv:
32717|  11.4k|    {
32718|  11.4k|        const std::size_t pos = oa.written();
32719|       |        // zero in any byte order
32720|  11.4k|        const std::array<CharType, sizeof(std::int32_t)> zero{};
32721|  11.4k|        oa.write_characters(zero.data(), zero.size());
32722|  11.4k|        return pos;
32723|  11.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE16write_charactersEPKhm:
29899|  20.6k|    {
29900|  20.6k|        if (JSON_HEDLEY_UNLIKELY(space() < length))
  ------------------
  |  | 1697|  20.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 7.55k, False: 13.1k]
  |  |  ------------------
  ------------------
29901|  7.55k|        {
29902|  7.55k|            if (length >= max_reserve_size)
  ------------------
  |  Branch (29902:17): [True: 150, False: 7.40k]
  ------------------
29903|    150|            {
29904|    150|                append(s, length);
29905|    150|                return;
29906|    150|            }
29907|  7.40k|            grow(length);
29908|  7.40k|        }
29909|  20.5k|        if (length <= 32)
  ------------------
  |  Branch (29909:13): [True: 19.6k, False: 856]
  ------------------
29910|  19.6k|        {
29911|  19.6k|            copy_short(cursor, s, length, std::integral_constant<bool, sizeof(CharType) == 1>());
29912|  19.6k|            cursor += length;
29913|  19.6k|        }
29914|    856|        else
29915|    856|        {
29916|    856|            std::memcpy(cursor, s, length * sizeof(CharType));
29917|    856|            cursor += length;
29918|    856|        }
29919|  20.5k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE5spaceEv:
29984|  44.7k|    {
29985|  44.7k|        return static_cast<std::size_t>(limit - cursor);
29986|  44.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE6appendEPKhm:
30020|    150|    {
30021|    150|        const std::size_t written = position();
30022|    150|        v->resize(written);
30023|    150|        if (v->capacity() - written < length)
  ------------------
  |  Branch (30023:13): [True: 150, False: 0]
  ------------------
30024|    150|        {
30025|       |            // grow geometrically, with room for the writes that follow, so
30026|       |            // that the next grow() need not reallocate right away
30027|    150|            v->reserve((std::max)(v->capacity() * 2, written + length + max_reserve_size));
30028|    150|        }
30029|    150|        v->insert(v->end(), s, s + length);
30030|    150|        cursor = v->data() + v->size();
30031|    150|        limit = cursor;
30032|    150|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE4growEm:
29993|  11.3k|    {
29994|       |        // use the capacity the vector already has, else at least double it;
29995|       |        // never less than min_vector_sink_capacity, so that a small value does not
29996|       |        // reallocate for every few bytes
29997|  11.3k|        const std::size_t written = position();
29998|  11.3k|        const std::size_t needed = written + length;
29999|  11.3k|        const std::size_t capacity = (std::max)(min_vector_sink_capacity, needed <= v->capacity()
  ------------------
  |  Branch (29999:75): [True: 6.71k, False: 4.60k]
  ------------------
30000|  11.3k|                                                ? v->capacity()
30001|  11.3k|                                                : (std::max)(needed, v->capacity() * 2));
30002|  11.3k|        v->reserve(capacity);
30003|       |        // resize() zeroes the characters it adds. Zeroing all of a doubled
30004|       |        // capacity, megabytes of a fresh allocation, at once faults in its
30005|       |        // pages and evicts them from the cache before the writer gets there,
30006|       |        // so its stores miss again; a window ahead of the position is still
30007|       |        // cached when they come (the binary writers on a long array of
30008|       |        // numbers: 4-26 % faster on x86, 1-2.5 % on Apple M1)
30009|  11.3k|        v->resize((std::min)(capacity, (std::max)(needed, written + vector_sink_window)));
30010|  11.3k|        cursor = v->data() + written;
30011|  11.3k|        limit = v->data() + v->size();
30012|  11.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail10copy_shortIhEEvPT_PKS3_mNSt3__117integral_constantIbLb1EEE:
29782|  41.6k|{
29783|  41.6k|    JSON_ASSERT(length <= 32);
  ------------------
  |  | 2653|  41.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (29783:5): [True: 41.6k, False: 0]
  ------------------
29784|  41.6k|    if (length >= 16)
  ------------------
  |  Branch (29784:9): [True: 1.73k, False: 39.9k]
  ------------------
29785|  1.73k|    {
29786|  1.73k|        std::array<char, 16> first; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29787|  1.73k|        std::array<char, 16> last; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29788|  1.73k|        std::memcpy(first.data(), src, 16);
29789|  1.73k|        std::memcpy(last.data(), src + (length - 16), 16);
29790|  1.73k|        std::memcpy(dst, first.data(), 16);
29791|  1.73k|        std::memcpy(dst + (length - 16), last.data(), 16);
29792|  1.73k|    }
29793|  39.9k|    else if (length >= 8)
  ------------------
  |  Branch (29793:14): [True: 2.39k, False: 37.5k]
  ------------------
29794|  2.39k|    {
29795|  2.39k|        std::array<char, 8> first; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29796|  2.39k|        std::array<char, 8> last; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29797|  2.39k|        std::memcpy(first.data(), src, 8);
29798|  2.39k|        std::memcpy(last.data(), src + (length - 8), 8);
29799|  2.39k|        std::memcpy(dst, first.data(), 8);
29800|  2.39k|        std::memcpy(dst + (length - 8), last.data(), 8);
29801|  2.39k|    }
29802|  37.5k|    else if (length >= 4)
  ------------------
  |  Branch (29802:14): [True: 14.9k, False: 22.5k]
  ------------------
29803|  14.9k|    {
29804|  14.9k|        std::array<char, 4> first; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29805|  14.9k|        std::array<char, 4> last; // NOLINT(cppcoreguidelines-pro-type-member-init,hicpp-member-init): written before read
29806|  14.9k|        std::memcpy(first.data(), src, 4);
29807|  14.9k|        std::memcpy(last.data(), src + (length - 4), 4);
29808|  14.9k|        std::memcpy(dst, first.data(), 4);
29809|  14.9k|        std::memcpy(dst + (length - 4), last.data(), 4);
29810|  14.9k|    }
29811|  22.5k|    else if (length != 0)
  ------------------
  |  Branch (29811:14): [True: 17.2k, False: 5.37k]
  ------------------
29812|  17.2k|    {
29813|       |        // 1 to 3: the first, the middle, and the last character
29814|  17.2k|        const CharType a = src[0];
29815|  17.2k|        const CharType b = src[length >> 1];
29816|  17.2k|        const CharType c = src[length - 1];
29817|  17.2k|        dst[0] = a;
29818|  17.2k|        dst[length >> 1] = b;
29819|  17.2k|        dst[length - 1] = c;
29820|  17.2k|    }
29821|  41.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE10bson_frameC2EPKSG_m:
32387|  11.4k|            : value(value_)
32388|  11.4k|            , size_slot(size_slot_)
32389|  11.4k|        {
32390|  11.4k|            if (value->is_object())
  ------------------
  |  Branch (32390:17): [True: 8.57k, False: 2.90k]
  ------------------
32391|  8.57k|            {
32392|  8.57k|                member = value->m_data.m_value.object->cbegin();
32393|  8.57k|            }
32394|  11.4k|        }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE27calc_bson_entry_header_sizeERKSC_RKSG_:
31754|  23.1k|    {
31755|  23.1k|        const std::size_t it = find_nul(name);
31756|  23.1k|        if (JSON_HEDLEY_UNLIKELY(it != BasicJsonType::string_t::npos))
  ------------------
  |  | 1697|  23.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 23.1k]
  |  |  ------------------
  ------------------
31757|      0|        {
31758|      0|            throw_bson_key_with_null(it, j);
31759|      0|        }
31760|       |
31761|  23.1k|        if (JSON_HEDLEY_LIKELY(error_handler == error_handler_t::keep))
  ------------------
  |  | 1696|  23.1k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 23.1k, False: 0]
  |  |  ------------------
  ------------------
31762|  23.1k|        {
31763|  23.1k|            return /*id*/ 1ul + name.size() + /*zero-terminator*/1u;
31764|  23.1k|        }
31765|       |
31766|      0|        return calc_bson_checked_entry_header_size(name, j);
31767|  23.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE8find_nulERKSC_:
31799|  23.1k|    {
31800|  23.1k|        return find_nul(name, std::integral_constant<bool, sizeof(typename string_t::value_type) == 1>());
31801|  23.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE8find_nulERKSC_NS4_17integral_constantIbLb1EEE:
31804|  23.1k|    {
31805|  23.1k|        constexpr std::uint64_t ones = 0x0101010101010101ull;
31806|  23.1k|        constexpr std::uint64_t high = 0x8080808080808080ull;
31807|  23.1k|        const std::size_t size = name.size();
31808|  23.1k|        const char* const data = reinterpret_cast<const char*>(name.data());
31809|  23.1k|        std::size_t pos = 0;
31810|  64.6k|        for (; pos + 8 <= size; pos += 8)
  ------------------
  |  Branch (31810:16): [True: 41.4k, False: 23.1k]
  ------------------
31811|  41.4k|        {
31812|  41.4k|            std::uint64_t word = 0;
31813|  41.4k|            std::memcpy(&word, data + pos, sizeof(word));
31814|  41.4k|            if (((word - ones) & ~word & high) != 0)
  ------------------
  |  Branch (31814:17): [True: 0, False: 41.4k]
  ------------------
31815|      0|            {
31816|      0|                break;
31817|      0|            }
31818|  41.4k|        }
31819|  67.0k|        for (; pos < size; ++pos)
  ------------------
  |  Branch (31819:16): [True: 43.8k, False: 23.1k]
  ------------------
31820|  43.8k|        {
31821|  43.8k|            if (data[pos] == '\0')
  ------------------
  |  Branch (31821:17): [True: 0, False: 43.8k]
  ------------------
31822|      0|            {
31823|      0|                return pos;
31824|      0|            }
31825|  43.8k|        }
31826|  23.1k|        return BasicJsonType::string_t::npos;
31827|  23.1k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE13is_structuredEv:
43013|  54.4k|    {
43014|  54.4k|        return is_array() || is_object();
  ------------------
  |  Branch (43014:16): [True: 5.80k, False: 48.6k]
  |  Branch (43014:30): [True: 4.00k, False: 44.6k]
  ------------------
43015|  54.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE16check_bson_valueERKSG_:
32750|  22.3k|    {
32751|  22.3k|        return (j.is_string() || j.is_binary()) ? calc_bson_value_size(j) : 8;
  ------------------
  |  Branch (32751:17): [True: 1.53k, False: 20.7k]
  |  Branch (32751:34): [True: 1.81k, False: 18.9k]
  ------------------
32752|  22.3k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9is_stringEv:
43085|  45.7k|    {
43086|  45.7k|        return m_data.m_type == value_t::string;
43087|  45.7k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9is_binaryEv:
43093|  22.5k|    {
43094|  22.5k|        return m_data.m_type == value_t::binary;
43095|  22.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE20calc_bson_value_sizeERKSG_:
32088|  3.34k|    {
32089|  3.34k|        switch (j.type())
32090|  3.34k|        {
32091|  1.81k|            case value_t::binary:
  ------------------
  |  Branch (32091:13): [True: 1.81k, False: 1.53k]
  ------------------
32092|  1.81k|                return calc_bson_binary_size(j);
32093|       |
32094|      0|            case value_t::boolean:
  ------------------
  |  Branch (32094:13): [True: 0, False: 3.34k]
  ------------------
32095|      0|                return 1ul;
32096|       |
32097|      0|            case value_t::number_float:
  ------------------
  |  Branch (32097:13): [True: 0, False: 3.34k]
  ------------------
32098|      0|                return 8ul;
32099|       |
32100|      0|            case value_t::number_integer:
  ------------------
  |  Branch (32100:13): [True: 0, False: 3.34k]
  ------------------
32101|      0|                if (JSON_HEDLEY_UNLIKELY(!integer_fits<std::int64_t>(j.m_data.m_value.number_integer)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
32102|      0|                {
32103|      0|                    throw_integer_out_of_range(j, input_format_t::bson, "int64");
32104|      0|                }
32105|      0|                return calc_bson_integer_size(static_cast<std::int64_t>(j.m_data.m_value.number_integer));
32106|       |
32107|      0|            case value_t::number_unsigned:
  ------------------
  |  Branch (32107:13): [True: 0, False: 3.34k]
  ------------------
32108|      0|                if (JSON_HEDLEY_UNLIKELY(!integer_fits_max<std::uint64_t>(j.m_data.m_value.number_unsigned)))
  ------------------
  |  | 1697|      0|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 0]
  |  |  ------------------
  ------------------
32109|      0|                {
32110|      0|                    throw_integer_out_of_range(j, input_format_t::bson, "uint64");
32111|      0|                }
32112|      0|                return calc_bson_unsigned_size(conditional_static_cast<std::uint64_t>(j.m_data.m_value.number_unsigned));
32113|       |
32114|  1.53k|            case value_t::string:
  ------------------
  |  Branch (32114:13): [True: 1.53k, False: 1.81k]
  ------------------
32115|  1.53k|                return calc_bson_string_size(*j.m_data.m_value.string, j);
32116|       |
32117|      0|            case value_t::null:
  ------------------
  |  Branch (32117:13): [True: 0, False: 3.34k]
  ------------------
32118|      0|                return 0ul;
32119|       |
32120|      0|            case value_t::discarded:
  ------------------
  |  Branch (32120:13): [True: 0, False: 3.34k]
  ------------------
32121|      0|                throw_on_discarded(j, input_format_t::bson);
32122|       |
32123|       |            // LCOV_EXCL_START
32124|      0|            case value_t::object:
  ------------------
  |  Branch (32124:13): [True: 0, False: 3.34k]
  ------------------
32125|      0|            case value_t::array:
  ------------------
  |  Branch (32125:13): [True: 0, False: 3.34k]
  ------------------
32126|      0|            default:
  ------------------
  |  Branch (32126:13): [True: 0, False: 3.34k]
  ------------------
32127|      0|                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (32127:17): [Folded, False: 0]
  ------------------
32128|      0|                return 0ul;
32129|       |                // LCOV_EXCL_STOP
32130|  3.34k|        }
32131|  3.34k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE21calc_bson_binary_sizeERKSG_:
32032|  1.81k|    {
32033|  1.81k|        const auto& value = *j.m_data.m_value.binary;
32034|       |
32035|  1.81k|        if (value.has_subtype() && JSON_HEDLEY_UNLIKELY(value.subtype() > (std::numeric_limits<std::uint8_t>::max)()))
  ------------------
  |  | 1697|  1.81k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.81k]
  |  |  ------------------
  ------------------
  |  Branch (32035:13): [True: 1.81k, False: 0]
  ------------------
32036|      0|        {
32037|      0|            throw_subtype_out_of_range(value.subtype(), "the BSON binary subtype", j);
32038|      0|        }
32039|       |
32040|       |        // the "old binary" subtype 0x02 repeats the payload size in an inner
32041|       |        // int32 in front of the payload
32042|  1.81k|        return sizeof(std::int32_t) + (is_bson_old_binary(value) ? sizeof(std::int32_t) : 0ul) + value.size() + 1ul;
  ------------------
  |  Branch (32042:40): [True: 264, False: 1.55k]
  ------------------
32043|  1.81k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE18is_bson_old_binaryERKNS0_27byte_container_with_subtypeISF_EE:
32047|  3.89k|    {
32048|  3.89k|        return value.has_subtype() && value.subtype() == 0x02;
  ------------------
  |  Branch (32048:16): [True: 3.89k, False: 0]
  |  Branch (32048:39): [True: 792, False: 3.10k]
  ------------------
32049|  3.89k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE21calc_bson_string_sizeERKSC_RKSG_:
31911|  1.53k|    {
31912|  1.53k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<std::int32_t>(value.size())))
  ------------------
  |  | 1696|  1.53k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.53k, False: 0]
  |  |  ------------------
  ------------------
31913|  1.53k|        {
31914|  1.53k|            if (JSON_HEDLEY_LIKELY(error_handler == error_handler_t::keep))
  ------------------
  |  | 1696|  1.53k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.53k, False: 0]
  |  |  ------------------
  ------------------
31915|  1.53k|            {
31916|  1.53k|                return sizeof(std::int32_t) + value.size() + 1ul;
31917|  1.53k|            }
31918|      0|            return calc_bson_checked_string_size(value, j);
31919|  1.53k|        }
31920|      0|        return sizeof(std::int32_t) + value.size() + 1ul;
31921|  1.53k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17value_in_range_ofIimEEbT0_:
 5316|  15.4k|{
 5317|  15.4k|    return value_in_range_of_impl1<OfType, T>::test(val);
 5318|  15.4k|}
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl1IimLb0EvE4testEm:
 5300|  15.4k|    {
 5301|  15.4k|        return value_in_range_of_impl2<OfType, T>::test(val);
 5302|  15.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail23value_in_range_of_impl2IimLb1ELb0EE4testEm:
 5264|  15.4k|    {
 5265|  15.4k|        using CommonType = typename std::common_type<OfType, T>::type;
 5266|  15.4k|        return static_cast<CommonType>(val) <= static_cast<CommonType>((std::numeric_limits<OfType>::max)());
 5267|  15.4k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE15bson_entry_fitsEmmm:
32758|  27.2k|    {
32759|  27.2k|        const auto limit = static_cast<std::size_t>((std::numeric_limits<std::int32_t>::max)());
32760|  27.2k|        const std::size_t written = oa.written() - start;
32761|  27.2k|        return written <= limit && entry_size <= limit - written && open_containers <= limit - written - entry_size;
  ------------------
  |  Branch (32761:16): [True: 27.2k, False: 0]
  |  Branch (32761:36): [True: 27.2k, False: 0]
  |  Branch (32761:69): [True: 27.2k, False: 0]
  ------------------
32762|  27.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE23write_bson_entry_headerERKSC_h:
31860|  5.87k|    {
31861|  5.87k|        oa.write_character(to_char_type(element_type));
31862|       |
31863|  5.87k|        if (JSON_HEDLEY_LIKELY(error_handler == error_handler_t::keep || error_handler == error_handler_t::strict))
  ------------------
  |  | 1696|  5.87k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 5.87k, False: 0]
  |  |  |  Branch (1696:94): [True: 5.87k, False: 0]
  |  |  |  Branch (1696:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
31864|  5.87k|        {
31865|  5.87k|            write_bytes(name.data(), name.size());
31866|  5.87k|        }
31867|      0|        else
31868|      0|        {
31869|      0|            string_t storage;
31870|      0|            const string_t& written = sanitize_utf8_for_bson_write(name, storage);
31871|      0|            write_bytes(written.data(), written.size());
31872|      0|        }
31873|       |
31874|       |        // the terminating null byte is written explicitly rather than taken
31875|       |        // from the buffer, so that string_t::data() need not be null-terminated
31876|  5.87k|        oa.write_character(to_char_type(0x00));
31877|  5.87k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE15write_characterEh:
29886|  23.3k|    {
29887|  23.3k|        if (JSON_HEDLEY_UNLIKELY(cursor == limit))
  ------------------
  |  | 1697|  23.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 868, False: 22.4k]
  |  |  ------------------
  ------------------
29888|    868|        {
29889|    868|            grow(1);
29890|    868|        }
29891|  23.3k|        *cursor++ = c;
29892|  23.3k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12to_char_typeIhTnPNS4_9enable_ifIXsr3std11is_unsignedIT_EE5valueEvE4typeELPv0EEEhh:
35772|   100k|    {
35773|   100k|        return x;
35774|   100k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE11write_bytesEPKvm:
31265|  7.79k|    {
31266|  7.79k|        oa.write_characters(static_cast<const CharType*>(data), size);
31267|  7.79k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE28sanitize_utf8_for_bson_writeERKSC_RSC_:
35452|     46|    {
35453|     46|        if (error_handler == error_handler_t::keep || error_handler == error_handler_t::strict || is_valid_utf8(s))
  ------------------
  |  Branch (35453:13): [True: 46, False: 0]
  |  Branch (35453:55): [True: 0, False: 0]
  |  Branch (35453:99): [True: 0, False: 0]
  ------------------
35454|     46|        {
35455|     46|            return s; // NOLINT(bugprone-return-const-ref-from-parameter): callers pass lvalues that outlive the call
35456|     46|        }
35457|      0|        storage = sanitize_utf8(s, error_handler);
35458|      0|        return storage;
35459|     46|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE16write_bson_valueERKSC_RKSG_:
32317|  22.3k|    {
32318|       |        // The strings are written as they are, as they are neither checked nor
32319|       |        // sanitized again here by these two error handlers. The name has to leave
32320|       |        // room for the larger payloads (see write_bson_scalar).
32321|  22.3k|        if (name.size() <= bson_scalar_max_name_size
  ------------------
  |  Branch (32321:13): [True: 21.6k, False: 708]
  ------------------
32322|  21.6k|                && (error_handler == error_handler_t::keep || error_handler == error_handler_t::strict)
  ------------------
  |  Branch (32322:21): [True: 21.6k, False: 0]
  |  Branch (32322:63): [True: 0, False: 0]
  ------------------
32323|  21.6k|                && write_bson_scalar(name, j))
  ------------------
  |  Branch (32323:20): [True: 21.3k, False: 264]
  ------------------
32324|  21.3k|        {
32325|  21.3k|            return;
32326|  21.3k|        }
32327|       |
32328|    972|        switch (j.type())
32329|    972|        {
32330|    284|            case value_t::binary:
  ------------------
  |  Branch (32330:13): [True: 284, False: 688]
  ------------------
32331|    284|                return write_bson_binary(name, *j.m_data.m_value.binary);
32332|       |
32333|      8|            case value_t::boolean:
  ------------------
  |  Branch (32333:13): [True: 8, False: 964]
  ------------------
32334|      8|                return write_bson_boolean(name, j.m_data.m_value.boolean);
32335|       |
32336|     10|            case value_t::number_float:
  ------------------
  |  Branch (32336:13): [True: 10, False: 962]
  ------------------
32337|     10|                return write_bson_double(name, j.m_data.m_value.number_float);
32338|       |
32339|       |            // calc_bson_value_size() checked that integers fit 64 bits
32340|    267|            case value_t::number_integer:
  ------------------
  |  Branch (32340:13): [True: 267, False: 705]
  ------------------
32341|    267|                return write_bson_integer(name, static_cast<std::int64_t>(j.m_data.m_value.number_integer));
32342|       |
32343|    273|            case value_t::number_unsigned:
  ------------------
  |  Branch (32343:13): [True: 273, False: 699]
  ------------------
32344|    273|                return write_bson_unsigned(name, conditional_static_cast<std::uint64_t>(j.m_data.m_value.number_unsigned));
32345|       |
32346|     46|            case value_t::string:
  ------------------
  |  Branch (32346:13): [True: 46, False: 926]
  ------------------
32347|     46|                return write_bson_string(name, *j.m_data.m_value.string);
32348|       |
32349|     84|            case value_t::null:
  ------------------
  |  Branch (32349:13): [True: 84, False: 888]
  ------------------
32350|     84|                return write_bson_null(name);
32351|       |
32352|      0|            case value_t::discarded:
  ------------------
  |  Branch (32352:13): [True: 0, False: 972]
  ------------------
32353|      0|                throw_on_discarded(j, input_format_t::bson);
32354|       |
32355|       |            // LCOV_EXCL_START
32356|      0|            case value_t::object:
  ------------------
  |  Branch (32356:13): [True: 0, False: 972]
  ------------------
32357|      0|            case value_t::array:
  ------------------
  |  Branch (32357:13): [True: 0, False: 972]
  ------------------
32358|      0|            default:
  ------------------
  |  Branch (32358:13): [True: 0, False: 972]
  ------------------
32359|      0|                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (32359:17): [Folded, False: 0]
  ------------------
32360|      0|                return;
32361|       |                // LCOV_EXCL_STOP
32362|    972|        }
32363|    972|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE17write_bson_scalarERKSC_RKSG_:
32238|  21.6k|    {
32239|  21.6k|        const std::size_t name_size = name.size();
32240|       |        // a short string is written whole: its type, the name and its null
32241|       |        // byte, the length, the characters, and their null byte
32242|  21.6k|        const bool whole_string = j.is_string() && j.m_data.m_value.string->size() <= max_reserve_size - name_size - 7;
  ------------------
  |  Branch (32242:35): [True: 1.48k, False: 20.1k]
  |  Branch (32242:52): [True: 1.42k, False: 62]
  ------------------
32243|  21.6k|        CharType* const out = oa.reserve(whole_string ? name_size + j.m_data.m_value.string->size() + 7 : name_size + 2 + 8);
  ------------------
  |  Branch (32243:42): [True: 1.42k, False: 20.1k]
  ------------------
32244|       |        // the name and its terminating null byte follow the type byte
32245|  21.6k|        CharType* p = out + 1;
32246|  21.6k|        copy_characters(p, reinterpret_cast<const CharType*>(name.data()), name_size);
32247|  21.6k|        p += name_size;
32248|  21.6k|        *p++ = to_char_type(0x00);
32249|       |
32250|  21.6k|        if (const CharType* const end = encode_bson_fixed_entry(out, p, j))
  ------------------
  |  Branch (32250:35): [True: 18.3k, False: 3.28k]
  ------------------
32251|  18.3k|        {
32252|  18.3k|            oa.commit(static_cast<std::size_t>(end - out));
32253|  18.3k|            return true;
32254|  18.3k|        }
32255|       |
32256|  3.28k|        if (whole_string)
  ------------------
  |  Branch (32256:13): [True: 1.42k, False: 1.85k]
  ------------------
32257|  1.42k|        {
32258|  1.42k|            const string_t& value = *j.m_data.m_value.string;
32259|  1.42k|            out[0] = to_char_type(0x02);
32260|  1.42k|            store_little_endian<std::int32_t>(p, static_cast<std::int32_t>(value.size() + 1ul));
32261|  1.42k|            p += sizeof(std::int32_t);
32262|  1.42k|            copy_characters(p, reinterpret_cast<const CharType*>(value.data()), value.size());
32263|  1.42k|            p += value.size();
32264|       |            // the terminating null byte is written explicitly rather than
32265|       |            // taken from the buffer, so that string_t::data() need not be
32266|       |            // null-terminated
32267|  1.42k|            *p++ = to_char_type(0x00);
32268|  1.42k|            oa.commit(static_cast<std::size_t>(p - out));
32269|  1.42k|            return true;
32270|  1.42k|        }
32271|       |
32272|  1.85k|        if (j.is_string())
  ------------------
  |  Branch (32272:13): [True: 62, False: 1.79k]
  ------------------
32273|     62|        {
32274|     62|            const string_t& value = *j.m_data.m_value.string;
32275|     62|            if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::int32_t>(value.size() + 1ul)))
  ------------------
  |  | 1697|     62|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 62]
  |  |  ------------------
  ------------------
32276|      0|            {
32277|      0|                return false; // LCOV_EXCL_LINE (a string of 2 GiB or more)
32278|      0|            }
32279|     62|            out[0] = to_char_type(0x02);
32280|     62|            store_little_endian<std::int32_t>(p, static_cast<std::int32_t>(value.size() + 1ul));
32281|     62|            p += sizeof(std::int32_t);
32282|     62|            oa.commit(static_cast<std::size_t>(p - out));
32283|       |            // the terminating null byte is written explicitly rather than
32284|       |            // taken from the buffer, so that string_t::data() need not be
32285|       |            // null-terminated
32286|     62|            write_bytes(value.data(), value.size());
32287|     62|            oa.write_character(to_char_type(0x00));
32288|     62|            return true;
32289|     62|        }
32290|       |
32291|  1.79k|        if (j.is_binary())
  ------------------
  |  Branch (32291:13): [True: 1.79k, False: 0]
  ------------------
32292|  1.79k|        {
32293|  1.79k|            const binary_t& value = *j.m_data.m_value.binary;
32294|       |            // the old binary subtype 0x02 has an inner length that the single
32295|       |            // reservation has no room for; write_bson_binary writes it
32296|  1.79k|            if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::int32_t>(value.size()) || is_bson_old_binary(value)))
  ------------------
  |  | 1697|  3.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 264, False: 1.53k]
  |  |  |  Branch (1697:94): [True: 0, False: 1.79k]
  |  |  |  Branch (1697:94): [True: 264, False: 1.53k]
  |  |  ------------------
  ------------------
32297|    264|            {
32298|    264|                return false;
32299|    264|            }
32300|  1.53k|            out[0] = to_char_type(0x05);
32301|  1.53k|            store_little_endian<std::int32_t>(p, static_cast<std::int32_t>(value.size()));
32302|  1.53k|            p += sizeof(std::int32_t);
32303|  1.53k|            *p++ = value.has_subtype() ? to_char_type(static_cast<std::uint8_t>(value.subtype())) : to_char_type(0x00);
  ------------------
  |  Branch (32303:20): [True: 1.53k, False: 0]
  ------------------
32304|  1.53k|            oa.commit(static_cast<std::size_t>(p - out));
32305|  1.53k|            write_bytes(value.data(), value.size());
32306|  1.53k|            return true;
32307|  1.79k|        }
32308|       |
32309|      0|        return false;
32310|  1.79k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE7reserveEm:
29930|  24.1k|    {
29931|  24.1k|        JSON_ASSERT(length <= max_reserve_size);
  ------------------
  |  | 2653|  24.1k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (29931:9): [True: 24.1k, False: 0]
  ------------------
29932|  24.1k|        if (JSON_HEDLEY_UNLIKELY(space() < length))
  ------------------
  |  | 1697|  24.1k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3.04k, False: 21.0k]
  |  |  ------------------
  ------------------
29933|  3.04k|        {
29934|  3.04k|            grow(length);
29935|  3.04k|        }
29936|  24.1k|        return cursor;
29937|  24.1k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE15copy_charactersEPhPKhm:
33646|  23.0k|    {
33647|  23.0k|        if (length <= 32)
  ------------------
  |  Branch (33647:13): [True: 21.9k, False: 1.07k]
  ------------------
33648|  21.9k|        {
33649|  21.9k|            copy_short(dst, src, length, std::integral_constant<bool, sizeof(CharType) == 1>());
33650|  21.9k|        }
33651|  1.07k|        else
33652|  1.07k|        {
33653|  1.07k|            std::memcpy(dst, src, length * sizeof(CharType));
33654|  1.07k|        }
33655|  23.0k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE23encode_bson_fixed_entryEPhSK_RKSG_:
32165|  35.1k|    {
32166|  35.1k|        switch (j.type())
32167|  35.1k|        {
32168|  2.81k|            case value_t::boolean:
  ------------------
  |  Branch (32168:13): [True: 2.81k, False: 32.3k]
  ------------------
32169|  2.81k|                out[0] = to_char_type(0x08);
32170|  2.81k|                *value_out++ = j.m_data.m_value.boolean ? to_char_type(0x01) : to_char_type(0x00);
  ------------------
  |  Branch (32170:32): [True: 2.17k, False: 640]
  ------------------
32171|  2.81k|                return value_out;
32172|       |
32173|  2.55k|            case value_t::number_float:
  ------------------
  |  Branch (32173:13): [True: 2.55k, False: 32.5k]
  ------------------
32174|  2.55k|                out[0] = to_char_type(0x01);
32175|  2.55k|                store_little_endian<double>(value_out, static_cast<double>(j.m_data.m_value.number_float));
32176|  2.55k|                return value_out + sizeof(double);
32177|       |
32178|  2.54k|            case value_t::number_integer:
  ------------------
  |  Branch (32178:13): [True: 2.54k, False: 32.5k]
  ------------------
32179|  2.54k|            {
32180|  2.54k|                const auto value = static_cast<std::int64_t>(j.m_data.m_value.number_integer);
32181|  2.54k|                if ((std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)())
  ------------------
  |  Branch (32181:21): [True: 2.19k, False: 352]
  |  Branch (32181:76): [True: 1.38k, False: 805]
  ------------------
32182|  1.38k|                {
32183|  1.38k|                    out[0] = to_char_type(0x10); // int32
32184|  1.38k|                    store_little_endian<std::int32_t>(value_out, static_cast<std::int32_t>(value));
32185|  1.38k|                    return value_out + sizeof(std::int32_t);
32186|  1.38k|                }
32187|  1.15k|                out[0] = to_char_type(0x12); // int64
32188|  1.15k|                store_little_endian<std::int64_t>(value_out, value);
32189|  1.15k|                return value_out + sizeof(std::int64_t);
32190|  2.54k|            }
32191|       |
32192|    877|            case value_t::number_unsigned:
  ------------------
  |  Branch (32192:13): [True: 877, False: 34.2k]
  ------------------
32193|    877|            {
32194|    877|                const auto value = conditional_static_cast<std::uint64_t>(j.m_data.m_value.number_unsigned);
32195|    877|                if (value <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
  ------------------
  |  Branch (32195:21): [True: 126, False: 751]
  ------------------
32196|    126|                {
32197|    126|                    out[0] = to_char_type(0x10); // int32
32198|    126|                    store_little_endian<std::int32_t>(value_out, static_cast<std::int32_t>(value));
32199|    126|                    return value_out + sizeof(std::int32_t);
32200|    126|                }
32201|    751|                if (value <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
  ------------------
  |  Branch (32201:21): [True: 377, False: 374]
  ------------------
32202|    377|                {
32203|    377|                    out[0] = to_char_type(0x12); // int64
32204|    377|                    store_little_endian<std::int64_t>(value_out, static_cast<std::int64_t>(value));
32205|    377|                    return value_out + sizeof(std::int64_t);
32206|    377|                }
32207|    374|                out[0] = to_char_type(0x11); // uint64
32208|    374|                store_little_endian<std::uint64_t>(value_out, value);
32209|    374|                return value_out + sizeof(std::uint64_t);
32210|    751|            }
32211|       |
32212|  21.8k|            case value_t::null:
  ------------------
  |  Branch (32212:13): [True: 21.8k, False: 13.3k]
  ------------------
32213|  21.8k|                out[0] = to_char_type(0x0A);
32214|  21.8k|                return value_out;
32215|       |
32216|  1.80k|            case value_t::string:
  ------------------
  |  Branch (32216:13): [True: 1.80k, False: 33.3k]
  ------------------
32217|  3.87k|            case value_t::binary:
  ------------------
  |  Branch (32217:13): [True: 2.06k, False: 33.0k]
  ------------------
32218|  4.23k|            case value_t::object:
  ------------------
  |  Branch (32218:13): [True: 362, False: 34.7k]
  ------------------
32219|  4.51k|            case value_t::array:
  ------------------
  |  Branch (32219:13): [True: 282, False: 34.8k]
  ------------------
32220|  4.51k|            case value_t::discarded:
  ------------------
  |  Branch (32220:13): [True: 0, False: 35.1k]
  ------------------
32221|  4.51k|            default:
  ------------------
  |  Branch (32221:13): [True: 0, False: 35.1k]
  ------------------
32222|  4.51k|                return nullptr;
32223|  35.1k|        }
32224|  35.1k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE19store_little_endianIdEEvPhT_:
32144|  2.55k|    {
32145|  2.55k|        std::memcpy(out, &n, sizeof(NumberType));
32146|  2.55k|        if (!is_little_endian)
  ------------------
  |  Branch (32146:13): [True: 0, False: 2.55k]
  ------------------
32147|      0|        {
32148|      0|            std::reverse(out, out + sizeof(NumberType)); // LCOV_EXCL_LINE (big-endian hosts only)
32149|      0|        }
32150|  2.55k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE19store_little_endianIlEEvPhT_:
32144|  1.53k|    {
32145|  1.53k|        std::memcpy(out, &n, sizeof(NumberType));
32146|  1.53k|        if (!is_little_endian)
  ------------------
  |  Branch (32146:13): [True: 0, False: 1.53k]
  ------------------
32147|      0|        {
32148|      0|            std::reverse(out, out + sizeof(NumberType)); // LCOV_EXCL_LINE (big-endian hosts only)
32149|      0|        }
32150|  1.53k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE19store_little_endianImEEvPhT_:
32144|    374|    {
32145|    374|        std::memcpy(out, &n, sizeof(NumberType));
32146|    374|        if (!is_little_endian)
  ------------------
  |  Branch (32146:13): [True: 0, False: 374]
  ------------------
32147|      0|        {
32148|      0|            std::reverse(out, out + sizeof(NumberType)); // LCOV_EXCL_LINE (big-endian hosts only)
32149|      0|        }
32150|    374|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE6commitEm:
29942|  23.8k|    {
29943|  23.8k|        cursor += length;
29944|  23.8k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE19store_little_endianIiEEvPhT_:
32144|  4.53k|    {
32145|  4.53k|        std::memcpy(out, &n, sizeof(NumberType));
32146|  4.53k|        if (!is_little_endian)
  ------------------
  |  Branch (32146:13): [True: 0, False: 4.53k]
  ------------------
32147|      0|        {
32148|      0|            std::reverse(out, out + sizeof(NumberType)); // LCOV_EXCL_LINE (big-endian hosts only)
32149|      0|        }
32150|  4.53k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE17write_bson_binaryERKSC_RKNS0_27byte_container_with_subtypeISF_EE:
32058|    284|    {
32059|    284|        write_bson_entry_header(name, 0x05);
32060|       |
32061|    284|        const bool old_binary = is_bson_old_binary(value);
32062|       |
32063|       |        // the length field counts the inner int32 of the old binary subtype
32064|    284|        write_number<std::int32_t>(to_bson_length(value.size() + (old_binary ? sizeof(std::int32_t) : 0ul)), true);
  ------------------
  |  Branch (32064:67): [True: 264, False: 20]
  ------------------
32065|       |
32066|    284|        write_number(value.has_subtype() ? static_cast<std::uint8_t>(value.subtype()) : static_cast<std::uint8_t>(0x00));
  ------------------
  |  Branch (32066:22): [True: 284, False: 0]
  ------------------
32067|       |
32068|    284|        if (old_binary)
  ------------------
  |  Branch (32068:13): [True: 264, False: 20]
  ------------------
32069|    264|        {
32070|    264|            write_number<std::int32_t>(to_bson_length(value.size()), true);
32071|    264|        }
32072|       |
32073|    284|        write_bytes(value.data(), value.size());
32074|    284|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12write_numberIiEEvT_b:
35638|    696|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|    696|        std::array<CharType, sizeof(NumberType)> vec{};
35641|    696|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|    696|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 696]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|    696|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|    696|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE14to_bson_lengthEm:
31840|    594|    {
31841|    594|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::int32_t>(size)))
  ------------------
  |  | 1697|    594|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 594]
  |  |  ------------------
  ------------------
31842|      0|        {
31843|      0|            throw_bson_length_too_large(size);
31844|      0|        }
31845|       |
31846|    594|        return static_cast<std::int32_t>(size);
31847|    594|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12write_numberIhEEvT_b:
35638|    284|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|    284|        std::array<CharType, sizeof(NumberType)> vec{};
35641|    284|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|    284|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 284, False: 0]
  ------------------
35645|    284|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|    284|            reverse_bytes(vec);
35648|    284|        }
35649|       |
35650|    284|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|    284|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE13reverse_bytesILm1EEEvRNS4_5arrayIhXT_EEE:
35619|    284|    {
35620|    284|        std::reverse(a.begin(), a.end());
35621|    284|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE18write_bson_booleanERKSC_b:
31884|      8|    {
31885|      8|        write_bson_entry_header(name, 0x08);
31886|      8|        oa.write_character(value ? to_char_type(0x01) : to_char_type(0x00));
  ------------------
  |  Branch (31886:28): [True: 2, False: 6]
  ------------------
31887|      8|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE17write_bson_doubleERKSC_d:
31894|     10|    {
31895|     10|        write_bson_entry_header(name, 0x01);
31896|     10|        write_number<double>(value, true);
31897|     10|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12write_numberIdEEvT_b:
35638|     10|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|     10|        std::array<CharType, sizeof(NumberType)> vec{};
35641|     10|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|     10|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 10]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|     10|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|     10|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE18write_bson_integerERKSC_l:
31980|    267|    {
31981|    267|        if ((std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)())
  ------------------
  |  Branch (31981:13): [True: 141, False: 126]
  |  Branch (31981:68): [True: 64, False: 77]
  ------------------
31982|     64|        {
31983|     64|            write_bson_entry_header(name, 0x10); // int32
31984|     64|            write_number<std::int32_t>(static_cast<std::int32_t>(value), true);
31985|     64|        }
31986|    203|        else
31987|    203|        {
31988|    203|            write_bson_entry_header(name, 0x12); // int64
31989|    203|            write_number<std::int64_t>(static_cast<std::int64_t>(value), true);
31990|    203|        }
31991|    267|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12write_numberIlEEvT_b:
35638|    270|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|    270|        std::array<CharType, sizeof(NumberType)> vec{};
35641|    270|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|    270|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 270]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|    270|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|    270|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE19write_bson_unsignedERKSC_m:
32008|    273|    {
32009|    273|        if (value <= static_cast<std::uint64_t>((std::numeric_limits<std::int32_t>::max)()))
  ------------------
  |  Branch (32009:13): [True: 38, False: 235]
  ------------------
32010|     38|        {
32011|     38|            write_bson_entry_header(name, 0x10 /* int32 */);
32012|     38|            write_number<std::int32_t>(static_cast<std::int32_t>(value), true);
32013|     38|        }
32014|    235|        else if (value <= static_cast<std::uint64_t>((std::numeric_limits<std::int64_t>::max)()))
  ------------------
  |  Branch (32014:18): [True: 67, False: 168]
  ------------------
32015|     67|        {
32016|     67|            write_bson_entry_header(name, 0x12 /* int64 */);
32017|     67|            write_number<std::int64_t>(static_cast<std::int64_t>(value), true);
32018|     67|        }
32019|    168|        else
32020|    168|        {
32021|    168|            write_bson_entry_header(name, 0x11 /* uint64 */);
32022|    168|            write_number<std::uint64_t>(value, true);
32023|    168|        }
32024|    273|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE12write_numberImEEvT_b:
35638|    168|    {
35639|       |        // step 1: write the number to an array of length NumberType
35640|    168|        std::array<CharType, sizeof(NumberType)> vec{};
35641|    168|        std::memcpy(vec.data(), &n, sizeof(NumberType));
35642|       |
35643|       |        // step 2: write the array to output (with possible reordering)
35644|    168|        if (is_little_endian != OutputIsLittleEndian)
  ------------------
  |  Branch (35644:13): [True: 0, False: 168]
  ------------------
35645|      0|        {
35646|       |            // reverse byte order prior to conversion if necessary
35647|      0|            reverse_bytes(vec);
35648|      0|        }
35649|       |
35650|    168|        oa.write_characters(vec.data(), sizeof(NumberType));
35651|    168|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE17write_bson_stringERKSC_SL_:
31944|     46|    {
31945|     46|        write_bson_entry_header(name, 0x02);
31946|       |
31947|     46|        string_t storage;
31948|     46|        const string_t& written = sanitize_utf8_for_bson_write(value, storage);
31949|       |
31950|     46|        write_number<std::int32_t>(to_bson_length(written.size() + 1ul), true);
31951|     46|        write_bytes(written.data(), written.size());
31952|       |        // the terminating null byte is written explicitly rather than taken
31953|       |        // from the buffer, so that string_t::data() need not be null-terminated
31954|     46|        oa.write_character(to_char_type(0x00));
31955|     46|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE15write_bson_nullERKSC_:
31961|     84|    {
31962|     84|        write_bson_entry_header(name, 0x0A);
31963|     84|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE18is_bson_fixed_sizeERKSG_:
32454|  4.42k|    {
32455|  4.42k|        return j.is_number() || j.is_boolean() || j.is_null();
  ------------------
  |  Branch (32455:16): [True: 176, False: 4.24k]
  |  Branch (32455:33): [True: 128, False: 4.11k]
  |  Branch (32455:51): [True: 670, False: 3.44k]
  ------------------
32456|  4.42k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9is_numberEv:
43037|  4.42k|    {
43038|  4.42k|        return is_number_integer() || is_number_float();
  ------------------
  |  Branch (43038:16): [True: 144, False: 4.27k]
  |  Branch (43038:39): [True: 32, False: 4.24k]
  ------------------
43039|  4.42k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE17is_number_integerEv:
43045|  4.42k|    {
43046|  4.42k|        return m_data.m_type == value_t::number_integer || m_data.m_type == value_t::number_unsigned;
  ------------------
  |  Branch (43046:16): [True: 127, False: 4.29k]
  |  Branch (43046:60): [True: 17, False: 4.27k]
  ------------------
43047|  4.42k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE15is_number_floatEv:
43061|  4.27k|    {
43062|  4.27k|        return m_data.m_type == value_t::number_float;
43063|  4.27k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE10is_booleanEv:
43029|  4.24k|    {
43030|  4.24k|        return m_data.m_type == value_t::boolean;
43031|  4.24k|    }
_ZNK8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE7is_nullEv:
43021|  4.11k|    {
43022|  4.11k|        return m_data.m_type == value_t::null;
43023|  4.11k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE30write_bson_array_fixed_entriesERNSJ_10bson_frameE:
32471|  3.87k|    {
32472|  3.87k|        const auto& array = *frame.value->m_data.m_value.array;
32473|  3.87k|        const std::size_t count = array.size();
32474|  3.87k|        std::size_t index = frame.index;
32475|  3.87k|        std::size_t name_size = frame.index_name_size;
32476|  3.87k|        std::array<char, bson_index_name_space> name = frame.index_name;
32477|       |
32478|       |        // an entry is at most the type, 20 digits, the null byte, and 8 bytes
32479|  3.87k|        constexpr std::size_t max_entry = 1 + 20 + 1 + 8;
32480|  5.13k|        while (index < count)
  ------------------
  |  Branch (32480:16): [True: 2.48k, False: 2.64k]
  ------------------
32481|  2.48k|        {
32482|  2.48k|            CharType* const start = oa.reserve(max_reserve_size);
32483|  2.48k|            CharType* out = start;
32484|  2.48k|            const CharType* const limit = start + (max_reserve_size - max_entry);
32485|  14.7k|            while (out <= limit && index < count)
  ------------------
  |  Branch (32485:20): [True: 14.6k, False: 116]
  |  Branch (32485:36): [True: 13.5k, False: 1.14k]
  ------------------
32486|  13.5k|            {
32487|  13.5k|                CharType* p = out + 1;
32488|  13.5k|                std::memcpy(p, name.data(), name.size());
32489|  13.5k|                p += name_size;
32490|  13.5k|                *p++ = to_char_type(0x00);
32491|  13.5k|                CharType* const end = encode_bson_fixed_entry(out, p, array[index]);
32492|  13.5k|                if (end == nullptr)
  ------------------
  |  Branch (32492:21): [True: 1.23k, False: 12.2k]
  ------------------
32493|  1.23k|                {
32494|  1.23k|                    break;
32495|  1.23k|                }
32496|  12.2k|                out = end;
32497|       |
32498|  12.2k|                ++index;
32499|  12.2k|                std::size_t i = name_size;
32500|  13.2k|                while (i > 0 && name[i - 1] == '9')
  ------------------
  |  Branch (32500:24): [True: 13.0k, False: 236]
  |  Branch (32500:33): [True: 956, False: 12.0k]
  ------------------
32501|    956|                {
32502|    956|                    name[--i] = '0';
32503|    956|                }
32504|  12.2k|                if (i > 0)
  ------------------
  |  Branch (32504:21): [True: 12.0k, False: 236]
  ------------------
32505|  12.0k|                {
32506|  12.0k|                    ++name[i - 1];
32507|  12.0k|                }
32508|    236|                else
32509|    236|                {
32510|       |                    // all digits were 9: 10, 100, ...
32511|    236|                    name[0] = '1';
32512|    236|                    name[name_size++] = '0';
32513|    236|                }
32514|  12.2k|            }
32515|  2.48k|            oa.commit(static_cast<std::size_t>(out - start));
32516|  2.48k|            if (out <= limit && index < count)
  ------------------
  |  Branch (32516:17): [True: 2.37k, False: 116]
  |  Branch (32516:33): [True: 1.23k, False: 1.14k]
  ------------------
32517|  1.23k|            {
32518|       |                // stopped at an element that has no fixed size
32519|  1.23k|                break;
32520|  1.23k|            }
32521|  2.48k|        }
32522|       |
32523|  3.87k|        frame.index = index;
32524|  3.87k|        frame.index_name_size = name_size;
32525|  3.87k|        frame.index_name = name;
32526|  3.87k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE10bson_frame10next_indexEv:
32410|  4.07k|        {
32411|  4.07k|            ++index;
32412|  4.07k|            std::size_t i = index_name_size;
32413|  4.37k|            while (i > 0 && index_name[i - 1] == '9')
  ------------------
  |  Branch (32413:20): [True: 4.23k, False: 148]
  |  Branch (32413:29): [True: 302, False: 3.92k]
  ------------------
32414|    302|            {
32415|    302|                index_name[--i] = '0';
32416|    302|            }
32417|  4.07k|            if (i > 0)
  ------------------
  |  Branch (32417:17): [True: 3.92k, False: 148]
  ------------------
32418|  3.92k|            {
32419|  3.92k|                ++index_name[i - 1];
32420|  3.92k|            }
32421|    148|            else
32422|    148|            {
32423|       |                // all digits were 9: 10, 100, ...
32424|    148|                index_name[0] = '1';
32425|    148|                index_name[index_name_size++] = '0';
32426|    148|            }
32427|  4.07k|        }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_writerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEEhNS1_18output_vector_sinkIhSE_EEE20close_bson_containerEm:
32729|  11.4k|    {
32730|  11.4k|        oa.write_character(to_char_type(0x00));
32731|  11.4k|        const std::size_t size = oa.written() - pos;
32732|  11.4k|        if (JSON_HEDLEY_UNLIKELY(!value_in_range_of<std::int32_t>(size)))
  ------------------
  |  | 1697|  11.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 11.4k]
  |  |  ------------------
  ------------------
32733|      0|        {
32734|      0|            return false; // LCOV_EXCL_LINE (a document of 2 GiB or more)
32735|      0|        }
32736|  11.4k|        const auto le_size = static_cast<std::uint32_t>(size);
32737|  11.4k|        oa.overwrite(pos, is_little_endian ? le_size : byteswap(le_size));
  ------------------
  |  Branch (32737:27): [True: 11.4k, False: 0]
  ------------------
32738|  11.4k|        return true;
32739|  11.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18output_vector_sinkIhNSt3__19allocatorIhEEE9overwriteEmj:
29962|  11.4k|    {
29963|  11.4k|        static_assert(sizeof(CharType) == 1, "overwrite() writes bytes");
29964|  11.4k|        JSON_ASSERT(pos + sizeof(n) <= position());
  ------------------
  |  | 2653|  11.4k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (29964:9): [True: 11.4k, False: 0]
  ------------------
29965|  11.4k|        std::memcpy(v->data() + pos, &n, sizeof(n));
29966|  11.4k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9from_bsonIPKhSH_TnNS2_9enable_ifIXsr6detail14can_compare_neIT_T0_EE5valueEiE4typeELi0EEESE_SJ_SK_bbNS0_6detail15error_handler_tE:
47045|  5.04k|    {
47046|  5.04k|        return from_binary_impl(detail::input_adapter(std::move(first), std::move(last)), input_format_t::bson, strict, allow_exceptions, error_handler);
47047|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9from_bsonIRNS2_19basic_istringstreamIcS7_S9_EEEESE_OT_bbNS0_6detail15error_handler_tE:
47032|  5.04k|    {
47033|  5.04k|        return from_binary_impl(detail::input_adapter(std::forward<InputType>(i)), input_format_t::bson, strict, allow_exceptions, error_handler);
47034|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE16from_binary_implINS0_6detail20input_stream_adapterEEESE_T_NSG_14input_format_tEbbNSG_15error_handler_tENSG_18cbor_tag_handler_tE:
46575|  5.04k|    {
46576|  5.04k|        basic_json result;
46577|  5.04k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  5.04k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  5.04k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 0, False: 5.04k]
  ------------------
46580|      0|        {
46581|      0|            result = value_t::discarded;
46582|      0|        }
46583|  5.04k|        return result;
46584|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEEC2ERSG_bPNS1_5lexerISG_SH_Lb0EEE:
17821|  5.04k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  5.04k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEEC2EOSH_NS1_14input_format_tENS1_15error_handler_tE:
18992|  5.04k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  5.04k|    {
18994|  5.04k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapterC2EOS2_:
 9815|  5.04k|        : is(rhs.is), sb(rhs.sb)
 9816|       |#if JSON_PRECISE_STREAM_POSITION
 9817|       |        , lookahead(rhs.lookahead)
 9818|       |#endif
 9819|       |#if !JSON_DISABLE_STREAM_BULK_SCAN
 9820|  5.04k|        , token_carry(std::move(rhs.token_carry))
 9821|  5.04k|        , token_segment(rhs.token_segment)
 9822|  5.04k|        , current_in_get_area(rhs.current_in_get_area)
 9823|  5.04k|        , tracking_token(rhs.tracking_token)
 9824|  5.04k|        , no_get_area(rhs.no_get_area)
 9825|       |#endif
 9826|  5.04k|    {
 9827|  5.04k|        rhs.is = nullptr;
 9828|  5.04k|        rhs.sb = nullptr;
 9829|       |#if JSON_PRECISE_STREAM_POSITION
 9830|       |        rhs.lookahead = false;
 9831|       |#endif
 9832|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail17token_text_bufferIcEC2EOS3_:
 9404|  10.0k|        : m_data(std::move(rhs.m_data)), m_end(rhs.m_end), m_capacity_end(rhs.m_capacity_end)
 9405|  10.0k|    {
 9406|  10.0k|        rhs.m_end = rhs.m_capacity_end = nullptr;
 9407|  10.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE9sax_parseEPSJ_bNS1_18cbor_tag_handler_tE:
19017|  5.04k|    {
19018|  5.04k|        sax = sax_;
19019|  5.04k|        container_stack.clear();
19020|  5.04k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  5.04k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  5.04k|        bool result = false;
19024|       |
19025|  5.04k|        switch (input_format)
19026|  5.04k|        {
19027|  5.04k|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 5.04k, False: 0]
  ------------------
19028|  5.04k|                result = parse_bson_internal();
19029|  5.04k|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 5.04k]
  ------------------
19032|      0|                result = parse_cbor_internal(tag_handler);
19033|      0|                break;
19034|       |
19035|      0|            case input_format_t::msgpack:
  ------------------
  |  Branch (19035:13): [True: 0, False: 5.04k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|      0|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 0, False: 5.04k]
  ------------------
19040|      0|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 0, False: 5.04k]
  ------------------
19041|      0|                result = parse_ubjson_internal();
19042|      0|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 5.04k]
  ------------------
19045|      0|                result = parse_bon8_internal();
19046|      0|                break;
19047|       |
19048|      0|            case input_format_t::json: // LCOV_EXCL_LINE
  ------------------
  |  Branch (19048:13): [True: 0, False: 5.04k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 5.04k]
  ------------------
19050|      0|                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (19050:17): [Folded, False: 0]
  ------------------
19051|  5.04k|        }
19052|       |
19053|       |        // BON8: a string ends at the first byte that cannot continue it. If
19054|       |        // that byte follows the value, the reader has already taken it from
19055|       |        // the input and holds it in bon8_pushback. Without the end-of-input
19056|       |        // check below it would be dropped, and the next read would start
19057|       |        // behind it, so report the missing 0xFF instead.
19058|  3.29k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 3.29k, False: 0]
  |  Branch (19058:23): [True: 0, False: 3.29k]
  |  Branch (19058:34): [True: 0, False: 0]
  |  Branch (19058:74): [True: 0, False: 0]
  ------------------
19059|      0|        {
19060|      0|            get_bon8();
19061|      0|            return last_byte_error(exception_id::unexpected_end_of_input, "string at the end of the value is not terminated by 0xFF", "value", "");
19062|      0|        }
19063|       |
19064|       |        // strict mode: next byte must be EOF
19065|  3.29k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 3.29k, False: 0]
  |  Branch (19065:23): [True: 3.29k, False: 0]
  ------------------
19066|  3.29k|        {
19067|  3.29k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 0, False: 3.29k]
  |  Branch (19067:59): [True: 0, False: 3.29k]
  ------------------
19068|      0|            {
19069|      0|                get_ignore_noop();
19070|      0|            }
19071|  3.29k|            else if (input_format == input_format_t::bon8)
  ------------------
  |  Branch (19071:22): [True: 0, False: 3.29k]
  ------------------
19072|      0|            {
19073|       |                // a string that ends a container hands back the byte after it
19074|      0|                get_bon8();
19075|      0|            }
19076|  3.29k|            else
19077|  3.29k|            {
19078|  3.29k|                get();
19079|  3.29k|            }
19080|       |
19081|  3.29k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  3.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 12, False: 3.28k]
  |  |  ------------------
  ------------------
19082|     12|            {
19083|     12|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|     12|            }
19085|  3.29k|        }
19086|       |
19087|  3.28k|        return result;
19088|  3.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE12bound_parserEPSJ_NS4_17integral_constantIbLb1EEE:
19096|  5.04k|    {
19097|  5.04k|        return s;
19098|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE16position_bindingC2EPNS1_24json_sax_dom_error_stateEPKm:
19119|  5.04k|            : parser(parser_), saved()
19120|  5.04k|        {
19121|  5.04k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 5.04k, False: 0]
  ------------------
19122|  5.04k|            {
19123|  5.04k|                saved = parser->get_reserve_state();
19124|  5.04k|                parser->set_input_position(position);
19125|  5.04k|            }
19126|  5.04k|        }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE19parse_bson_internalEv:
19357|  5.04k|    {
19358|  5.04k|        if (JSON_HEDLEY_UNLIKELY(!open_bson_document(/*is_object*/true)))
  ------------------
  |  | 1697|  5.04k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.04k]
  |  |  ------------------
  ------------------
19359|      0|        {
19360|      0|            return false;
19361|      0|        }
19362|       |
19363|       |        // the key currently being read; hoisted out of the loop so that its
19364|       |        // capacity is reused across elements and across nesting levels
19365|  5.04k|        string_t key;
19366|       |
19367|  50.3k|        while (true)
  ------------------
  |  Branch (19367:16): [True: 48.6k, Folded]
  ------------------
19368|  48.6k|        {
19369|  48.6k|            const auto element_type = get();
19370|       |
19371|  48.6k|            if (element_type == 0) // end of the innermost document
  ------------------
  |  Branch (19371:17): [True: 8.18k, False: 40.4k]
  ------------------
19372|  8.18k|            {
19373|       |                // a copy, not a reference: it must stay valid across the
19374|       |                // pop_back() inside leave_container() below, which destroys
19375|       |                // the container_stack element it would otherwise alias
19376|  8.18k|                const container_frame top = container_stack.back();
19377|       |
19378|  8.18k|                if (JSON_HEDLEY_UNLIKELY(!check_bson_document_size(top.start_position, top.declared_size)))
  ------------------
  |  | 1697|  8.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 8.18k]
  |  |  ------------------
  ------------------
19379|      0|                {
19380|      0|                    return false;
19381|      0|                }
19382|       |
19383|  8.18k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|  8.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 8.18k]
  |  |  ------------------
  ------------------
19384|      0|                {
19385|      0|                    return false;
19386|      0|                }
19387|       |                // the document begun here is complete once it is not inside one
19388|  8.18k|                if (container_stack.empty())
  ------------------
  |  Branch (19388:21): [True: 3.29k, False: 4.88k]
  ------------------
19389|  3.29k|                {
19390|  3.29k|                    return true;
19391|  3.29k|                }
19392|  4.88k|                continue;
19393|  8.18k|            }
19394|       |
19395|  40.4k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("element list")))
  ------------------
  |  | 1697|  40.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.4k]
  |  |  ------------------
  ------------------
19396|      0|            {
19397|      0|                return false;
19398|      0|            }
19399|       |
19400|       |            // an element needs at least its name's terminator, and the
19401|       |            // document its own terminator, within the declared size
19402|  40.4k|            if (JSON_HEDLEY_UNLIKELY(chars_read + 2 > container_stack.back().end_position))
  ------------------
  |  | 1697|  40.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 16, False: 40.4k]
  |  |  ------------------
  ------------------
19403|     16|            {
19404|     16|                return bson_document_size_error("document size ", container_stack.back().declared_size, " is too small for its content");
19405|     16|            }
19406|       |
19407|  40.4k|            const std::size_t element_type_parse_position = chars_read;
19408|       |            // an array's elements are named "0", "1", ... in the wire format,
19409|       |            // and those names are not passed on: they are skipped, and only
19410|       |            // checked if error_handler_t::strict must reject ill-formed UTF-8
19411|  40.4k|            const bool is_object = container_stack.back().is_object;
19412|  40.4k|            key.clear();
19413|  40.4k|            if (JSON_HEDLEY_UNLIKELY(!(is_object || error_handler != error_handler_t::strict
  ------------------
  |  | 1697|   137k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.4k]
  |  |  |  Branch (1697:94): [True: 24.5k, False: 15.8k]
  |  |  |  Branch (1697:94): [True: 15.8k, False: 0]
  |  |  ------------------
  ------------------
19414|  40.4k|                                       ? get_bson_cstr(key, is_object)
19415|  40.4k|                                       : check_bson_cstr(key, std::integral_constant<bool, bulk_scan> {}))))
19416|      0|            {
19417|      0|                return false;
19418|      0|            }
19419|       |
19420|  40.4k|            if (is_object && !sax->key(key))
  ------------------
  |  Branch (19420:17): [True: 23.6k, False: 16.8k]
  |  Branch (19420:30): [True: 0, False: 23.6k]
  ------------------
19421|      0|            {
19422|      0|                return false;
19423|      0|            }
19424|       |
19425|  40.4k|            if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_internal(element_type, element_type_parse_position)))
  ------------------
  |  | 1697|  40.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.4k]
  |  |  ------------------
  ------------------
19426|      0|            {
19427|      0|                return false;
19428|      0|            }
19429|  40.4k|        }
19430|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE18open_bson_documentEb:
19307|  10.7k|    {
19308|       |        // recorded before the size prefix is read, because
19309|       |        // check_bson_document_size() measures the document from here
19310|  10.7k|        const std::size_t document_start = chars_read;
19311|  10.7k|        std::int32_t document_size{};
19312|  10.7k|        if (!get_number<std::int32_t, true>(document_size))
  ------------------
  |  Branch (19312:13): [True: 0, False: 10.7k]
  ------------------
19313|      0|        {
19314|      0|            return false;
19315|      0|        }
19316|       |
19317|       |        // the smallest document is the size prefix and the terminator
19318|  10.7k|        if (JSON_HEDLEY_UNLIKELY(document_size < 5))
  ------------------
  |  | 1697|  10.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 34, False: 10.7k]
  |  |  ------------------
  ------------------
19319|     34|        {
19320|     34|            return bson_document_size_error("document size ", document_size, " is less than 5");
19321|     34|        }
19322|       |
19323|       |        // the declared size bounds where the document ends: an embedded
19324|       |        // document must end before the terminator of the document that contains it
19325|  10.7k|        const auto unsigned_size = static_cast<std::size_t>(document_size);
19326|  10.7k|        const std::size_t document_end = unsigned_size > (std::numeric_limits<std::size_t>::max)() - document_start
  ------------------
  |  Branch (19326:42): [True: 0, False: 10.7k]
  ------------------
19327|  10.7k|                                         ? (std::numeric_limits<std::size_t>::max)()
19328|  10.7k|                                         : document_start + unsigned_size;
19329|  10.7k|        if (JSON_HEDLEY_UNLIKELY(!container_stack.empty() && document_end >= container_stack.back().end_position))
  ------------------
  |  | 1697|  16.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 39, False: 10.7k]
  |  |  |  Branch (1697:94): [True: 5.71k, False: 5.04k]
  |  |  |  Branch (1697:94): [True: 39, False: 5.67k]
  |  |  ------------------
  ------------------
19330|     39|        {
19331|     39|            return bson_document_size_error("document size ", document_size, " exceeds the size of the enclosing document");
19332|     39|        }
19333|       |
19334|  10.7k|        if (JSON_HEDLEY_UNLIKELY(!enter_container(is_object, detail::unknown_size())))
  ------------------
  |  | 1697|  10.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.7k]
  |  |  ------------------
  ------------------
19335|      0|        {
19336|      0|            return false;
19337|      0|        }
19338|       |
19339|  10.7k|        container_frame& frame = container_stack.back();
19340|  10.7k|        frame.start_position = document_start;
19341|  10.7k|        frame.end_position = document_end;
19342|  10.7k|        frame.declared_size = document_size;
19343|  10.7k|        return true;
19344|  10.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberIiLb1EEEbRT_:
23596|  17.4k|    {
23597|       |        // read in the original format
23598|       |
23599|  17.4k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  17.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 17.4k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  17.4k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 17.4k]
  |  Branch (23603:34): [True: 17.4k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  17.4k|        return true;
23608|  17.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toIiEEbRT_PKc:
23503|  17.4k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  17.4k|        auto new_chars_read = ia.get_elements(&dest);
23507|  17.4k|        chars_read += new_chars_read;
23508|  17.4k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  17.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 113, False: 17.3k]
  |  |  ------------------
  ------------------
23509|    113|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    113|            ++chars_read;
23512|    113|            static_cast<void>(report_eof(context));
23513|    113|            return false;
23514|    113|        }
23515|  17.3k|        return true;
23516|  17.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIiEEmPT_m:
 9930|  17.4k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  17.4k|#if !JSON_DISABLE_STREAM_BULK_SCAN
 9935|       |        // the elements are in the get area: copy them, as sgetn() does, but
 9936|       |        // without the virtual call
 9937|  17.4k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  17.4k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  17.4k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  34.8k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 17.3k, False: 113]
  |  |  |  Branch (1696:94): [True: 17.3k, False: 113]
  |  |  |  Branch (1696:94): [True: 17.3k, False: 0]
  |  |  ------------------
  ------------------
 9940|  17.3k|        {
 9941|  17.3k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  17.3k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  17.3k|            return count * sizeof(T);
 9944|  17.3k|        }
 9945|    113|#endif
 9946|    113|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|    113|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|    113|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 113, False: 0]
  |  |  ------------------
  ------------------
 9948|    113|        {
 9949|    113|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|    113|        }
 9951|    113|        return res;
 9952|  17.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter16streambuf_access7get_ptrEPNSt3__115basic_streambufIcNS4_11char_traitsIcEEEE:
10087|   204k|        {
10088|   204k|            return (s->*(&streambuf_access::gptr))();
10089|   204k|        }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter16streambuf_access7get_endEPNSt3__115basic_streambufIcNS4_11char_traitsIcEEEE:
10091|   164k|        {
10092|   164k|            return (s->*(&streambuf_access::egptr))();
10093|   164k|        }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter16streambuf_access4bumpEPNSt3__115basic_streambufIcNS4_11char_traitsIcEEEEi:
10099|   119k|        {
10100|   119k|            (s->*(&streambuf_access::gbump))(n);
10101|   119k|        }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10report_eofEPKc:
23991|  1.29k|    {
23992|  1.29k|        return sax->parse_error(chars_read, "<end of file>",
23993|  1.29k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  1.29k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17exception_messageERKSC_SM_:
24102|  1.63k|    {
24103|  1.63k|        std::string error_msg = "syntax error while parsing ";
24104|  1.63k|        error_msg += input_format_name(input_format);
24105|       |
24106|  1.63k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  1.63k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15enter_containerEbmi:
19201|  10.6k|    {
19202|  10.6k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|  21.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.6k]
  |  |  |  Branch (1697:94): [True: 7.19k, False: 3.49k]
  |  |  ------------------
  ------------------
19203|      0|        {
19204|      0|            return false;
19205|      0|        }
19206|       |
19207|  10.6k|        container_stack.emplace_back(len, is_object, type_marker);
19208|  10.6k|        return true;
19209|  10.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12start_objectEm:
17878|  7.19k|    {
17879|  7.19k|        ref_stack.push_back(handle_value(BasicJsonType::value_t::object));
17880|       |
17881|       |#if JSON_DIAGNOSTIC_POSITIONS
17882|       |        // Ensure this is after the call to handle_value to ensure correct start position.
17883|       |        diagnostic_positions::set_container_start(*ref_stack.back(), m_lexer_ref);
17884|       |#endif
17885|       |
17886|  7.19k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|  7.19k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12handle_valueINS1_7value_tEEEPSG_OT_:
17961|  10.6k|    {
17962|  10.6k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 5.01k, False: 5.67k]
  ------------------
17963|  5.01k|        {
17964|  5.01k|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|  5.01k|            return &root;
17971|  5.01k|        }
17972|       |
17973|  5.67k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  5.67k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 2.16k, False: 3.51k]
  |  Branch (17973:9): [True: 3.51k, False: 0]
  |  Branch (17973:9): [True: 5.67k, False: 0]
  ------------------
17974|       |
17975|  5.67k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 2.16k, False: 3.51k]
  ------------------
17976|  2.16k|        {
17977|  2.16k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  2.16k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  2.16k|        }
17985|       |
17986|  3.51k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.51k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 3.51k, False: 0]
  ------------------
17987|  3.51k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  3.51k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 3.51k, False: 0]
  ------------------
17988|  3.51k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  3.51k|        return object_element;
17995|  3.51k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20check_container_sizeINS1_26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEENS1_20input_stream_adapterEEESH_EEbRT_mPKcPT0_:
16469|  10.6k|{
16470|  10.6k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|  10.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.6k]
  |  |  |  Branch (1697:94): [True: 0, False: 10.6k]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
16471|      0|    {
16472|      0|        return container_too_large_error(sax, len, kind, ref);
16473|      0|    }
16474|  10.6k|    return true;
16475|  10.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE11start_arrayEm:
17915|  3.49k|    {
17916|  3.49k|        ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
17917|       |
17918|       |#if JSON_DIAGNOSTIC_POSITIONS
17919|       |        // Ensure this is after the call to handle_value to ensure correct start position.
17920|       |        diagnostic_positions::set_container_start(*ref_stack.back(), m_lexer_ref);
17921|       |#endif
17922|       |
17923|  3.49k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|  3.49k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.49k]
  |  |  ------------------
  ------------------
17924|      0|        {
17925|      0|            return false;
17926|      0|        }
17927|       |
17928|  3.49k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 0, False: 3.49k]
  ------------------
17929|      0|        {
17930|      0|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|      0|        }
17932|       |
17933|  3.49k|        return true;
17934|  3.49k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15container_frameC2Embi:
19167|  10.6k|            : remaining(remaining_), type_marker(type_marker_), is_object(is_object_) {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE24check_bson_document_sizeEmi:
19294|  8.18k|    {
19295|  8.18k|        if (JSON_HEDLEY_UNLIKELY(static_cast<std::size_t>(document_size) != chars_read - document_start))
  ------------------
  |  | 1697|  8.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 62, False: 8.12k]
  |  |  ------------------
  ------------------
19296|     62|        {
19297|     62|            return bson_document_size_error(document_size, chars_read - document_start);
19298|     62|        }
19299|  8.12k|        return true;
19300|  8.18k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE24bson_document_size_errorEim:
24027|     62|    {
24028|     62|        return last_byte_error(exception_id::unexpected_byte, concat("document size ", std::to_string(document_size), " does not match the number of bytes read (", std::to_string(bytes_read), ")"), "document");
24029|     62|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15leave_containerEv:
19233|  8.12k|    {
19234|  8.12k|        const bool is_object = container_stack.back().is_object;
19235|  8.12k|        container_stack.pop_back();
19236|  8.12k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 5.31k, False: 2.80k]
  ------------------
19237|  8.12k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE10end_objectEv:
17901|  5.31k|    {
17902|  5.31k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  5.31k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 5.31k, False: 0]
  ------------------
17903|  5.31k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  5.31k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 5.31k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|  5.31k|        ref_stack.back()->set_parents();
17910|  5.31k|        ref_stack.pop_back();
17911|  5.31k|        return true;
17912|  5.31k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE9end_arrayEv:
17937|  2.80k|    {
17938|  2.80k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  2.80k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 2.80k, False: 0]
  ------------------
17939|  2.80k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|  2.80k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 2.80k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|  2.80k|        ref_stack.back()->set_parents();
17946|  2.80k|        ref_stack.pop_back();
17947|  2.80k|        return true;
17948|  2.80k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE12unexpect_eofEPKc:
23974|  41.6k|    {
23975|  41.6k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  41.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.08k, False: 40.5k]
  |  |  ------------------
  ------------------
23976|  1.08k|        {
23977|  1.08k|            return report_eof(context);
23978|  1.08k|        }
23979|  40.5k|        return true;
23980|  41.6k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE24bson_document_size_errorEPKciSM_:
24033|     89|    {
24034|     89|        return last_byte_error(exception_id::unexpected_byte, concat(prefix, std::to_string(document_size), suffix), "document");
24035|     89|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE13get_bson_cstrERSC_b:
19444|  39.6k|    {
19445|  39.6k|        if (get_bson_cstr_bulk(result, store, std::integral_constant<bool, bulk_scan> {}))
  ------------------
  |  Branch (19445:13): [True: 39.5k, False: 109]
  ------------------
19446|  39.5k|        {
19447|  39.5k|            return !store || check_string_utf8(result, "key");
  ------------------
  |  Branch (19447:20): [True: 15.8k, False: 23.6k]
  |  Branch (19447:30): [True: 23.6k, False: 0]
  ------------------
19448|  39.5k|        }
19449|       |
19450|    109|        auto out = std::back_inserter(result);
19451|  1.11k|        while (true)
  ------------------
  |  Branch (19451:16): [True: 1.00k, Folded]
  ------------------
19452|  1.00k|        {
19453|  1.00k|            get();
19454|  1.00k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("cstring")))
  ------------------
  |  | 1697|  1.00k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.00k]
  |  |  ------------------
  ------------------
19455|      0|            {
19456|      0|                return false;
19457|      0|            }
19458|  1.00k|            if (current == 0x00)
  ------------------
  |  Branch (19458:17): [True: 0, False: 1.00k]
  ------------------
19459|      0|            {
19460|      0|                return !store || check_string_utf8(result, "key");
  ------------------
  |  Branch (19460:24): [True: 0, False: 0]
  |  Branch (19460:34): [True: 0, False: 0]
  ------------------
19461|      0|            }
19462|  1.00k|            *out++ = static_cast<typename string_t::value_type>(current);
19463|  1.00k|        }
19464|    109|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE18get_bson_cstr_bulkERSC_bNS4_17integral_constantIbLb1EEE:
19475|  39.6k|    {
19476|  39.6k|        const std::size_t remaining = ia.bulk_remaining();
19477|  39.6k|        if (remaining == 0)
  ------------------
  |  Branch (19477:13): [True: 82, False: 39.5k]
  ------------------
19478|     82|        {
19479|     82|            return false;
19480|     82|        }
19481|  39.5k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
19482|  39.5k|        const std::size_t length = find_zero_byte(data, remaining);
19483|  39.5k|        if (length == remaining)
  ------------------
  |  Branch (19483:13): [True: 27, False: 39.5k]
  ------------------
19484|     27|        {
19485|     27|            return false;
19486|     27|        }
19487|  39.5k|        if (store)
  ------------------
  |  Branch (19487:13): [True: 23.6k, False: 15.8k]
  ------------------
19488|  23.6k|        {
19489|  23.6k|            result.append(reinterpret_cast<const typename string_t::value_type*>(data), length);
19490|  23.6k|        }
19491|       |        // consume the string and its \x00-byte, as the byte-wise path does
19492|  39.5k|        ia.bulk_skip(length + 1);
19493|  39.5k|        chars_read += length + 1;
19494|  39.5k|        current = 0x00;
19495|  39.5k|        return true;
19496|  39.5k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail20input_stream_adapter14bulk_remainingEv:
 9974|  80.7k|    {
 9975|  80.7k|        if (!current_in_get_area)
  ------------------
  |  Branch (9975:13): [True: 0, False: 80.7k]
  ------------------
 9976|      0|        {
 9977|      0|            return 0;
 9978|      0|        }
 9979|  80.7k|        return static_cast<std::size_t>(streambuf_access::get_end(sb) - current_end());
 9980|  80.7k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail20input_stream_adapter11current_endEv:
10112|   121k|    {
10113|       |#if JSON_PRECISE_STREAM_POSITION
10114|       |        // the character is peeked at gptr() and not stepped over yet, unless
10115|       |        // it was given back with release_lookahead()
10116|       |        return streambuf_access::get_ptr(sb) + (lookahead ? 1 : 0);
10117|       |#else
10118|   121k|        return streambuf_access::get_ptr(sb);
10119|   121k|#endif
10120|   121k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail20input_stream_adapter9bulk_dataEv:
 9968|  40.2k|    {
 9969|  40.2k|        return current_end();
 9970|  40.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter9bulk_skipEm:
 9985|  40.2k|    {
 9986|  40.2k|        JSON_ASSERT(n <= bulk_remaining());
  ------------------
  |  | 2653|  40.2k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (9986:9): [True: 40.2k, False: 0]
  ------------------
 9987|       |        // gbump() takes an int, but a get area (e.g., of a std::stringbuf) can
 9988|       |        // be larger
 9989|  40.2k|        constexpr auto max_bump = static_cast<std::size_t>((std::numeric_limits<int>::max)());
 9990|  40.2k|        for (; n > max_bump; n -= max_bump)
  ------------------
  |  Branch (9990:16): [True: 0, False: 40.2k]
  ------------------
 9991|      0|        {
 9992|      0|            streambuf_access::bump(sb, static_cast<int>(max_bump));
 9993|      0|        }
 9994|  40.2k|        streambuf_access::bump(sb, static_cast<int>(n));
 9995|  40.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17check_string_utf8ERSC_PKc:
23811|  25.7k|    {
23812|  25.7k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 25.7k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|  25.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE3keyERSC_:
17890|  23.6k|    {
17891|  23.6k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  23.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 23.6k, False: 0]
  ------------------
17892|  23.6k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  23.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 23.6k, False: 0]
  ------------------
17893|       |
17894|       |        // add null at the given key and store the reference for later; the
17895|       |        // key is moved, as the lexer starts the next token with reset()
17896|  23.6k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|  23.6k|        return true;
17898|  23.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE27parse_bson_element_internalEim:
19649|  39.5k|    {
19650|  39.5k|        switch (element_type)
19651|  39.5k|        {
19652|  1.85k|            case 0x01: // double
  ------------------
  |  Branch (19652:13): [True: 1.85k, False: 37.6k]
  ------------------
19653|  1.85k|            {
19654|  1.85k|                double number{};
19655|  1.85k|                return get_number<double, true>(number) && emit_float(number);
  ------------------
  |  Branch (19655:24): [True: 1.82k, False: 32]
  |  Branch (19655:60): [True: 1.82k, False: 0]
  ------------------
19656|      0|            }
19657|       |
19658|  2.23k|            case 0x02: // string
  ------------------
  |  Branch (19658:13): [True: 2.23k, False: 37.2k]
  ------------------
19659|  2.23k|            {
19660|  2.23k|                std::int32_t len{};
19661|  2.23k|                string_t value;
19662|  2.23k|                return get_number<std::int32_t, true>(len) && get_bson_string(len, value) && sax->string(value);
  ------------------
  |  Branch (19662:24): [True: 2.21k, False: 15]
  |  Branch (19662:63): [True: 2.05k, False: 157]
  |  Branch (19662:94): [True: 2.05k, False: 0]
  ------------------
19663|      0|            }
19664|       |
19665|  2.20k|            case 0x03: // object
  ------------------
  |  Branch (19665:13): [True: 2.20k, False: 37.3k]
  ------------------
19666|  2.20k|            {
19667|  2.20k|                return open_bson_document(/*is_object*/true);
19668|      0|            }
19669|       |
19670|  3.53k|            case 0x04: // array
  ------------------
  |  Branch (19670:13): [True: 3.53k, False: 35.9k]
  ------------------
19671|  3.53k|            {
19672|  3.53k|                return open_bson_document(/*is_object*/false);
19673|      0|            }
19674|       |
19675|  2.88k|            case 0x05: // binary
  ------------------
  |  Branch (19675:13): [True: 2.88k, False: 36.6k]
  ------------------
19676|  2.88k|            {
19677|  2.88k|                std::int32_t len{};
19678|  2.88k|                binary_t value;
19679|  2.88k|                return get_number<std::int32_t, true>(len) && get_bson_binary(len, value) && sax->binary(value);
  ------------------
  |  Branch (19679:24): [True: 2.86k, False: 15]
  |  Branch (19679:63): [True: 2.63k, False: 229]
  |  Branch (19679:94): [True: 2.63k, False: 0]
  ------------------
19680|      0|            }
19681|       |
19682|  3.29k|            case 0x08: // boolean
  ------------------
  |  Branch (19682:13): [True: 3.29k, False: 36.2k]
  ------------------
19683|  3.29k|            {
19684|  3.29k|                std::uint8_t value{};
19685|  3.29k|                return get_number<std::uint8_t>(value) && sax->boolean(value != 0);
  ------------------
  |  Branch (19685:24): [True: 3.28k, False: 8]
  |  Branch (19685:59): [True: 3.28k, False: 0]
  ------------------
19686|      0|            }
19687|       |
19688|  19.9k|            case 0x0A: // null
  ------------------
  |  Branch (19688:13): [True: 19.9k, False: 19.5k]
  ------------------
19689|  19.9k|            {
19690|  19.9k|                return sax->null();
19691|      0|            }
19692|       |
19693|  1.17k|            case 0x10: // int32
  ------------------
  |  Branch (19693:13): [True: 1.17k, False: 38.3k]
  ------------------
19694|  1.17k|            {
19695|  1.17k|                std::int32_t value{};
19696|  1.17k|                return get_number<std::int32_t, true>(value) && emit_signed(value);
  ------------------
  |  Branch (19696:24): [True: 1.16k, False: 12]
  |  Branch (19696:65): [True: 1.16k, False: 0]
  ------------------
19697|      0|            }
19698|       |
19699|    772|            case 0x12: // int64
  ------------------
  |  Branch (19699:13): [True: 772, False: 38.7k]
  ------------------
19700|    772|            {
19701|    772|                std::int64_t value{};
19702|    772|                return get_number<std::int64_t, true>(value) && emit_signed(value);
  ------------------
  |  Branch (19702:24): [True: 752, False: 20]
  |  Branch (19702:65): [True: 752, False: 0]
  ------------------
19703|      0|            }
19704|       |
19705|  1.47k|            case 0x11: // uint64
  ------------------
  |  Branch (19705:13): [True: 1.47k, False: 38.0k]
  ------------------
19706|  1.47k|            {
19707|  1.47k|                std::uint64_t value{};
19708|  1.47k|                return get_number<std::uint64_t, true>(value) && emit_unsigned(value);
  ------------------
  |  Branch (19708:24): [True: 1.45k, False: 20]
  |  Branch (19708:66): [True: 1.45k, False: 0]
  ------------------
19709|      0|            }
19710|       |
19711|    127|            default: // anything else is not supported (yet)
  ------------------
  |  Branch (19711:13): [True: 127, False: 39.3k]
  ------------------
19712|    127|            {
19713|    127|                return bson_unsupported_type_error(element_type_parse_position, element_type);
19714|      0|            }
19715|  39.5k|        }
19716|  39.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberIdLb1EEEbRT_:
23596|  1.85k|    {
23597|       |        // read in the original format
23598|       |
23599|  1.85k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  1.85k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.85k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  1.85k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 1.85k]
  |  Branch (23603:34): [True: 1.85k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  1.85k|        return true;
23608|  1.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toIdEEbRT_PKc:
23503|  1.85k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  1.85k|        auto new_chars_read = ia.get_elements(&dest);
23507|  1.85k|        chars_read += new_chars_read;
23508|  1.85k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  1.85k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 32, False: 1.82k]
  |  |  ------------------
  ------------------
23509|     32|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     32|            ++chars_read;
23512|     32|            static_cast<void>(report_eof(context));
23513|     32|            return false;
23514|     32|        }
23515|  1.82k|        return true;
23516|  1.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIdEEmPT_m:
 9930|  1.85k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  1.85k|#if !JSON_DISABLE_STREAM_BULK_SCAN
 9935|       |        // the elements are in the get area: copy them, as sgetn() does, but
 9936|       |        // without the virtual call
 9937|  1.85k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  1.85k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  1.85k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  3.67k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.82k, False: 32]
  |  |  |  Branch (1696:94): [True: 1.82k, False: 32]
  |  |  |  Branch (1696:94): [True: 1.82k, False: 0]
  |  |  ------------------
  ------------------
 9940|  1.82k|        {
 9941|  1.82k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  1.82k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  1.82k|            return count * sizeof(T);
 9944|  1.82k|        }
 9945|     32|#endif
 9946|     32|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|     32|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|     32|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 32, False: 0]
  |  |  ------------------
  ------------------
 9948|     32|        {
 9949|     32|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|     32|        }
 9951|     32|        return res;
 9952|  1.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10emit_floatIdEEbT_:
23682|  1.82k|    {
23683|  1.82k|        const auto result = static_cast<number_float_t>(number);
23684|  1.82k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  3.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.82k]
  |  |  |  Branch (1697:94): [True: 1.76k, False: 57]
  |  |  |  Branch (1697:94): [True: 0, False: 1.76k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  1.82k|        return sax->number_float(result, no_source);
23689|  1.82k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE16get_token_stringEv:
24091|    356|    {
24092|    356|        return hex_byte(static_cast<std::uint8_t>(current));
24093|    356|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12number_floatEdRKSC_:
17856|  1.82k|    {
17857|  1.82k|        handle_value(val);
17858|  1.82k|        return true;
17859|  1.82k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12handle_valueIRdEEPSG_OT_:
17961|  1.82k|    {
17962|  1.82k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 1.82k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  1.82k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.82k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 568, False: 1.25k]
  |  Branch (17973:9): [True: 1.25k, False: 0]
  |  Branch (17973:9): [True: 1.82k, False: 0]
  ------------------
17974|       |
17975|  1.82k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 568, False: 1.25k]
  ------------------
17976|    568|        {
17977|    568|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    568|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    568|        }
17985|       |
17986|  1.25k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.25k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.25k, False: 0]
  ------------------
17987|  1.25k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.25k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.25k, False: 0]
  ------------------
17988|  1.25k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.25k|        return object_element;
17995|  1.25k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15get_bson_stringIiEEbT_RSC_:
19553|  2.21k|    {
19554|  2.21k|        if (JSON_HEDLEY_UNLIKELY(len < 1))
  ------------------
  |  | 1697|  2.21k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 38, False: 2.17k]
  |  |  ------------------
  ------------------
19555|     38|        {
19556|     38|            return bson_length_error("string length must be at least 1, is ", len, "string");
19557|     38|        }
19558|       |
19559|  2.17k|        if (JSON_HEDLEY_UNLIKELY(!get_string(len - static_cast<NumberType>(1), result)))
  ------------------
  |  | 1697|  2.17k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.17k]
  |  |  ------------------
  ------------------
19560|      0|        {
19561|      0|            return false;
19562|      0|        }
19563|       |
19564|  2.17k|        if (JSON_HEDLEY_UNLIKELY(get() != 0x00))
  ------------------
  |  | 1697|  2.17k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 34, False: 2.14k]
  |  |  ------------------
  ------------------
19565|     34|        {
19566|     34|            return last_byte_error(exception_id::unexpected_byte, "BSON string is not null-terminated", "string");
19567|     34|        }
19568|       |
19569|  2.14k|        return check_string_utf8(result, "string");
19570|  2.17k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17bson_length_errorIiEEbPKcT_SN_:
24021|    147|    {
24022|    147|        return last_byte_error(exception_id::unexpected_byte, concat(prefix, std::to_string(len)), context);
24023|    147|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_stringIiEEbT_RSC_:
23767|  2.17k|    {
23768|       |        // Strings are taken as is by default: none of CBOR (RFC 8949 §3.1
23769|       |        // leaves the choice to the decoder), MessagePack (whose spec
23770|       |        // explicitly allows a str object to contain an invalid byte
23771|       |        // sequence), UBJSON, BJData, or BSON requires a decoder to reject
23772|       |        // ill-formed UTF-8. Checking (and, with @ref error_handler_t::strict,
23773|       |        // rejecting, or with `replace`/`ignore`, sanitizing) is opt-in via
23774|       |        // @ref error_handler, applied by @ref check_string_utf8 at the call
23775|       |        // site to the whole string or, for an indefinite-length CBOR string,
23776|       |        // to each chunk on its own (RFC 8949, Section 3.2.3).
23777|  2.17k|        return get_bytes(len, "string", result);
23778|  2.17k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE9get_bytesIiSC_EEbT_PKcRT0_:
23893|  2.17k|    {
23894|       |        // a string that is in the block of input as a whole is appended from
23895|       |        // it, without the zero-filling resize() below
23896|  2.17k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [True: 0, Folded]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|  2.17k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 749, False: 1.42k]
  ------------------
23898|    749|        {
23899|    749|            return true;
23900|    749|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  1.42k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  1.42k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 85, False: 1.34k]
  ------------------
23906|     85|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     85|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 38, False: 47]
  ------------------
23910|     85|                                       ? static_cast<std::size_t>(len)
23911|     85|                                       : chunk_size;
23912|     85|            const std::size_t old_size = result.size();
23913|     85|            result.resize(old_size + wanted);
23914|       |            // resize() is required to make size() exactly old_size + wanted;
23915|       |            // that is the room get_elements() is allowed to write into
23916|     85|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     85|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 85, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     85|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     85|            chars_read += bytes_read;
23921|     85|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     85|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 85, False: 0]
  |  |  ------------------
  ------------------
23922|     85|            {
23923|       |                // premature end of input: shrink to what was actually read and
23924|       |                // report the failure at the first missing byte (same position
23925|       |                // accounting as get_to() for partial number reads)
23926|     85|                result.resize(old_size + bytes_read);
23927|     85|                ++chars_read;
23928|     85|                current = char_traits<char_type>::eof();
23929|     85|                return unexpect_eof(context);
23930|     85|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|      0|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 0, False: 0]
  ------------------
23933|      0|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|      0|        }
23935|  1.34k|        return true;
23936|  1.42k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17append_from_blockIiEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  2.17k|    {
23943|  2.17k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 1.34k, False: 834]
  ------------------
23944|  1.34k|        {
23945|  1.34k|            return false;
23946|  1.34k|        }
23947|       |        // (len > 0, so the unsigned type holds it; casting a signed char
23948|       |        // straight to std::size_t would trip bugprone-signed-char-misuse)
23949|    834|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    834|        const std::size_t remaining = ia.bulk_remaining();
23951|    834|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 85, False: 749]
  ------------------
23952|     85|        {
23953|     85|            return false; // (the loop reports the premature end)
23954|     85|        }
23955|    749|        const auto n = static_cast<std::size_t>(ulen);
23956|    749|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    749|        ia.bulk_skip(n);
23958|    749|        chars_read += n;
23959|    749|        return true;
23960|    834|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIcEEmPT_m:
 9930|     85|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|     85|#if !JSON_DISABLE_STREAM_BULK_SCAN
 9935|       |        // the elements are in the get area: copy them, as sgetn() does, but
 9936|       |        // without the virtual call
 9937|     85|        const char* const first = streambuf_access::get_ptr(sb);
 9938|     85|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|     85|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|     85|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 0, False: 85]
  |  |  |  Branch (1696:94): [True: 0, False: 85]
  |  |  |  Branch (1696:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 9940|      0|        {
 9941|      0|            std::memcpy(dest, first, count * sizeof(T));
 9942|      0|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|      0|            return count * sizeof(T);
 9944|      0|        }
 9945|     85|#endif
 9946|     85|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|     85|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|     85|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 85, False: 0]
  |  |  ------------------
  ------------------
 9948|     85|        {
 9949|     85|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|     85|        }
 9951|     85|        return res;
 9952|     85|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE6stringERSC_:
17862|  2.05k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|  2.05k|        handle_value(std::move(val));
17866|  2.05k|        return true;
17867|  2.05k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12handle_valueISC_EEPSG_OT_:
17961|  2.05k|    {
17962|  2.05k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 2.05k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  2.05k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  2.05k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 943, False: 1.11k]
  |  Branch (17973:9): [True: 1.11k, False: 0]
  |  Branch (17973:9): [True: 2.05k, False: 0]
  ------------------
17974|       |
17975|  2.05k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 943, False: 1.11k]
  ------------------
17976|    943|        {
17977|    943|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    943|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    943|        }
17985|       |
17986|  1.11k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.11k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.11k, False: 0]
  ------------------
17987|  1.11k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.11k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.11k, False: 0]
  ------------------
17988|  1.11k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.11k|        return object_element;
17995|  1.11k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15get_bson_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
19583|  2.86k|    {
19584|  2.86k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  2.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 35, False: 2.83k]
  |  |  ------------------
  ------------------
19585|     35|        {
19586|     35|            return bson_length_error("byte array length cannot be negative, is ", len, "binary");
19587|     35|        }
19588|       |
19589|       |        // All BSON binary values have a subtype
19590|  2.83k|        std::uint8_t subtype{};
19591|  2.83k|        if (JSON_HEDLEY_UNLIKELY(!get_number<std::uint8_t>(subtype)))
  ------------------
  |  | 1697|  2.83k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.83k]
  |  |  ------------------
  ------------------
19592|      0|        {
19593|      0|            return false;
19594|      0|        }
19595|  2.83k|        result.set_subtype(subtype);
19596|       |
19597|       |        // the "old binary" subtype 0x02 starts with an int32 that repeats the
19598|       |        // size of the payload following it; the payload does not include it
19599|  2.83k|        if (subtype == 0x02)
  ------------------
  |  Branch (19599:13): [True: 397, False: 2.43k]
  ------------------
19600|    397|        {
19601|    397|            return get_bson_old_binary(len, result);
19602|    397|        }
19603|       |
19604|  2.43k|        return get_binary(len, result);
19605|  2.83k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE19get_bson_old_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
19617|    397|    {
19618|    397|        if (JSON_HEDLEY_UNLIKELY(len < 4))
  ------------------
  |  | 1697|    397|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 394]
  |  |  ------------------
  ------------------
19619|      3|        {
19620|      3|            return bson_length_error("length of binary subtype 0x02 must be at least 4, is ", len, "binary");
19621|      3|        }
19622|       |
19623|    394|        std::int32_t inner_length{};
19624|    394|        if (JSON_HEDLEY_UNLIKELY((!get_number<std::int32_t, true>(inner_length))))
  ------------------
  |  | 1697|    394|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 394]
  |  |  ------------------
  ------------------
19625|      0|        {
19626|      0|            return false;
19627|      0|        }
19628|       |
19629|    394|        if (JSON_HEDLEY_UNLIKELY(static_cast<std::int64_t>(inner_length) != static_cast<std::int64_t>(len) - 4))
  ------------------
  |  | 1697|    394|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 71, False: 323]
  |  |  ------------------
  ------------------
19630|     71|        {
19631|     71|            return bson_length_error("inner length of binary subtype 0x02 does not match the payload size; inner length is ", inner_length, "binary");
19632|     71|        }
19633|       |
19634|    323|        return get_binary(inner_length, result);
19635|    394|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
23867|  2.70k|    {
23868|  2.70k|        return get_bytes(len, "binary", result);
23869|  2.70k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE9get_bytesIiNS0_27byte_container_with_subtypeISF_EEEEbT_PKcRT0_:
23893|  2.70k|    {
23894|       |        // a string that is in the block of input as a whole is appended from
23895|       |        // it, without the zero-filling resize() below
23896|  2.70k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [True: 0, Folded]
  |  Branch (23896:50): [Folded, False: 0]
  ------------------
23897|  2.70k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 2.70k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  2.70k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  3.75k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 1.11k, False: 2.63k]
  ------------------
23906|  1.11k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  1.11k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 1.08k, False: 29]
  ------------------
23910|  1.11k|                                       ? static_cast<std::size_t>(len)
23911|  1.11k|                                       : chunk_size;
23912|  1.11k|            const std::size_t old_size = result.size();
23913|  1.11k|            result.resize(old_size + wanted);
23914|       |            // resize() is required to make size() exactly old_size + wanted;
23915|       |            // that is the room get_elements() is allowed to write into
23916|  1.11k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  1.11k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 1.11k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  1.11k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  1.11k|            chars_read += bytes_read;
23921|  1.11k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  1.11k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 66, False: 1.04k]
  |  |  ------------------
  ------------------
23922|     66|            {
23923|       |                // premature end of input: shrink to what was actually read and
23924|       |                // report the failure at the first missing byte (same position
23925|       |                // accounting as get_to() for partial number reads)
23926|     66|                result.resize(old_size + bytes_read);
23927|     66|                ++chars_read;
23928|     66|                current = char_traits<char_type>::eof();
23929|     66|                return unexpect_eof(context);
23930|     66|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  1.04k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  1.04k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 1.04k, False: 0]
  ------------------
23933|  1.04k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  1.04k|        }
23935|  2.63k|        return true;
23936|  2.70k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17append_from_blockIiNS0_27byte_container_with_subtypeISF_EEEEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  2.70k|    {
23965|  2.70k|        return false;
23966|  2.70k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIhEEmPT_m:
 9930|  7.24k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  7.24k|#if !JSON_DISABLE_STREAM_BULK_SCAN
 9935|       |        // the elements are in the get area: copy them, as sgetn() does, but
 9936|       |        // without the virtual call
 9937|  7.24k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  7.24k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  7.24k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  14.3k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 7.15k, False: 89]
  |  |  |  Branch (1696:94): [True: 7.15k, False: 89]
  |  |  |  Branch (1696:94): [True: 7.15k, False: 0]
  |  |  ------------------
  ------------------
 9940|  7.15k|        {
 9941|  7.15k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  7.15k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  7.15k|            return count * sizeof(T);
 9944|  7.15k|        }
 9945|     89|#endif
 9946|     89|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|     89|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|     89|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 89, False: 0]
  |  |  ------------------
  ------------------
 9948|     89|        {
 9949|     89|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|     89|        }
 9951|     89|        return res;
 9952|  7.24k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE6binaryERNS0_27byte_container_with_subtypeISF_EE:
17870|  2.63k|    {
17871|       |        // json_sax documents that the passed value may be moved from,
17872|       |        // so hand the buffer over instead of copying it
17873|  2.63k|        handle_value(std::move(val));
17874|  2.63k|        return true;
17875|  2.63k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12handle_valueINS0_27byte_container_with_subtypeISF_EEEEPSG_OT_:
17961|  2.63k|    {
17962|  2.63k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 2.63k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  2.63k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  2.63k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 771, False: 1.86k]
  |  Branch (17973:9): [True: 1.86k, False: 0]
  |  Branch (17973:9): [True: 2.63k, False: 0]
  ------------------
17974|       |
17975|  2.63k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 771, False: 1.86k]
  ------------------
17976|    771|        {
17977|    771|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    771|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    771|        }
17985|       |
17986|  1.86k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.86k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.86k, False: 0]
  ------------------
17987|  1.86k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.86k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.86k, False: 0]
  ------------------
17988|  1.86k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.86k|        return object_element;
17995|  1.86k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberIhLb0EEEbRT_:
23596|  6.12k|    {
23597|       |        // read in the original format
23598|       |
23599|  6.12k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  6.12k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.12k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  6.12k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 6.10k, False: 23]
  |  Branch (23603:34): [Folded, False: 6.10k]
  |  Branch (23603:57): [True: 0, False: 6.10k]
  ------------------
23604|  6.10k|        {
23605|  6.10k|            byte_swap(result);
23606|  6.10k|        }
23607|  6.12k|        return true;
23608|  6.12k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toIhEEbRT_PKc:
23503|  6.12k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  6.12k|        auto new_chars_read = ia.get_elements(&dest);
23507|  6.12k|        chars_read += new_chars_read;
23508|  6.12k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  6.12k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 23, False: 6.10k]
  |  |  ------------------
  ------------------
23509|     23|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     23|            ++chars_read;
23512|     23|            static_cast<void>(report_eof(context));
23513|     23|            return false;
23514|     23|        }
23515|  6.10k|        return true;
23516|  6.12k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE9byte_swapIhEEvRT_:
23555|  6.10k|    {
23556|  6.10k|        constexpr std::size_t sz = sizeof(number);
23557|       |#ifdef __cpp_lib_byteswap
23558|       |        if constexpr (sz == 1)
23559|       |        {
23560|       |            return;
23561|       |        }
23562|       |        else if constexpr(std::is_integral_v<NumberType>)
23563|       |        {
23564|       |            number = std::byteswap(number);
23565|       |            return;
23566|       |        }
23567|       |        else
23568|       |        {
23569|       |#endif
23570|  6.10k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  6.10k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 6.10k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  6.10k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE7booleanEb:
17838|  3.28k|    {
17839|  3.28k|        handle_value(val);
17840|  3.28k|        return true;
17841|  3.28k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12handle_valueIRbEEPSG_OT_:
17961|  3.28k|    {
17962|  3.28k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 3.28k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  3.28k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.28k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 1.87k, False: 1.40k]
  |  Branch (17973:9): [True: 1.40k, False: 0]
  |  Branch (17973:9): [True: 3.28k, False: 0]
  ------------------
17974|       |
17975|  3.28k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 1.87k, False: 1.40k]
  ------------------
17976|  1.87k|        {
17977|  1.87k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  1.87k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  1.87k|        }
17985|       |
17986|  1.40k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.40k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.40k, False: 0]
  ------------------
17987|  1.40k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.40k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.40k, False: 0]
  ------------------
17988|  1.40k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.40k|        return object_element;
17995|  1.40k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE4nullEv:
17832|  19.9k|    {
17833|  19.9k|        handle_value(nullptr);
17834|  19.9k|        return true;
17835|  19.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12handle_valueIDnEEPSG_OT_:
17961|  19.9k|    {
17962|  19.9k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 19.9k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  19.9k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  19.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 8.43k, False: 11.5k]
  |  Branch (17973:9): [True: 11.5k, False: 0]
  |  Branch (17973:9): [True: 19.9k, False: 0]
  ------------------
17974|       |
17975|  19.9k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 8.43k, False: 11.5k]
  ------------------
17976|  8.43k|        {
17977|  8.43k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  8.43k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  8.43k|        }
17985|       |
17986|  11.5k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  11.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 11.5k, False: 0]
  ------------------
17987|  11.5k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  11.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 11.5k, False: 0]
  ------------------
17988|  11.5k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  11.5k|        return object_element;
17995|  11.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE11emit_signedIiEEbT_:
23628|  1.16k|    {
23629|  1.16k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  1.16k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.16k, False: 0]
  |  |  ------------------
  ------------------
23630|  1.16k|        {
23631|  1.16k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  1.16k|        }
23633|      0|        if (value_in_range_of<number_unsigned_t>(number))
  ------------------
  |  Branch (23633:13): [True: 0, False: 0]
  ------------------
23634|      0|        {
23635|      0|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23636|      0|        }
23637|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23638|      0|        return emit_float(static_cast<long double>(number));
23639|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE14number_integerEl:
17844|  1.91k|    {
17845|  1.91k|        handle_value(val);
17846|  1.91k|        return true;
17847|  1.91k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12handle_valueIRlEEPSG_OT_:
17961|  1.91k|    {
17962|  1.91k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 1.91k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  1.91k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.91k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 617, False: 1.29k]
  |  Branch (17973:9): [True: 1.29k, False: 0]
  |  Branch (17973:9): [True: 1.91k, False: 0]
  ------------------
17974|       |
17975|  1.91k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 617, False: 1.29k]
  ------------------
17976|    617|        {
17977|    617|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    617|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    617|        }
17985|       |
17986|  1.29k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.29k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.29k, False: 0]
  ------------------
17987|  1.29k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.29k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.29k, False: 0]
  ------------------
17988|  1.29k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.29k|        return object_element;
17995|  1.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE15number_unsignedEm:
17850|  1.45k|    {
17851|  1.45k|        handle_value(val);
17852|  1.45k|        return true;
17853|  1.45k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEE12handle_valueIRmEEPSG_OT_:
17961|  1.45k|    {
17962|  1.45k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 1.45k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  1.45k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.45k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 488, False: 968]
  |  Branch (17973:9): [True: 968, False: 0]
  |  Branch (17973:9): [True: 1.45k, False: 0]
  ------------------
17974|       |
17975|  1.45k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 488, False: 968]
  ------------------
17976|    488|        {
17977|    488|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    488|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    488|        }
17985|       |
17986|    968|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    968|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 968, False: 0]
  ------------------
17987|    968|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    968|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 968, False: 0]
  ------------------
17988|    968|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|    968|        return object_element;
17995|    968|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberIlLb1EEEbRT_:
23596|    772|    {
23597|       |        // read in the original format
23598|       |
23599|    772|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|    772|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 772]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|    772|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 772]
  |  Branch (23603:34): [True: 772, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|    772|        return true;
23608|    772|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toIlEEbRT_PKc:
23503|    772|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|    772|        auto new_chars_read = ia.get_elements(&dest);
23507|    772|        chars_read += new_chars_read;
23508|    772|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|    772|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 20, False: 752]
  |  |  ------------------
  ------------------
23509|     20|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     20|            ++chars_read;
23512|     20|            static_cast<void>(report_eof(context));
23513|     20|            return false;
23514|     20|        }
23515|    752|        return true;
23516|    772|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsIlEEmPT_m:
 9930|    772|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|    772|#if !JSON_DISABLE_STREAM_BULK_SCAN
 9935|       |        // the elements are in the get area: copy them, as sgetn() does, but
 9936|       |        // without the virtual call
 9937|    772|        const char* const first = streambuf_access::get_ptr(sb);
 9938|    772|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|    772|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  1.52k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 752, False: 20]
  |  |  |  Branch (1696:94): [True: 752, False: 20]
  |  |  |  Branch (1696:94): [True: 752, False: 0]
  |  |  ------------------
  ------------------
 9940|    752|        {
 9941|    752|            std::memcpy(dest, first, count * sizeof(T));
 9942|    752|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|    752|            return count * sizeof(T);
 9944|    752|        }
 9945|     20|#endif
 9946|     20|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|     20|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|     20|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 20, False: 0]
  |  |  ------------------
  ------------------
 9948|     20|        {
 9949|     20|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|     20|        }
 9951|     20|        return res;
 9952|    772|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE11emit_signedIlEEbT_:
23628|    752|    {
23629|    752|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|    752|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 752, False: 0]
  |  |  ------------------
  ------------------
23630|    752|        {
23631|    752|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|    752|        }
23633|      0|        if (value_in_range_of<number_unsigned_t>(number))
  ------------------
  |  Branch (23633:13): [True: 0, False: 0]
  ------------------
23634|      0|        {
23635|      0|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23636|      0|        }
23637|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23638|      0|        return emit_float(static_cast<long double>(number));
23639|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberImLb1EEEbRT_:
23596|  1.47k|    {
23597|       |        // read in the original format
23598|       |
23599|  1.47k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  1.47k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.47k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  1.47k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 1.47k]
  |  Branch (23603:34): [True: 1.47k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  1.47k|        return true;
23608|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toImEEbRT_PKc:
23503|  1.47k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  1.47k|        auto new_chars_read = ia.get_elements(&dest);
23507|  1.47k|        chars_read += new_chars_read;
23508|  1.47k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  1.47k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 20, False: 1.45k]
  |  |  ------------------
  ------------------
23509|     20|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     20|            ++chars_read;
23512|     20|            static_cast<void>(report_eof(context));
23513|     20|            return false;
23514|     20|        }
23515|  1.45k|        return true;
23516|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter12get_elementsImEEmPT_m:
 9930|  1.47k|    {
 9931|       |#if JSON_PRECISE_STREAM_POSITION
 9932|       |        commit_lookahead();
 9933|       |#endif
 9934|  1.47k|#if !JSON_DISABLE_STREAM_BULK_SCAN
 9935|       |        // the elements are in the get area: copy them, as sgetn() does, but
 9936|       |        // without the virtual call
 9937|  1.47k|        const char* const first = streambuf_access::get_ptr(sb);
 9938|  1.47k|        const auto available = static_cast<std::size_t>(streambuf_access::get_end(sb) - first);
 9939|  1.47k|        if (JSON_HEDLEY_LIKELY(count * sizeof(T) <= available && count * sizeof(T) <= static_cast<std::size_t>((std::numeric_limits<int>::max)())))
  ------------------
  |  | 1696|  2.93k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.45k, False: 20]
  |  |  |  Branch (1696:94): [True: 1.45k, False: 20]
  |  |  |  Branch (1696:94): [True: 1.45k, False: 0]
  |  |  ------------------
  ------------------
 9940|  1.45k|        {
 9941|  1.45k|            std::memcpy(dest, first, count * sizeof(T));
 9942|  1.45k|            streambuf_access::bump(sb, static_cast<int>(count * sizeof(T)));
 9943|  1.45k|            return count * sizeof(T);
 9944|  1.45k|        }
 9945|     20|#endif
 9946|     20|        auto res = static_cast<std::size_t>(sb->sgetn(reinterpret_cast<char*>(dest), static_cast<std::streamsize>(count * sizeof(T))));
 9947|     20|        if (JSON_HEDLEY_UNLIKELY(res < count * sizeof(T)))
  ------------------
  |  | 1697|     20|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 20, False: 0]
  |  |  ------------------
  ------------------
 9948|     20|        {
 9949|     20|            is->clear(is->rdstate() | std::ios::eofbit);
 9950|     20|        }
 9951|     20|        return res;
 9952|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE13emit_unsignedImEEbT_:
23656|  1.45k|    {
23657|  1.45k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  1.45k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.45k, False: 0]
  |  |  ------------------
  ------------------
23658|  1.45k|        {
23659|  1.45k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  1.45k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  1.45k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE27bson_unsupported_type_errorEmi:
24039|    127|    {
24040|    127|        const std::string cr_str = hex_byte(static_cast<std::uint8_t>(element_type));
24041|    127|        return sax->parse_error(position, cr_str,
24042|    127|                                parse_error::create(exception_id::bson_unsupported_type, position, concat("Unsupported BSON record type 0x", cr_str), nullptr));
24043|    127|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15last_byte_errorENS1_12exception_idERKSC_PKcSP_:
24055|    344|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|    344|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|    344|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 332, False: 12]
  ------------------
24059|    344|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE3getEv:
23488|  55.0k|    {
23489|  55.0k|        ++chars_read;
23490|  55.0k|        return current = ia.get_character();
23491|  55.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter13get_characterEv:
 9909|  55.0k|    {
 9910|  55.0k|#if !JSON_DISABLE_STREAM_BULK_SCAN
 9911|       |        // the character is in the get area: step over it, as sbumpc() does
 9912|  55.0k|        const char* const next = streambuf_access::get_ptr(sb);
 9913|  55.0k|        if (JSON_HEDLEY_LIKELY(next != streambuf_access::get_end(sb)))
  ------------------
  |  | 1696|  55.0k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 50.8k, False: 4.23k]
  |  |  ------------------
  ------------------
 9914|  50.8k|        {
 9915|  50.8k|            current_in_get_area = true;
 9916|  50.8k|            streambuf_access::bump(sb, 1);
 9917|  50.8k|            return std::char_traits<char>::to_int_type(*next);
 9918|  50.8k|        }
 9919|  4.23k|        if (no_get_area)
  ------------------
  |  Branch (9919:13): [True: 0, False: 4.23k]
  ------------------
 9920|      0|        {
 9921|      0|            return get_character_no_get_area();
 9922|      0|        }
 9923|  4.23k|#endif
 9924|  4.23k|        return get_character_slow();
 9925|  4.23k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter18get_character_slowEv:
10051|  4.23k|    {
10052|  4.23k|#if !JSON_DISABLE_STREAM_BULK_SCAN
10053|       |        // the get area is exhausted (get_character() handles the other case),
10054|       |        // so sbumpc() refills it
10055|  4.23k|        save_token_segment();
10056|  4.23k|#endif
10057|       |
10058|  4.23k|        auto res = sb->sbumpc();
10059|       |        // set eof manually, as we don't use the istream interface.
10060|  4.23k|        if (JSON_HEDLEY_UNLIKELY(res == std::char_traits<char>::eof()))
  ------------------
  |  | 1697|  4.23k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 4.23k, False: 0]
  |  |  ------------------
  ------------------
10061|  4.23k|        {
10062|  4.23k|#if !JSON_DISABLE_STREAM_BULK_SCAN
10063|  4.23k|            current_in_get_area = false;
10064|  4.23k|#endif
10065|  4.23k|            is->clear(is->rdstate() | std::ios::eofbit);
10066|  4.23k|        }
10067|      0|#if !JSON_DISABLE_STREAM_BULK_SCAN
10068|      0|        else
10069|      0|        {
10070|       |            // the consumed character is at gptr() - 1, unless the streambuf
10071|       |            // has no get area and returned it from uflow()
10072|      0|            const char* const next = streambuf_access::get_ptr(sb);
10073|      0|            after_refill(res, next != nullptr && next != streambuf_access::get_begin(sb));
  ------------------
  |  Branch (10073:31): [True: 0, False: 0]
  |  Branch (10073:50): [True: 0, False: 0]
  ------------------
10074|      0|        }
10075|  4.23k|#endif
10076|  4.23k|        return res;
10077|  4.23k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapter18save_token_segmentEv:
10124|  4.23k|    {
10125|  4.23k|        if (token_segment != nullptr)
  ------------------
  |  Branch (10125:13): [True: 0, False: 4.23k]
  ------------------
10126|      0|        {
10127|      0|            token_carry.append(token_segment, streambuf_access::get_end(sb));
10128|      0|            token_segment = nullptr;
10129|      0|        }
10130|  4.23k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE16position_bindingD2Ev:
19134|  5.04k|        {
19135|  5.04k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 5.04k, False: 0]
  ------------------
19136|  5.04k|            {
19137|  5.04k|                parser->set_reserve_state(saved);
19138|  5.04k|            }
19139|  5.04k|        }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEED2Ev:
19002|  5.04k|    ~binary_reader() = default;
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_20input_stream_adapterEED2Ev:
17829|  5.04k|    ~json_sax_dom_binary_parser() = default;
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterERNSt3__113basic_istreamIcNS2_11char_traitsIcEEEE:
10871|  5.04k|{
10872|  5.04k|    if (stream.rdbuf() == nullptr)
  ------------------
  |  Branch (10872:9): [True: 0, False: 5.04k]
  ------------------
10873|      0|    {
10874|      0|        JSON_THROW(parse_error::create(exception_id::syntax_error, 0, empty_input_message(), nullptr));
  ------------------
  |  | 2618|      0|    #define JSON_THROW(exception) throw exception
  ------------------
10875|      0|    }
10876|  5.04k|    return input_stream_adapter(stream);
10877|  5.04k|}
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapterC2ERNSt3__113basic_istreamIcNS3_11char_traitsIcEEEE:
 9806|  5.04k|        : is(&i), sb(i.rdbuf())
 9807|  5.04k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail20input_stream_adapterD2Ev:
 9785|  10.0k|    {
 9786|       |        // clear stream flags; we use underlying streambuf I/O, do not
 9787|       |        // maintain ifstream flags, except eof
 9788|  10.0k|        if (is != nullptr)
  ------------------
  |  Branch (9788:13): [True: 5.04k, False: 5.04k]
  ------------------
 9789|  5.04k|        {
 9790|       |#if JSON_PRECISE_STREAM_POSITION
 9791|       |            // consume the character last returned by get_character() unless it
 9792|       |            // was given back with release_lookahead()
 9793|       |            commit_lookahead();
 9794|       |#endif
 9795|       |            // only call clear() if there is something to clear: it throws
 9796|       |            // std::ios_base::failure if the stream has exceptions() enabled
 9797|       |            // for a state bit that remains set, and a destructor must not throw
 9798|  5.04k|            if ((is->rdstate() & ~std::ios::eofbit) != 0)
  ------------------
  |  Branch (9798:17): [True: 0, False: 5.04k]
  ------------------
 9799|      0|            {
 9800|      0|                is->clear(is->rdstate() & std::ios::eofbit);
 9801|      0|            }
 9802|  5.04k|        }
 9803|  10.0k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9from_bsonINS2_21__list_const_iteratorIhPvEESI_TnNS2_9enable_ifIXsr6detail14can_compare_neIT_T0_EE5valueEiE4typeELi0EEESE_SK_SL_bbNS0_6detail15error_handler_tE:
47045|  5.04k|    {
47046|  5.04k|        return from_binary_impl(detail::input_adapter(std::move(first), std::move(last)), input_format_t::bson, strict, allow_exceptions, error_handler);
47047|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE16from_binary_implINS0_6detail22iterator_input_adapterINS2_21__list_const_iteratorIhPvEESK_EEEESE_T_NSG_14input_format_tEbbNSG_15error_handler_tENSG_18cbor_tag_handler_tE:
46575|  5.04k|    {
46576|  5.04k|        basic_json result;
46577|  5.04k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  5.04k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  5.04k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 0, False: 5.04k]
  ------------------
46580|      0|        {
46581|      0|            result = value_t::discarded;
46582|      0|        }
46583|  5.04k|        return result;
46584|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEEC2ERSG_bPNS1_5lexerISG_SL_Lb0EEE:
17821|  5.04k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  5.04k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEEC2EOSL_NS1_14input_format_tENS1_15error_handler_tE:
18992|  5.04k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  5.04k|    {
18994|  5.04k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE9sax_parseEPSN_bNS1_18cbor_tag_handler_tE:
19017|  5.04k|    {
19018|  5.04k|        sax = sax_;
19019|  5.04k|        container_stack.clear();
19020|  5.04k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  5.04k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  5.04k|        bool result = false;
19024|       |
19025|  5.04k|        switch (input_format)
19026|  5.04k|        {
19027|  5.04k|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 5.04k, False: 0]
  ------------------
19028|  5.04k|                result = parse_bson_internal();
19029|  5.04k|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 5.04k]
  ------------------
19032|      0|                result = parse_cbor_internal(tag_handler);
19033|      0|                break;
19034|       |
19035|      0|            case input_format_t::msgpack:
  ------------------
  |  Branch (19035:13): [True: 0, False: 5.04k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|      0|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 0, False: 5.04k]
  ------------------
19040|      0|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 0, False: 5.04k]
  ------------------
19041|      0|                result = parse_ubjson_internal();
19042|      0|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 5.04k]
  ------------------
19045|      0|                result = parse_bon8_internal();
19046|      0|                break;
19047|       |
19048|      0|            case input_format_t::json: // LCOV_EXCL_LINE
  ------------------
  |  Branch (19048:13): [True: 0, False: 5.04k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 5.04k]
  ------------------
19050|      0|                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (19050:17): [Folded, False: 0]
  ------------------
19051|  5.04k|        }
19052|       |
19053|       |        // BON8: a string ends at the first byte that cannot continue it. If
19054|       |        // that byte follows the value, the reader has already taken it from
19055|       |        // the input and holds it in bon8_pushback. Without the end-of-input
19056|       |        // check below it would be dropped, and the next read would start
19057|       |        // behind it, so report the missing 0xFF instead.
19058|  3.29k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 3.29k, False: 0]
  |  Branch (19058:23): [True: 0, False: 3.29k]
  |  Branch (19058:34): [True: 0, False: 0]
  |  Branch (19058:74): [True: 0, False: 0]
  ------------------
19059|      0|        {
19060|      0|            get_bon8();
19061|      0|            return last_byte_error(exception_id::unexpected_end_of_input, "string at the end of the value is not terminated by 0xFF", "value", "");
19062|      0|        }
19063|       |
19064|       |        // strict mode: next byte must be EOF
19065|  3.29k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 3.29k, False: 0]
  |  Branch (19065:23): [True: 3.29k, False: 0]
  ------------------
19066|  3.29k|        {
19067|  3.29k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 0, False: 3.29k]
  |  Branch (19067:59): [True: 0, False: 3.29k]
  ------------------
19068|      0|            {
19069|      0|                get_ignore_noop();
19070|      0|            }
19071|  3.29k|            else if (input_format == input_format_t::bon8)
  ------------------
  |  Branch (19071:22): [True: 0, False: 3.29k]
  ------------------
19072|      0|            {
19073|       |                // a string that ends a container hands back the byte after it
19074|      0|                get_bon8();
19075|      0|            }
19076|  3.29k|            else
19077|  3.29k|            {
19078|  3.29k|                get();
19079|  3.29k|            }
19080|       |
19081|  3.29k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  3.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 12, False: 3.28k]
  |  |  ------------------
  ------------------
19082|     12|            {
19083|     12|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|     12|            }
19085|  3.29k|        }
19086|       |
19087|  3.28k|        return result;
19088|  3.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE12bound_parserEPSN_NS4_17integral_constantIbLb1EEE:
19096|  5.04k|    {
19097|  5.04k|        return s;
19098|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE16position_bindingC2EPNS1_24json_sax_dom_error_stateEPKm:
19119|  5.04k|            : parser(parser_), saved()
19120|  5.04k|        {
19121|  5.04k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 5.04k, False: 0]
  ------------------
19122|  5.04k|            {
19123|  5.04k|                saved = parser->get_reserve_state();
19124|  5.04k|                parser->set_input_position(position);
19125|  5.04k|            }
19126|  5.04k|        }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE19parse_bson_internalEv:
19357|  5.04k|    {
19358|  5.04k|        if (JSON_HEDLEY_UNLIKELY(!open_bson_document(/*is_object*/true)))
  ------------------
  |  | 1697|  5.04k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.04k]
  |  |  ------------------
  ------------------
19359|      0|        {
19360|      0|            return false;
19361|      0|        }
19362|       |
19363|       |        // the key currently being read; hoisted out of the loop so that its
19364|       |        // capacity is reused across elements and across nesting levels
19365|  5.04k|        string_t key;
19366|       |
19367|  50.3k|        while (true)
  ------------------
  |  Branch (19367:16): [True: 48.6k, Folded]
  ------------------
19368|  48.6k|        {
19369|  48.6k|            const auto element_type = get();
19370|       |
19371|  48.6k|            if (element_type == 0) // end of the innermost document
  ------------------
  |  Branch (19371:17): [True: 8.18k, False: 40.4k]
  ------------------
19372|  8.18k|            {
19373|       |                // a copy, not a reference: it must stay valid across the
19374|       |                // pop_back() inside leave_container() below, which destroys
19375|       |                // the container_stack element it would otherwise alias
19376|  8.18k|                const container_frame top = container_stack.back();
19377|       |
19378|  8.18k|                if (JSON_HEDLEY_UNLIKELY(!check_bson_document_size(top.start_position, top.declared_size)))
  ------------------
  |  | 1697|  8.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 8.18k]
  |  |  ------------------
  ------------------
19379|      0|                {
19380|      0|                    return false;
19381|      0|                }
19382|       |
19383|  8.18k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|  8.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 8.18k]
  |  |  ------------------
  ------------------
19384|      0|                {
19385|      0|                    return false;
19386|      0|                }
19387|       |                // the document begun here is complete once it is not inside one
19388|  8.18k|                if (container_stack.empty())
  ------------------
  |  Branch (19388:21): [True: 3.29k, False: 4.88k]
  ------------------
19389|  3.29k|                {
19390|  3.29k|                    return true;
19391|  3.29k|                }
19392|  4.88k|                continue;
19393|  8.18k|            }
19394|       |
19395|  40.4k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("element list")))
  ------------------
  |  | 1697|  40.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.4k]
  |  |  ------------------
  ------------------
19396|      0|            {
19397|      0|                return false;
19398|      0|            }
19399|       |
19400|       |            // an element needs at least its name's terminator, and the
19401|       |            // document its own terminator, within the declared size
19402|  40.4k|            if (JSON_HEDLEY_UNLIKELY(chars_read + 2 > container_stack.back().end_position))
  ------------------
  |  | 1697|  40.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 16, False: 40.4k]
  |  |  ------------------
  ------------------
19403|     16|            {
19404|     16|                return bson_document_size_error("document size ", container_stack.back().declared_size, " is too small for its content");
19405|     16|            }
19406|       |
19407|  40.4k|            const std::size_t element_type_parse_position = chars_read;
19408|       |            // an array's elements are named "0", "1", ... in the wire format,
19409|       |            // and those names are not passed on: they are skipped, and only
19410|       |            // checked if error_handler_t::strict must reject ill-formed UTF-8
19411|  40.4k|            const bool is_object = container_stack.back().is_object;
19412|  40.4k|            key.clear();
19413|  40.4k|            if (JSON_HEDLEY_UNLIKELY(!(is_object || error_handler != error_handler_t::strict
  ------------------
  |  | 1697|   137k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.4k]
  |  |  |  Branch (1697:94): [True: 24.5k, False: 15.8k]
  |  |  |  Branch (1697:94): [True: 15.8k, False: 0]
  |  |  ------------------
  ------------------
19414|  40.4k|                                       ? get_bson_cstr(key, is_object)
19415|  40.4k|                                       : check_bson_cstr(key, std::integral_constant<bool, bulk_scan> {}))))
19416|      0|            {
19417|      0|                return false;
19418|      0|            }
19419|       |
19420|  40.4k|            if (is_object && !sax->key(key))
  ------------------
  |  Branch (19420:17): [True: 23.6k, False: 16.8k]
  |  Branch (19420:30): [True: 0, False: 23.6k]
  ------------------
19421|      0|            {
19422|      0|                return false;
19423|      0|            }
19424|       |
19425|  40.4k|            if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_internal(element_type, element_type_parse_position)))
  ------------------
  |  | 1697|  40.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.4k]
  |  |  ------------------
  ------------------
19426|      0|            {
19427|      0|                return false;
19428|      0|            }
19429|  40.4k|        }
19430|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE18open_bson_documentEb:
19307|  10.7k|    {
19308|       |        // recorded before the size prefix is read, because
19309|       |        // check_bson_document_size() measures the document from here
19310|  10.7k|        const std::size_t document_start = chars_read;
19311|  10.7k|        std::int32_t document_size{};
19312|  10.7k|        if (!get_number<std::int32_t, true>(document_size))
  ------------------
  |  Branch (19312:13): [True: 0, False: 10.7k]
  ------------------
19313|      0|        {
19314|      0|            return false;
19315|      0|        }
19316|       |
19317|       |        // the smallest document is the size prefix and the terminator
19318|  10.7k|        if (JSON_HEDLEY_UNLIKELY(document_size < 5))
  ------------------
  |  | 1697|  10.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 34, False: 10.7k]
  |  |  ------------------
  ------------------
19319|     34|        {
19320|     34|            return bson_document_size_error("document size ", document_size, " is less than 5");
19321|     34|        }
19322|       |
19323|       |        // the declared size bounds where the document ends: an embedded
19324|       |        // document must end before the terminator of the document that contains it
19325|  10.7k|        const auto unsigned_size = static_cast<std::size_t>(document_size);
19326|  10.7k|        const std::size_t document_end = unsigned_size > (std::numeric_limits<std::size_t>::max)() - document_start
  ------------------
  |  Branch (19326:42): [True: 0, False: 10.7k]
  ------------------
19327|  10.7k|                                         ? (std::numeric_limits<std::size_t>::max)()
19328|  10.7k|                                         : document_start + unsigned_size;
19329|  10.7k|        if (JSON_HEDLEY_UNLIKELY(!container_stack.empty() && document_end >= container_stack.back().end_position))
  ------------------
  |  | 1697|  16.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 39, False: 10.7k]
  |  |  |  Branch (1697:94): [True: 5.71k, False: 5.04k]
  |  |  |  Branch (1697:94): [True: 39, False: 5.67k]
  |  |  ------------------
  ------------------
19330|     39|        {
19331|     39|            return bson_document_size_error("document size ", document_size, " exceeds the size of the enclosing document");
19332|     39|        }
19333|       |
19334|  10.7k|        if (JSON_HEDLEY_UNLIKELY(!enter_container(is_object, detail::unknown_size())))
  ------------------
  |  | 1697|  10.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.7k]
  |  |  ------------------
  ------------------
19335|      0|        {
19336|      0|            return false;
19337|      0|        }
19338|       |
19339|  10.7k|        container_frame& frame = container_stack.back();
19340|  10.7k|        frame.start_position = document_start;
19341|  10.7k|        frame.end_position = document_end;
19342|  10.7k|        frame.declared_size = document_size;
19343|  10.7k|        return true;
19344|  10.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE10get_numberIiLb1EEEbRT_:
23596|  17.4k|    {
23597|       |        // read in the original format
23598|       |
23599|  17.4k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  17.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 17.4k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  17.4k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 17.4k]
  |  Branch (23603:34): [True: 17.4k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  17.4k|        return true;
23608|  17.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE6get_toIiEEbRT_PKc:
23503|  17.4k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  17.4k|        auto new_chars_read = ia.get_elements(&dest);
23507|  17.4k|        chars_read += new_chars_read;
23508|  17.4k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  17.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 113, False: 17.3k]
  |  |  ------------------
  ------------------
23509|    113|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    113|            ++chars_read;
23512|    113|            static_cast<void>(report_eof(context));
23513|    113|            return false;
23514|    113|        }
23515|  17.3k|        return true;
23516|  17.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIiEEmPT_m:
10326|  17.4k|    {
10327|  17.4k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  17.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIiEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  17.4k|    {
10407|  17.4k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  86.9k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 69.6k, False: 17.3k]
  ------------------
10409|  69.6k|        {
10410|  69.6k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  69.6k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 69.5k, False: 113]
  |  |  ------------------
  ------------------
10411|  69.5k|            {
10412|  69.5k|                ptr[read_index] = static_cast<char>(*current);
10413|  69.5k|                std::advance(current, 1);
10414|  69.5k|            }
10415|    113|            else
10416|    113|            {
10417|    113|                return read_index;
10418|    113|            }
10419|  69.6k|        }
10420|  17.3k|        return count * sizeof(T);
10421|  17.4k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE10report_eofEPKc:
23991|  1.29k|    {
23992|  1.29k|        return sax->parse_error(chars_read, "<end of file>",
23993|  1.29k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  1.29k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE17exception_messageERKSC_SQ_:
24102|  1.63k|    {
24103|  1.63k|        std::string error_msg = "syntax error while parsing ";
24104|  1.63k|        error_msg += input_format_name(input_format);
24105|       |
24106|  1.63k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  1.63k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE15enter_containerEbmm:
19201|  10.6k|    {
19202|  10.6k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|  21.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.6k]
  |  |  |  Branch (1697:94): [True: 7.19k, False: 3.49k]
  |  |  ------------------
  ------------------
19203|      0|        {
19204|      0|            return false;
19205|      0|        }
19206|       |
19207|  10.6k|        container_stack.emplace_back(len, is_object, type_marker);
19208|  10.6k|        return true;
19209|  10.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12start_objectEm:
17878|  7.19k|    {
17879|  7.19k|        ref_stack.push_back(handle_value(BasicJsonType::value_t::object));
17880|       |
17881|       |#if JSON_DIAGNOSTIC_POSITIONS
17882|       |        // Ensure this is after the call to handle_value to ensure correct start position.
17883|       |        diagnostic_positions::set_container_start(*ref_stack.back(), m_lexer_ref);
17884|       |#endif
17885|       |
17886|  7.19k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|  7.19k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueINS1_7value_tEEEPSG_OT_:
17961|  10.6k|    {
17962|  10.6k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 5.01k, False: 5.67k]
  ------------------
17963|  5.01k|        {
17964|  5.01k|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|  5.01k|            return &root;
17971|  5.01k|        }
17972|       |
17973|  5.67k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  5.67k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 2.16k, False: 3.51k]
  |  Branch (17973:9): [True: 3.51k, False: 0]
  |  Branch (17973:9): [True: 5.67k, False: 0]
  ------------------
17974|       |
17975|  5.67k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 2.16k, False: 3.51k]
  ------------------
17976|  2.16k|        {
17977|  2.16k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  2.16k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  2.16k|        }
17985|       |
17986|  3.51k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.51k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 3.51k, False: 0]
  ------------------
17987|  3.51k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  3.51k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 3.51k, False: 0]
  ------------------
17988|  3.51k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  3.51k|        return object_element;
17995|  3.51k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20check_container_sizeINS1_26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEENS1_22iterator_input_adapterINS5_21__list_const_iteratorIhPvEESL_EEEESH_EEbRT_mPKcPT0_:
16469|  10.6k|{
16470|  10.6k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|  10.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.6k]
  |  |  |  Branch (1697:94): [True: 0, False: 10.6k]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
16471|      0|    {
16472|      0|        return container_too_large_error(sax, len, kind, ref);
16473|      0|    }
16474|  10.6k|    return true;
16475|  10.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE11start_arrayEm:
17915|  3.49k|    {
17916|  3.49k|        ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
17917|       |
17918|       |#if JSON_DIAGNOSTIC_POSITIONS
17919|       |        // Ensure this is after the call to handle_value to ensure correct start position.
17920|       |        diagnostic_positions::set_container_start(*ref_stack.back(), m_lexer_ref);
17921|       |#endif
17922|       |
17923|  3.49k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|  3.49k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.49k]
  |  |  ------------------
  ------------------
17924|      0|        {
17925|      0|            return false;
17926|      0|        }
17927|       |
17928|  3.49k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 0, False: 3.49k]
  ------------------
17929|      0|        {
17930|      0|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|      0|        }
17932|       |
17933|  3.49k|        return true;
17934|  3.49k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE15container_frameC2Embm:
19167|  10.6k|            : remaining(remaining_), type_marker(type_marker_), is_object(is_object_) {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE24check_bson_document_sizeEmi:
19294|  8.18k|    {
19295|  8.18k|        if (JSON_HEDLEY_UNLIKELY(static_cast<std::size_t>(document_size) != chars_read - document_start))
  ------------------
  |  | 1697|  8.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 62, False: 8.12k]
  |  |  ------------------
  ------------------
19296|     62|        {
19297|     62|            return bson_document_size_error(document_size, chars_read - document_start);
19298|     62|        }
19299|  8.12k|        return true;
19300|  8.18k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE24bson_document_size_errorEim:
24027|     62|    {
24028|     62|        return last_byte_error(exception_id::unexpected_byte, concat("document size ", std::to_string(document_size), " does not match the number of bytes read (", std::to_string(bytes_read), ")"), "document");
24029|     62|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE15leave_containerEv:
19233|  8.12k|    {
19234|  8.12k|        const bool is_object = container_stack.back().is_object;
19235|  8.12k|        container_stack.pop_back();
19236|  8.12k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 5.31k, False: 2.80k]
  ------------------
19237|  8.12k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE10end_objectEv:
17901|  5.31k|    {
17902|  5.31k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  5.31k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 5.31k, False: 0]
  ------------------
17903|  5.31k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  5.31k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 5.31k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|  5.31k|        ref_stack.back()->set_parents();
17910|  5.31k|        ref_stack.pop_back();
17911|  5.31k|        return true;
17912|  5.31k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE9end_arrayEv:
17937|  2.80k|    {
17938|  2.80k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  2.80k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 2.80k, False: 0]
  ------------------
17939|  2.80k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|  2.80k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 2.80k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|  2.80k|        ref_stack.back()->set_parents();
17946|  2.80k|        ref_stack.pop_back();
17947|  2.80k|        return true;
17948|  2.80k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE12unexpect_eofEPKc:
23974|   284k|    {
23975|   284k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|   284k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.08k, False: 283k]
  |  |  ------------------
  ------------------
23976|  1.08k|        {
23977|  1.08k|            return report_eof(context);
23978|  1.08k|        }
23979|   283k|        return true;
23980|   284k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE24bson_document_size_errorEPKciSQ_:
24033|     89|    {
24034|     89|        return last_byte_error(exception_id::unexpected_byte, concat(prefix, std::to_string(document_size), suffix), "document");
24035|     89|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE13get_bson_cstrERSC_b:
19444|  39.6k|    {
19445|  39.6k|        if (get_bson_cstr_bulk(result, store, std::integral_constant<bool, bulk_scan> {}))
  ------------------
  |  Branch (19445:13): [True: 0, False: 39.6k]
  ------------------
19446|      0|        {
19447|      0|            return !store || check_string_utf8(result, "key");
  ------------------
  |  Branch (19447:20): [True: 0, False: 0]
  |  Branch (19447:30): [True: 0, False: 0]
  ------------------
19448|      0|        }
19449|       |
19450|  39.6k|        auto out = std::back_inserter(result);
19451|   244k|        while (true)
  ------------------
  |  Branch (19451:16): [True: 244k, Folded]
  ------------------
19452|   244k|        {
19453|   244k|            get();
19454|   244k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("cstring")))
  ------------------
  |  | 1697|   244k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 244k]
  |  |  ------------------
  ------------------
19455|      0|            {
19456|      0|                return false;
19457|      0|            }
19458|   244k|            if (current == 0x00)
  ------------------
  |  Branch (19458:17): [True: 39.5k, False: 204k]
  ------------------
19459|  39.5k|            {
19460|  39.5k|                return !store || check_string_utf8(result, "key");
  ------------------
  |  Branch (19460:24): [True: 15.8k, False: 23.6k]
  |  Branch (19460:34): [True: 23.6k, False: 0]
  ------------------
19461|  39.5k|            }
19462|   204k|            *out++ = static_cast<typename string_t::value_type>(current);
19463|   204k|        }
19464|  39.6k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE18get_bson_cstr_bulkERSC_bNS4_17integral_constantIbLb0EEE:
19536|  39.6k|    {
19537|  39.6k|        return false;
19538|  39.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE17check_string_utf8ERSC_PKc:
23811|  25.7k|    {
23812|  25.7k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 25.7k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|  25.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE3keyERSC_:
17890|  23.6k|    {
17891|  23.6k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  23.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 23.6k, False: 0]
  ------------------
17892|  23.6k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  23.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 23.6k, False: 0]
  ------------------
17893|       |
17894|       |        // add null at the given key and store the reference for later; the
17895|       |        // key is moved, as the lexer starts the next token with reset()
17896|  23.6k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|  23.6k|        return true;
17898|  23.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE27parse_bson_element_internalEmm:
19649|  39.5k|    {
19650|  39.5k|        switch (element_type)
19651|  39.5k|        {
19652|  1.85k|            case 0x01: // double
  ------------------
  |  Branch (19652:13): [True: 1.85k, False: 37.6k]
  ------------------
19653|  1.85k|            {
19654|  1.85k|                double number{};
19655|  1.85k|                return get_number<double, true>(number) && emit_float(number);
  ------------------
  |  Branch (19655:24): [True: 1.82k, False: 32]
  |  Branch (19655:60): [True: 1.82k, False: 0]
  ------------------
19656|      0|            }
19657|       |
19658|  2.23k|            case 0x02: // string
  ------------------
  |  Branch (19658:13): [True: 2.23k, False: 37.2k]
  ------------------
19659|  2.23k|            {
19660|  2.23k|                std::int32_t len{};
19661|  2.23k|                string_t value;
19662|  2.23k|                return get_number<std::int32_t, true>(len) && get_bson_string(len, value) && sax->string(value);
  ------------------
  |  Branch (19662:24): [True: 2.21k, False: 15]
  |  Branch (19662:63): [True: 2.05k, False: 157]
  |  Branch (19662:94): [True: 2.05k, False: 0]
  ------------------
19663|      0|            }
19664|       |
19665|  2.20k|            case 0x03: // object
  ------------------
  |  Branch (19665:13): [True: 2.20k, False: 37.3k]
  ------------------
19666|  2.20k|            {
19667|  2.20k|                return open_bson_document(/*is_object*/true);
19668|      0|            }
19669|       |
19670|  3.53k|            case 0x04: // array
  ------------------
  |  Branch (19670:13): [True: 3.53k, False: 35.9k]
  ------------------
19671|  3.53k|            {
19672|  3.53k|                return open_bson_document(/*is_object*/false);
19673|      0|            }
19674|       |
19675|  2.88k|            case 0x05: // binary
  ------------------
  |  Branch (19675:13): [True: 2.88k, False: 36.6k]
  ------------------
19676|  2.88k|            {
19677|  2.88k|                std::int32_t len{};
19678|  2.88k|                binary_t value;
19679|  2.88k|                return get_number<std::int32_t, true>(len) && get_bson_binary(len, value) && sax->binary(value);
  ------------------
  |  Branch (19679:24): [True: 2.86k, False: 15]
  |  Branch (19679:63): [True: 2.63k, False: 229]
  |  Branch (19679:94): [True: 2.63k, False: 0]
  ------------------
19680|      0|            }
19681|       |
19682|  3.29k|            case 0x08: // boolean
  ------------------
  |  Branch (19682:13): [True: 3.29k, False: 36.2k]
  ------------------
19683|  3.29k|            {
19684|  3.29k|                std::uint8_t value{};
19685|  3.29k|                return get_number<std::uint8_t>(value) && sax->boolean(value != 0);
  ------------------
  |  Branch (19685:24): [True: 3.28k, False: 8]
  |  Branch (19685:59): [True: 3.28k, False: 0]
  ------------------
19686|      0|            }
19687|       |
19688|  19.9k|            case 0x0A: // null
  ------------------
  |  Branch (19688:13): [True: 19.9k, False: 19.5k]
  ------------------
19689|  19.9k|            {
19690|  19.9k|                return sax->null();
19691|      0|            }
19692|       |
19693|  1.17k|            case 0x10: // int32
  ------------------
  |  Branch (19693:13): [True: 1.17k, False: 38.3k]
  ------------------
19694|  1.17k|            {
19695|  1.17k|                std::int32_t value{};
19696|  1.17k|                return get_number<std::int32_t, true>(value) && emit_signed(value);
  ------------------
  |  Branch (19696:24): [True: 1.16k, False: 12]
  |  Branch (19696:65): [True: 1.16k, False: 0]
  ------------------
19697|      0|            }
19698|       |
19699|    772|            case 0x12: // int64
  ------------------
  |  Branch (19699:13): [True: 772, False: 38.7k]
  ------------------
19700|    772|            {
19701|    772|                std::int64_t value{};
19702|    772|                return get_number<std::int64_t, true>(value) && emit_signed(value);
  ------------------
  |  Branch (19702:24): [True: 752, False: 20]
  |  Branch (19702:65): [True: 752, False: 0]
  ------------------
19703|      0|            }
19704|       |
19705|  1.47k|            case 0x11: // uint64
  ------------------
  |  Branch (19705:13): [True: 1.47k, False: 38.0k]
  ------------------
19706|  1.47k|            {
19707|  1.47k|                std::uint64_t value{};
19708|  1.47k|                return get_number<std::uint64_t, true>(value) && emit_unsigned(value);
  ------------------
  |  Branch (19708:24): [True: 1.45k, False: 20]
  |  Branch (19708:66): [True: 1.45k, False: 0]
  ------------------
19709|      0|            }
19710|       |
19711|    127|            default: // anything else is not supported (yet)
  ------------------
  |  Branch (19711:13): [True: 127, False: 39.3k]
  ------------------
19712|    127|            {
19713|    127|                return bson_unsupported_type_error(element_type_parse_position, element_type);
19714|      0|            }
19715|  39.5k|        }
19716|  39.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE10get_numberIdLb1EEEbRT_:
23596|  1.85k|    {
23597|       |        // read in the original format
23598|       |
23599|  1.85k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  1.85k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.85k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  1.85k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 1.85k]
  |  Branch (23603:34): [True: 1.85k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  1.85k|        return true;
23608|  1.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE6get_toIdEEbRT_PKc:
23503|  1.85k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  1.85k|        auto new_chars_read = ia.get_elements(&dest);
23507|  1.85k|        chars_read += new_chars_read;
23508|  1.85k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  1.85k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 32, False: 1.82k]
  |  |  ------------------
  ------------------
23509|     32|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     32|            ++chars_read;
23512|     32|            static_cast<void>(report_eof(context));
23513|     32|            return false;
23514|     32|        }
23515|  1.82k|        return true;
23516|  1.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIdEEmPT_m:
10326|  1.85k|    {
10327|  1.85k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  1.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIdEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  1.85k|    {
10407|  1.85k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  16.4k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 14.6k, False: 1.82k]
  ------------------
10409|  14.6k|        {
10410|  14.6k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  14.6k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 14.6k, False: 32]
  |  |  ------------------
  ------------------
10411|  14.6k|            {
10412|  14.6k|                ptr[read_index] = static_cast<char>(*current);
10413|  14.6k|                std::advance(current, 1);
10414|  14.6k|            }
10415|     32|            else
10416|     32|            {
10417|     32|                return read_index;
10418|     32|            }
10419|  14.6k|        }
10420|  1.82k|        return count * sizeof(T);
10421|  1.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE10emit_floatIdEEbT_:
23682|  1.82k|    {
23683|  1.82k|        const auto result = static_cast<number_float_t>(number);
23684|  1.82k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  3.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.82k]
  |  |  |  Branch (1697:94): [True: 1.76k, False: 57]
  |  |  |  Branch (1697:94): [True: 0, False: 1.76k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  1.82k|        return sax->number_float(result, no_source);
23689|  1.82k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE16get_token_stringEv:
24091|    356|    {
24092|    356|        return hex_byte(static_cast<std::uint8_t>(current));
24093|    356|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12number_floatEdRKSC_:
17856|  1.82k|    {
17857|  1.82k|        handle_value(val);
17858|  1.82k|        return true;
17859|  1.82k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueIRdEEPSG_OT_:
17961|  1.82k|    {
17962|  1.82k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 1.82k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  1.82k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.82k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 568, False: 1.25k]
  |  Branch (17973:9): [True: 1.25k, False: 0]
  |  Branch (17973:9): [True: 1.82k, False: 0]
  ------------------
17974|       |
17975|  1.82k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 568, False: 1.25k]
  ------------------
17976|    568|        {
17977|    568|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    568|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    568|        }
17985|       |
17986|  1.25k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.25k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.25k, False: 0]
  ------------------
17987|  1.25k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.25k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.25k, False: 0]
  ------------------
17988|  1.25k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.25k|        return object_element;
17995|  1.25k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE15get_bson_stringIiEEbT_RSC_:
19553|  2.21k|    {
19554|  2.21k|        if (JSON_HEDLEY_UNLIKELY(len < 1))
  ------------------
  |  | 1697|  2.21k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 38, False: 2.17k]
  |  |  ------------------
  ------------------
19555|     38|        {
19556|     38|            return bson_length_error("string length must be at least 1, is ", len, "string");
19557|     38|        }
19558|       |
19559|  2.17k|        if (JSON_HEDLEY_UNLIKELY(!get_string(len - static_cast<NumberType>(1), result)))
  ------------------
  |  | 1697|  2.17k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.17k]
  |  |  ------------------
  ------------------
19560|      0|        {
19561|      0|            return false;
19562|      0|        }
19563|       |
19564|  2.17k|        if (JSON_HEDLEY_UNLIKELY(get() != 0x00))
  ------------------
  |  | 1697|  2.17k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 34, False: 2.14k]
  |  |  ------------------
  ------------------
19565|     34|        {
19566|     34|            return last_byte_error(exception_id::unexpected_byte, "BSON string is not null-terminated", "string");
19567|     34|        }
19568|       |
19569|  2.14k|        return check_string_utf8(result, "string");
19570|  2.17k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE17bson_length_errorIiEEbPKcT_SR_:
24021|    147|    {
24022|    147|        return last_byte_error(exception_id::unexpected_byte, concat(prefix, std::to_string(len)), context);
24023|    147|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE10get_stringIiEEbT_RSC_:
23767|  2.17k|    {
23768|       |        // Strings are taken as is by default: none of CBOR (RFC 8949 §3.1
23769|       |        // leaves the choice to the decoder), MessagePack (whose spec
23770|       |        // explicitly allows a str object to contain an invalid byte
23771|       |        // sequence), UBJSON, BJData, or BSON requires a decoder to reject
23772|       |        // ill-formed UTF-8. Checking (and, with @ref error_handler_t::strict,
23773|       |        // rejecting, or with `replace`/`ignore`, sanitizing) is opt-in via
23774|       |        // @ref error_handler, applied by @ref check_string_utf8 at the call
23775|       |        // site to the whole string or, for an indefinite-length CBOR string,
23776|       |        // to each chunk on its own (RFC 8949, Section 3.2.3).
23777|  2.17k|        return get_bytes(len, "string", result);
23778|  2.17k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE9get_bytesIiSC_EEbT_PKcRT0_:
23893|  2.17k|    {
23894|       |        // a string that is in the block of input as a whole is appended from
23895|       |        // it, without the zero-filling resize() below
23896|  2.17k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 2.17k]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|  2.17k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 2.17k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  2.17k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  2.92k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 834, False: 2.09k]
  ------------------
23906|    834|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|    834|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 787, False: 47]
  ------------------
23910|    834|                                       ? static_cast<std::size_t>(len)
23911|    834|                                       : chunk_size;
23912|    834|            const std::size_t old_size = result.size();
23913|    834|            result.resize(old_size + wanted);
23914|       |            // resize() is required to make size() exactly old_size + wanted;
23915|       |            // that is the room get_elements() is allowed to write into
23916|    834|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|    834|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 834, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|    834|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|    834|            chars_read += bytes_read;
23921|    834|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|    834|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 85, False: 749]
  |  |  ------------------
  ------------------
23922|     85|            {
23923|       |                // premature end of input: shrink to what was actually read and
23924|       |                // report the failure at the first missing byte (same position
23925|       |                // accounting as get_to() for partial number reads)
23926|     85|                result.resize(old_size + bytes_read);
23927|     85|                ++chars_read;
23928|     85|                current = char_traits<char_type>::eof();
23929|     85|                return unexpect_eof(context);
23930|     85|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|    749|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|    749|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 749, False: 0]
  ------------------
23933|    749|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|    749|        }
23935|  2.09k|        return true;
23936|  2.17k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE17append_from_blockIiSC_EEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  2.17k|    {
23965|  2.17k|        return false;
23966|  2.17k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIcEEmPT_m:
10326|    834|    {
10327|    834|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|    834|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIcEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|    834|    {
10407|    834|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  12.5k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 11.8k, False: 749]
  ------------------
10409|  11.8k|        {
10410|  11.8k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  11.8k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 11.7k, False: 85]
  |  |  ------------------
  ------------------
10411|  11.7k|            {
10412|  11.7k|                ptr[read_index] = static_cast<char>(*current);
10413|  11.7k|                std::advance(current, 1);
10414|  11.7k|            }
10415|     85|            else
10416|     85|            {
10417|     85|                return read_index;
10418|     85|            }
10419|  11.8k|        }
10420|    749|        return count * sizeof(T);
10421|    834|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE6stringERSC_:
17862|  2.05k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|  2.05k|        handle_value(std::move(val));
17866|  2.05k|        return true;
17867|  2.05k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueISC_EEPSG_OT_:
17961|  2.05k|    {
17962|  2.05k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 2.05k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  2.05k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  2.05k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 943, False: 1.11k]
  |  Branch (17973:9): [True: 1.11k, False: 0]
  |  Branch (17973:9): [True: 2.05k, False: 0]
  ------------------
17974|       |
17975|  2.05k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 943, False: 1.11k]
  ------------------
17976|    943|        {
17977|    943|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    943|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    943|        }
17985|       |
17986|  1.11k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.11k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.11k, False: 0]
  ------------------
17987|  1.11k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.11k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.11k, False: 0]
  ------------------
17988|  1.11k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.11k|        return object_element;
17995|  1.11k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE15get_bson_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
19583|  2.86k|    {
19584|  2.86k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  2.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 35, False: 2.83k]
  |  |  ------------------
  ------------------
19585|     35|        {
19586|     35|            return bson_length_error("byte array length cannot be negative, is ", len, "binary");
19587|     35|        }
19588|       |
19589|       |        // All BSON binary values have a subtype
19590|  2.83k|        std::uint8_t subtype{};
19591|  2.83k|        if (JSON_HEDLEY_UNLIKELY(!get_number<std::uint8_t>(subtype)))
  ------------------
  |  | 1697|  2.83k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.83k]
  |  |  ------------------
  ------------------
19592|      0|        {
19593|      0|            return false;
19594|      0|        }
19595|  2.83k|        result.set_subtype(subtype);
19596|       |
19597|       |        // the "old binary" subtype 0x02 starts with an int32 that repeats the
19598|       |        // size of the payload following it; the payload does not include it
19599|  2.83k|        if (subtype == 0x02)
  ------------------
  |  Branch (19599:13): [True: 397, False: 2.43k]
  ------------------
19600|    397|        {
19601|    397|            return get_bson_old_binary(len, result);
19602|    397|        }
19603|       |
19604|  2.43k|        return get_binary(len, result);
19605|  2.83k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE19get_bson_old_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
19617|    397|    {
19618|    397|        if (JSON_HEDLEY_UNLIKELY(len < 4))
  ------------------
  |  | 1697|    397|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 394]
  |  |  ------------------
  ------------------
19619|      3|        {
19620|      3|            return bson_length_error("length of binary subtype 0x02 must be at least 4, is ", len, "binary");
19621|      3|        }
19622|       |
19623|    394|        std::int32_t inner_length{};
19624|    394|        if (JSON_HEDLEY_UNLIKELY((!get_number<std::int32_t, true>(inner_length))))
  ------------------
  |  | 1697|    394|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 394]
  |  |  ------------------
  ------------------
19625|      0|        {
19626|      0|            return false;
19627|      0|        }
19628|       |
19629|    394|        if (JSON_HEDLEY_UNLIKELY(static_cast<std::int64_t>(inner_length) != static_cast<std::int64_t>(len) - 4))
  ------------------
  |  | 1697|    394|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 71, False: 323]
  |  |  ------------------
  ------------------
19630|     71|        {
19631|     71|            return bson_length_error("inner length of binary subtype 0x02 does not match the payload size; inner length is ", inner_length, "binary");
19632|     71|        }
19633|       |
19634|    323|        return get_binary(inner_length, result);
19635|    394|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE10get_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
23867|  2.70k|    {
23868|  2.70k|        return get_bytes(len, "binary", result);
23869|  2.70k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE9get_bytesIiNS0_27byte_container_with_subtypeISF_EEEEbT_PKcRT0_:
23893|  2.70k|    {
23894|       |        // a string that is in the block of input as a whole is appended from
23895|       |        // it, without the zero-filling resize() below
23896|  2.70k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [Folded, False: 2.70k]
  |  Branch (23896:50): [Folded, False: 0]
  ------------------
23897|  2.70k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 2.70k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  2.70k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  3.75k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 1.11k, False: 2.63k]
  ------------------
23906|  1.11k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  1.11k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 1.08k, False: 29]
  ------------------
23910|  1.11k|                                       ? static_cast<std::size_t>(len)
23911|  1.11k|                                       : chunk_size;
23912|  1.11k|            const std::size_t old_size = result.size();
23913|  1.11k|            result.resize(old_size + wanted);
23914|       |            // resize() is required to make size() exactly old_size + wanted;
23915|       |            // that is the room get_elements() is allowed to write into
23916|  1.11k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  1.11k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 1.11k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  1.11k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  1.11k|            chars_read += bytes_read;
23921|  1.11k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  1.11k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 66, False: 1.04k]
  |  |  ------------------
  ------------------
23922|     66|            {
23923|       |                // premature end of input: shrink to what was actually read and
23924|       |                // report the failure at the first missing byte (same position
23925|       |                // accounting as get_to() for partial number reads)
23926|     66|                result.resize(old_size + bytes_read);
23927|     66|                ++chars_read;
23928|     66|                current = char_traits<char_type>::eof();
23929|     66|                return unexpect_eof(context);
23930|     66|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  1.04k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  1.04k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 1.04k, False: 0]
  ------------------
23933|  1.04k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  1.04k|        }
23935|  2.63k|        return true;
23936|  2.70k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE17append_from_blockIiNS0_27byte_container_with_subtypeISF_EEEEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  2.70k|    {
23965|  2.70k|        return false;
23966|  2.70k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIhEEmPT_m:
10326|  7.24k|    {
10327|  7.24k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  7.24k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIhEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  7.24k|    {
10407|  7.24k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  20.4k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 13.2k, False: 7.15k]
  ------------------
10409|  13.2k|        {
10410|  13.2k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  13.2k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 13.1k, False: 89]
  |  |  ------------------
  ------------------
10411|  13.1k|            {
10412|  13.1k|                ptr[read_index] = static_cast<char>(*current);
10413|  13.1k|                std::advance(current, 1);
10414|  13.1k|            }
10415|     89|            else
10416|     89|            {
10417|     89|                return read_index;
10418|     89|            }
10419|  13.2k|        }
10420|  7.15k|        return count * sizeof(T);
10421|  7.24k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE6binaryERNS0_27byte_container_with_subtypeISF_EE:
17870|  2.63k|    {
17871|       |        // json_sax documents that the passed value may be moved from,
17872|       |        // so hand the buffer over instead of copying it
17873|  2.63k|        handle_value(std::move(val));
17874|  2.63k|        return true;
17875|  2.63k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueINS0_27byte_container_with_subtypeISF_EEEEPSG_OT_:
17961|  2.63k|    {
17962|  2.63k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 2.63k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  2.63k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  2.63k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 771, False: 1.86k]
  |  Branch (17973:9): [True: 1.86k, False: 0]
  |  Branch (17973:9): [True: 2.63k, False: 0]
  ------------------
17974|       |
17975|  2.63k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 771, False: 1.86k]
  ------------------
17976|    771|        {
17977|    771|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    771|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    771|        }
17985|       |
17986|  1.86k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.86k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.86k, False: 0]
  ------------------
17987|  1.86k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.86k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.86k, False: 0]
  ------------------
17988|  1.86k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.86k|        return object_element;
17995|  1.86k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE10get_numberIhLb0EEEbRT_:
23596|  6.12k|    {
23597|       |        // read in the original format
23598|       |
23599|  6.12k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  6.12k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.12k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  6.12k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 6.10k, False: 23]
  |  Branch (23603:34): [Folded, False: 6.10k]
  |  Branch (23603:57): [True: 0, False: 6.10k]
  ------------------
23604|  6.10k|        {
23605|  6.10k|            byte_swap(result);
23606|  6.10k|        }
23607|  6.12k|        return true;
23608|  6.12k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE6get_toIhEEbRT_PKc:
23503|  6.12k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  6.12k|        auto new_chars_read = ia.get_elements(&dest);
23507|  6.12k|        chars_read += new_chars_read;
23508|  6.12k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  6.12k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 23, False: 6.10k]
  |  |  ------------------
  ------------------
23509|     23|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     23|            ++chars_read;
23512|     23|            static_cast<void>(report_eof(context));
23513|     23|            return false;
23514|     23|        }
23515|  6.10k|        return true;
23516|  6.12k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE9byte_swapIhEEvRT_:
23555|  6.10k|    {
23556|  6.10k|        constexpr std::size_t sz = sizeof(number);
23557|       |#ifdef __cpp_lib_byteswap
23558|       |        if constexpr (sz == 1)
23559|       |        {
23560|       |            return;
23561|       |        }
23562|       |        else if constexpr(std::is_integral_v<NumberType>)
23563|       |        {
23564|       |            number = std::byteswap(number);
23565|       |            return;
23566|       |        }
23567|       |        else
23568|       |        {
23569|       |#endif
23570|  6.10k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  6.10k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 6.10k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  6.10k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE7booleanEb:
17838|  3.28k|    {
17839|  3.28k|        handle_value(val);
17840|  3.28k|        return true;
17841|  3.28k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueIRbEEPSG_OT_:
17961|  3.28k|    {
17962|  3.28k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 3.28k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  3.28k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.28k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 1.87k, False: 1.40k]
  |  Branch (17973:9): [True: 1.40k, False: 0]
  |  Branch (17973:9): [True: 3.28k, False: 0]
  ------------------
17974|       |
17975|  3.28k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 1.87k, False: 1.40k]
  ------------------
17976|  1.87k|        {
17977|  1.87k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  1.87k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  1.87k|        }
17985|       |
17986|  1.40k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.40k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.40k, False: 0]
  ------------------
17987|  1.40k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.40k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.40k, False: 0]
  ------------------
17988|  1.40k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.40k|        return object_element;
17995|  1.40k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE4nullEv:
17832|  19.9k|    {
17833|  19.9k|        handle_value(nullptr);
17834|  19.9k|        return true;
17835|  19.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueIDnEEPSG_OT_:
17961|  19.9k|    {
17962|  19.9k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 19.9k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  19.9k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  19.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 8.43k, False: 11.5k]
  |  Branch (17973:9): [True: 11.5k, False: 0]
  |  Branch (17973:9): [True: 19.9k, False: 0]
  ------------------
17974|       |
17975|  19.9k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 8.43k, False: 11.5k]
  ------------------
17976|  8.43k|        {
17977|  8.43k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  8.43k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  8.43k|        }
17985|       |
17986|  11.5k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  11.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 11.5k, False: 0]
  ------------------
17987|  11.5k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  11.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 11.5k, False: 0]
  ------------------
17988|  11.5k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  11.5k|        return object_element;
17995|  11.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE11emit_signedIiEEbT_:
23628|  1.16k|    {
23629|  1.16k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  1.16k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.16k, False: 0]
  |  |  ------------------
  ------------------
23630|  1.16k|        {
23631|  1.16k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  1.16k|        }
23633|      0|        if (value_in_range_of<number_unsigned_t>(number))
  ------------------
  |  Branch (23633:13): [True: 0, False: 0]
  ------------------
23634|      0|        {
23635|      0|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23636|      0|        }
23637|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23638|      0|        return emit_float(static_cast<long double>(number));
23639|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE14number_integerEl:
17844|  1.91k|    {
17845|  1.91k|        handle_value(val);
17846|  1.91k|        return true;
17847|  1.91k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueIRlEEPSG_OT_:
17961|  1.91k|    {
17962|  1.91k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 1.91k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  1.91k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.91k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 617, False: 1.29k]
  |  Branch (17973:9): [True: 1.29k, False: 0]
  |  Branch (17973:9): [True: 1.91k, False: 0]
  ------------------
17974|       |
17975|  1.91k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 617, False: 1.29k]
  ------------------
17976|    617|        {
17977|    617|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    617|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    617|        }
17985|       |
17986|  1.29k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.29k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.29k, False: 0]
  ------------------
17987|  1.29k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.29k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.29k, False: 0]
  ------------------
17988|  1.29k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.29k|        return object_element;
17995|  1.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE15number_unsignedEm:
17850|  1.45k|    {
17851|  1.45k|        handle_value(val);
17852|  1.45k|        return true;
17853|  1.45k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEE12handle_valueIRmEEPSG_OT_:
17961|  1.45k|    {
17962|  1.45k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 1.45k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  1.45k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.45k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 488, False: 968]
  |  Branch (17973:9): [True: 968, False: 0]
  |  Branch (17973:9): [True: 1.45k, False: 0]
  ------------------
17974|       |
17975|  1.45k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 488, False: 968]
  ------------------
17976|    488|        {
17977|    488|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    488|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    488|        }
17985|       |
17986|    968|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    968|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 968, False: 0]
  ------------------
17987|    968|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    968|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 968, False: 0]
  ------------------
17988|    968|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|    968|        return object_element;
17995|    968|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE10get_numberIlLb1EEEbRT_:
23596|    772|    {
23597|       |        // read in the original format
23598|       |
23599|    772|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|    772|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 772]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|    772|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 772]
  |  Branch (23603:34): [True: 772, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|    772|        return true;
23608|    772|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE6get_toIlEEbRT_PKc:
23503|    772|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|    772|        auto new_chars_read = ia.get_elements(&dest);
23507|    772|        chars_read += new_chars_read;
23508|    772|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|    772|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 20, False: 752]
  |  |  ------------------
  ------------------
23509|     20|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     20|            ++chars_read;
23512|     20|            static_cast<void>(report_eof(context));
23513|     20|            return false;
23514|     20|        }
23515|    752|        return true;
23516|    772|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsIlEEmPT_m:
10326|    772|    {
10327|    772|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|    772|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implIlEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|    772|    {
10407|    772|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  6.82k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 6.07k, False: 752]
  ------------------
10409|  6.07k|        {
10410|  6.07k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  6.07k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 6.05k, False: 20]
  |  |  ------------------
  ------------------
10411|  6.05k|            {
10412|  6.05k|                ptr[read_index] = static_cast<char>(*current);
10413|  6.05k|                std::advance(current, 1);
10414|  6.05k|            }
10415|     20|            else
10416|     20|            {
10417|     20|                return read_index;
10418|     20|            }
10419|  6.07k|        }
10420|    752|        return count * sizeof(T);
10421|    772|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE11emit_signedIlEEbT_:
23628|    752|    {
23629|    752|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|    752|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 752, False: 0]
  |  |  ------------------
  ------------------
23630|    752|        {
23631|    752|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|    752|        }
23633|      0|        if (value_in_range_of<number_unsigned_t>(number))
  ------------------
  |  Branch (23633:13): [True: 0, False: 0]
  ------------------
23634|      0|        {
23635|      0|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23636|      0|        }
23637|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23638|      0|        return emit_float(static_cast<long double>(number));
23639|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE10get_numberImLb1EEEbRT_:
23596|  1.47k|    {
23597|       |        // read in the original format
23598|       |
23599|  1.47k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  1.47k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.47k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  1.47k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 1.47k]
  |  Branch (23603:34): [True: 1.47k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  1.47k|        return true;
23608|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE6get_toImEEbRT_PKc:
23503|  1.47k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  1.47k|        auto new_chars_read = ia.get_elements(&dest);
23507|  1.47k|        chars_read += new_chars_read;
23508|  1.47k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  1.47k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 20, False: 1.45k]
  |  |  ------------------
  ------------------
23509|     20|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     20|            ++chars_read;
23512|     20|            static_cast<void>(report_eof(context));
23513|     20|            return false;
23514|     20|        }
23515|  1.45k|        return true;
23516|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E12get_elementsImEEmPT_m:
10326|  1.47k|    {
10327|  1.47k|        return get_elements_impl(dest, count, std::integral_constant<bool, iterator_is_contiguous> {});
10328|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E17get_elements_implImEEmPT_mNS3_17integral_constantIbLb0EEE:
10406|  1.47k|    {
10407|  1.47k|        auto* ptr = reinterpret_cast<char*>(dest);
10408|  13.1k|        for (std::size_t read_index = 0; read_index < count * sizeof(T); ++read_index)
  ------------------
  |  Branch (10408:42): [True: 11.7k, False: 1.45k]
  ------------------
10409|  11.7k|        {
10410|  11.7k|            if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|  11.7k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 11.6k, False: 20]
  |  |  ------------------
  ------------------
10411|  11.6k|            {
10412|  11.6k|                ptr[read_index] = static_cast<char>(*current);
10413|  11.6k|                std::advance(current, 1);
10414|  11.6k|            }
10415|     20|            else
10416|     20|            {
10417|     20|                return read_index;
10418|     20|            }
10419|  11.7k|        }
10420|  1.45k|        return count * sizeof(T);
10421|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE13emit_unsignedImEEbT_:
23656|  1.45k|    {
23657|  1.45k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  1.45k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.45k, False: 0]
  |  |  ------------------
  ------------------
23658|  1.45k|        {
23659|  1.45k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  1.45k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  1.45k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE27bson_unsupported_type_errorEmm:
24039|    127|    {
24040|    127|        const std::string cr_str = hex_byte(static_cast<std::uint8_t>(element_type));
24041|    127|        return sax->parse_error(position, cr_str,
24042|    127|                                parse_error::create(exception_id::bson_unsupported_type, position, concat("Unsupported BSON record type 0x", cr_str), nullptr));
24043|    127|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE15last_byte_errorENS1_12exception_idERKSC_PKcST_:
24055|    344|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|    344|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|    344|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 332, False: 12]
  ------------------
24059|    344|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE3getEv:
23488|   298k|    {
23489|   298k|        ++chars_read;
23490|   298k|        return current = ia.get_character();
23491|   298k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_E13get_characterEv:
10272|   298k|    {
10273|   298k|        if (JSON_HEDLEY_LIKELY(current != end))
  ------------------
  |  | 1696|   298k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 294k, False: 4.23k]
  |  |  ------------------
  ------------------
10274|   294k|        {
10275|   294k|            auto result = char_traits<char_type>::to_int_type(*current);
10276|   294k|            std::advance(current, 1);
10277|   294k|            return result;
10278|   294k|        }
10279|       |
10280|  4.23k|        ++eof_reads;
10281|  4.23k|        return char_traits<char_type>::eof();
10282|   298k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEE16position_bindingD2Ev:
19134|  5.04k|        {
19135|  5.04k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 5.04k, False: 0]
  ------------------
19136|  5.04k|            {
19137|  5.04k|                parser->set_reserve_state(saved);
19138|  5.04k|            }
19139|  5.04k|        }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EENS1_26json_sax_dom_binary_parserISG_SL_EEED2Ev:
19002|  5.04k|    ~binary_reader() = default;
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_22iterator_input_adapterINS4_21__list_const_iteratorIhPvEESK_EEED2Ev:
17829|  5.04k|    ~json_sax_dom_binary_parser() = default;
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterINSt3__121__list_const_iteratorIhPvEES6_vEENS1_30iterator_input_adapter_factoryIT_T0_vE12adapter_typeES8_S9_:
10755|  5.04k|{
10756|  5.04k|    using factory_type = iterator_input_adapter_factory<IteratorType, SentinelType>;
10757|  5.04k|    return factory_type::create(first, last);
10758|  5.04k|}
_ZN8nlohmann16json_abi_v3_12_06detail30iterator_input_adapter_factoryINSt3__121__list_const_iteratorIhPvEES6_vE6createES6_S6_:
10617|  5.04k|    {
10618|  5.04k|        return adapter_type(std::move(first), std::move(last));
10619|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail22iterator_input_adapterINSt3__121__list_const_iteratorIhPvEES6_EC2ES6_S6_:
10268|  5.04k|        : begin(first), current(std::move(first)), end(std::move(last))
10269|  5.04k|    {}
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE9from_bsonIRP8_IO_FILEEESE_OT_bbNS0_6detail15error_handler_tE:
47032|  5.04k|    {
47033|  5.04k|        return from_binary_impl(detail::input_adapter(std::forward<InputType>(i)), input_format_t::bson, strict, allow_exceptions, error_handler);
47034|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvE16from_binary_implINS0_6detail18file_input_adapterEEESE_T_NSG_14input_format_tEbbNSG_15error_handler_tENSG_18cbor_tag_handler_tE:
46575|  5.04k|    {
46576|  5.04k|        basic_json result;
46577|  5.04k|        detail::json_sax_dom_binary_parser<basic_json, InputAdapterType> sdp(result, allow_exceptions);
46578|  5.04k|        binary_reader<InputAdapterType> reader(std::move(ia), format, error_handler);
46579|  5.04k|        if (!reader.sax_parse(&sdp, strict, tag_handler))
  ------------------
  |  Branch (46579:13): [True: 0, False: 5.04k]
  ------------------
46580|      0|        {
46581|      0|            result = value_t::discarded;
46582|      0|        }
46583|  5.04k|        return result;
46584|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEEC2ERSG_bPNS1_5lexerISG_SH_Lb0EEE:
17821|  5.04k|        : json_sax_dom_error_state(allow_exceptions_), root(r), m_lexer_ref(lexer_)
17822|  5.04k|    {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEEC2EOSH_NS1_14input_format_tENS1_15error_handler_tE:
18992|  5.04k|        : ia(std::move(adapter)), input_format(format), error_handler(error_handler_)
18993|  5.04k|    {
18994|  5.04k|        (void)detail::is_sax_static_asserts<SAX, BasicJsonType> {};
18995|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapterC2EOS2_:
 9548|  5.04k|        : m_file(rhs.m_file)
 9549|       |#if JSON_FILE_WINDOW
 9550|  5.04k|        , token_carry(std::move(rhs.token_carry))
 9551|  5.04k|        , token_segment(rhs.token_segment)
 9552|  5.04k|        , current_in_buffer(rhs.current_in_buffer)
 9553|  5.04k|        , tracking_token(rhs.tracking_token)
 9554|       |#endif
 9555|  5.04k|    {
 9556|       |        // the lock is owned by the thread, not the adapter: hand it over
 9557|  5.04k|        rhs.m_file = nullptr;
 9558|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE9sax_parseEPSJ_bNS1_18cbor_tag_handler_tE:
19017|  5.04k|    {
19018|  5.04k|        sax = sax_;
19019|  5.04k|        container_stack.clear();
19020|  5.04k|        bon8_pushback_size = 0;
19021|       |        // the position is only known to the DOM parser while this reader lives
19022|  5.04k|        const position_binding binding(bound_parser(sax, std::is_convertible<SAX*, json_sax_dom_error_state*> {}), &chars_read);
19023|  5.04k|        bool result = false;
19024|       |
19025|  5.04k|        switch (input_format)
19026|  5.04k|        {
19027|  5.04k|            case input_format_t::bson:
  ------------------
  |  Branch (19027:13): [True: 5.04k, False: 0]
  ------------------
19028|  5.04k|                result = parse_bson_internal();
19029|  5.04k|                break;
19030|       |
19031|      0|            case input_format_t::cbor:
  ------------------
  |  Branch (19031:13): [True: 0, False: 5.04k]
  ------------------
19032|      0|                result = parse_cbor_internal(tag_handler);
19033|      0|                break;
19034|       |
19035|      0|            case input_format_t::msgpack:
  ------------------
  |  Branch (19035:13): [True: 0, False: 5.04k]
  ------------------
19036|      0|                result = parse_msgpack_internal();
19037|      0|                break;
19038|       |
19039|      0|            case input_format_t::ubjson:
  ------------------
  |  Branch (19039:13): [True: 0, False: 5.04k]
  ------------------
19040|      0|            case input_format_t::bjdata:
  ------------------
  |  Branch (19040:13): [True: 0, False: 5.04k]
  ------------------
19041|      0|                result = parse_ubjson_internal();
19042|      0|                break;
19043|       |
19044|      0|            case input_format_t::bon8:
  ------------------
  |  Branch (19044:13): [True: 0, False: 5.04k]
  ------------------
19045|      0|                result = parse_bon8_internal();
19046|      0|                break;
19047|       |
19048|      0|            case input_format_t::json: // LCOV_EXCL_LINE
  ------------------
  |  Branch (19048:13): [True: 0, False: 5.04k]
  ------------------
19049|      0|            default:            // LCOV_EXCL_LINE
  ------------------
  |  Branch (19049:13): [True: 0, False: 5.04k]
  ------------------
19050|      0|                JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (19050:17): [Folded, False: 0]
  ------------------
19051|  5.04k|        }
19052|       |
19053|       |        // BON8: a string ends at the first byte that cannot continue it. If
19054|       |        // that byte follows the value, the reader has already taken it from
19055|       |        // the input and holds it in bon8_pushback. Without the end-of-input
19056|       |        // check below it would be dropped, and the next read would start
19057|       |        // behind it, so report the missing 0xFF instead.
19058|  3.29k|        if (result && !strict && input_format == input_format_t::bon8 && bon8_pushback_size != 0)
  ------------------
  |  Branch (19058:13): [True: 3.29k, False: 0]
  |  Branch (19058:23): [True: 0, False: 3.29k]
  |  Branch (19058:34): [True: 0, False: 0]
  |  Branch (19058:74): [True: 0, False: 0]
  ------------------
19059|      0|        {
19060|      0|            get_bon8();
19061|      0|            return last_byte_error(exception_id::unexpected_end_of_input, "string at the end of the value is not terminated by 0xFF", "value", "");
19062|      0|        }
19063|       |
19064|       |        // strict mode: next byte must be EOF
19065|  3.29k|        if (result && strict)
  ------------------
  |  Branch (19065:13): [True: 3.29k, False: 0]
  |  Branch (19065:23): [True: 3.29k, False: 0]
  ------------------
19066|  3.29k|        {
19067|  3.29k|            if (input_format == input_format_t::ubjson || input_format == input_format_t::bjdata)
  ------------------
  |  Branch (19067:17): [True: 0, False: 3.29k]
  |  Branch (19067:59): [True: 0, False: 3.29k]
  ------------------
19068|      0|            {
19069|      0|                get_ignore_noop();
19070|      0|            }
19071|  3.29k|            else if (input_format == input_format_t::bon8)
  ------------------
  |  Branch (19071:22): [True: 0, False: 3.29k]
  ------------------
19072|      0|            {
19073|       |                // a string that ends a container hands back the byte after it
19074|      0|                get_bon8();
19075|      0|            }
19076|  3.29k|            else
19077|  3.29k|            {
19078|  3.29k|                get();
19079|  3.29k|            }
19080|       |
19081|  3.29k|            if (JSON_HEDLEY_UNLIKELY(current != char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  3.29k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 12, False: 3.28k]
  |  |  ------------------
  ------------------
19082|     12|            {
19083|     12|                return last_byte_error(exception_id::unexpected_end_of_input, "expected end of input", "value", "");
19084|     12|            }
19085|  3.29k|        }
19086|       |
19087|  3.28k|        return result;
19088|  3.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE12bound_parserEPSJ_NS4_17integral_constantIbLb1EEE:
19096|  5.04k|    {
19097|  5.04k|        return s;
19098|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE16position_bindingC2EPNS1_24json_sax_dom_error_stateEPKm:
19119|  5.04k|            : parser(parser_), saved()
19120|  5.04k|        {
19121|  5.04k|            if (parser != nullptr)
  ------------------
  |  Branch (19121:17): [True: 5.04k, False: 0]
  ------------------
19122|  5.04k|            {
19123|  5.04k|                saved = parser->get_reserve_state();
19124|  5.04k|                parser->set_input_position(position);
19125|  5.04k|            }
19126|  5.04k|        }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE19parse_bson_internalEv:
19357|  5.04k|    {
19358|  5.04k|        if (JSON_HEDLEY_UNLIKELY(!open_bson_document(/*is_object*/true)))
  ------------------
  |  | 1697|  5.04k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 5.04k]
  |  |  ------------------
  ------------------
19359|      0|        {
19360|      0|            return false;
19361|      0|        }
19362|       |
19363|       |        // the key currently being read; hoisted out of the loop so that its
19364|       |        // capacity is reused across elements and across nesting levels
19365|  5.04k|        string_t key;
19366|       |
19367|  50.3k|        while (true)
  ------------------
  |  Branch (19367:16): [True: 48.6k, Folded]
  ------------------
19368|  48.6k|        {
19369|  48.6k|            const auto element_type = get();
19370|       |
19371|  48.6k|            if (element_type == 0) // end of the innermost document
  ------------------
  |  Branch (19371:17): [True: 8.18k, False: 40.4k]
  ------------------
19372|  8.18k|            {
19373|       |                // a copy, not a reference: it must stay valid across the
19374|       |                // pop_back() inside leave_container() below, which destroys
19375|       |                // the container_stack element it would otherwise alias
19376|  8.18k|                const container_frame top = container_stack.back();
19377|       |
19378|  8.18k|                if (JSON_HEDLEY_UNLIKELY(!check_bson_document_size(top.start_position, top.declared_size)))
  ------------------
  |  | 1697|  8.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 8.18k]
  |  |  ------------------
  ------------------
19379|      0|                {
19380|      0|                    return false;
19381|      0|                }
19382|       |
19383|  8.18k|                if (JSON_HEDLEY_UNLIKELY(!leave_container()))
  ------------------
  |  | 1697|  8.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 8.18k]
  |  |  ------------------
  ------------------
19384|      0|                {
19385|      0|                    return false;
19386|      0|                }
19387|       |                // the document begun here is complete once it is not inside one
19388|  8.18k|                if (container_stack.empty())
  ------------------
  |  Branch (19388:21): [True: 3.29k, False: 4.88k]
  ------------------
19389|  3.29k|                {
19390|  3.29k|                    return true;
19391|  3.29k|                }
19392|  4.88k|                continue;
19393|  8.18k|            }
19394|       |
19395|  40.4k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("element list")))
  ------------------
  |  | 1697|  40.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.4k]
  |  |  ------------------
  ------------------
19396|      0|            {
19397|      0|                return false;
19398|      0|            }
19399|       |
19400|       |            // an element needs at least its name's terminator, and the
19401|       |            // document its own terminator, within the declared size
19402|  40.4k|            if (JSON_HEDLEY_UNLIKELY(chars_read + 2 > container_stack.back().end_position))
  ------------------
  |  | 1697|  40.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 16, False: 40.4k]
  |  |  ------------------
  ------------------
19403|     16|            {
19404|     16|                return bson_document_size_error("document size ", container_stack.back().declared_size, " is too small for its content");
19405|     16|            }
19406|       |
19407|  40.4k|            const std::size_t element_type_parse_position = chars_read;
19408|       |            // an array's elements are named "0", "1", ... in the wire format,
19409|       |            // and those names are not passed on: they are skipped, and only
19410|       |            // checked if error_handler_t::strict must reject ill-formed UTF-8
19411|  40.4k|            const bool is_object = container_stack.back().is_object;
19412|  40.4k|            key.clear();
19413|  40.4k|            if (JSON_HEDLEY_UNLIKELY(!(is_object || error_handler != error_handler_t::strict
  ------------------
  |  | 1697|   137k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.4k]
  |  |  |  Branch (1697:94): [True: 24.5k, False: 15.8k]
  |  |  |  Branch (1697:94): [True: 15.8k, False: 0]
  |  |  ------------------
  ------------------
19414|  40.4k|                                       ? get_bson_cstr(key, is_object)
19415|  40.4k|                                       : check_bson_cstr(key, std::integral_constant<bool, bulk_scan> {}))))
19416|      0|            {
19417|      0|                return false;
19418|      0|            }
19419|       |
19420|  40.4k|            if (is_object && !sax->key(key))
  ------------------
  |  Branch (19420:17): [True: 23.6k, False: 16.8k]
  |  Branch (19420:30): [True: 0, False: 23.6k]
  ------------------
19421|      0|            {
19422|      0|                return false;
19423|      0|            }
19424|       |
19425|  40.4k|            if (JSON_HEDLEY_UNLIKELY(!parse_bson_element_internal(element_type, element_type_parse_position)))
  ------------------
  |  | 1697|  40.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 40.4k]
  |  |  ------------------
  ------------------
19426|      0|            {
19427|      0|                return false;
19428|      0|            }
19429|  40.4k|        }
19430|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE18open_bson_documentEb:
19307|  10.7k|    {
19308|       |        // recorded before the size prefix is read, because
19309|       |        // check_bson_document_size() measures the document from here
19310|  10.7k|        const std::size_t document_start = chars_read;
19311|  10.7k|        std::int32_t document_size{};
19312|  10.7k|        if (!get_number<std::int32_t, true>(document_size))
  ------------------
  |  Branch (19312:13): [True: 0, False: 10.7k]
  ------------------
19313|      0|        {
19314|      0|            return false;
19315|      0|        }
19316|       |
19317|       |        // the smallest document is the size prefix and the terminator
19318|  10.7k|        if (JSON_HEDLEY_UNLIKELY(document_size < 5))
  ------------------
  |  | 1697|  10.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 34, False: 10.7k]
  |  |  ------------------
  ------------------
19319|     34|        {
19320|     34|            return bson_document_size_error("document size ", document_size, " is less than 5");
19321|     34|        }
19322|       |
19323|       |        // the declared size bounds where the document ends: an embedded
19324|       |        // document must end before the terminator of the document that contains it
19325|  10.7k|        const auto unsigned_size = static_cast<std::size_t>(document_size);
19326|  10.7k|        const std::size_t document_end = unsigned_size > (std::numeric_limits<std::size_t>::max)() - document_start
  ------------------
  |  Branch (19326:42): [True: 0, False: 10.7k]
  ------------------
19327|  10.7k|                                         ? (std::numeric_limits<std::size_t>::max)()
19328|  10.7k|                                         : document_start + unsigned_size;
19329|  10.7k|        if (JSON_HEDLEY_UNLIKELY(!container_stack.empty() && document_end >= container_stack.back().end_position))
  ------------------
  |  | 1697|  16.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 39, False: 10.7k]
  |  |  |  Branch (1697:94): [True: 5.71k, False: 5.04k]
  |  |  |  Branch (1697:94): [True: 39, False: 5.67k]
  |  |  ------------------
  ------------------
19330|     39|        {
19331|     39|            return bson_document_size_error("document size ", document_size, " exceeds the size of the enclosing document");
19332|     39|        }
19333|       |
19334|  10.7k|        if (JSON_HEDLEY_UNLIKELY(!enter_container(is_object, detail::unknown_size())))
  ------------------
  |  | 1697|  10.7k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.7k]
  |  |  ------------------
  ------------------
19335|      0|        {
19336|      0|            return false;
19337|      0|        }
19338|       |
19339|  10.7k|        container_frame& frame = container_stack.back();
19340|  10.7k|        frame.start_position = document_start;
19341|  10.7k|        frame.end_position = document_end;
19342|  10.7k|        frame.declared_size = document_size;
19343|  10.7k|        return true;
19344|  10.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberIiLb1EEEbRT_:
23596|  17.4k|    {
23597|       |        // read in the original format
23598|       |
23599|  17.4k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  17.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 17.4k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  17.4k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 17.4k]
  |  Branch (23603:34): [True: 17.4k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  17.4k|        return true;
23608|  17.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toIiEEbRT_PKc:
23503|  17.4k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  17.4k|        auto new_chars_read = ia.get_elements(&dest);
23507|  17.4k|        chars_read += new_chars_read;
23508|  17.4k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  17.4k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 113, False: 17.3k]
  |  |  ------------------
  ------------------
23509|    113|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|    113|            ++chars_read;
23512|    113|            static_cast<void>(report_eof(context));
23513|    113|            return false;
23514|    113|        }
23515|  17.3k|        return true;
23516|  17.4k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIiEEmPT_m:
 9597|  17.4k|    {
 9598|  17.4k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  17.4k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10report_eofEPKc:
23991|  1.29k|    {
23992|  1.29k|        return sax->parse_error(chars_read, "<end of file>",
23993|  1.29k|                                parse_error::create(exception_id::unexpected_end_of_input, chars_read, exception_message("unexpected end of input", context), nullptr));
23994|  1.29k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17exception_messageERKSC_SM_:
24102|  1.63k|    {
24103|  1.63k|        std::string error_msg = "syntax error while parsing ";
24104|  1.63k|        error_msg += input_format_name(input_format);
24105|       |
24106|  1.63k|        return concat(error_msg, ' ', context, ": ", detail);
24107|  1.63k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15enter_containerEbmi:
19201|  10.6k|    {
19202|  10.6k|        if (JSON_HEDLEY_UNLIKELY(is_object ? !sax->start_object(len) : !sax->start_array(len)))
  ------------------
  |  | 1697|  21.3k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.6k]
  |  |  |  Branch (1697:94): [True: 7.19k, False: 3.49k]
  |  |  ------------------
  ------------------
19203|      0|        {
19204|      0|            return false;
19205|      0|        }
19206|       |
19207|  10.6k|        container_stack.emplace_back(len, is_object, type_marker);
19208|  10.6k|        return true;
19209|  10.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12start_objectEm:
17878|  7.19k|    {
17879|  7.19k|        ref_stack.push_back(handle_value(BasicJsonType::value_t::object));
17880|       |
17881|       |#if JSON_DIAGNOSTIC_POSITIONS
17882|       |        // Ensure this is after the call to handle_value to ensure correct start position.
17883|       |        diagnostic_positions::set_container_start(*ref_stack.back(), m_lexer_ref);
17884|       |#endif
17885|       |
17886|  7.19k|        return check_container_size(*this, len, "object", ref_stack.back());
17887|  7.19k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12handle_valueINS1_7value_tEEEPSG_OT_:
17961|  10.6k|    {
17962|  10.6k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 5.01k, False: 5.67k]
  ------------------
17963|  5.01k|        {
17964|  5.01k|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|  5.01k|            return &root;
17971|  5.01k|        }
17972|       |
17973|  5.67k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  5.67k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 2.16k, False: 3.51k]
  |  Branch (17973:9): [True: 3.51k, False: 0]
  |  Branch (17973:9): [True: 5.67k, False: 0]
  ------------------
17974|       |
17975|  5.67k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 2.16k, False: 3.51k]
  ------------------
17976|  2.16k|        {
17977|  2.16k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  2.16k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  2.16k|        }
17985|       |
17986|  3.51k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.51k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 3.51k, False: 0]
  ------------------
17987|  3.51k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  3.51k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 3.51k, False: 0]
  ------------------
17988|  3.51k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  3.51k|        return object_element;
17995|  3.51k|    }
_ZN8nlohmann16json_abi_v3_12_06detail20check_container_sizeINS1_26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS5_6vectorENS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEblmdSB_NS0_14adl_serializerENS7_IhNSB_IhEEEEvEENS1_18file_input_adapterEEESH_EEbRT_mPKcPT0_:
16469|  10.6k|{
16470|  10.6k|    if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref->max_size()))
  ------------------
  |  | 1697|  10.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 10.6k]
  |  |  |  Branch (1697:94): [True: 0, False: 10.6k]
  |  |  |  Branch (1697:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
16471|      0|    {
16472|      0|        return container_too_large_error(sax, len, kind, ref);
16473|      0|    }
16474|  10.6k|    return true;
16475|  10.6k|}
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE11start_arrayEm:
17915|  3.49k|    {
17916|  3.49k|        ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
17917|       |
17918|       |#if JSON_DIAGNOSTIC_POSITIONS
17919|       |        // Ensure this is after the call to handle_value to ensure correct start position.
17920|       |        diagnostic_positions::set_container_start(*ref_stack.back(), m_lexer_ref);
17921|       |#endif
17922|       |
17923|  3.49k|        if (JSON_HEDLEY_UNLIKELY(!check_container_size(*this, len, "array", ref_stack.back())))
  ------------------
  |  | 1697|  3.49k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 3.49k]
  |  |  ------------------
  ------------------
17924|      0|        {
17925|      0|            return false;
17926|      0|        }
17927|       |
17928|  3.49k|        if (len != detail::unknown_size())
  ------------------
  |  Branch (17928:13): [True: 0, False: 3.49k]
  ------------------
17929|      0|        {
17930|      0|            reserve_array_capped(*ref_stack.back()->m_data.m_value.array, reserve_count(len), priority_tag<1> {});
17931|      0|        }
17932|       |
17933|  3.49k|        return true;
17934|  3.49k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15container_frameC2Embi:
19167|  10.6k|            : remaining(remaining_), type_marker(type_marker_), is_object(is_object_) {}
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE24check_bson_document_sizeEmi:
19294|  8.18k|    {
19295|  8.18k|        if (JSON_HEDLEY_UNLIKELY(static_cast<std::size_t>(document_size) != chars_read - document_start))
  ------------------
  |  | 1697|  8.18k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 62, False: 8.12k]
  |  |  ------------------
  ------------------
19296|     62|        {
19297|     62|            return bson_document_size_error(document_size, chars_read - document_start);
19298|     62|        }
19299|  8.12k|        return true;
19300|  8.18k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE24bson_document_size_errorEim:
24027|     62|    {
24028|     62|        return last_byte_error(exception_id::unexpected_byte, concat("document size ", std::to_string(document_size), " does not match the number of bytes read (", std::to_string(bytes_read), ")"), "document");
24029|     62|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15leave_containerEv:
19233|  8.12k|    {
19234|  8.12k|        const bool is_object = container_stack.back().is_object;
19235|  8.12k|        container_stack.pop_back();
19236|  8.12k|        return is_object ? sax->end_object() : sax->end_array();
  ------------------
  |  Branch (19236:16): [True: 5.31k, False: 2.80k]
  ------------------
19237|  8.12k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE10end_objectEv:
17901|  5.31k|    {
17902|  5.31k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  5.31k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17902:9): [True: 5.31k, False: 0]
  ------------------
17903|  5.31k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  5.31k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17903:9): [True: 5.31k, False: 0]
  ------------------
17904|       |
17905|       |#if JSON_DIAGNOSTIC_POSITIONS
17906|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17907|       |#endif
17908|       |
17909|  5.31k|        ref_stack.back()->set_parents();
17910|  5.31k|        ref_stack.pop_back();
17911|  5.31k|        return true;
17912|  5.31k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE9end_arrayEv:
17937|  2.80k|    {
17938|  2.80k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  2.80k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17938:9): [True: 2.80k, False: 0]
  ------------------
17939|  2.80k|        JSON_ASSERT(ref_stack.back()->is_array());
  ------------------
  |  | 2653|  2.80k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17939:9): [True: 2.80k, False: 0]
  ------------------
17940|       |
17941|       |#if JSON_DIAGNOSTIC_POSITIONS
17942|       |        diagnostic_positions::set_container_end(*ref_stack.back(), m_lexer_ref);
17943|       |#endif
17944|       |
17945|  2.80k|        ref_stack.back()->set_parents();
17946|  2.80k|        ref_stack.pop_back();
17947|  2.80k|        return true;
17948|  2.80k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE12unexpect_eofEPKc:
23974|  41.6k|    {
23975|  41.6k|        if (JSON_HEDLEY_UNLIKELY(current == char_traits<char_type>::eof()))
  ------------------
  |  | 1697|  41.6k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 1.08k, False: 40.5k]
  |  |  ------------------
  ------------------
23976|  1.08k|        {
23977|  1.08k|            return report_eof(context);
23978|  1.08k|        }
23979|  40.5k|        return true;
23980|  41.6k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE24bson_document_size_errorEPKciSM_:
24033|     89|    {
24034|     89|        return last_byte_error(exception_id::unexpected_byte, concat(prefix, std::to_string(document_size), suffix), "document");
24035|     89|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE13get_bson_cstrERSC_b:
19444|  39.6k|    {
19445|  39.6k|        if (get_bson_cstr_bulk(result, store, std::integral_constant<bool, bulk_scan> {}))
  ------------------
  |  Branch (19445:13): [True: 39.5k, False: 109]
  ------------------
19446|  39.5k|        {
19447|  39.5k|            return !store || check_string_utf8(result, "key");
  ------------------
  |  Branch (19447:20): [True: 15.8k, False: 23.6k]
  |  Branch (19447:30): [True: 23.6k, False: 0]
  ------------------
19448|  39.5k|        }
19449|       |
19450|    109|        auto out = std::back_inserter(result);
19451|  1.11k|        while (true)
  ------------------
  |  Branch (19451:16): [True: 1.00k, Folded]
  ------------------
19452|  1.00k|        {
19453|  1.00k|            get();
19454|  1.00k|            if (JSON_HEDLEY_UNLIKELY(!unexpect_eof("cstring")))
  ------------------
  |  | 1697|  1.00k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.00k]
  |  |  ------------------
  ------------------
19455|      0|            {
19456|      0|                return false;
19457|      0|            }
19458|  1.00k|            if (current == 0x00)
  ------------------
  |  Branch (19458:17): [True: 0, False: 1.00k]
  ------------------
19459|      0|            {
19460|      0|                return !store || check_string_utf8(result, "key");
  ------------------
  |  Branch (19460:24): [True: 0, False: 0]
  |  Branch (19460:34): [True: 0, False: 0]
  ------------------
19461|      0|            }
19462|  1.00k|            *out++ = static_cast<typename string_t::value_type>(current);
19463|  1.00k|        }
19464|    109|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE18get_bson_cstr_bulkERSC_bNS4_17integral_constantIbLb1EEE:
19475|  39.6k|    {
19476|  39.6k|        const std::size_t remaining = ia.bulk_remaining();
19477|  39.6k|        if (remaining == 0)
  ------------------
  |  Branch (19477:13): [True: 82, False: 39.5k]
  ------------------
19478|     82|        {
19479|     82|            return false;
19480|     82|        }
19481|  39.5k|        const auto* const data = reinterpret_cast<const unsigned char*>(ia.bulk_data());
19482|  39.5k|        const std::size_t length = find_zero_byte(data, remaining);
19483|  39.5k|        if (length == remaining)
  ------------------
  |  Branch (19483:13): [True: 27, False: 39.5k]
  ------------------
19484|     27|        {
19485|     27|            return false;
19486|     27|        }
19487|  39.5k|        if (store)
  ------------------
  |  Branch (19487:13): [True: 23.6k, False: 15.8k]
  ------------------
19488|  23.6k|        {
19489|  23.6k|            result.append(reinterpret_cast<const typename string_t::value_type*>(data), length);
19490|  23.6k|        }
19491|       |        // consume the string and its \x00-byte, as the byte-wise path does
19492|  39.5k|        ia.bulk_skip(length + 1);
19493|  39.5k|        chars_read += length + 1;
19494|  39.5k|        current = 0x00;
19495|  39.5k|        return true;
19496|  39.5k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter14bulk_remainingEv:
 9616|  80.7k|    {
 9617|  80.7k|        if (!current_in_buffer)
  ------------------
  |  Branch (9617:13): [True: 0, False: 80.7k]
  ------------------
 9618|      0|        {
 9619|      0|            return 0;
 9620|      0|        }
 9621|  80.7k|        return static_cast<std::size_t>(buffer_end() - buffer_ptr());
 9622|  80.7k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter10buffer_endEv:
 9681|   135k|    {
 9682|   135k|        return m_file->_IO_read_end;
 9683|   135k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter10buffer_ptrEv:
 9677|   176k|    {
 9678|   176k|        return m_file->_IO_read_ptr;
 9679|   176k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail18file_input_adapter9bulk_dataEv:
 9610|  40.2k|    {
 9611|  40.2k|        return buffer_ptr();
 9612|  40.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter9bulk_skipEm:
 9626|  40.2k|    {
 9627|  40.2k|        JSON_ASSERT(n <= bulk_remaining());
  ------------------
  |  | 2653|  40.2k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (9627:9): [True: 40.2k, False: 0]
  ------------------
 9628|  40.2k|        buffer_bump(n);
 9629|  40.2k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter11buffer_bumpEm:
 9685|  91.0k|    {
 9686|  91.0k|        m_file->_IO_read_ptr += n;
 9687|  91.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17check_string_utf8ERSC_PKc:
23811|  25.7k|    {
23812|  25.7k|        return error_handler == error_handler_t::keep || check_string_utf8_handler(result, context);
  ------------------
  |  Branch (23812:16): [True: 25.7k, False: 0]
  |  Branch (23812:58): [True: 0, False: 0]
  ------------------
23813|  25.7k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE3keyERSC_:
17890|  23.6k|    {
17891|  23.6k|        JSON_ASSERT(!ref_stack.empty());
  ------------------
  |  | 2653|  23.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17891:9): [True: 23.6k, False: 0]
  ------------------
17892|  23.6k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  23.6k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17892:9): [True: 23.6k, False: 0]
  ------------------
17893|       |
17894|       |        // add null at the given key and store the reference for later; the
17895|       |        // key is moved, as the lexer starts the next token with reset()
17896|  23.6k|        object_element = &(ref_stack.back()->m_data.m_value.object->operator[](std::move(val)));
17897|  23.6k|        return true;
17898|  23.6k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE27parse_bson_element_internalEim:
19649|  39.5k|    {
19650|  39.5k|        switch (element_type)
19651|  39.5k|        {
19652|  1.85k|            case 0x01: // double
  ------------------
  |  Branch (19652:13): [True: 1.85k, False: 37.6k]
  ------------------
19653|  1.85k|            {
19654|  1.85k|                double number{};
19655|  1.85k|                return get_number<double, true>(number) && emit_float(number);
  ------------------
  |  Branch (19655:24): [True: 1.82k, False: 32]
  |  Branch (19655:60): [True: 1.82k, False: 0]
  ------------------
19656|      0|            }
19657|       |
19658|  2.23k|            case 0x02: // string
  ------------------
  |  Branch (19658:13): [True: 2.23k, False: 37.2k]
  ------------------
19659|  2.23k|            {
19660|  2.23k|                std::int32_t len{};
19661|  2.23k|                string_t value;
19662|  2.23k|                return get_number<std::int32_t, true>(len) && get_bson_string(len, value) && sax->string(value);
  ------------------
  |  Branch (19662:24): [True: 2.21k, False: 15]
  |  Branch (19662:63): [True: 2.05k, False: 157]
  |  Branch (19662:94): [True: 2.05k, False: 0]
  ------------------
19663|      0|            }
19664|       |
19665|  2.20k|            case 0x03: // object
  ------------------
  |  Branch (19665:13): [True: 2.20k, False: 37.3k]
  ------------------
19666|  2.20k|            {
19667|  2.20k|                return open_bson_document(/*is_object*/true);
19668|      0|            }
19669|       |
19670|  3.53k|            case 0x04: // array
  ------------------
  |  Branch (19670:13): [True: 3.53k, False: 35.9k]
  ------------------
19671|  3.53k|            {
19672|  3.53k|                return open_bson_document(/*is_object*/false);
19673|      0|            }
19674|       |
19675|  2.88k|            case 0x05: // binary
  ------------------
  |  Branch (19675:13): [True: 2.88k, False: 36.6k]
  ------------------
19676|  2.88k|            {
19677|  2.88k|                std::int32_t len{};
19678|  2.88k|                binary_t value;
19679|  2.88k|                return get_number<std::int32_t, true>(len) && get_bson_binary(len, value) && sax->binary(value);
  ------------------
  |  Branch (19679:24): [True: 2.86k, False: 15]
  |  Branch (19679:63): [True: 2.63k, False: 229]
  |  Branch (19679:94): [True: 2.63k, False: 0]
  ------------------
19680|      0|            }
19681|       |
19682|  3.29k|            case 0x08: // boolean
  ------------------
  |  Branch (19682:13): [True: 3.29k, False: 36.2k]
  ------------------
19683|  3.29k|            {
19684|  3.29k|                std::uint8_t value{};
19685|  3.29k|                return get_number<std::uint8_t>(value) && sax->boolean(value != 0);
  ------------------
  |  Branch (19685:24): [True: 3.28k, False: 8]
  |  Branch (19685:59): [True: 3.28k, False: 0]
  ------------------
19686|      0|            }
19687|       |
19688|  19.9k|            case 0x0A: // null
  ------------------
  |  Branch (19688:13): [True: 19.9k, False: 19.5k]
  ------------------
19689|  19.9k|            {
19690|  19.9k|                return sax->null();
19691|      0|            }
19692|       |
19693|  1.17k|            case 0x10: // int32
  ------------------
  |  Branch (19693:13): [True: 1.17k, False: 38.3k]
  ------------------
19694|  1.17k|            {
19695|  1.17k|                std::int32_t value{};
19696|  1.17k|                return get_number<std::int32_t, true>(value) && emit_signed(value);
  ------------------
  |  Branch (19696:24): [True: 1.16k, False: 12]
  |  Branch (19696:65): [True: 1.16k, False: 0]
  ------------------
19697|      0|            }
19698|       |
19699|    772|            case 0x12: // int64
  ------------------
  |  Branch (19699:13): [True: 772, False: 38.7k]
  ------------------
19700|    772|            {
19701|    772|                std::int64_t value{};
19702|    772|                return get_number<std::int64_t, true>(value) && emit_signed(value);
  ------------------
  |  Branch (19702:24): [True: 752, False: 20]
  |  Branch (19702:65): [True: 752, False: 0]
  ------------------
19703|      0|            }
19704|       |
19705|  1.47k|            case 0x11: // uint64
  ------------------
  |  Branch (19705:13): [True: 1.47k, False: 38.0k]
  ------------------
19706|  1.47k|            {
19707|  1.47k|                std::uint64_t value{};
19708|  1.47k|                return get_number<std::uint64_t, true>(value) && emit_unsigned(value);
  ------------------
  |  Branch (19708:24): [True: 1.45k, False: 20]
  |  Branch (19708:66): [True: 1.45k, False: 0]
  ------------------
19709|      0|            }
19710|       |
19711|    127|            default: // anything else is not supported (yet)
  ------------------
  |  Branch (19711:13): [True: 127, False: 39.3k]
  ------------------
19712|    127|            {
19713|    127|                return bson_unsupported_type_error(element_type_parse_position, element_type);
19714|      0|            }
19715|  39.5k|        }
19716|  39.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberIdLb1EEEbRT_:
23596|  1.85k|    {
23597|       |        // read in the original format
23598|       |
23599|  1.85k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  1.85k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.85k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  1.85k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 1.85k]
  |  Branch (23603:34): [True: 1.85k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  1.85k|        return true;
23608|  1.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toIdEEbRT_PKc:
23503|  1.85k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  1.85k|        auto new_chars_read = ia.get_elements(&dest);
23507|  1.85k|        chars_read += new_chars_read;
23508|  1.85k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  1.85k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 32, False: 1.82k]
  |  |  ------------------
  ------------------
23509|     32|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     32|            ++chars_read;
23512|     32|            static_cast<void>(report_eof(context));
23513|     32|            return false;
23514|     32|        }
23515|  1.82k|        return true;
23516|  1.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIdEEmPT_m:
 9597|  1.85k|    {
 9598|  1.85k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  1.85k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10emit_floatIdEEbT_:
23682|  1.82k|    {
23683|  1.82k|        const auto result = static_cast<number_float_t>(number);
23684|  1.82k|        if (JSON_HEDLEY_UNLIKELY(std::isfinite(number) && !std::isfinite(result)))
  ------------------
  |  | 1697|  3.58k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.82k]
  |  |  |  Branch (1697:94): [True: 1.76k, False: 57]
  |  |  |  Branch (1697:94): [True: 0, False: 1.76k]
  |  |  ------------------
  ------------------
23685|      0|        {
23686|      0|            return out_of_range_error(exception_id::number_overflow, "number overflow", "value");
23687|      0|        }
23688|  1.82k|        return sax->number_float(result, no_source);
23689|  1.82k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE16get_token_stringEv:
24091|    356|    {
24092|    356|        return hex_byte(static_cast<std::uint8_t>(current));
24093|    356|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12number_floatEdRKSC_:
17856|  1.82k|    {
17857|  1.82k|        handle_value(val);
17858|  1.82k|        return true;
17859|  1.82k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12handle_valueIRdEEPSG_OT_:
17961|  1.82k|    {
17962|  1.82k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 1.82k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  1.82k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.82k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 568, False: 1.25k]
  |  Branch (17973:9): [True: 1.25k, False: 0]
  |  Branch (17973:9): [True: 1.82k, False: 0]
  ------------------
17974|       |
17975|  1.82k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 568, False: 1.25k]
  ------------------
17976|    568|        {
17977|    568|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    568|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    568|        }
17985|       |
17986|  1.25k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.25k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.25k, False: 0]
  ------------------
17987|  1.25k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.25k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.25k, False: 0]
  ------------------
17988|  1.25k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.25k|        return object_element;
17995|  1.25k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15get_bson_stringIiEEbT_RSC_:
19553|  2.21k|    {
19554|  2.21k|        if (JSON_HEDLEY_UNLIKELY(len < 1))
  ------------------
  |  | 1697|  2.21k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 38, False: 2.17k]
  |  |  ------------------
  ------------------
19555|     38|        {
19556|     38|            return bson_length_error("string length must be at least 1, is ", len, "string");
19557|     38|        }
19558|       |
19559|  2.17k|        if (JSON_HEDLEY_UNLIKELY(!get_string(len - static_cast<NumberType>(1), result)))
  ------------------
  |  | 1697|  2.17k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.17k]
  |  |  ------------------
  ------------------
19560|      0|        {
19561|      0|            return false;
19562|      0|        }
19563|       |
19564|  2.17k|        if (JSON_HEDLEY_UNLIKELY(get() != 0x00))
  ------------------
  |  | 1697|  2.17k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 34, False: 2.14k]
  |  |  ------------------
  ------------------
19565|     34|        {
19566|     34|            return last_byte_error(exception_id::unexpected_byte, "BSON string is not null-terminated", "string");
19567|     34|        }
19568|       |
19569|  2.14k|        return check_string_utf8(result, "string");
19570|  2.17k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17bson_length_errorIiEEbPKcT_SN_:
24021|    147|    {
24022|    147|        return last_byte_error(exception_id::unexpected_byte, concat(prefix, std::to_string(len)), context);
24023|    147|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_stringIiEEbT_RSC_:
23767|  2.17k|    {
23768|       |        // Strings are taken as is by default: none of CBOR (RFC 8949 §3.1
23769|       |        // leaves the choice to the decoder), MessagePack (whose spec
23770|       |        // explicitly allows a str object to contain an invalid byte
23771|       |        // sequence), UBJSON, BJData, or BSON requires a decoder to reject
23772|       |        // ill-formed UTF-8. Checking (and, with @ref error_handler_t::strict,
23773|       |        // rejecting, or with `replace`/`ignore`, sanitizing) is opt-in via
23774|       |        // @ref error_handler, applied by @ref check_string_utf8 at the call
23775|       |        // site to the whole string or, for an indefinite-length CBOR string,
23776|       |        // to each chunk on its own (RFC 8949, Section 3.2.3).
23777|  2.17k|        return get_bytes(len, "string", result);
23778|  2.17k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE9get_bytesIiSC_EEbT_PKcRT0_:
23893|  2.17k|    {
23894|       |        // a string that is in the block of input as a whole is appended from
23895|       |        // it, without the zero-filling resize() below
23896|  2.17k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [True: 0, Folded]
  |  Branch (23896:50): [True: 0, Folded]
  ------------------
23897|  2.17k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 749, False: 1.42k]
  ------------------
23898|    749|        {
23899|    749|            return true;
23900|    749|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  1.42k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  1.42k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 85, False: 1.34k]
  ------------------
23906|     85|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|     85|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 38, False: 47]
  ------------------
23910|     85|                                       ? static_cast<std::size_t>(len)
23911|     85|                                       : chunk_size;
23912|     85|            const std::size_t old_size = result.size();
23913|     85|            result.resize(old_size + wanted);
23914|       |            // resize() is required to make size() exactly old_size + wanted;
23915|       |            // that is the room get_elements() is allowed to write into
23916|     85|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|     85|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 85, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|     85|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|     85|            chars_read += bytes_read;
23921|     85|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|     85|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 85, False: 0]
  |  |  ------------------
  ------------------
23922|     85|            {
23923|       |                // premature end of input: shrink to what was actually read and
23924|       |                // report the failure at the first missing byte (same position
23925|       |                // accounting as get_to() for partial number reads)
23926|     85|                result.resize(old_size + bytes_read);
23927|     85|                ++chars_read;
23928|     85|                current = char_traits<char_type>::eof();
23929|     85|                return unexpect_eof(context);
23930|     85|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|      0|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|      0|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 0, False: 0]
  ------------------
23933|      0|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|      0|        }
23935|  1.34k|        return true;
23936|  1.42k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17append_from_blockIiEEbT_RSC_NS4_17integral_constantIbLb1EEE:
23942|  2.17k|    {
23943|  2.17k|        if (len <= 0)
  ------------------
  |  Branch (23943:13): [True: 1.34k, False: 834]
  ------------------
23944|  1.34k|        {
23945|  1.34k|            return false;
23946|  1.34k|        }
23947|       |        // (len > 0, so the unsigned type holds it; casting a signed char
23948|       |        // straight to std::size_t would trip bugprone-signed-char-misuse)
23949|    834|        const auto ulen = static_cast<typename std::make_unsigned<NumberType>::type>(len);
23950|    834|        const std::size_t remaining = ia.bulk_remaining();
23951|    834|        if (static_cast<std::uintmax_t>(ulen) > static_cast<std::uintmax_t>(remaining))
  ------------------
  |  Branch (23951:13): [True: 85, False: 749]
  ------------------
23952|     85|        {
23953|     85|            return false; // (the loop reports the premature end)
23954|     85|        }
23955|    749|        const auto n = static_cast<std::size_t>(ulen);
23956|    749|        result.append(reinterpret_cast<const typename string_t::value_type*>(ia.bulk_data()), n);
23957|    749|        ia.bulk_skip(n);
23958|    749|        chars_read += n;
23959|    749|        return true;
23960|    834|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIcEEmPT_m:
 9597|     85|    {
 9598|     85|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|     85|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE6stringERSC_:
17862|  2.05k|    {
17863|       |        // json_sax documents that the passed value may be moved from,
17864|       |        // so hand the buffer over instead of copying it
17865|  2.05k|        handle_value(std::move(val));
17866|  2.05k|        return true;
17867|  2.05k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12handle_valueISC_EEPSG_OT_:
17961|  2.05k|    {
17962|  2.05k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 2.05k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  2.05k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  2.05k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 943, False: 1.11k]
  |  Branch (17973:9): [True: 1.11k, False: 0]
  |  Branch (17973:9): [True: 2.05k, False: 0]
  ------------------
17974|       |
17975|  2.05k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 943, False: 1.11k]
  ------------------
17976|    943|        {
17977|    943|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    943|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    943|        }
17985|       |
17986|  1.11k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.11k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.11k, False: 0]
  ------------------
17987|  1.11k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.11k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.11k, False: 0]
  ------------------
17988|  1.11k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.11k|        return object_element;
17995|  1.11k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15get_bson_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
19583|  2.86k|    {
19584|  2.86k|        if (JSON_HEDLEY_UNLIKELY(len < 0))
  ------------------
  |  | 1697|  2.86k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 35, False: 2.83k]
  |  |  ------------------
  ------------------
19585|     35|        {
19586|     35|            return bson_length_error("byte array length cannot be negative, is ", len, "binary");
19587|     35|        }
19588|       |
19589|       |        // All BSON binary values have a subtype
19590|  2.83k|        std::uint8_t subtype{};
19591|  2.83k|        if (JSON_HEDLEY_UNLIKELY(!get_number<std::uint8_t>(subtype)))
  ------------------
  |  | 1697|  2.83k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 2.83k]
  |  |  ------------------
  ------------------
19592|      0|        {
19593|      0|            return false;
19594|      0|        }
19595|  2.83k|        result.set_subtype(subtype);
19596|       |
19597|       |        // the "old binary" subtype 0x02 starts with an int32 that repeats the
19598|       |        // size of the payload following it; the payload does not include it
19599|  2.83k|        if (subtype == 0x02)
  ------------------
  |  Branch (19599:13): [True: 397, False: 2.43k]
  ------------------
19600|    397|        {
19601|    397|            return get_bson_old_binary(len, result);
19602|    397|        }
19603|       |
19604|  2.43k|        return get_binary(len, result);
19605|  2.83k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE19get_bson_old_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
19617|    397|    {
19618|    397|        if (JSON_HEDLEY_UNLIKELY(len < 4))
  ------------------
  |  | 1697|    397|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 3, False: 394]
  |  |  ------------------
  ------------------
19619|      3|        {
19620|      3|            return bson_length_error("length of binary subtype 0x02 must be at least 4, is ", len, "binary");
19621|      3|        }
19622|       |
19623|    394|        std::int32_t inner_length{};
19624|    394|        if (JSON_HEDLEY_UNLIKELY((!get_number<std::int32_t, true>(inner_length))))
  ------------------
  |  | 1697|    394|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 394]
  |  |  ------------------
  ------------------
19625|      0|        {
19626|      0|            return false;
19627|      0|        }
19628|       |
19629|    394|        if (JSON_HEDLEY_UNLIKELY(static_cast<std::int64_t>(inner_length) != static_cast<std::int64_t>(len) - 4))
  ------------------
  |  | 1697|    394|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 71, False: 323]
  |  |  ------------------
  ------------------
19630|     71|        {
19631|     71|            return bson_length_error("inner length of binary subtype 0x02 does not match the payload size; inner length is ", inner_length, "binary");
19632|     71|        }
19633|       |
19634|    323|        return get_binary(inner_length, result);
19635|    394|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_binaryIiEEbT_RNS0_27byte_container_with_subtypeISF_EE:
23867|  2.70k|    {
23868|  2.70k|        return get_bytes(len, "binary", result);
23869|  2.70k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE9get_bytesIiNS0_27byte_container_with_subtypeISF_EEEEbT_PKcRT0_:
23893|  2.70k|    {
23894|       |        // a string that is in the block of input as a whole is appended from
23895|       |        // it, without the zero-filling resize() below
23896|  2.70k|        constexpr bool from_block = bulk_scan && std::is_same<ContainerType, string_t>::value;
  ------------------
  |  Branch (23896:37): [True: 0, Folded]
  |  Branch (23896:50): [Folded, False: 0]
  ------------------
23897|  2.70k|        if (append_from_block(len, result, std::integral_constant<bool, from_block> {}))
  ------------------
  |  Branch (23897:13): [True: 0, False: 2.70k]
  ------------------
23898|      0|        {
23899|      0|            return true;
23900|      0|        }
23901|       |
23902|       |        // upper bound on the number of bytes read (and allocated) per chunk
23903|  2.70k|        constexpr std::size_t chunk_size = 4096;
23904|       |
23905|  3.75k|        while (len > 0)
  ------------------
  |  Branch (23905:16): [True: 1.11k, False: 2.63k]
  ------------------
23906|  1.11k|        {
23907|       |            // number of bytes to read this iteration: min(chunk_size, len),
23908|       |            // computed without truncating chunk_size to a narrow NumberType
23909|  1.11k|            const std::size_t wanted = (static_cast<std::uintmax_t>(len) < static_cast<std::uintmax_t>(chunk_size))
  ------------------
  |  Branch (23909:40): [True: 1.08k, False: 29]
  ------------------
23910|  1.11k|                                       ? static_cast<std::size_t>(len)
23911|  1.11k|                                       : chunk_size;
23912|  1.11k|            const std::size_t old_size = result.size();
23913|  1.11k|            result.resize(old_size + wanted);
23914|       |            // resize() is required to make size() exactly old_size + wanted;
23915|       |            // that is the room get_elements() is allowed to write into
23916|  1.11k|            JSON_ASSERT(result.size() == old_size + wanted);
  ------------------
  |  | 2653|  1.11k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23916:13): [True: 1.11k, False: 0]
  ------------------
23917|       |            // false positive: bytes_read is read on the next lines
23918|       |            // @infer-ignore DEAD_STORE
23919|  1.11k|            const std::size_t bytes_read = ia.get_elements(&result[old_size], wanted);
23920|  1.11k|            chars_read += bytes_read;
23921|  1.11k|            if (JSON_HEDLEY_UNLIKELY(bytes_read < wanted))
  ------------------
  |  | 1697|  1.11k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 66, False: 1.04k]
  |  |  ------------------
  ------------------
23922|     66|            {
23923|       |                // premature end of input: shrink to what was actually read and
23924|       |                // report the failure at the first missing byte (same position
23925|       |                // accounting as get_to() for partial number reads)
23926|     66|                result.resize(old_size + bytes_read);
23927|     66|                ++chars_read;
23928|     66|                current = char_traits<char_type>::eof();
23929|     66|                return unexpect_eof(context);
23930|     66|            }
23931|       |            // a full chunk was read; get_elements() never returns more than requested
23932|  1.04k|            JSON_ASSERT(bytes_read == wanted);
  ------------------
  |  | 2653|  1.04k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (23932:13): [True: 1.04k, False: 0]
  ------------------
23933|  1.04k|            len = static_cast<NumberType>(len - static_cast<NumberType>(wanted));
23934|  1.04k|        }
23935|  2.63k|        return true;
23936|  2.70k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE17append_from_blockIiNS0_27byte_container_with_subtypeISF_EEEEbT_RT0_NS4_17integral_constantIbLb0EEE:
23964|  2.70k|    {
23965|  2.70k|        return false;
23966|  2.70k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIhEEmPT_m:
 9597|  7.24k|    {
 9598|  7.24k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  7.24k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE6binaryERNS0_27byte_container_with_subtypeISF_EE:
17870|  2.63k|    {
17871|       |        // json_sax documents that the passed value may be moved from,
17872|       |        // so hand the buffer over instead of copying it
17873|  2.63k|        handle_value(std::move(val));
17874|  2.63k|        return true;
17875|  2.63k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12handle_valueINS0_27byte_container_with_subtypeISF_EEEEPSG_OT_:
17961|  2.63k|    {
17962|  2.63k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 2.63k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  2.63k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  2.63k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 771, False: 1.86k]
  |  Branch (17973:9): [True: 1.86k, False: 0]
  |  Branch (17973:9): [True: 2.63k, False: 0]
  ------------------
17974|       |
17975|  2.63k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 771, False: 1.86k]
  ------------------
17976|    771|        {
17977|    771|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    771|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    771|        }
17985|       |
17986|  1.86k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.86k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.86k, False: 0]
  ------------------
17987|  1.86k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.86k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.86k, False: 0]
  ------------------
17988|  1.86k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.86k|        return object_element;
17995|  1.86k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberIhLb0EEEbRT_:
23596|  6.12k|    {
23597|       |        // read in the original format
23598|       |
23599|  6.12k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  6.12k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 6.12k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  6.12k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 6.10k, False: 23]
  |  Branch (23603:34): [Folded, False: 6.10k]
  |  Branch (23603:57): [True: 0, False: 6.10k]
  ------------------
23604|  6.10k|        {
23605|  6.10k|            byte_swap(result);
23606|  6.10k|        }
23607|  6.12k|        return true;
23608|  6.12k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toIhEEbRT_PKc:
23503|  6.12k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  6.12k|        auto new_chars_read = ia.get_elements(&dest);
23507|  6.12k|        chars_read += new_chars_read;
23508|  6.12k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  6.12k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 23, False: 6.10k]
  |  |  ------------------
  ------------------
23509|     23|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     23|            ++chars_read;
23512|     23|            static_cast<void>(report_eof(context));
23513|     23|            return false;
23514|     23|        }
23515|  6.10k|        return true;
23516|  6.12k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE9byte_swapIhEEvRT_:
23555|  6.10k|    {
23556|  6.10k|        constexpr std::size_t sz = sizeof(number);
23557|       |#ifdef __cpp_lib_byteswap
23558|       |        if constexpr (sz == 1)
23559|       |        {
23560|       |            return;
23561|       |        }
23562|       |        else if constexpr(std::is_integral_v<NumberType>)
23563|       |        {
23564|       |            number = std::byteswap(number);
23565|       |            return;
23566|       |        }
23567|       |        else
23568|       |        {
23569|       |#endif
23570|  6.10k|            auto* ptr = reinterpret_cast<std::uint8_t*>(&number);
23571|  6.10k|            for (std::size_t i = 0; i < sz / 2; ++i)
  ------------------
  |  Branch (23571:37): [True: 0, False: 6.10k]
  ------------------
23572|      0|            {
23573|      0|                std::swap(ptr[i], ptr[sz - i - 1]);
23574|      0|            }
23575|       |#ifdef __cpp_lib_byteswap
23576|       |        }
23577|       |#endif
23578|  6.10k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE7booleanEb:
17838|  3.28k|    {
17839|  3.28k|        handle_value(val);
17840|  3.28k|        return true;
17841|  3.28k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12handle_valueIRbEEPSG_OT_:
17961|  3.28k|    {
17962|  3.28k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 3.28k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  3.28k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  3.28k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 1.87k, False: 1.40k]
  |  Branch (17973:9): [True: 1.40k, False: 0]
  |  Branch (17973:9): [True: 3.28k, False: 0]
  ------------------
17974|       |
17975|  3.28k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 1.87k, False: 1.40k]
  ------------------
17976|  1.87k|        {
17977|  1.87k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  1.87k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  1.87k|        }
17985|       |
17986|  1.40k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.40k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.40k, False: 0]
  ------------------
17987|  1.40k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.40k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.40k, False: 0]
  ------------------
17988|  1.40k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.40k|        return object_element;
17995|  1.40k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE4nullEv:
17832|  19.9k|    {
17833|  19.9k|        handle_value(nullptr);
17834|  19.9k|        return true;
17835|  19.9k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12handle_valueIDnEEPSG_OT_:
17961|  19.9k|    {
17962|  19.9k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 19.9k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  19.9k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  19.9k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 8.43k, False: 11.5k]
  |  Branch (17973:9): [True: 11.5k, False: 0]
  |  Branch (17973:9): [True: 19.9k, False: 0]
  ------------------
17974|       |
17975|  19.9k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 8.43k, False: 11.5k]
  ------------------
17976|  8.43k|        {
17977|  8.43k|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|  8.43k|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|  8.43k|        }
17985|       |
17986|  11.5k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  11.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 11.5k, False: 0]
  ------------------
17987|  11.5k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  11.5k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 11.5k, False: 0]
  ------------------
17988|  11.5k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  11.5k|        return object_element;
17995|  11.5k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE11emit_signedIiEEbT_:
23628|  1.16k|    {
23629|  1.16k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|  1.16k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.16k, False: 0]
  |  |  ------------------
  ------------------
23630|  1.16k|        {
23631|  1.16k|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|  1.16k|        }
23633|      0|        if (value_in_range_of<number_unsigned_t>(number))
  ------------------
  |  Branch (23633:13): [True: 0, False: 0]
  ------------------
23634|      0|        {
23635|      0|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23636|      0|        }
23637|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23638|      0|        return emit_float(static_cast<long double>(number));
23639|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE14number_integerEl:
17844|  1.91k|    {
17845|  1.91k|        handle_value(val);
17846|  1.91k|        return true;
17847|  1.91k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12handle_valueIRlEEPSG_OT_:
17961|  1.91k|    {
17962|  1.91k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 1.91k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  1.91k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.91k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 617, False: 1.29k]
  |  Branch (17973:9): [True: 1.29k, False: 0]
  |  Branch (17973:9): [True: 1.91k, False: 0]
  ------------------
17974|       |
17975|  1.91k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 617, False: 1.29k]
  ------------------
17976|    617|        {
17977|    617|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    617|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    617|        }
17985|       |
17986|  1.29k|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.29k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 1.29k, False: 0]
  ------------------
17987|  1.29k|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|  1.29k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 1.29k, False: 0]
  ------------------
17988|  1.29k|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|  1.29k|        return object_element;
17995|  1.29k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE15number_unsignedEm:
17850|  1.45k|    {
17851|  1.45k|        handle_value(val);
17852|  1.45k|        return true;
17853|  1.45k|    }
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEE12handle_valueIRmEEPSG_OT_:
17961|  1.45k|    {
17962|  1.45k|        if (ref_stack.empty())
  ------------------
  |  Branch (17962:13): [True: 0, False: 1.45k]
  ------------------
17963|      0|        {
17964|      0|            root = BasicJsonType(std::forward<Value>(v));
17965|       |
17966|       |#if JSON_DIAGNOSTIC_POSITIONS
17967|       |            diagnostic_positions::set_from_lexer(root, m_lexer_ref);
17968|       |#endif
17969|       |
17970|      0|            return &root;
17971|      0|        }
17972|       |
17973|  1.45k|        JSON_ASSERT(ref_stack.back()->is_array() || ref_stack.back()->is_object());
  ------------------
  |  | 2653|  1.45k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17973:9): [True: 488, False: 968]
  |  Branch (17973:9): [True: 968, False: 0]
  |  Branch (17973:9): [True: 1.45k, False: 0]
  ------------------
17974|       |
17975|  1.45k|        if (ref_stack.back()->is_array())
  ------------------
  |  Branch (17975:13): [True: 488, False: 968]
  ------------------
17976|    488|        {
17977|    488|            ref_stack.back()->m_data.m_value.array->emplace_back(std::forward<Value>(v));
17978|       |
17979|       |#if JSON_DIAGNOSTIC_POSITIONS
17980|       |            diagnostic_positions::set_from_lexer(ref_stack.back()->m_data.m_value.array->back(), m_lexer_ref);
17981|       |#endif
17982|       |
17983|    488|            return &(ref_stack.back()->m_data.m_value.array->back());
17984|    488|        }
17985|       |
17986|    968|        JSON_ASSERT(ref_stack.back()->is_object());
  ------------------
  |  | 2653|    968|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17986:9): [True: 968, False: 0]
  ------------------
17987|    968|        JSON_ASSERT(object_element);
  ------------------
  |  | 2653|    968|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (17987:9): [True: 968, False: 0]
  ------------------
17988|    968|        *object_element = BasicJsonType(std::forward<Value>(v));
17989|       |
17990|       |#if JSON_DIAGNOSTIC_POSITIONS
17991|       |        diagnostic_positions::set_from_lexer(*object_element, m_lexer_ref);
17992|       |#endif
17993|       |
17994|    968|        return object_element;
17995|    968|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberIlLb1EEEbRT_:
23596|    772|    {
23597|       |        // read in the original format
23598|       |
23599|    772|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|    772|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 772]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|    772|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 772]
  |  Branch (23603:34): [True: 772, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|    772|        return true;
23608|    772|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toIlEEbRT_PKc:
23503|    772|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|    772|        auto new_chars_read = ia.get_elements(&dest);
23507|    772|        chars_read += new_chars_read;
23508|    772|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|    772|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 20, False: 752]
  |  |  ------------------
  ------------------
23509|     20|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     20|            ++chars_read;
23512|     20|            static_cast<void>(report_eof(context));
23513|     20|            return false;
23514|     20|        }
23515|    752|        return true;
23516|    772|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsIlEEmPT_m:
 9597|    772|    {
 9598|    772|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|    772|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE11emit_signedIlEEbT_:
23628|    752|    {
23629|    752|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_integer_t>(number)))
  ------------------
  |  | 1696|    752|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 752, False: 0]
  |  |  ------------------
  ------------------
23630|    752|        {
23631|    752|            return sax->number_integer(static_cast<number_integer_t>(number));
23632|    752|        }
23633|      0|        if (value_in_range_of<number_unsigned_t>(number))
  ------------------
  |  Branch (23633:13): [True: 0, False: 0]
  ------------------
23634|      0|        {
23635|      0|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23636|      0|        }
23637|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23638|      0|        return emit_float(static_cast<long double>(number));
23639|      0|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE10get_numberImLb1EEEbRT_:
23596|  1.47k|    {
23597|       |        // read in the original format
23598|       |
23599|  1.47k|        if (JSON_HEDLEY_UNLIKELY(!get_to(result, "number")))
  ------------------
  |  | 1697|  1.47k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 0, False: 1.47k]
  |  |  ------------------
  ------------------
23600|      0|        {
23601|      0|            return false;
23602|      0|        }
23603|  1.47k|        if (is_little_endian != (InputIsLittleEndian || input_format == input_format_t::bjdata))
  ------------------
  |  Branch (23603:13): [True: 0, False: 1.47k]
  |  Branch (23603:34): [True: 1.47k, Folded]
  |  Branch (23603:57): [True: 0, False: 0]
  ------------------
23604|      0|        {
23605|      0|            byte_swap(result);
23606|      0|        }
23607|  1.47k|        return true;
23608|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE6get_toImEEbRT_PKc:
23503|  1.47k|    {
23504|       |        // false positive: new_chars_read is read on the next lines
23505|       |        // @infer-ignore DEAD_STORE
23506|  1.47k|        auto new_chars_read = ia.get_elements(&dest);
23507|  1.47k|        chars_read += new_chars_read;
23508|  1.47k|        if (JSON_HEDLEY_UNLIKELY(new_chars_read < sizeof(T)))
  ------------------
  |  | 1697|  1.47k|#  define JSON_HEDLEY_UNLIKELY(expr)                    __builtin_expect                 (!!(expr),    0                  )
  |  |  ------------------
  |  |  |  Branch (1697:57): [True: 20, False: 1.45k]
  |  |  ------------------
  ------------------
23509|     20|        {
23510|       |            // in case of failure, advance position by 1 to report the failing location
23511|     20|            ++chars_read;
23512|     20|            static_cast<void>(report_eof(context));
23513|     20|            return false;
23514|     20|        }
23515|  1.45k|        return true;
23516|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter12get_elementsImEEmPT_m:
 9597|  1.47k|    {
 9598|  1.47k|        return fread(dest, 1, sizeof(T) * count, m_file);
 9599|  1.47k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE13emit_unsignedImEEbT_:
23656|  1.45k|    {
23657|  1.45k|        if (JSON_HEDLEY_LIKELY(value_in_range_of<number_unsigned_t>(number)))
  ------------------
  |  | 1696|  1.45k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 1.45k, False: 0]
  |  |  ------------------
  ------------------
23658|  1.45k|        {
23659|  1.45k|            return sax->number_unsigned(static_cast<number_unsigned_t>(number));
23660|  1.45k|        }
23661|       |        // std::isfinite has no integer overloads in MSVC's <cmath>
23662|      0|        return emit_float(static_cast<long double>(number));
23663|  1.45k|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE27bson_unsupported_type_errorEmi:
24039|    127|    {
24040|    127|        const std::string cr_str = hex_byte(static_cast<std::uint8_t>(element_type));
24041|    127|        return sax->parse_error(position, cr_str,
24042|    127|                                parse_error::create(exception_id::bson_unsupported_type, position, concat("Unsupported BSON record type 0x", cr_str), nullptr));
24043|    127|    }
_ZNK8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE15last_byte_errorENS1_12exception_idERKSC_PKcSP_:
24055|    344|    {
24056|       |        // with a tail, the message reads "<detail><tail>; last byte: 0x<token>"
24057|    344|        return sax->parse_error(chars_read, get_token_string(), parse_error::create(id_, chars_read,
24058|    344|                                exception_message(tail == nullptr ? detail : concat(detail, tail, "; last byte: 0x", get_token_string()), context), nullptr));
  ------------------
  |  Branch (24058:51): [True: 332, False: 12]
  ------------------
24059|    344|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE3getEv:
23488|  55.0k|    {
23489|  55.0k|        ++chars_read;
23490|  55.0k|        return current = ia.get_character();
23491|  55.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter13get_characterEv:
 9568|  55.0k|    {
 9569|       |        // what getc_unlocked() does, while the buffer has characters
 9570|  55.0k|        const char* const next = buffer_ptr();
 9571|  55.0k|        if (JSON_HEDLEY_LIKELY(next != buffer_end()))
  ------------------
  |  | 1696|  55.0k|#  define JSON_HEDLEY_LIKELY(expr)                      __builtin_expect                 (!!(expr),    1                  )
  |  |  ------------------
  |  |  |  Branch (1696:57): [True: 50.8k, False: 4.23k]
  |  |  ------------------
  ------------------
 9572|  50.8k|        {
 9573|  50.8k|            current_in_buffer = true;
 9574|  50.8k|            buffer_bump(1);
 9575|  50.8k|            return std::char_traits<char>::to_int_type(*next);
 9576|  50.8k|        }
 9577|  4.23k|        return get_character_slow();
 9578|  55.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter18get_character_slowEv:
 9706|  4.23k|    {
 9707|  4.23k|        if (token_segment != nullptr)
  ------------------
  |  Branch (9707:13): [True: 0, False: 4.23k]
  ------------------
 9708|      0|        {
 9709|      0|            token_carry.append(token_segment, buffer_end());
 9710|      0|            token_segment = nullptr;
 9711|      0|        }
 9712|  4.23k|        const auto res = getc_unlocked(m_file);
 9713|  4.23k|        if (res == EOF)
  ------------------
  |  Branch (9713:13): [True: 4.23k, False: 0]
  ------------------
 9714|  4.23k|        {
 9715|  4.23k|            current_in_buffer = false;
 9716|  4.23k|            return std::char_traits<char>::eof();
 9717|  4.23k|        }
 9718|       |        // the character was taken from the refilled buffer, at buffer_ptr() - 1
 9719|      0|        current_in_buffer = true;
 9720|      0|        if (tracking_token)
  ------------------
  |  Branch (9720:13): [True: 0, False: 0]
  ------------------
 9721|      0|        {
 9722|      0|            token_segment = buffer_ptr() - 1;
 9723|      0|        }
 9724|      0|        return res;
 9725|  4.23k|    }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEE16position_bindingD2Ev:
19134|  5.04k|        {
19135|  5.04k|            if (parser != nullptr)
  ------------------
  |  Branch (19135:17): [True: 5.04k, False: 0]
  ------------------
19136|  5.04k|            {
19137|  5.04k|                parser->set_reserve_state(saved);
19138|  5.04k|            }
19139|  5.04k|        }
_ZN8nlohmann16json_abi_v3_12_06detail13binary_readerINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterENS1_26json_sax_dom_binary_parserISG_SH_EEED2Ev:
19002|  5.04k|    ~binary_reader() = default;
_ZN8nlohmann16json_abi_v3_12_06detail26json_sax_dom_binary_parserINS0_10basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS0_14adl_serializerENS6_IhNSA_IhEEEEvEENS1_18file_input_adapterEED2Ev:
17829|  5.04k|    ~json_sax_dom_binary_parser() = default;
_ZN8nlohmann16json_abi_v3_12_06detail13input_adapterEP8_IO_FILE:
10862|  5.04k|{
10863|  5.04k|    if (file == nullptr)
  ------------------
  |  Branch (10863:9): [True: 0, False: 5.04k]
  ------------------
10864|      0|    {
10865|      0|        JSON_THROW(parse_error::create(exception_id::syntax_error, 0, empty_input_message(), nullptr));
  ------------------
  |  | 2618|      0|    #define JSON_THROW(exception) throw exception
  ------------------
10866|      0|    }
10867|  5.04k|    return file_input_adapter(file);
10868|  5.04k|}
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapterC2EP8_IO_FILE:
 9539|  5.04k|        : m_file(f)
 9540|  5.04k|    {
 9541|  5.04k|        JSON_ASSERT(m_file != nullptr);
  ------------------
  |  | 2653|  5.04k|    #define JSON_ASSERT(x) assert(x)
  ------------------
  |  Branch (9541:9): [True: 5.04k, False: 0]
  ------------------
 9542|  5.04k|        lock();
 9543|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter4lockEv:
 9733|  5.04k|    {
 9734|  5.04k|#if JSON_UNLOCKED_FILE_IO == 1
 9735|  5.04k|        flockfile(m_file);
 9736|       |#elif JSON_UNLOCKED_FILE_IO == 2
 9737|       |        _lock_file(m_file);
 9738|       |#endif
 9739|  5.04k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapterD2Ev:
 9562|  10.0k|    {
 9563|  10.0k|        unlock();
 9564|  10.0k|    }
_ZN8nlohmann16json_abi_v3_12_06detail18file_input_adapter6unlockEv:
 9742|  10.0k|    {
 9743|       |        // a moved-from adapter has no file and holds no lock
 9744|  10.0k|        if (m_file == nullptr)
  ------------------
  |  Branch (9744:13): [True: 5.04k, False: 5.04k]
  ------------------
 9745|  5.04k|        {
 9746|  5.04k|            return;
 9747|  5.04k|        }
 9748|  5.04k|#if JSON_UNLOCKED_FILE_IO == 1
 9749|  5.04k|        funlockfile(m_file);
 9750|       |#elif JSON_UNLOCKED_FILE_IO == 2
 9751|       |        _unlock_file(m_file);
 9752|       |#endif
 9753|  5.04k|    }

LLVMFuzzerTestOneInput:
   46|  5.04k|{
   47|  5.04k|    std::vector<uint8_t> const vec1(data, data + size);
   48|       |
   49|       |    // step 0: parse input without exceptions
   50|  5.04k|    bool noexcept_threw = false;
   51|  5.04k|    json const j_noexcept = parse_without_exceptions([&] { return json::from_bson(vec1, true, false); }, noexcept_threw);
   52|       |    // whether step 1 succeeded; if not, the catch blocks below check that
   53|       |    // step 0 failed, too
   54|  5.04k|    bool parsed = false;
   55|       |
   56|  5.04k|    try
   57|  5.04k|    {
   58|       |        // step 1: parse input
   59|  5.04k|        json const j1 = json::from_bson(vec1);
   60|  5.04k|        parsed = true;
   61|       |
   62|       |        // without exceptions, the same input must give the same value
   63|  5.04k|        assert(!noexcept_threw && !j_noexcept.is_discarded() && same_value(j_noexcept, j1));
  ------------------
  |  Branch (63:9): [True: 3.28k, False: 1.76k]
  |  Branch (63:9): [True: 3.28k, False: 0]
  |  Branch (63:9): [True: 3.28k, False: 0]
  |  Branch (63:9): [True: 3.28k, False: 1.76k]
  ------------------
   64|       |
   65|  3.28k|        try
   66|  3.28k|        {
   67|       |            // step 2: round trip
   68|  3.28k|            std::vector<uint8_t> const vec2 = json::to_bson(j1);
   69|       |
   70|       |            // parse serialization
   71|  3.28k|            json const j2 = json::from_bson(vec2);
   72|       |
   73|       |            // serializations must match
   74|  3.28k|            assert(json::to_bson(j2) == vec2);
  ------------------
  |  Branch (74:13): [True: 3.28k, False: 0]
  ------------------
   75|  3.28k|        }
   76|  3.28k|        catch (const json::parse_error&)
   77|  3.28k|        {
   78|       |            // parsing a BSON serialization must not fail
   79|      0|            assert(false);
  ------------------
  |  Branch (79:13): [Folded, False: 0]
  ------------------
   80|      0|        }
   81|  3.28k|    }
   82|  5.04k|    catch (const json::parse_error&)
   83|  5.04k|    {
   84|       |        // parse errors are ok, because input may be random bytes
   85|  1.76k|        assert(parsed || noexcept_threw || j_noexcept.is_discarded());
  ------------------
  |  Branch (85:9): [True: 0, False: 1.76k]
  |  Branch (85:9): [True: 0, False: 1.76k]
  |  Branch (85:9): [True: 1.76k, False: 0]
  |  Branch (85:9): [True: 1.76k, False: 0]
  ------------------
   86|  1.76k|    }
   87|  5.04k|    catch (const json::type_error&)
   88|  5.04k|    {
   89|       |        // type errors can occur during parsing, too
   90|      0|        assert(parsed || noexcept_threw || j_noexcept.is_discarded());
  ------------------
  |  Branch (90:9): [True: 0, False: 0]
  |  Branch (90:9): [True: 0, False: 0]
  |  Branch (90:9): [True: 0, False: 0]
  |  Branch (90:9): [True: 0, False: 0]
  ------------------
   91|      0|    }
   92|  5.04k|    catch (const json::out_of_range&)
   93|  5.04k|    {
   94|       |        // out of range errors can occur during parsing, too
   95|      0|        assert(parsed || noexcept_threw || j_noexcept.is_discarded());
  ------------------
  |  Branch (95:9): [True: 0, False: 0]
  |  Branch (95:9): [True: 0, False: 0]
  |  Branch (95:9): [True: 0, False: 0]
  |  Branch (95:9): [True: 0, False: 0]
  ------------------
   96|      0|    }
   97|       |
   98|       |    // step 3: the other input adapters must read the data alike
   99|  5.04k|    check_input_adapters(data, size, read_bson());
  100|       |
  101|       |    // return 0 - non-zero return values are reserved for future use
  102|  5.04k|    return 0;
  103|  5.04k|}
fuzzer-parse_bson.cpp:_ZZ22LLVMFuzzerTestOneInputENK3$_0clEv:
   51|  5.04k|    json const j_noexcept = parse_without_exceptions([&] { return json::from_bson(vec1, true, false); }, noexcept_threw);
fuzzer-parse_bson.cpp:_ZNK12_GLOBAL__N_19read_bsonclIJRPKhS3_EEEN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS8_6vectorENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEblmdSE_NS6_14adl_serializerENSA_IhNSE_IhEEEEvEEDpOT_:
   38|  5.04k|    {
   39|  5.04k|        return json::from_bson(std::forward<Args>(args)...);
   40|  5.04k|    }
fuzzer-parse_bson.cpp:_ZNK12_GLOBAL__N_19read_bsonclIJRNSt3__119basic_istringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEEEN8nlohmann16json_abi_v3_12_010basic_jsonINS2_3mapENS2_6vectorENS2_12basic_stringIcS5_S7_EEblmdS6_NSB_14adl_serializerENSE_IhNS6_IhEEEEvEEDpOT_:
   38|  5.04k|    {
   39|  5.04k|        return json::from_bson(std::forward<Args>(args)...);
   40|  5.04k|    }
fuzzer-parse_bson.cpp:_ZNK12_GLOBAL__N_19read_bsonclIJNSt3__121__list_const_iteratorIhPvEES5_EEEN8nlohmann16json_abi_v3_12_010basic_jsonINS2_3mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdSE_NS7_14adl_serializerENSA_IhNSE_IhEEEEvEEDpOT_:
   38|  5.04k|    {
   39|  5.04k|        return json::from_bson(std::forward<Args>(args)...);
   40|  5.04k|    }
fuzzer-parse_bson.cpp:_ZNK12_GLOBAL__N_19read_bsonclIJRP8_IO_FILEEEEN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS8_6vectorENS8_12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEEblmdSE_NS6_14adl_serializerENSA_IhNSE_IhEEEEvEEDpOT_:
   38|  5.04k|    {
   39|  5.04k|        return json::from_bson(std::forward<Args>(args)...);
   40|  5.04k|    }

_Z10same_valueRKN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEESG_:
   34|  3.28k|{
   35|  3.28k|    return lhs.dump(-1, ' ', false, json::error_handler_t::keep) == rhs.dump(-1, ' ', false, json::error_handler_t::keep);
   36|  3.28k|}
fuzzer-parse_bson.cpp:_Z24parse_without_exceptionsIZ22LLVMFuzzerTestOneInputE3$_0EN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS4_6vectorENS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEblmdSA_NS2_14adl_serializerENS6_IhNSA_IhEEEEvEET_Rb:
   44|  5.04k|{
   45|  5.04k|    threw = false;
   46|  5.04k|    try
   47|  5.04k|    {
   48|  5.04k|        return parse();
   49|  5.04k|    }
   50|  5.04k|    catch (const json::parse_error&)
   51|  5.04k|    {
   52|      0|        assert(false);
  ------------------
  |  Branch (52:9): [Folded, False: 0]
  ------------------
   53|      0|    }
   54|  5.04k|    catch (const json::exception&)
   55|  5.04k|    {
   56|      0|        threw = true;
   57|      0|    }
   58|      0|    return {};
   59|  5.04k|}
fuzzer-parse_bson.cpp:_Z20check_input_adaptersIN12_GLOBAL__N_19read_bsonEEvPKhmRKT_:
  117|  5.04k|{
  118|  5.04k|    const read_outcome expected = read_with(parse, data, data + size);
  119|       |
  120|       |    // stream adapter
  121|  5.04k|    {
  122|  5.04k|        std::istringstream stream(std::string(reinterpret_cast<const char*>(data), size));
  123|  5.04k|        assert(read_with(parse, stream) == expected);
  ------------------
  |  Branch (123:9): [True: 5.04k, False: 0]
  ------------------
  124|  5.04k|    }
  125|       |
  126|       |    // iterator adapter on a non-contiguous range
  127|  5.04k|    {
  128|  5.04k|        const std::list<std::uint8_t> list(data, data + size);
  129|  5.04k|        assert(read_with(parse, list.begin(), list.end()) == expected);
  ------------------
  |  Branch (129:9): [True: 5.04k, False: 0]
  ------------------
  130|  5.04k|    }
  131|       |
  132|  5.04k|#if defined(__unix__) || defined(__APPLE__)
  133|       |    // FILE* adapter; fmemopen may refuse an empty buffer
  134|  5.04k|    {
  135|  5.04k|        std::vector<std::uint8_t> buffer(data, data + size);
  136|  5.04k|        std::FILE* file = buffer.empty() ? nullptr : fmemopen(buffer.data(), buffer.size(), "rb");
  ------------------
  |  Branch (136:27): [True: 0, False: 5.04k]
  ------------------
  137|  5.04k|        if (file != nullptr)
  ------------------
  |  Branch (137:13): [True: 5.04k, False: 0]
  ------------------
  138|  5.04k|        {
  139|  5.04k|            const read_outcome actual = read_with(parse, file);
  140|  5.04k|            std::fclose(file);
  141|       |            assert(actual == expected);
  ------------------
  |  Branch (141:13): [True: 5.04k, False: 0]
  ------------------
  142|  5.04k|        }
  143|  5.04k|    }
  144|  5.04k|#endif
  145|  5.04k|}
fuzzer-parse_bson.cpp:_Z9read_withIN12_GLOBAL__N_19read_bsonEJRPKhS3_EE12read_outcomeRKT_DpOT0_:
   88|  5.04k|{
   89|  5.04k|    read_outcome result;
   90|  5.04k|    try
   91|  5.04k|    {
   92|  5.04k|        result.value = outcome_value(parse(std::forward<Args>(args)...));
   93|  5.04k|    }
   94|  5.04k|    catch (const json::parse_error& e)
   95|  5.04k|    {
   96|  1.76k|        result.id = e.id;
   97|  1.76k|        result.what = e.what();
   98|  1.76k|        result.byte = e.byte;
   99|  1.76k|    }
  100|  5.04k|    catch (const json::exception& e)
  101|  5.04k|    {
  102|      0|        result.id = e.id;
  103|      0|        result.what = e.what();
  104|      0|    }
  105|  5.04k|    return result;
  106|  5.04k|}
_Z13outcome_valueRKN8nlohmann16json_abi_v3_12_010basic_jsonINSt3__13mapENS2_6vectorENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEblmdS8_NS0_14adl_serializerENS4_IhNS8_IhEEEEvEE:
   77|  13.1k|{
   78|  13.1k|    return j.dump(-1, ' ', false, json::error_handler_t::keep);
   79|  13.1k|}
fuzzer-parse_bson.cpp:_Z9read_withIN12_GLOBAL__N_19read_bsonEJRNSt3__119basic_istringstreamIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEE12read_outcomeRKT_DpOT0_:
   88|  5.04k|{
   89|  5.04k|    read_outcome result;
   90|  5.04k|    try
   91|  5.04k|    {
   92|  5.04k|        result.value = outcome_value(parse(std::forward<Args>(args)...));
   93|  5.04k|    }
   94|  5.04k|    catch (const json::parse_error& e)
   95|  5.04k|    {
   96|  1.76k|        result.id = e.id;
   97|  1.76k|        result.what = e.what();
   98|  1.76k|        result.byte = e.byte;
   99|  1.76k|    }
  100|  5.04k|    catch (const json::exception& e)
  101|  5.04k|    {
  102|      0|        result.id = e.id;
  103|      0|        result.what = e.what();
  104|      0|    }
  105|  5.04k|    return result;
  106|  5.04k|}
_ZNK12read_outcomeeqERKS_:
   71|  15.1k|    {
   72|  15.1k|        return value == rhs.value && id == rhs.id && what == rhs.what && byte == rhs.byte;
  ------------------
  |  Branch (72:16): [True: 15.1k, False: 0]
  |  Branch (72:38): [True: 15.1k, False: 0]
  |  Branch (72:54): [True: 15.1k, False: 0]
  |  Branch (72:74): [True: 15.1k, False: 0]
  ------------------
   73|  15.1k|    }
fuzzer-parse_bson.cpp:_Z9read_withIN12_GLOBAL__N_19read_bsonEJNSt3__121__list_const_iteratorIhPvEES5_EE12read_outcomeRKT_DpOT0_:
   88|  5.04k|{
   89|  5.04k|    read_outcome result;
   90|  5.04k|    try
   91|  5.04k|    {
   92|  5.04k|        result.value = outcome_value(parse(std::forward<Args>(args)...));
   93|  5.04k|    }
   94|  5.04k|    catch (const json::parse_error& e)
   95|  5.04k|    {
   96|  1.76k|        result.id = e.id;
   97|  1.76k|        result.what = e.what();
   98|  1.76k|        result.byte = e.byte;
   99|  1.76k|    }
  100|  5.04k|    catch (const json::exception& e)
  101|  5.04k|    {
  102|      0|        result.id = e.id;
  103|      0|        result.what = e.what();
  104|      0|    }
  105|  5.04k|    return result;
  106|  5.04k|}
fuzzer-parse_bson.cpp:_Z9read_withIN12_GLOBAL__N_19read_bsonEJRP8_IO_FILEEE12read_outcomeRKT_DpOT0_:
   88|  5.04k|{
   89|  5.04k|    read_outcome result;
   90|  5.04k|    try
   91|  5.04k|    {
   92|  5.04k|        result.value = outcome_value(parse(std::forward<Args>(args)...));
   93|  5.04k|    }
   94|  5.04k|    catch (const json::parse_error& e)
   95|  5.04k|    {
   96|  1.76k|        result.id = e.id;
   97|  1.76k|        result.what = e.what();
   98|  1.76k|        result.byte = e.byte;
   99|  1.76k|    }
  100|  5.04k|    catch (const json::exception& e)
  101|  5.04k|    {
  102|      0|        result.id = e.id;
  103|      0|        result.what = e.what();
  104|      0|    }
  105|  5.04k|    return result;
  106|  5.04k|}

